/* Shop Archive (Hybrid V2 - Sidebar + Ghosts) */

:root {
    --bg-dark: #F8FAFC;
    --acc-gold: #81D8D0;
    --text-main: #0F172A;
    --text-muted: #888;
}

/* Base */
body {
    background-color: var(--bg-dark);
}

/* Sidebar Filter Styles */
.filter-btn {
    outline: none;
    position: relative;
    padding-left: 24px;
    transition: all 0.3s ease;
}

.filter-btn::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--acc-gold);
    transition: width 0.3s ease;
}

.filter-btn:hover::before {
    width: 100%;
}

.filter-btn.active {
    color: var(--acc-gold);
    text-shadow: 0 0 10px rgba(129, 216, 208, 0.3);
}

.filter-btn.active span {
    opacity: 1;
}

/* Hide scrollbar */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ========================================
   PRODUCT CARD — Modern Luxury Design 2026
   Complete UI Overhaul
   ======================================== */

/* Card Container */
.archive-card {
    position: relative;
    background: #F8FAFC;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid #EEF4F7;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.archive-card:hover {
    transform: translateY(-4px);
    border-color: rgba(129, 216, 208, 0.3);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5), 0 0 15px rgba(129, 216, 208, 0.08);
}

.archive-card.is-out-of-stock {
    opacity: 0.5;
    filter: grayscale(0.8);
    pointer-events: none;
}

/* Image Container */
.product-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #e6e6e6;
}

.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.archive-card:hover .product-image-wrap img {
    transform: scale(1.08);
}

/* Quick View Button (appears on hover) */
.product-quick-view {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(20px);
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    z-index: 10;
}

.archive-card:hover .product-quick-view {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
}

.product-quick-view:hover {
    background: #81D8D0;
}

/* Add to Cart Button - Enhanced */
.product-add-btn {
    width: 100%;
    background: transparent;
    color: #81D8D0;
    border: 1px solid #81D8D0;
    border-radius: 0;
    padding: 12px 20px;
    font-family: monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.25s ease, color 0.25s ease;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.product-add-btn::before {
    display: none;
}

.product-add-btn:hover {
    background: #81D8D0;
    color: #F8FAFC;
    box-shadow: none;
    transform: none;
}

.product-add-btn:active {
    transform: none;
}

.product-add-btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.product-add-btn:hover svg {
    transform: translateX(3px);
}

/* Sold Out Overlay */
.product-soldout {
    position: absolute;
    inset: 0;
    z-index: 15;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
}

.product-soldout-pill {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 8px 28px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

/* Card Body */
.product-body {
    padding-top: 14px;
    padding-left: 2px;
    padding-right: 2px;
}

.product-name {
    font-family: 'Bodoni Moda', serif;
    font-size: 15px;
    line-height: 1.35;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.archive-card:hover .product-name {
    color: #81D8D0;
}

.archive-card.is-out-of-stock .product-name {
    opacity: 0.5;
}

/* Price — Stacked: Original ABOVE, Sale BELOW */
.stacked-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: 'Inter', sans-serif;
}

.stacked-price .price-regular {
    font-size: 16px;
    font-weight: 600;
    color: #81D8D0;
    letter-spacing: -0.01em;
}

.stacked-price .price-original {
    font-size: 13px;
    font-weight: 400;
    color: #666;
    text-decoration: line-through;
    text-decoration-color: #555;
}

.stacked-price .price-sale {
    font-size: 16px;
    font-weight: 700;
    color: #81D8D0; /* Gold - brand color */
    letter-spacing: -0.01em;
}

/* WooCommerce price HTML overrides */
.stacked-price del,
.stacked-price del span,
.stacked-price del bdi {
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #666 !important;
    text-decoration: line-through !important;
}

.stacked-price ins,
.stacked-price ins span,
.stacked-price ins bdi {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #81D8D0 !important;
    text-decoration: none !important;
    background: transparent !important;
}

/* Unavailable text */
.product-unavailable {
    margin-top: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.2);
}

/* Low Stock Badge */
.product-low-stock {
    margin-top: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #81D8D0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-low-stock::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #81D8D0;
    animation: lowStockPulse 2s ease-in-out infinite;
}

@keyframes lowStockPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

/* Mobile: no hover lift */
@media (max-width: 768px) {
    .archive-card:hover {
        transform: none;
    }
}

/* Grid Layout */
#product-grid {
    gap: 12px;
    transition: opacity 0.2s ease;
}

@media (min-width: 768px) {
    #product-grid {
        gap: 20px;
    }
}

/* Mobile Sort Fullscreen */
#mobile-sort-fullscreen {
    background: rgba(5, 5, 5, 0.98) !important;
    backdrop-filter: blur(20px);
}

/* Loading Skeleton */
.skeleton-product-card {
    background: #F8FAFC;
    border-radius: 0;
    overflow: hidden;
}

.skeleton-product-image {
    background: linear-gradient(90deg, #0a0a0a 0%, #111 50%, #0a0a0a 100%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

/* Out of Stock Badge */
.archive-card .border-white\/30 {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 0.3em;
    backdrop-filter: blur(10px);
}

/* Sale Badge - Minimalist */
.archive-sale-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    padding: 6px 12px;
    background: rgba(255,255,255,0.95);
    color: #000;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 0;
}

/* Shop Page Hero */
.shop-page-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(129, 216, 208, 0.88);
}

.shop-page-hero__subtext {
    max-width: 640px;
    margin: 14px auto 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
    line-height: 1.7;
}

/* Shop Hero Card */
.shop-hero-card {
    position: relative;
    min-height: 156px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(129, 216, 208, 0.18);
    background: linear-gradient(145deg, rgba(14, 14, 14, 0.96), rgba(6, 6, 6, 0.96));
    isolation: isolate;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.shop-hero-card:hover {
    border-color: rgba(129, 216, 208, 0.42);
    transform: translateY(-2px);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.32);
}

.shop-hero-card__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(129, 216, 208, 0.14), transparent 48%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 55%);
    opacity: 0.95;
}

.shop-hero-card__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100%;
    padding: 18px 18px 20px;
}

.shop-hero-card__eyebrow,
.shop-toolbar-panel__eyebrow,
.shop-filter-sidebar__eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(129, 216, 208, 0.9);
}

.shop-hero-card__title {
    margin-top: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    line-height: 1;
    color: #f6efdf;
}

.shop-hero-card__copy {
    margin-top: 10px;
    max-width: 28ch;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
}

.shop-hero-card__cta {
    margin-top: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #81D8D0;
}

/* Shop Toolbar Panel */
.shop-toolbar-panel {
    position: relative;
    margin: 0 auto 24px;
    padding: 0 16px;
    max-width: 1400px;
}

.shop-toolbar-panel__copy {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.shop-toolbar-panel__title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: #f6efdf;
}

.shop-toolbar-panel__status {
    max-width: 540px;
    line-height: 1.55;
}

/* Filter Sidebar */
.shop-filter-sidebar__eyebrow {
    margin-bottom: 10px;
}

.shop-filter-sidebar__summary {
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.68);
}

/* Sort Trigger */
.shop-sort-trigger {
    margin-left: 2px;
    padding-right: 16px;
    border-style: solid;
    border-color: rgba(129, 216, 208, 0.4);
    background: rgba(129, 216, 208, 0.08);
    color: #81D8D0;
}

.shop-sort-trigger::before {
    background: #81D8D0;
}

/* Filter Clarity + Mobile Conversion */
.shop-filter-hint-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.shop-filter-swipe {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.58);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.shop-filter-swipe::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(129, 216, 208, 0.92);
    box-shadow: 10px 0 0 rgba(129, 216, 208, 0.38);
}

.shop-filter-swipe.is-hidden {
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
}

.shop-filter-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(129, 216, 208, 0.24);
    background: rgba(129, 216, 208, 0.06);
    color: rgba(129, 216, 208, 0.92);
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: border-color 0.24s ease, background-color 0.24s ease, color 0.24s ease;
}

.shop-filter-reset:hover {
    border-color: rgba(129, 216, 208, 0.44);
    background: rgba(129, 216, 208, 0.12);
    color: #f6efdf;
}

.shop-filter-reset.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Sort Always */
.shop-sort-always {
    flex-shrink: 0;
    margin-left: 8px;
    display: flex;
    align-items: center;
}

.shop-sort-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid #81D8D0;
    color: #81D8D0;
    font-family: monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.shop-sort-pill:hover {
    background: rgba(129, 216, 208, 0.15);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .shop-section-animate,
    .shop-section-reveal,
    .shop-card-animate,
    .shop-hero-card,
    .archive-card {
        transition: none !important;
        transform: none !important;
    }
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
    #shop-sidebar {
        width: 100%;
        position: relative;
        z-index: 50;
    }

    #shop-sidebar .sticky {
        position: relative;
        top: 0;
    }

    #filter-bar {
        display: flex;
        flex-direction: row;
        gap: 20px;
        white-space: nowrap;
        border-bottom: 1px solid #222;
        padding-bottom: 15px;
    }

    .shop-filter-hint-row {
        margin-bottom: 10px;
        padding-inline: 2px;
    }

    .shop-toolbar-panel {
        padding: 0;
    }

    .shop-sort-always {
        display: none;
    }
}

@media (max-width: 768px) {
    .shop-page-hero__subtext {
        font-size: 13px;
        line-height: 1.55;
    }

    .shop-hero-card {
        min-height: 150px;
        border-radius: 16px;
    }

    .shop-hero-card__title {
        font-size: 22px;
    }

    .shop-hero-card__copy {
        font-size: 12px;
        max-width: none;
    }

    .shop-toolbar-panel__title {
        font-size: 22px;
    }

    .shop-filter-hint-row {
        align-items: flex-start;
    }

    .shop-filter-reset {
        min-height: 34px;
        padding-inline: 12px;
        font-size: 9px;
    }

    .shop-filter-rail__fade {
        width: 28px;
    }

    .product-price {
        font-size: 13px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .vault-control-strip {
        backdrop-filter: none;
        background: rgba(8, 8, 8, 0.98);
    }
}

.filter-scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    margin-bottom: 8px;
    font-family: monospace;
    font-size: 10px;
    color: #81D8D0;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(129, 216, 208, 0.05);
    border: 1px solid rgba(129, 216, 208, 0.15);
    border-radius: 4px;
    transition: opacity 0.3s ease;
}
.filter-scroll-hint.is-hidden {
    opacity: 0;
    pointer-events: none;
}
.hint-arrow--left {
    animation: hintPulseLeft 1.5s ease-in-out infinite;
}
.hint-arrow--right {
    animation: hintPulseRight 1.5s ease-in-out infinite;
}
@keyframes hintPulseLeft {
    0%, 100% { transform: translateX(0); opacity: 0.5; }
    50% { transform: translateX(-4px); opacity: 1; }
}
@keyframes hintPulseRight {
    0%, 100% { transform: translateX(0); opacity: 0.5; }
    50% { transform: translateX(4px); opacity: 1; }
}
@media (min-width: 1024px) {
    .filter-scroll-hint {
        display: none;
    }
}

/* Instagram Browser / WebView Fixes */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}
button, a, input, select, textarea {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
html {
    -webkit-overflow-scrolling: touch;
}
body {
    overflow-x: clip !important;
    max-width: 100vw;
}
@media (max-width: 768px) {
    button, .clickable, a[role="button"], .vault-card, .archive-card button {
        min-height: 44px;
        min-width: 44px;
    }
}
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .archive-card, .vault-card {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}

/* Reduced animations for low-end devices */
.low-end-device *,
.low-end-device *::before,
.low-end-device *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}
.low-end-device .archive-card:hover {
    transform: none !important;
}
.low-end-device .archive-card img {
    transform: none !important;
}

.product-price ins,
.product-price ins span,
.product-price ins bdi {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #81D8D0 !important;
    text-decoration: none !important;
    background: transparent !important;
}

/* Unavailable text */
.product-unavailable {
    margin-top: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.2);
}

/* Low Stock Badge */
.product-low-stock {
    margin-top: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #81D8D0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-low-stock::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #81D8D0;
    animation: lowStockPulse 2s ease-in-out infinite;
}

@keyframes lowStockPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

/* Mobile: no hover lift */
@media (max-width: 768px) {
    .archive-card:hover {
        transform: none;
    }
}

/* Grid Layout */
#product-grid {
    gap: 12px;
    transition: opacity 0.2s ease;
}

@media (min-width: 768px) {
    #product-grid {
        gap: 20px;
    }
}

/* Mobile Sort Fullscreen */
#mobile-sort-fullscreen {
    background: rgba(5, 5, 5, 0.98) !important;
    backdrop-filter: blur(20px);
}

/* Loading Skeleton */
.skeleton-product-card {
    background: #F8FAFC;
    border-radius: 0;
    overflow: hidden;
}

.skeleton-product-image {
    background: linear-gradient(90deg, #0a0a0a 0%, #111 50%, #0a0a0a 100%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

/* Out of Stock Badge */
.archive-card .border-white\/30 {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 0.3em;
    backdrop-filter: blur(10px);
}

/* Sale Badge - Minimalist */
.archive-sale-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    padding: 6px 12px;
    background: rgba(255,255,255,0.95);
    color: #000;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 0;
}

/* ATC always visible — no hover reveal */

/* Elvera Card Body — matches PHP template */
.elvera-card-body {
    padding: 14px 2px 2px;
}

.elvera-card-header {
    margin-bottom: 6px;
}

.elvera-product-title {
    font-family: 'Bodoni Moda', serif;
    font-size: 15px;
    line-height: 1.35;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    transition: color 0.3s ease;
}

.elvera-product-title a {
    text-decoration: none;
    color: inherit;
}

.elvera-product-title a:hover {
    color: #81D8D0;
}

.elvera-card-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Elvera Price Block — matches PHP template exactly */
.elvera-price-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: 'Inter', sans-serif;
}

.elvera-price-cut {
    font-size: 13px;
    font-weight: 400;
    color: #666;
    text-decoration: line-through;
    text-decoration-color: #555;
    opacity: 0.7;
}

.elvera-price-current {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

.elvera-price-current.sale-active {
    color: #81D8D0;
}

/* WooCommerce price HTML overrides (for PHP-rendered cards) */
   FILTER BAR - Minimalist Premium Design
   Research-backed: Baymard + BTNG.studio
   ========================================= */

/* Container - Clean, no heavy shadows */
.vault-control-strip {
    position: relative;
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 6px 2px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
    contain: layout style;
}

.vault-control-strip::-webkit-scrollbar {
    display: none;
}

/* Fade indicators for overflow */
.shop-filter-rail {
    position: relative;
    width: 100%;
}

.shop-filter-rail::before,
.shop-filter-rail::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 10;
}

.shop-filter-rail::before {
    left: 0;
    background: linear-gradient(to right, #F8FAFC 0%, transparent 100%);
}

.shop-filter-rail::after {
    right: 0;
    background: linear-gradient(to left, #F8FAFC 0%, transparent 100%);
}

.shop-filter-rail.has-overflow::before,
.shop-filter-rail.has-overflow::after {
    opacity: 1;
}

.shop-filter-rail.is-at-start::before {
    opacity: 0;
}

.shop-filter-rail.is-at-end::after {
    opacity: 0;
}

/* =========================================
   FILTER PILLS - Clean Minimalist
   ========================================= */
.vault-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: #888;
}

.vault-pill:hover {
    border-color: rgba(129, 216, 208, 0.3);
    color: #81D8D0;
    background: rgba(129, 216, 208, 0.05);
}

/* Active state - Solid gold, no shadows, same font-weight to prevent layout shift */
.vault-pill.active,
.vault-pill.is-active {
    background: #81D8D0;
    border-color: #81D8D0;
    color: #000;
    font-weight: 500;
}

.vault-pill.active:hover,
.vault-pill.is-active:hover {
    background: #F0D9A8;
    border-color: #F0D9A8;
    color: #000;
}

/* Remove :active scale to prevent shrink effect */

/* Shop Page Hero */
.shop-page-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(129, 216, 208, 0.88);
}

.shop-page-hero__subtext {
    max-width: 640px;
    margin: 14px auto 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
    line-height: 1.7;
}

/* Shop Hero Card */
.shop-hero-card {
    position: relative;
    min-height: 156px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(129, 216, 208, 0.18);
    background: linear-gradient(145deg, rgba(14, 14, 14, 0.96), rgba(6, 6, 6, 0.96));
    isolation: isolate;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.shop-hero-card:hover {
    border-color: rgba(129, 216, 208, 0.42);
    transform: translateY(-2px);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.32);
}

.shop-hero-card__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(129, 216, 208, 0.14), transparent 48%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 55%);
    opacity: 0.95;
}

.shop-hero-card__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100%;
    padding: 18px 18px 20px;
}

.shop-hero-card__eyebrow,
.shop-toolbar-panel__eyebrow,
.shop-filter-sidebar__eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(129, 216, 208, 0.9);
}

.shop-hero-card__title {
    margin-top: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    line-height: 1;
    color: #f6efdf;
}

.shop-hero-card__copy {
    margin-top: 10px;
    max-width: 28ch;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
}

.shop-hero-card__cta {
    margin-top: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #81D8D0;
}

/* Shop Toolbar Panel */
.shop-toolbar-panel {
    position: relative;
    margin: 0 auto 24px;
    padding: 0 16px;
    max-width: 1400px;
}

.shop-toolbar-panel__copy {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.shop-toolbar-panel__title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: #f6efdf;
}

.shop-toolbar-panel__status {
    max-width: 540px;
    line-height: 1.55;
}

/* Filter Sidebar */
.shop-filter-sidebar__eyebrow {
    margin-bottom: 10px;
}

.shop-filter-sidebar__summary {
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.68);
}

/* Sort Trigger */
.shop-sort-trigger {
    margin-left: 2px;
    padding-right: 16px;
    border-style: solid;
    border-color: rgba(129, 216, 208, 0.4);
    background: rgba(129, 216, 208, 0.08);
    color: #81D8D0;
}

.shop-sort-trigger::before {
    background: #81D8D0;
}

/* Filter Clarity + Mobile Conversion */
.shop-filter-hint-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.shop-filter-swipe {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.58);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.shop-filter-swipe::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(129, 216, 208, 0.92);
    box-shadow: 10px 0 0 rgba(129, 216, 208, 0.38);
}

.shop-filter-swipe.is-hidden {
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
}

.shop-filter-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(129, 216, 208, 0.24);
    background: rgba(129, 216, 208, 0.06);
    color: rgba(129, 216, 208, 0.92);
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: border-color 0.24s ease, background-color 0.24s ease, color 0.24s ease;
}

.shop-filter-reset:hover {
    border-color: rgba(129, 216, 208, 0.44);
    background: rgba(129, 216, 208, 0.12);
    color: #f6efdf;
}

.shop-filter-reset.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Sort Always */
.shop-sort-always {
    flex-shrink: 0;
    margin-left: 8px;
    display: flex;
    align-items: center;
}

.shop-sort-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid #81D8D0;
    color: #81D8D0;
    font-family: monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.shop-sort-pill:hover {
    background: rgba(129, 216, 208, 0.15);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .shop-section-animate,
    .shop-section-reveal,
    .shop-card-animate,
    .shop-hero-card,
    .vault-pill,
    .archive-card {
        transition: none !important;
        transform: none !important;
    }
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
    #shop-sidebar {
        width: 100%;
        position: relative;
        z-index: 50;
    }

    #shop-sidebar .sticky {
        position: relative;
        top: 0;
    }

    #filter-bar {
        display: flex;
        flex-direction: row;
        gap: 20px;
        white-space: nowrap;
        border-bottom: 1px solid #222;
        padding-bottom: 15px;
    }

    .shop-filter-hint-row {
        margin-bottom: 10px;
        padding-inline: 2px;
    }

    .vault-control-strip {
        padding-right: 40px;
    }

    .shop-toolbar-panel {
        padding: 0;
    }

    .shop-sort-always {
        display: none;
    }
}

@media (max-width: 768px) {
    .shop-page-hero__subtext {
        font-size: 13px;
        line-height: 1.55;
    }

    .shop-hero-card {
        min-height: 150px;
        border-radius: 16px;
    }

    .shop-hero-card__title {
        font-size: 22px;
    }

    .shop-hero-card__copy {
        font-size: 12px;
        max-width: none;
    }

    .shop-toolbar-panel__title {
        font-size: 22px;
    }

    .vault-control-strip {
        top: 4px;
        padding: 10px 34px 12px 10px;
        border-radius: 20px;
    }

    .vault-pill {
        min-height: 44px;
        padding: 0 16px 0 14px;
        font-size: 10px;
        letter-spacing: 0.12em;
    }

    .shop-filter-hint-row {
        align-items: flex-start;
    }

    .shop-filter-reset {
        min-height: 34px;
        padding-inline: 12px;
        font-size: 9px;
    }

    .shop-filter-rail__fade {
        width: 28px;
    }

.product-price {
    font-size: 13px;
}
}

.filter-scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    margin-bottom: 8px;
    font-family: monospace;
    font-size: 10px;
    color: #81D8D0;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(129, 216, 208, 0.05);
    border: 1px solid rgba(129, 216, 208, 0.15);
    border-radius: 4px;
    transition: opacity 0.3s ease;
}
.filter-scroll-hint.is-hidden {
    opacity: 0;
    pointer-events: none;
}
.hint-arrow--left {
    animation: hintPulseLeft 1.5s ease-in-out infinite;
}
.hint-arrow--right {
    animation: hintPulseRight 1.5s ease-in-out infinite;
}
@keyframes hintPulseLeft {
    0%, 100% { transform: translateX(0); opacity: 0.5; }
    50% { transform: translateX(-4px); opacity: 1; }
}
@keyframes hintPulseRight {
    0%, 100% { transform: translateX(0); opacity: 0.5; }
    50% { transform: translateX(4px); opacity: 1; }
}
@media (min-width: 1024px) {
    .filter-scroll-hint {
        display: none;
    }
}

/* Instagram Browser / WebView Fixes */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}
button, a, input, select, textarea {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
html {
    -webkit-overflow-scrolling: touch;
}
body {
    overflow-x: clip !important;
    max-width: 100vw;
}
@media (max-width: 768px) {
    button, .clickable, a[role="button"], .vault-card, .archive-card button {
        min-height: 44px;
        min-width: 44px;
    }
}
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .archive-card, .vault-card {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}

/* Reduced animations for low-end devices */
.low-end-device *,
.low-end-device *::before,
.low-end-device *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}
.low-end-device .archive-card:hover {
    transform: none !important;
}
.low-end-device .archive-card img {
    transform: none !important;
}

/* ========================================
   ELVERA CARD V2 - Matches PHP Template
   ======================================== */
.archive-card.elvera-card-v2 {
    background: #0a0a0a;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.archive-card.elvera-card-v2:hover {
    transform: translateY(-8px);
    border-color: rgba(129, 216, 208, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(129, 216, 208, 0.15);
}

.elvera-image-wrap {
    background: #0f0f0f;
}

.elvera-badge.elvera-sale-badge {
    background: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.shop-stock-pill-top-right {
    background: rgba(245, 158, 11, 0.9);
    color: #000;
}

.elvera-soldout-overlay {
    background: rgba(0, 0, 0, 0.7);
}

.elvera-soldout-text {
    background: #EEF4F7;
    color: #666;
    border: 1px solid #333;
}

.elvera-product-title a {
    color: #fff;
}

.elvera-product-title a:hover {
    color: #81D8D0;
}

.elvera-price-cut {
    color: #666 !important;
    text-decoration: line-through !important;
}

.elvera-price-current,
.elvera-price-current.sale-active {
    color: #81D8D0 !important;
}

.elvera-add-btn {
    background: linear-gradient(135deg, #81D8D0 0%, #69C9C1 100%);
    box-shadow: 0 4px 12px rgba(129, 216, 208, 0.2);
}

.elvera-add-btn:hover {
    background: linear-gradient(135deg, #F0D5A8 0%, #81D8D0 100%);
    box-shadow: 0 8px 24px rgba(129, 216, 208, 0.4);
    transform: translateY(-2px);
}
    transition: none !important;
}
