        :root {
            --accent: #c6f91f;
            --accent-dark: #a8d418;
            --dark: #171717;
            --dark-800: #262626;
            --gray-50: #fafafa;
            --gray-100: #f5f5f5;
            --gray-200: #e5e5e5;
            --gray-300: #d4d4d4;
            --gray-400: #a3a3a3;
            --gray-500: #737373;
            --gray-600: #525252;
            --gray-700: #404040;
            --white: #ffffff;
            --danger: #ef4444;
        }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: 'Vazirmatn', sans-serif;
            background: var(--gray-50);
            color: var(--dark);
            line-height: 1.7;
        }

        /* ===== NAVBAR ===== */
        .navbar-main {
            background: var(--white) !important;
            box-shadow: 0 1px 4px rgba(0,0,0,0.06);
            padding: .7rem 0;
            position: sticky; top: 0; z-index: 1050;
        }
        .navbar-brand-custom {
            display: flex; align-items: center; gap: 10px; text-decoration: none;
        }
        .brand-logo {
            width: 44px; height: 44px; background: var(--dark); border-radius: 12px;
            display: flex; align-items: center; justify-content: center;
            color: var(--accent); font-size: 20px; font-weight: 800;
        }
        .brand-text { font-size: 1.25rem; font-weight: 700; color: var(--dark); }
        .nav-link-custom {
            font-size: .92rem; font-weight: 500; color: var(--gray-700) !important;
            padding: .5rem .9rem !important; transition: color .2s; cursor: pointer;
        }
        .nav-link-custom:hover { color: var(--dark) !important; }
        .nav-icons { display: flex; align-items: center; gap: 6px; }
        .nav-icon-btn {
            width: 40px; height: 40px; border-radius: 10px;
            border: 1.5px solid var(--gray-200); background: var(--white);
            display: flex; align-items: center; justify-content: center;
            color: var(--gray-600); text-decoration: none;
            transition: all .2s; position: relative; font-size: .95rem;
        }
        .nav-icon-btn:hover { background: var(--dark); border-color: var(--dark); color: var(--white); }
        .cart-badge {
            position: absolute; top: -4px; left: -4px;
            width: 18px; height: 18px; background: var(--danger); color: var(--white);
            border-radius: 50%; font-size: .65rem;
            display: flex; align-items: center; justify-content: center; font-weight: 700;
        }

        /* ===== MEGA MENU ===== */
        .mega-menu {
            width: 560px !important; border-radius: 16px;
            box-shadow: 0 20px 50px rgba(0,0,0,0.12);
            padding: 0 !important; overflow: hidden;
            margin-top: 10px !important; border: none;
        }
        .mega-menu-list { list-style: none; padding: 8px; margin: 0; }
        .mega-menu-list li a {
            display: flex; align-items: center; justify-content: space-between;
            padding: 11px 16px; border-radius: 10px; color: var(--gray-700);
            text-decoration: none; font-size: .9rem; font-weight: 500; transition: all .2s;
        }
        .mega-menu-list li a:hover, .mega-menu-list li a.active {
            background: var(--gray-100); color: var(--dark);
        }
        .mega-menu-list li a i.fa-chevron-left { font-size: .65rem; color: var(--gray-400); transition: color .2s; }
        .mega-menu-list li a:hover i.fa-chevron-left { color: var(--dark); }
        .mega-submenu {
            display: none; padding: 20px; border-right: 1px solid var(--gray-200);
            min-height: 100%; background: var(--gray-50);
        }
        .mega-submenu.active { display: block; }
        .mega-submenu-title { font-size: .8rem; color: var(--gray-400); font-weight: 500; margin-bottom: 12px; letter-spacing: .5px; }
        .mega-submenu a { display: block; padding: 7px 0; color: var(--gray-600); text-decoration: none; font-size: .88rem; transition: all .2s; }
        .mega-submenu a:hover { color: var(--dark); padding-right: 6px; }

        /* ===== TOP BAR ===== */
        .top-bar { background: var(--dark); color: var(--gray-400); font-size: .8rem; padding: 8px 0; }
        .top-bar a { color: var(--gray-400); text-decoration: none; transition: color .2s; }
        .top-bar a:hover { color: var(--accent); }

        /* ===== BREADCRUMB ===== */
        .breadcrumb-bar { background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 14px 0; }
        .breadcrumb-bar .breadcrumb { margin: 0; font-size: .84rem; }
        .breadcrumb-bar .breadcrumb-item a { color: var(--gray-500); text-decoration: none; transition: color .2s; }
        .breadcrumb-bar .breadcrumb-item a:hover { color: var(--dark); }
        .breadcrumb-bar .breadcrumb-item.active { color: var(--dark); font-weight: 500; }
        .breadcrumb-bar .breadcrumb-item + .breadcrumb-item::before { color: var(--gray-300); }

        /* ===== PRODUCT DETAIL ===== */
        .product-detail-section { padding: 40px 0; }

        /* گالری تصاویر */
        .gallery-main {
            width: 100%; aspect-ratio: 1; border-radius: 20px; overflow: hidden;
            background: var(--gray-100); cursor: zoom-in; position: relative;
            border: 1px solid var(--gray-200);
        }
        .gallery-main img {
            width: 100%; height: 100%; object-fit: cover;
            transition: transform .4s cubic-bezier(.16,1,.3,1);
        }
        .gallery-main:hover img { transform: scale(1.05); }

        .gallery-thumbs {
            display: flex; gap: 10px; margin-top: 12px;
        }
        .gallery-thumb {
            width: 80px; height: 80px; border-radius: 12px; overflow: hidden;
            border: 2px solid var(--gray-200); cursor: pointer;
            transition: all .2s; background: var(--gray-100); flex-shrink: 0;
        }
        .gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
        .gallery-thumb:hover { border-color: var(--gray-400); }
        .gallery-thumb.active { border-color: var(--dark); }

        /* لایت‌باکس */
        .lightbox-overlay {
            display: none; position: fixed; inset: 0;
            background: rgba(0,0,0,0.92); z-index: 9999;
            align-items: center; justify-content: center;
            padding: 40px;
            opacity: 0; transition: opacity .3s;
        }
        .lightbox-overlay.show { display: flex; opacity: 1; }
        .lightbox-close {
            position: absolute; top: 20px; left: 20px;
            width: 48px; height: 48px; border-radius: 50%;
            background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
            color: var(--white); font-size: 1.2rem; cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            transition: all .2s; z-index: 10;
        }
        .lightbox-close:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }
        .lightbox-img {
            max-width: 100%; max-height: 85vh; border-radius: 16px;
            object-fit: contain; animation: lbZoom .4s cubic-bezier(.16,1,.3,1);
        }
        @keyframes lbZoom { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

        .lightbox-nav {
            position: absolute; top: 50%; transform: translateY(-50%);
            width: 50px; height: 50px; border-radius: 50%;
            background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
            color: var(--white); font-size: 1rem; cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            transition: all .2s;
        }
        .lightbox-nav:hover { background: rgba(255,255,255,0.18); }
        .lightbox-prev { right: 20px; }
        .lightbox-next { left: 20px; }

        /* اطلاعات محصول */
        .product-detail-info { padding-right: 10px; }
        .pd-category {
            font-size: .82rem; color: var(--gray-400); font-weight: 500;
            display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px;
        }
        .pd-name {
            font-size: 1.65rem; font-weight: 700; color: var(--dark);
            line-height: 1.5; margin-bottom: 14px;
        }
        .pd-rating {
            display: flex; align-items: center; gap: 6px; margin-bottom: 18px;
        }
        .pd-rating i { font-size: .85rem; color: #fbbf24; }
        .pd-rating .rating-text { font-size: .85rem; color: var(--gray-500); }
        .pd-rating .rating-text strong { color: var(--dark); }

        .pd-price-box {
            background: var(--gray-100); border-radius: 14px;
            padding: 18px 22px; margin-bottom: 20px;
        }
        .pd-price-main {
            font-size: 1.8rem; font-weight: 800; color: var(--dark);
        }
        .pd-price-main small { font-size: .85rem; color: var(--gray-500); font-weight: 400; margin-right: 4px; }
        .pd-price-old {
            font-size: .9rem; color: var(--gray-400); text-decoration: line-through; margin-top: 4px;
        }
        .pd-discount-badge {
            display: inline-block; background: var(--danger); color: var(--white);
            padding: 3px 10px; border-radius: 8px; font-size: .75rem; font-weight: 600;
            margin-right: 10px;
        }

        .pd-short-desc {
            font-size: .92rem; color: var(--gray-600); line-height: 1.9;
            margin-bottom: 22px;
        }

        .pd-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }

        .qty-selector {
            display: flex; align-items: center; border: 1.5px solid var(--gray-200);
            border-radius: 12px; overflow: hidden; background: var(--white);
        }
        .qty-btn {
            width: 44px; height: 44px; border: none; background: var(--white);
            color: var(--gray-600); font-size: 1rem; cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            transition: all .2s;
        }
        .qty-btn:hover { background: var(--gray-100); color: var(--dark); }
        .qty-input {
            width: 50px; height: 44px; border: none; border-right: 1px solid var(--gray-200);
            border-left: 1px solid var(--gray-200); text-align: center;
            font-family: 'Vazirmatn', sans-serif; font-size: .95rem; font-weight: 600;
            color: var(--dark); outline: none; background: var(--white);
            -moz-appearance: textfield;
        }
        .qty-input::-webkit-inner-spin-button,
        .qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

        .btn-accent {
            background: var(--accent); color: var(--dark); border: none;
            padding: 12px 32px; border-radius: 12px; font-weight: 600;
            font-size: .95rem; transition: all .2s; text-decoration: none;
            display: inline-flex; align-items: center; gap: 8px;
            font-family: 'Vazirmatn', sans-serif; cursor: pointer;
        }
        .btn-accent:hover {
            background: var(--accent-dark); color: var(--dark);
            transform: translateY(-2px); box-shadow: 0 6px 20px rgba(198,249,31,0.35);
        }

        .btn-wishlist-detail {
            width: 48px; height: 48px; border-radius: 12px;
            border: 1.5px solid var(--gray-200); background: var(--white);
            color: var(--gray-500); font-size: 1.1rem; cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            transition: all .2s; flex-shrink: 0;
        }
        .btn-wishlist-detail:hover { border-color: var(--danger); color: var(--danger); }
        .btn-wishlist-detail.liked { border-color: var(--danger); color: var(--danger); background: #fef2f2; }

        .pd-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--gray-200); }
        .pd-meta-item {
            display: flex; align-items: center; gap: 8px;
            font-size: .84rem; color: var(--gray-500);
        }
        .pd-meta-item i { color: var(--accent); font-size: .8rem; width: 16px; text-align: center; }
        .pd-meta-item strong { color: var(--dark); font-weight: 600; }

        /* ===== TABS ===== */
        .detail-tabs { margin-top: 50px; }
        .detail-tabs .nav-tabs {
            border-bottom: 2px solid var(--gray-200);
            gap: 4px; margin-bottom: 0;
        }
        .detail-tabs .nav-link {
            border: none; border-bottom: 2.5px solid transparent;
            padding: 14px 24px; font-size: .95rem; font-weight: 600;
            color: var(--gray-500); background: none; border-radius: 0;
            transition: all .2s; font-family: 'Vazirmatn', sans-serif;
            display: flex; align-items: center; gap: 8px;
        }
        .detail-tabs .nav-link:hover { color: var(--dark); border-bottom-color: var(--gray-300); }
        .detail-tabs .nav-link.active {
            color: var(--dark); border-bottom-color: var(--dark); background: none;
        }
        .detail-tabs .nav-link i { font-size: .85rem; }
        .detail-tabs .tab-content {
            background: var(--white); border: 1px solid var(--gray-200);
            border-top: none; border-radius: 0 0 16px 16px;
            padding: 28px;
        }

        .tab-desc p { font-size: .92rem; color: var(--gray-600); line-height: 2; margin-bottom: 14px; }
        .tab-desc h5 { font-size: 1.05rem; font-weight: 600; color: var(--dark); margin: 20px 0 10px; }

        /* جدول مشخصات */
        .specs-table { width: 100%; border-collapse: collapse; }
        .specs-table tr { border-bottom: 1px solid var(--gray-100); }
        .specs-table tr:last-child { border-bottom: none; }
        .specs-table th {
            text-align: right; padding: 14px 18px; font-size: .88rem;
            font-weight: 600; color: var(--dark); width: 35%;
            background: var(--gray-50);
        }
        .specs-table td {
            padding: 14px 18px; font-size: .88rem; color: var(--gray-600);
        }

        /* کامنت‌ها */
        .comment-item {
            padding: 20px 0; border-bottom: 1px solid var(--gray-100);
        }
        .comment-item:last-child { border-bottom: none; }
        .comment-header {
            display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
        }
        .comment-avatar {
            width: 44px; height: 44px; border-radius: 50%;
            background: var(--gray-100); display: flex;
            align-items: center; justify-content: center;
            font-size: 1rem; color: var(--gray-500); flex-shrink: 0;
        }
        .comment-user-name { font-size: .92rem; font-weight: 600; color: var(--dark); }
        .comment-date { font-size: .78rem; color: var(--gray-400); }
        .comment-stars { margin-bottom: 8px; }
        .comment-stars i { font-size: .75rem; color: #fbbf24; }
        .comment-text { font-size: .9rem; color: var(--gray-600); line-height: 1.9; }

        .comment-reply {
            margin-right: 56px; margin-top: 14px; padding: 16px;
            background: var(--gray-50); border-radius: 12px;
            border-right: 3px solid var(--accent);
        }
        .comment-reply .comment-header { margin-bottom: 8px; }
        .comment-reply .comment-avatar { width: 36px; height: 36px; font-size: .85rem; background: var(--dark); color: var(--accent); }
        .comment-reply .comment-text { font-size: .85rem; }

        .comment-like-btn {
            display: inline-flex; align-items: center; gap: 5px;
            padding: 5px 12px; border-radius: 8px; border: 1px solid var(--gray-200);
            background: var(--white); font-size: .8rem; color: var(--gray-500);
            cursor: pointer; transition: all .2s; margin-top: 10px;
            font-family: 'Vazirmatn', sans-serif;
        }
        .comment-like-btn:hover { border-color: var(--dark); color: var(--dark); }
        .comment-like-btn.liked { border-color: var(--accent); color: var(--dark); background: #f7fee7; }

        /* ===== RELATED PRODUCTS ===== */
        .related-section { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--gray-200); }
        .section-title { font-size: 1.4rem; font-weight: 700; color: var(--dark); margin-bottom: 24px; }

        .product-card {
            background: var(--white); border-radius: 16px; overflow: hidden;
            border: 1px solid var(--gray-200); transition: all .35s cubic-bezier(.16,1,.3,1);
            height: 100%; display: flex; flex-direction: column;
            margin : 0 15px;
        }
        .product-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,0.08); border-color: transparent; }
        .product-img-wrap {
            position: relative; height: 220px; overflow: hidden; background: var(--gray-100);
        }
        .product-img-wrap img {
            width: 100%; height: 100%; object-fit: cover;
            transition: transform .6s cubic-bezier(.16,1,.3,1);
        }
        .product-card:hover .product-img-wrap img { transform: scale(1.08); }
        .product-badge {
            position: absolute; top: 12px; right: 12px;
            background: var(--danger); color: var(--white);
            padding: 4px 10px; border-radius: 8px; font-size: .72rem; font-weight: 600;
        }
        .product-badge.new-badge { background: var(--accent); color: var(--dark); }
        .product-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
        .product-category-label { font-size: .75rem; color: var(--gray-400); font-weight: 500; margin-bottom: 6px; }
        .product-name {
            font-size: .9rem; font-weight: 600; color: var(--dark); margin-bottom: 8px; line-height: 1.5;
            display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
        }
        .product-rating { display: flex; align-items: center; gap: 3px; margin-bottom: 12px; }
        .product-rating i { font-size: .72rem; color: #fbbf24; }
        .product-rating span { font-size: .78rem; color: var(--gray-400); margin-right: 5px; }
        .product-footer {
            display: flex; align-items: center; justify-content: space-between;
            margin-top: auto; padding-top: 12px; border-top: 1px solid var(--gray-100);
        }
        .product-price { font-size: 1.05rem; font-weight: 700; color: var(--dark); }
        .product-price small { font-size: .72rem; color: var(--gray-400); font-weight: 400; margin-right: 3px; }
        .product-cart-btn {
            width: 38px; height: 38px; border-radius: 10px;
            border: 1.5px solid var(--gray-200); background: var(--white);
            color: var(--gray-600); display: flex; align-items: center; justify-content: center;
            cursor: pointer; transition: all .2s; font-size: .85rem;
        }
        .product-cart-btn:hover { background: var(--dark); border-color: var(--dark); color: var(--white); }

        /* ===== FOOTER ===== */
        .site-footer { background: var(--dark); color: var(--gray-400); padding-top: 60px; margin-top: 60px; }
        .footer-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 16px; }
        .footer-brand .brand-logo { width: 38px; height: 38px; font-size: 17px; }
        .footer-brand .brand-text { color: var(--white); font-size: 1.1rem; }
        .footer-desc { font-size: .87rem; line-height: 1.9; color: var(--gray-500); margin-bottom: 20px; }
        .social-links { display: flex; gap: 10px; }
        .social-link {
            width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--gray-700);
            display: flex; align-items: center; justify-content: center;
            color: var(--gray-400); text-decoration: none; transition: all .25s; font-size: 1rem;
        }
        .social-link:hover { background: var(--accent); border-color: var(--accent); color: var(--dark); transform: translateY(-3px); }
        .footer-title { font-size: 1.05rem; font-weight: 600; color: var(--white); margin-bottom: 20px; }
        .footer-links { list-style: none; padding: 0; margin: 0; }
        .footer-links li { margin-bottom: 10px; }
        .footer-links a { color: var(--gray-500); text-decoration: none; font-size: .88rem; transition: all .2s; }
        .footer-links a:hover { color: var(--accent); padding-right: 4px; }
        .footer-contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; font-size: .87rem; color: var(--gray-500); line-height: 1.7; }
        .footer-contact-item i { margin-top: 5px; color: var(--accent); font-size: .85rem; width: 18px; text-align: center; flex-shrink: 0; }
        .enamad-box { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
        .enamad-item {
            width: 88px; height: 88px; border-radius: 10px; border: 1px solid var(--gray-700);
            display: flex; align-items: center; justify-content: center;
            background: var(--dark-800); overflow: hidden; transition: border-color .2s; cursor: pointer;
        }
        .enamad-item:hover { border-color: var(--gray-500); }
        .enamad-item img { width: 100%; height: 100%; object-fit: cover; }
        .footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: 22px 0; margin-top: 50px; text-align: center; font-size: .82rem; color: var(--gray-600); }

        /* ===== TOAST ===== */
        .toast-container { position: fixed; bottom: 24px; left: 24px; z-index: 9999; }
        .custom-toast {
            background: var(--dark); color: var(--white); padding: 14px 22px;
            border-radius: 12px; font-size: .88rem; display: flex; align-items: center;
            gap: 10px; box-shadow: 0 12px 35px rgba(0,0,0,0.25);
            animation: toastIn .4s ease; margin-top: 8px; font-family: 'Vazirmatn', sans-serif;
        }
        .custom-toast i { color: var(--accent); }
        @keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.95); } to { opacity: 1; transform: translateY(0) scale(1); } }

        /* ===== SCROLL REVEAL ===== */
        .reveal { opacity: 0; transform: translateY(30px); transition: all .8s cubic-bezier(.16,1,.3,1); }
        .reveal.visible { opacity: 1; transform: translateY(0); }

        @media (max-width: 767px) {
            .pd-name { font-size: 1.3rem; }
            .pd-price-main { font-size: 1.4rem; }
            .detail-tabs .nav-link { padding: 12px 16px; font-size: .88rem; }
            .detail-tabs .tab-content { padding: 20px 16px; }
            .comment-reply { margin-right: 20px; }
            .gallery-thumb { width: 64px; height: 64px; }
            .lightbox-nav { width: 40px; height: 40px; }
            .lightbox-prev { right: 10px; }
            .lightbox-next { left: 10px; }
        }

        ::-webkit-scrollbar { width: 8px; }
        ::-webkit-scrollbar-track { background: var(--gray-100); }
        ::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 4px; }
        ::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }
   