/* ===== بخش CSS شماره 1، استخراج‌شده از index.html ===== */
/* =========================================
        HOVER EFFECTS (Aurora, Splash, Zap, Surge)
        ========================================= */

        /* --- 1. AURORA EFFECT (For Games) --- */
        .btn-aurora {
            border: 2px solid #F09819 !important;
            background: linear-gradient(45deg, #5f2c82, #49a09d, #F09819, #EDDE5D);
            background-size: 300% 300%;
            color: white !important;
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
            animation: auroraAnimation 6s ease infinite;
        }

        @keyframes auroraAnimation {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        /* --- Hover & Active برای دکمه Aurora (بازی‌ها) --- */
        .btn-aurora:hover,
        .btn-aurora:active,
        .btn-aurora:focus {
            background: linear-gradient(45deg, #ff9800, #e91e63) !important;
            background-size: 100% 100% !important;
            animation: none !important;  /* توقف انیمیشن هنگام هاور */
            color: white !important;
            border-color: #ff9800 !important;
            box-shadow: 0 0 20px rgba(255, 152, 0, 0.7);
            transform: translateY(-2px);
        }

        /* --- 2. SPLASH EFFECT (For Plus) --- */
        .btn-splash {
            position: relative;
            overflow: hidden;
            background: transparent !important;
            border: 2px solid #2979ff !important;
            color: #2979ff !important;
            z-index: 1;
            transition: color 0.4s;
        }

        .btn-splash::before {
            content: '';
            position: absolute;
            top: 0; left: -100%;
            width: 100%; height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: none; /* Override default */
        }

        .btn-splash::after {
            content: '';
            position: absolute;
            top: 50%; left: 50%;
            transform: translate(-50%, -50%) scale(0);
            width: 150%; padding-bottom: 150%; /* Make it a square/circle */
            border-radius: 50%;
            background: #2979ff;
            z-index: -1;
            transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
        }

        .btn-splash:hover {
            color: white !important;
            border-color: #2979ff;
        }

        .btn-splash:hover::after {
            transform: translate(-50%, -50%) scale(1);
        }

        /* --- 3. ZAP / GLITCH EFFECT (For Gift Cards) --- */
        .btn-zap {
            position: relative;
            background: transparent !important;
            color: #CE93D8 !important;
            border: 2px solid #9C27B0 !important;
            overflow: visible !important;
            box-shadow: 0 0 10px rgba(156, 39, 176, 0.2);
            transition: all 0.3s ease;
        }

        .btn-zap:hover,
        .btn-zap:active,
        .btn-zap:focus {
            animation: zap-shake 0.3s cubic-bezier(.36,.07,.19,.97) both infinite;
            background: linear-gradient(135deg, #6A1B9A, #9C27B0) !important;
            color: #fff !important;
            border-color: #CE93D8 !important;
            transform: none !important;
            box-shadow: 0 0 20px rgba(156, 39, 176, 0.6);
        }

        /* --- استایل دکمه افزودن به سبد خرید (بسیار شیک) --- */
        #add-to-cart-btn {
            background: linear-gradient(135deg, #00C853 0%, #B2FF59 100%);
            color: #000;
            border: none;
            border-radius: 50px;
            padding: 15px 30px;
            font-size: 1.2rem;
            font-weight: 900;
            letter-spacing: 1px;
            box-shadow: 0 10px 20px rgba(0, 200, 83, 0.3);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            width: 100%;
            margin-top: 20px;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        #add-to-cart-btn:hover {
            transform: translateY(-5px) scale(1.02);
            box-shadow: 0 15px 30px rgba(0, 200, 83, 0.5);
        }

        #add-to-cart-btn:active {
            transform: translateY(-2px);
        }

        .console-badge {
            font-size: 0.7rem;
            padding: 2px 8px;
            border-radius: 12px;
            color: white;
            font-weight: bold;
            z-index: 5;
        }
        .badge-ps5 { background: linear-gradient(45deg, #003087, #0070d1); }
        .badge-ps4 { background: linear-gradient(45deg, #003087, #1a1aff); }

        /* --- استایل سوییچ‌های پنل ادمین (جایگزین چک‌باکس زشت) --- */
        .switch-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: rgba(255,255,255,0.05);
            padding: 10px 15px;
            border-radius: 12px;
            margin-bottom: 10px;
            border: 1px solid #333;
        }

        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 26px;
        }

        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .slider {
            position: absolute;
            cursor: pointer;
            top: 0; left: 0; right: 0; bottom: 0;
            background-color: #333;
            transition: .4s;
            border-radius: 34px;
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 20px;
            width: 20px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }

        input:checked + .slider {
            background-color: var(--secondary-color);
        }

        input:checked + .slider:before {
            transform: translateX(24px);
        }

        /* --- بج‌های کنسول در بالای محصول --- */
        .console-badge {
            position: absolute;
            top: 15px;
            right: 15px; /* سمت راست */
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: bold;
            color: white;
            box-shadow: 0 2px 10px rgba(0,0,0,0.5);
            z-index: 5;
        }
        .badge-ps5 { background: linear-gradient(45deg, #2c3e50, #fff); color: #000; border: 1px solid white; }
        .badge-ps4 { background: linear-gradient(45deg, #003087, #0070d1); }

        @keyframes zap-shake {
            10%, 90% { transform: translate3d(-1px, 0, 0); }
            20%, 80% { transform: translate3d(2px, 0, 0); }
            30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
            40%, 60% { transform: translate3d(4px, 0, 0); }
        }

        /* --- 4. SURGE EFFECT (For Trust Symbols) --- */
        .btn-surge {
            position: relative;
            background: transparent !important;
            border: 2px solid #00BFA5 !important;
            color: #4DD0E1 !important;
            box-shadow: 0 0 10px rgba(0, 191, 165, 0.2);
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .btn-surge:hover,
        .btn-surge:active,
        .btn-surge:focus {
            background: linear-gradient(135deg, #00BFA5, #0091EA) !important;
            color: #fff !important;
            border-color: #80DEEA !important;
            box-shadow: 0 0 20px rgba(0, 230, 181, 0.6), 0 0 40px rgba(0, 176, 255, 0.4);
            transform: scale(1.05);
        }

        /* Electric line animation */
        .btn-surge::before {
            content: '';
            position: absolute;
            top: 0; left: -100%;
            width: 100%; height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
            transition: 0.5s;
            animation: surge-anim 2s infinite linear;
        }

        @keyframes surge-anim {
            0% { left: -100%; }
            50% { left: 100%; }
            100% { left: 100%; }
        }

        /* --- SOCIAL BUTTONS STYLES --- */
        .social-container {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            margin: 20px auto;
            padding: 10px 25px;
            background: rgba(255, 255, 255, 0.05); /* Dark glass effect */
            border: 1px solid #333;
            border-radius: 50px;
            width: fit-content; /* Shrink to fit buttons */
            backdrop-filter: blur(5px);
            box-shadow: 0 5px 20px rgba(0,0,0,0.5);
        }

        .social-btn {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: #222;
            display: flex;
            justify-content: center;
            align-items: center;
            color: #fff;
            font-size: 1.5rem;
            text-decoration: none;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy effect */
            border: 1px solid #444;
        }

        /* Hover Effects */
        .social-btn:hover {
            transform: translateY(-5px) scale(1.1);
        }

        /* Telegram Color */
        .social-btn.telegram:hover {
            background: #0088cc;
            border-color: #0088cc;
            box-shadow: 0 0 15px rgba(0, 136, 204, 0.5);
        }

        /* Instagram Gradient Color */
        .social-btn.instagram:hover {
            background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
            border-color: #d6249f;
            box-shadow: 0 0 15px rgba(214, 36, 159, 0.5);
        }

        /* Phone Color */
        .social-btn.phone:hover {
            background: #00c853;
            border-color: #00c853;
            box-shadow: 0 0 15px rgba(0, 200, 83, 0.5);
        }

        /* Show password toggle */
        .password-container {
            position: relative;
            width: 100%;
        }

        .password-container input {
            width: 100%;
            padding-right: 45px !important; /* Space for the eye icon */
        }

        .toggle-password {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            background: transparent;
            border: none;
            color: #888;
            cursor: pointer;
            padding: 5px;
            font-size: 1rem;
            transition: color 0.3s;
            z-index: 10;
        }

        .toggle-password:hover {
            color: var(--secondary-color);
        }

        /* Adjust spacing for login/register forms */
        #form-login input,
        #form-register input {
            padding: 12px 15px !important;
        }

        .console-badge {
            position: absolute;
            top: 12px;
            right: 12px;
            font-size: 0.7rem;
            font-weight: bold;
            padding: 4px 10px;
            border-radius: 20px;
            color: white;
            z-index: 5;
            letter-spacing: 0.5px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.4);
        }
        .badge-ps5 {
            background: linear-gradient(135deg, #003087, #0070d1);
            border: 1px solid #00a2ff;
        }
        .badge-ps4 {
            background: linear-gradient(135deg, #1a1a5e, #3b4cca);
            border: 1px solid #6b8cff;
        }

        /* --- SEARCH BAR STYLES --- */
        .search-box {
            display: flex;
            align-items: center;
            background: #222;
            border: 1px solid #444;
            border-radius: 25px;
            padding: 5px 15px;
            width: 400px; /* Adjust width as needed */
            transition: all 0.3s;
        }

        .search-box:focus-within {
            border-color: var(--secondary-color);
            box-shadow: 0 0 10px rgba(255, 171, 0, 0.2);
        }

        .search-box input {
            background: transparent;
            border: none;
            color: white;
            width: 100%;
            padding: 8px;
            outline: none;
            font-family: inherit; /* Keeps your Persian font */
        }

        .search-box button {
            background: transparent;
            border: none;
            color: #aaa;
            cursor: pointer;
            transition: color 0.3s;
        }

        .search-box button:hover {
            color: var(--secondary-color);
        }

        /* --- HEADER FIXES --- */
        header {
          display: flex;
          justify-content: space-between;
          align-items: center;
          padding: 12px 4%;
          background: linear-gradient(90deg, rgba(20, 0, 0, 0.95), rgba(40, 0, 0, 0.95));
          border-bottom: 2px solid var(--accent-color);
          position: sticky;
          top: 0;
          z-index: 1000;
          box-shadow: 0 5px 20px rgba(213, 0, 0, 0.3);
          animation: headerGlow 3s infinite alternate;
          flex-wrap: wrap;
          gap: 10px;
        }

        @media (max-width: 768px) {
            header {
                flex-direction: column;
                padding: 10px 15px;
                gap: 8px;
            }
            .logo {
                font-size: 1.4rem;
                width: 100%;
                text-align: center;
            }
            .nav-actions {
                width: 100%;
                justify-content: center;
                flex-wrap: wrap;
                gap: 8px;
            }
            .btn-nav {
                font-size: 0.8rem;
                padding: 8px 12px;
                min-height: 40px;
            }
        }

        @media (max-width: 480px) {
            header {
                padding: 8px 10px;
                gap: 6px;
            }
            .logo {
                font-size: 1.2rem;
            }
            .btn-nav {
                font-size: 0.75rem;
                padding: 6px 10px;
                min-height: 36px;
            }
            .nav-actions {
                gap: 5px;
            }
        }

        @media (max-width: 768px) {
            .nav-actions {
                gap: 6px;
            }
            .btn-nav {
                padding: 6px 10px;
                font-size: 0.8rem;
            }
            .cart-badge {
                font-size: 0.65rem;
                min-width: 16px;
                height: 16px;
                padding: 0 3px;
            }
        }

        /* --- THE GLOW EFFECT (UPDATED) --- */
        .outer-glow {
            position: absolute;
            width: 100%;
            max-width: 354px;
            height: 130px;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            filter: blur(32px);
            opacity: 0.6;
            overflow: hidden;
            z-index: 1;
            pointer-events: none;
        }

        @media (max-width: 768px) {
            .outer-glow {
                max-width: 100%;
                height: 100px;
                filter: blur(20px);
                opacity: 0.4;
            }
        }

        .outer-glow::after {
            content: ''; /* Fixed typo: counte -> content */
            position: absolute;
            width: 200%;
            height: 200%;
            top: -50%;
            left: -50%;
            background: conic-gradient(
                from 60deg at 50% 50%,
                transparent 0deg,
                #4d3fd0 15deg,
                transparent 145deg,
                #e830ba 215deg,
                transparent 325deg
            ); /* Fixed trailing comma */
            animation: spin-effect var(--spin-duration, 4s) linear infinite;
        }

        @keyframes spin-effect {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* --- THE INPUT BOX --- */
        .search-input-container {
            position: relative;
            z-index: 10;
            width: 96%;
            height: 80%;
            background: rgba(17, 17, 17, 0.9); /* Slightly transparent */
            border-radius: 30px;
            display: flex;
            align-items: center;
            padding: 0 15px;
            border: 1px solid rgba(255, 255, 255, 0.2); /* Lighter border */
            backdrop-filter: blur(5px); /* Glass effect */
        }

        .search-input-container input {
            background: transparent;
            border: none;
            color: white;
            width: 100%;
            height: 100%;
            padding: 0 10px;
            outline: none;
            font-size: 1rem;
            font-family: inherit;
        }

        .search-input-container button {
            background: transparent;
            border: none;
            color: var(--secondary-color);
            font-size: 1.2rem;
            cursor: pointer;
            transition: 0.3s;
            padding: 5px;
        }

        .search-input-container button:hover {
            color: white;
            transform: scale(1.1);
        }

        /* Make search input glow when focused */
        .search-input-container:focus-within {
            border-color: var(--secondary-color);
            box-shadow: 0 0 15px rgba(255, 171, 0, 0.3);
        }

        /* Trust info section */
        .trust-info-section {
            background: rgba(30, 30, 30, 0.9);
            padding: 25px 5%;
            margin: 0;
            border-bottom: 1px solid var(--border-color);
        }

        .trust-symbols {
            display: flex;
            justify-content: center;
            gap: 40px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .trust-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            min-width: 120px;
            padding: 15px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
            transition: all 0.3s;
        }

        .trust-item:hover {
            background: rgba(255, 255, 255, 0.1);
            transform: translateY(-3px);
        }

        .trust-item i {
            font-size: 2.5rem;
            color: var(--secondary-color);
            margin-bottom: 10px;
        }

        .trust-item span {
            font-weight: bold;
            color: white;
            margin-bottom: 5px;
        }

        .trust-item small {
            color: #aaa;
            font-size: 0.85rem;
        }

        .store-description {
            text-align: center;
            padding: 20px;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 10px;
            border: 1px solid #333;
            max-width: 1000px;
            margin: 0 auto;
        }

        .store-description p {
            color: #aaa;
            line-height: 1.8;
            margin: 0;
            font-size: 1rem;
        }

        .store-description strong {
            color: var(--secondary-color);
        }

        /* Responsive adjustments */
        @media (max-width: 1024px) {
            .search-wrapper {
                order: 3;
                width: 100%;
                max-width: 100%;
                margin: 10px 0 0 0;
            }
            
            header {
                flex-direction: column;
                padding: 12px 20px;
            }
            
            .category-nav {
                top: 130px; /* Adjusted for stacked header */
                padding: 10px;
            }
        }

        @media (max-width: 768px) {
            .search-wrapper {
                display: block; /* Show search on mobile */
            }
            
            .search-input-container {
                width: 100%;
            }
            
            .trust-symbols {
                gap: 15px;
            }
            
            .trust-item {
                min-width: 100px;
                padding: 10px;
            }
            
            .trust-item i {
                font-size: 2rem;
            }
        }

        @media (max-width: 480px) {
            .category-nav {
                top: 150px;
                overflow-x: auto;
                flex-wrap: nowrap;
                justify-content: flex-start;
                -webkit-overflow-scrolling: touch;
            }
            
            .category-nav button {
                padding: 8px 12px;
                font-size: 0.85rem;
                white-space: nowrap;
                min-width: 110px;
                flex-shrink: 0;
            }
            
            .trust-symbols {
                flex-direction: column;
                align-items: center;
            }
            
            .trust-item {
                width: 100%;
                max-width: 250px;
            }
        }

        .btn-nav, .category-nav button {
            min-height: 44px;
            min-width: 44px;
            padding: 10px 16px;
        }

        .product-card img {
            width: 100%;
            aspect-ratio: 16 / 10;   /* یا هر نسبت دلخواه */
            object-fit: cover;
            border-radius: 10px;
            margin-bottom: 10px;
        }

        /* استایل برای انیمیشن اسکرول */
        html {
            scroll-behavior: smooth;
        }

        /* استایل برای highlight کردن بخش هنگام اسکرول */
        .highlight-section {
            animation: highlightPulse 1.5s ease-in-out;
        }

        @keyframes highlightPulse {
            0% { box-shadow: 0 0 0 0 rgba(255, 171, 0, 0.7); }
            70% { box-shadow: 0 0 0 15px rgba(255, 171, 0, 0); }
            100% { box-shadow: 0 0 0 0 rgba(255, 171, 0, 0); }
        }

        /* Add this clean slider CSS */
        .slider-item {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 40px;
            text-align: center;
            opacity: 0;
            transition: opacity 1s ease-in-out;
            z-index: 1;
            background-size: cover !important;
            background-position: center !important;
        }

        .slider-item.active {
            opacity: 1;
            z-index: 2;
        }

        .slider-item h3 {
            color: var(--secondary-color);
            font-size: 2.5rem;
            margin-bottom: 20px;
            text-shadow: 0 2px 10px rgba(0,0,0,0.8);
        }

        .slider-item p {
            font-size: 1.2rem;
            max-width: 600px;
            line-height: 1.6;
            color: white;
            text-shadow: 0 2px 5px rgba(0,0,0,0.8);
        }

       .product-card img {
            width: 100%;
            height: 180px; /* Fixed height for uniformity */
            object-fit: cover; /* Crops image nicely without stretching */
            border-radius: 10px;
            margin-bottom: 10px;
            border-bottom: 2px solid var(--accent-color);
        }

        .product-icon-placeholder {
            font-size: 4rem;
            margin: 20px 0;
            color: var(--secondary-color);
            text-shadow: 0 0 15px rgba(255, 171, 0, 0.2);
        }
                /* استایل دکمه‌های انتخاب شده */
        .variant-btn.selected,
        .capacity-option.selected {
            background-color: var(--secondary-color) !important; /* رنگ طلایی */
            color: black !important;
            border-color: var(--secondary-color) !important;
            font-weight: bold;
            transform: scale(1.05);
        }

        .capacity-option {
            cursor: pointer;
            border: 1px solid #444;
            padding: 10px;
            margin-bottom: 5px;
            border-radius: 5px;
            background: #222;
            transition: all 0.2s;
        }

        .variants-container {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 10px;
        }
        
        /* --- CATEGORY NAVIGATION MENU --- */
        .category-nav {
            background: rgba(26, 26, 26, 0.95);
            border-bottom: 1px solid var(--border-color);
            padding: 10px 4%;
            display: flex;
            justify-content: center;
            gap: 12px;
            flex-wrap: wrap;
            position: sticky;
            top: 68px;
            z-index: 999;
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
        }

        .category-nav button {
            background: transparent;
            border: 1px solid var(--border-color);
            color: var(--text-color);
            padding: 10px 18px;
            border-radius: 25px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 8px;
            min-width: 120px;
            justify-content: center;
            white-space: nowrap;
        }

        @media (max-width: 768px) {
            .category-nav {
                top: auto;
                overflow-x: auto;
                flex-wrap: nowrap;
                justify-content: flex-start;
                padding: 8px 10px;
                gap: 8px;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
            }
            .category-nav::-webkit-scrollbar {
                display: none;
            }
            .category-nav button {
                min-width: 100px;
                font-size: 0.8rem;
                padding: 8px 14px;
                flex-shrink: 0;
            }
        }

        @media (max-width: 480px) {
            .category-nav {
                padding: 6px 8px;
                gap: 6px;
            }
            .category-nav button {
                min-width: 85px;
                font-size: 0.75rem;
                padding: 7px 10px;
            }
        }
        :root {
            --bg-color: #0f0f0f;
            --card-bg: #1a1a1a;
            --text-color: #e0e0e0;
            --accent-color: #d50000;
            --secondary-color: #ffab00;
            --border-color: #333;
            --success-color: #00c853;
            --warning-color: #ff9100;
            --info-color: #2979ff;
        }

        * { 
            box-sizing: border-box; 
            margin: 0;
            padding: 0;
        }

        /* --- PRICE TABLE STYLES --- */
        .price-table {
            width: 100%;
            border-collapse: collapse;
            margin: 10px 0;
            background: #222;
            border-radius: 5px;
            overflow: hidden;
        }

        .price-table th {
            background: #333;
            color: var(--secondary-color);
            padding: 10px;
            text-align: center;
            font-size: 0.9rem;
        }

        .price-table td {
            padding: 8px;
            border: 1px solid #444;
            text-align: center;
        }

        .price-table input {
            width: 100%;
            padding: 8px;
            background: #1a1a1a;
            border: 1px solid #555;
            color: white;
            border-radius: 4px;
            text-align: center;
        }

        .price-row {
            display: flex;
            gap: 10px;
            margin-bottom: 10px;
            align-items: center;
        }

        .price-row input {
            flex: 1;
        }

        .remove-price-btn {
            background: var(--accent-color);
            color: white;
            border: none;
            padding: 8px 12px;
            border-radius: 5px;
            cursor: pointer;
        }

        /* --- MULTI-AMOUNT STYLES --- */
        .amounts-container {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin: 10px 0;
        }

        .amount-item {
            display: flex;
            gap: 10px;
            align-items: center;
            background: #222;
            padding: 10px;
            border-radius: 5px;
        }

        .amount-item input {
            flex: 1;
        }

        .amount-label {
            min-width: 80px;
            color: var(--secondary-color);
            font-weight: bold;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: var(--bg-color);
            color: var(--text-color);
            padding-bottom: 50px;
            min-height: 100vh;
        }

        .logo {
            font-size: 1.8rem;
            font-weight: bold;
            color: var(--accent-color);
            text-shadow: 0 0 10px var(--accent-color);
            cursor: pointer;
            transition: transform 0.3s;
        }

        .logo:hover {
            transform: scale(1.05);
        }

        .nav-actions {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .btn-nav {
            border-radius: 14px;
            padding: 11px 18px;
            min-height: 46px;
            font-weight: 700;
            letter-spacing: 0.3px;
            transition: 0.25s ease;
        }

        .btn-nav:hover {
            transform: translateY(-3px) scale(1.02);
        }

        .btn-nav {
            background: linear-gradient(45deg, #333, #222);
            color: white;
            border: 1px solid #555;
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .btn-nav:hover {
            background: var(--accent-color);
            border-color: var(--accent-color);
            transform: translateY(-2px);
        }

        .btn-gold {
            border-color: var(--secondary-color);
            color: var(--secondary-color);
        }

        .btn-gold:hover {
            background: var(--secondary-color);
            color: black;
        }

        .cart-badge {
            background: var(--secondary-color);
            color: black;
            border-radius: 50%;
            padding: 2px 8px;
            font-size: 0.75rem;
            font-weight: bold;
            margin-right: 5px;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }

        /* --- SECTIONS --- */
        .page-section {
            display: none;
            padding: 20px 5%;
            animation: fadeIn 0.5s;
        }

        .page-section.active {
            display: block;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* --- REPLACE YOUR SLIDER CSS WITH THIS --- */
        .product-slider-container {
            position: relative;
            width: 100%;
            aspect-ratio: 16 / 9;
            max-height: 400px;
            overflow: hidden;
            border-radius: 15px;
            margin: 30px 0;
            border: 2px solid var(--accent-color);
            box-shadow: 0 0 30px rgba(213, 0, 0, 0.3);
            background: #000;
        }

        .slider-item h3 {
            color: var(--secondary-color);
            font-size: 2.5rem;
            margin-bottom: 20px;
            text-shadow: 0 2px 10px rgba(0,0,0,0.8);
        }

        .slider-item p {
            font-size: 1.2rem;
            max-width: 600px;
            line-height: 1.6;
            color: white;
            text-shadow: 0 2px 5px rgba(0,0,0,0.8);
        }

        @media (max-width: 768px) {
            .product-slider-container {
                margin: 20px 0;
                border-radius: 10px;
                max-height: 250px;
            }
            .slider-item {
                padding: 20px 15px;
                align-items: center;
                justify-content: center;
                text-align: center;
            }
            .slider-item h3 {
                font-size: 1.5rem;
                margin-bottom: 10px;
                width: 100%;
                text-align: center;
            }
            .slider-item p {
                font-size: 0.9rem;
                line-height: 1.4;
                width: 100%;
                text-align: center;
                margin: 0 auto;
            }
        }

        @media (max-width: 480px) {
            .product-slider-container {
                max-height: 150px;
                margin: 10px 0;
            }
            .slider-item {
                padding: 15px 10px;
                align-items: center;
                justify-content: center;
                text-align: center;
            }
            .slider-item h3 {
                font-size: 1.2rem;
                width: 100%;
                text-align: center;
            }
            .slider-item p {
                font-size: 0.8rem;
                width: 100%;
                text-align: center;
                margin: 0 auto;
            }
        }

        .product-slider {
            position: relative;
            width: 100%;
            height: 100%;
            /* No animation here, controlled by JS */
        }

        .slider-item {
            position: absolute; /* Stack images on top of each other */
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 40px;
            text-align: center;
            opacity: 0; /* Hidden by default */
            transition: opacity 1s ease-in-out; /* Smooth fade effect */
            z-index: 1;
        }

        .slider-item.active {
            opacity: 1; /* Show active image */
            z-index: 2;
        }

        .slider-item::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.6);
            z-index: -1; /* Behind text */
        }

        .slider-item:nth-child(1) {
            background: linear-gradient(135deg, #1a0000, #3a0000);
        }

        .slider-item:nth-child(2) {
            background: linear-gradient(135deg, #001a00, #003a00);
        }

        .slider-item:nth-child(3) {
            background: linear-gradient(135deg, #00001a, #00003a);
        }

        .slider-item h3 {
            color: var(--secondary-color);
            font-size: 2.5rem;
            margin-bottom: 20px;
        }

        .slider-item p {
            font-size: 1.2rem;
            max-width: 600px;
            line-height: 1.6;
        }

        /* --- STORE STYLES --- */
        h2.section-title {
            color: var(--secondary-color);
            border-bottom: 1px solid #333;
            padding-bottom: 10px;
            margin: 30px 0 20px 0;
            text-align: center;
            font-size: 2rem;
            position: relative;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -5px;
            right: 50%;
            transform: translateX(50%);
            width: 100px;
            height: 3px;
            background: var(--accent-color);
            border-radius: 2px;
        }

        .product-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
            padding: 0 15px;
            margin: 0 auto;
            max-width: 1400px;
        }

        @media (max-width: 768px) {
            .product-grid {
                grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
                gap: 15px;
                padding: 0 10px;
            }
        }

        @media (max-width: 500px) {
            .product-grid {
                grid-template-columns: 1fr;
                gap: 12px;
                padding: 0 8px;
            }
        }

        .product-card {
            background: linear-gradient(135deg, #222, #1a1a1a);
            border: 1px solid var(--border-color);
            border-radius: 15px;
            padding: 20px;
            text-align: center;
            transition: all 0.3s;
            position: relative;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        @media (max-width: 480px) {
            .product-card {
                padding: 12px;
                border-radius: 12px;
            }
            .product-card img {
                height: 140px;
            }
            .p-title {
                font-size: 1rem;
                min-height: auto;
                max-height: 2.4em;
            }
            .p-price {
                font-size: 1.1rem;
            }
            .btn-buy {
                padding: 10px;
                font-size: 0.85rem;
            }
            .product-actions {
                flex-direction: column;
                gap: 8px;
            }
        }

        .product-card:hover {
            transform: translateY(-10px);
            border-color: var(--accent-color);
            box-shadow: 0 15px 30px rgba(213, 0, 0, 0.2);
        }

        .product-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
            background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
            border-radius: 15px 15px 0 0;
        }

        .product-badge {
            position: absolute;
            top: 15px;
            left: 15px;
            background: var(--accent-color);
            color: white;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: bold;
        }

        .p-title {
            font-size: 1.2rem;
            font-weight: bold;
            margin: 15px 0 10px 0;
            color: white;
            line-height: 1.4;
            min-height: 60px;
            
            /* برای مرورگرهای WebKit */
            display: -webkit-box;
            -webkit-box-orient: vertical;
            
            /* برای مرورگرهای مدرن */
            overflow: hidden;
            text-overflow: ellipsis;
            
            /* Fallback */
            max-height: 2.8em;
        }

        .p-price {
            color: var(--secondary-color);
            font-size: 1.4rem;
            font-weight: bold;
            margin: 15px 0;
            text-shadow: 0 0 10px rgba(255, 171, 0, 0.3);
        }

        .p-meta {
            font-size: 0.9rem;
            color: #aaa;
            margin-bottom: 8px;
            line-height: 1.4;
        }

        .product-actions {
            display: flex;
            gap: 10px;
            margin-top: auto;
        }

        .btn-buy {
            padding: 12px;
            background: linear-gradient(45deg, #8e0000, var(--accent-color));
            border: none;
            color: white;
            border-radius: 8px;
            cursor: pointer;
            font-weight: bold;
            font-size: 1rem;
            transition: all 0.3s;
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .btn-buy:hover {
            opacity: 0.9;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(213, 0, 0, 0.4);
        }

        .btn-view {
            background: var(--info-color);
        }

        /* --- ABOUT SECTION --- */
        .about-section {
            background: rgba(26, 26, 26, 0.8);
            border-radius: 15px;
            padding: 30px;
            margin: 50px auto;
            max-width: 1200px;
            border: 1px solid #333;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        }

        .about-section h2 {
            color: var(--secondary-color);
            border-bottom: 2px solid var(--secondary-color);
            padding-bottom: 10px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .about-section p {
            line-height: 1.8;
            margin-bottom: 15px;
            font-size: 1.1rem;
        }

        /* --- ADMIN DASHBOARD --- */
        .dashboard-container {
            display: flex;
            gap: 20px;
            min-height: 70vh;
            margin-top: 20px;
        }

        .sidebar {
            width: 250px;
            background: #151515;
            padding: 20px;
            border-radius: 10px;
            border: 1px solid #333;
            flex-shrink: 0;
        }

        @media (max-width: 768px) {
            .dashboard-container {
                flex-direction: column;
            }
            .sidebar {
                width: 100% !important;
                display: flex;
                flex-wrap: wrap;
                gap: 5px;
                padding: 10px;
            }
            .sidebar button {
                flex: 1 1 auto;
                margin: 2px;
                padding: 8px;
                font-size: 0.8rem;
            }
            .main-panel {
                padding: 15px;
            }
        }

        .main-panel {
            flex: 1;
            background: #151515;
            padding: 25px;
            border-radius: 10px;
            border: 1px solid #333;
            overflow-x: auto;
        }

        .sidebar button {
            width: 100%;
            text-align: right;
            padding: 15px;
            margin-bottom: 8px;
            background: transparent;
            border: none;
            color: #ccc;
            cursor: pointer;
            transition: all 0.3s;
            border-radius: 5px;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 1rem;
        }

        .sidebar button.active,
        .sidebar button:hover {
            background: rgba(255, 171, 0, 0.1);
            color: var(--secondary-color);
            border-right: 3px solid var(--secondary-color);
        }

        /* --- STATS --- */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .stat-card {
            background: linear-gradient(135deg, #222, #1a1a1a);
            border: 1px solid #333;
            border-radius: 10px;
            padding: 25px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: transform 0.3s;
        }

        .stat-card:hover {
            transform: translateY(-5px);
            border-color: var(--accent-color);
        }

        .stat-info h3 {
            font-size: 0.9rem;
            color: #aaa;
            margin-bottom: 5px;
        }

        .stat-info p {
            font-size: 2rem;
            font-weight: bold;
            color: white;
        }

        .stat-icon {
            width: 60px;
            height: 60px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
        }

        /* --- TABLES --- */
        .dashboard-table-container {
            margin-top: 20px;
            overflow-x: auto;
            border-radius: 10px;
            border: 1px solid #333;
        }

        .dashboard-table {
            width: 100%;
            border-collapse: collapse;
            min-width: 800px;
        }

        .dashboard-table th {
            background: #222;
            color: var(--secondary-color);
            padding: 15px;
            text-align: right;
            border-bottom: 2px solid #333;
            font-weight: bold;
        }

        .dashboard-table td {
            padding: 12px 15px;
            border-bottom: 1px solid #333;
        }

        .dashboard-table tr:hover {
            background: rgba(255, 255, 255, 0.05);
        }

        .action-btn {
            padding: 8px 12px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 0.9rem;
            transition: all 0.3s;
            margin: 2px;
        }

        .btn-edit {
            background: #ffab00;
            color: black;
        }

        .btn-del {
            background: #d50000;
            color: white;
        }

        .action-btn:hover {
            opacity: 0.8;
            transform: translateY(-2px);
        }

        /* --- FORMS --- */
        .form-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            margin-bottom: 20px;
        }

        .full-width {
            grid-column: span 2;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .form-group label {
            color: #aaa;
            font-size: 0.9rem;
            font-weight: 500;
        }

        input, select, textarea {
            width: 100%;
            padding: 12px 15px;
            background: #222;
            border: 1px solid #444;
            color: white;
            border-radius: 8px;
            transition: all 0.3s;
            font-size: 1rem;
        }

        textarea {
            resize: vertical;
            min-height: 100px;
        }

        input:focus, select:focus, textarea:focus {
            outline: none;
            border-color: var(--secondary-color);
            box-shadow: 0 0 10px rgba(255, 171, 0, 0.3);
        }

        /* --- MODALS --- */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            z-index: 2000;
            justify-content: center;
            align-items: center;
            backdrop-filter: blur(5px);
        }

        .modal-content {
            background: linear-gradient(135deg, #1e1e1e, #2a2a2a);
            padding: 40px;
            border-radius: 15px;
            width: 400px;
            max-width: 90%;
            border: 1px solid var(--accent-color);
            box-shadow: 0 0 50px rgba(213, 0, 0, 0.5);
            animation: modalAppear 0.3s;
            position: relative;
        }

        @keyframes modalAppear {
            from {
                opacity: 0;
                transform: scale(0.8) translateY(-50px);
            }
            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        .close-modal {
            position: absolute;
            top: 15px;
            left: 15px;
            cursor: pointer;
            font-size: 2rem;
            color: #aaa;
            transition: color 0.3s;
            line-height: 1;
        }

        .close-modal:hover {
            color: var(--accent-color);
        }

        /* --- PRODUCT DETAIL MODAL --- */
        .product-detail-modal {
            max-width: 800px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
        }

        .product-detail-header {
            background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
            padding: 30px;
            border-radius: 15px 15px 0 0;
            text-align: center;
            color: white;
        }

        .product-detail-header h2 {
            margin: 0;
            font-size: 2rem;
        }

        .product-detail-content {
            padding: 30px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
        }

        @media (max-width: 768px) {
            .product-detail-content {
                grid-template-columns: 1fr;
            }
        }

        .product-detail-image {
            background: #222;
            border-radius: 10px;
            padding: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 4rem;
            color: var(--secondary-color);
            min-height: 200px;
        }

        .product-detail-info {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .detail-item {
            display: flex;
            justify-content: space-between;
            padding: 12px 0;
            border-bottom: 1px solid #333;
        }

        .detail-label {
            color: #aaa;
            font-weight: bold;
        }

        .detail-value {
            color: white;
            font-weight: 500;
        }

        .variants-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 10px;
            margin-top: 10px;
        }

        .variant-btn {
            padding: 10px;
            background: #222;
            border: 1px solid #444;
            border-radius: 5px;
            color: white;
            cursor: pointer;
            transition: all 0.3s;
            text-align: center;
        }

        .variant-btn:hover {
            border-color: var(--secondary-color);
            background: rgba(255, 171, 0, 0.1);
        }

        .variant-btn.selected {
            background: var(--accent-color);
            border-color: var(--accent-color);
            color: white;
        }

        .quantity-selector {
            display: flex;
            align-items: center;
            gap: 15px;
            margin: 20px 0;
        }

        .quantity-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #222;
            border: 1px solid #444;
            color: white;
            font-size: 1.2rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .quantity-btn:hover {
            background: var(--accent-color);
            border-color: var(--accent-color);
        }

        .quantity-display {
            font-size: 1.2rem;
            font-weight: bold;
            min-width: 40px;
            text-align: center;
        }

        .product-detail-actions {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }

        /* --- AUTH MODAL --- */
        .login-method {
            display: flex;
            gap: 10px;
            margin: 20px 0;
        }

        .login-method button {
            flex: 1;
            padding: 12px;
            background: #222;
            border: 1px solid #444;
            color: white;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .login-method button.active {
            background: var(--accent-color);
            border-color: var(--accent-color);
        }

        .sms-code-input {
            display: none;
        }

        .checkbox-group {
            display: flex;
            flex-direction: row-reverse;
            align-items: center;
            justify-content: flex-end;
            gap: 8px;
            margin: 12px 0;
            direction: rtl;
        }

        .checkbox-group input[type="checkbox"] {
            width: 18px;
            height: 18px;
            min-width: 18px;
            cursor: pointer;
            accent-color: var(--accent-color);
            margin: 0;
        }

        .checkbox-group label {
            font-size: 0.85rem;
            color: #aaa;
            cursor: pointer;
            margin: 0;
            line-height: 1.3;
            white-space: nowrap;
        }

        /* --- FOOTER --- */
        .footer {
            text-align: center;
            padding: 30px;
            color: #777;
            font-size: 0.9rem;
            border-top: 1px solid #333;
            margin-top: 50px;
            background: rgba(20, 20, 20, 0.8);
        }

        /* --- RESPONSIVE --- */
        @media (max-width: 1024px) {
            .product-grid {
                grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            }
            
            .dashboard-container {
                flex-direction: column;
            }
            
            .sidebar {
                width: 100%;
            }
        }

        @media (max-width: 768px) {
            header {
                padding: 12px 20px;
                flex-direction: column;
                gap: 15px;
            }
            
            .nav-actions {
                width: 100%;
                justify-content: center;
                gap: 6px;
            }

            .nav-actions .btn-nav {
                padding: 7px 12px;
                font-size: 0.82rem;
            }
            .cart-badge {
                font-size: 0.65rem;
                min-width: 16px;
                height: 16px;
                line-height: 16px;
                padding: 0 3px;
            }
            
            .product-grid {
                grid-template-columns: 1fr;
                padding: 0 15px;
            }
            
            .form-grid {
                grid-template-columns: 1fr;
            }
            
            .full-width {
                grid-column: span 1;
            }
            
            .slider-item h3 {
                font-size: 1.8rem;
            }
            
            .slider-item p {
                font-size: 1rem;
            }
            
            .hero-title {
                font-size: 2rem;
            }
        }

        @media (max-width: 480px) {
            .btn-nav {
                padding: 8px 12px;
                font-size: 0.8rem;
            }
            
            .product-card {
                padding: 15px;
            }
            
            .modal-content {
                padding: 25px 20px;
            }
            
            .product-actions {
                flex-direction: column;
            }
            
            .slider-item {
                padding: 20px;
            }
            
            .slider-item h3 {
                font-size: 1.5rem;
            }
        }

        /* --- ADDITIONAL STYLES --- */
        .capacity-options {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 10px;
        }

        .capacity-option {
            padding: 10px;
            background: #222;
            border: 1px solid #444;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .capacity-option:hover {
            border-color: var(--secondary-color);
            background: rgba(255, 171, 0, 0.1);
        }

        .capacity-option.selected {
            background: var(--accent-color);
            border-color: var(--accent-color);
            color: white;
        }

        .capacity-price {
            float: left;
            color: var(--secondary-color);
            font-weight: bold;
        }

        /* --- این را به انتهای تگ style اضافه کنید --- */
        .product-card img {
            width: 100%;
            height: 180px;
            object-fit: cover;
            border-radius: 10px;
            margin-bottom: 10px;
            border-bottom: 2px solid var(--accent-color);
        }

        /* این کد را به انتهای تگ <style> اضافه کنید */
        .slider-buy-btn {
            background: linear-gradient(45deg, #ff9800, #ff5722) !important;
            color: white !important;
            border: none !important;
            border-radius: 25px !important;
            padding: 8px 20px !important;
            font-size: 0.9rem !important;
            cursor: pointer !important;
            transition: all 0.3s !important;
            box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3) !important;
            display: flex !important;
            align-items: center !important;
            gap: 8px !important;
            justify-content: center !important;
            margin-top: 10px !important;
        }

        .slider-buy-btn:hover {
            transform: translateY(-2px) !important;
            box-shadow: 0 6px 20px rgba(255, 87, 34, 0.5) !important;
            background: linear-gradient(45deg, #ff5722, #ff9800) !important;
        }

        /* --- TRUST SYMBOLS AND STORE INFO SECTION --- */
        .trust-info-section {
            background: rgba(30, 30, 30, 0.9);
            border-bottom: 1px solid var(--border-color);
            padding: 20px 4%;
            margin-top: 0;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .trust-symbols {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 25px;
            padding: 15px 0;
            border-bottom: 1px solid #333;
        }

        .trust-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            min-width: 100px;
            padding: 12px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.05);
            transition: all 0.3s;
        }

        @media (max-width: 768px) {
            .trust-symbols {
                gap: 12px;
            }
            .trust-item {
                min-width: 80px;
                padding: 8px;
            }
            .trust-item i {
                font-size: 1.5rem;
            }
            .trust-item span {
                font-size: 0.8rem;
            }
            .trust-item small {
                font-size: 0.7rem;
            }
        }

        @media (max-width: 480px) {
            .trust-symbols {
                flex-direction: column;
                align-items: center;
                gap: 8px;
            }
            .trust-item {
                width: 90%;
                flex-direction: row;
                justify-content: flex-start;
                gap: 15px;
                padding: 10px 15px;
            }
            .trust-item i {
                font-size: 1.3rem;
                min-width: 30px;
                text-align: center;
            }
            .store-description p {
                font-size: 0.85rem;
                line-height: 1.6;
            }
        }

        .trust-symbols {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 30px;
            padding: 15px 0;
            border-bottom: 1px solid #333;
        }

        .trust-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            min-width: 120px;
            padding: 10px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.05);
            transition: all 0.3s;
        }

        .trust-item:hover {
            background: rgba(255, 255, 255, 0.1);
            transform: translateY(-3px);
        }

        .trust-item i {
            font-size: 2rem;
            color: var(--secondary-color);
        }

        .trust-item span {
            font-size: 0.9rem;
            color: #ccc;
            text-align: center;
        }

        .store-description {
            text-align: center;
            padding: 15px;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 10px;
            border: 1px solid #333;
        }

        .store-description p {
            color: #aaa;
            line-height: 1.8;
            margin: 0;
            font-size: 1rem;
        }

        .store-description strong {
            color: var(--secondary-color);
        }

        /* Responsive for trust section */
        @media (max-width: 768px) {
            .trust-symbols {
                gap: 15px;
            }
            
            .trust-item {
                min-width: 100px;
                padding: 8px;
            }
            
            .trust-item i {
                font-size: 1.5rem;
            }
            
            .trust-item span {
                font-size: 0.8rem;
            }
        }

        @media (max-width: 480px) {
            .trust-symbols {
                flex-direction: column;
                align-items: center;
            }
            
            .trust-item {
                width: 80%;
                flex-direction: row;
                justify-content: flex-start;
                min-width: auto;
            }
        }

        .discount-badge {
            position: absolute;
            top: 15px;
            right: 15px;
            background: linear-gradient(45deg, #4caf50, #8bc34a);
            color: white;
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: bold;
            z-index: 2;
        }

        .rental-option {
            background: var(--info-color) !important;
        }

        .rental-option.selected {
            background: #2196f3 !important;
            border-color: #2196f3 !important;
        }

        /* =========================================================
           🔥 COMPREHENSIVE MOBILE OPTIMIZATION (HELL SHOP) 🔥
           ========================================================= */

        /* Prevent horizontal scroll from glow effects */
        body {
            overflow-x: hidden;
        }

        /* 1. Header & Search Fixes */
        @media (max-width: 768px) {
            header {
                padding: 10px 15px;
                flex-direction: column;
                gap: 12px;
                position: static; /* Prevents sticky header from eating screen space */
            }
            .search-wrapper {
                width: 100%;
                max-width: 100%;
                height: 45px;
                margin: 5px 0;
            }
            .outer-glow {
                max-width: 100%;
                height: 100%;
                filter: blur(15px);
            }
            .search-input-container {
                width: 100%;
                height: 100%;
                border-radius: 20px;
            }
            .nav-actions {
                width: 100%;
                justify-content: space-between;
                gap: 10px;
            }
            .btn-nav {
                flex: 1;
                justify-content: center;
                padding: 10px;
                font-size: 0.85rem;
            }
        }

        /* 2. Category Navigation (Smooth horizontal scroll) */
        @media (max-width: 768px) {
            .category-nav {
                position: sticky;
                top: 0;
                padding: 10px;
                flex-wrap: nowrap;
                overflow-x: auto;
                justify-content: flex-start;
                gap: 10px;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none; /* Firefox */
            }
            .category-nav::-webkit-scrollbar {
                display: none; /* Hide scrollbar for clean look */
            }
            .category-nav button {
                flex: 0 0 auto; /* Prevent shrinking */
                padding: 10px 15px;
                font-size: 0.85rem;
                min-height: 40px;
            }
        }

        /* 3. Product Cards (List view for phones) */
        @media (max-width: 600px) {
            .product-grid {
                grid-template-columns: 1fr;
                gap: 15px;
                padding: 0 15px;
            }
            .product-card {
                padding: 15px;
                display: grid;
                grid-template-columns: 100px 1fr;
                grid-template-areas: 
                    "img title"
                    "img price"
                    "actions actions";
                gap: 10px;
                align-items: center;
                text-align: right;
            }
            .product-card::before {
                border-radius: 15px; /* Fix top border line */
            }
            .product-card img, 
            .product-icon-placeholder {
                grid-area: img;
                width: 100px;
                height: 100px;
                margin: 0;
                border-radius: 10px;
            }
            .p-title {
                grid-area: title;
                margin: 0;
                font-size: 1rem;
                min-height: auto;
                align-self: end;
            }
            .p-price {
                grid-area: price;
                margin: 0;
                font-size: 1.1rem;
                align-self: start;
            }
            .product-actions {
                grid-area: actions;
                flex-direction: row;
                margin-top: 5px;
                gap: 8px;
            }
            .btn-buy {
                padding: 10px;
                font-size: 0.85rem;
            }
            .product-badge, .console-badge {
                position: absolute;
                top: 10px;
                left: 10px;
                font-size: 0.65rem;
                padding: 3px 6px;
                transform: scale(0.9);
            }
            .console-badge {
                left: auto;
                right: 10px;
            }
        }

        /* 4. Modals (Product Details, Auth, Cart) */
        @media (max-width: 768px) {
            .modal {
                padding: 10px;
                align-items: flex-end; /* Drop to bottom on mobile like a bottom-sheet */
            }
            .modal-content {
                width: 100% !important;
                max-width: 100% !important;
                max-height: 90vh;
                margin: 0;
                border-radius: 20px 20px 0 0; /* Bottom sheet style */
                padding: 0 0 20px 0 !important;
                overflow-y: auto;
                animation: slideUp 0.3s ease-out;
            }
            @keyframes slideUp {
                from { transform: translateY(100%); }
                to { transform: translateY(0); }
            }
            .close-modal {
                top: 15px;
                left: 20px;
                font-size: 1.8rem;
                color: white;
                background: rgba(0,0,0,0.5);
                width: 35px;
                height: 35px;
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                z-index: 20;
            }
            .product-detail-header {
                padding: 20px 15px;
            }
            .product-detail-content {
                padding: 15px;
                grid-template-columns: 1fr;
                gap: 15px;
            }
            .variants-container {
                grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
            }
            #form-login, #form-register {
                padding: 0 20px;
            }
            .login-method {
                padding: 0 20px;
            }
        }

        /* 5. Trust Symbols & Sliders */
        @media (max-width: 600px) {
            .product-slider-container {
                border-radius: 10px;
                border-width: 1px;
                margin: 15px 0;
            }
            .slider-item {
                padding: 15px;
            }
            .slider-item h3 {
                font-size: 1.3rem;
                margin-bottom: 8px;
            }
            .slider-item p {
                font-size: 0.85rem;
            }
            .trust-symbols {
                gap: 10px;
            }
            .trust-item {
                min-width: 45%; /* 2 items per row */
                padding: 10px;
            }
            .trust-item i {
                font-size: 1.5rem;
            }
            .trust-section-ext > div {
                gap: 15px !important;
            }
            .trust-section-ext > div > div {
                width: 45% !important; /* 2 items per row */
            }
        }

        /* 6. Admin Panel & Forms */
        @media (max-width: 768px) {
            .dashboard-container {
                flex-direction: column;
                margin-top: 10px;
            }
            .sidebar {
                width: 100%;
                flex-direction: row;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                padding: 10px;
            }
            .sidebar button {
                flex: 0 0 auto;
                width: auto;
                margin-bottom: 0;
                font-size: 0.85rem;
                padding: 10px 15px;
            }
            .main-panel {
                padding: 15px;
            }
            .form-grid {
                grid-template-columns: 1fr !important;
                gap: 10px;
            }
            .full-width {
                grid-column: span 1 !important;
            }
            .dashboard-table-container {
                overflow-x: auto;
                border: none;
            }
            .dashboard-table {
                min-width: 600px; /* Force scroll on small screens */
            }
            .stats-grid {
                grid-template-columns: 1fr 1fr;
            }
            .stat-card {
                padding: 15px;
            }
            .stat-info p {
                font-size: 1.3rem;
            }
        }

        /* =========================================
        🔧 MOBILE FIT FIXES
        ========================================= */

        /* --- 1) کوتاه کردن دکمه سبد خرید --- */
        .nav-actions button[onclick="openCart()"],
        header .nav-actions > button:first-child {
            padding: 6px 10px !important;
            gap: 4px !important;
            min-width: auto !important;
            width: auto !important;
            flex: 0 0 auto !important;
            display: inline-flex !important;
            align-items: center !important;
        }
        .nav-actions button[onclick="openCart()"] i,
        header .nav-actions > button:first-child i {
            font-size: 0.95rem;
            margin: 0 !important;
        }
        .nav-actions button[onclick="openCart()"] .cart-badge,
        header .nav-actions > button:first-child .cart-badge {
            margin: 0 !important;
            padding: 1px 6px !important;
            font-size: 0.7rem !important;
        }

        /* جلوگیری از کشیده شدن سبد در موبایل */
        @media (max-width: 768px) {
            .nav-actions {
                flex-wrap: nowrap !important;
                width: auto !important;
            }
            .nav-actions button[onclick="openCart()"] {
                padding: 5px 8px !important;
                max-width: 70px !important;
            }
        }

        /* --- 2) کوچک کردن 4 دکمه ناوبری برای فیت شدن در موبایل --- */
        @media (max-width: 768px) {
            .category-nav {
                justify-content: space-between !important;
                flex-wrap: nowrap !important;
                overflow-x: visible !important;
                padding: 8px 6px !important;
                gap: 5px !important;
            }
            .category-nav button {
                min-width: 0 !important;
                flex: 1 1 0 !important;
                font-size: 0.72rem !important;
                padding: 7px 4px !important;
                gap: 4px !important;
            }
            .category-nav button i {
                font-size: 0.85rem;
            }
            .nav-actions .btn-nav {
                padding: 7px 10px !important;
                font-size: 0.78rem !important;
                min-height: 36px !important;
            }
        }

        @media (max-width: 480px) {
            .category-nav {
                padding: 6px 4px !important;
                gap: 4px !important;
            }
            .category-nav button {
                font-size: 0.65rem !important;
                padding: 6px 2px !important;
                gap: 3px !important;
            }
            .category-nav button i {
                font-size: 0.75rem;
            }
            .nav-actions .btn-nav {
                padding: 6px 8px !important;
                font-size: 0.72rem !important;
                min-height: 32px !important;
            }
            .nav-actions button[onclick="openCart()"] {
                padding: 6px 8px !important;
            }
        }

        /* --- 3) فیت کردن مودال ورود و سبد خرید در صفحه عمودی گوشی --- */
        @media (max-width: 768px) {
            .modal {
                align-items: center !important;
                padding: 8px !important;
            }
            .modal-content {
                max-height: 92vh !important;
                padding: 16px 14px !important;
                border-radius: 16px !important;
                animation: modalAppear 0.3s !important;
                overflow-y: auto !important;
                display: flex !important;
                flex-direction: column !important;
            }
            #auth-modal h2,
            #cart-modal h2 {
                font-size: 1.2rem !important;
                margin-bottom: 12px !important;
                margin-top: 0 !important;
            }
            #auth-modal .login-method {
                margin: 10px 0 !important;
                padding: 0 !important;
                gap: 8px !important;
            }
            #auth-modal .login-method button {
                padding: 8px !important;
                font-size: 0.8rem !important;
            }
            #form-login,
            #form-register {
                padding: 0 !important;
            }
            #form-login input,
            #form-register input {
                padding: 9px 12px !important;
                font-size: 0.9rem !important;
            }
            #form-login .checkbox-group {
                margin: 8px 0 !important;
                font-size: 0.8rem !important;
            }
            #form-login .checkbox-group label {
                font-size: 0.8rem !important;
            }
            #form-login > button,
            #form-register > button {
                padding: 10px !important;
                font-size: 0.95rem !important;
                margin-top: 12px !important;
            }
            #form-login > p,
            #form-register > p {
                margin-top: 10px !important;
                font-size: 0.8rem !important;
            }
            #password-field,
            #sms-field {
                margin-top: 8px !important;
            }
            #form-register .form-grid {
                grid-template-columns: 1fr !important;
            }
            #form-register .full-width {
                grid-column: span 1 !important;
            }
            #form-register .form-group {
                margin-bottom: 8px !important;
            }
            #form-register .form-grid {
                gap: 8px !important;
            }
            #form-register .form-group label {
                font-size: 0.8rem !important;
                margin-bottom: 4px !important;
            }
            #cart-modal #cart-items {
                max-height: 45vh !important;
                margin-bottom: 12px !important;
            }
            #cart-modal h3 {
                font-size: 0.95rem !important;
            }
            #cart-modal .btn-buy {
                padding: 8px 14px !important;
                font-size: 0.9rem !important;
            }
            .close-modal {
                top: 10px !important;
                left: 12px !important;
                font-size: 1.5rem !important;
                width: 30px !important;
                height: 30px !important;
            }
        }

        @media (max-width: 480px) {
            .modal-content {
                padding: 16px 12px !important;
            }
            #auth-modal h2,
            #cart-modal h2 {
                font-size: 1.1rem !important;
                margin-bottom: 10px !important;
            }
            #form-login input,
            #form-register input {
                padding: 8px 10px !important;
                font-size: 0.85rem !important;
            }
        }

        #form-register {
            animation: fadeIn 0.35s ease;
        }

        #form-register .form-group {
            margin-bottom: 14px;
        }

        #form-register input {
            border-radius: 12px;
            border: 1px solid #444;
            background: #1b1b1b;
            transition: 0.25s ease;
        }

        #form-register input:focus {
            border-color: var(--secondary-color);
            transform: translateY(-2px);
        }

        #form-register .btn-buy {
            margin-top: 15px;
            border-radius: 14px;
            font-size: 1rem;
            font-weight: bold;
        }

        .sidebar {
            background: linear-gradient(180deg,#161616,#101010);
            border-radius: 18px;
            border: 1px solid #2d2d2d;
        }

        .sidebar button {
            border-radius: 14px;
            margin-bottom: 10px;
            font-weight: 700;
            transition: all 0.25s ease;
        }

        .sidebar button:hover {
            transform: translateX(-4px);
        }

        .sidebar button.active {
            background: linear-gradient(45deg,#ff9800,#ff5722);
            color: white;
            border-right: none;
            box-shadow: 0 6px 18px rgba(255,87,34,0.35);
        }

        .profile-edit-container{
            background:#111827;
            border-radius:20px;
            padding:30px;
            box-shadow:0 10px 30px rgba(0,0,0,.25);
        }

        .profile-header{
            display:flex;
            align-items:center;
            gap:12px;
            margin-bottom:25px;
        }

        .profile-header i{
            font-size:2rem;
            color:#60a5fa;
        }

        .profile-header h2{
            color:#fff;
            margin:0;
        }

        .profile-grid{
            display:grid;
            grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
            gap:20px;
        }

        .form-group{
            display:flex;
            flex-direction:column;
        }

        .form-group label{
            color:#cbd5e1;
            margin-bottom:8px;
            font-size:.95rem;
        }

        .form-group input{
            background:#1f2937;
            border:1px solid #374151;
            color:white;
            padding:14px;
            border-radius:12px;
            outline:none;
            transition:.25s;
            font-size:15px;
        }

        .form-group input:focus{
            border-color:#60a5fa;
            box-shadow:0 0 0 3px rgba(96,165,250,.25);
        }

        .modern-save-btn{
            margin-top:30px;
            width:100%;
            border:none;
            background:linear-gradient(135deg,#2563eb,#3b82f6);
            color:white;
            padding:16px;
            border-radius:14px;
            font-size:16px;
            font-weight:bold;
            cursor:pointer;
            transition:.25s;
            display:flex;
            align-items:center;
            justify-content:center;
            gap:10px;
        }

        .modern-save-btn:hover{
            transform:translateY(-2px);
            box-shadow:0 10px 25px rgba(59,130,246,.35);
        }

        .modern-save-btn:active{
            transform:scale(.98);
        }

        .about-section h3 {
            color: var(--accent-color);
            margin-top: 20px;
            font-size: 1.2em;
        }


        /* ===== Toast & Modal Dialog ===== */
        #toast-container {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 100000;
            display: flex;
            flex-direction: column;
            gap: 10px;
            align-items: center;
            pointer-events: none;
            width: 90%;
            max-width: 420px;
        }
        .toast {
            background: #1a1a1a;
            color: #fff;
            padding: 14px 20px;
            border-radius: 12px;
            box-shadow: 0 6px 24px rgba(0,0,0,0.5);
            font-size: 0.95rem;
            font-weight: 600;
            text-align: center;
            width: 100%;
            border: 1px solid #333;
            animation: toastIn 0.3s ease;
            pointer-events: auto;
            direction: rtl;
            line-height: 1.6;
        }
        .toast.success { border-right: 4px solid #4caf50; }
        .toast.error   { border-right: 4px solid #ff5252; }
        .toast.warning { border-right: 4px solid #ffab00; }
        .toast.info    { border-right: 4px solid #29b6f6; }
        @keyframes toastIn {
            from { opacity: 0; transform: translateY(-20px); }
            to   { opacity: 1; transform: translateY(0); }
        }
        @keyframes toastOut {
            from { opacity: 1; transform: translateY(0); }
            to   { opacity: 0; transform: translateY(-20px); }
        }
        /* Custom confirm dialog */
        #confirm-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.7);
            z-index: 100001;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        #confirm-overlay.show { display: flex; }
        .confirm-box {
            background: #1a1a1a;
            border: 1px solid #444;
            border-radius: 16px;
            padding: 24px;
            max-width: 420px;
            width: 100%;
            direction: rtl;
            text-align: center;
            box-shadow: 0 10px 40px rgba(0,0,0,0.6);
        }
        .confirm-box .confirm-msg {
            color: #fff;
            font-size: 1rem;
            line-height: 1.8;
            margin-bottom: 20px;
            white-space: pre-line;
        }
        .confirm-box .confirm-actions {
            display: flex;
            gap: 12px;
            justify-content: center;
        }
        .confirm-box button {
            flex: 1;
            padding: 12px;
            border-radius: 10px;
            font-size: 0.95rem;
            font-weight: bold;
            cursor: pointer;
            border: none;
            font-family: inherit;
        }
        .confirm-box .btn-confirm-yes { background: #4caf50; color: #fff; }
        .confirm-box .btn-confirm-no  { background: #444; color: #fff; }

        /* === جمع‌وجور کردن مودال خرید محصول === */
        #product-detail-modal .product-detail-header { padding: 14px 16px !important; }
        #product-detail-modal .product-detail-header h2 { font-size: 1.15rem !important; }
        #product-detail-modal .product-detail-content { padding: 14px 16px !important; gap: 10px !important; }
        #product-detail-modal .product-detail-content img { height: 110px !important; }
        #product-detail-modal .detail-item { padding: 8px 0 !important; }
        #product-detail-modal .detail-label { font-size: 0.9rem !important; margin-bottom: 4px !important; }
        #product-detail-modal .variants-container { gap: 8px !important; margin-top: 6px !important; grid-template-columns: repeat(auto-fit, minmax(95px, 1fr)) !important; }
        #product-detail-modal .variant-btn { padding: 8px 6px !important; font-size: 0.85rem !important; border-radius: 8px !important; }
        #product-detail-modal #add-to-cart-btn { margin-top: 12px !important; padding: 12px !important; }
        @media (max-width: 768px) {
            #product-detail-modal .product-detail-content { display: block !important; }
            #product-detail-modal .product-detail-content > div { margin-bottom: 10px; }
            #product-detail-modal .variant-btn { padding: 7px 4px !important; font-size: 0.8rem !important; }
        }

        /* =========================================
        EMPTY CART — PERFECT CENTER ALIGNMENT
        ========================================= */

        #cart-modal #cart-items {
            width: 100% !important;
            padding: 0 !important;
            margin-left: auto !important;
            margin-right: auto !important;
            box-sizing: border-box !important;
        }

        #cart-modal .empty-cart-box {
            width: 100%;
            max-width: 100%;
            min-height: 360px;
            margin: 10px auto 20px auto;
            padding: 35px 20px;

            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;

            text-align: center;
            direction: rtl;
            box-sizing: border-box;

            border-radius: 22px;
            border: 1px solid rgba(255, 171, 0, 0.35);

            background:
                radial-gradient(
                    circle at top,
                    rgba(255, 171, 0, 0.18),
                    transparent 45%
                ),
                linear-gradient(
                    135deg,
                    rgba(20, 20, 20, 0.95),
                    rgba(5, 5, 5, 0.95)
                );

            box-shadow:
                0 0 25px rgba(255, 171, 0, 0.12),
                inset 0 0 25px rgba(255, 255, 255, 0.03);
        }

        #cart-modal .empty-cart-box > * {
            margin-left: auto;
            margin-right: auto;
            text-align: center;
        }

        #cart-modal .empty-cart-icon {
            width: 85px;
            height: 85px;
            margin-bottom: 18px;

            display: flex;
            align-items: center;
            justify-content: center;

            flex-shrink: 0;
            border-radius: 50%;

            background: linear-gradient(
                135deg,
                rgba(213, 0, 0, 0.25),
                rgba(255, 171, 0, 0.25)
            );

            border: 1px solid rgba(255, 171, 0, 0.45);
            box-shadow: 0 0 25px rgba(213, 0, 0, 0.25);

            color: #8ec5ff;
            font-size: 2.4rem;
        }

        #cart-modal .empty-cart-title {
            width: 100%;
            margin-bottom: 12px;

            color: var(--secondary-color);
            font-size: 1.35rem;
            line-height: 1.6;

            text-align: center !important;
            text-shadow: 0 0 12px rgba(255, 171, 0, 0.35);
        }

        #cart-modal .empty-cart-text {
            width: 100%;
            max-width: 390px;
            margin-bottom: 24px;

            color: #aaa;
            font-size: 0.95rem;
            line-height: 2;

            text-align: center !important;
        }

        #cart-modal .empty-cart-store-btn {
            min-width: 210px;
            max-width: 100%;
            margin: 0 auto;

            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 9px;

            padding: 13px 26px;

            background: linear-gradient(
                135deg,
                var(--accent-color),
                #ff9800
            );

            color: white;
            border: none;
            border-radius: 14px;

            cursor: pointer;
            font-family: inherit;
            font-size: 1rem;
            font-weight: 900;

            box-shadow: 0 8px 25px rgba(213, 0, 0, 0.35);
            transition: transform 0.25s ease, box-shadow 0.25s ease;
        }

        #cart-modal .empty-cart-store-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 30px rgba(213, 0, 0, 0.5);
        }

        @media (max-width: 480px) {
            #cart-modal .empty-cart-box {
                min-height: 340px;
                padding: 28px 14px;
            }

            #cart-modal .empty-cart-text {
                font-size: 0.88rem;
            }

            #cart-modal .empty-cart-store-btn {
                min-width: 190px;
                padding: 12px 20px;
            }
        }

/* ===== بخش CSS شماره 2، استخراج‌شده از index.html ===== */
@keyframes loading-bar {
                    0% { transform:translateX(-100%); }
                    100% { transform:translateX(100%); }
                }
