/* ==============================================================
   Nexsky Product Detail – Redesigned Info Card & Polished
   (Scrollbar hidden, modern glass‑card, light/dark ready)
   ============================================================== */
:root {
    --pd-gap: 1.25rem;
    --pd-radius: 2rem;
}

.product-page {
    max-width: 1000px;
    margin: 1.5rem auto 3rem;
    padding: 0 1rem;
    color: var(--text);
    direction: rtl;
    font-size: 0.95rem;
}

/* ========== Light‑mode mute‑text fix ========== */
body.light-mode {
    --text-muted: #1e293b;
}

/* ========== Breadcrumb ========== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--primary-light); }
.breadcrumb i { font-size: 0.55rem; color: var(--text-muted); }

/* ========== Two‑Column Grid ========== */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--pd-gap);
    align-items: start;
}

/* ========== Image Gallery ========== */
.gallery {
    position: sticky;
    top: calc(var(--navbar-height) + 1rem);
}
.main-image-container {
    position: relative;
    border-radius: var(--pd-radius);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    cursor: pointer;
    aspect-ratio: 1 / 1;
}
body.light-mode .main-image-container img[src*="product-placeholder"] {
    filter: invert(1) hue-rotate(180deg);
    background: var(--surface);
}
.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.2, 0, 0.3, 1);
}
.main-image-container:hover img {
    transform: scale(1.05);
}
.zoom-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(0,240,255,0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.main-image-container:hover .zoom-overlay { opacity: 1; }

/* Mobile swipe gallery – scrollbar hidden */
@media (max-width: 900px) {
    .main-image-container {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        display: flex;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;          /* Firefox */
        -ms-overflow-style: none;       /* IE/Edge */
    }
    .main-image-container::-webkit-scrollbar {
        display: none;                  /* Chrome, Safari, Opera */
    }
    .main-image-container img {
        scroll-snap-align: start;
        flex-shrink: 0;
        width: 100%;
        height: 100%;
    }
    .main-image-container::after {
        content: '';
        flex-shrink: 0;
        width: 1px;
    }
}

.thumbnail-strip {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}
.thumbnail-item {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.25s;
    background: var(--surface);
}
.thumbnail-item.active,
.thumbnail-item:hover {
    border-color: var(--primary);
    opacity: 1;
    box-shadow: 0 0 10px rgba(0,240,255,0.35);
    transform: translateY(-3px);
}
.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =============================================================
   REDESIGNED PRODUCT INFO CARD
   ============================================================= */
.info-card {
    --card-bg: rgba(18, 22, 35, 0.8);
    --card-border: rgba(255, 255, 255, 0.12);
    --card-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6),
                   0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    --price-bg: rgba(0, 0, 0, 0.25);
    --accent-glow: rgba(0, 240, 255, 0.2);
    --divider: rgba(255, 255, 255, 0.08);

    background: var(--card-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--card-border);
    border-radius: 2.8rem;
    padding: 1.8rem;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

/* Subtle top gradient line */
.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), var(--primary), transparent);
    border-radius: 0 0 20px 20px;
    opacity: 0.5;
}

/* Light mode overrides */
body.light-mode .info-card {
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(15, 23, 42, 0.1);
    --card-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.1),
                   0 0 0 1px rgba(0, 0, 0, 0.04) inset;
    --price-bg: rgba(248, 250, 252, 0.9);
    --accent-glow: rgba(6, 152, 214, 0.15);
    --divider: rgba(15, 23, 42, 0.08);
}

.product-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    backdrop-filter: blur(8px);
    background: var(--accent-glow);
    border: 1px solid rgba(0,240,255,0.25);
    color: var(--primary-light);
}
.physical-badge {
    background: rgba(138, 43, 226, 0.12);
    border-color: rgba(138, 43, 226, 0.3);
    color: var(--accent-light);
}

.product-title {
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}
.category-chip {
    background: rgba(0,240,255,0.06);
    border: 1px solid rgba(0,240,255,0.2);
    color: var(--primary-light);
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}
.category-chip:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,240,255,0.3);
}

/* New price block */
.price-container {
    background: var(--price-bg);
    border: 1px solid var(--divider);
    border-radius: 2rem;
    padding: 1.1rem 1.3rem;
    margin: 1rem 0 1.5rem;
    position: relative;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.price-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.current-price {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-light);
    letter-spacing: -0.5px;
}
.old-price {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-right: 0.5rem;
}
.currency {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-right: 0.2rem;
}
.discount-badge {
    background: rgba(255,0,85,0.15);
    border: 1px solid rgba(255,0,85,0.3);
    color: var(--rose);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}
.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 600;
    font-size: 0.85rem;
}
.in-stock { color: #4ade80; }
.out-of-stock { color: #f87171; }

.short-desc {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 1rem 0;
    font-size: 0.95rem;
}

/* ========== Variant Selectors ========== */
.variant-section {
    margin: 1.2rem 0;
}
.variant-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--text);
}
.swatch-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.swatch-item {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--border);
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
    background: var(--surface);
    overflow: hidden;
}
.swatch-item:hover {
    border-color: var(--primary-light);
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0,240,255,0.3);
}
.swatch-item.selected {
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(0,240,255,0.5);
    background: rgba(0,240,255,0.1);
}
.swatch-item.color-swatch {
    background-size: cover;
    border: 2px solid var(--border);
}
.swatch-item.color-swatch.selected { border-color: #fff; }

/* ========== Quantity & Add to Cart ========== */
.qty-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.2rem 0 1.5rem;
    flex-wrap: wrap;
}
.qty-selector > span:first-child {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}
.qty-control {
    display: inline-flex;
    align-items: center;
    background: var(--surface);
    border: 1.5px solid var(--border-light);
    border-radius: 50px;
    overflow: hidden;
    padding: 3px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.qty-control:focus-within,
.qty-control:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.12);
}
.qty-btn {
    min-width: 42px;
    min-height: 42px;
    background: transparent;
    border: none;
    color: var(--text);
    padding: 0;
    font-size: 1.25rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
    font-family: var(--font-body);
    border-radius: 50%;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.qty-btn:hover {
    background: var(--surface-hover);
    color: var(--primary-light);
}
.qty-btn:active {
    background: rgba(0, 240, 255, 0.12);
    transform: scale(0.96);
}
.qty-display {
    min-width: 48px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text);
    padding: 0 4px;
    line-height: 42px;
}
#variantStockNote {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    width: 100%;
}
.btn-add-cart {
    width: 100%;
    padding: 0.9rem 1.5rem;
    min-height: 48px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.3);
    font-family: var(--font-body);
    margin-top: 0.4rem;
    letter-spacing: 0.2px;
}
.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 240, 255, 0.45);
}
.btn-add-cart:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 240, 255, 0.3);
}
.btn-add-cart:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.out-of-stock-msg {
    text-align: center;
    padding: 0.8rem;
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: var(--radius);
    color: #fca5a5;
    font-weight: 600;
    margin: 1rem 0;
    font-size: 0.9rem;
}

/* ========== Meta information ========== */
.variant-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}
.variant-meta-item {
    background: var(--surface-hover);
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    border: 1px solid var(--border);
}

/* ========== Tabs ========== */
.tabs-container {
    margin-top: 2rem;
}
.tab-nav {
    display: flex;
    gap: 0.3rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 0.25rem;
    backdrop-filter: blur(10px);
    margin-bottom: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.tab-btn {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 0.6rem 1.2rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-body);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    white-space: nowrap;
}
.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    box-shadow: 0 4px 14px rgba(0,240,255,0.35);
}
.tab-panel {
    display: none;
    animation: fadeSlide 0.4s ease;
}
.tab-panel.active { display: block; }
@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.long-description {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.9;
}

/* FAQ */
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.6rem;
    background: var(--surface);
    overflow: hidden;
}
.faq-question {
    padding: 0.8rem 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
    transition: background 0.2s;
    font-size: 0.9rem;
}
.faq-question:hover { background: var(--surface-hover); }
.faq-icon {
    font-size: 1.3rem;
    color: var(--primary-light);
    transition: transform 0.3s;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.faq-item.open .faq-answer {
    max-height: 1000px;  /* large enough to show any answer */
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer .faq-answer-content {
    padding: 0 1.2rem 0.8rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9rem;
}

/* ========== Related Products ========== */
.related-section { margin-top: 2rem; }
.section-title {
    font-size: 1.6rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* PDP: prevent related cards from stretching when only 1-2 items.
   Cap the track size (no 1fr max) and center the last row. */
@media (min-width: 601px) {
    .related-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 240px));
        justify-content: center;
    }
}
@media (min-width: 901px) {
    /* When 4 related products are present, force them into one row.
       Scoped to 901px+ so the tablet layout (max-width: 900px) is untouched. */
    .related-grid:has(> .related-card:nth-child(4)) {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        justify-content: stretch;
    }
}
.related-card {
    background: var(--surface);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}
.related-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(0,240,255,0.08);
}
.related-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.4s;
}
body.light-mode .related-card img[src*="product-placeholder"] {
    filter: invert(1) hue-rotate(180deg);
    background: var(--surface);
}
.related-card:hover img { transform: scale(1.05); }
.related-body { padding: 1rem; }
.related-body h3 {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    color: var(--text);
}
.related-price {
    font-weight: 800;
    color: var(--primary-light);
    font-size: 0.95rem;
}
.related-price del {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-right: 0.2rem;
}

/* ========== Comments ========== */
.comment-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem;
    margin-bottom: 0.8rem;
    backdrop-filter: blur(6px);
}
.comment-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}
.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    font-size: 0.9rem;
}
.comment-author { font-weight: 700; color: var(--primary-light); font-size: 0.9rem; }
.comment-date { color: var(--text-muted); font-size: 0.75rem; margin-right: auto; }
.comment-body { color: var(--text-secondary); line-height: 1.6; font-size: 0.9rem; }
.no-comments {
    text-align: center;
    color: var(--text-muted);
    padding: 1.5rem;
    font-size: 0.9rem;
}
.comment-form {
    margin-top: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem;
    backdrop-filter: blur(10px);
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 1rem;
}
.form-group { display: flex; flex-direction: column; }
.form-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}
.product-page input,
.product-page textarea,
.product-page select {
    font-size: 16px !important;
}
.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.6rem 0.8rem;
    background: var(--surface-hover);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-body);
    outline: none;
    transition: border 0.2s;
    font-size: 16px;
    width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,240,255,0.1);
}
.btn-submit {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    border: none;
    padding: 0.65rem 1.8rem;
    border-radius: 40px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-body);
    font-size: 0.9rem;
}
.btn-submit:hover {
    box-shadow: 0 4px 16px rgba(0,240,255,0.35);
}

/* ========== Lightbox ========== */
.pdp-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.95);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.pdp-lightbox.active { display: flex; }
.pdp-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    cursor: default;
}

/* =============================================================
   MOBILE STICKY BAR – FLOATING ISLAND ABOVE BOTTOM NAV
   ============================================================= */
.mobile-sticky-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.5rem 1rem;
    background: rgba(10, 14, 28, 0.85);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 2rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: fixed;
    left: 1rem;
    right: 1rem;
    z-index: 50;
    /* Increased gap from bottom nav (was 0.8rem) */
    bottom: calc(var(--bottom-nav-height) + 1.2rem + env(safe-area-inset-bottom, 0px));
    width: auto;
}

body.light-mode .mobile-sticky-bar {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(0, 0, 0, 0.04);
}
.sticky-variant-thumb {
    width: 44px;
    height: 44px;
    border-radius: 1rem;
    object-fit: cover;
    flex-shrink: 0;
}
.mobile-sticky-bar .price-summary {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.mobile-sticky-bar .price {
    font-weight: 800;
    font-size: 1rem;
    color: var(--primary-light);
}
.mobile-sticky-bar .old-price {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: line-through;
}
.mobile-sticky-bar .discount-badge {
    font-size: 0.7rem;
    background: rgba(255, 0, 85, 0.15);
    color: var(--rose);
    padding: 0.1rem 0.5rem;
    border-radius: 1rem;
}
.mobile-sticky-bar .btn-add-cart {
    width: auto;
    padding: 0.6rem 1.4rem;
    font-size: 0.95rem;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    border: none;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0,240,255,0.3);
}

/* ==================== MOBILE RESPONSIVE ==================== */
@media (max-width: 900px) {
    .gallery {
        position: static;
        margin-bottom: 1.5rem;
    }
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .related-grid {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
        gap: 0.75rem;
    }
    .related-card {
        display: flex;
        flex-direction: column;
        min-height: 100%;
    }
    .related-body {
        padding: 0.8rem;
        flex: 1;
    }
    .related-body h3 {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    .related-price {
        font-size: 0.9rem;
    }
    .related-price del {
        font-size: 0.75rem;
    }
    .product-page {
        padding: 0 0.75rem;   
    }
    .info-card {
        border-radius: 1.5rem;
        padding: 1.5rem;
    }
    .tabs-container {
        padding: 0 0.75rem;
    }
    .related-section {
        padding: 0 0.75rem;
    }
    .mobile-sticky-bar {
        display: flex;
    }
    .support-widget {
        bottom: calc(var(--bottom-nav-height) + 80px + env(safe-area-inset-bottom, 0px)) !important;
    }
    body {
        padding-bottom: 70px;
    }
}

@media (max-width: 768px) {
    .mobile-sticky-bar {
        bottom: calc(var(--bottom-nav-height) + 1.2rem + env(safe-area-inset-bottom, 0px));
        left: 0.8rem;
        right: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    body {
        padding-bottom: calc(var(--bottom-nav-height) + 80px + env(safe-area-inset-bottom, 0px));
    }
    .qty-selector {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    .qty-control {
        width: 100%;
        max-width: 200px;
        justify-content: space-between;
    }
    .qty-btn {
        flex: 0 0 auto;
        min-width: 48px;
        min-height: 48px;
    }
    .qty-display {
        flex: 1;
        text-align: center;
    }
    .btn-add-cart {
        min-height: 44px;
        font-size: 0.95rem;
        padding: 0.65rem 1rem;
    }
    .tab-nav {
        gap: 0;
    }
    .tab-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    .comment-card {
        padding: 0.8rem;
        margin-bottom: 0.6rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .comment-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .comment-author {
        flex-basis: 100%;
        word-break: break-word;
    }
    .comment-date {
        margin-right: 0;
        flex-basis: 100%;
    }
    .comment-body {
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
    }
    .comment-form {
        padding: 0.8rem;
        margin: 1rem 0 0;
    }
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    .form-grid .form-group {
        grid-column: auto !important;
    }
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px;
        width: 100%;
    }
    .btn-submit {
        width: 100%;
        padding: 0.7rem 1.2rem;
    }
}

/* Markdown content styling for product descriptions */
.short-desc > *:first-child,
.long-description > *:first-child {
  margin-top: 0;
}
.long-description img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1rem 0;
}
.long-description h1,
.long-description h2,
.long-description h3,
.long-description h4,
.long-description h5,
.long-description h6 {
  color: var(--text);
  margin: 1.5rem 0 0.75rem;
  line-height: 1.4;
}
.long-description ul,
.long-description ol,
.short-desc ul,
.short-desc ol {
  padding-inline-start: 1.5rem;
}
.long-description blockquote,
.short-desc blockquote {
  border-right: 3px solid var(--primary);
  padding-right: 1rem;
  margin: 1rem 0;
  color: var(--text-secondary);
}
.long-description code,
.short-desc code {
  background: rgba(0, 240, 255, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}
.long-description pre,
.short-desc pre {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1rem;
  border-radius: var(--radius);
  overflow-x: auto;
}



/* =========================================================
   PRODUCT DETAIL MAIN IMAGE + LIGHTBOX FIX
   ========================================================= */

/* Main image frame */
.main-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary, rgba(10, 14, 29, 0.95));
  border-radius: var(--radius-lg, 1.25rem);
  margin: 0 auto;
}

/* Full image inside frame, never cropped or overflowing */
.main-image-container img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  display: block;
}

/* Thumbnails */
.thumbnail-strip .thumbnail-item {
  overflow: hidden;
  border-radius: 0.75rem;
}

.thumbnail-strip .thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Fullscreen lightbox */
.pdp-lightbox {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 9500 !important;
  display: none !important;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.95) !important;
  padding: clamp(1rem, 4vw, 2rem);
  overflow: auto !important;
}

.pdp-lightbox.active {
  display: flex !important;
}

.pdp-lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain !important;
  border-radius: 0.75rem;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
  display: block;
  margin: auto;
}


/* =========================================================
   PRODUCT LIGHTBOX STACKING CONTEXT FIX
   Stops the navbar from covering the fullscreen image.
   ========================================================= */

/* Allow product-page fixed elements to escape the main-container stacking context */
body .main-container {
  z-index: auto !important;
}

/* Force product lightbox above everything except native browser UI */
.pdp-lightbox {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 2147483000 !important;
  display: none !important;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.96) !important;
  padding: clamp(1rem, 4vw, 2rem) !important;
  overflow: auto !important;
}

.pdp-lightbox.active {
  display: flex !important;
}

.pdp-lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain !important;
  border-radius: 0.75rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
  display: block;
  margin: auto;
}


/* =========================================================
   RELATED CARD SHORT DESCRIPTION + PRODUCT DETAIL LIGHT LUX
   ========================================================= */

.related-body .card-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.7;
    margin: 0.5rem 0 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.light-mode .related-body h3 {
    color: #0f172a;
}

body.light-mode .related-body .card-desc {
    color: #475569;
}

body.light-mode .related-price {
    color: #0f172a;
}

body.light-mode .related-card {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

body.light-mode .related-card:hover {
    border-color: #ff2d55;
    box-shadow: 0 18px 35px rgba(6, 152, 214, 0.12);
}

/* Product detail page light-mode polish */
body.light-mode .product-page {
    color: #0f172a;
}

body.light-mode .info-card .product-title {
    color: #0f172a;
}

body.light-mode .short-desc {
    color: #334155;
}

body.light-mode .category-chip {
    background: rgba(6, 152, 214, 0.08);
    border-color: rgba(6, 152, 214, 0.2);
    color: #a80023;
}

body.light-mode .product-type-badge {
    background: rgba(6, 152, 214, 0.08);
    border-color: rgba(6, 152, 214, 0.2);
    color: #a80023;
}

body.light-mode .physical-badge {
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.2);
    color: #6d28d9;
}

body.light-mode .price-container {
    background: #f8fafc;
    border-color: #e2e8f0;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

body.light-mode .tab-btn {
    color: #475569;
}

body.light-mode .tab-btn.active {
    background: linear-gradient(135deg, #a80023, #ff2d55);
    color: #ffffff;
}

body.light-mode .tab-panel {
    color: #0f172a;
}

body.light-mode .comment-card,
body.light-mode .faq-item,
body.light-mode .specs-table {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

/* =========================================================
   LUX LIGHT PRODUCT DETAIL FINAL
   ========================================================= */
body.light-mode .info-card,
body.light-mode .related-card,
body.light-mode .comment-card,
body.light-mode .faq-item,
body.light-mode .specs-table {
  background: rgba(255,255,255,0.82);
  border-color: rgba(15,23,42,0.10);
  box-shadow: 0 12px 30px rgba(15,23,42,0.07);
  color: #0b1220;
}

body.light-mode .price-container {
  background: rgba(248,250,252,0.92);
  border-color: rgba(15,23,42,0.10);
  box-shadow: 0 10px 28px rgba(15,23,42,0.07);
}

body.light-mode .tab-btn.active {
  background: linear-gradient(135deg, #a80023, #d81b3f);
  color: #fff;
  box-shadow: 0 10px 25px rgba(255,45,85,0.20);
}

body.light-mode .tab-panel {
  color: #0b1220;
}

body.light-mode .mobile-sticky-bar {
  background: rgba(255,255,255,0.88);
  border-color: rgba(15,23,42,0.12);
  box-shadow: 0 12px 32px rgba(15,23,42,0.10);
}

body.light-mode .main-image-container {
  background: rgba(255,255,255,0.72);
}

body.light-mode .thumbnail-strip .thumbnail-item {
  background: rgba(255,255,255,0.78);
  border-color: rgba(15,23,42,0.10);
}


/* =========================================================
   MOBILE LIGHT MODE SCROLL PERFORMANCE FIX
   Replace heavy blur glass with solid surfaces on phones.
   ========================================================= */
@media (max-width: 768px) {
  body.light-mode .info-card,
  body.light-mode .product-type-badge,
  body.light-mode .price-container,
  body.light-mode .tab-nav,
  body.light-mode .tabs-container,
  body.light-mode .comment-card,
  body.light-mode .comment-form,
  body.light-mode .faq-item,
  body.light-mode .specs-table,
  body.light-mode .mobile-sticky-bar,
  body.light-mode .related-card,
  body.light-mode .thumbnail-item,
  body.light-mode .main-image-container {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body.light-mode .info-card,
  body.light-mode .price-container,
  body.light-mode .tab-nav,
  body.light-mode .tabs-container,
  body.light-mode .comment-card,
  body.light-mode .comment-form,
  body.light-mode .faq-item,
  body.light-mode .specs-table,
  body.light-mode .mobile-sticky-bar,
  body.light-mode .related-card,
  body.light-mode .thumbnail-item,
  body.light-mode .main-image-container {
    background: #ffffff !important;
  }

  body.light-mode .product-type-badge {
    background: #f8fafc !important;
  }
}


/* ==========================================================================
   MOBILE PRODUCT DETAIL TABS UI REFINEMENT
   Rounded container + spacing around tab-nav.
   ========================================================================== */
@media (max-width: 768px) {
  .tabs-container {
    border-radius: 1.5rem !important;
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    padding: 0.75rem !important;
    margin-left: 0.6rem !important;
    margin-right: 0.6rem !important;
    overflow: hidden !important;
  }

  .tab-nav {
    margin-top: 0.25rem !important;
    margin-bottom: 0.75rem !important;
    border-radius: 20px !important;
  }

  .tab-panel {
    padding: 0 0.25rem !important;
  }

  body.light-mode .tabs-container,
  body.light-mode .tab-nav {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
  }
}


/* ==========================================================================
   PRODUCT DETAIL UI IMPROVEMENTS
   Scroll progress bar + link underline removal
   ========================================================================== */

/* Mobile scroll progress bar */
.product-reading-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(128,128,128,0.08);
  z-index: 10001;
  pointer-events: none;
}
.product-reading-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--accent-light));
  width: 0%;
  transition: width 0.1s ease;
  box-shadow: 0 0 12px var(--primary);
}

/* Remove link underlines in product detail content */
.product-page a,
.product-page a:hover,
.product-page .short-desc a,
.product-page .long-description a {
  text-decoration: none !important;
}

/* Keep clear link colors for product descriptions */
.product-page .long-description a,
.product-page .short-desc a {
  color: var(--primary-light);
  transition: color 0.2s ease;
}

body.light-mode .product-page .long-description a,
body.light-mode .product-page .short-desc a {
  color: var(--primary-dark);
}

.product-page .long-description a:hover,
.product-page .short-desc a:hover {
  color: var(--accent-light);
}


/* ================= ZOOM / SMALL SCREEN SAFEGUARDS ================= */
.price-content > div:first-child {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.discount-badge {
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-sticky-bar .price-summary {
    flex: 1;
    min-width: 0;
}

.mobile-sticky-bar .discount-badge {
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 400px) {
    .price-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .price-content > div:first-child {
        width: 100%;
    }
    .current-price {
        font-size: 1.5rem;
    }
    .old-price {
        font-size: 0.8rem;
    }
    .discount-badge {
        font-size: 0.7rem;
        padding: 0.1rem 0.5rem;
    }
    .mobile-sticky-bar {
        padding: 0.4rem 0.6rem;
    }
    .mobile-sticky-bar .price-summary {
        flex-direction: column;
        align-items: flex-start;
    }
    .mobile-sticky-bar .price {
        font-size: 0.9rem;
    }
    .mobile-sticky-bar .old-price {
        font-size: 0.7rem;
    }
    .mobile-sticky-bar .discount-badge {
        font-size: 0.65rem;
    }
}


/* Fix: prevent discount badge in sticky bar from stretching horizontally */
.mobile-sticky-bar .discount-badge {
    width: fit-content;
    align-self: flex-start;
}


/* ===== MOBILE STICKY BAR BLUR MATCH BOTTOM NAV ===== */
@media (max-width: 1160px) {
  .mobile-sticky-bar {
    background: rgba(10, 14, 26, 0.62) !important;
    -webkit-backdrop-filter: blur(44px) saturate(190%) !important;
    backdrop-filter: blur(44px) saturate(190%) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04) inset !important;
  }

  body.light-mode .mobile-sticky-bar {
    background: rgba(255, 255, 255, 0.58) !important;
    -webkit-backdrop-filter: blur(52px) saturate(200%) !important;
    backdrop-filter: blur(52px) saturate(200%) !important;
    border-color: rgba(15, 23, 42, 0.10) !important;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.5) inset !important;
  }
}


/* =========================================================
   PRODUCT DETAIL UX REDESIGN OVERRIDES
   ========================================================= */

/* --- Mobile Gallery --- */
@media (max-width: 899px) {
  .main-image-container {
    display: block !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
  }
  .thumbnail-strip {
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }
  .thumbnail-item {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
  }
}

/* --- Info Card Hierarchy --- */
.info-card {
  padding: 1.8rem !important;
  gap: 0.6rem !important;
}
.product-title {
  font-size: clamp(1.4rem, 5vw, 2rem) !important;
  line-height: 1.5 !important;
}
.price-container {
  padding: 1.4rem !important;
  margin: 1.2rem 0 !important;
  border-radius: 2rem !important;
}
.current-price {
  font-size: 1.6rem !important;
  letter-spacing: -0.5px;
}
.discount-badge {
  font-weight: 900 !important;
  padding: 0.3rem 0.8rem !important;
}

/* --- Variant Swatches --- */
.swatch-item.out-of-stock {
  opacity: 0.45;
  position: relative;
}
.swatch-item.out-of-stock::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top left, transparent 45%, rgba(255,255,255,0.8) 50%, transparent 55%);
  border-radius: 50%;
  pointer-events: none;
}

/* --- Trust Badges --- */
.trust-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1rem;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.35rem 0.8rem;
  background: rgba(0,240,255,0.06);
  border: 1px solid rgba(0,240,255,0.15);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* --- Tabs --- */
@media (max-width: 768px) {
  .tab-nav {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    padding: 0.4rem !important;
    gap: 0.4rem !important;
    position: sticky;
    top: calc(var(--navbar-height, 60px) + 4px);
    z-index: 50;
    background: var(--surface) !important;
    border-bottom: 1px solid var(--border);
  }
  .tab-btn {
    flex: 1 0 auto !important;
    white-space: nowrap;
  }
  .tabs-container {
    padding-top: 0.5rem !important;
  }
}

/* --- Mobile Sticky Bar --- */
.mobile-sticky-bar {
  flex-wrap: nowrap;
}
.mobile-sticky-bar .price-summary {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
#mobileStickyBar .selected-variant-name {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}


/* ===== MOBILE TABS RESPONSIVE FIX ===== */
@media (max-width: 768px) {
  .tabs-container {
    overflow: visible !important;
    padding: 0.75rem !important;
    margin-left: 0.6rem !important;
    margin-right: 0.6rem !important;
  }

  .tab-nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 0.4rem !important;
    padding: 0.4rem !important;
    margin: 0 !important;
    border-radius: 20px !important;
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    position: static !important;
    top: auto !important;
    z-index: auto !important;
    width: 100% !important;
  }

  .tab-nav::-webkit-scrollbar {
    display: none !important;
  }
  .tab-nav {
    scrollbar-width: none !important;
  }

  .tab-btn {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    padding: 0.6rem 1rem !important;
    font-size: 0.85rem !important;
  }

  .tab-panel {
    padding: 0.5rem 0.25rem !important;
  }
}

/* ===== MOBILE THUMBNAIL SPACING FIX ===== */
@media (max-width: 899px) {
  .thumbnail-strip {
    margin-top: 1.5rem !important;
  }
  .thumbnail-item.active {
    transform: translateY(0) !important;
  }
}



/* ===== FINAL MOBILE THUMBNAIL OVERRIDE (FIXES MANY IMAGES) ===== */
@media (max-width: 899px) {
  .thumbnail-strip {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    justify-content: flex-start !important;
    gap: 0.6rem !important;
    margin-top: 1.5rem !important;
    padding-bottom: 0.5rem !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }
  .thumbnail-strip::-webkit-scrollbar {
    display: none !important;
  }
  .thumbnail-item {
    flex: 0 0 64px !important;
    width: 64px !important;
    height: 64px !important;
    aspect-ratio: auto !important;
  }
  .thumbnail-item.active {
    transform: translateY(0) !important;
  }
}

/* ===== ULTIMATE MOBILE THUMBNAIL CONTAINMENT ===== */
@media (max-width: 899px) {
  .gallery {
    max-width: 100% !important;
    overflow: hidden !important;
  }
  .thumbnail-strip {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    justify-content: flex-start !important;
    gap: 0.6rem !important;
    margin-top: 1.5rem !important;
    padding-bottom: 0.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }
  .thumbnail-strip::-webkit-scrollbar {
    display: none !important;
  }
  .thumbnail-item {
    flex: 0 0 64px !important;
    width: 64px !important;
    height: 64px !important;
    box-sizing: border-box !important;
    aspect-ratio: auto !important;
  }
  .thumbnail-item.active {
    transform: translateY(0) !important;
  }
}

/* ===== FINAL MOBILE SCROLL PERFORMANCE OVERRIDE ===== */
@media (max-width: 1160px) {
  .navbar,
  .navbar::before,
  .navbar::after,
  .announcement-bar,
  .announcement-bar::before,
  .announcement-bar::after,
  .bottom-nav,
  .mobile-nav,
  .mobile-sticky-bar,
  .search-overlay,
  .category-sheet,
  .mega-menu,
  .mega-menu-catalog,
  .mega-child-panel {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    animation: none !important;
    filter: none !important;
  }

  .navbar { background: rgba(8, 12, 20, 0.97) !important; }
  body.light-mode .navbar { background: rgba(255, 255, 255, 0.98) !important; }

  .bottom-nav { background: rgba(8, 12, 20, 0.97) !important; }
  body.light-mode .bottom-nav { background: rgba(255, 255, 255, 0.98) !important; }

  .mobile-sticky-bar { background: rgba(8, 12, 20, 0.97) !important; }
  body.light-mode .mobile-sticky-bar { background: rgba(255, 255, 255, 0.98) !important; }
}

/* ===== DARK MODE COLOR MATCH + MAIN IMAGE SHADOW FIX ===== */
@media (max-width: 1160px) {
  body:not(.light-mode) .navbar {
    background: rgba(10, 14, 26, 0.94) !important;
  }
  body:not(.light-mode) .bottom-nav {
    background: rgba(10, 14, 26, 0.94) !important;
  }
  body:not(.light-mode) .mobile-sticky-bar {
    background: rgba(10, 14, 26, 0.94) !important;
  }
}

/* Remove main image shadow on product detail */
.main-image-container {
  box-shadow: none !important;
}

/* =========================================================
   LONG DESCRIPTION TABLES — match article detail styling
   ========================================================= */
.long-description table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.long-description table th {
    background: rgba(var(--primary-rgb, 0,240,255), 0.1);
    color: var(--primary);
    padding: 12px 15px;
    text-align: right;
}
.long-description table td {
    padding: 10px 15px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}
@media (max-width: 768px) {
    .long-description table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        max-width: 100%;
        -webkit-overflow-scrolling: touch;
    }
}

/* =========================================================
   PRODUCT DETAIL -- RESPONSIVE TABS & HEADINGS FIX
   Added 2026-09-20.
   (1) .long-description h1-h6 had no font-size -> fell back to
       browser default (~32px), unreadable on phones.
   (2) .specs-table td inline paddings ate horizontal space on
       narrow viewports; no word-break.
   Scoped to .product-page to prevent leakage to blog/other pages.
   Appended at EOF so cascade order wins without editing the
   four pre-existing tab-nav blocks.
   ========================================================= */

.product-page .long-description { font-size: 1rem; }
.product-page .long-description h1 { font-size: 1.5rem; }
.product-page .long-description h2 { font-size: 1.25rem; }
.product-page .long-description h3 { font-size: 1.1rem; }
.product-page .long-description h4,
.product-page .long-description h5,
.product-page .long-description h6 { font-size: 1rem; }
.product-page .long-description p,
.product-page .long-description li { font-size: 0.95rem; line-height: 1.85; }
.product-page .long-description hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 1.25rem 0;
}

.product-page .specs-table table { table-layout: fixed; }
.product-page .specs-table td {
  padding: 0.9rem 1rem !important;
  word-break: break-word;
  overflow-wrap: anywhere;
  vertical-align: top;
}
.product-page .specs-table td:first-child { width: 36% !important; }

@media (max-width: 768px) {
  .product-page .long-description {
    padding: 1rem;
    font-size: 0.95rem;
    line-height: 1.8;
    border-radius: 1.25rem;
  }
  .product-page .long-description h1 { font-size: 1.2rem; }
  .product-page .long-description h2 { font-size: 1.1rem; }
  .product-page .long-description h3 { font-size: 1rem; }
  .product-page .long-description h4,
  .product-page .long-description h5,
  .product-page .long-description h6 { font-size: 0.95rem; }
  .product-page .long-description p,
  .product-page .long-description li { font-size: 0.9rem; line-height: 1.8; }
  .product-page .long-description ul,
  .product-page .long-description ol { padding-inline-start: 1.2rem; }

  .product-page .specs-table { border-radius: 1rem !important; }
  .product-page .specs-table td {
    padding: 0.7rem 0.85rem !important;
    font-size: 0.88rem;
  }
  .product-page .specs-table td:first-child { width: 38% !important; }

  .product-page .tab-nav {
    position: static !important;
    top: auto !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 0.35rem !important;
    padding: 0.4rem !important;
    box-sizing: border-box !important;
    width: 100% !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .product-page .tab-nav::-webkit-scrollbar { display: none; }
  .product-page .tab-btn {
    flex: 0 0 auto !important;
    padding: 0.55rem 0.9rem !important;
    font-size: 0.82rem !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 400px) {
  .product-page .long-description { padding: 0.85rem; }
  .product-page .long-description h1 { font-size: 1.1rem; }
  .product-page .long-description h2 { font-size: 1rem; }
  .product-page .long-description p,
  .product-page .long-description li { font-size: 0.88rem; }

  .product-page .specs-table td {
    padding: 0.6rem 0.7rem !important;
    font-size: 0.82rem;
  }
  .product-page .specs-table td:first-child { width: 40% !important; }
}

/* ==========================================================================
   PDP MOBILE — Thumbnail strip: center when fits, scroll when overflows
   Same strategy as the landing stories rail (margin: 0 auto equivalent).
   Pseudo-element spacers grow when there is room, shrink to 0 on overflow.
   Scope: max-width 899px only. Desktop untouched.
   ========================================================================== */
@media (max-width: 899px) {
    .thumbnail-strip::before,
    .thumbnail-strip::after {
        content: '';
        flex: 1 1 0;
        min-width: 0;
        align-self: stretch;
    }
    .thumbnail-strip .thumbnail-item {
        flex: 0 0 auto;
    }
}

/* =========================================================
   PDP-GALLERY-V2 — swipe gallery (appended last so it wins)
   ========================================================= */
@media (max-width: 900px) {
  .main-image-container {
    display: flex !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    align-items: stretch !important;
    justify-content: flex-start !important;
  }
  .main-image-container::-webkit-scrollbar { display: none; }
  .main-image-container > img.main-slide {
    flex: 0 0 100% !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    scroll-snap-align: start;
    object-fit: contain !important;
    display: block;
  }
  .main-image-container::after { display: none !important; }
}

/* =========================================================
   PDP-GALLERY-V3 — mobile touch polish
   - Touch devices have no real :hover; the tapped thumbnail
     would otherwise stay highlighted ("stuck hover") forever.
   - Only .active should highlight on mobile.
   ========================================================= */
@media (hover: none) {
  .thumbnail-item:hover {
    border-color: transparent !important;
    opacity: 0.7 !important;
    box-shadow: none !important;
    transform: none !important;
  }
  .thumbnail-item.active,
  .thumbnail-item.active:hover {
    border-color: var(--primary) !important;
    opacity: 1 !important;
    box-shadow: 0 0 10px rgba(0,240,255,0.35) !important;
    transform: translateY(-3px) !important;
  }
}

/* =========================================================
   PDP-THUMB-GLOW-V1
   - The strip has overflow-x: auto which (per CSS spec) forces
     overflow-y to also be auto, clipping the top of the active
     thumbnail's glow.
   - Give the strip enough top/bottom padding that the lift and
     the 10px box-shadow glow fit inside the padded area.
   ========================================================= */
@media (max-width: 900px) {
  .thumbnail-strip {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
    margin-top: 0.25rem !important;
  }
  .thumbnail-item.active,
  .thumbnail-item.active:hover {
    /* Keep the lift but ensure it fits inside the padded strip */
    transform: translateY(-3px) !important;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.35), 0 0 0 2px var(--primary) !important;
  }
}

/* =========================================================
   PDP-THUMB-GLOW-V2
   Thinner active highlight:
     - border reduced from 2px to 1px
     - outer 2px ring removed (that was doubling the visual weight)
     - glow softened from 10px blur to 5px blur, lower alpha
     - subtle 2px lift retained
   ========================================================= */
.thumbnail-item {
  border-width: 1px !important;
}
.thumbnail-item.active,
.thumbnail-item.active:hover {
  border-color: var(--primary) !important;
  box-shadow: 0 0 5px rgba(0, 240, 255, 0.30) !important;
}
@media (hover: none) {
  /* Touch devices: no real hover, only active should highlight */
  .thumbnail-item:hover:not(.active) {
    border-color: transparent !important;
    opacity: 0.7 !important;
    box-shadow: none !important;
    transform: none !important;
  }
  .thumbnail-item.active,
  .thumbnail-item.active:hover {
    border-color: var(--primary) !important;
    opacity: 1 !important;
    box-shadow: 0 0 5px rgba(0, 240, 255, 0.30) !important;
    transform: translateY(-2px) !important;
  }
}

/* =========================================================
   PDP-DESKTOP-V1
   Desktop (>900px) shows one slide at a time. Mobile (<=900px)
   keeps the scroll-snap gallery from PDP-GALLERY-V2.
   ========================================================= */
@media (min-width: 901px) {
  .main-image-container {
    align-items: center !important;
    justify-content: center !important;
  }
  .main-image-container > .main-slide { display: none; }
  .main-image-container > .main-slide.main-slide-active {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    margin: 0 auto;
  }
}


/* =========================================================
   PDP-GALLERY-VIDEO-MOBILE
   Video slides must behave like image slides on all breakpoints.
   Mobile: the horizontal scroll-snap container lists only
   `img.main-slide`, so video fell through to intrinsic sizing.
   Thumbnails: the inner <video> captures taps; force it to pass
   through to the parent .thumbnail-item so swipe/click still works.
   Desktop is unaffected -- the min-width:901px block already uses
   .main-slide.main-slide-active (no element-type restriction).
   ========================================================= */

/* Mobile/tablet: video slides join the flex scroller */
@media (max-width: 900px) {
  .main-image-container > video.main-slide {
    flex: 0 0 100% !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    scroll-snap-align: start !important;
    object-fit: contain !important;
    background: #000 !important;
    display: block !important;
  }
}

/* Desktop: mirror image active-slide rules for video */
@media (min-width: 901px) {
  .main-image-container > video.main-slide { display: none; }
  .main-image-container > video.main-slide.main-slide-active {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: #000;
    border-radius: inherit;
  }
}

/* Thumbnails: video + play badge must not swallow taps */
.thumbnail-item video {
  pointer-events: none !important;
}
.thumbnail-item .thumbnail-play-badge {
  pointer-events: none !important;
}

/* Fallback poster background for video slides (before metadata loads) */
.main-slide[data-media-type="video"] {
  background: #000;
}


/* =========================================================
   PDP-STICKY-SWATCH-V1
   Compact color swatch strip inside the mobile sticky bar.
   Turns the sticky bar into a 2-row layout on mobile:
     row 1 (optional) : horizontally scrollable color dots
     row 2            : thumb + price + CTA (unchanged)
   Safe on 320px screens; never overlaps other elements.
   ========================================================= */
@media (max-width: 900px) {
    .mobile-sticky-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.35rem !important;
        padding-top: 0.55rem !important;
    }
    .mobile-sticky-bar .msb-main {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.8rem;
        width: 100%;
        min-width: 0;
    }
    .mobile-sticky-bar .msb-swatches {
        display: flex;
        align-items: center;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 2px 4px 4px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        -webkit-mask-image: linear-gradient(to left, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
        mask-image: linear-gradient(to left, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
    }
    .mobile-sticky-bar .msb-swatches::-webkit-scrollbar {
        display: none;
    }
    .mobile-sticky-bar .msb-swatch {
        flex: 0 0 auto;
        width: 26px;
        height: 26px;
        border-radius: 50%;
        border: 2px solid rgba(255, 255, 255, 0.22);
        padding: 0;
        cursor: pointer;
        transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
        scroll-snap-align: center;
        position: relative;
        background-size: cover;
        background-clip: padding-box;
        -webkit-tap-highlight-color: transparent;
    }
    .mobile-sticky-bar .msb-swatch.selected {
        border-color: #00f0ff;
        box-shadow: 0 0 10px rgba(0, 240, 255, 0.65);
        transform: scale(1.08);
    }
    .mobile-sticky-bar .msb-swatch.out-of-stock {
        opacity: 0.4;
    }
    .mobile-sticky-bar .msb-swatch.out-of-stock::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to top left, transparent 45%, rgba(255, 255, 255, 0.85) 50%, transparent 55%);
        border-radius: 50%;
        pointer-events: none;
    }
    body.light-mode .mobile-sticky-bar .msb-swatch {
        border-color: rgba(15, 23, 42, 0.2);
    }
    body.light-mode .mobile-sticky-bar .msb-swatch.selected {
        border-color: #d81b3f;
        box-shadow: 0 0 10px rgba(6, 152, 214, 0.55);
    }
    /* When swatches are present, bump the body bottom padding so content
       behind the sticky bar is never hidden. */
    body.pdp-with-msb-swatches {
        padding-bottom: calc(var(--bottom-nav-height, 64px) + 120px + env(safe-area-inset-bottom, 0px)) !important;
    }
}


/* =========================================================
   PDP-STICKY-SWATCH-SUPPORT-OFFSET
   When the mobile sticky bar contains a color-swatch row, the
   floating support widget must sit above it, not overlap it.
   ========================================================= */
@media (max-width: 900px) {
    body.pdp-with-msb-swatches .support-widget {
        bottom: calc(var(--bottom-nav-height, 64px) + 140px + env(safe-area-inset-bottom, 0px)) !important;
    }
}
@media (max-width: 400px) {
    body.pdp-with-msb-swatches .support-widget {
        bottom: calc(var(--bottom-nav-height, 64px) + 150px + env(safe-area-inset-bottom, 0px)) !important;
    }
}


/* =========================================================
   PDP-STICKY-SWATCH-TOGGLE-V1
   Collapsible color strip inside the mobile sticky bar.
   Toggle sits at the end of the swatch row; when collapsed,
   the strip shrinks to 0-width and the chevron flips down.
   State persists per-product via localStorage (JS side).
   ========================================================= */
@media (max-width: 900px) {
    .mobile-sticky-bar .msb-swatch-wrap {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        width: 100%;
        max-height: 40px;
        overflow: hidden;
        transition: max-height 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .mobile-sticky-bar .msb-swatch-wrap.collapsed {
        max-height: 26px;
    }
    .mobile-sticky-bar .msb-swatches {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 100%;
        transition: max-width 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
    }
    .mobile-sticky-bar .msb-swatch-wrap.collapsed .msb-swatches {
        flex: 0 0 0;
        max-width: 0;
        opacity: 0;
        pointer-events: none;
        overflow: hidden;
    }
    .mobile-sticky-bar .msb-swatch-toggle {
        flex: 0 0 auto;
        width: 26px;
        height: 26px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.16);
        background: rgba(255, 255, 255, 0.06);
        color: rgba(255, 255, 255, 0.85);
        font-size: 0.7rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        cursor: pointer;
        transition: background 0.15s, transform 0.2s;
        font-family: inherit;
        -webkit-tap-highlight-color: transparent;
    }
    .mobile-sticky-bar .msb-swatch-toggle:hover,
    .mobile-sticky-bar .msb-swatch-toggle:focus-visible {
        background: rgba(255, 255, 255, 0.14);
        outline: none;
    }
    .mobile-sticky-bar .msb-swatch-toggle i {
        transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .mobile-sticky-bar .msb-swatch-wrap.collapsed .msb-swatch-toggle i {
        transform: rotate(180deg);
    }
    body.light-mode .mobile-sticky-bar .msb-swatch-toggle {
        border-color: rgba(15, 23, 42, 0.12);
        background: rgba(15, 23, 42, 0.05);
        color: rgba(15, 23, 42, 0.7);
    }
    body.light-mode .mobile-sticky-bar .msb-swatch-toggle:hover,
    body.light-mode .mobile-sticky-bar .msb-swatch-toggle:focus-visible {
        background: rgba(15, 23, 42, 0.10);
    }
}
@media (prefers-reduced-motion: reduce) {
    .mobile-sticky-bar .msb-swatch-wrap,
    .mobile-sticky-bar .msb-swatches,
    .mobile-sticky-bar .msb-swatch-toggle i {
        transition: none !important;
    }
}


/* =========================================================
   PDP-STICKYBAR-COLLAPSE-V2
   Whole-bar collapse. A slim handle at the top of the sticky
   bar toggles the entire bar between full and collapsed.
   Supersedes PDP-STICKY-SWATCH-TOGGLE-V1 (hidden here).
   ========================================================= */
@media (max-width: 900px) {
    .mobile-sticky-bar {
        max-height: 400px;
        overflow: hidden;
        transition: max-height 0.38s cubic-bezier(0.22, 1, 0.36, 1),
                    padding-top 0.38s cubic-bezier(0.22, 1, 0.36, 1),
                    padding-bottom 0.38s cubic-bezier(0.22, 1, 0.36, 1),
                    border-radius 0.38s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .mobile-sticky-bar.msb-collapsed {
        max-height: 40px !important;
        padding-top: 0.4rem !important;
        padding-bottom: 0.4rem !important;
        border-radius: 20px !important;
    }
    .mobile-sticky-bar .msb-bar-handle {
        /* OLIVER-PDP-STICKYBAR-SLIM-V1: was 20px + 4px margin */
        width: 100%;
        height: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        background: transparent;
        color: inherit;
        cursor: pointer;
        padding: 0;
        margin: 0;
        font-family: inherit;
        -webkit-tap-highlight-color: transparent;
        opacity: 0.45;
        transition: opacity 0.15s;
    }
    .mobile-sticky-bar .msb-bar-handle:hover,
    .mobile-sticky-bar .msb-bar-handle:focus-visible {
        opacity: 0.95;
        outline: none;
    }
    .mobile-sticky-bar .msb-bar-handle i {
        font-size: 0.6rem;
        transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
        pointer-events: none;
    }
    .mobile-sticky-bar.msb-collapsed .msb-bar-handle i {
        transform: rotate(180deg);
    }
    /* Hide the previous swatch-only toggle -- superseded by the bar handle */
    .mobile-sticky-bar .msb-swatch-toggle {
        display: none !important;
    }
    /* Neutralize any leftover collapsed state on the swatch wrapper */
    .mobile-sticky-bar .msb-swatch-wrap.collapsed {
        max-height: none !important;
    }
    .mobile-sticky-bar .msb-swatch-wrap.collapsed .msb-swatches {
        flex: 1 1 auto !important;
        max-width: 100% !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    /* When the whole bar is collapsed, hide swatches + main row for a11y */
    .mobile-sticky-bar.msb-collapsed .msb-swatch-wrap,
    .mobile-sticky-bar.msb-collapsed .msb-main {
        visibility: hidden;
    }
    .mobile-sticky-bar:not(.msb-collapsed) .msb-swatch-wrap,
    .mobile-sticky-bar:not(.msb-collapsed) .msb-main {
        visibility: visible;
    }
}
@media (prefers-reduced-motion: reduce) {
    .mobile-sticky-bar,
    .mobile-sticky-bar .msb-bar-handle i {
        transition: none !important;
    }
}


/* PDP-STICKYBAR-CHEVRON-INVERT
   Expanded  -> chevron down (chevron points toward collapse)
   Collapsed -> chevron up   (chevron points toward expand)
   Base icon is chevron-up; we invert it while expanded. */
@media (max-width: 900px) {
    .mobile-sticky-bar:not(.msb-collapsed) .msb-bar-handle i {
        transform: rotate(180deg) !important;
    }
    .mobile-sticky-bar.msb-collapsed .msb-bar-handle i {
        transform: rotate(0deg) !important;
    }
}


/* =========================================================
   THEODOR-PDP-MOBILE-NOBLUR-V1
   Firefox Mobile CPU-falls-back on backdrop-filter, and light
   mode has a specificity bug where body.light-mode
   .mobile-sticky-bar (0-2-1) beats the earlier kill list
   (0-1-0), keeping a 52px blur on the sticky bar.
   This block:
     1) kills backdrop-filter on every PDP glass surface on
        mobile, in both light and dark, with specificity that
        beats all earlier rules;
     2) makes light-mode surfaces opaque so text contrast holds
        once the blur is gone.
   Desktop unaffected. Button animations untouched.
   ========================================================= */
@media (max-width: 1160px) {
  html body .info-card,
  html body .product-type-badge,
  html body .price-container,
  html body .tab-nav,
  html body .tabs-container,
  html body .comment-card,
  html body .comment-form,
  html body .faq-item,
  html body .specs-table,
  html body .related-card,
  html body .thumbnail-item,
  html body .thumbnail-strip .thumbnail-item,
  html body .main-image-container,
  html body .mobile-sticky-bar,
  html body.light-mode .info-card,
  html body.light-mode .product-type-badge,
  html body.light-mode .price-container,
  html body.light-mode .tab-nav,
  html body.light-mode .tabs-container,
  html body.light-mode .comment-card,
  html body.light-mode .comment-form,
  html body.light-mode .faq-item,
  html body.light-mode .specs-table,
  html body.light-mode .related-card,
  html body.light-mode .thumbnail-item,
  html body.light-mode .thumbnail-strip .thumbnail-item,
  html body.light-mode .main-image-container,
  html body.light-mode .mobile-sticky-bar {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  html body.light-mode .info-card,
  html body.light-mode .related-card,
  html body.light-mode .comment-card,
  html body.light-mode .faq-item,
  html body.light-mode .specs-table,
  html body.light-mode .tab-nav,
  html body.light-mode .tabs-container,
  html body.light-mode .comment-form,
  html body.light-mode .main-image-container {
    background: #ffffff !important;
  }
  html body.light-mode .price-container,
  html body.light-mode .thumbnail-item {
    background: #f8fafc !important;
  }
  html body.light-mode .mobile-sticky-bar {
    background: rgba(255, 255, 255, 0.98) !important;
  }
}
/* END THEODOR-PDP-MOBILE-NOBLUR-V1 */


/* =========================================================
   OLIVER-PDP-SHARE-V1
   Mobile-only share button for product detail. Floats in the
   info-card corner (RTL: top-left, opposite the start-aligned
   type badge). Shares canonical URL via navigator.share(),
   falls back to clipboard + toast.
   ========================================================= */
.pdp-share-btn {
    position: absolute;
    top: 1.1rem;
    left: 1.1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.22);
    color: var(--primary-light, #00f0ff);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;  /* OLIVER-PDP-SHARE-ALL-VP-V1 */
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.15s;
    z-index: 3;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
}
.pdp-share-btn:active { transform: scale(0.94); }
.pdp-share-btn:focus-visible {
    outline: 2px solid var(--primary, #00f0ff);
    outline-offset: 2px;
}
body.light-mode .pdp-share-btn {
    background: rgba(255, 45, 85, 0.08);
    border-color: rgba(255, 45, 85, 0.22);
    color: #d81b3f;
}
/* OLIVER-PDP-SHARE-ALL-VP-V1: visible on all viewports (was mobile-only) */
.pdp-share-toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(10, 14, 26, 0.95);
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
    z-index: 9999;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}
.pdp-share-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
/* END OLIVER-PDP-SHARE-V1 */


/* =========================================================
   OLIVER-PDP-SHARE-MODAL-V1
   Poster preview modal + two share actions.
   ========================================================= */
.pdp-share-modal {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    direction: rtl;
}
.pdp-share-modal.open { display: flex; }
.pdp-share-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    animation: pdpShareFadeIn 0.2s ease;
}
@keyframes pdpShareFadeIn { from { opacity: 0; } to { opacity: 1; } }

.pdp-share-modal-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    max-height: calc(100vh - 32px);
    background: linear-gradient(180deg, #0e1422 0%, #070a13 100%);
    border: 1px solid rgba(0, 240, 255, 0.22);
    border-radius: 24px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: pdpShareScaleIn 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
}
@keyframes pdpShareScaleIn { from { transform: scale(0.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }

body.light-mode .pdp-share-modal-panel {
    background: linear-gradient(180deg, #ffffff 0%, #fdf4f5 100%);
    border-color: rgba(216, 27, 63, 0.22);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.18);
}

.pdp-share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}
body.light-mode .pdp-share-modal-header { border-bottom-color: rgba(15, 23, 42, 0.06); }

.pdp-share-modal-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary, #f0f5fa);
}
body.light-mode .pdp-share-modal-header h3 { color: #0f172a; }

.pdp-share-modal-close {
    background: none;
    border: none;
    font-size: 1.7rem;
    line-height: 1;
    color: var(--text-muted, #94a3b8);
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.15s;
}
.pdp-share-modal-close:hover { color: #ff2d55; }

.pdp-share-modal-body {
    padding: 16px 20px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdp-share-modal-preview {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1080 / 1700;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
body.light-mode .pdp-share-modal-preview {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.08);
}
.pdp-share-modal-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
/* OLIVER-PDP-SHARE-LOADING-OVERLAY-V1: overlay instead of in-flow */
.pdp-share-modal-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-muted, #94a3b8);
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: inherit;
    z-index: 2;
    pointer-events: none;
}
.pdp-share-modal-loading i { font-size: 1.6rem; color: #00f0ff; }
body.light-mode .pdp-share-modal-loading i { color: #d81b3f; }
.pdp-share-modal-loading.hidden { display: none; }

.pdp-share-modal-actions {
    padding: 14px 20px 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}
body.light-mode .pdp-share-modal-actions { border-top-color: rgba(15, 23, 42, 0.06); }

.pdp-share-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 14px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, background 0.15s, border-color 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.pdp-share-action:active { transform: scale(0.97); }
.pdp-share-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pdp-share-action-primary {
    background: linear-gradient(135deg, #00f0ff 0%, #00b4d8 100%);
    color: #0a0e1a;
    border-color: rgba(0, 240, 255, 0.4);
}
body.light-mode .pdp-share-action-primary {
    background: linear-gradient(135deg, #ff2d55 0%, #d81b3f 100%);
    color: #ffffff;
    border-color: rgba(216, 27, 63, 0.4);
}

.pdp-share-action-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary, #f0f5fa);
    border-color: rgba(255, 255, 255, 0.14);
}
body.light-mode .pdp-share-action-secondary {
    background: rgba(15, 23, 42, 0.05);
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.1);
}
.pdp-share-action-secondary:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.3);
}
body.light-mode .pdp-share-action-secondary:hover {
    background: rgba(216, 27, 63, 0.08);
    border-color: rgba(216, 27, 63, 0.25);
}

/* END OLIVER-PDP-SHARE-MODAL-V1 */
