/* ============================================
   استایل صفحه محصولات | انتارس
   کاملاً هماهنگ با استایل اصلی سایت
   رنگ‌بندی صحیح متن‌ها در تم تاریک و روشن
   ============================================ */

/* متغیرهای مخصوص صفحه محصولات */
:root {
    --input-text-color: #EDE8DC;
    --input-bg-color: rgba(20, 28, 44, 0.6);
    --input-border-color: rgba(212, 175, 55, 0.12);
    --input-placeholder-color: #706858;
}

body.light-mode {
    --input-text-color: #1A1A1A;
    --input-bg-color: #FFFFFF;
    --input-border-color: rgba(139, 105, 20, 0.25);
    --input-placeholder-color: #888888;
}

/* بخش اصلی */
.products-section {
    padding: 60px 0 80px;
    min-height: 70vh;
}

/* هدر محصولات */
.products-header {
    text-align: center;
    margin-bottom: 40px;
}

.products-header .section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.25);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--gold-light);
    margin-bottom: 16px;
    font-weight: 600;
}

.products-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.products-header .gold-text {
    background: linear-gradient(135deg, #D4AF37, #F4D03F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.products-header p {
    color: var(--text-secondary);
    font-size: clamp(0.85rem, 1.3vw, 0.95rem);
    max-width: 600px;
    margin: 0 auto;
}

/* نوار فیلتر */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    padding: 16px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-default);
    border-radius: 16px;
    backdrop-filter: blur(20px);
}

body.light-mode .filter-bar {
    background: #FFFFFF;
    border-color: rgba(139, 105, 20, 0.2);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.filter-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-category {
    padding: 8px 18px;
    border-radius: 50px;
    border: 1px solid var(--border-default);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: 'Peyda', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

body.light-mode .filter-category {
    border-color: rgba(139, 105, 20, 0.25);
}

.filter-category:hover {
    border-color: var(--gold-light);
    color: var(--gold-light);
}

.filter-category.active {
    background: linear-gradient(135deg, #D4AF37, #C9A84C);
    color: #0A0A0A;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

body.light-mode .filter-category.active {
    color: #FFFFFF;
}

.filter-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-sort {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-sort label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.filter-sort select {
    padding: 8px 32px 8px 12px;
    border-radius: 50px;
    border: 1px solid var(--border-default);
    background: var(--input-bg-color);
    color: var(--input-text-color);
    font-family: 'Peyda', sans-serif;
    font-size: 0.8rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23D4AF37' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 10px center;
}

.filter-view {
    display: flex;
    gap: 4px;
}

.view-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border-default);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.view-btn.active {
    border-color: var(--gold-light);
    color: var(--gold-light);
    background: rgba(212, 175, 55, 0.1);
}

.view-btn:hover {
    border-color: var(--gold-light);
    color: var(--gold-light);
}

/* تعداد محصولات */
.result-count {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 20px;
}

.result-count strong {
    color: var(--gold-light);
}

/* گرید محصولات */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(12px, 2vw, 20px);
    margin-bottom: 40px;
}

/* حالت لیست */
.products-grid.list-view {
    grid-template-columns: 1fr;
    gap: 8px;
}

.products-grid.list-view .product-card {
    flex-direction: row;
    align-items: center;
    padding: 10px 14px;
    gap: 14px;
    border-radius: 14px;
}

.products-grid.list-view .card-image-wrap {
    width: 85px;
    height: 85px;
    aspect-ratio: auto;
    border-radius: 10px;
    flex-shrink: 0;
}

.products-grid.list-view .card-badges {
    top: 6px;
    right: 6px;
    gap: 3px;
}

.products-grid.list-view .card-badge {
    padding: 3px 8px;
    font-size: 0.55rem;
}

.products-grid.list-view .card-info {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 0;
    flex: 1;
}

.products-grid.list-view .card-info-top {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.products-grid.list-view .card-cat {
    display: none;
}

.products-grid.list-view .card-title {
    font-size: 0.84rem;
    min-height: auto;
    -webkit-line-clamp: 1;
    white-space: nowrap;
    min-width: 150px;
}

.products-grid.list-view .card-specs {
    font-size: 0.7rem;
}

.products-grid.list-view .card-price-row {
    margin-top: 0;
    gap: 12px;
    flex-shrink: 0;
}

.products-grid.list-view .card-price {
    font-size: 0.88rem;
}

.products-grid.list-view .card-actions-row {
    flex-shrink: 0;
}

/* کارت محصول */
.product-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-default);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    position: relative;
}

body.light-mode .product-card {
    background: #FFFFFF;
    border-color: rgba(139, 105, 20, 0.12);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-gold-default);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

body.light-mode .product-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

/* تصویر کارت */
.card-image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    cursor: pointer;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #0d0d0d;
    transition: 0.45s ease;
}

.product-card:hover .card-image-wrap img {
    transform: scale(1.06);
}

.card-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
}

.product-card:hover .card-image-overlay {
    opacity: 1;
}

.card-view-btn {
    padding: 10px 18px;
    border-radius: 50px;
    background: rgba(212, 175, 55, 0.9);
    color: #0A0A0A;
    font-family: 'Peyda', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.card-view-btn:hover {
    background: #F4D03F;
    transform: scale(1.05);
}

.card-view-btn svg {
    width: 16px;
    height: 16px;
}

/* نشان‌ها */
.card-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 5;
    pointer-events: none;
}

.card-badge {
    padding: 5px 11px;
    border-radius: 50px;
    font-size: 0.62rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
    letter-spacing: 0.3px;
}

.badge-hot {
    background: rgba(212, 175, 55, 0.92);
    color: #0A0A0A;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.badge-new {
    background: rgba(74, 222, 128, 0.92);
    color: #0A0A0A;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.badge-sale {
    background: rgba(231, 76, 60, 0.92);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.badge-rare {
    background: rgba(155, 89, 182, 0.92);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* اطلاعات کارت */
.card-info {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    justify-content: space-between;
}

.card-info-top {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.card-cat {
    font-size: 0.62rem;
    color: var(--gold-light);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.card-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
}

.card-specs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 0.66rem;
    color: var(--text-secondary);
}

.card-specs span {
    background: rgba(212, 175, 55, 0.06);
    padding: 3px 8px;
    border-radius: 50px;
    white-space: nowrap;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
}

.card-specs span svg {
    width: 12px;
    height: 12px;
    color: var(--gold-light);
    flex-shrink: 0;
}

body.light-mode .card-specs span {
    background: rgba(139, 105, 20, 0.06);
}

/* قیمت */
.card-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.card-price {
    font-size: 0.84rem;
    font-weight: 800;
    background: linear-gradient(135deg, #D4AF37, #F4D03F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

body.light-mode .card-price {
    background: linear-gradient(135deg, #8B6914, #D4AF37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-price.contact {
    background: none;
    -webkit-text-fill-color: var(--text-secondary);
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 600;
}

/* دکمه‌های اکشن */
.card-actions-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.card-add-btn {
    flex: 1;
    padding: 10px 14px;
    border-radius: 50px;
    border: 1px solid var(--gold-light);
    background: transparent;
    color: var(--gold-light);
    cursor: pointer;
    font-family: 'Peyda', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.card-add-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.card-add-btn:hover {
    background: linear-gradient(135deg, #D4AF37, #C9A84C);
    color: #0A0A0A;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
    transform: translateY(-1px);
}

body.light-mode .card-add-btn:hover {
    color: #FFFFFF;
}

.card-contact-btn {
    flex: 1;
    padding: 10px 14px;
    border-radius: 50px;
    border: 1px solid rgba(212, 175, 55, 0.5);
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold-light);
    cursor: pointer;
    font-family: 'Peyda', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.card-contact-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.card-contact-btn:hover {
    background: linear-gradient(135deg, #D4AF37, #F4D03F);
    color: #0A0A0A;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
    transform: translateY(-1px);
}

body.light-mode .card-contact-btn:hover {
    color: #FFFFFF;
}

.card-detail-btn {
    padding: 10px 14px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    cursor: pointer;
    font-family: 'Peyda', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex-shrink: 0;
}

body.light-mode .card-detail-btn {
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.02);
}

.card-detail-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.card-detail-btn:hover {
    border-color: var(--gold-light);
    color: var(--gold-light);
    background: rgba(212, 175, 55, 0.08);
}

/* صفحه‌بندی */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-default);
    background: var(--bg-glass);
    color: var(--text-secondary);
    cursor: pointer;
    font-family: 'Peyda', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0 12px;
}

body.light-mode .page-btn {
    background: #FFFFFF;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--gold-light);
    color: var(--gold-light);
}

.page-btn.active {
    background: linear-gradient(135deg, #D4AF37, #C9A84C);
    color: #0A0A0A;
    border-color: transparent;
}

body.light-mode .page-btn.active {
    color: #FFFFFF;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-dots {
    color: var(--text-muted);
    padding: 0 4px;
}

.page-numbers {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* ========== اضافه کردن رنگ‌بندی صحیح در تم تاریک ========== */
body:not(.light-mode) .product-card {
    background: rgba(10, 15, 24, 0.7);
}

body:not(.light-mode) .card-title {
    color: #FFFFFF;
}

body:not(.light-mode) .card-cat {
    color: #D4AF37;
}

body:not(.light-mode) .card-specs {
    color: #C5C0B5;
}

body:not(.light-mode) .card-specs span {
    color: #C5C0B5;
}

body:not(.light-mode) .result-count {
    color: #B0A898;
}

body:not(.light-mode) .filter-category {
    color: #C5C0B5;
}

body:not(.light-mode) .filter-sort label {
    color: #C5C0B5;
}

body:not(.light-mode) .card-detail-btn {
    color: #C5C0B5;
}

body:not(.light-mode) .card-detail-btn:hover {
    color: #D4AF37;
}

body:not(.light-mode) .page-btn {
    color: #C5C0B5;
}

body:not(.light-mode) .page-dots {
    color: #8A8598;
}

/* توست */
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 95vw;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: clamp(12px, 2vw, 16px) clamp(16px, 3vw, 24px);
    background: var(--bg-glass-strong);
    border: 1px solid var(--border-gold-default);
    color: var(--text-primary);
    font-family: 'Peyda', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(30px);
    box-shadow: var(--shadow-gold-md);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

body.light-mode .toast {
    background: #FFFFFF;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--gold-gradient);
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-icon.success {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
}

.toast-message {
    flex: 1;
}

.toast-close {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(212, 175, 55, 0.1);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold-light);
}

@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--gold-gradient);
    animation: toastProgress 2.5s linear forwards;
}

/* ========== ریسپانسیو ========== */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .products-grid.list-view .card-info {
        flex-wrap: wrap;
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-right {
        flex-direction: column;
        gap: 10px;
    }
    .filter-sort {
        justify-content: space-between;
    }
    .filter-view {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .products-section {
        padding: 40px 0 60px;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .products-grid.list-view {
        grid-template-columns: 1fr;
    }
    .card-info {
        padding: 10px;
        gap: 4px;
    }
    .card-title {
        font-size: 0.73rem;
    }
    .card-add-btn, .card-contact-btn, .card-detail-btn {
        font-size: 0.66rem;
        padding: 7px 9px;
        gap: 4px;
    }
    .card-add-btn svg, .card-contact-btn svg, .card-detail-btn svg {
        width: 13px;
        height: 13px;
    }
    .pagination {
        gap: 4px;
    }
    .page-btn {
        min-width: 35px;
        height: 35px;
        font-size: 0.75rem;
        padding: 0 8px;
    }
}
/* Opal display-only pricing */
.cart-icon,#cartBtn,#cartCount,.cart-sidebar,.quantity-selector,.quantity-control,.add-to-cart,[data-action="add-to-cart"]{display:none!important}
.price-breakdown{margin:16px 0;padding:14px;border:1px solid rgba(160,120,40,.25);border-radius:12px}.price-line{display:flex;justify-content:space-between;gap:16px;padding:6px 0}.price-final{margin-top:8px;padding-top:12px;border-top:1px solid currentColor;font-size:1.1em}.api-error{padding:20px;color:#b42318}.product-detail-gallery img{max-width:100%;height:auto}.product-card img{max-width:100%;height:auto}

/* Add this block to assets/css/products.css */
#productDetailsModal.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    inset: 0;
    padding: 32px 16px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

#productDetailsModal .modal-content {
    position: relative;
    width: min(900px, 100%);
    margin: 0 auto;
    padding: 25px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 18px;
    color: #fff;
    background: #0d131f;
    direction: rtl;
}

#productDetailsModal .close-modal {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 16px;
    border: 0;
    color: #a9a29a;
    background: transparent;
    font-size: 32px;
    cursor: pointer;
}

#productDetailsModal .modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-top: 20px; }
#productDetailsModal .main-modal-img { width: 100%; aspect-ratio: 1; object-fit: contain; object-position: center; background: #0d0d0d; border-radius: 12px; }
#productDetailsModal .gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
#productDetailsModal .gallery-thumb-btn { padding: 0; border: 0; background: transparent; cursor: pointer; }
#productDetailsModal .gallery-thumb { width: 70px; height: 70px; object-fit: contain; background:#0d0d0d; border: 1px solid transparent; border-radius: 8px; opacity: 0.6; }
#productDetailsModal .gallery-thumb.active { border-color: #d4af37; opacity: 1; }
#productDetailsModal .description { color: #a0a5b5; line-height: 1.8; }
#productDetailsModal .modal-specs { margin-bottom: 15px; }
#productDetailsModal .spec-badge { display: inline-block; margin: 4px; padding: 6px 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: rgba(255,255,255,.05); font-size: .8rem; }
#productDetailsModal .price-breakdown { padding: 15px; border: 1px solid rgba(212,175,55,.2); border-radius: 12px; background: rgba(0,0,0,.2); }
#productDetailsModal .price-line { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.05); color: #d4af37; font-size: .88rem; }
#productDetailsModal .discount-line { color: #7ddc9b; }
#productDetailsModal .price-final { display: flex; justify-content: space-between; gap: 16px; margin-top: 10px; padding-top: 12px; border-top: 2px dashed rgba(212,175,55,.4); font-weight: 700; }
#productDetailsModal .set-components { margin-top: 15px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.08); }
#productDetailsModal .set-components h4 { color: #d4af37; }
#productDetailsModal .set-components ul { padding-right: 20px; color: #a0a5b5; line-height: 1.9; }

@media (max-width: 768px) {
    #productDetailsModal .modal-grid { grid-template-columns: 1fr; }
    #productDetailsModal .modal-content { padding: 18px; }
}



/* نمایش کامل تصویر برش‌خورده بدون تغییر سایز کارت */
.card-image-wrap {
    background: #0d0d0d;
}
.product-card .card-image-wrap img {
    object-fit: contain !important;
    object-position: center !important;
}


/* —— تم روشن مودال جزئیات —— */
body.light-mode #productDetailsModal.modal {
    background: rgba(250, 247, 240, 0.72);
}
body.light-mode #productDetailsModal .modal-content {
    background: #ffffff;
    border-color: rgba(139, 105, 20, 0.25);
    color: #1a1a1a;
    box-shadow: 0 25px 60px rgba(0,0,0,0.12);
}
body.light-mode #productDetailsModal .close-modal {
    color: #1a1a1a;
    background: rgba(0,0,0,0.05);
}
body.light-mode #productDetailsModal .description,
body.light-mode #productDetailsModal .set-components ul,
body.light-mode #productDetailsModal .modal-loading {
    color: #5a5a5a;
}
body.light-mode #productDetailsModal .spec-badge {
    background: #f7f1e3;
    border-color: rgba(139,105,20,0.2);
    color: #3a3a3a;
}
body.light-mode #productDetailsModal .price-breakdown {
    background: #faf7f0;
    border-color: rgba(139,105,20,0.22);
}
body.light-mode #productDetailsModal .price-line {
    color: #8B6914;
    border-bottom-color: rgba(139,105,20,0.12);
}
body.light-mode #productDetailsModal .price-final {
    border-top-color: rgba(139,105,20,0.35);
    color: #1a1a1a;
}
body.light-mode #productDetailsModal .main-modal-img,
body.light-mode #productDetailsModal .gallery-thumb {
    background: #f3efe6;
}
body.light-mode #productDetailsModal h2,
body.light-mode #productDetailsModal h3,
body.light-mode #productDetailsModal h4 {
    color: #1a1a1a;
}

/* تصویر قابل کلیک برای زوم */
#productDetailsModal .main-modal-img {
    cursor: zoom-in;
    transition: transform 0.2s ease;
}
#productDetailsModal .main-modal-img:hover {
    outline: 1px solid rgba(212,175,55,0.45);
}

/* لایت‌باکس زوم */
#productImageLightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 20000;
    background: rgba(0,0,0,0.92);
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: zoom-out;
}
#productImageLightbox.open {
    display: flex;
}
#productImageLightbox img {
    max-width: min(96vw, 1100px);
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transform: scale(1);
    transition: transform 0.2s ease;
    cursor: grab;
}
#productImageLightbox .lb-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}
#productImageLightbox .lb-hint {
    position: absolute;
    bottom: 18px;
    right: 50%;
    transform: translateX(50%);
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
}
