/* ==========================================================================
   boutique.css - VIP-Garderobe (boutique.php)
   ========================================================================== */

:root {
    --vs-bg: #08080b;
    --vs-surface: #121218;
    --vs-surface-2: #181822;
    --vs-input: #0d0d13;
    --vs-crimson: #cc0000;
    --vs-crimson-dark: #7a000d;
    --vs-gold: #f5d77f;
    --vs-gold-soft: rgba(245, 215, 127, 0.42);
    --vs-emerald: #4cd97b;
    --vs-border: rgba(255, 255, 255, 0.08);
    --vs-text: #d6d6de;
    --vs-muted: #9393a3;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    min-height: 100vh !important;
    background-color: var(--vs-bg);
    background-image:
        radial-gradient(ellipse 90% 45% at 50% 0%, rgba(165, 0, 22, 0.24), transparent 70%),
        radial-gradient(circle at 85% 32%, rgba(245, 215, 127, 0.045), transparent 50%);
    color: var(--vs-text);
    display: flex;
    flex-direction: column;
}

.top-nav { position: relative !important; z-index: 500 !important; flex-shrink: 0; }
.site-footer { position: relative !important; z-index: 10 !important; margin-top: auto; flex-shrink: 0; }

button, a, .vs-pill, .vs-toy-card {
    -webkit-tap-highlight-color: transparent !important;
    touch-action: manipulation;
}
button:focus:not(:focus-visible), a:focus:not(:focus-visible) {
    outline: none !important;
}

/* === HAUPT-SHELL === */
.vs-boutique-shell {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 14px 80px 14px;
    flex: 1 0 auto;
}

/* === FLOATING RUBINE-PILL (WENN EINGELOGGT) === */
#token-display {
    position: fixed !important;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    right: 16px !important;
    top: auto !important;
    z-index: 60 !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 16, 22, 0.92);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(245, 215, 127, 0.55);
    color: #fff;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75);
    transition: transform 0.2s ease;
}

/* === CINEMA HERO HEADER === */
.vs-boutique-hero {
    position: relative;
    text-align: center;
    padding: 28px 18px 24px 18px;
    margin-bottom: 14px;
    border-radius: 16px;
    background-color: var(--vs-surface);
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(245, 215, 127, 0.24);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}
.vs-boutique-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 10, 16, 0.72) 0%, rgba(8, 8, 12, 0.95) 100%);
    z-index: 0;
}
.vs-boutique-hero > * { position: relative; z-index: 1; }

.vs-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(245, 215, 127, 0.1);
    border: 1px solid rgba(245, 215, 127, 0.4);
    color: var(--vs-gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.vs-boutique-hero h1 {
    font-family: var(--font-heading, "Playfair Display", Georgia, serif);
    font-size: clamp(1.65rem, 5.5vw, 2.55rem);
    color: #fff;
    margin: 0 0 8px 0;
    font-weight: 600;
    line-height: 1.18;
}
.vs-boutique-hero p {
    margin: 0 auto;
    max-width: 620px;
    font-size: 0.9rem;
    line-height: 1.58;
    color: #c4c4d2;
}

/* === STICKY SWIPEABLE FILTER-LEISTE (IDENTISCH ZU SELECT_GAME.PHP) === */
.vs-sticky-filter-wrap {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(8, 8, 11, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 10px 14px 12px 14px;
    margin: 0 -14px 16px -14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.vs-filter-bar-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}
.vs-pills-scroll {
    display: flex;
    align-items: center;
    gap: 7px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 0;
    flex: 1;
    min-width: 0;
}
.vs-pills-scroll::-webkit-scrollbar { display: none; }

.vs-pill {
    flex: 0 0 auto;
    background: var(--vs-surface);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #c8c8d4;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    white-space: nowrap;
    min-height: 36px;
    user-select: none;
}
.vs-pill.active {
    background: linear-gradient(135deg, var(--vs-crimson) 0%, var(--vs-crimson-dark) 100%) !important;
    border-color: var(--vs-gold) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.34) !important;
}
.vs-pill-reset {
    flex: 0 0 auto;
    background: transparent;
    border: 1px dashed rgba(245, 215, 127, 0.45);
    color: var(--vs-gold);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    min-height: 36px;
    display: none;
}

/* Ergebnis-Info-Streifen */
.vs-context-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 14px;
    margin-bottom: 16px;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(204, 0, 0, 0.14) 0%, rgba(20, 20, 28, 0.9) 100%);
    border: 1px solid rgba(245, 215, 127, 0.22);
    border-left: 3px solid var(--vs-gold);
    font-size: 12px;
}
.vs-context-strip strong { color: var(--vs-gold); letter-spacing: 0.3px; }
.vs-context-strip span { color: #bdbdca; font-size: 11.5px; }

/* === PRODUKT-KARTEN-GRID (EINHEITLICH ZU SELECT_GAME.PHP) === */
.vs-toy-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    width: 100%;
}
@media (min-width: 560px) {
    .vs-toy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}
@media (min-width: 980px) {
    .vs-toy-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}

.vs-toy-card {
    position: relative;
    background: linear-gradient(180deg, var(--vs-surface-2) 0%, var(--vs-surface) 100%);
    border: 1px solid var(--vs-border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.48);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}
.vs-toy-card:active {
    transform: scale(0.99);
    border-color: var(--vs-gold-soft);
}

.vs-toy-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: radial-gradient(circle at center, #1b1720 0%, #0b0b10 85%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px 24px 16px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.vs-toy-media img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.38s ease;
}

.vs-toy-top-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 6px;
    pointer-events: none;
}
.vs-tag-cat {
    background: rgba(10, 10, 15, 0.84);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #f0f0f5;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 9px;
    border-radius: 999px;
    max-width: 68%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vs-tag-price {
    background: rgba(12, 12, 18, 0.88);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(245, 215, 127, 0.45);
    color: var(--vs-gold);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.7px;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.vs-ai-micro {
    position: absolute;
    bottom: 6px;
    right: 10px;
    font-size: 9.5px;
    color: rgba(255, 255, 255, 0.42);
    letter-spacing: 0.4px;
    pointer-events: none;
}

.vs-toy-body {
    padding: 14px 16px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: left;
}
.vs-toy-title {
    font-family: var(--font-heading, "Playfair Display", Georgia, serif);
    font-size: 1.18rem;
    color: #fff;
    margin: 0 0 6px 0;
    line-height: 1.25;
}
.vs-toy-teaser {
    font-size: 0.84rem;
    line-height: 1.52;
    color: #b5b5c4;
    margin: 0 0 14px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vs-toy-footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.vs-toy-partner-hint {
    font-size: 11px;
    color: var(--vs-muted);
}
.vs-card-cta {
    background: linear-gradient(135deg, var(--vs-crimson) 0%, var(--vs-crimson-dark) 100%);
    color: #fff;
    border: 1px solid rgba(245, 215, 127, 0.7);
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    white-space: nowrap;
    transition: box-shadow 0.2s ease;
}

/* === QUERVERWEIS-BOX ZUR BIBLIOTHEK (WIE FINAL-CTA AUF INDEX.PHP) === */
.vs-crosslink-box {
    margin-top: 32px;
    padding: 26px 18px;
    border-radius: 16px;
    background: radial-gradient(circle at top, rgba(204, 0, 0, 0.24), rgba(14, 14, 20, 0.96) 72%);
    border: 1px solid rgba(245, 215, 127, 0.34);
    text-align: center;
}
.vs-crosslink-box h3 {
    font-family: var(--font-heading, "Playfair Display", Georgia, serif);
    font-size: clamp(1.3rem, 4.8vw, 1.75rem);
    color: #fff;
    margin: 0 0 8px 0;
}
.vs-crosslink-box p {
    margin: 0 auto 18px auto;
    max-width: 560px;
    font-size: 0.88rem;
    line-height: 1.58;
    color: #c4c4d0;
}

.vs-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--vs-crimson) 0%, var(--vs-crimson-dark) 100%);
    color: #fff !important;
    border: 1px solid var(--vs-gold);
    padding: 14px 22px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(204, 0, 0, 0.36);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Rechtlicher Transparenzhinweis */
.vs-legal-disclosure {
    margin: 26px auto 0 auto;
    max-width: 880px;
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--vs-border);
    font-size: 0.76rem;
    line-height: 1.6;
    color: #8f8fa0;
    text-align: center;
}
.vs-legal-disclosure strong { color: #c4c4d2; }

/* === DETAIL-SHEET / MODAL (BOTTOM SHEET MOBIL, 2-SPALTEN MODAL DESKTOP) === */
.vs-sheet-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(4, 4, 8, 0.84);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}
.vs-sheet-overlay.open {
    display: flex;
    animation: vsFadeOverlay 0.22s ease;
}
@keyframes vsFadeOverlay {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@media (min-width: 760px) {
    .vs-sheet-overlay { align-items: center; padding: 20px; }
}

.vs-sheet {
    width: 100%;
    max-width: 820px;
    max-height: 92vh;
    background: #13131a;
    border: 1px solid rgba(245, 215, 127, 0.42);
    border-bottom: none;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: 0 -14px 45px rgba(0, 0, 0, 0.9);
    animation: vsSlideUp 0.26s cubic-bezier(0.2, 0.9, 0.25, 1);
}
@keyframes vsSlideUp {
    from { transform: translateY(45px); opacity: 0.4; }
    to   { transform: translateY(0); opacity: 1; }
}
@media (min-width: 760px) {
    .vs-sheet {
        border-bottom: 1px solid rgba(245, 215, 127, 0.42);
        border-radius: 16px;
        max-height: 88vh;
    }
}

.vs-sheet-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(10, 10, 15, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.vs-sheet-scroll {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}
@media (min-width: 760px) {
    .vs-sheet-scroll {
        flex-direction: row;
        align-items: stretch;
    }
}

.vs-modal-media {
    background: radial-gradient(circle at center, #1d1822 0%, #0b0b10 85%);
    padding: 26px 20px 18px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--vs-border);
}
@media (min-width: 760px) {
    .vs-modal-media {
        flex: 0 0 44%;
        border-bottom: none;
        border-right: 1px solid var(--vs-border);
        padding: 32px 24px;
    }
}
.vs-modal-media img {
    max-width: 100%;
    max-height: 240px;
    object-fit: contain;
    border-radius: 10px;
}
@media (min-width: 760px) {
    .vs-modal-media img { max-height: 320px; }
}
.vs-modal-ai-hint {
    font-size: 11px;
    color: #848496;
    margin-top: 12px;
    text-align: center;
    line-height: 1.4;
}

.vs-modal-body {
    padding: 18px 18px 22px 18px;
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
}
@media (min-width: 760px) {
    .vs-modal-body { padding: 28px 28px 24px 28px; }
}
.vs-modal-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    padding-right: 36px;
}
.vs-modal-body h2 {
    font-family: var(--font-heading, "Playfair Display", Georgia, serif);
    font-size: clamp(1.35rem, 4.6vw, 1.75rem);
    color: #fff;
    margin: 0 0 12px 0;
    line-height: 1.22;
}
.vs-modal-desc {
    font-size: 0.92rem;
    line-height: 1.65;
    color: #dcdce6;
    margin-bottom: 16px;
}
.vs-affiliate-note {
    font-size: 0.76rem;
    color: #a6a6b8;
    line-height: 1.5;
    background: rgba(204, 0, 0, 0.08);
    border: 1px solid rgba(204, 0, 0, 0.25);
    border-left: 3px solid var(--vs-crimson);
    padding: 10px 12px;
    border-radius: 8px;
    margin-top: auto;
}
.vs-affiliate-note strong { color: var(--vs-gold); }

.vs-sheet-footer {
    padding: 12px 18px calc(14px + env(safe-area-inset-bottom, 0px)) 18px;
    background: #0e0e14;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    flex-shrink: 0;
}

/* Touch-Geraete: Kein klebriges Hover/Focus bei abgewählten Filter-Pills */
@media (hover: none), (pointer: coarse) {
    .vs-pill:not(.active):hover,
    .vs-pill:not(.active):focus {
        background: var(--vs-surface) !important;
        border-color: rgba(255, 255, 255, 0.12) !important;
        color: #c8c8d4 !important;
        box-shadow: none !important;
    }
}

/* Hover-Effekte strikt nur auf echten Mausgeräten */
@media (hover: hover) and (pointer: fine) {
    .vs-pill:not(.active):hover { border-color: rgba(245, 215, 127, 0.5); color: #fff; }
    .vs-pill-reset:hover { border-color: #fff; color: #fff; }
    .vs-toy-card:hover {
        transform: translateY(-4px);
        border-color: var(--vs-gold-soft);
        box-shadow: 0 16px 38px rgba(0, 0, 0, 0.72), 0 0 20px rgba(204, 0, 0, 0.16);
    }
    .vs-toy-card:hover .vs-toy-media img { transform: scale(1.05); }
    .vs-toy-card:hover .vs-card-cta { box-shadow: 0 4px 14px rgba(245, 215, 127, 0.25); }
    .vs-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(245, 215, 127, 0.28); }
    .vs-sheet-close:hover { border-color: var(--vs-gold); color: var(--vs-gold); }
    #token-display:hover { transform: translateY(-2px); border-color: var(--vs-gold); }
}
