/* ========================================
   Modern Product Detail Page Design
   ======================================== */

* {
    box-sizing: border-box;
}

.product-detail-page {
    font-family: var(--font-base);
    direction: rtl;
    background: #fafafa;
    min-height: 100vh;
}

.yekan-nums,
.price-final .amount,
.price-original .amount,
#quantityInput,
.stock-badge,
.savings-badge,
.rating-text {
    font-family: 'Yekan', 'Vazirmatn', sans-serif;
    font-feature-settings: 'ss01' on;
    font-variant-numeric: tabular-nums;
}

/* Container (scoped to product detail page only) */
.product-detail-page .container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ========================================
   Breadcrumb Navigation
   ======================================== */
.breadcrumb-nav {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 0;
    margin-bottom: 32px;
}

.breadcrumb-nav .container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb-nav a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-nav a:hover {
    color: #111827;
}

.breadcrumb-nav .separator {
    color: #d1d5db;
    margin: 0 4px;
}

.breadcrumb-nav .current {
    color: #111827;
    font-weight: 500;
}

/* ========================================
   Two Column Layout
   ======================================== */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 48px;
    margin-bottom: 64px;
    background: #fff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.product-layout > * {
    min-width: 0;
}

/* ========================================
   Product Gallery Section
   ======================================== */
.product-gallery-section {
    position: sticky;
    top: 80px;
    height: fit-content;
}

.main-image-wrapper {
    position: relative;
    background: #f9fafb;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
}

.image-badges {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.badge {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.badge-sale {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.badge-limited {
    background: rgba(251, 146, 60, 0.95);
    color: white;
}

.zoom-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    cursor: zoom-in;
    overflow: hidden;
}

.main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    z-index: 1;
}

.btn-fullscreen {
    position: absolute;
    bottom: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #374151;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 130; /* Above zoom lens/result */
}

.btn-fullscreen:hover {
    background: white;
}

/* Zoom Lens & Result */
.zoom-lens {
    position: absolute;
    border: 3px solid #111827;
    width: 180px;
    height: 180px;
    pointer-events: none;
    display: none;
    z-index: 15;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    background-repeat: no-repeat;
    background-color: transparent;
}

.zoom-result {
    position: absolute;
    top: 0;
    right: 105%; /* تغییر از left به right برای RTL */
    width: 500px;
    height: 500px;
    border: 2px solid #e5e7eb;
    background: #fff;
    background-repeat: no-repeat;
    display: none;
    z-index: 100;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* Thumbnails */
.thumbnails-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.thumb-nav {
    width: 36px;
    height: 36px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 24px;
    color: #374151;
    flex-shrink: 0;
}

.thumb-nav:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.thumb-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.thumbnails-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
}

.thumbnails-container::-webkit-scrollbar {
    display: none;
}

.thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s;
    background: #f9fafb;
}

.thumbnail:hover {
    border-color: #6b7280;
}

.thumbnail.active {
    border-color: #111827;
    box-shadow: 0 0 0 1px #111827;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}

/* ========================================
   Product Info Section
   ======================================== */
.product-info-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.product-header {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 20px;
}

.product-brand {
    display: inline-block;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.product-brand:hover {
    color: #111827;
}

.product-title {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    line-height: 1.3;
    margin: 0 0 16px;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.rating-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    color: #fbbf24;
    font-size: 16px;
    letter-spacing: 2px;
}

.rating-text {
    color: #6b7280;
    font-size: 14px;
}

.product-sku {
    color: #9ca3af;
    font-size: 13px;
}

.product-description {
    padding: 16px 20px;
    background: #f7b01f;
    border-right: 4px solid #f7b01f;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    white-space: normal;
}

.product-description p {
    font-weight: bold;
    margin: 0;
    color: #000000;
    line-height: 1.7;
    font-size: 15px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
}

.product-description.is-expanded p {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}

.product-description-toggle {
    display: none;
    align-self: flex-start;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(17, 24, 39, 0.2);
    background: rgba(255, 255, 255, 0.55);
    color: #111827;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.product-description-toggle:hover {
    background: rgba(255, 255, 255, 0.75);
}

.product-description.has-toggle .product-description-toggle {
    display: inline-flex;
}

/* ========================================
   Price Section
   ======================================== */
.price-section {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    padding: 20px 24px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    min-height: 182px;
    display: grid;
    grid-template-rows: auto auto auto auto;
    align-content: start;
    gap: 8px;
}

.price-original {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 24px;
}

.price-original .label {
    font-size: 14px;
    color: #6b7280;
}

.price-original .amount {
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.price-original.has-discount .amount {
    font-size: 16px;
    color: #9ca3af;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.price-original.no-discount .amount {
    font-size: 16px;
    color: #111827;
    text-decoration: none;
}

.price-final {
    display: flex;
    align-items: baseline;
    gap: 12px;
    min-height: 44px;
}

.price-final .label {
    font-size: 15px;
    color: #374151;
    font-weight: 500;
}

.price-final .amount {
    font-size: 32px;
    font-weight: 900;
    color: #111827;
    letter-spacing: -0.5px;
}

.price-final .amount.discounted {
    color: #dc2626;
}

.savings-badge {
    margin-top: 2px;
    padding: 9px 13px;
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 700;
    text-align: center;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.savings-badge.is-wish {
    background: linear-gradient(135deg, #e0f2fe 0%, #bfdbfe 100%);
    color: #1e3a8a;
}

.discount-percent-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 12px;
    width: fit-content;
    min-height: 30px;
    white-space: nowrap;
}

.discount-percent-badge.is-placeholder {
    visibility: hidden;
}

.discount-percent-badge .badge-label {
    font-weight: 700;
}

/* ========================================
   Selection Groups (Color & Size)
   ======================================== */
.selection-group {
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
}

.selection-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.selection-label {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.selected-value {
    font-size: 14px;
    color: #16a34a;
    font-weight: 600;
}

.size-guide-btn {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    transition: color 0.2s;
}

.size-guide-btn:hover {
    color: #1d4ed8;
}

/* Color Options */
.color-options {
    --option-cols: 3;
    --option-min-width: 116px;
    display: grid;
    grid-template-columns: repeat(var(--option-cols), minmax(var(--option-min-width), 1fr));
    gap: 12px;
    align-items: stretch;
}

.color-option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    padding: 8px 12px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    font-size: 14px;
}

.color-option:hover {
    border-color: #9ca3af;
}

.color-option.selected {
    border-color: #111827;
    background: #f9fafb;
}

.color-option.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    pointer-events: none;
}

.color-swatch {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #d1d5db, inset 0 0 0 1px rgba(0,0,0,0.1);
}

.color-name {
    font-weight: 600;
    color: #374151;
    min-width: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkmark {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    background: #16a34a;
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.color-option.selected .checkmark {
    display: flex;
}

/* Size Options */
.size-options {
    --option-cols: 4;
    --option-min-width: 84px;
    display: grid;
    grid-template-columns: repeat(var(--option-cols), minmax(var(--option-min-width), 1fr));
    gap: 10px;
    align-items: stretch;
}

.size-option {
    width: 100%;
    min-height: 46px;
    padding: 8px 10px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: #374151;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.size-option,
.color-option {
    max-width: 100%;
}

.size-option:hover {
    border-color: #9ca3af;
}

.size-option.selected {
    background: #111827;
    color: white;
    border-color: #111827;
}

.size-option.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none !important;
    background: #f3f4f6;
    pointer-events: none;
}

/* ========================================
   Quantity & Stock
   ======================================== */
.quantity-stock-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
}

.quantity-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-label {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.quantity-selector {
    display: flex;
    align-items: stretch;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

.qty-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: #f9fafb;
    color: #111827;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #e5e7eb;
}

.qty-btn:active {
    transform: scale(0.95);
}

#quantityInput {
    width: 60px;
    height: 44px;
    border: none;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    background: white;
    color: #111827;
    appearance: textfield;
    -moz-appearance: textfield;
}

#quantityInput::-webkit-outer-spin-button,
#quantityInput::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.stock-info {
    display: flex;
    align-items: center;
}

.stock-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
}

.stock-badge.in-stock {
    background: #dcfce7;
    color: #166534;
}

.stock-badge.limited-stock {
    background: #fed7aa;
    color: #9a3412;
}

.stock-badge.out-of-stock {
    background: #fee2e2;
    color: #991b1b;
}

/* ========================================
   Action Buttons
   ======================================== */
.action-buttons {
    display: flex;
    gap: 12px;
    margin: 24px 0;
}

.btn-primary,
.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-cart {
    flex: 1;
    background: linear-gradient(135deg, #111827 0%, #000000 100%);
    color: white;
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, #000000 0%, #111827 100%);
}

.btn-add-cart:active {
    opacity: 0.9;
}

.btn-add-cart:disabled {
    background: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-wishlist {
    width: 56px;
    height: 56px;
    background: white;
    border: 2px solid #e5e7eb;
    color: #ef4444;
    padding: 0;
    transition: all 0.3s ease;
}

.btn-wishlist:hover {
    background: #fef2f2;
    border-color: #ef4444;
}

.btn-wishlist.active {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

.btn-wishlist.active:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.btn-wishlist:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========================================
   Product Features
   ======================================== */
.product-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    background: #f9fafb;
    border-radius: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #374151;
    font-size: 14px;
    line-height: 1.5;
}

.feature-item svg {
    flex-shrink: 0;
    color: #16a34a;
}

/* ========================================
   Details + Specs + Reviews (Warm minimal)
   ======================================== */

.product-detail-page {
    --pd-insight-border: #f4d9b2;
    --pd-insight-bg: #fffaf3;
    --pd-insight-banner-bg: #ff6320;
    --pd-insight-banner-fg: #fffaf3;
    --pd-chip-bg: #ffe8c7;
    --pd-chip-fg: #8c5a1c;
    --pd-body-text: #3f3a34;
    --pd-title-text: #7a4311;
    --pd-spec-row-bg: #ffffff;
    --pd-spec-label: #8c5a1c;
    --pd-spec-value: #2f2a25;

    --pd-reviews-shell-bg: #fff8ed;
    --pd-reviews-summary-bg: #fff3e0;
    --pd-reviews-summary-border: #f4d9b2;
    --pd-score: #b45309;
    --pd-stars: #f59e0b;
    --pd-score-count: #a16207;

    --pd-review-form-bg: #fff7ed;
    --pd-review-label: #7a4311;
    --pd-review-star-idle: #6b7280;
    --pd-review-star-active: #ffae00;
    --pd-review-hint: #8c5a1c;
    --pd-review-focus: #f6b860;
    --pd-review-focus-ring: rgba(246, 184, 96, 0.25);

    --pd-review-btn-bg: #b45309;
    --pd-review-btn-border: #92400e;
    --pd-review-btn-text: #fffaf3;
    --pd-review-btn-hover: #92400e;
    --pd-review-btn-disabled-bg: #f3d9b2;
    --pd-review-btn-disabled-text: #7a4311;

    --pd-modal-bg: #ffffff;
    --pd-modal-title: #7a4311;
    --pd-modal-text: #5b3a1a;
    --pd-modal-scale: #9a6b2f;
    --pd-modal-scale-max: #b45309;
    --pd-modal-caption: #8c5a1c;

    --pd-login-hint-bg: #fffdf6;
    --pd-login-hint-text: #7a4311;
    --pd-review-item-bg: #fffdf6;
    --pd-review-user: #8c5a1c;
    --pd-review-date: #d97706;
    --pd-review-body: #2f2a25;
    --pd-review-reply-bg: #fff3e0;
    --pd-review-reply-border: #f6b860;
    --pd-review-reply-text: #7a4311;
    --pd-reviews-empty: #8c5a1c;
}

.product-detail-page[data-insights-palette="runway-rose"] {
    --pd-insight-border: #f3d8e2;
    --pd-insight-bg: #fff3f7;
    --pd-insight-banner-bg: #a02856;
    --pd-insight-banner-fg: #fff3f7;
    --pd-chip-bg: #ffe1ec;
    --pd-chip-fg: #7f1d43;
    --pd-body-text: #3b1d2a;
    --pd-title-text: #8f2450;
    --pd-spec-row-bg: #ffffff;
    --pd-spec-label: #8f2450;
    --pd-spec-value: #311827;

    --pd-reviews-shell-bg: #fff0f6;
    --pd-reviews-summary-bg: #ffe6f0;
    --pd-reviews-summary-border: #f3d8e2;
    --pd-score: #9f2454;
    --pd-stars: #ef7aa8;
    --pd-score-count: #8f2450;

    --pd-review-form-bg: #fff4f8;
    --pd-review-label: #8f2450;
    --pd-review-star-idle: #6b4f5c;
    --pd-review-star-active: #ec4f96;
    --pd-review-hint: #8f2450;
    --pd-review-focus: #ec7fb0;
    --pd-review-focus-ring: rgba(236, 127, 176, 0.24);

    --pd-review-btn-bg: #a02856;
    --pd-review-btn-border: #861f49;
    --pd-review-btn-text: #fff3f7;
    --pd-review-btn-hover: #861f49;
    --pd-review-btn-disabled-bg: #f5d3e2;
    --pd-review-btn-disabled-text: #8f2450;

    --pd-modal-bg: #ffffff;
    --pd-modal-title: #8f2450;
    --pd-modal-text: #502638;
    --pd-modal-scale: #8f2450;
    --pd-modal-scale-max: #a02856;
    --pd-modal-caption: #8f2450;

    --pd-login-hint-bg: #fff8fb;
    --pd-login-hint-text: #8f2450;
    --pd-review-item-bg: #fff8fb;
    --pd-review-user: #8f2450;
    --pd-review-date: #b13f71;
    --pd-review-body: #311827;
    --pd-review-reply-bg: #ffeaf2;
    --pd-review-reply-border: #ef9fc1;
    --pd-review-reply-text: #7f1d43;
    --pd-reviews-empty: #8f2450;
}

.product-detail-page[data-insights-palette="urban-mint"] {
    --pd-insight-border: #c8efe3;
    --pd-insight-bg: #effcf8;
    --pd-insight-banner-bg: #0f766e;
    --pd-insight-banner-fg: #ecfffb;
    --pd-chip-bg: #d9f6ee;
    --pd-chip-fg: #0f5e57;
    --pd-body-text: #183937;
    --pd-title-text: #0f5e57;
    --pd-spec-row-bg: #ffffff;
    --pd-spec-label: #0f5e57;
    --pd-spec-value: #14302e;

    --pd-reviews-shell-bg: #edf9f5;
    --pd-reviews-summary-bg: #def2eb;
    --pd-reviews-summary-border: #bfe7da;
    --pd-score: #0f766e;
    --pd-stars: #14b8a6;
    --pd-score-count: #0f5e57;

    --pd-review-form-bg: #f3fcf9;
    --pd-review-label: #0f5e57;
    --pd-review-star-idle: #4b6b68;
    --pd-review-star-active: #0ea5a0;
    --pd-review-hint: #0f5e57;
    --pd-review-focus: #22c6b8;
    --pd-review-focus-ring: rgba(34, 198, 184, 0.22);

    --pd-review-btn-bg: #0f766e;
    --pd-review-btn-border: #115e59;
    --pd-review-btn-text: #ecfffb;
    --pd-review-btn-hover: #115e59;
    --pd-review-btn-disabled-bg: #cbeae1;
    --pd-review-btn-disabled-text: #115e59;

    --pd-modal-bg: #ffffff;
    --pd-modal-title: #0f5e57;
    --pd-modal-text: #21413f;
    --pd-modal-scale: #2b6c67;
    --pd-modal-scale-max: #0f766e;
    --pd-modal-caption: #2b6c67;

    --pd-login-hint-bg: #f6fefb;
    --pd-login-hint-text: #0f5e57;
    --pd-review-item-bg: #f7fdfb;
    --pd-review-user: #0f5e57;
    --pd-review-date: #0f766e;
    --pd-review-body: #14302e;
    --pd-review-reply-bg: #e6f7f1;
    --pd-review-reply-border: #8fdac7;
    --pd-review-reply-text: #0f5e57;
    --pd-reviews-empty: #0f5e57;
}

.product-detail-page[data-insights-palette="midnight-luxe"] {
    --pd-insight-border: #d7dbef;
    --pd-insight-bg: #f5f6fb;
    --pd-insight-banner-bg: #1f2a55;
    --pd-insight-banner-fg: #eef1ff;
    --pd-chip-bg: #e5e8f8;
    --pd-chip-fg: #243065;
    --pd-body-text: #1b2240;
    --pd-title-text: #1f2a55;
    --pd-spec-row-bg: #ffffff;
    --pd-spec-label: #243065;
    --pd-spec-value: #161d36;

    --pd-reviews-shell-bg: #f1f3fb;
    --pd-reviews-summary-bg: #e8ecf8;
    --pd-reviews-summary-border: #cbd3f0;
    --pd-score: #1f2a55;
    --pd-stars: #c49a3a;
    --pd-score-count: #2c3769;

    --pd-review-form-bg: #f5f7fe;
    --pd-review-label: #1f2a55;
    --pd-review-star-idle: #64719a;
    --pd-review-star-active: #c49a3a;
    --pd-review-hint: #243065;
    --pd-review-focus: #7b8fd1;
    --pd-review-focus-ring: rgba(123, 143, 209, 0.24);

    --pd-review-btn-bg: #1f2a55;
    --pd-review-btn-border: #162043;
    --pd-review-btn-text: #eef1ff;
    --pd-review-btn-hover: #162043;
    --pd-review-btn-disabled-bg: #d8deef;
    --pd-review-btn-disabled-text: #324072;

    --pd-modal-bg: #ffffff;
    --pd-modal-title: #1f2a55;
    --pd-modal-text: #2f3d6f;
    --pd-modal-scale: #4f5f95;
    --pd-modal-scale-max: #c49a3a;
    --pd-modal-caption: #3f4d7f;

    --pd-login-hint-bg: #f9faff;
    --pd-login-hint-text: #243065;
    --pd-review-item-bg: #f9faff;
    --pd-review-user: #243065;
    --pd-review-date: #51619b;
    --pd-review-body: #161d36;
    --pd-review-reply-bg: #edf0fb;
    --pd-review-reply-border: #c6d0ef;
    --pd-review-reply-text: #243065;
    --pd-reviews-empty: #243065;
}

.product-detail-page[data-insights-palette="earthy-olive"] {
    --pd-insight-border: #ddd8c6;
    --pd-insight-bg: #f7f5ef;
    --pd-insight-banner-bg: #5d6f3f;
    --pd-insight-banner-fg: #f7f5ef;
    --pd-chip-bg: #e8e4d5;
    --pd-chip-fg: #4b5a32;
    --pd-body-text: #2f3527;
    --pd-title-text: #4b5a32;
    --pd-spec-row-bg: #ffffff;
    --pd-spec-label: #4b5a32;
    --pd-spec-value: #2a3023;

    --pd-reviews-shell-bg: #f3f1e8;
    --pd-reviews-summary-bg: #ece8db;
    --pd-reviews-summary-border: #d5d0bd;
    --pd-score: #5d6f3f;
    --pd-stars: #a98552;
    --pd-score-count: #5b5c3e;

    --pd-review-form-bg: #f7f5ee;
    --pd-review-label: #4b5a32;
    --pd-review-star-idle: #6a7056;
    --pd-review-star-active: #a98552;
    --pd-review-hint: #5d6f3f;
    --pd-review-focus: #9faf75;
    --pd-review-focus-ring: rgba(159, 175, 117, 0.24);

    --pd-review-btn-bg: #5d6f3f;
    --pd-review-btn-border: #4b5a32;
    --pd-review-btn-text: #f7f5ef;
    --pd-review-btn-hover: #4b5a32;
    --pd-review-btn-disabled-bg: #d8d4c2;
    --pd-review-btn-disabled-text: #5b5c3e;

    --pd-modal-bg: #ffffff;
    --pd-modal-title: #4b5a32;
    --pd-modal-text: #3c4330;
    --pd-modal-scale: #6a7350;
    --pd-modal-scale-max: #a98552;
    --pd-modal-caption: #5b5c3e;

    --pd-login-hint-bg: #faf9f4;
    --pd-login-hint-text: #4b5a32;
    --pd-review-item-bg: #faf9f4;
    --pd-review-user: #4b5a32;
    --pd-review-date: #7c7c59;
    --pd-review-body: #2a3023;
    --pd-review-reply-bg: #efecdf;
    --pd-review-reply-border: #c9c3ab;
    --pd-review-reply-text: #4b5a32;
    --pd-reviews-empty: #4b5a32;
}

.product-insights {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 56px;
}

.insights-duo-card {
    border: 1px solid var(--pd-insight-border);
    background: var(--pd-insight-bg);
    border-radius: 18px;
    padding: 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.insights-duo-banner {
    grid-column: 1 / -1;
    text-align: center;
    background: var(--pd-insight-banner-bg);
    color: var(--pd-insight-banner-fg);
    padding: 6px 14px;
    /* border-radius: 6px; */
    font-weight: 800;
    font-size: 16px;
}

.insights-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.insights-chip {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 14px;
    background: var(--pd-chip-bg);
    color: var(--pd-chip-fg);
    border-radius: 999px;
    border: 1px solid var(--pd-insight-border);
    font-weight: 700;
    font-size: 14px;
    width: max-content;
    max-width: 100%;
}

.insights-text {
    color: var(--pd-body-text);
    line-height: 1.8;
    font-size: 15px;
    text-align: justify;
    text-align-last: right;
}

.insights-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 800;
    color: var(--pd-title-text);
}

.insights-specs .insights-body {
    padding: 0;
    border: none;
    background: transparent;
}

.spec-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.spec-list li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 10px;
    border: 1px solid var(--pd-insight-border);
    border-radius: 10px;
    background: var(--pd-spec-row-bg);
}

.spec-label {
    font-weight: 700;
    color: var(--pd-spec-label);
    min-width: 120px;
}

.spec-value {
    color: var(--pd-spec-value);
    text-align: right;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.insights-full-card {
    border: 1px solid var(--pd-insight-border);
    background: var(--pd-insight-bg);
    border-radius: 18px;
    padding: 24px;
}

.full-description {
    background: var(--pd-spec-row-bg);
    border: 1px solid var(--pd-insight-border);
    border-radius: 12px;
    padding: 16px;
    color: var(--pd-body-text);
    line-height: 1.8;
    font-size: 15px;
}

.reviews-shell {
    border: 1px solid var(--pd-insight-border);
    background: var(--pd-reviews-shell-bg);
    border-radius: 18px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reviews-chip {
    background: var(--pd-chip-bg);
    color: var(--pd-chip-fg);
}

.reviews-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 0;
    color: var(--pd-review-body);
    text-align: right;
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--pd-reviews-summary-bg);
    border: 1px dashed var(--pd-reviews-summary-border);
    border-radius: 14px;
    padding: 1rem 1.25rem;
}

.reviews-score {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.score-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--pd-score);
}

.score-stars {
    color: var(--pd-stars);
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.score-count {
    color: var(--pd-score-count);
    font-size: 0.9rem;
}

.reviews-note {
    margin-left: auto;
    color: var(--pd-score-count);
    font-size: 0.9rem;
}

.review-form {
    border: 1px solid var(--pd-insight-border);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    background: var(--pd-review-form-bg);
    box-shadow: none;
}

.review-form .form-group label {
    font-weight: 600;
    margin-bottom: 0.35rem;
    display: block;
    color: var(--pd-review-label);
}

.rating-stars {
    display: inline-flex;
    /* gap: 0.4rem; */
    align-items: center;
}

.rating-stars .star {
    font-size: 1.6rem;
    color: var(--pd-review-star-idle);
    background: transparent;
    border: none;
    cursor: pointer;
    /* background: #fff;
    border: 1px solid #f4d9b2; */
    padding: 0px 1px;
    border-radius: 10px;
    transition: all 0.15s ease;
}

.rating-stars .star.active {
    font-size: 2rem;

    color: var(--pd-review-star-active);
    border-color: #ff950000;
    background: #ffffff00;
}

.rating-stars .star[disabled] {
    opacity: 0.45;
    cursor: default;
}

.rating-hint {
    color: var(--pd-review-hint);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.35rem;
}

.rating-hint.error {
    color: #dc2626;
}

.rating-hint.success {
    color: #15803d;
}

.review-form textarea {
    width: 100%;
    border: 1px solid var(--pd-insight-border);
    border-radius: 10px;
    padding: 0.75rem;
    resize: vertical;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.review-form textarea:focus {
    border-color: var(--pd-review-focus);
    box-shadow: 0 0 0 3px var(--pd-review-focus-ring);
    outline: none;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-actions .btn-primary {
    background: var(--pd-review-btn-bg);
    border: 1px solid var(--pd-review-btn-border);
    color: var(--pd-review-btn-text);
    padding: 0.75rem 1.4rem;
    border-radius: 10px;
    box-shadow: none;
    font-weight: 700;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.form-actions .btn-primary:hover:not(:disabled) {
    background: var(--pd-review-btn-hover);
    transform: translateY(-1px);
}

.form-actions .btn-primary:disabled {
    background: var(--pd-review-btn-disabled-bg);
    border-color: var(--pd-review-btn-disabled-bg);
    color: var(--pd-review-btn-disabled-text);
    cursor: not-allowed;
    box-shadow: none;
}

.form-hint {
    color: var(--pd-review-hint);
    font-size: 0.85rem;
}

.form-alert {
    color: #15803d;
    font-size: 0.9rem;
    font-weight: 600;
}

.review-rating-modal {
    position: fixed;
    inset: 0;
    z-index: 100060;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.review-rating-modal.is-open {
    display: flex;
}

.review-rating-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}

.review-rating-modal__dialog {
    position: relative;
    width: min(460px, 100%);
    background: var(--pd-modal-bg);
    border: 1px solid var(--pd-insight-border);
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
    padding: 20px 18px 18px;
    text-align: right;
    z-index: 1;
}

.review-rating-modal__close {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 34px;
    height: 34px;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    background: #fff;
    color: #6b7280;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.review-rating-modal__close:hover {
    color: #111827;
    border-color: #d1d5db;
}

.review-rating-modal__title {
    margin: 0 0 8px;
    color: var(--pd-modal-title);
    font-size: 1.12rem;
    font-weight: 800;
}

.review-rating-modal__text {
    margin: 0 0 14px;
    color: var(--pd-modal-text);
    line-height: 1.8;
    font-size: 0.95rem;
}

.review-rating-modal__stars {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
    padding: 10px 0 8px;
    direction: ltr;
}

.review-rating-modal__stars .star {
    border: none;
    background: transparent;
    cursor: pointer;
    color: #d1d5db;
    font-size: 1.62rem;
    line-height: 1;
    padding: 2px;
}

.review-rating-modal__stars .star:nth-child(1) { font-size: 1.50rem; }
.review-rating-modal__stars .star:nth-child(2) { font-size: 1.58rem; }
.review-rating-modal__stars .star:nth-child(3) { font-size: 1.66rem; }
.review-rating-modal__stars .star:nth-child(4) { font-size: 1.74rem; }
.review-rating-modal__stars .star:nth-child(5) { font-size: 1.82rem; }

.review-rating-modal__stars .star.active {
    color: var(--pd-stars);
}

.review-rating-modal__scale {
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: ltr;
    color: var(--pd-modal-scale);
    font-size: 0.8rem;
    margin-top: 2px;
    padding: 0 4px;
}

.review-rating-modal__scale .max {
    font-weight: 700;
    color: var(--pd-modal-scale-max);
}

.review-rating-modal__caption {
    margin-top: 8px;
    text-align: center;
    color: var(--pd-modal-caption);
    font-size: 0.86rem;
}

.review-rating-modal.is-saving .review-rating-modal__stars .star,
.review-rating-modal.is-saving .review-rating-modal__close {
    pointer-events: none;
    opacity: 0.6;
}

body.review-rating-modal-open {
    overflow: hidden;
}

.reviews-login-hint {
    padding: 1rem;
    border: 1px dashed var(--pd-insight-border);
    border-radius: 10px;
    color: var(--pd-login-hint-text);
    background: var(--pd-login-hint-bg);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-item {
    border: 1px solid var(--pd-insight-border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    background: var(--pd-review-item-bg);
}

.review-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.review-user {
    font-weight: 700;
    color: var(--pd-review-user);
}

.review-date {
    color: var(--pd-review-date);
    font-size: 0.9rem;
}

.review-rating {
    color: var(--pd-stars);
    letter-spacing: 2px;
    margin-bottom: 0.35rem;
}

.review-body {
    color: var(--pd-review-body);
    line-height: 1.6;
}

.review-reply {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-radius: 10px;
    background: var(--pd-review-reply-bg);
    border: 1px solid var(--pd-review-reply-border);
    color: var(--pd-review-reply-text);
}

.review-reply__text {
    margin-top: 0.3rem;
    line-height: 1.8;
}

.reviews-empty {
    color: var(--pd-reviews-empty);
}

@media (max-width: 1024px) {
    .insights-duo-card {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1025px) {
    .insights-duo-card {
        position: relative;
    }
    .insights-column.insights-specs {
        border-inline-start: 2px solid var(--pd-insight-border);
        padding-inline-start: 16px;
        margin-inline-start: 4px;
    }
}

@media (max-width: 767px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .product-detail-page,
    .product-detail-page .container,
    .product-layout,
    .product-info-section,
    .product-gallery-section,
    .product-insights,
    .insights-duo-card,
    .reviews-shell,
    .reviews-content {
        max-width: 100%;
        min-width: 0;
    }

    .insights-duo-card {
        padding: 24px 16px;
        gap: 16px;
    }

    .insights-duo-banner {
        width: calc(100% + 12px);
        margin-inline: -6px;
        padding: 8px 8px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        font-size: clamp(12.5px, 3.35vw, 15px);
        line-height: 1.35;
    }

    .insights-chip {
        width: auto;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .insights-text,
    .review-body,
    .review-reply__text {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .spec-list li {
        display: grid;
        grid-template-columns: minmax(92px, max-content) 1fr;
        align-items: start;
        gap: 8px;
    }

    .spec-label {
        min-width: 0;
        text-align: right;
        white-space: nowrap;
    }

    .spec-value {
        text-align: left;
        align-self: stretch;
        padding-inline-start: 10px;
        border-inline-start: 1px solid var(--pd-insight-border);
    }

    .reviews-shell {
        padding: 18px 14px;
    }

    .review-form {
        padding: 0.9rem 0.85rem;
        gap: 0.7rem;
    }

    .review-form textarea {
        padding: 0.52rem 0.58rem;
    }

    .color-options,
    .size-options {
        width: 100%;
    }

    .color-option {
        min-width: 0;
    }

    .reviews-summary {
        flex-direction: column;
        align-items: flex-start;
    }
    .reviews-note {
        margin-left: 0;
    }

    .review-rating-modal__dialog {
        width: min(100%, 420px);
        border-radius: 14px;
        padding: 18px 14px 14px;
    }

    .review-rating-modal__title {
        font-size: 1.02rem;
    }

    .review-rating-modal__text {
        font-size: 0.9rem;
    }

    .review-rating-modal__stars .star {
        font-size: 1.46rem;
    }

    .review-rating-modal__stars .star:nth-child(1) { font-size: 1.36rem; }
    .review-rating-modal__stars .star:nth-child(2) { font-size: 1.42rem; }
    .review-rating-modal__stars .star:nth-child(3) { font-size: 1.48rem; }
    .review-rating-modal__stars .star:nth-child(4) { font-size: 1.54rem; }
    .review-rating-modal__stars .star:nth-child(5) { font-size: 1.60rem; }
}



/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1400px) {

    .zoom-result {
        width: 400px;
        height: 400px;
        right: 102%; /* تنظیم مجدد موقعیت */
    }
}


@media (max-width: 992px) {
    .zoom-result,
    .zoom-lens {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .product-info-section {
        width: min(100%, 600px);
        max-width: 100%;
        margin: 0 auto;
    }
    
    .product-gallery-section {
        position: static;
    }
}

@media (max-width: 768px) {
    .product-detail-page .container {
        padding: 0 12px;
        max-width: 100%;
    }
    
    .product-layout {
        padding: 16px;
        gap: 20px;
        margin-left: 0;
        margin-right: 0;
    }
    
    .breadcrumb-nav .container {
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .product-title {
        font-size: 22px;
    }
    
    .price-final .amount {
        font-size: 28px;
    }
    
    .tabs-header {
        flex-direction: column;
    }
    
    .tab-button {
        border-bottom: 1px solid #e5e7eb;
    }
    
    .tabs-content {
        padding: 24px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-wishlist {
        width: 100%;
        height: 56px;
    }
}

@media (max-width: 480px) {
    .breadcrumb-nav {
        font-size: 12px;
    }
    
    .product-detail-page .container {
        padding: 0 8px;
    }
    
    .product-layout {
        padding: 12px;
    }
    
    .product-title {
        font-size: 18px;
    }
    
    .price-final .amount {
        font-size: 22px;
    }

    .price-section {
        padding: 16px 14px;
        gap: 10px;
        min-height: 172px;
    }

    .price-original,
    .price-final {
        justify-content: space-between;
        gap: 8px;
    }

    .discount-percent-badge,
    .savings-badge {
        font-size: 12px;
        padding: 7px 10px;
    }

    .savings-badge {
        font-size: 14px;
        line-height: 1.4;
        padding: 8px 11px;
    }
    
    .color-options,
    .size-options {
        gap: 8px;
    }
    
    .quantity-stock-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px 0 14px;
    }

    .quantity-group {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    .quantity-label {
        font-size: 15px;
        white-space: nowrap;
    }

    .stock-info {
        width: 100%;
        justify-content: flex-end;
    }

    .stock-badge {
        max-width: 100%;
        padding: 7px 12px;
        font-size: 13px;
    }
    
    .main-image-wrapper,
    .zoom-container,
    .thumbnail {
        max-width: 100%;
    }
    
    .thumbnails-wrapper {
        overflow-x: auto;
    }
}

@media (max-width: 360px) {
    .price-final .amount {
        font-size: 20px;
    }

    .price-original .label,
    .price-final .label {
        font-size: 13px;
    }

    .discount-percent-badge,
    .savings-badge {
        font-size: 11px;
        padding: 6px 8px;
    }

    .savings-badge {
        font-size: 13px;
        line-height: 1.35;
    }

    .quantity-label {
        font-size: 14px;
    }

    .quantity-selector {
        border-width: 1px;
    }

    .qty-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    #quantityInput {
        width: 52px;
        height: 40px;
        font-size: 15px;
    }

    .stock-badge {
        font-size: 12px;
        padding: 6px 10px;
        gap: 5px;
    }

    .stock-badge svg {
        width: 14px;
        height: 14px;
        flex: 0 0 14px;
    }
}
/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 99999;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-base);
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-notification.error {
    background: #ef4444;
}

.toast-notification.success {
    background: #10b981;
}

/* Desktop: move toast lower */
@media (min-width: 769px) {
    .toast-notification {
        bottom: 20px;
    }
}

/* Shake Animation for Validation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.validation-error {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
    box-shadow: inset 0 0 0 2px #ef4444;
    border-radius: 8px;
    background-color: rgba(239, 68, 68, 0.05);
}

/* ========================================
   Size Guide Modal Styles
   ======================================== */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.video-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 95%;
    max-height: 95%;
    overflow: hidden;
    z-index: 100000;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 100001;
    padding: 0;
}

.modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.modal-body {
    padding: 20px;
    max-height: 90vh;
    overflow: auto;
}

.modal-body img,
.modal-body video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .video-modal-content {
        max-width: 98%;
        max-height: 98%;
    }
    
    .modal-close-btn {
        width: 36px;
        height: 36px;
        font-size: 24px;
        top: 10px;
        right: 10px;
    }
    
    .modal-body {
        padding: 15px;
    }
}
