:root {
    --primary: #ff1493;
    --secondary: #ff69b4;
    --gold: #ffd700;
    --dark: #0a0a0a;
    --glass: rgba(10, 10, 10, 0.85);
    --border: rgba(255, 100, 200, 0.2);
    --container: 480px;
    --success: #2ecc71;
    /* «В корзину»: тёплый бордо → медь → золото (не фиолет WB, не синий Ozon) */
    --cart-btn-fill: linear-gradient(135deg, #3f1f24 0%, #6b3428 38%, #9a5c3a 72%, #c49a5c 100%);
    --cart-btn-shadow: 0 5px 20px rgba(45, 22, 18, 0.55), 0 0 0 1px rgba(212, 175, 120, 0.12);
    --cart-btn-shadow-hover: 0 8px 26px rgba(55, 28, 22, 0.5), 0 0 0 1px rgba(230, 200, 140, 0.2);
    --liquid-bg: linear-gradient(155deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 38%, rgba(255, 255, 255, 0.01) 100%);
    --liquid-border: rgba(255, 255, 255, 0.18);
    --liquid-shadow: 0 14px 34px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    /* Android WebView: пробиваем отсутствие env(safe-area) — задаёт MainActivity.kt */
    --visner-sys-inset-bottom: 0px;
    --visner-sys-inset-top: 0px;
    /* Браузер: bootstrap.js заполняет через visualViewport (Chrome без env(safe-area)) */
    --visner-vv-inset-bottom: 0px;
    --visner-bottom-edge-inset: max(
        env(safe-area-inset-bottom, 0px),
        var(--visner-sys-inset-bottom, 0px),
        var(--visner-vv-inset-bottom, 0px)
    );
    /* Запас под floating liquid tab bar + системная полоса (+ нижний safe-area отдельно) */
    /* Зазор контента над фиксированным таб-баром (+ env safe уже в --visner-bottom-edge-inset) */
    --visner-main-pad-nav: 112px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html,
body {
    min-height: 0;
}
html[data-theme='minimal'] body {
    min-height: 100vh;
    min-height: 100dvh;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, var(--dark) 0%, #1a0f1a 100%);
    color: white;
    overflow-x: hidden;
}

.app-wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    /* Высота по контенту: иначе пара с body min-height даёт пустую полку под короткой главной */
    min-height: 0;
    max-width: var(--container);
    margin: 0 auto;
    /* Прозрачно — общий градиент body, без «обрыва» перед navbar */
    background: transparent;
    position: relative;
    box-shadow: none;
}

html[data-theme='minimal'] .app-wrapper {
    min-height: 100vh;
    min-height: 100dvh;
}

/* Оригинал: документ не скроллим (html/body = окно), скролл только у main — см. инлайн index.html */
html[data-theme='original']:not(.visner-html-chat-scroll-lock) {
    min-height: 0;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    background-color: var(--dark);
}
html[data-theme='original'] body {
    min-height: 0;
    background: linear-gradient(135deg, var(--dark) 0%, #1a0f1a 100%);
}
html[data-theme='original'] body:not(.visner-club-common-chat-active) {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
}
html[data-theme='original'] body:not(.visner-club-common-chat-active) .app-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}
html[data-theme='original'] body:not(.visner-club-common-chat-active) main.app-main {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    height: auto;
    max-height: none;
}
/* Клуб без общего чата — тоже block (см. комментарий в index.html #bottom-nav-original-fix). */
html[data-theme='original'] body:not(.visner-club-common-chat-active) main.app-main > .page.active {
    display: block;
    flex: none;
    align-self: auto;
}
/* «Ответы»: растягиваем #page-club на высоту main (специфичнее .page.active). */
html[data-theme='original'] body:not(.visner-club-common-chat-active)
    main.app-main > #page-club.page.active:not(.visner-club-chat-layout-fix):has(#tab-faq.club-tab-content.active) {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    align-self: stretch;
    width: 100%;
    box-sizing: border-box;
}
html[data-theme='original'] body:not(.visner-club-common-chat-active)
    main.app-main > #page-club.page.active:not(.visner-club-chat-layout-fix):has(#tab-faq.club-tab-content.active)
    > .club-header,
html[data-theme='original'] body:not(.visner-club-common-chat-active)
    main.app-main > #page-club.page.active:not(.visner-club-chat-layout-fix):has(#tab-faq.club-tab-content.active)
    > .club-page-lead {
    flex: 0 0 auto;
}
/* Клуб: нижний отступ перенесён на #page-club (body.visner-club-shell-active) — см. club-social.css */
html[data-theme='original'] body.visner-club-shell-active main.app-main {
    padding-bottom: 0;
}
html[data-theme='original'] body.visner-club-common-chat-active {
    min-height: 100dvh;
}

.app-main {
    /* Не flex-grow: иначе при min-height:100dvh у .app-wrapper main растягивается и даёт «пустую полку» под контентом */
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-bottom: calc(var(--visner-main-pad-nav, 112px) + var(--visner-bottom-edge-inset));
}

.page {
    display: none;
}

.page.active {
    display: flex;
    flex-direction: column;
    flex: 0 1 auto;
    align-self: stretch;
    min-height: 0;
    box-sizing: border-box;
}

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    transform: none;
    pointer-events: auto;
}

.glow-bg {
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 20, 147, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 430px) {
    .glow-bg {
        width: min(62vw, 300px);
        height: min(62vw, 300px);
        opacity: 0.78;
    }
}

.glow-1 { top: -100px; left: -100px; }
.glow-2 { bottom: -100px; right: -100px; }

.sparkle {
    position: fixed;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    animation: sparkle 8s infinite ease-in-out;
    opacity: 0;
    z-index: 0;
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: translateY(0); }
    25% { opacity: 0.8; }
    50% { opacity: 0.3; transform: translateY(-100px); }
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 12px max(16px, env(safe-area-inset-right, 0px)) 14px max(16px, env(safe-area-inset-left, 0px));
    padding-top: max(
        14px,
        calc(env(safe-area-inset-top, 0px) + 12px),
        calc(var(--visner-sys-inset-top, 0px) + 12px)
    );
    /* Не sticky: родитель .app-wrapper с overflow:hidden — в Chrome шапка могла обрезаться / не попадать в поток */
    position: relative;
    z-index: 160;
    background: rgba(8, 6, 16, 0.72);
    backdrop-filter: blur(24px) saturate(1.25);
    -webkit-backdrop-filter: blur(24px) saturate(1.25);
    border-bottom: 1px solid rgba(255, 120, 200, 0.18);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45), 0 0 48px rgba(140, 70, 220, 0.1);
}

.logo {
    font-size: clamp(17px, 4.2vw, 24px);
    font-weight: 800;
    letter-spacing: clamp(2px, 1vw, 4px);
    background: linear-gradient(105deg, #ffd700 0%, #ff69b4 38%, #c07cff 72%, #ff9f42 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

button,
.icon-btn,
.nav-item,
.club-tab,
.cta-button,
.pp-mini-btn,
.chat-send,
.chat-tool-btn,
.visner-look-act,
.card-quick-view,
.wishlist-icon,
.card-cart-btn,
.filter-chip,
.account-tab {
    touch-action: manipulation;
}

.icon-btn {
    background: rgba(255,255,255,0.09);
    border: 1px solid var(--liquid-border);
    color: var(--secondary);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: 0.3s;
}

.icon-btn--profile {
    overflow: hidden;
    padding: 0;
}
.icon-btn--profile.has-profile-photo {
    border-color: rgba(255, 105, 180, 0.38);
}
.icon-btn--profile .header-profile-avatar-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    pointer-events: none;
}
.icon-btn--profile.has-profile-photo .header-profile-fallback {
    display: none;
}

.header-actions { display: flex; gap: 10px; }

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

.hidden { display: none; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.page {
    display: none;
    animation: pageShow 0.3s ease;
}

@keyframes pageShow {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero {
    padding: max(8px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(10px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    text-align: center;
    position: relative;
}

/* Главная: зазор от шапки + умеренные поля, не «впритык» */
#page-home .hero {
    padding-top: max(14px, env(safe-area-inset-top, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
    padding-left: max(16px, env(safe-area-inset-left, 0px));
}

.banner-slider {
    position: relative;
    width: 100%;
    height: clamp(220px, 52vw, 340px);
    min-height: 220px;
    max-height: 400px;
    border-radius: 18px;
    overflow: hidden;
    box-sizing: border-box;
    contain: layout style;
    border: none;
    box-shadow: none;
}

.banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.banner-slide.active {
    opacity: 1;
}

.hero-img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center center;
    border-radius: 0;
    border: 0;
    display: block;
}

/* Главная: высота блока = пропорции баннеров (~2:1), без лишней «полки» под/над картинкой */
#page-home .banner-slider {
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 2 / 1;
}

/* Главная: баннеры — contain; скругление на изображении */
#page-home .banner-slider .hero-img {
    object-fit: contain;
    object-position: center center;
    border-radius: 18px;
}

/* Фон как у полотна страницы */
#page-home .banner-slider,
#page-home .banner-slide {
    background: var(--dark);
}

.cta-button {
    position: relative;
    left: auto;
    bottom: auto;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.2s ease;
    box-shadow: 0 8px 24px rgba(255, 20, 147, 0.4);
    z-index: 10;
}

#page-home .hero > .cta-button {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    display: inline-block;
    vertical-align: middle;
    margin-top: 10px;
    margin-bottom: 0;
    z-index: 15;
    max-width: calc(100% - 24px);
    width: max-content;
    min-width: 0;
    box-sizing: border-box;
    white-space: normal;
    line-height: 1.25;
    text-align: center;
    word-break: break-word;
}

/* Каталог: тёмная кнопка, градиентная обводка + свечение; надпись как .logo в шапке */
#page-home .hero > .cta-button.hero-catalog-cta {
    padding: 13px 26px 13px 28px;
    border: 1px solid transparent;
    border-radius: 999px;
    background:
        linear-gradient(#060608, #0c0c10) padding-box,
        linear-gradient(105deg, #e056a8 0%, #b8866f 48%, #dcb978 100%) border-box;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    color: transparent;
    font-size: clamp(12px, 3.5vw, 15px);
    font-weight: 600;
    letter-spacing: clamp(0.07em, 0.35vw, 0.11em);
    text-transform: uppercase;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    text-shadow: none;
    box-shadow:
        0 0 22px rgba(224, 86, 168, 0.38),
        0 0 42px rgba(184, 134, 111, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.hero-catalog-cta__inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: inherit;
}

/* Как у .logo: золото → розовый */
#page-home .hero > .cta-button.hero-catalog-cta .hero-catalog-cta__text,
#page-home .hero > .cta-button.hero-catalog-cta .hero-catalog-cta__icon {
    background: linear-gradient(to right, var(--gold), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-catalog-cta__icon {
    display: inline-block;
    font-size: 0.92em;
    font-weight: 900;
    line-height: 1;
    opacity: 1;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 20, 147, 0.5);
}

#page-home .hero > .cta-button.hero-catalog-cta:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow:
        0 0 30px rgba(224, 86, 168, 0.52),
        0 0 52px rgba(220, 185, 120, 0.28),
        0 10px 28px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

#page-home .hero > .cta-button.hero-catalog-cta:active {
    transform: scale(0.98);
    filter: brightness(0.98);
}

#page-home .hero + .section {
    padding-top: 12px;
}

#page-home .hero + .home-lead + .section {
    padding-top: 10px;
}

.home-lead {
    padding: 4px max(24px, env(safe-area-inset-left, 0px)) 10px;
    padding-right: max(24px, env(safe-area-inset-right, 0px));
}

.home-lead p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.58);
    font-weight: 400;
}

.home-lead strong {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
}

.section {
    padding: 24px;
    padding-left: max(24px, env(safe-area-inset-left, 0px));
    padding-right: max(24px, env(safe-area-inset-right, 0px));
}

.section-title {
    color: var(--gold);
    font-size: 22px;
    margin-bottom: 15px;
}

.liquid-glass-surface,
.card,
.filter-chip,
.icon-btn,
.qv-btn-secondary,
.account-tabs,
.account-panel-header {
    background-image: var(--liquid-bg);
    border: 1px solid var(--liquid-border);
    box-shadow: var(--liquid-shadow);
    backdrop-filter: blur(12px) saturate(125%);
    -webkit-backdrop-filter: blur(12px) saturate(125%);
}

.collection-header {
    padding: 24px;
    padding-left: max(24px, env(safe-area-inset-left, 0px));
    padding-right: max(24px, env(safe-area-inset-right, 0px));
}

.filters {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.filter-chip {
    padding: 10px 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--liquid-border);
    border-radius: 20px;
    color: white;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
    transition: 0.3s;
}

.filter-chip.active {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.85), rgba(255, 105, 180, 0.7));
    border-color: var(--primary);
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
}

/* Только «Оригинал» (CSS Grid): без stretch по высоте ряда — иначе .card-body { flex:1 } раздувает ряд и scroll */
html:not([data-theme='minimal']) main .grid > .card {
    align-self: start;
}
html:not([data-theme='minimal']) main .grid > .card .card-body {
    flex: 0 1 auto;
}

.card {
    background: rgba(22, 22, 28, 0.64);
    border: 1px solid var(--liquid-border);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.32s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.32s cubic-bezier(0.25, 0.1, 0.25, 1), border-color 0.28s ease;
    animation: cardShow 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
    transform: translate3d(0, 10px, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-tap-highlight-color: transparent;
}

.card:nth-child(1) { animation-delay: 0.02s; }
.card:nth-child(2) { animation-delay: 0.04s; }
.card:nth-child(3) { animation-delay: 0.06s; }
.card:nth-child(4) { animation-delay: 0.08s; }
.card:nth-child(5) { animation-delay: 0.1s; }
.card:nth-child(6) { animation-delay: 0.11s; }
.card:nth-child(7) { animation-delay: 0.12s; }
.card:nth-child(8) { animation-delay: 0.13s; }
.card:nth-child(9) { animation-delay: 0.14s; }
.card:nth-child(10) { animation-delay: 0.15s; }

@keyframes cardShow {
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.card:hover {
    transform: translate3d(0, -3px, 0);
    box-shadow: 0 12px 36px rgba(224, 27, 140, 0.22);
    border-color: rgba(255, 105, 180, 0.45);
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
    background: linear-gradient(
        130deg,
        rgba(255, 20, 147, 0.14) 0%,
        rgba(80, 40, 120, 0.1) 38%,
        rgba(255, 215, 0, 0.08) 62%,
        rgba(255, 105, 180, 0.12) 100%
    );
    background-size: 240% 240%;
    animation: visnerCardSheen 9s ease-in-out infinite;
}

@keyframes visnerCardSheen {
    0%, 100% { background-position: 0% 40%; }
    50% { background-position: 100% 60%; }
}

@media (prefers-reduced-motion: reduce) {
    .card::before {
        animation: none;
        opacity: 0.35;
    }
    .card {
        animation: none;
        opacity: 1;
        transform: none;
        transition: box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
    }
    .card:hover {
        transform: none;
    }
    .card-cart-btn:hover,
    .card-cart-btn:active {
        transform: none;
    }
}

.card-media,
.card-body {
    position: relative;
    z-index: 2;
}

.card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    flex-shrink: 0;
    overflow: hidden;
    background: rgba(0,0,0,0.35);
}


.card-body {
    padding: 8px 10px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-height: 0;
}

.card-name {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 0.04em;
    margin: 6px 0 6px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}

/* Цена и наличие в одной строке (как на iOS: слева — цена, справа — статус) */
.card-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
    min-height: 1.5em;
    margin-top: 4px;
    flex-shrink: 0;
}

.card-meta-row .card-price-current {
    flex: 0 1 auto;
    min-width: 0;
    text-align: left;
    line-height: 1.2;
}

.card-meta-row .card-stock-row {
    flex: 0 0 auto;
    margin-top: 0;
    justify-content: flex-end;
    white-space: nowrap;
}

.card-price-current {
    color: #ff2d92;
    font-size: 14px;
    font-weight: 800;
}

.card-stock-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 600;
    margin-top: 4px;
}

.card-stock-row.in-stock { color: #00c853; }
.card-stock-row.in-stock i { color: #00c853; }
.card-stock-row.pre-order { color: #e6b800; }
.card-stock-row.pre-order i { color: #e6b800; }

.card-cart-btn {
    margin-top: auto;
    padding-top: 10px;
    width: 100%;
    border: 1px solid rgba(216, 176, 118, 0.45);
    border-radius: 999px;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #fffaf5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    background: var(--cart-btn-fill);
    box-shadow:
        var(--cart-btn-shadow),
        inset 0 1px 0 rgba(255, 240, 210, 0.28),
        inset 0 -10px 22px rgba(40, 18, 10, 0.22);
    transition: transform 0.28s cubic-bezier(0.25, 0.1, 0.25, 1), filter 0.28s ease, box-shadow 0.28s ease;
}

.card-cart-btn::before,
.pp-btn-cart::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 28%, rgba(255, 245, 222, 0.26) 48%, rgba(255, 255, 255, 0) 68%);
    transform: translateX(-130%);
    transition: transform 0.55s ease;
}

.card-cart-btn:hover {
    filter: brightness(1.08) saturate(1.08);
    transform: translate3d(0, -1px, 0) scale(1.015);
    box-shadow: var(--cart-btn-shadow-hover);
}

.card-cart-btn:active {
    transform: translate3d(0, 0, 0) scale(0.985);
}

.card-cart-btn:hover::before,
.pp-btn-cart:hover::before {
    transform: translateX(130%);
}

.wishlist-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    background: rgba(40, 40, 45, 0.72);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    border: none;
    font-size: 13px;
    transition: 0.3s;
}

.wishlist-icon.active {
    background: var(--primary);
}

.wishlist-icon.wishlist-pop {
    animation: visnerWishPop 0.55s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes visnerWishPop {
    0% { transform: scale(1); }
    35% { transform: scale(1.38); color: #fff; box-shadow: 0 0 0 6px rgba(255, 20, 147, 0.35); }
    60% { transform: scale(1.12); }
    100% { transform: scale(1); box-shadow: none; }
}

.wishlist-icon.wishlist-pop i {
    animation: visnerHeartPulse 0.55s ease;
}

@keyframes visnerHeartPulse {
    0%, 100% { transform: scale(1); }
    40% { transform: scale(1.2); color: #fff; filter: drop-shadow(0 0 8px #ff69b4); }
}

.pp-icon-btn.wishlist-pop {
    animation: visnerWishPop 0.55s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.card-quick-view {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 4;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(40, 40, 45, 0.78);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: background 0.25s ease, transform 0.2s ease, color 0.2s ease;
}

.card-quick-view:hover {
    background: rgba(255, 20, 147, 0.45);
    color: #fff;
    transform: scale(1.06);
}

.visner-skel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.visner-skel-card {
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 100, 200, 0.12);
    min-height: 248px;
    position: relative;
}

.visner-skel-ph {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.visner-skel-line {
    height: 12px;
    margin: 12px 10px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.visner-skel-line.short {
    width: 55%;
    margin-bottom: 14px;
}

.visner-skel-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        transparent 0%,
        rgba(255, 255, 255, 0.09) 45%,
        transparent 90%
    );
    animation: visnerSkelShimmer 1.35s ease-in-out infinite;
}

@keyframes visnerSkelShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.nav-item.cart-nav-bump {
    animation: visnerCartBump 0.5s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes visnerCartBump {
    0% { transform: scale(1); }
    40% { transform: scale(1.18); }
    70% { transform: scale(0.96); }
    100% { transform: scale(1); }
}

.nav-item.cart-nav-bump i {
    animation: visnerCartIconPop 0.5s ease;
}

@keyframes visnerCartIconPop {
    0%, 100% { transform: scale(1); }
    35% { transform: scale(1.25); filter: drop-shadow(0 0 10px var(--secondary)); }
}

.quick-view-content {
    max-width: 360px;
    padding-bottom: 20px;
}

.quick-view-content .qv-img-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    background: rgba(0, 0, 0, 0.3);
    aspect-ratio: 1;
}

.quick-view-content .qv-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 1;
}

.qv-desc {
    font-size: 13px;
    line-height: 1.5;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.55);
}

.qv-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.qv-btn {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.qv-btn:active {
    transform: scale(0.98);
}

.qv-btn-primary {
    background: var(--cart-btn-fill);
    color: #fffaf5;
    box-shadow: var(--cart-btn-shadow);
}

.qv-btn-primary:hover {
    filter: brightness(1.05);
    box-shadow: var(--cart-btn-shadow-hover);
}

.qv-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid var(--liquid-border);
}

/* Браузер: прижать к видимому низу (не PWA standalone — там см. ниже). */
html:not(.visner-android-webview):not(.visner-pwa-standalone) .bottom-nav {
    bottom: calc(-1 * min(var(--visner-vv-inset-bottom, 0px), 72px));
}

/* Safari / WebKit PWA: fill-available только для minimal — иначе «Оригинал» снова с лишним скроллом */
html.visner-pwa-standalone[data-theme='minimal'] {
    height: 100%;
    height: -webkit-fill-available;
}
html.visner-pwa-standalone[data-theme='minimal'] body {
    min-height: 100%;
    min-height: -webkit-fill-available;
}
html.visner-pwa-standalone[data-theme='original']:not(.visner-html-chat-scroll-lock) {
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    overflow: hidden;
}
/* PWA minimal: заполняем окно; original остаётся min-height:0 у .app-wrapper */
html.visner-pwa-standalone[data-theme='minimal'] .app-wrapper {
    min-height: -webkit-fill-available;
}
html.visner-pwa-standalone:not(.visner-android-webview) .bottom-nav {
    bottom: 0;
    padding-bottom: max(10px, var(--visner-bottom-edge-inset));
}

/* Нижняя навигация: см. liquid-tabbar.css (.visner-liquid-nav). Старый flex-бар удалён. */
.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    isolation: isolate;
    z-index: 1000;
    pointer-events: none;
}
.bottom-nav .nav-item {
    pointer-events: auto;
}

@media (prefers-reduced-transparency: reduce) {
    header,
    .visner-liquid-nav__capsule,
    .visner-liquid-nav__fab,
    #page-club .club-header,
    .club-chat-composer {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    header {
        background: rgba(10, 10, 10, 0.96);
    }
}

/* Старые стили вкладок нижней панели — только если не liquid bar */
.bottom-nav:not(.visner-liquid-nav) .nav-item {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    text-align: center;
    font-size: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    cursor: pointer;
    position: relative;
    transition: 0.3s;
}

.bottom-nav:not(.visner-liquid-nav) .nav-item i { font-size: 20px; transition: 0.3s; }
.bottom-nav:not(.visner-liquid-nav) .nav-item.active { color: var(--secondary); }
.bottom-nav:not(.visner-liquid-nav) .nav-item.active i { transform: scale(1.2); filter: drop-shadow(0 0 8px var(--secondary)); }

.club-header {
    background: linear-gradient(180deg, rgba(100, 0, 80, 0.3) 0%, transparent 100%);
    padding: 20px max(24px, env(safe-area-inset-left, 0px)) 20px max(24px, env(safe-area-inset-right, 0px));
    text-align: center;
    position: relative;
}

.club-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(2px 2px at 20px 30px, white, transparent),
                      radial-gradient(2px 2px at 60px 70px, white, transparent),
                      radial-gradient(1px 1px at 50px 50px, white, transparent),
                      radial-gradient(1px 1px at 130px 80px, white, transparent);
    opacity: 0.5;
    pointer-events: none;
}

.club-title {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(to right, var(--secondary), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.club-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin-bottom: 20px;
}

.club-tabs {
    display: flex;
    gap: 4px;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 4px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
}

.club-tab {
    flex: 1;
    padding: 12px 6px;
    background: transparent;
    border: none;
    color: white;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
}
.club-tab-badge {
    display: inline-block;
    margin-left: 4px;
    min-width: 16px;
    padding: 1px 5px;
    border-radius: 9px;
    font-size: 9px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.95);
    color: #8b0d4f;
    vertical-align: middle;
    line-height: 1.25;
}
.club-tab.active .club-tab-badge {
    background: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.club-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.4);
}

.club-tab-content {
    display: none;
    padding: 24px;
    padding-left: max(24px, env(safe-area-inset-left, 0px));
    padding-right: max(24px, env(safe-area-inset-right, 0px));
    padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
}

.club-tab-content.active {
    display: block;
}

/* === SCROLL: minimal — документ (html); original — только main (см. инлайн + блок html[data-theme=original] выше) === */
html {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

html.visner-html-chat-scroll-lock {
    overflow: hidden;
    height: 100dvh;
    max-height: 100dvh;
}

html,
body {
    min-height: 0;
}

body {
    overflow-x: hidden;
}

body.visner-club-common-chat-active {
    overflow: hidden;
    height: 100dvh;
    max-height: 100dvh;
}

.app-wrapper {
    min-height: 0;
    height: auto;
    max-height: none;
    overflow: visible;
}

body.visner-club-common-chat-active .app-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
}

.app-wrapper > header {
    flex: 0 0 auto;
    flex-shrink: 0;
}

.app-main {
    flex: 0 1 auto;
    min-height: 0;
    position: relative;
    z-index: 1;
    overflow-x: hidden;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y pinch-zoom;
    padding-bottom: calc(var(--visner-main-pad-nav, 112px) + var(--visner-bottom-edge-inset));
}

body.visner-club-common-chat-active .app-main {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: hidden;
}

/* Не flex-grow:1 — иначе под контентом остаётся растяжимая пустота над нижней панелью (Chrome). */
.page.active {
    display: flex;
    flex-direction: column;
    flex: 0 1 auto;
    align-self: stretch;
    min-height: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: visible;
    touch-action: pan-y pinch-zoom;
}

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    z-index: 1000;
    pointer-events: auto;
}

.bottom-nav .nav-item {
    pointer-events: auto;
}
