/* --- START OF FILE style.css (Fixed & Complete Version) --- */

:root {
    /* --- Dark Mode Variables (Default) --- */
    --bg-dark: #0d0d12;
    --bg-header: rgba(13, 13, 18, 0.7);
    --bg-card: #1A1D2E;
    --bg-panel: #222639;
    --primary-blue: #3E69FE;
    --danger-red: #E63946;
    --success-green: #28a745;
    --warning-yellow: #ffc107;
    --text-light: #FFFFFF;
    --text-muted: #A0A3B1;
    --border-color: rgba(255, 255, 255, 0.08);
    --section-padding: 3.5rem 0;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;

    /* افکت‌ها و سایه‌ها */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.3);
    --glass-blur: blur(15px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-bg-dark: rgba(26, 29, 46, 0.90);
    --glass-bg-light: rgba(255, 255, 255, 0.90);

    /* رنگ‌های خاص کارت */
    --card-primary-color: #7b2cbf;
    --card-discount-color: #e63946;
    --card-background-color: #f0eef6;
    --card-text-color: #333;
    --card-heart-color: #e63946;
}

/* --- Light Mode Variables --- */
:root[data-theme="light"] {
    --bg-dark: #f4f7fa;
    --bg-header: rgba(255, 255, 255, 0.85);
    --bg-card: #ffffff;
    --bg-panel: #ffffff;
    --text-light: #1a202c;
    --text-muted: #718096;
    --border-color: #e2e8f0;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --glass-border: 1px solid rgba(0, 0, 0, 0.05);
    --card-background-color: #ffffff;
    --card-text-color: #1a202c;
}

/* ==========================================================================
   1. RESET & BASE STYLES
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden !important;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-blue) var(--bg-dark);
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden !important;
    width: 100vw;
    position: relative;

    /* فاصله از پایین برای نوبار موبایل */
    padding-bottom: 85px;

    /* فاصله پیش‌فرض دسکتاپ */
    padding-top: 140px;

    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary-blue);
    border-radius: 10px;
    border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background-color: #2e5ae6;
}

body.no-scroll {
    overflow: hidden;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

/* ==========================================================================
   2. HEADER STYLES (Glassmorphism & Sticky)
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--bg-header);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px 0;
}

.site-header.scrolled {
    background-color: rgba(13, 13, 18, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    padding: 5px 0;
    border-bottom-color: var(--primary-blue);
}

:root[data-theme="light"] .site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
}

.site-header .container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s ease;
    overflow: visible !important;
}

.site-header.scrolled .container {
    gap: 2px;
}

/* Header Top */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 5px 0;
    transition: all 0.3s ease;
}

/* Logo */
.logo {
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-text {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1;
    transition: font-size 0.3s ease;
}

.logo .logo-blue {
    color: var(--primary-blue);
}

.logo .logo-white {
    color: var(--text-light);
}

.logo-light {
    display: none;
}

.logo-dark {
    display: block;
}

:root[data-theme="light"] .logo-light {
    display: block;
}

:root[data-theme="light"] .logo-dark {
    display: none;
}

:root[data-theme="light"] .logo .logo-white {
    color: #1a202c;
}

.site-header.scrolled .logo-img {
    transform: scale(0.85);
}

.site-header.scrolled .logo-text {
    font-size: 1.5rem;
}

/* Search Form */
.search-form {
    position: relative;
    flex-grow: 1;
    max-width: 550px;
}

.search-form input {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    height: 45px;
    width: 100%;
    padding: 0 50px 0 20px;
    color: var(--text-light);
    font-family: inherit;
    transition: all 0.3s ease;
}

:root[data-theme="light"] .search-form input {
    background-color: #f1f5f9;
}

.search-form input:focus {
    background-color: rgba(0, 0, 0, 0.3);
    border-color: var(--primary-blue);
    box-shadow: 0 0 15px rgba(62, 105, 254, 0.2);
    outline: none;
}

.search-form .search-button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-blue);
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.search-form .search-button:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Search Results Dropdown */
.search-results-container {
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    background-color: var(--glass-bg-dark);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

:root[data-theme="light"] .search-results-container {
    background-color: var(--glass-bg-light);
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: rgba(62, 105, 254, 0.15);
}

.search-result-image {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    margin-left: 15px;
    flex-shrink: 0;
    background-color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-light);
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-category {
    font-size: 0.75rem;
    color: var(--primary-blue);
    background: rgba(62, 105, 254, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 5px;
}

.search-result-price {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.search-result-current-price {
    font-weight: 700;
    color: var(--primary-blue);
}

.search-result-old-price {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.search-loading {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}

.header-actions .action-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

:root[data-theme="light"] .header-actions .action-btn {
    background-color: #f1f5f9;
}

.header-actions .action-btn:hover {
    background-color: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(62, 105, 254, 0.4);
}

.header-actions .cart {
    position: relative;
}

.cart-notification {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background-color: var(--danger-red);
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
}

/* User Dropdown */
.user-menu-container {
    position: relative;
    display: inline-block;
}

.header-profile-pic {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    width: 280px;
    background-color: var(--glass-bg-dark);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    z-index: 1010;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
}

:root[data-theme="light"] .user-dropdown-menu {
    background-color: var(--glass-bg-light);
}

.user-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 1.2rem;
    background-color: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-header strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 700;
}

.dropdown-header span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.dropdown-links {
    list-style: none;
    padding: 0.75rem 0;
    margin: 0;
}

.dropdown-links li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.9rem 1.2rem;
    color: var(--text-muted);
    transition: all 0.2s;
    font-weight: 500;
    border-radius: 12px;
    margin: 0 8px;
    font-size: 0.95rem;
}

.dropdown-links li a:hover {
    background-color: rgba(62, 105, 254, 0.15);
    color: white;
}

.dropdown-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: transparent;
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.6rem;
    background-color: var(--danger-red);
    color: white;
    border-radius: 12px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.logout-btn:hover {
    background-color: #c42d39;
}

/* Main Nav */
.main-nav-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.site-header.scrolled .main-nav-centered {
    padding-top: 5px;
    border-top-color: transparent;
}

.main-nav-centered a {
    color: var(--text-muted);
    font-weight: 500;
    padding: 5px 15px;
    border-radius: 20px;
    transition: all 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-nav-centered a:hover {
    color: var(--text-light);
    background-color: rgba(255, 255, 255, 0.05);
}

.main-nav-centered a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.main-nav-centered a:hover::after {
    width: 80%;
}

/* Mega Menu */
.nav-item-dropdown {
    position: static;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 20px auto 0;
    width: max-content;
    min-width: 700px;
    max-width: 95vw;
    background-color: var(--glass-bg-dark);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    z-index: 1001;
    padding: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

:root[data-theme="light"] .mega-menu {
    background-color: var(--glass-bg-light);
}

.nav-item-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-column {
    flex: 1;
    min-width: 180px;
    padding: 0 1.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.mega-menu-column:last-child {
    border-left: none;
}

.mega-menu-title {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
}

.mega-menu-title i {
    font-size: 1.3rem;
}

.mega-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mega-menu-list li a {
    padding: 0.5rem;
    display: flex;
    align-items: center;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: all 0.2s ease;
    background-color: transparent;
    white-space: nowrap;
}

.mega-menu-list li a:hover {
    background-color: rgba(62, 105, 254, 0.1);
    color: var(--text-light) !important;
    padding-right: 1.2rem;
}

.mega-menu-list li a i {
    opacity: 0.7;
    transition: opacity 0.2s;
    margin-left: 5px;
    width: 20px;
    text-align: center;
}

.mega-menu-list li a:hover i {
    opacity: 1;
}

/* ==========================================================================
   3. SECTIONS & COMPONENTS (Restored Full Styles)
   ========================================================================== */

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    font-weight: 700;
}

.view-all {
    color: var(--primary-blue);
    font-weight: 500;
    transition: color 0.3s ease;
}

.view-all:hover {
    color: var(--text-light);
}

.product-grid-section,
.blog-section,
.xbox-accounts-section,
.steam-products-section,
.accessories-section,
.consoles-section,
.amazing-offers-section,
.banner-section {
    padding: var(--section-padding);
}

/* Home Slider & Banner */
.store-slider .carousel-item {
    aspect-ratio: 21 / 9;
    background-color: transparent;
}

.store-slider .carousel-item img {
    object-fit: contain;
    object-position: center center;
    height: 100%;
    width: 100%;
}

.store-slider .carousel-control-prev-icon,
.store-slider .carousel-control-next-icon {
    filter: brightness(0) saturate(100%) invert(32%) sepia(80%) saturate(6011%) hue-rotate(222deg) brightness(99%) contrast(97%);
}

.carousel-indicators {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    bottom: 20px !important;
    transform: translateX(-50%) !important;
    background: transparent !important;
    border: none !important;
    padding: 5px 2px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: 56px !important;
    max-width: 56px !important;
    overflow: hidden !important;
    flex-wrap: nowrap !important;
    z-index: 20 !important;
    direction: ltr !important;
}

.carousel-indicators::-webkit-scrollbar {
    display: none !important;
}

.carousel-indicators button {
    width: 12px !important;
    height: 12px !important;
    min-width: 12px !important;
    border-radius: 50% !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: #ffffff !important;
    opacity: 0.5 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5) !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
}

.carousel-indicators button.active {
    background-color: var(--primary-blue) !important;
    opacity: 1 !important;
    transform: scale(1.2);
    box-shadow: 0 0 10px var(--primary-blue) !important;
}

/* Amazing Offers */
.amazing-offers-container {
    background-color: var(--primary-blue);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
}

.promo-card {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 1rem;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
}

.promo-card h3 {
    font-size: 2.2rem;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 2rem;
}

.view-all-link {
    color: white;
    font-weight: 500;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 0.7rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.view-all-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.slider-nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.slider-nav .swiper-button-prev,
.slider-nav .swiper-button-next {
    position: static;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: white;
    margin: 0;
    transition: background-color 0.3s ease;
}

.slider-nav .swiper-button-prev:hover,
.slider-nav .swiper-button-next:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Banner Cards */
.banner-card {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Swiper */
.swiper {
    overflow: hidden;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: 0 40px;
}

.swiper-wrapper {
    box-sizing: border-box;
    align-items: stretch;
}

.swiper-slide {
    height: auto;
}

.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    margin: 0;
}

.swiper-button-prev {
    left: 0;
    right: auto;
}

.swiper-button-next {
    right: 0;
    left: auto;
}

/* ==========================================================================
   4. PRODUCT CARD STYLES (Restored Full)
   ========================================================================== */
.product-card {
    position: relative;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 25px 15px 15px;
    display: flex;
    flex-direction: column;
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.card-visual-wrapper {
    position: relative;
    margin-bottom: 1rem;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    z-index: 10;
    background-color: var(--bg-dark);
}

.card-visual-wrapper:hover .image-container-shimmer {
    transform: scale(1.08);
}

.image-container-shimmer {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    background-color: #2c3044;
    overflow: hidden;
    border-radius: inherit;
    transition: transform 0.4s ease;
}

.shimmer-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.shimmer-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    animation: shimmer-animation 1.5s infinite;
}

@keyframes shimmer-animation {
    100% {
        left: 100%;
    }
}

.product-image.lazy-load {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.product-image.loaded {
    opacity: 1;
}

.product-image.loaded+.shimmer-placeholder {
    opacity: 0;
}

.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--primary-blue);
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 15;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(30, 30, 30, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 20;
}

.product-card:hover .card-overlay {
    opacity: 1;
    visibility: visible;
}

.view-button {
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.2s ease;
    display: inline-block;
}

.view-button:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.desktop-countdown {
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    direction: ltr;
    letter-spacing: 2px;
}

.mobile-countdown {
    display: none;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 200px;
    background-color: var(--card-discount-color);
    color: white;
    padding: 6px 0;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    direction: ltr;
    letter-spacing: 1.5px;
    text-align: center;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(230, 57, 70, 0.4);
}

.like-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.heart-icon {
    stroke: white;
    stroke-width: 2;
    fill: none;
    transition: all 0.2s ease;
}

.like-button:hover .heart-icon {
    transform: scale(1.15);
}

.like-button.liked .heart-icon {
    fill: var(--card-heart-color);
    stroke: var(--card-heart-color);
}

.card-overlay .like-button .heart-icon {
    width: 32px;
    height: 32px;
}

.mobile-like-button {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 15;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.mobile-like-button .heart-icon {
    stroke: white;
    width: 24px;
    height: 24px;
    position: relative;
    top: 2px;
}

.card-info {
    padding: 0 0.5rem;
    margin-top: auto;
}

.card-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 500;
    min-height: 3.2em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    width: 100%;
    margin-top: 12px;
    padding: 0;
    gap: 0;
}

.card-old-price {
    font-size: 0.8rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 400;
    line-height: 1.2;
    margin-left: 2px;
}

.card-old-price.placeholder {
    visibility: hidden;
    height: 0;
    margin: 0;
}

.card-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1.4;
    letter-spacing: -0.5px;
}

/* Blog Card */
.blog-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.blog-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.blog-card h3 {
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: auto;
}

.blog-slider .swiper-slide {
    width: auto;
    max-width: 350px;
}

/* ==========================================================================
   5. FOOTER STYLES (Refined 4-Column Layout)
   ========================================================================== */

.main-footer {
    background-color: #15171e;
    border-top: 1px solid var(--border-color);
    padding-top: 4rem;
    margin-top: auto;
}

.footer-main .container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    /* عرض ستون‌ها */
    gap: 2.5rem;
    padding-bottom: 3rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
}

/* About Us */
.footer-col.about-us .logo {
    margin-bottom: 1rem;
}

.footer-col.about-us p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 0;
    justify-content: flex-start;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(62, 105, 254, 0.3);
}

/* Links */
.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 2px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    width: 100%;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    padding-right: 0;
    position: relative;
}

.footer-col ul li a::before {
    content: '«';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--text-light);
    transform: translateX(-5px);
}

.footer-col ul li a:hover::before {
    opacity: 1;
    right: -10px;
}

/* Trust & Newsletter */
.trust-seals {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
    align-items: center;
}

.trust-seals img {
    width: 70px;
    height: auto;
    background: #fff;
    padding: 5px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.trust-seals img:hover {
    transform: scale(1.05);
}

.subscribe-form {
    display: flex;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.subscribe-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 15px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 0.9rem;
}

.subscribe-form input:focus {
    outline: none;
}

.subscribe-form button {
    background-color: var(--primary-blue);
    border: none;
    color: white;
    padding: 0 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.subscribe-form button:hover {
    background-color: #2e5ae6;
}

/* Footer Bottom (Compact) */
.footer-bottom {
    background-color: #0d0d12;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    text-align: center;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
    width: 100%;
}

/* ==========================================================================
   6. UTILITIES (Preloader, ScrollTop, Alerts)
   ========================================================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: rgba(13, 13, 26, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    opacity: 1;
    visibility: visible;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

#preloader .loading-text {
    color: var(--text-light);
    margin-top: 1.5rem;
    font-size: 1.2rem;
    font-weight: 500;
    min-height: 1.5em;
}

.loader {
    width: 60px;
    aspect-ratio: 1;
    display: grid;
    animation: l14 4s infinite;
}

.loader::before,
.loader::after {
    content: "";
    grid-area: 1/1;
    border: 8px solid;
    border-radius: 50%;
    mix-blend-mode: darken;
    animation: l14 1s infinite linear;
}

.loader::before {
    border-color: #ffffff #ffffff #0000 #0000;
}

.loader::after {
    border-color: #0000 #0000 #87a5c3 #87a5c3;
    animation-direction: reverse;
}

@keyframes l14 {
    100% {
        transform: rotate(1turn);
    }
}

.dots-container {
    display: inline-flex;
    margin-right: 2px;
}

.loading-dot {
    animation: dot-fade 1.5s infinite;
    font-size: 1.5em;
    line-height: 1;
}

.loading-dot:nth-child(1) {
    animation-delay: 0s;
}

.loading-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dot-fade {

    0%,
    100% {
        opacity: 0.2;
    }

    50% {
        opacity: 1;
    }
}

.scroll-to-top {
    position: fixed;
    left: 30px;
    bottom: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-blue);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: transparent;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: scale(1.1);
}

.theme-toggle-btn {
    position: relative;
    overflow: hidden;
    width: 48px;
    height: 48px;
}

.theme-toggle-btn .sun-icon,
.theme-toggle-btn .moon-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.5s ease, opacity 0.5s ease;
    font-size: 1.3rem;
}

.theme-toggle-btn .sun-icon {
    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 1;
}

.theme-toggle-btn .moon-icon {
    transform: translate(-50%, 150%) rotate(180deg);
    opacity: 0;
}

:root[data-theme="light"] .theme-toggle-btn .sun-icon {
    transform: translate(-50%, -150%) rotate(-180deg);
    opacity: 0;
}

:root[data-theme="light"] .theme-toggle-btn .moon-icon {
    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 1;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

.alert-danger {
    background: rgba(230, 57, 70, 0.15);
    color: #e63946;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   7. RESPONSIVE DESIGN (All Rules)
   ========================================================================== */

/* Tablet & Mobile Nav */
.mobile-nav {
    display: none;
}

@media (max-width: 1200px) {
    .header-top {
        gap: 1rem;
    }

    .mega-menu {
        right: -100px;
    }
}

@media (max-width: 1023px) {
    .main-nav-centered {
        display: none;
    }

    .site-header .container {
        gap: 0;
    }

    .header-top {
        padding-bottom: 0;
        border-bottom: none;
    }

    .amazing-offers-container {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .promo-card {
        flex-basis: auto;
        border-left: none;
        border-bottom: 2px solid rgba(255, 255, 255, 0.2);
        padding: 1.5rem 1rem;
        width: 100%;
    }

    .promo-card h3 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .view-all-link {
        margin-top: 1.5rem;
        padding: 0.8rem 1.8rem;
        border: 1px solid white;
        border-radius: 8px;
        color: white;
        transition: background-color 0.3s ease, border-color 0.3s ease;
    }

    .view-all-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        border-color: white;
    }

    .slider-nav {
        margin-top: 1.5rem;
        justify-content: center;
        width: 100%;
    }

    .amazing-offers-slider .swiper-slide {
        width: 75%;
        max-width: 280px;
    }

    .hide-on-mobile {
        display: none !important;
    }

    .footer-main .container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    body {
        padding-top: 100px;
    }

    .mobile-nav {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 75px;
        background-color: rgba(26, 29, 46, 0.95) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
        border-top: 1px solid var(--border-color);
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        z-index: 1000 !important;
        padding: 0;
    }

    :root[data-theme="light"] .mobile-nav {
        background-color: #ffffff !important;
    }

    .mobile-nav-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: 100%;
        padding: 0 10px;
    }

    .mobile-nav .nav-link {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--text-muted);
        text-decoration: none;
        height: 100%;
        padding: 5px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
    }

    .mobile-nav .nav-link i {
        font-size: 1.4rem;
        margin-bottom: 4px;
        transition: transform 0.2s;
    }

    .mobile-nav .nav-text {
        font-size: 0.75rem;
        font-weight: 500;
        white-space: nowrap;
    }

    .mobile-nav .nav-link.active-link {
        color: var(--primary-blue);
    }

    .mobile-nav .nav-link.active-link i {
        transform: translateY(-3px);
        text-shadow: 0 5px 15px rgba(62, 105, 254, 0.4);
    }

    .nav-profile-pic {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        border: 2px solid var(--text-muted);
        margin-bottom: 2px;
        object-fit: cover;
    }

    .mobile-nav .nav-link.active-link .nav-profile-pic {
        border-color: var(--primary-blue);
    }

    .notification-dot {
        position: absolute;
        top: 15px;
        right: 30%;
        width: 8px;
        height: 8px;
        background-color: var(--danger-red);
        border-radius: 50%;
        border: 1px solid var(--bg-header);
    }
}

@media (max-width: 768px) {
    /* --- اصلاح مشکل چسبیدن اسلایدر --- */
    body {
        padding-top: 175px !important;
    }
    
    .header-top {
        flex-wrap: wrap;
    }

    .logo {
        order: 1;
        flex-grow: 1;
    }

    .header-actions {
        order: 2;
    }

    .search-form {
        order: 4;
        width: 100%;
        max-width: none;
        margin-top: 1rem;
    }

    .product-card.discounted .mobile-countdown {
        display: block;
    }

    .mobile-like-button {
        display: flex;
    }

    .card-overlay {
        display: none;
    }

    .mobile-image-link {
        display: block;
        position: absolute;
        inset: 0;
        z-index: 12;
    }

    .footer-main .container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }

    .footer-col {
        align-items: center;
        width: 100%;
    }

    .footer-col h4::after {
        right: 50%;
        transform: translateX(50%);
        left: auto;
    }

    .social-icons,
    .trust-seals {
        justify-content: center;
    }

    .footer-col ul li a {
        padding-right: 0;
        justify-content: center;
    }

    .footer-col ul li a::before {
        display: none;
    }

    .footer-bottom .container {
        flex-direction: column-reverse;
        gap: 15px;
        text-align: center;
    }

    .scroll-to-top {
        bottom: 90px !important;
        left: 20px !important;
        width: 40px;
        height: 40px;
    }

    #goftino_w,
    [id^="goftino_"],
    ._goftino_widget,
    iframe[title="Goftino"] {
        bottom: 95px !important;
        z-index: 9990 !important;
    }
}

@media (min-width: 769px) {
    .product-card:hover .card-overlay {
        opacity: 1;
        visibility: visible;
    }

    .product-card {
        padding-top: 25px;
    }

    #goftino_w,
    [id^="goftino_"],
    ._goftino_widget,
    iframe[title="Goftino"] {
        bottom: 20px !important;
    }
}

@media (max-width: 480px) {

    .product-slider .swiper-slide,
    .xbox-slider .swiper-slide,
    .steam-slider .swiper-slide,
    .accessories-slider .swiper-slide,
    .consoles-slider .swiper-slide,
    .amazing-offers-slider .swiper-slide {
        width: 90%;
    }

    .blog-slider .swiper-slide {
        width: 95%;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .header-actions .action-btn {
        font-size: 1.1rem;
        width: 40px;
        height: 40px;
    }
}

body.no-scroll #goftino_w,
body.no-scroll [id^="goftino_"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2147483647 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-card);
    border-top-left-radius: var(--border-radius-lg);
    border-top-right-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    max-height: 80vh;
    overflow-y: auto;
}

.mobile-menu-overlay.show .mobile-menu-content {
    transform: translateY(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.mobile-menu-list li a {
    display: block;
    padding: 0.6rem 0.8rem;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
    transition: background-color 0.3s ease;
}

.mobile-menu-list li a:hover {
    background-color: var(--primary-blue);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-light);
}

.modal-icon {
    font-size: 3.5rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.modal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.modal-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.modal-button {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background-color: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.modal-button:hover {
    background-color: #2e5ae6;
}

/* --- END OF FILE style.css --- */