/* SVETIT — PRODUCT DETAIL STYLES (product.css) */

.breadcrumb {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
        row-gap: 6px;
        color: var(--text-muted);
        font-size: 14px;
        margin-bottom: 32px;
        word-break: break-word;
    }

    .breadcrumb a:hover {
        color: var(--text-primary);
    }

    .detail-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 48px;
        align-items: start;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    /* Media Gallery (Sticky on desktop) */
    .gallery {
        position: -webkit-sticky;
        position: sticky;
        top: 88px;
        align-self: start;
        display: flex;
        flex-direction: column;
        gap: 16px;
        z-index: 10;
        will-change: transform;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .main-media {
        position: relative;
        width: 100%;
        max-width: 100%;
        height: 480px;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: border-color 0.25s ease, box-shadow 0.25s ease;
        box-sizing: border-box;
    }

    .main-media:hover {
        border-color: rgba(245, 158, 11, 0.4);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    }

    .main-media-zoom-hint {
        position: absolute;
        bottom: 16px;
        right: 16px;
        z-index: 5;
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 6px 14px;
        border-radius: 9999px;
        background: rgba(13, 15, 18, 0.78);
        border: 1px solid rgba(255, 255, 255, 0.18);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        color: #ffffff;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.02em;
        opacity: 0;
        transform: translateY(6px);
        transition: opacity 0.25s ease, transform 0.25s ease;
        pointer-events: none;
    }

    .main-media:hover .main-media-zoom-hint {
        opacity: 1;
        transform: translateY(0);
    }

    .main-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Thumbnails container with smooth overflow & edge gradients */
    .thumbnails-wrap {
        position: relative;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        display: flex;
        align-items: center;
    }

    /* Edge shadow/fade indicators */
    .thumbnails-wrap::before,
    .thumbnails-wrap::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 32px;
        z-index: 3;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.25s ease;
    }

    .thumbnails-wrap::before {
        left: 0;
        background: linear-gradient(90deg, var(--bg-main, #0d0f12) 0%, transparent 100%);
    }

    .thumbnails-wrap::after {
        right: 0;
        background: linear-gradient(270deg, var(--bg-main, #0d0f12) 0%, transparent 100%);
    }

    [data-theme="light"] .thumbnails-wrap::before {
        background: linear-gradient(90deg, var(--bg-main, #f1e5d4) 0%, transparent 100%);
    }

    [data-theme="light"] .thumbnails-wrap::after {
        background: linear-gradient(270deg, var(--bg-main, #f1e5d4) 0%, transparent 100%);
    }

    .thumbnails-wrap.can-scroll-left::before {
        opacity: 1;
    }

    .thumbnails-wrap.can-scroll-right::after {
        opacity: 1;
    }

    /* Thumbnails track (scrollbars hidden across all browsers) */
    .thumbnails {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 4px 2px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE / Edge */
        scroll-behavior: smooth;
    }

    .thumbnails::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
        width: 0;
        height: 0;
    }

    /* Floating navigation arrows */
    .thumb-nav-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 5;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: rgba(21, 24, 30, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.16);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
        transition: opacity 0.25s ease, visibility 0.25s ease, background 0.2s, color 0.2s, transform 0.2s;
    }

    .thumb-nav-arrow:hover {
        background: var(--accent);
        color: #000000;
        border-color: var(--accent);
        transform: translateY(-50%) scale(1.12);
        box-shadow: 0 6px 20px var(--accent-glow);
    }

    .thumb-nav-arrow:active {
        transform: translateY(-50%) scale(0.95);
    }

    .thumb-nav-prev {
        left: -6px;
    }

    .thumb-nav-next {
        right: -6px;
    }

    .thumbnails-wrap.can-scroll-left .thumb-nav-prev {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .thumbnails-wrap.can-scroll-right .thumb-nav-next {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    [data-theme="light"] .thumb-nav-arrow {
        background: rgba(255, 255, 255, 0.95);
        border-color: rgba(180, 83, 9, 0.28);
        color: #26201a;
        box-shadow: 0 4px 14px rgba(90, 65, 40, 0.15);
    }

    [data-theme="light"] .thumb-nav-arrow:hover {
        background: #b45309;
        color: #ffffff;
        border-color: #b45309;
        box-shadow: 0 6px 20px rgba(180, 83, 9, 0.35);
    }

    .thumb-item {
        position: relative;
        width: 80px;
        height: 80px;
        border-radius: var(--radius-md);
        border: 2px solid var(--border);
        overflow: hidden;
        cursor: pointer;
        transition: all 0.2s;
        flex-shrink: 0;
        background: #101217;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    .thumb-item:hover, .thumb-item.active {
        border-color: var(--accent);
        box-shadow: 0 0 10px var(--accent-glow);
    }

    .thumb-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .thumb-video-placeholder {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        background: rgba(245, 158, 11, 0.1);
        gap: 4px;
    }

    .video-badge {
        font-size: 10px;
        font-weight: 700;
        color: var(--accent);
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    /* Info */
    .product-info {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .product-category {
        font-size: 13px;
        font-weight: 600;
        color: var(--accent);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 8px;
    }

    .product-title {
        font-size: 36px;
        font-weight: 700;
        margin-bottom: 16px;
        line-height: 1.2;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .product-price-box {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        margin-bottom: 24px;
        max-width: 100%;
        box-sizing: border-box;
        gap: 12px;
    }

    .product-price {
        font-size: 32px;
        font-weight: 700;
        font-family: 'Outfit', sans-serif;
    }

    .product-price-wrap {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        position: relative;
    }

    .price-info-wrap {
        position: relative;
        display: inline-flex;
        align-items: center;
    }

    .price-help-btn {
        background: transparent;
        border: none;
        padding: 3px;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--text-muted, #94a3b8);
        border-radius: 50%;
        transition: color 0.2s ease, transform 0.2s ease;
    }

    .price-help-btn:hover,
    .price-info-wrap.tooltip-open .price-help-btn {
        color: var(--accent, #e5a93c);
        transform: scale(1.15);
    }

    .price-info-icon {
        width: 18px;
        height: 18px;
    }

    .price-tooltip {
        display: none;
        position: absolute;
        bottom: calc(100% + 8px);
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
        max-width: 85vw;
        padding: 8px 12px;
        background: var(--bg-card, #1c1f26);
        color: var(--text-primary, #f8fafc);
        border: 1px solid var(--border, rgba(255, 255, 255, 0.15));
        border-radius: var(--radius-md, 8px);
        font-size: 12px;
        line-height: 1.4;
        font-weight: 400;
        text-align: center;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
        z-index: 100;
        pointer-events: auto;
    }

    .price-info-wrap.tooltip-open .price-tooltip {
        display: block;
        animation: tooltipFadeIn 0.2s ease-out;
    }

    .price-tooltip-arrow {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 6px solid var(--border, rgba(255, 255, 255, 0.15));
    }

    .product-stock {
        font-size: 13.5px;
        font-weight: 600;
        padding: 6px 14px;
        border-radius: 9999px;
        display: inline-flex;
        align-items: center;
        gap: 7px;
        line-height: 1.3;
        letter-spacing: 0.01em;
    }

    .product-stock.in-stock {
        background: linear-gradient(135deg, rgba(5, 150, 105, 0.95) 0%, rgba(4, 120, 87, 0.95) 100%);
        border: 1px solid rgba(110, 231, 183, 0.6);
        color: #ffffff;
        box-shadow: 0 2px 10px rgba(5, 150, 105, 0.35);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    }

    .product-stock.in-stock::before {
        content: '';
        display: inline-block;
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #ffffff;
        box-shadow: 0 0 6px #6ee7b7;
        flex-shrink: 0;
    }

    .product-stock.out-stock {
        background: linear-gradient(135deg, rgba(220, 38, 38, 0.92) 0%, rgba(185, 28, 28, 0.92) 100%);
        border: 1px solid rgba(252, 165, 165, 0.45);
        color: #ffffff;
        box-shadow: 0 2px 10px rgba(220, 38, 38, 0.25);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    }

    .product-stock.out-stock::before {
        content: '';
        display: inline-block;
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #ffffff;
        box-shadow: 0 0 6px #fca5a5;
        flex-shrink: 0;
    }

    .product-description {
        font-size: 15px;
        line-height: 1.7;
    }

    .product-tabs {
        margin-bottom: 28px;
    }

    .tab-buttons {
        display: flex;
        gap: 6px;
        border-bottom: 1px solid var(--border);
        margin-bottom: 20px;
    }

    .tab-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 12px 18px;
        background: transparent;
        border: none;
        border-bottom: 2px solid transparent;
        color: var(--text-secondary);
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
    }

    .tab-btn:hover {
        color: var(--text-primary);
    }

    .tab-btn.active {
        color: var(--accent);
        border-bottom-color: var(--accent);
    }

    .tab-pane {
        display: none;
        animation: tabFadeIn 0.25s ease-in-out;
    }

    .tab-pane.active {
        display: block;
    }

    @keyframes tabFadeIn {
        from { opacity: 0; transform: translateY(4px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .rich-description {
        font-size: 15px;
        line-height: 1.7;
        color: var(--text-secondary);
    }

    .rich-description strong {
        color: var(--text-primary);
        font-weight: 600;
    }

    .rich-description .rich-h3,
    .rich-description .rich-h4 {
        color: var(--text-primary);
        font-size: 17px;
        font-weight: 700;
        margin: 16px 0 8px 0;
    }

    .rich-description .rich-quote {
        margin: 14px 0;
        padding: 10px 16px;
        border-left: 3px solid var(--accent);
        background: rgba(229, 169, 60, 0.08);
        border-radius: 0 var(--radius-md) var(--radius-md) 0;
        color: var(--text-primary);
        font-style: italic;
    }

    .rich-description .rich-ul,
    .rich-description .rich-ol {
        margin: 12px 0;
        padding-left: 22px;
    }

    .rich-description .rich-ul li,
    .rich-description .rich-ol li {
        margin-bottom: 6px;
        color: var(--text-secondary);
    }

    .specs-table {
        display: flex;
        flex-direction: column;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        overflow: hidden;
    }

    .spec-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 14px;
        gap: 12px;
    }

    .spec-row:last-child {
        border-bottom: none;
    }

    .spec-row:nth-child(even) {
        background: rgba(255, 255, 255, 0.02);
    }

    .spec-label {
        color: var(--text-secondary);
        flex-shrink: 0;
    }

    .spec-value {
        color: var(--text-primary);
        font-weight: 600;
        text-align: right;
        min-width: 0;
        word-break: break-word;
    }

    .spec-label-wrap {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        position: relative;
    }

    .burn-time-info-wrap {
        position: relative;
        display: inline-flex;
        align-items: center;
    }

    .burn-time-help-btn {
        background: transparent;
        border: none;
        padding: 2px;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--text-muted, #94a3b8);
        border-radius: 50%;
        transition: color 0.2s ease, transform 0.2s ease;
    }

    .burn-time-help-btn:hover,
    .burn-time-info-wrap.tooltip-open .burn-time-help-btn {
        color: var(--accent, #e5a93c);
        transform: scale(1.15);
    }

    .burn-time-icon {
        width: 15px;
        height: 15px;
    }

    .burn-time-tooltip {
        display: none;
        position: absolute;
        bottom: calc(100% + 8px);
        left: 0;
        width: 260px;
        max-width: 82vw;
        padding: 10px 14px;
        background: var(--bg-card, #1c1f26);
        color: var(--text-primary, #f8fafc);
        border: 1px solid var(--border, rgba(255, 255, 255, 0.15));
        border-radius: var(--radius-md, 10px);
        font-size: 12px;
        line-height: 1.45;
        font-weight: 400;
        text-align: left;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
        z-index: 100;
        pointer-events: auto;
    }

    .burn-time-info-wrap.tooltip-open .burn-time-tooltip {
        display: block;
        animation: tooltipFadeIn 0.2s ease-out;
    }

    .burn-time-tooltip-arrow {
        position: absolute;
        top: 100%;
        left: 10px;
        width: 0;
        height: 0;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 6px solid var(--border, rgba(255, 255, 255, 0.15));
    }

    @keyframes tooltipFadeIn {
        from { opacity: 0; transform: translateY(4px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .spec-link {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        color: var(--text-primary);
        text-decoration: none;
        padding: 3px 8px;
        margin: -3px -8px;
        border-radius: 6px;
        transition: all 0.2s ease;
    }

    .spec-link:hover {
        color: var(--accent, #e5a93c);
        background: rgba(229, 169, 60, 0.12);
    }

    .spec-link-icon {
        width: 13px;
        height: 13px;
        opacity: 0.55;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .spec-link:hover .spec-link-icon {
        opacity: 1;
        transform: translate(1px, -1px);
    }

    .spec-tags-wrap {
        display: inline-flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        align-items: center;
        gap: 2px 4px;
        max-width: 68%;
    }

    .spec-tag {
        display: inline-flex;
        align-items: center;
        gap: 3px;
        padding: 2px 6px;
        margin: 0;
        border-radius: 6px;
        font-weight: 600;
        line-height: 1.35;
        white-space: nowrap;
    }

    .spec-tag-sep {
        color: var(--text-secondary, #94a3b8);
        font-weight: 400;
        margin-right: 2px;
    }

    .cta-group {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 100%;
    }

    .btn-large {
        padding: 16px 28px;
        font-size: 16px;
        justify-content: center;
        border-radius: var(--radius-md);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .btn-large span {
        text-align: center;
    }

    .guarantee-box {
        margin-top: 32px;
        padding: 20px;
        border-radius: var(--radius-md);
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid var(--border);
        display: flex;
        flex-direction: column;
        gap: 12px;
        font-size: 14px;
        color: var(--text-secondary);
        max-width: 100%;
        box-sizing: border-box;
    }

    .guarantee-item {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* CMS Candle Notice */
    .candle-notice-box {
        margin: 20px 0;
        padding: 18px 20px;
        border-radius: var(--radius-md);
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(245, 158, 11, 0.3);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
        display: flex;
        flex-direction: column;
        gap: 14px;
        transition: all 0.2s ease;
        max-width: 100%;
        box-sizing: border-box;
        min-width: 0;
    }

    .candle-notice-box.pos-default,
    .product-info > .candle-notice-box:last-child {
        margin-top: 28px;
        margin-bottom: 0;
    }

    .candle-notice-box.pos-above {
        margin-top: 14px;
        margin-bottom: 20px;
    }

    .candle-notice-box.pos-below {
        margin-top: 18px;
        margin-bottom: 24px;
    }

    .candle-notice-item {
        display: flex;
        align-items: flex-start;
        gap: 12px;
    }

    .candle-notice-icon {
        width: 34px;
        height: 34px;
        border-radius: 9px;
        background: rgba(245, 158, 11, 0.12);
        border: 1px solid rgba(245, 158, 11, 0.25);
        color: var(--accent);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        margin-top: 1px;
    }

    .candle-notice-icon svg,
    .candle-notice-icon i {
        width: 17px;
        height: 17px;
    }

    .candle-notice-content {
        flex: 1;
        min-width: 0;
        word-break: break-word;
    }

    .candle-notice-title {
        font-size: 14.5px;
        font-weight: 700;
        color: #fff;
        margin-bottom: 2px;
    }

    .candle-notice-desc {
        font-size: 13px;
        color: var(--text-secondary);
        line-height: 1.5;
    }

    .candle-notice-link {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 12.5px;
        font-weight: 600;
        color: var(--accent);
        margin-top: 4px;
        text-decoration: underline;
        transition: opacity 0.2s;
    }

    .candle-notice-link:hover {
        opacity: 0.8;
    }

    @media (max-width: 768px) {
        .breadcrumb {
            margin-bottom: 20px;
            font-size: 13px;
        }
        .detail-grid {
            grid-template-columns: minmax(0, 1fr);
            gap: 24px;
            width: 100%;
        }
        .gallery {
            position: static;
            width: 100%;
            min-width: 0;
        }
        .main-media {
            height: clamp(280px, 80vw, 380px);
            border-radius: var(--radius-md);
            max-width: 100%;
        }
        .thumbnails {
            gap: 10px;
            padding-bottom: 6px;
        }
        .thumb-item {
            width: 68px;
            height: 68px;
            border-radius: var(--radius-sm);
        }
        .product-title {
            font-size: clamp(24px, 5.5vw, 30px);
            margin-bottom: 12px;
        }
        .product-price-box {
            padding: 16px 18px;
            margin-bottom: 20px;
            gap: 12px;
        }
        .product-price {
            font-size: 26px;
        }
        .product-stock {
            font-size: 12px;
            padding: 5px 12px;
        }
        .tab-btn {
            padding: 10px 14px;
            font-size: 14px;
        }
        .btn-large {
            padding: 14px 18px;
            font-size: 15px;
        }
        .guarantee-box {
            padding: 16px;
            margin-top: 24px;
            font-size: 13px;
        }
    }

    @media (max-width: 480px) {
        .main-media {
            height: clamp(250px, 85vw, 330px);
        }
        .thumbnails {
            gap: 8px;
        }
        .thumb-item {
            width: 60px;
            height: 60px;
        }
        .product-price-box {
            padding: 14px 16px;
            flex-wrap: wrap;
            gap: 10px;
        }
        .product-price {
            font-size: 24px;
        }
        .btn-large {
            padding: 13px 14px;
            font-size: 14px;
        }
        .spec-row {
            padding: 10px 14px;
            font-size: 13px;
            gap: 8px;
        }
    }

    /* Light Theme detail.html refinements */
    [data-theme="light"] h1,
    [data-theme="light"] h2,
    [data-theme="light"] h3,
    [data-theme="light"] h4,
    [data-theme="light"] h5,
    [data-theme="light"] h6,
    [data-theme="light"] .detail-title,
    [data-theme="light"] .candle-notice-title {
        color: #26201a !important;
    }
    [data-theme="light"] .main-media {
        background: #fbf8f3;
        border-color: #ded2c0;
        box-shadow: 0 10px 30px rgba(90, 65, 40, 0.08);
    }
    [data-theme="light"] .thumb-item {
        background: #e8dccb;
        border-color: #ded2c0;
    }
    [data-theme="light"] .thumb-item:hover,
    [data-theme="light"] .thumb-item.active {
        border-color: #b45309;
        box-shadow: 0 0 10px rgba(180, 83, 9, 0.25);
    }
    [data-theme="light"] .specs-table {
        background: #fbf8f3;
        border-color: #ded2c0;
    }
    [data-theme="light"] .spec-row {
        border-bottom-color: #ebdcca;
    }
    [data-theme="light"] .spec-row:nth-child(even) {
        background: rgba(120, 90, 60, 0.03);
    }
    [data-theme="light"] .guarantee-box {
        background: #fbf8f3;
        border-color: #ded2c0;
    }
    [data-theme="light"] .candle-notice-box {
        background: #fbf8f3;
        border-color: rgba(180, 83, 9, 0.3);
        box-shadow: 0 6px 20px rgba(90, 65, 40, 0.06);
    }
    [data-theme="light"] .candle-notice-title {
        color: #26201a;
    }
    [data-theme="light"] .tab-btn {
        color: #5c5042;
    }
    [data-theme="light"] .tab-btn.active {
        color: #b45309;
        border-bottom-color: #b45309;
    }

    /* Fullscreen Media Lightbox Modal */
    .media-lightbox {
        position: fixed;
        inset: 0;
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
    }

    .media-lightbox.active {
        opacity: 1;
        visibility: visible;
    }

    .lightbox-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(8, 10, 14, 0.88);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        cursor: zoom-out;
    }

    [data-theme="light"] .lightbox-backdrop {
        background: rgba(28, 22, 18, 0.85);
    }

    .lightbox-close {
        position: fixed;
        top: 24px;
        right: 28px;
        z-index: 10001;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        transition: background 0.2s, transform 0.2s;
    }

    .lightbox-close:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: scale(1.08);
    }

    .lightbox-nav-btn {
        position: fixed;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10001;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        transition: background 0.2s, transform 0.2s;
    }

    .lightbox-nav-btn:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: translateY(-50%) scale(1.08);
    }

    .lightbox-prev {
        left: 24px;
    }

    .lightbox-next {
        right: 24px;
    }

    @media (max-width: 640px) {
        .lightbox-close {
            top: 16px;
            right: 16px;
            width: 38px;
            height: 38px;
        }
        .lightbox-nav-btn {
            width: 40px;
            height: 40px;
        }
        .lightbox-prev {
            left: 12px;
        }
        .lightbox-next {
            right: 12px;
        }
    }

    .lightbox-container {
        position: relative;
        z-index: 10000;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        padding: 40px 80px;
        cursor: zoom-out;
    }

    @media (max-width: 640px) {
        .lightbox-container {
            padding: 50px 16px 24px;
        }
    }

    .lightbox-content {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        max-width: 90vw;
        max-height: 88vh;
        cursor: default;
        transform: scale(0.95);
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .media-lightbox.active .lightbox-content {
        transform: scale(1);
    }

    .lightbox-content img {
        max-width: 86vw;
        max-height: 80vh;
        object-fit: contain;
        border-radius: var(--radius-md);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
        user-select: none;
    }

    .lightbox-content video {
        max-width: 86vw;
        max-height: 80vh;
        border-radius: var(--radius-md);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
        background: #000;
    }

    .lightbox-footer {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        margin-top: 14px;
        padding: 6px 16px;
        border-radius: 9999px;
        background: rgba(0, 0, 0, 0.55);
        border: 1px solid rgba(255, 255, 255, 0.12);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .lightbox-caption {
        font-size: 13.5px;
        font-weight: 600;
        color: #ffffff;
        letter-spacing: 0.01em;
    }

    .lightbox-counter {
        font-size: 12px;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.65);
        padding-left: 8px;
        border-left: 1px solid rgba(255, 255, 255, 0.2);
    }

    /* ==========================================================================
       Product Variants Selection Pills
       ========================================================================== */
    .product-variants-section {
        margin: 18px 0 22px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .variants-label-row {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14.5px;
    }

    .variants-group-title {
        color: var(--text-secondary);
        font-weight: 500;
    }

    .variants-selected-name {
        color: var(--text-primary);
        font-weight: 700;
    }

    .variants-pills {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .variant-pill {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 7px 14px;
        background: var(--bg-card);
        border: 1.5px solid var(--border);
        border-radius: var(--radius-full, 9999px);
        color: var(--text-primary);
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        user-select: none;
        outline: none;
    }

    .variant-pill:hover {
        border-color: var(--accent);
        background: rgba(234, 179, 8, 0.05);
        transform: translateY(-1px);
    }

    .variant-pill.active {
        border-color: var(--accent);
        background: rgba(234, 179, 8, 0.12);
        color: var(--accent);
        font-weight: 600;
        box-shadow: 0 0 0 1px var(--accent), 0 4px 12px rgba(234, 179, 8, 0.15);
    }

    .variant-pill-thumb {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        object-fit: cover;
        flex-shrink: 0;
    }

    .variant-pill-price {
        font-size: 12.5px;
        font-weight: 600;
        color: var(--text-secondary);
        background: rgba(255, 255, 255, 0.06);
        padding: 2px 7px;
        border-radius: 9999px;
    }

    .variant-pill.active .variant-pill-price {
        background: rgba(234, 179, 8, 0.2);
        color: var(--accent);
    }
