
        :root {
            --primary: #0f172a;
            --accent: #3b82f6;
            --bg-body: #f8fafc;
            --bg-white: #ffffff;
            --text-main: #1e293b;
            --text-muted: #64748b;
            --border: #e2e8f0;
            --radius: 12px;
            --container: 1100px;
        }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: 'Vazirmatn', sans-serif; background-color: var(--bg-body); color: var(--text-main); line-height: 1.7; }
        a { text-decoration: none; color: inherit; transition: 0.3s; }
        img { max-width: 100%; display: block; border-radius: var(--radius); }
        .container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
        
        .btn { padding: 12px 30px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.3s; border: none; display: inline-flex; align-items: center; gap: 8px; }
        .btn-primary { background-color: var(--primary); color: white; }
        .btn-primary:hover { background-color: #334155; }


        /* نان‌براد */
        .breadcrumb { padding: 30px 0; color: var(--text-muted); font-size: 0.9rem; }
        .breadcrumb span { margin: 0 5px; }
        .breadcrumb a:hover { color: var(--accent); }

        /* گرید اصلی محصول */
        .product-main-grid {
            display: grid;
            grid-template-columns: 1fr 1.5fr;
            gap: 40px;
            margin-bottom: 60px;
        }

        /* گالری چپ */
        .gallery-container {
            background: white;
            padding: 20px;
            border-radius: var(--radius);
            border: 1px solid var(--border);
            box-shadow: var(--shadow-sm);
        }
        .main-image {
            width: 100%;
            height: 400px;
            object-fit: cover;
            border-radius: var(--radius);
            margin-bottom: 20px;
        }
        .thumbnail-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
        }
        .thumb-img {
            width: 100%;
            height: 80px;
            object-fit: cover;
            border-radius: 8px;
            cursor: pointer;
            border: 2px solid transparent;
            transition: 0.2s;
        }
        .thumb-img:hover, .thumb-img.active { border-color: var(--accent); }

        /* اطلاعات راست */
        .info-header h1 { font-size: 2.5rem; color: var(--primary); margin-bottom: 15px; }
        .info-price { font-size: 2rem; font-weight: 800; color: var(--accent); margin-bottom: 20px; }
        .info-short-desc { color: #475569; margin-bottom: 30px; line-height: 1.8; }
        
        .action-buttons { display: flex; gap: 15px; margin-bottom: 30px; }
        .btn-outline { background: white; border: 2px solid var(--border); color: var(--text-main); }
        .btn-outline:hover { border-color: var(--primary); }

        /* تب‌های پایین */
        .tabs-container { background: white; border-radius: var(--radius); padding: 40px; border: 1px solid var(--border); margin-bottom: 60px; }
        
        .tabs-header { display: flex; gap: 20px; border-bottom: 1px solid var(--border); margin-bottom: 30px; }
        .tab-btn {
            padding-bottom: 15px;
            font-weight: 600;
            font-size: 1.1rem;
            color: var(--text-muted);
            cursor: pointer;
            position: relative;
        }
        .tab-btn::after {
            content: ''; position: absolute; bottom: 0; right: 0;
            width: 0; height: 3px; background: var(--accent); transition: 0.3s;
        }
        .tab-btn.active, .tab-btn:hover { color: var(--primary); }
        .tab-btn.active::after { width: 100%; }

        .tab-content { display: none; animation: fadeIn 0.4s; }
        .tab-content.active { display: block; }

        /* محتوای تب‌ها */
        .spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
        .spec-item { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--border); padding: 15px 0; }
        .spec-label { font-weight: 600; color: var(--text-main); }
        .spec-value { color: var(--text-muted); }

        .comment-list { display: flex; flex-direction: column; gap: 20px; }
        .comment-box { background: #f8fafc; padding: 20px; border-radius: 8px; border-right: 4px solid var(--accent); }

        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

        @media(max-width: 768px) {
            .product-main-grid { grid-template-columns: 1fr; }
            .spec-list { grid-template-columns: 1fr; }
        }
        .captcha-group {
            margin-top: 20px;
        }

        .captcha-container {
            display: flex;
            align-items: center;
            gap: 15px;
            flex-wrap: wrap;
        }

        .captcha-image img {
            border-radius: var(--radius);
            border: 1px solid var(--border);
            height: 50px;
            width: auto;
        }

        /* استایل اینپوت کپچا */
        .captcha-container input[type="text"] {
            flex: 1;
            min-width: 150px;
            padding: 10px 16px;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            font-family: 'Vazirmatn', sans-serif;
            font-size: 1rem;
            background: var(--bg-body);
            transition: border-color 0.3s ease;
        }

        .captcha-container input[type="text"]:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }

        /* استایل هیدن فیلدها */
        .captcha-container input[type="hidden"] {
            display: none;
        }

                .form-input {width: 100%; padding: 15px; border: 1px solid var(--border); border-radius: 8px; resize: vertical; height: 100px;}
                .form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
                textarea.form-input {width: 100%; padding: 15px; border: 1px solid var(--border); border-radius: 8px; resize: vertical; height: 100px; }
            .form-container {
            background: #ffffff;
            padding: 35px;
            border-radius: 16px;
            margin-top: 40px;
            border: 1px solid var(--border);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
        }

        .form-title {
            font-size: 1.4rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 30px;
            padding-bottom: 15px;
            border-bottom: 2px solid #eef2f6;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 5px;
        }

        .form-group {
            margin-bottom: 22px;
        }

        .form-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            font-size: 0.95rem;
            color: var(--text-main);
        }

        .form-label .required {
            color: #ef4444;
            margin-right: 3px;
        }

        /* ===== اینپوت‌ها ===== */
        .form-control {
            width: 100%;
            padding: 12px 16px;
            border: 2px solid #e2e8f0;
            border-radius: 10px;
            font-family: 'Vazirmatn', sans-serif;
            font-size: 0.95rem;
            background: #fafbfc;
            transition: all 0.3s ease;
            color: var(--text-main);
            box-sizing: border-box;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--accent);
            background: #ffffff;
            box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.08);
        }

        .form-control::placeholder {
            color: #94a3b8;
            font-size: 0.9rem;
        }

        .form-control.error {
            border-color: #ef4444;
            background: #fef2f2;
        }

        textarea.form-control {
            min-height: 140px;
            resize: vertical;
            line-height: 1.8;
        }

        .captcha-container {
            display: flex;
            align-items: center;
            gap: 15px;
            flex-wrap: wrap;
            background: #fafbfc;
            padding: 10px 16px;
            border-radius: 10px;
            border: 2px solid #e2e8f0;
            transition: all 0.3s ease;
        }

        .captcha-container:focus-within {
            border-color: var(--accent);
            background: #ffffff;
            box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.08);
        }

        .captcha-container img {
            border-radius: 8px;
            height: 48px;
            border: 1px solid #e2e8f0;
        }

        .captcha-container input[type="text"] {
            flex: 1;
            min-width: 120px;
            padding: 8px 14px;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            font-family: 'Vazirmatn', sans-serif;
            font-size: 0.95rem;
            background: white;
            transition: 0.3s;
            outline: none;
        }

        .captcha-container input[type="text"]:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }

        /* ===== خطاها ===== */
        .form-error {
            color: #ef4444;
            font-size: 0.85rem;
            margin-top: 6px;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .form-error ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        /* ===== دکمه ارسال ===== */
        .submit-btn {
            width: 100%;
            padding: 14px;
            font-size: 1.05rem;
            justify-content: center;
            gap: 10px;
            border-radius: 10px;
            margin-top: 10px;
            background: var(--accent);
            transition: all 0.3s ease;
        }

        .submit-btn:hover {
            background: #2563eb;
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
        }

        .submit-btn i {
            font-size: 1.1rem;
        }

        /* ===== ریسپانسیو ===== */
        @media (max-width: 768px) {
            .form-row {
                grid-template-columns: 1fr;
                gap: 0;
            }
            
            .form-container {
                padding: 20px;
            }
            
            .captcha-container {
                flex-direction: column;
                align-items: stretch;
            }
            
            .captcha-container input[type="text"] {
                width: 100%;
            }
        }

        /* ===== مودال برای بزرگنمایی تصویر ===== */
        .modal {
            display: none;
            position: fixed;
            z-index: 9999;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.92);
            justify-content: center;
            align-items: center;
            animation: fadeInModal 0.3s ease;
        }

        @keyframes fadeInModal {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .modal-content {
            max-width: 90%;
            max-height: 85%;
            border-radius: 12px;
            object-fit: contain;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            cursor: default;
        }

        .modal-close {
            position: absolute;
            top: 25px;
            right: 40px;
            color: #fff;
            font-size: 45px;
            font-weight: 700;
            cursor: pointer;
            transition: 0.3s;
            z-index: 10000;
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            line-height: 1;
        }

        .modal-close:hover {
            color: #ef4444;
            background: rgba(255, 255, 255, 0.2);
            transform: rotate(90deg);
        }

        .modal-caption {
            position: absolute;
            bottom: 40px;
            color: #fff;
            font-size: 1.2rem;
            font-weight: 500;
            background: rgba(0, 0, 0, 0.6);
            padding: 12px 30px;
            border-radius: 30px;
            backdrop-filter: blur(10px);
        }

        /* ریسپانسیو مودال */
        @media (max-width: 768px) {
            .modal-content {
                max-width: 95%;
                max-height: 75%;
            }
            .modal-close {
                top: 15px;
                right: 20px;
                font-size: 35px;
                width: 40px;
                height: 40px;
            }
            .modal-caption {
                bottom: 20px;
                font-size: 0.95rem;
                padding: 8px 20px;
            }
        }
            
        .captcha-refresh {
            background: transparent;
            border: none;
            color: var(--text-muted);
            font-size: 1.3rem;
            cursor: pointer;
            padding: 8px 12px;
            border-radius: 8px;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .captcha-refresh:hover {
            color: var(--accent);
            background: rgba(59, 130, 246, 0.1);
            transform: rotate(180deg);
        }

        .captcha-refresh:active {
            transform: rotate(360deg);
        }
        
        
                /* ===== استایل کامل صفحه محصول ===== */
        
        /* ===== گالری ===== */
        .gallery-container {
            position: relative;
        }

        .main-image {
            width: 100%;
            height: 450px;
            /*object-fit: cover;*/
            border-radius: 12px;
            cursor: pointer;
            transition: transform 0.3s ease;
            box-shadow: 0 4px 15px rgba(0,0,0,0.08);
        }

        .main-image:hover {
            transform: scale(1.02);
        }

        .thumbnail-grid {
            display: flex;
            gap: 10px;
            margin-top: 15px;
            flex-wrap: wrap;
        }

        .thumb-img {
            width: 80px;
            height: 80px;
            object-fit: cover;
            border-radius: 8px;
            cursor: pointer;
            border: 3px solid transparent;
            transition: all 0.3s ease;
            -webkit-tap-highlight-color: transparent;
        }

        .thumb-img:hover {
            transform: scale(1.05);
        }

        .thumb-img.active {
            border-color: #00a793;
            box-shadow: 0 0 15px rgba(0,167,147,0.3);
        }

        /* ===== لایت‌باکس ===== */
        .lightbox {
            display: none;
            position: fixed;
            z-index: 99999;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.92);
            justify-content: center;
            align-items: center;
            flex-direction: column;
            backdrop-filter: blur(5px);
        }

        .lightbox.active {
            display: flex;
        }

        .image-container {
            width: 80%;
            height: 75%;
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: hidden;
            position: relative;
            touch-action: none;
        }

        #lightboxImg {
            max-width: 95%;
            max-height: 95%;
            object-fit: contain;
            transition: transform 0.25s ease;
            transform: scale(1);
            cursor: grab;
            border-radius: 8px;
            box-shadow: 0 0 40px rgba(0,0,0,0.5);
            touch-action: none;
            -webkit-user-select: none;
            user-select: none;
        }

        #lightboxImg:active {
            cursor: grabbing;
        }

        /* دکمه ضربدر */
        .close {
            position: absolute;
            top: 25px;
            right: 40px;
            color: #fff;
            font-size: 45px;
            font-weight: bold;
            cursor: pointer;
            z-index: 10;
            transition: all 0.3s ease;
            text-shadow: 0 0 20px rgba(0,0,0,0.8);
            padding: 10px;
            min-width: 50px;
            min-height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            -webkit-tap-highlight-color: transparent;
            line-height: 1;
        }

        .close:hover {
            color: #ff4444;
            transform: rotate(90deg);
        }

        /* دکمه‌های قبلی و بعدی */
        .prev, .next {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255,255,255,0.12);
            backdrop-filter: blur(8px);
            color: white;
            font-size: 35px;
            padding: 18px 24px;
            border: 2px solid rgba(255,255,255,0.15);
            cursor: pointer;
            z-index: 10;
            border-radius: 50%;
            transition: all 0.3s ease;
            min-width: 60px;
            min-height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            -webkit-tap-highlight-color: transparent;
            line-height: 1;
        }

        .prev { left: 25px; }
        .next { right: 25px; }

        .prev:hover, .next:hover {
            background: rgba(255,255,255,0.25);
            border-color: rgba(255,255,255,0.4);
            transform: translateY(-50%) scale(1.05);
        }

        .prev:active, .next:active {
            transform: translateY(-50%) scale(0.95);
        }

        /* شمارنده */
        .counter {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            color: #fff;
            font-size: 16px;
            background: rgba(0,0,0,0.6);
            padding: 8px 24px;
            border-radius: 30px;
            backdrop-filter: blur(8px);
            border: 1px solid rgba(255,255,255,0.1);
            z-index: 10;
            font-weight: 600;
            letter-spacing: 1px;
        }

        /* عنوان عکس در لایت‌باکس */
        .image-title {
            position: absolute;
            bottom: 150px;
            left: 50%;
            transform: translateX(-50%);
            color: #fff;
            font-size: 18px;
            background: rgba(0,0,0,0.5);
            padding: 8px 24px;
            border-radius: 20px;
            backdrop-filter: blur(8px);
            border: 1px solid rgba(255,255,255,0.08);
            z-index: 10;
            text-align: center;
            max-width: 80%;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-weight: 500;
        }

        /* دکمه‌های زوم */
        .zoom-controls {
            position: absolute;
            bottom: 90px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 12px;
            z-index: 10;
        }

        .zoom-controls button {
            background: rgba(255,255,255,0.08);
            backdrop-filter: blur(8px);
            color: white;
            border: 1px solid rgba(255,255,255,0.15);
            padding: 10px 22px;
            font-size: 22px;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            min-width: 50px;
            min-height: 50px;
            -webkit-tap-highlight-color: transparent;
            font-family: inherit;
            line-height: 1;
        }

        .zoom-controls button:hover {
            background: rgba(255,255,255,0.2);
            transform: scale(1.08);
        }

        .zoom-controls button:active {
            transform: scale(0.92);
        }

        /* ===== ریسپانسیو ===== */
        
        /* تبلت */
        @media (max-width: 992px) {
            .main-image {
                height: 350px;
            }
            
            .thumb-img {
                width: 65px;
                height: 65px;
            }
        }

        /* موبایل */
        @media (max-width: 768px) {
            .main-image {
                height: 280px;
                border-radius: 8px;
            }
            
            .thumbnail-grid {
                gap: 8px;
                margin-top: 10px;
            }
            
            .thumb-img {
                width: 55px;
                height: 55px;
                border-radius: 6px;
                border-width: 2px;
            }
            
            /* لایت‌باکس موبایل */
            .image-container {
                width: 95%;
                height: 55%;
            }
            
            .prev, .next {
                font-size: 20px;
                padding: 12px 16px;
                min-width: 44px;
                min-height: 44px;
            }
            
            .prev { left: 8px; }
            .next { right: 8px; }
            
            .close {
                top: 12px;
                right: 15px;
                font-size: 32px;
                min-width: 44px;
                min-height: 44px;
            }
            
            .counter {
                font-size: 14px;
                padding: 5px 16px;
                bottom: 20px;
            }
            
            .zoom-controls {
                bottom: 60px;
                gap: 6px;
            }
            
            .zoom-controls button {
                padding: 6px 14px;
                font-size: 16px;
                min-width: 38px;
                min-height: 38px;
            }
            
            .image-title {
                font-size: 14px;
                /*bottom: 70px;*/
                padding: 5px 16px;
                max-width: 90%;
                white-space: normal;
            }
        }

        /* موبایل خیلی کوچک */
        @media (max-width: 480px) {
            .main-image {
                height: 220px;
            }
            
            .thumb-img {
                width: 45px;
                height: 45px;
                border-radius: 4px;
            }
            
            .thumbnail-grid {
                gap: 5px;
            }
            
            /* لایت‌باکس موبایل خیلی کوچک */
            .image-container {
                height: 48%;
            }
            
            .prev, .next {
                font-size: 16px;
                padding: 8px 12px;
                min-width: 36px;
                min-height: 36px;
            }
            
            .close {
                font-size: 26px;
                top: 10px;
                right: 12px;
                min-width: 36px;
                min-height: 36px;
            }
            
            .counter {
                font-size: 12px;
                padding: 4px 14px;
                bottom: 16px;
            }
            
            .zoom-controls {
                bottom: 50px;
                gap: 4px;
            }
            
            .zoom-controls button {
                font-size: 14px;
                padding: 5px 10px;
                min-width: 32px;
                min-height: 32px;
            }
            
            .image-title {
                font-size: 12px;
                /*bottom: 60px;*/
                padding: 4px 12px;
                max-width: 95%;
            }
        }

        /* ===== بهینه‌سازی لمسی ===== */
        @media (pointer: coarse) {
            .thumb-img,
            .close,
            .prev,
            .next,
            .zoom-controls button {
                min-height: 44px;
                min-width: 44px;
            }
        }

        /* اسکرول‌بار لایت‌باکس */
        .lightbox::-webkit-scrollbar {
            width: 0;
        }

        /* ===== انیمیشن ===== */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: scale(0.95);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .lightbox.active {
            animation: fadeIn 0.3s ease forwards;
        }

        /* ===== تب‌ها ===== */
        .tabs-container {
            margin-top: 30px;
        }

        .tabs-header {
            display: flex;
            gap: 5px;
            border-bottom: 2px solid #e0e0e0;
            margin-bottom: 20px;
        }

        .tab-btn {
            padding: 12px 24px;
            cursor: pointer;
            font-weight: 600;
            color: #666;
            border-bottom: 3px solid transparent;
            transition: all 0.3s ease;
            -webkit-tap-highlight-color: transparent;
        }

        .tab-btn:hover {
            color: #00a793;
        }

        .tab-btn.active {
            color: #00a793;
            border-bottom-color: #00a793;
        }

        .tab-content {
            display: none;
            padding: 10px 0;
            animation: fadeIn 0.3s ease forwards;
        }

        .tab-content.active {
            display: block;
        }

        /* ===== فرم نظرات ===== */
        .form-container {
            margin-top: 30px;
            padding: 25px;
            background: #f9f9f9;
            border-radius: 12px;
        }

        .form-title {
            font-size: 1.2rem;
            margin-bottom: 20px;
            color: #333;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }

        .form-group {
            margin-bottom: 15px;
        }

        .form-label {
            display: block;
            margin-bottom: 5px;
            font-weight: 500;
            color: #555;
            font-size: 14px;
        }

        .required {
            color: #ff4444;
            margin-left: 3px;
        }

        .form-control {
            width: 100%;
            padding: 10px 14px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-size: 14px;
            transition: border-color 0.3s ease;
            font-family: inherit;
        }

        .form-control:focus {
            border-color: #00a793;
            outline: none;
            box-shadow: 0 0 0 3px rgba(0,167,147,0.1);
        }

        textarea.form-control {
            resize: vertical;
            min-height: 100px;
        }

        .captcha-container {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .captcha-image {
            flex: 1;
        }

        .captcha-image img {
            border-radius: 8px;
            border: 2px solid #e0e0e0;
        }

        .submit-btn {
            width: 100%;
            padding: 12px;
            background: #00a793;
            color: #fff;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .submit-btn:hover {
            background: #008f7a;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(0,167,147,0.3);
        }

        .submit-btn:active {
            transform: scale(0.98);
        }

        .comment-box {
            padding: 15px;
            border-bottom: 1px solid #e0e0e0;
            margin-bottom: 15px;
        }

        .comment-box:last-child {
            border-bottom: none;
        }

        /* ===== ریسپانسیو فرم ===== */
        @media (max-width: 768px) {
            .form-row {
                grid-template-columns: 1fr;
                gap: 0;
            }
            
            .form-container {
                padding: 15px;
            }
            
            .tab-btn {
                padding: 10px 16px;
                font-size: 14px;
            }
        }

        @media (max-width: 480px) {
            .tab-btn {
                padding: 8px 12px;
                font-size: 12px;
            }
            
            .form-container {
                padding: 12px;
            }
        }
