:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --border-color: #e5e5e5;
    --link-hover: #e79cb1; 
    --accent-gold: #d4af37;
    --card-radius: 0px; 
    --gold-color: #d4af37;
    --btn-red: #e10718;
    --header-padding: 120px;
}

/* قانون کلی برای جلوگیری از بیرون‌زدگی تصاویر در کل سایت */
img {
    max-width: 100%;
    height: auto;
}

body {
    font-family: "Vazirmatn", Tahoma, sans-serif;
    background-color: var(--bg-color); 
    color: var(--text-color);
    margin: 0; 
    padding: 0; 
    padding-top: var(--header-padding); 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh;
}

.site-wrapper {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

a { text-decoration: none; color: inherit; transition: color 0.3s ease; cursor: pointer; }

@media (hover: hover) {
    a:hover { color: var(--link-hover); }
}

.container { max-width: 1400px; width: 85%; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }

main { flex: 1; padding: 10px 0 80px 0; }

/* استایل‌های بهبود یافته برای جلوگیری از شکستن خط و فعال‌سازی اسکرول افقی */
.breadcrumbs { 
    font-size: 13px; 
    color: #888; 
    margin-top: 35px; /* ایجاد فاصله از هدر در دسکتاپ */
    margin-bottom: 20px; 
    display: flex; 
    gap: 8px; 
    align-items: center; 
    white-space: nowrap; 
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch; 
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}
.breadcrumbs::-webkit-scrollbar { 
    display: none; 
}
.breadcrumbs a { color: #555; }

@media (hover: hover) {
    .breadcrumbs a:hover { color: var(--text-color); }
}
.breadcrumbs span { color: #ccc; }

.artwork-layout { display: grid; grid-template-columns: 6fr 4fr; gap: 40px; align-items: start; }

/* ========================================== */
/* تنظیمات عکس اصلی و گالری */
/* ========================================== */
.image-column {
    display: flex;
    flex-direction: row; 
    align-items: flex-start;
    gap: 15px;
    position: sticky;
    top: 140px; 
    z-index: 90;
    width: 100%;
}

.thumbnails-wrapper {
    display: flex;
    flex-direction: column; 
    gap: 12px;
    width: 80px;
    flex-shrink: 0;
    max-height: 650px;
    overflow-y: auto;
    scrollbar-width: none; 
}
.thumbnails-wrapper::-webkit-scrollbar {
    display: none; 
}

.thumb-image, .thumb-item {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid transparent;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.thumb-image:hover, .thumb-item:hover, .thumb-image.active, .thumb-item.active {
    border-color: #000;
    opacity: 1;
}

.main-image-container {
    flex: 1;
    width: calc(100% - 95px);
    position: relative;
    background-color: #fafafa; 
    border: 1px solid #f0f0f0;
    padding: 20px;
    min-height: 450px; 
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
}

.main-image, #main-art-image { 
    max-width: 100%; height: auto; object-fit: contain; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.15); border-radius: 0; 
    position: relative; z-index: 10; 
    transition: transform 0.1s ease-out; 
    transform-origin: center center;
}

/* ========================================== */

.action-circle { position: absolute; width: 45px; height: 45px; background: rgba(255, 255, 255, 0.9); border-radius: 0; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 20; transition: all 0.3s ease; box-shadow: 0 4px 10px rgba(0,0,0,0.1); color: #555; }

@media (hover: hover) {
    .action-circle:hover { background: #fff; transform: scale(1.1); }
    .fav-overlay:hover { color: var(--btn-red); background: #fff; }
    .compare-overlay:hover { color: #007aff; background: #fff; }
    .share-overlay:hover { background: #000; color: #fff; }
    .zoom-overlay:hover { background: #000; color: #fff; }
}

.fav-overlay { top: 20px; right: 20px; width: auto; padding: 0 15px; border-radius: 0; font-weight: bold; font-size: 16px; gap: 8px; }
.fav-active { color: var(--btn-red); background: #fff; }
.fav-overlay svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; transition: fill 0.3s; }
.fav-active svg { fill: currentColor; }

.compare-overlay { top: 20px; left: 20px; border-radius: 0;}
.compare-active { color: #007aff; background: #fff; }

.share-overlay { bottom: 20px; right: 20px; border-radius: 50%; color: #000; }
.zoom-overlay { bottom: 20px; left: 20px; border-radius: 50%; }

.info-column { display: flex; flex-direction: column; box-sizing: border-box; max-width: 100%; }

.purchase-desc-box { background-color: #fafafa; padding: 30px; border: 1px solid #f0f0f0; position: relative; z-index: 10; box-sizing: border-box; }

.art-artist { font-size: 16px; font-weight: bold; color: #555; margin-bottom: 10px; cursor: pointer; text-transform: uppercase; transition: color 0.3s ease;}

@media (hover: hover) {
    .art-artist:hover { text-decoration: underline; color: #d4af37; }
}

.art-title { font-size: 26px; font-weight: bold; margin: 0 0 15px 0; color: #111; line-height: 1.3; }

.quick-specs { font-size: 14px; font-weight: normal; line-height: 1.9; color: #222; margin-bottom: 25px; }
.quick-specs div { margin-bottom: 7px; border-bottom: 1px dashed #e5e5e5; padding-bottom: 4px; }
.quick-specs div b { color: #555; font-weight: 500; margin-left: 5px; }

.price-reserve-row { 
    display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; 
    padding: 20px 20px 20px 76px; 
    border: none; background-color: #000; color: #fff; box-sizing: border-box; 
    width: calc(100% + 56px); 
    margin-left: -56px; 
    border-top-left-radius: 6px; border-bottom-left-radius: 0px; 
    position: relative;
    z-index: 20;
}

.price-reserve-row::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -15px;
    width: 0;
    height: 0;
    border-top: 15px solid #555; 
    border-left: 26px solid transparent; 
    z-index: -1; 
}

.art-price { font-size: 38px; font-weight: bold; color: #fff; display:flex; align-items:center; gap:8px; direction:rtl; margin:0; }
.art-price .currency-label { font-size: 18px; font-weight: normal; opacity: 0.9; }
.art-price .price-number { font-size: 25px; line-height: 1; }

.btn-base, .btn-action-fixed, .main-reserve-btn {
    width: 200px; height: 48px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; padding: 0 15px; margin: 0;
}
.btn-reserve { background-color: #019146; color: #fff; border: 2px solid #019146; font-size: 16px; font-weight: bold; font-family: inherit; cursor: pointer; border-radius: 0; text-decoration: none; transition: all 0.3s ease; flex-shrink: 0; display:flex; align-items:center; height: 56px; padding: 0 25px; justify-content: center;}

@media (hover: hover) {
    .btn-reserve:hover { background-color: #017a3a; border-color: #017a3a; color:#fff; transform: translateY(-2px); }
}

#reserve-options-wrapper { position: relative; width: 100%; z-index: 30; }
#reserve-options-container { position: absolute; left: 20px; top: -20px; display: flex; flex-direction: column; gap: 10px; max-height: 0; opacity: 0; overflow: hidden; transition: all 0.4s ease-in-out; width: 200px; pointer-events: none; }
#reserve-options-container.open { max-height: 200px; opacity: 1; top: -5px; pointer-events: auto; }

.status-badge { display: inline-block; padding: 6px 12px; border-radius: 0; font-size: 12px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px;}
.status-sold { background: var(--btn-red); color: #fff; }
.status-reserved { background: var(--accent-gold); color: #000; }
.status-reorder { background: #f0f0f0; color: #000; border: 1px solid #ddd; }

.extra-features-vertical { display: flex; flex-direction: column; gap: 12px; margin: 15px 0 25px 0; }
.feature-item { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: bold; color: #000; }
.feature-item svg { flex-shrink: 0; stroke-width: 2; }

.artwork-checkbox-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    margin-bottom: 25px;
    width: 100%;
}

.artwork-perk-box {
    background: #f4fcf7;
    border: 1px solid #d1eedc;
    padding: 6px 12px;
    border-radius: 0; 
    display: flex;
    align-items: center;
    gap: 6px;
}

.artwork-perk-box b {
    font-size: 12px;
    color: #000; 
    font-weight: bold;
}

.artwork-perks-grid { display: flex; flex-wrap: wrap; gap: 12px; margin: 35px 0 10px 0; padding: 20px; background: #fafafa; border: 1px solid #000; border-radius: 0; justify-content: center; box-sizing: border-box; }
.artwork-perks-grid span { display: flex; align-items: center; gap: 8px; background: #fff; padding: 8px 18px; border-radius: 0; font-size: 14px; font-weight: bold; color: #444; border: 1px solid #000; box-shadow: 0 2px 5px rgba(0,0,0,0.02); transition: all 0.3s ease; }

@media (hover: hover) {
    .artwork-perks-grid span:hover { transform: translateY(-2px); box-shadow: 0 5px 12px rgba(0,0,0,0.06); border-color: var(--gold-color); color: #000; }
}

.art-desc-text { font-size: 15px; line-height: 1.8; color: #333; white-space: pre-wrap; text-align: justify; text-justify: inter-word; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; transition: all 0.3s ease; }
.art-desc-text.expanded { -webkit-line-clamp: unset; line-clamp: unset; }

.bio-text { font-size: 15px; line-height: 1.8; color: #555; white-space: pre-wrap; margin: 0; text-align: justify; text-justify: inter-word; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; transition: all 0.3s ease; }
.bio-text.expanded { -webkit-line-clamp: unset; line-clamp: unset; }

.section-title { font-size: 22px; margin: 25px 0 10px 0; border-bottom: 2px solid #000; display: inline-block; padding-bottom: 5px;}

.carousel-wrapper { position: relative; width: 100%; display: flex; align-items: center; }

.carousel-nav-btn {
    position: absolute;
    top: 105px; 
    width: 40px; 
    height: 40px;
    background: rgba(255,255,255,0.95); 
    border: 1px solid #ddd; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 22px; 
    font-weight: bold; 
    color: #333; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); 
    z-index: 10; 
    cursor: pointer;
    transition: all 0.3s ease;
}

@media (hover: hover) {
    .carousel-nav-btn:hover { background: #000; color: #fff; border-color: #000; transform: scale(1.1); }
}

.carousel-nav-btn.right-btn { right: -20px; }
.carousel-nav-btn.left-btn { left: -20px; }

.new-nav-btn {
    position: static !important; 
    width: 36px !important;
    height: 36px !important;
    background: transparent !important;
    border: 1px solid #777 !important;
    color: #333 !important;
    box-shadow: none !important;
    border-radius: 50% !important;
    padding: 0 !important;
}

@media (hover: hover) {
    .new-nav-btn:hover {
        background: #f5f5f5 !important;
        border-color: #000 !important;
        color: #000 !important;
        transform: scale(1.05) !important;
    }
}

.carousel-container { display: flex; overflow-x: auto; gap: 20px; padding-bottom: 20px; scrollbar-width: thin; scrollbar-color: #000000 transparent; width: 100%; box-sizing: border-box; }
.carousel-container::-webkit-scrollbar { height: 6px; }
.carousel-container::-webkit-scrollbar-thumb { background-color: #000000; border-radius: 0; }
.carousel-item { min-width: 250px; max-width: 250px; border-radius: 0; overflow: hidden; transition: transform 0.3s ease; cursor: pointer; position: relative;}

@media (hover: hover) {
    .carousel-item:hover { transform: translateY(-5px); }
}

.carousel-item img { width: 100%; height: 250px; object-fit: cover; border-radius: 0;}
.carousel-item-info { 
    padding: 12px 5px 5px 5px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 10px;
}
.carousel-item-info h4 { 
    margin: 0; 
    font-size: 15px; 
    color: #000; 
    flex: 1; 
    text-align: right; 
}
.carousel-item-info p { 
    margin: 0; 
    font-size: 15px; 
    font-weight: bold; 
    color: #000; 
    direction: rtl; 
    text-align: left; 
    white-space: nowrap; 
}
.carousel-item-info p .currency-label { font-size: 0.7em; font-weight: normal; margin-left: 3px; opacity: 0.8;}

.card-compare-btn { position: absolute; top: 10px; left: 10px; width: 30px; height: 30px; background: rgba(255,255,255,0.9); border-radius: 0; display: flex; justify-content: center; align-items: center; color: #555; z-index: 10; box-shadow: 0 2px 5px rgba(0,0,0,0.1); border:none; cursor:pointer;}
.compare-active { color: #007aff; }

@media (hover: hover) {
    .card-compare-btn:hover { color: #007aff; }
}

.artist-profile-box { display: flex; align-items: flex-start; gap: 30px; background: #fafafa; padding: 25px 40px; border-radius: 0; border: 1px solid #f0f0f0; margin-top: 10px; box-sizing: border-box; }
.artist-profile-img { width: 120px; height: 120px; border-radius: 0; object-fit: cover; box-shadow: 0 5px 15px rgba(0,0,0,0.1); flex-shrink: 0; cursor: pointer; transition: transform 0.3s ease, opacity 0.3s ease;}

@media (hover: hover) {
    .artist-profile-img:hover { transform: scale(1.02); opacity: 0.9; }
}

.artist-profile-info { flex: 1; }
.artist-profile-info h3 { margin: 0 0 8px 0; font-size: 22px; }
#profile-name { cursor: pointer; transition: color 0.3s ease; }
@media (hover: hover) { #profile-name:hover { color: #d4af37; } }

.compare-bar { position: fixed; bottom: -100px; left: 0; width: 100%; background: #fff; box-shadow: 0 -5px 20px rgba(0,0,0,0.1); padding: 15px 20px; display: flex; justify-content: center; align-items: center; gap: 20px; z-index: 1000; transition: bottom 0.3s ease; box-sizing: border-box; }
.compare-bar.active { bottom: 0; }
.compare-items { display: flex; gap: 15px; }
.compare-item-thumb { width: 50px; height: 50px; border-radius: 0; object-fit: cover; border: 2px solid #ddd; position: relative; cursor: pointer; }
.compare-btn-action { background: #000; color: #fff; padding: 10px 30px; border-radius: 0; font-weight: bold; cursor: pointer; font-family: inherit; border:none; }
.compare-btn-clear { background: #ff3b30; color: #fff; padding: 10px 15px; border-radius: 0; cursor: pointer; border:none; }

.compare-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 2000; justify-content: center; align-items: center; }
.compare-content { background: #fff; width: 90%; max-width: 900px; max-height: 90vh; overflow-y: auto; border-radius: 0; padding: 30px; position: relative; box-sizing: border-box; }
.compare-table { width: 100%; border-collapse: collapse; margin-top: 20px; text-align: center; }
.compare-table th, .compare-table td { border: 1px solid #ddd; padding: 15px; }
.compare-table img { width: 120px; height: 120px; object-fit: cover; border-radius: 0; }
.compare-table th { background: #f9f9f9; width: 120px; text-align: right; font-weight: bold; }

.features-section { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 50px; padding: 30px 0; border-top: 1px dashed var(--border-color); width: 100%; box-sizing: border-box; }
.feature-box { text-align: center; padding: 20px 15px; background: #fafafa; border-radius: 8px; border: 1px solid #f0f0f0; transition: transform 0.3s ease; box-sizing: border-box; }

@media (hover: hover) {
    .feature-box:hover { transform: translateY(-5px); }
}

.feature-icon { margin-bottom: 15px; }
.feature-icon svg { width: 35px; height: 35px; stroke: #000; stroke-width: 1.5; }
.feature-title { font-size: 15px; font-weight: bold; color: #111; margin-bottom: 8px; }
.feature-text { font-size: 13px; color: #666; line-height: 1.7; }

.custom-order-banner { background-color: #fafafa; border: 1px solid #f0f0f0; border-radius: 8px; padding: 40px; margin: 40px 0; box-sizing: border-box; width: 100%; overflow: hidden; }
.custom-order-banner .banner-header { display: flex; align-items: center; gap: 20px; margin-bottom: 25px; }
.custom-order-banner .artist-img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; border: 2px solid #e5e5e5; flex-shrink: 0; }
.custom-order-banner h2 { margin: 0; font-size: 24px; font-weight: bold; color: #000; }
.custom-order-banner p { color: #444; font-size: 15px; line-height: 2; text-align: justify; margin-bottom: 10px; text-justify: inter-word; }
.custom-order-banner .btn-container { text-align: left; margin-top: 30px; }
.custom-order-banner .btn-order { display: inline-block; background-color: #000; color: #fff; padding: 14px 40px; font-size: 16px; font-weight: bold; text-decoration: none; border-radius: 4px; transition: all 0.3s ease; }

@media (hover: hover) {
    .custom-order-banner .btn-order:hover { background-color: #333; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
}

.btn-reserve-wrap { 
    width: 60%; 
    display: flex; flex-direction: column; 
    flex-shrink: 0;
    gap: 5px; 
}

.btn-reserve-disabled {
    border-radius: 0;
    cursor: not-allowed;
    background-color: #d51d29;
    border-color: #d51d29;
    width: 100%;
    pointer-events: none;
}

.btn-reserve-yellow {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.btn-bidding { 
    display: flex; align-items: center; justify-content: center; gap: 6px; 
    font-size: 12.5px; font-weight: bold; color: #fff; 
    text-decoration: none; background: #dc0a0a; padding: 8px 5px; 
    border-radius: 0; 
    border: none; transition: background 0.3s; width: 100%; box-sizing: border-box; 
    cursor: pointer; font-family: inherit;
}

@media (hover: hover) {
    .btn-bidding:hover { background: #b80808; }
}

/* ========================================== */
/* تنظیمات ریسپانسیو (تبلت و موبایل) */
/* ========================================== */
@media (max-width: 992px) {
    .artwork-layout { grid-template-columns: 1fr; gap: 15px; }
    .artist-profile-box { flex-direction: column; text-align: center; align-items: center; }
    
    .image-column { 
        /* استفاده از column-reverse برای بردن عکس‌های فرعی به زیر عکس اصلی */
        flex-direction: column-reverse !important; 
        position: relative !important; 
        top: auto !important; 
        gap: 10px !important;
    }
    .thumbnails-wrapper { 
        flex-direction: row !important; 
        flex-wrap: wrap !important; 
        justify-content: center !important; 
        width: 100% !important; 
        overflow: visible !important; 
    }
    .main-image-container { 
        width: 100% !important;
        min-height: 250px !important; 
        padding: 10px !important;
    } 
    .features-section { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { 
        --header-padding: 70px; 
    }
    
    .breadcrumbs {
        margin-top: 5px; 
        margin-bottom: 0px !important; 
    }
    .artwork-layout { 
        grid-template-columns: 1fr; 
        gap: 0px; 
        width: 100%; 
        box-sizing: border-box; 
    }
    main.container { width: 100%; padding: 0 15px; box-sizing: border-box; overflow: hidden; }
    
    .main-image-container { 
        padding: 0px !important; 
        min-height: auto !important; 
        border: none !important; 
    }

    .info-column { width: 100%; box-sizing: border-box; overflow: hidden; padding: 0; margin-top: 15px; }
    
    .purchase-desc-box { width: 100%; box-sizing: border-box; padding: 20px 15px; margin: 0; overflow: hidden; }
    
    .price-reserve-row { width: 100%; margin: 0; padding: 20px 15px; border-radius: 8px; flex-direction: column; align-items: stretch; justify-content: center; text-align: center; gap: 15px; box-sizing: border-box; left: 0; right: 0; }
    .price-reserve-row::before { display: none; }
    
    .art-price { font-size: 32px; justify-content: center; width: 100%; box-sizing: border-box; }
    .art-price .price-number { font-size: 32px; }

    .price-reserve-row .main-reserve-btn, #reserve-options-container .btn-action-fixed { width: 100%; height: 44px; font-size: 14px; padding: 0 5px; box-sizing: border-box; }
    .btn-reserve { height: 44px; font-size: 14px; padding: 0 15px; width: 100%; box-sizing: border-box; }
    .btn-reserve-wrap { width: 100%; max-width: 100%; box-sizing: border-box; }

    #reserve-options-wrapper { padding-left: 0; width: 100%; box-sizing: border-box; }
    #reserve-options-container { width: 100%; position: relative; left: 0; top: 0; box-sizing: border-box; }

    .carousel-nav-btn { display: none; }

    .artwork-perks-grid { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding: 15px 10px; -ms-overflow-style: none; scrollbar-width: none; width: 100%; box-sizing: border-box; }
    .artwork-perks-grid::-webkit-scrollbar { display: none; }
    .artwork-perks-grid span { flex-shrink: 0; white-space: nowrap; }
    
    .features-section { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 15px; margin-top: 30px; padding-bottom: 15px; -ms-overflow-style: none; scrollbar-width: none; width: 100%; box-sizing: border-box; }
    .features-section::-webkit-scrollbar { display: none; }
    .features-section .feature-box { flex: 0 0 80%; max-width: 260px; }

    .extra-features-vertical, .quick-specs { display: flex; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 15px; padding-bottom: 10px; -ms-overflow-style: none; scrollbar-width: none; width: 100%; box-sizing: border-box; }
    .extra-features-vertical::-webkit-scrollbar, .quick-specs::-webkit-scrollbar { display: none; }

    .feature-item, .quick-specs div { flex: 0 0 auto; white-space: nowrap; border-bottom: none; border-left: 1px dashed #e5e5e5; padding-left: 15px; margin-bottom: 0; }
    .quick-specs div:last-child, .feature-item:last-child { border-left: none; padding-left: 0; }
    
    .custom-order-banner { padding: 25px 20px; margin: 30px 0; width: 100%; box-sizing: border-box; }
    .custom-order-banner .banner-header { flex-direction: column; text-align: center; gap: 15px; }
    .custom-order-banner h2 { font-size: 20px; line-height: 1.5; }
    .custom-order-banner p { text-align: justify; font-size: 14px; }
    .custom-order-banner .btn-container { text-align: center; }
    .custom-order-banner .btn-order { width: 100%; box-sizing: border-box; }
}

/* ========================================== */
/* حالت تاریک (Dark Mode) */
/* ========================================== */
[data-theme="dark"] { --bg-color: #121212; --text-color: #f5f5f5; --border-color: #333333; --muted-text: #aaaaaa; }
[data-theme="dark"] .purchase-desc-box, [data-theme="dark"] .artwork-perks-grid, [data-theme="dark"] .artist-profile-box { background-color: #1e1e1e; border-color: #333; }
[data-theme="dark"] .card { background-color: transparent; }
[data-theme="dark"] .action-circle { background: rgba(30, 30, 30, 0.9); color: #ccc; }
[data-theme="dark"] .action-circle:hover { background: #333; color: #fff; }
[data-theme="dark"] .feature-box { background-color: #1e1e1e; border-color: #333; }
[data-theme="dark"] .feature-title { color: #f5f5f5; }
[data-theme="dark"] .feature-text { color: #aaa; }
[data-theme="dark"] .feature-icon svg { stroke: #f5f5f5; }
[data-theme="dark"] .custom-order-banner { background-color: #1e1e1e; border-color: #333; }
[data-theme="dark"] .custom-order-banner h2 { color: #f5f5f5; }
[data-theme="dark"] .custom-order-banner p { color: #ccc; }
[data-theme="dark"] .custom-order-banner .artist-img { border-color: #444; }
[data-theme="dark"] .main-image-container { background-color: #1a1a1a !important; border-color: #333 !important; }

/* ========================================== */
/* استایل‌های گالری پاپ‌آپ 90 درصدی (لایت‌باکس) */
/* ========================================== */
.gallery-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.75); z-index: 99999; }
.gallery-modal-content { position: absolute; top: 5%; left: 5%; width: 90%; height: 90%; background-color: #fafafa; border-radius: 0; box-shadow: 0 10px 50px rgba(0,0,0,0.5); display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
.gallery-close { position: absolute; top: 15px; right: 15px; background: transparent; border: none; color: #333; cursor: pointer; z-index: 100; padding: 5px; }
.gallery-counter { position: absolute; top: 20px; left: 20px; font-size: 15px; font-weight: bold; color: #333; z-index: 100; direction: rtl; font-family: "Vazirmatn", sans-serif; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.8); border: 1px solid #ddd; border-radius: 50%; color: #333; cursor: pointer; z-index: 100; width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
.gallery-nav:hover { background: #fff; transform: translateY(-50%) scale(1.1); }
.gallery-nav.prev { left: 15px; }
.gallery-nav.next { right: 15px; }
.gallery-image-wrapper { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: default; }
#gallery-modal-img { max-width: 90%; max-height: 90%; object-fit: contain; transition: transform 0.1s ease-out; transform-origin: center center; user-select: none; }
.gallery-zoom-controls { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 15px; background: #fff; padding: 8px 20px; border-radius: 30px; border: 1px solid #ddd; box-shadow: 0 4px 15px rgba(0,0,0,0.05); z-index: 100; }
.gallery-zoom-controls button { background: transparent; border: none; color: #333; cursor: pointer; display: flex; align-items: center; justify-content: center; }
#gallery-zoom-slider { width: 120px; cursor: pointer; accent-color: var(--btn-red); }

[data-theme="dark"] .gallery-modal-content { background-color: #1e1e1e; }
[data-theme="dark"] .gallery-close, [data-theme="dark"] .gallery-counter, [data-theme="dark"] .gallery-nav, [data-theme="dark"] .gallery-zoom-controls button { color: #fff; }
[data-theme="dark"] .gallery-nav { background: rgba(0,0,0,0.5); border-color: #444; }
[data-theme="dark"] .gallery-nav:hover { background: #000; }
[data-theme="dark"] .gallery-zoom-controls { background: #2a2a2a; border-color: #444; }