        /* فونت‌ها */
        @font-face {
            font-family: 'iransans';
            src: url('../fonts/ir-s.woff') format('woff');
        }

        /* متغیرهای رنگی */
        :root {
            /* تم تاریک (پیش‌فرض) */
            --bg-color: #000000;
            --surface-color: #161618;
            --surface-color-light: #222224;
            --text-color: #f5f5f7;
            --text-muted: #86868b;
            --glass-bg: rgba(22, 22, 24, 0.65);
            --glass-border: rgba(255, 255, 255, 0.06);
            --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
            --primary: #2997ff;
            --primary-hover: #0071e3;
            --accent-1: #ff3b30;
            --accent-2: #34c759;
            --accent-3: #ff9f0a;
            --theme-green: #197B67; /* رنگ سبز درخواستی */
            --btn-text: #fff;
            --card-hover-transform: translateY(-6px) scale(1.015);
        }

        /* تم روشن */
        body.light-mode {
            --bg-color: #f5f5f7;
            --surface-color: #ffffff;
            --surface-color-light: #fdfdfd;
            --text-color: #1d1d1f;
            --text-muted: #86868b;
            --glass-bg: rgba(255, 255, 255, 0.7);
            --glass-border: rgba(0, 0, 0, 0.05);
            --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
            --primary: #0071e3;
            --primary-hover: #005bb5;
        }

        * {
            box-sizing: border-box;
            -webkit-font-smoothing: antialiased;
        }

        body {
            margin: 0;
            font-family: 'iransans', system-ui, -apple-system, sans-serif;
            background-color: var(--bg-color);
            color: var(--text-color);
            transition: background-color 0.4s ease, color 0.4s ease;
            line-height: 1.5;
            font-size: 15px;
            overflow-x: hidden;
        }

        a { text-decoration: none; color: inherit; }
        ul { list-style: none; padding: 0; margin: 0; }
        .container { max-width: 1500px; margin: 0 auto; padding: 0 20px; }

        /* افکت شیشه‌ای */
        .glass-effect {
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            box-shadow: var(--glass-shadow);
        }

        .text-gradient {
            background: linear-gradient(90deg, var(--text-color), var(--primary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        /* ----- هدر ----- */
        .main-header {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            width: calc(100% - 40px);
            max-width: 1500px;
            border-radius: 100px;
            z-index: 1000;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .header-inner { display: flex; justify-content: space-between; align-items: center; height: 60px; padding: 0 25px; }
        .logo { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; display: flex; align-items: center; gap: 8px;}
        .logo i { color: var(--primary); font-size: 24px;}

        /* استایل‌های منو و دراپ‌داون */
        nav ul { display: flex; gap: 25px; align-items: center; }
        nav > ul > li { position: relative; }
        nav a { font-size: 13px; font-weight: 500; color: var(--text-color); opacity: 0.8; transition: opacity 0.3s, color 0.3s; display: flex; align-items: center; gap: 5px; }
        nav a:hover { opacity: 1; color: var(--primary); }
        
        /* زیرمنوها (اصلاح شده به سبک کارتی، مدرن و سفید) */
        nav ul .dropdown {
            display: none; 
            position: absolute; 
            top: calc(100% + 15px); 
            right: 0;
            background: #ffffff; /* پس‌زمینه کاملاً سفید */
            border: 1px solid #f0f0f0; 
            border-radius: 20px; /* گوشه‌های گردتر کارتی */
            padding: 15px; 
            min-width: max-content; 
            flex-direction: row; 
            flex-wrap: wrap; 
            gap: 10px; 
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), 0 5px 15px rgba(0, 0, 0, 0.04); /* سایه نرم و مدرن */
            opacity: 0;
            transform: translateY(15px) scale(0.98); /* افکت ورود */
            transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            z-index: 999;
        }
        
        /* پل نامرئی برای جلوگیری از بسته شدن منو هنگام حرکت موس */
        nav ul .dropdown::before {
            content: '';
            position: absolute;
            top: -20px;
            left: 0;
            width: 100%;
            height: 20px;
        }

        nav ul li:hover > .dropdown { 
            display: flex; 
            opacity: 1;
            transform: translateY(0) scale(1);
        }
        nav ul .dropdown li { 
            width: auto; 
            position: relative; 
        }
        
        /* کارت‌های داخلی زیرمنو با افکت پویا */
        nav ul .dropdown a { 
            padding: 15px; 
            display: flex; 
            flex-direction: column; 
            align-items: center; 
            justify-content: center;
            text-align: center;
            gap: 10px; 
            border-radius: 14px; 
            background: #ffffff;
            color: #1d1d1f; /* رنگ متن تیره برای خوانایی روی سفید */
            border: 1px solid transparent;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }
        
        nav ul .dropdown a:hover { 
            background: #f8f9fa; /* تغییر رنگ ملایم */
            color: var(--primary); 
            transform: translateY(-4px); /* افکت پرش به بالا */
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06); /* سایه کارت در هاور */
            border-color: #f0f0f0;
        }
        
        /* استایل مخصوص عکس‌های داخل زیرمنو */
        nav ul .dropdown a img {
            width: 100px; 
            height: 75px; 
            object-fit: contain; 
            border-radius: 8px;
            display: block;
            transition: transform 0.3s ease;
        }

        nav ul .dropdown a:hover img {
            transform: scale(1.05); /* زوم ملایم عکس در هاور */
        }
        
        /* زیرمنوی سطح 3 به بعد */
        nav ul .dropdown .dropdown { 
            top: 100%; 
            left: 50%; 
            right: auto;
            transform: translateX(-50%) translateY(15px) scale(0.98); 
            margin-top: 10px; 
            margin-right: 0;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12); /* سایه عمیق‌تر برای عمق دادن */
        }
        
        /* انیمیشن هاور برای زیرمنوی سطح 3 */
        nav ul .dropdown li:hover > .dropdown {
            transform: translateX(-50%) translateY(0) scale(1);
        }

        /* پل نامرئی زیرمنوی سطح 3 */
        nav ul .dropdown .dropdown::before { 
            top: -15px; 
            left: 0; 
            width: 100%; 
            height: 15px; 
        }

        .user-actions { display: flex; align-items: center; gap: 10px; }

        .icon-btn {
            background: transparent; border: none; color: var(--text-color);
            font-size: 16px; cursor: pointer; width: 36px; height: 36px;
            border-radius: 50%; display: flex; justify-content: center; align-items: center;
            transition: background 0.3s; position: relative;
        }
        .icon-btn:hover { background: var(--glass-border); }
        .badge { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; background: var(--accent-1); border-radius: 50%; }

        .btn {
            padding: 8px 18px; border-radius: 100px; font-size: 13px; font-weight: 600;
            background: var(--primary); color: var(--btn-text); border: none;
            cursor: pointer; transition: all 0.3s ease; display: inline-flex;
            align-items: center; justify-content: center; gap: 8px;
        }
        .btn:hover { background: var(--primary-hover); transform: scale(1.02); }
        .btn-outline { background: transparent; border: 1px solid var(--glass-border); color: var(--text-color); }
        .btn-outline:hover { background: var(--glass-border); }
        .mobile-menu-btn { display: none; font-size: 20px; cursor: pointer; color: var(--text-color); border:none; background:none; }

        /* ----- اسلایدر (جذاب‌تر و خوشرنگ‌تر) ----- */
        .slider-container {
            margin-top: 100px;
            width: 100%;
            height: 500px;
            border-radius: 32px;
            overflow: hidden;
            position: relative;
            background: var(--bg-color);
            border: 1px solid var(--glass-border);
            box-shadow: var(--glass-shadow);
        }
        
        .slider-track {
            display: flex;
            height: 100%;
            transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
        }

        .slide {
            min-width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding: 40px;
            position: relative;
            z-index: 1;
            overflow: hidden;
        }

        /* پس‌زمینه‌های جذاب برای اسلایدرها */
        .slide-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.5; filter: blur(60px); }
        .bg-1 .slide-bg { background: radial-gradient(circle at 30% 50%, #0071e3 0%, transparent 60%), radial-gradient(circle at 70% 50%, #00c6ff 0%, transparent 60%); }
        .bg-2 .slide-bg { background: radial-gradient(circle at 30% 50%, #8a2387 0%, transparent 60%), radial-gradient(circle at 70% 50%, #e94057 0%, transparent 60%); }
        .bg-3 .slide-bg { background: radial-gradient(circle at 30% 50%, var(--theme-green) 0%, transparent 60%), radial-gradient(circle at 70% 50%, #f2c94c 0%, transparent 60%); }

        .slide h1 { font-size: 3.2rem; font-weight: 800; letter-spacing: -1.5px; margin: 0 0 15px; line-height: 1.1; text-shadow: 0 4px 20px rgba(0,0,0,0.5); }
        body.light-mode .slide h1 { text-shadow: none; }
        .slide h1 span { color: #fff; }
        .bg-1 h1 span { color: #80c4ff; }
        .bg-2 h1 span { color: #ff9ecd; }
        .bg-3 h1 span { color: #a1ebd9; }
        
        .slide p { font-size: 1.1rem; color: rgba(255,255,255,0.85); margin-bottom: 30px; max-width: 600px; font-weight: 400; text-shadow: 0 2px 10px rgba(0,0,0,0.5);}
        body.light-mode .slide p { color: var(--text-color); text-shadow: none;}
        
        .slider-dots { position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
        .dot { width: 40px; height: 4px; background: rgba(255,255,255,0.3); border-radius: 4px; cursor: pointer; transition: 0.3s; }
        .dot.active { background: #fff; width: 60px; box-shadow: 0 0 10px rgba(255,255,255,0.5); }

        /* ----- سکشن‌ها و گریدها ----- */
        .section-header { display: flex; justify-content: space-between; align-items: flex-end; margin: 80px 0 30px; padding-bottom: 15px; border-bottom: 1px solid var(--glass-border); }
        .section-header-titles h2 { font-size: 1.8rem; font-weight: 700; margin: 0 0 5px; letter-spacing: -0.5px;}
        .section-header-titles p { color: var(--text-muted); font-size: 0.95rem; margin: 0;}
        .section-link { font-size: 0.9rem; color: var(--primary); font-weight: 500; display: flex; align-items: center; gap: 5px; }
        .section-link:hover { text-decoration: underline; }

        .grid-6 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-bottom: 40px; }
        .grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-bottom: 40px; }
        
        /* کارت‌های دسته‌بندی جذاب‌تر */
        .cat-card {
            padding: 30px 15px;
            border-radius: 24px;
            text-align: center;
            background: linear-gradient(135deg, rgba(25, 123, 103, 0.05) 0%, var(--surface-color) 100%);
            border: 1px solid rgba(25, 123, 103, 0.15);
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }
        .cat-card::before {
            content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            background: linear-gradient(135deg, rgba(25, 123, 103, 0.2) 0%, transparent 100%);
            opacity: 0; transition: opacity 0.4s; z-index: 0;
        }
        .cat-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(25, 123, 103, 0.15); border-color: var(--theme-green); }
        .cat-card:hover::before { opacity: 1; }
        .cat-card i { font-size: 42px; color: var(--theme-green); margin-bottom: 15px; transition: transform 0.4s, color 0.3s; position: relative; z-index: 1;}
        .cat-card:hover i { transform: scale(1.1) rotate(5deg); text-shadow: 0 5px 15px rgba(25, 123, 103, 0.4); }
        .cat-card h3 { font-size: 1rem; margin: 0; font-weight: 600; position: relative; z-index: 1; }

        /* کارت‌های محصول و کپسول سبد خرید */
        .product-card {
            border-radius: 24px;
            padding: 15px;
            background: var(--surface-color);
            border: 1px solid var(--glass-border);
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            display: flex;
            flex-direction: column;
        }
        .product-card:hover { transform: var(--card-hover-transform); box-shadow: var(--glass-shadow); border-color: rgba(25, 123, 103, 0.3);}
        
        .product-img-box {
            height: 190px;
            background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(0,0,0,0.05) 100%);
            border-radius: 16px;
            margin-bottom: 15px;
            display: flex; justify-content: center; align-items: center;
            position: relative; overflow: hidden;
        }
        .product-img-box img { max-width: 80%; max-height: 80%; object-fit: contain; transition: transform 0.5s ease; }
        .product-img-box i { font-size: 60px; color: var(--text-muted); opacity: 0.3; transition: transform 0.5s ease; }
        .product-card:hover .product-img-box i, .product-card:hover .product-img-box img { transform: scale(1.08); color: var(--theme-green); opacity: 0.8;}
        
        .badge-special { position: absolute; top: 10px; right: 10px; background: var(--accent-1); color: #fff; font-size: 11px; padding: 4px 8px; border-radius: 8px; font-weight: bold;}

        .product-info { display: flex; flex-direction: column; flex-grow: 1; }
        .product-info h3 { font-size: 1.05rem; margin: 0 0 8px; font-weight: 600; line-height: 1.4; }
        .product-desc { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
        
        .price { font-size: 1.15rem; font-weight: 700; color: var(--text-color); margin-bottom: 10px;}
        .price span { font-size: 0.75rem; font-weight: 400; color: var(--text-muted); }
        .price del { display: block; font-size: 0.8rem; color: var(--text-muted); font-weight: normal; margin-bottom: 2px;}

        /* دکمه کپسولی خرید */
        .cart-action-capsule {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: var(--surface-color-light);
            border-radius: 50px;
            padding: 5px;
            border: 1px solid var(--glass-border);
            margin-top: auto;
        }
        
        .qty-control {
            display: flex;
            align-items: center;
            padding: 0 5px;
        }
        
        .qty-btn {
            background: transparent; border: none; color: var(--text-color); font-size: 18px; 
            cursor: pointer; width: 28px; height: 28px; border-radius: 50%; 
            display: flex; align-items: center; justify-content: center; transition: 0.2s;
        }
        .qty-btn:hover { background: rgba(128,128,128,0.2); }
        
        .qty-input {
            width: 30px; text-align: center; border: none; background: transparent; 
            color: var(--text-color); font-weight: bold; font-family: inherit; font-size: 14px;
        }
        .qty-input:focus { outline: none; }

        .add-to-cart-btn {
            background: linear-gradient(90deg, var(--theme-green), #209e84);
            color: #fff;
            border: none;
            border-radius: 50px;
            padding: 8px 18px;
            font-size: 0.85rem;
            font-weight: bold;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            font-family: inherit;
        }
        .add-to-cart-btn:hover {
            box-shadow: 0 6px 15px rgba(25, 123, 103, 0.4);
            transform: scale(1.03);
        }

        /* انیمیشن متغیر برای بنر */
        @keyframes gradientBG {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        /* بنر ویژه بین سکشن‌ها با گرادیانت 197B67 */
        .feature-banner {
            border-radius: 28px; padding: 45px 60px; display: flex; align-items: center; justify-content: space-between;
            background: linear-gradient(-45deg, #0f4a3e, var(--theme-green), #24b89a, var(--theme-green));
            background-size: 400% 400%;
            animation: gradientBG 10s ease infinite;
            border: none; margin: 60px 0; position: relative; overflow: hidden;
            color: #ffffff;
            box-shadow: 0 20px 40px rgba(25, 123, 103, 0.25);
        }
        .feature-content { max-width: 55%; z-index: 2; }
        .feature-content h2 { font-size: 2.2rem; margin: 0 0 15px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.2);}
        .feature-content p { color: rgba(255,255,255,0.85); font-size: 1rem; margin-bottom: 25px; line-height: 1.8;}
        .feature-banner .btn { background: #ffffff; color: var(--theme-green); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
        .feature-banner .btn:hover { background: #f0fdfa; transform: translateY(-3px); }
        .feature-icon { font-size: 250px; position: absolute; left: -30px; bottom: -50px; opacity: 0.1; z-index: 1; transform: rotate(-15deg); color: #fff; }

        /* مقالات / وبلاگ */
        .article-card { border-radius: 24px; overflow: hidden; background: var(--surface-color); border: 1px solid var(--glass-border); transition: all 0.4s ease; }
        .article-card:hover { transform: translateY(-5px); box-shadow: var(--glass-shadow); }
        .article-img { height: 180px; background: var(--surface-color-light); display: flex; justify-content: center; align-items: center; }
        .article-img i { font-size: 40px; color: var(--text-muted); opacity: 0.5; }
        .article-content { padding: 20px; }
        .article-date { font-size: 0.8rem; color: var(--theme-green); margin-bottom: 8px; font-weight: 500; }
        .article-content h3 { font-size: 1.1rem; margin: 0 0 10px; }
        .article-content p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 15px; }
        .article-link { font-size: 0.85rem; font-weight: 600; color: var(--text-color); display: flex; align-items: center; gap: 5px; }
        .article-link i { font-size: 0.7rem; transition: transform 0.3s; }
        .article-card:hover .article-link i { transform: translateX(-5px); color: var(--theme-green); }

        /* ریسپانسیو */
        @media (max-width: 1200px) {
            .slide h1 { font-size: 2.5rem; }
            .feature-banner { flex-direction: column; text-align: center; padding: 40px 20px; }
            .feature-content { max-width: 100%; }
            .feature-icon { display: none; }
        }
        @media (max-width: 768px) {
            .main-header { width: calc(100% - 20px); top: 10px; border-radius: 20px; }
            .slider-container { margin-top: 85px; height: 400px; border-radius: 24px; }
            .slide h1 { font-size: 1.8rem; }
            .slide p { font-size: 0.95rem; }
            .mobile-menu-btn { display: block; }
            nav {
                position: absolute; top: 65px; left: 0; right: 0;
                background: var(--glass-bg); backdrop-filter: blur(24px); border: 1px solid var(--glass-border);
                border-radius: 20px; padding: 20px; display: none; text-align: center;
                max-height: 70vh; overflow-y: auto;
            }
            nav.active { display: block; }
            nav > ul { flex-direction: column; gap: 15px; }
            /* استایل دراپ‌داون در موبایل */
            nav ul .dropdown { position: static; display: flex; opacity: 1; transform: none; background: rgba(0,0,0,0.1); box-shadow: none; margin-top: 10px; padding: 5px; }
            .user-actions .btn:not(.icon-btn) { display: none; }
        }
/* مسیر راهنما */
.breadcrumb {
    padding: 20px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 100px; /* فاصله از هدر */
}
.breadcrumb a {
    color: var(--text-color);
    transition: color 0.3s;
}
.breadcrumb a:hover {
    color: var(--theme-green);
}

/* ساختار کلی بخش بالا */
.product-top-section {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 60px;
}

/* ستون سمت راست (اطلاعات) و چپ (گالری) */
.product-summary {
    flex: 1 1 50%;
}
.product-gallery {
    flex: 1 1 40%;
}

/* --- استایل‌های ستون اطلاعات (سمت راست) --- */
.product-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.product-meta-top {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.product-rating i {
    color: #fbbc04; /* رنگ طلایی ستاره‌ها */
}
.product-brand strong {
    color: var(--text-color);
}

.product-price-box {
    margin-bottom: 25px;
}
.product-price-box del {
    font-size: 1.1rem;
    color: var(--text-muted);
}
.product-price-box .current-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--theme-green);
}
.product-price-box .current-price span {
    font-size: 1.2rem;
    font-weight: 500;
}

.product-short-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--glass-border);
}
.product-short-desc ul {
    list-style-type: disc;
    margin-right: 20px;
    margin-top: 15px;
}

/* دکمه‌های اکشن (سبد خرید و تعداد) */
.product-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.qty-control-large {
    display: flex;
    align-items: center;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    height: 50px;
    padding: 0 10px;
}
.qty-btn-large {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-color);
    width: 30px;
}
.qty-input-large {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    color: var(--text-color);
    font-size: 16px;
    font-weight: bold;
}

.btn-add-to-cart-large {
    flex-grow: 1;
    height: 50px;
    border-radius: 50px;
    background: var(--theme-green);
    color: #fff;
    border: none;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.btn-add-to-cart-large:hover {
    background: #156957;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(25, 123, 103, 0.3);
}

.btn-wishlist {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: transparent;
    color: var(--text-color);
    font-size: 20px;
    cursor: pointer;
    transition: 0.3s;
}
.btn-wishlist:hover {
    background: var(--glass-border);
    color: var(--accent-1);
}

.product-meta-bottom {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.product-meta-bottom p {
    margin: 8px 0;
}
.product-meta-bottom span {
    color: var(--text-color);
    font-weight: 500;
}

/* --- استایل‌های ستون گالری (سمت چپ) --- */
.main-image-box {
    width: 100%;
    border-radius: 20px;
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.main-image-box img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.5s ease;
    cursor: zoom-in;
}
.main-image-box:hover img {
    transform: scale(1.1);
}

.gallery-thumbnails {
    display: flex;
    gap: 15px;
    overflow-x: auto;
}
.gallery-thumbnails .thumb {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: var(--surface-color);
    border: 2px solid transparent;
    cursor: pointer;
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}
.gallery-thumbnails .thumb img {
    max-width: 100%;
    max-height: 100%;
}
.gallery-thumbnails .thumb.active,
.gallery-thumbnails .thumb:hover {
    border-color: var(--theme-green);
}

/* --- تب‌های پایین (توضیحات و نظرات) --- */
.product-bottom-section {
    background: var(--surface-color);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid var(--glass-border);
    margin-bottom: 60px;
}

.product-tabs {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 30px;
}
.tab-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-muted);
    padding-bottom: 15px;
    cursor: pointer;
    position: relative;
    font-family: inherit;
    transition: 0.3s;
}
.tab-btn.active {
    color: var(--text-color);
}
.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--theme-green);
    transition: width 0.3s ease;
}
.tab-btn.active::after {
    width: 100%;
}

.tab-content {
    display: none;
    line-height: 1.8;
    color: var(--text-color);
}
.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-content h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
}

/* نظرات */
.review-item {
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}
.review-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.add-review-form {
    margin-top: 40px;
    background: var(--surface-color-light);
    padding: 30px;
    border-radius: 16px;
}
.add-review-form textarea {
    width: 100%;
    height: 120px;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--bg-color);
    color: var(--text-color);
    font-family: inherit;
    margin-bottom: 15px;
    resize: vertical;
}

/* ریسپانسیو صفحه محصول */
@media (max-width: 992px) {
    .product-top-section { flex-direction: column-reverse; } /* در موبایل عکس بیاید بالا */
    .product-summary, .product-gallery { flex: 1 1 100%; }
    .product-actions { flex-wrap: wrap; }
    .btn-add-to-cart-large { width: 100%; }
}
 /* جلوگیری از کشیده شدن محصولات در صورتی که تعدادشان کمتر از 4 تا باشد */
        .grid-4 {
            display: grid;
            grid-template-columns: repeat(4, 1fr) !important;
            gap: 20px;
            align-items: start;
        }
        /* ریسپانسیو برای تبلت و موبایل */
        @media (max-width: 992px) {
            .grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
        }
        @media (max-width: 576px) {
            .grid-4 { grid-template-columns: 1fr !important; }
        }

        /* --- تغییرات جدید: استایل‌های محصول کارتی و دکمه بازگشت به بالا --- */

        /* لینک کارتی محصول */
        .product-link-wrapper {
            text-decoration: none;
            color: inherit;
            display: block;
        }
        /* بزرگ‌تر شدن عکس محصول و افکت هاور */
        .product-img-box {
            height: 240px !important; /* ارتفاع بزرگتر برای عکس */
            width: 100%;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .product-img-box img {
            width: 100% !important;
            height: 100% !important;
            object-fit: contain !important;
            transition: transform 0.4s ease;
        }
        .product-card:hover .product-img-box img {
            transform: scale(1.08); /* زوم ملایم هنگام هاور */
        }
        .cart-action-container {
            padding: 0 15px 15px 15px; /* تنظیم پدینگ برای بخش افزودن به سبد خرید */
        }

        /* استایل دکمه بازگشت به بالا با نوار پیمایش */
        .progress-wrap {
            position: fixed;
            right: 30px;
            bottom: 30px;
            height: 50px;
            width: 50px;
            cursor: pointer;
            display: block;
            border-radius: 50px;
            box-shadow: inset 0 0 0 2px rgba(0, 113, 227, 0.2);
            z-index: 10000;
            opacity: 0;
            visibility: hidden;
            transform: translateY(15px);
            transition: all 200ms linear;
        }
        .progress-wrap.active-progress {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        .progress-wrap::after {
            position: absolute;
            content: '\f062'; /* آیکون فلش بالا FontAwesome */
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            text-align: center;
            line-height: 50px;
            font-size: 20px;
            color: var(--theme-green, #0071e3);
            left: 0;
            top: 0;
            height: 50px;
            width: 50px;
            cursor: pointer;
            display: block;
            z-index: 1;
            transition: all 200ms linear;
        }
        .progress-wrap:hover::after {
            color: #fff;
        }
        .progress-wrap::before {
            position: absolute;
            content: '';
            left: 0;
            top: 0;
            height: 50px;
            width: 50px;
            background: var(--theme-green, #0071e3);
            border-radius: 50%;
            z-index: 0;
            opacity: 0;
            transition: all 200ms linear;
        }
        .progress-wrap:hover::before {
            opacity: 1;
        }
        .progress-wrap svg path {
            fill: none;
        }
        .progress-wrap svg.progress-circle path {
            stroke: var(--theme-green, #0071e3);
            stroke-width: 4;
            box-sizing: border-box;
            transition: all 200ms linear;
        }