/* =========================================
   Variables (متغیرهای اصلی این بخش)
========================================= */
:root {
    --accent-color: #8b5cf6;
    --purple-dark: #6d28d9;
    --purple-medium: #a78bfa;
    --purple-light: #ede9fe;
    --bg-color: #f5f3ff;
    --gray-light: #f8f7ff;
    --white: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-secondary2: #7c3aed;
    --text-muted: #94a3b8;
    --danger-color: #ef4444;
    --success-color: #10b981;
    --purple-border: rgba(139, 92, 246, 0.25);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --purple-glass: rgba(139, 92, 246, 0.2);
    --red-brand: #ff4757;
    --yellow-star: #facc15;
    --border-color: #e2e8f0;
    --radius-lg: 24px;
    --radius-md: 14px;
    --fs-xs: 11px;
    --fs-sm: 12px;
    --fs-md: 14px;
    --fs-lg: 16px;
    --fs-xl: 20px;
    --transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =========================================
   General & Box Styles (باکس‌ها و استایل‌های عمومی)
========================================= */
.bg-g {
    background-color: var(--bg-w-color, #ffffff);
}

.sh-box {
    background: var(--white);
    backdrop-filter: blur(15px);
    border-radius: var(--radius-lg);
    padding: 25px;
    text-align: center;
    border: 2px solid var(--purple-border);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.1);
}

.sh-box-2 {
    position: relative;
    z-index: 1;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-radius: var(--radius-md);
    padding: 10px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.06);
    border: 1px solid var(--purple-glass);
}

@media (max-width: 768px) {
    .mobile-pad-7 {
        padding-left: 7px !important;
        padding-right: 7px !important;
    }
}

/* =========================================
   Product Gallery (گالری و اسلایدر)
========================================= */
:root {
        --gallery-primary: var(--primary-color, #8b5cf6); /* رنگ اصلی ملایم */
        --gallery-bg: var(--white, #ffffff);
        --gallery-body-bg: var(--bg-color, #f5f3ff); /* رنگ پس‌زمینه خیلی روشن */
        --gallery-border-light: var(--purple-light, #ede9fe);
        --gallery-glass: var(--glass-bg, rgba(255, 255, 255, 0.8));
        --transition-speed: 0.3s;
    }

    .gallery-container-wrapper {
        container-type: inline-size;
        container-name: gallery;
        width: 100%;
        max-width: 800px;
        box-sizing: border-box;
        overflow: hidden;
    }

    .product-gallery-wrapper {
        background: var(--gallery-bg);
        padding: clamp(16px, 4cqw, 32px);
        padding-bottom: 0px;
        outline: none;
        width: 100%;
    }

    .gallery-thumbnails-track {
        padding: clamp(8px, 2cqw, 12px) clamp(2px, 1cqw, 4px);
        margin-top: clamp(8px, 2cqw, 16px);
        box-sizing: border-box; /* اضافه شد */
        width: 100%; /* اضافه شد */
    }


    .gallery-main-view {
        position: relative;
        width: 100%;

        border-radius: clamp(12px, 3cqw, 20px);
        background-color: var(--gallery-bg);
        overflow: hidden;
        cursor: zoom-in;
        touch-action: none;
        box-sizing: border-box;
        box-shadow: 0 4px 20px rgba(0,0,0,0.02);
        border: 1px solid var(--gallery-border-light);
    }

    .sr-only {
        position: absolute;
        width: 1px; height: 1px;
        padding: 0; margin: -1px;
        overflow: hidden; clip: rect(0, 0, 0, 0);
        white-space: nowrap; border: 0;
    }

    .gallery-counter {
        position: absolute;
        top: clamp(12px, 3cqw, 20px);
        right: clamp(12px, 3cqw, 20px);
        background: var(--gallery-glass);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        color: #374151;
        padding: clamp(4px, 1cqw, 6px) clamp(12px, 2.5cqw, 16px);
        border-radius: 20px;
        font-size: clamp(11px, 2.5cqw, 13px);
        font-weight: 600;
        z-index: 10;
        border: 1px solid var(--gallery-border-light);
        box-shadow: 0 4px 12px rgba(0,0,0,0.03);
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }

    .gallery-counter.show-counter {
        opacity: 1;
        visibility: visible;
    }

    .gallery-main-view .swiper-slide {
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        border-radius: clamp(8px, 2cqw, 12px);
    }

    .gallery-main-view img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: opacity var(--transition-speed) ease-in-out, transform 0.1s ease-out;
        user-select: none;
        -webkit-user-drag: none;
        transform-origin: center center;
        will-change: transform;
    }

    .slider-nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: var(--gallery-glass);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid var(--gallery-border-light);
        width: clamp(36px, 8cqw, 48px);
        height: clamp(36px, 8cqw, 48px);
        border-radius: 50%;
        cursor: pointer;
        color: #374151;
        box-shadow: 0 4px 12px rgba(0,0,0,0.04);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 10;
        opacity: 0;
        visibility: hidden;
    }

    .gallery-main-view.is-zoomed .slider-nav-btn,
    .swiper-button-disabled {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none;
    }

    .gallery-main-view:hover .slider-nav-btn:not(.swiper-button-disabled) {
        opacity: 1;
        visibility: visible;
    }

    .slider-nav-btn:hover {
        background: var(--gallery-bg);
        color: var(--gallery-primary);
        border-color: var(--gallery-primary);
        transform: translateY(-50%) scale(1.05);
    }

    .slider-nav-btn:active {
        transform: translateY(-50%) scale(0.95);
    }

    .slider-nav-btn.prev-btn { right: clamp(12px, 3cqw, 20px); }
    .slider-nav-btn.next-btn { left: clamp(12px, 3cqw, 20px); }

    .thumb-box {
        width: clamp(70px, 16cqw, 90px) !important;
        aspect-ratio: 1 / 1;
        border-radius: clamp(10px, 2.5cqw, 14px);
        border: 2px solid transparent;
        padding: 2px;
        cursor: pointer;
        position: relative;
        background: transparent;
        transition: all 0.3s ease;
        box-sizing: border-box;

    }

    .thumb-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        opacity: 0.6;
        border-radius: clamp(6px, 1.5cqw, 10px);
        box-sizing: border-box;
        transition: opacity 0.3s ease, transform 0.3s ease;
        background: var(--bg-w-color);
    }

    .thumb-box:hover img, .thumb-box:focus-visible img {
        opacity: 0.9;
        transform: scale(1.02);
    }

    .thumb-box:focus-visible {
        outline: none;
    }

    .thumb-box.swiper-slide-thumb-active {
        border-color: var(--gallery-primary);
    }

    .thumb-box.swiper-slide-thumb-active img {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15); /* سایه ملایم همرنگ تم */
    }

    /* Lightbox Styles */
    .lightbox-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .lightbox-modal.active {
        opacity: 1;
        visibility: visible;
    }

    .lightbox-toolbar {
        position: absolute;
        top: clamp(16px, 4vw, 24px);
        right: clamp(16px, 4vw, 24px);
        z-index: 10000;
    }

    .lightbox-btn {
        background: var(--gallery-bg);
        border: 1px solid var(--gallery-border-light);
        color: #4b5563;
        width: clamp(40px, 8vw, 48px);
        height: clamp(40px, 8vw, 48px);
        border-radius: 50%;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0,0,0,0.04);
        transition: all 0.2s ease;
    }

    .lightbox-btn:hover, .lightbox-btn:focus-visible {
        background: var(--gallery-body-bg);
        color: var(--gallery-primary);
        border-color: var(--gallery-primary);
        transform: scale(1.05);
        outline: none;
    }

    .lightbox-img {
        max-width: 90%;
        max-height: 90vh;
        object-fit: contain;
        transform: scale(0.95);
        border-radius: clamp(12px, 3vw, 20px);
        box-shadow: 0 20px 60px rgba(0,0,0,0.05);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        user-select: none;
        box-sizing: border-box;
        background: var(--gallery-bg);
    }

    .lightbox-modal.active .lightbox-img {
        transform: scale(1);
    }

/* =========================================
   Product Info & Headers (اطلاعات و عناوین محصول)
========================================= */
.product-header {
    position: relative;
    z-index: 1;
    padding-top: 10px;
}

@media (min-width: 768px) {
    .product-header {
        padding: 20px;
    }
}


.product-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.badge {
    padding: 4px 10px;
    border-radius: 50px;
    font-size: var(--fs-xs);
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.badge-special {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.badge-discount {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

.product-brand {
    color: var(--text-secondary2);
    font-size: var(--fs-sm);
    font-weight: bold;
    margin-bottom: 6px;
    display: block;
}

.product-title {
    color: var(--text-primary);
    font-size: var(--fs-xl);
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 10px;
}

.product-title-en {
    color: var(--text-muted);
    font-size: var(--fs-md);
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 10px;
}

.product-description {
    color: var(--text-secondary);
    font-size: var(--fs-md);
    line-height: 1.8;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    background-color: var(--Special-offer-bg-card);
    width: 100%;
    -webkit-box-shadow: 0 0px 20px rgba(0, 0, 0, .05);
    -moz-box-shadow: 0 0px 20px rgba(0, 0, 0, .05);
    box-shadow: 0 0px 20px rgba(0, 0, 0, .05);
}


/* =========================================
   Rating & Reviews (امتیاز و دیدگاه‌ها)
========================================= */
.product-rating-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-color);
    padding: 6px 14px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(139, 92, 246, 0.1);
    margin-bottom: 20px;
}

.rating-score {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-primary);
    font-weight: bold;
    font-size: var(--fs-sm);
}

.rating-score svg {
    width: 16px;
    height: 16px;
    fill: #fbbf24;
    filter: drop-shadow(0 1px 3px rgba(251, 191, 36, 0.5));
}

.rating-divider {
    width: 1px;
    height: 12px;
    background: var(--purple-border);
}

.rating-reviews {
    color: var(--text-secondary);
    font-size: var(--fs-xs);
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.rating-reviews:hover {
    color: var(--accent-color);
}

/* =========================================
   Pricing Section (بخش قیمت)
========================================= */
.product-price-section {
    padding: 16px 18px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    background: var(--glass-bg, rgba(255,255,255,0.7));
    backdrop-filter: blur(15px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border, rgba(255,255,255,0.5));
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-right {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.price-numbers {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.price-value {
    color: var(--accent-color);
    font-size: 30px;
    font-weight: bold;
    line-height: 1;
}

.price-left {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.discount-badge {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: var(--fs-xs);
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.25);
}

.old-price {
    color: var(--text-muted);
    font-size: var(--fs-sm);
    text-decoration: line-through;
    font-weight: bold;
}

/* =========================================
   Variants & Attributes (انتخاب رنگ و سایز)
========================================= */
.variant-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px;
    background: var(--bg-color);
    border: 2px solid rgba(139, 92, 246, 0.15);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    gap: 8px;
}

.variant-btn:hover {
    border-color: var(--accent-color);
    background: var(--purple-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.15);
}

.variant-btn.selected {
    border-color: var(--accent-color);
    background: var(--purple-light);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.variant-btn-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.variant-btn-icon {
    font-size: 18px;
}

.variant-btn-texts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.variant-btn-label {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    font-weight: bold;
}

.variant-btn-value {
    font-size: var(--fs-sm);
    color: var(--text-primary);
    font-weight: bold;
}

.variant-btn-arrow {
    color: var(--accent-color);
    font-size: 14px;
    transition: transform 0.2s ease;
}

.variant-btn:hover .variant-btn-arrow {
    transform: translateY(2px);
}

.color-preview {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.8);
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

/* =========================================
   Buttons (دکمه‌ها)
========================================= */
.product-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.btn {
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: var(--fs-lg);
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--purple-dark) 100%);
    color: var(--white);
    flex: 1.5;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--accent-color);
    flex: 1;
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background: var(--purple-light);
    transform: translateY(-2px);
}

.add-2-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    padding: 13px;
    font-size: var(--fs-md);
    font-weight: bolder;
    color: #fff;
    background-color: var(--red-brand, #ff4757);
    border: 2px solid var(--red-brand, #ff4757);
    border-radius: 15px;
    box-shadow: 0 2px 6px 0 rgba(239, 68, 68, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    gap: 12px;
    position: relative;
    overflow: hidden;
}

/* =========================================
   Support & Coupon Buttons (دکمه‌های پشتیبانی و کوپن)
========================================= */
.copon-btn {
    border: 0;
    outline: 0;
    background-color: #008efa;
    color: #ffffff;
    padding: 10px 10px;
    border-radius: 15px;
    margin-right: 15px;
    align-items: center;
    font-weight: 700;
    font-size: 14px;
    text-align: right;
}

.copon-btn p {
    color: #ffffff;
}

.copon {
    -webkit-mask-image: radial-gradient(circle at 74% 6px, transparent 6px, red 6.5px), linear-gradient(transparent 25%, red 0, red 75%, transparent 0);
    -webkit-mask-size: 100%, 2px 8px;
    -webkit-mask-repeat: repeat, repeat-y;
    -webkit-mask-position: 0 -6px, 74%;
    -webkit-mask-composite: source-out;
    mask-composite: subtract;
    padding: 3px 15px;
    margin: 3px 0;
    min-width: 230px;
    min-height: 55px;
}

.copon-btn img {
    width: 60px;
    max-width: 100%;
    height: auto;
    max-height: 50px;
    object-fit: contain !important;
    background-color: #096db9;
    margin-left: 10px;
    border-radius: 12px;
    display: inline-block;
    padding: 12px 5px;
    vertical-align: middle;
    overflow-clip-margin: content-box;
    overflow: clip;
}

.copon-btn.copon img {
    -webkit-mask-image: radial-gradient(circle at 4px, transparent 4px, red 4.5px);
    -webkit-mask-position: -4px;
    -webkit-mask-size: 100% 17px;
    width: 40px;
    max-height: 38px;
    margin: 5px -5px 5px 15px;
    padding: 5px 5px;
}

/* =========================================
   Features / Trust Badges (نمادهای اعتماد)
========================================= */
.product-features {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 20px;
    border-radius: var(--radius-md);
    border: 1.5px solid rgba(139, 92, 246, 0.15);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    background: var(--bg-w-color, #fff);
    transition: background 0.2s ease;
    border-radius: var(--radius-md);
}

.feature-item:not(:last-child) {
    border-bottom: 1px solid rgba(139, 92, 246, 0.08);
}

.feature-item:hover {
    background: var(--bg-color);
}

.feature-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.feature-icon-wrap.yellow {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.feature-icon-wrap.blue {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.feature-icon-wrap.green {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}

.feature-texts {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.feature-title {
    font-size: var(--fs-sm);
    font-weight: bold;
    color: var(--text-primary);
}

.feature-subtitle {
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

/* =========================================
   Popups & Bottom Sheets (پاپ‌آپ‌ها)
========================================= */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 10, 30, 0.55);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.popup-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 28px 28px 0 0;
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1),
                box-shadow 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    max-width: 480px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 -10px 60px rgba(139, 92, 246, 0);
}

.bottom-sheet.active {
    box-shadow: 0 -10px 60px rgba(139, 92, 246, 0.2);
    transform: translateY(0);
}

.sheet-handle-bar {
    display: flex;
    justify-content: center;
    padding: 14px 0 6px;
}

.sheet-handle {
    width: 40px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
}

.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 22px 16px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.08);
}

.sheet-title {
    font-size: var(--fs-lg);
    font-weight: bold;
    color: var(--text-primary);
}

.sheet-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-color);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    font-family: inherit;
}

.sheet-close:hover {
    background: var(--purple-light);
    color: var(--accent-color);
    transform: rotate(90deg);
}

.sheet-body {
    padding: 20px 22px 30px;
}

/* Color Grid in Popup */
.color-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 10px;
    border-radius: var(--radius-md);
    border: 2px solid rgba(139, 92, 246, 0.1);
    cursor: pointer;
    transition: all 0.25s ease;
    background: var(--bg-color);
}

.color-item:hover {
    border-color: var(--purple-medium);
    background: var(--purple-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.15);
}

.color-item.active {
    border-color: var(--accent-color);
    background: var(--purple-light);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.25);
}

.color-item.active .color-circle {
    box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--accent-color);
}

.color-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    transition: all 0.25s ease;
}

.color-name {
    font-size: var(--fs-xs);
    font-weight: bold;
    color: var(--text-secondary);
}

.color-item.active .color-name {
    color: var(--accent-color);
}

/* Size Grid in Popup */
.size-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.size-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 8px;
    border-radius: var(--radius-md);
    border: 2px solid rgba(139, 92, 246, 0.1);
    cursor: pointer;
    transition: all 0.25s ease;
    background: var(--bg-color);
    gap: 4px;
}

.size-item:hover {
    border-color: var(--purple-medium);
    background: var(--purple-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.15);
}

.size-item.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
    transform: translateY(-2px);
}

.size-number {
    font-size: var(--fs-lg);
    font-weight: bold;
    color: var(--text-primary);
}

.size-item.active .size-number {
    color: var(--white);
}

.size-eu {
    font-size: 10px;
    color: var(--text-muted);
}

.size-item.active .size-eu {
    color: rgba(255,255,255,0.75);
}

/* =========================================
   Responsive (واکنش‌گرایی)
========================================= */
@media (max-width: 480px) {
    .product-info {
        padding: 20px;
    }
    .product-actions {
        flex-direction: column;
    }
    .price-value {
        font-size: 26px;
    }
    .color-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.hide-mobile {
    display: none;
}

@media (min-width: 600px) {
    .hide-mobile {
        display: block;
    }
}
.specs-row{
    gap: 10px;
}

.specs-row .spec-item:nth-child(odd) {
    background: var(--bg-color);
}

.specs-row .spec-item:nth-child(even) {
    background: var(--bg-w-color);
}
.specs-row .spec-item {
    width: auto !important;
    flex-grow: 1;
    flex-basis: max-content;
    min-width: 50%;
    max-width: 100%;

    padding: 0.55rem;
    border-radius: 8px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0.5rem;
}

.specs-row .spec-item .i {
    color: var(--accent-color);
    flex-shrink: 0;
    display: flex;
    margin-top: 4px;
}

@media (min-width: 768px) {
    .product-gallery {
        position: sticky;
        top: calc(var(--nav-height, 70px) + 24px);
        z-index: 10;
        margin-bottom: 20px;
    }

    .col-lg-5 .sh-box {
        position: sticky;
        top: calc(var(--nav-height, 70px) + 24px);
        z-index: 10;
        margin-bottom: 20px;
    }
}

/* کانتینری برای مرکز کردن محتوا (در صورت استفاده از کانتینر) */
.content-container {
    display: flex;
    justify-content: center;
}

.Content-p {
    direction: rtl;
    text-align: justify;
    padding-bottom: 15px;
}

.Content-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 15px;
}

.Content-ul {
    margin-top: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    text-align: right;
    direction: rtl;
}

.Content-ul li {
    display: flex;
    align-items: center;
}

.Content-ul li i {
    margin-left: 8px;
}

/* ۱. مانیتورهای خیلی بزرگ (Extra Large Desktop) */
@media (min-width: 1400px) {
    .Content-img {
        width: 50%;
    }
}

/* ۲. مانیتورهای معمولی و لپ‌تاپ (Large Desktop) */
@media (max-width: 1399px) and (min-width: 1200px) {
    .Content-img {
        width: 60%;
    }
}

/* ۳. لپ‌تاپ‌های کوچک و تبلت در حالت افقی (Desktop/Laptop) */
@media (max-width: 1199px) and (min-width: 992px) {
    .Content-img {
        width: 70%;
    }
}

/* ۴. تبلت در حالت عمودی (Tablets) */
@media (max-width: 991px) and (min-width: 768px) {
    .Content-img {
        width: 80%;
    }
}

/* ۵. گوشی‌های بزرگ (Large Phones) */
@media (max-width: 767px) and (min-width: 576px) {
    .Content-img {
        width: 90%;
    }
}

/* ۶. گوشی‌های کوچک (Small Phones) */
@media (max-width: 575px) {
    .Content-img {
        width: 98%;
    }
}


/* ------------------------------- Special-offer --- START -------------------------------- */
.Special-offer-wrapper {
    position: relative;
    width: 100%;
    container-type: inline-size;
    container-name: SpecialOfferWidget;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin:50px 0 25px;
    transition: all 0.4s ease;
}

/*
.Special-offer-wrapper::before,
.Special-offer-wrapper::after {
    content: '';
    position: absolute;
    top: -30px;
    width: clamp(100px, 15cqi, 150px);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1.5px dashed var(--bg-pink);
    z-index: 0;
}
.Special-offer-wrapper::before { left: clamp(-15px, -5cqi, -50px); }
.Special-offer-wrapper::after { right: clamp(-15px, -5cqi, -50px); }
*/

.Special-offer-top-step-back {
    position: absolute;
    top: clamp(-20px, -4cqi, -30px);
    width: 86%;
    height: clamp(30px, 6cqi, 50px);
    background-color: var(--Special-offer-step-1);
    border-radius: clamp(20px, 4cqi, 40px) clamp(20px, 4cqi, 40px) 0 0;
    z-index: 1;
}

.Special-offer-top-step-front {
    position: absolute;
    top: clamp(-10px, -2cqi, -15px);
    width: 94%;
    height: clamp(30px, 6cqi, 50px);
    background-color: var(--Special-offer-step-2);
    border-radius: clamp(25px, 5cqi, 45px) clamp(25px, 5cqi, 45px) 0 0;
    z-index: 2;
}

.Special-offer-main-card {
    background-color: var(--Special-offer-bg-card);
    border-radius: clamp(25px, 6cqi, 50px);
    width: 100%;
    padding: clamp(15px, 3cqi, 35px) clamp(5px, 1cqi, 10px);
    box-shadow: 0 15px 45px var(--purple-glass);
    position: relative;
    z-index: 3;
    overflow: hidden;
}

.swiper.Special-offer-swiper {
    width: 100%;
    height: 100%;
    padding: 0;
    position: relative;
}

ul.swiper-wrapper {
    list-style: none;
    margin: 0;
    padding: 0;
}

.swiper.Special-offer-swiper::before,
.swiper.Special-offer-swiper::after {
    content: '';
    position: absolute;
    top: 0%;
    bottom: 0%;
    width: 3px;
    background-color: var(--Special-offer-bg-card);
    z-index: 10;
    pointer-events: none;
}

.swiper.Special-offer-swiper::before { left: -1px; }
.swiper.Special-offer-swiper::after { right: -1px; }

.Special-offer-swiper .swiper-slide {
    container-type: inline-size;
    container-name: SpecialOfferSlide;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(5px, 3cqi, 15px);
    height: auto;
    border-left: 1.5px solid var(--Special-offer-divider);
}

.Special-offer-product-figure {
    margin: 0 0 clamp(10px, 6cqi, 20px) 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.Special-offer-product-img {
    width: clamp(75px, 65cqi, 170px);
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.Special-offer-swiper .swiper-slide:hover .Special-offer-product-img {
    transform: scale(1.08);
}

.Special-offer-title-text {
    color: var(--Special-offer-text-dark);
    font-size: clamp(0.75rem, 7cqi, 1.15rem);
    font-weight: 700;
    text-align: center;
    line-height: 1.8;
    margin: 0 0 clamp(9px, 4cqi, 15px) 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.Special-offer-en-text {
    display: inline-block;
    direction: ltr;
    font-weight: 800;
}

.Special-offer-price-container {
    display: flex;
    align-items: baseline;
    gap: 4px;
    direction: rtl;
    margin-top: auto;
}

.Special-offer-price-number {
    color: var(--Special-offer-text-red);
    font-size: clamp(0.9rem, 9cqi, 1.3rem);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.Special-offer-price-unit {
    color: var(--text-primary);
    font-size: clamp(0.75rem, 6cqi, 0.95rem);
    font-weight: 500;
}

.Special-offer-bottom-mountain {
    position: absolute;
    bottom: clamp(-30px, -8cqi, -50px);
    width: clamp(100px, 35cqi, 180px);
    height: clamp(50px, 12cqi, 80px);
    background: var(--bg-pink);
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: clamp(12px, 3cqi, 18px);
    box-shadow: inset 0 -10px 10px var(--purple-glass);
    pointer-events: none;
}

.Special-offer-chevron-icon {
    width: clamp(12px, 3cqi, 18px);
    height: clamp(12px, 3cqi, 18px);
    margin-bottom: -10px;
    background-image: url('../../images/Pic/arrow-down.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    transform: rotate(0deg);
    flex-shrink: 0;
    filter: invert(13%) sepia(80%) saturate(3000%) hue-rotate(270deg) brightness(60%);
}

.Special-offer-price-box {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.Special-offer-price-box.standard {
    gap: 4px;
}

.Special-offer-price-box.standard .Special-offer-amount {
    font-size: 16px;
    color: var(--green-success);
    font-weight: 900;
}

.Special-offer-price-box.standard .Special-offer-currency {
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 400;
}

.Special-offer-price-box.discounted {
    flex-direction: column;
    gap: 0px;
}

.Special-offer-old-price-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: -2px;
}

.Special-offer-old-price {
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 500;
}

.Special-offer-percent-pill {
    background-color: var(--red-brand);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 6px;
}

.Special-offer-new-price-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.Special-offer-new-amount {
    font-size: 16px;
    font-weight: 900;
    color: var(--green-success);
}

.Special-offer-new-currency {
    font-size: 10px;
    font-weight: 400;
    color: var(--text-secondary);
}

.Special-offer-badge {
    position: absolute;
    top: -9px;
    left: 0;
    background-color: var(--red-brand);
    color: var(--white);
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 14px;
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 14px;
    z-index: 10;
    box-shadow: 0 3px 5px var(--red-border);
}


@media (max-width: 399px) { .Special-offer-wrapper { max-width: 95vw; } }
@media (min-width: 400px) and (max-width: 599px) { .Special-offer-wrapper { max-width: 90vw; } }
@media (min-width: 600px) and (max-width: 767px) { .Special-offer-wrapper { max-width: 85vw; } }
@media (min-width: 768px) and (max-width: 991px) { .Special-offer-wrapper { max-width: 90vw; } }
@media (min-width: 992px) and (max-width: 1199px) { .Special-offer-wrapper { max-width: 92vw; } }
@media (min-width: 1200px) { .Special-offer-wrapper { max-width: 1300px; } }


/* ----------------------------------- Section Divider - START ----------------------------------- */
img.wave{
width:100%;
height:30px;
display:block;
}
.divider-wrap {
    width: 100%;
}

.divider-combined {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: transparent;
    padding: 0.85rem 0;
}

.accent-bar {
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, #6A0DAD 0%, #C39BD3 50%, #6A0DAD 100%);
    border-radius: 3px;
    flex-shrink: 0;
}

.divider-arrow {
    width: 20px;
    height: 20px;
    background-image: url('../../images/Pic/arrow-down.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    transform: rotate(90deg);
    flex-shrink: 0;
    margin-right: -0.7rem;
    filter: invert(13%) sepia(80%) saturate(3000%) hue-rotate(270deg) brightness(60%);
}

.divider-title {
    font-size: 1rem;
    font-weight: 600;
    color: #4B0082;
    white-space: nowrap;
    flex-shrink: 0;
}

.wave-line {
    flex: 1;
    height: 30px;
    min-width: 0;
}

.wave-line svg {
    width: 100%;
    height: 100%;
    display: block;
}

.mobile-hide {
    display: block;
}

@media (max-width: 767px) {
    .mobile-hide {
        display: none;
    }
}
/* ----------------------------------- Section Divider - END ----------------------------------- */
/* ------------------------------- Bestseller --- START ---------------------------------- */
.bestseller-widget-wrapper {
    width: 100%;
    max-width: 1600px;
    position: relative;
    font-family: 'Vazirmatn', sans-serif;
}

.bestseller-header-section {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 10px;
}

.bestseller-title-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bestseller-dots-bg {
    width: 32px;
    height: 56px;
    background-image: radial-gradient(var(--bestseller-color-text-muted) 2px, transparent 2.5px);
    background-size: 8px 8px;
    opacity: 0.6;
}

.bestseller-title-text {
    text-align: right;
}

.bestseller-title-text h2 {
    font-size: clamp(22px, 4vw, 36px);
    font-weight: 900;
    color: var(--bestseller-color-text-dark);
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.bestseller-title-text h1 {
    font-size: clamp(22px, 4vw, 36px);
    font-weight: 900;
    color: var(--bestseller-color-text-dark);
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}
.bestseller-highlight {
    color: var(--bestseller-color-primary);
}
.bestseller-title-text h2 .bestseller-highlight {
    color: var(--bestseller-color-primary);
}

.bestseller-title-text p {
    font-size: 16px;
    color: var(--bestseller-color-text-muted);
    font-weight: 500;
    margin: 0;
}

.bestseller-slider-window {
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 30px 20px;
    position: relative;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.bestseller-slider-window::-webkit-scrollbar {
    display: none;
}

.bestseller-slider-track {
    display: flex;
    width: max-content;
}

.bestseller-slide-column {
    display: flex;
    flex-direction: column;
    gap: var(--bestseller-gap-size);
    padding: 0 10px 0px 30px;
    flex-shrink: 0;
    height: auto;
    scroll-snap-align: start;
}

.bestseller-product-card {
    background: var(--bestseller-color-bg-card);
    border-radius: var(--bestseller-border-radius);
    -webkit-box-shadow: 0 0px 20px rgba(0, 0, 0, .05);
    -moz-box-shadow: 0 0px 20px rgba(0, 0, 0, .05);
    box-shadow: 0 0px 20px rgba(0, 0, 0, .05);
    height: var(--bestseller-card-height);
    width: 100%;
    transition: transform 0.2s ease;
}

.bestseller-product-card:hover {
    transform: translateY(-2px);
}

.bestseller-product-link {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 15px;
    text-decoration: none;
    color: inherit;
}

.bestseller-card-col-right {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%;
}

.bestseller-rank-num {
    font-size: 32px;
    font-weight: 800;
    color: var(--bestseller-color-primary);
    width: 30px;
    text-align: center;
}

.bestseller-divider {
    width: 2px;
    height: 40%;
    background-color: var(--bg-pink);
}

.bestseller-card-col-mid {
    flex: 1;
    padding: 0 15px;
    text-align: right;
}

.bestseller-card-col-mid h3 {
    font-size: 15px;
    color: var(--bestseller-color-text-dark);
    margin: 0 0 5px 0;
    font-weight: 800;
}

.bestseller-card-col-mid p {
    font-size: 13px;
    color: var(--bestseller-color-text-muted);
    font-weight: 600;
    margin: 0;
}

.bestseller-card-col-left {
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bestseller-card-col-left img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.bestseller-nav-btn {
    position: absolute;
    top: 60%;
    transform: translateY(-50%);
    width: var(--bestseller-btn-size);
    height: var(--bestseller-btn-size);
    background: var(--bestseller-color-btn-bg);
    border-radius: 50%;
    border: 1.5px solid var(--bg-pink);
    box-shadow: var(--bestseller-shadow-btn);
    cursor: pointer;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.9;
    padding: 0;
}

.bestseller-nav-btn:hover {
    background: var(--bestseller-color-bg-card);
    box-shadow: var(--bestseller-shadow-btn-hover);
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

.bestseller-nav-btn svg {
    width: 24px;
    height: 24px;
    stroke: var(--bestseller-color-primary);
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bestseller-nav-btn.bestseller-next { left: 10px; }
.bestseller-nav-btn.bestseller-prev { right: 10px; }

@media (max-width: 600px) {
    .bestseller-slide-column { width: 100vw;}
    .bestseller-header-section { margin-bottom: 20px; }
    .bestseller-nav-btn { width: 40px; height: 40px; top: 65%; }
    .bestseller-widget-wrapper { max-width: 100%; }
    body { padding: 10px 0; }
}

@media (min-width: 601px) and (max-width: 992px) {
    .bestseller-slide-column { width: calc((100vw - 40px) / 2); }
}

@media (min-width: 993px) and (max-width: 1400px) {
    .bestseller-slide-column { width: calc((100vw - 40px) / 3); max-width: 400px; }
}

@media (min-width: 1401px) {
    .bestseller-slide-column { width: calc(1600px / 4); }
}

/* --------------------------------------Bestseller --- END----------------------------------- */
.success-state {
    max-width: 100%;
    background: var(--green-success) !important;
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.3) !important;
    border: 1px solid #badbcc !important;
}

/* -------------------------------------- comnt AND Stars --- Start ----------------------------------- */
        .card-container {
            container-type: inline-size;
            container-name: card;
            width: 100%;
        }

        .card {
            background-color: var(--white, #ffffff);
            border-radius: clamp(12px, 2vw, 16px);
            padding: clamp(1rem, 3cqi, 1.5rem);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
            border: 1px solid var(--border-color);
            margin-bottom: clamp(1rem, 4cqi, 1.5rem);
        }
/* --- Section 1: Article Meta --- */
.rating-box {
    background-color: var(--gray-light);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

        @container card (max-width: 500px) {
            .rating-box {
                flex-direction: column;
                align-items: flex-start;
            }
            .stars-container {
                width: 100%;
                justify-content: space-between;
            }
        }

        .stars-container {
            display: flex;
            align-items: center;
            gap: 1rem;
            color: var(--text-muted);
        }

        .stars {
            display: flex;
            direction: ltr;
            cursor: pointer;
            touch-action: none;
            gap: 4px;
        }

        .stars i {
            color: var(--border-color);
            font-size: clamp(1.1rem, 3cqi, 1.3rem);
            transition: color 0.1s;
        }

        .stars i.filled { color: var(--yellow-star); }

        .rating-text {
            color: var(--accent-color, #8b5cf6);
            font-weight: bold;
            font-size: clamp(0.8rem, 2cqi, 0.9rem);
            min-width: 60px;
            text-align: right;
        }

        .meta-divider {
            height: 1.15px;
            background-color: var(--border-color);
            margin: clamp(1.6rem, 4cqi, 2rem) 0;
        }


     /* کدهای CSS جدید و اختصاصی (ضد تداخل) */
.article-meta-actions-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    box-sizing: border-box;
    width: 100%;
}


.article-share-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.article-social-icons {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.article-social-icons i {
    font-size: clamp(1.2rem, 3cqi, 1.4rem);
    cursor: pointer;
    transition: color 0.2s ease;
    display: inline-flex;
}

.article-social-icons i:hover {
    color: var(--accent-color, #8b5cf6);
}

.article-copy-link-box {
    background-color: var(--white, #ffffff);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: clamp(0.75rem, 2cqi, 0.85rem);
    width: clamp(200px, 40cqi, 250px);
    max-width: 100%;
    box-sizing: border-box;
}

.article-copy-link-box input {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    width: 100%;
    color: inherit;
    direction: ltr;
    margin: 0;
    padding: 0;
    box-shadow: none !important;
}

.article-copy-link-box i {
    cursor: pointer;
    transition: color 0.2s;
}

.article-copy-link-box i:hover {
    color: var(--accent-color, #8b5cf6);
}

/* واکنش‌گرایی اختصاصی برای همین بخش */
@container card (max-width: 600px) {
    .article-share-group {
        width: 100%;
        justify-content: space-between;
        flex-direction: row-reverse;
    }
    .article-copy-link-box {
        width: calc(100% - 70px);
    }
    .article-meta-actions-wrapper {
        justify-content: center;
    }
}

        /* --- Section 2: Comments --- */
        .section-title {
            color: var(--text-primary);
            font-size: clamp(1.1rem, 3cqi, 1.4rem);
            font-weight: bold;
            margin-bottom: clamp(1rem, 3cqi, 1.5rem);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .section-title i {
            color: var(--accent-color, #8b5cf6); 
        }

.auth-banner {
    background-color: var(--bg-color);
    color: var(--accent-color);
    padding: 0.9rem 1rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

        @container card (max-width: 500px) {
            .auth-banner { flex-direction: column; text-align: center; justify-content: center; }
        }

        .auth-message {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: bold;
}

.auth-link {
    color: var(--white);
    background-color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    transition: background-color 0.2s;
    white-space: nowrap;
}
        .auth-link:hover { color: var(--purple-dark, #6d28d9); border-color: var(--purple-dark, #6d28d9); }

        /* --- Comment Form --- */
        .comment-form {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            margin-bottom: clamp(1.5rem, 5cqi, 2.5rem);
        }

        .comment-form textarea {
            width: 100%;
            min-height: clamp(100px, 20cqi, 120px);
            padding: 1rem;
            border: 1px solid var(--border-color);
            border-radius: 12px;
            background-color: var(--white, #ffffff);
            color: var(--text-primary);
            font-size: clamp(0.85rem, 2cqi, 0.95rem);
            resize: vertical;
            transition: border-color 0.3s;
        }
        .comment-form textarea:focus {
            border-color: var(--accent-color, #8b5cf6);
            box-shadow: 0 0 0 3px var(--purple-light, #ede9fe);
        }

        .btn-submit {
            align-self: flex-end;
            background-color: var(--accent-color, #8b5cf6);
            color: var(--white, #ffffff);
            border: none;
            padding: 0.7rem 1.5rem;
            border-radius: 8px;
            font-size: clamp(0.8rem, 2cqi, 0.9rem);
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
        }
        .btn-submit:hover {
            background-color: var(--purple-dark, #6d28d9);
            transform: translateY(-2px);
        }

        @container card (max-width: 450px) {
            .btn-submit { width: 100%; align-self: stretch; }
        }

        /* --- Comments List --- */
        .comments-list {
            display: flex;
            flex-direction: column;
            gap: clamp(1rem, 3cqi, 1.5rem);
        }

        .comment-item {
            padding: clamp(1rem, 3cqi, 1.2rem);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            background-color: var(--white, #ffffff);
        }

        .comment-header {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 0.8rem;
        }

        .comment-avatar {
            width: clamp(35px, 8cqi, 45px);
            height: clamp(35px, 8cqi, 45px);
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--purple-light, #ede9fe);
        }

        .comment-meta {
            display: flex;
            flex-direction: column;
            gap: 0.2rem;
        }

        .comment-author {
            color: var(--text-primary);
            font-weight: bold;
            font-size: clamp(0.85rem, 2.5cqi, 0.95rem);
        }

        .comment-date {
            color: var(--text-muted);
            font-size: clamp(0.7rem, 2cqi, 0.8rem);
        }

        .comment-body {
            color: var(--text-secondary);
            font-size: clamp(0.85rem, 2.5cqi, 0.95rem);
            line-height: 1.8;
            margin-right: clamp(0px, 8cqi, 3.5rem);
        }

        @container card (max-width: 450px) {
            .comment-body { margin-right: 0; margin-top: 10px; }
        }
