/* Вкладка «Образы»: лента edge-to-edge как в Instagram, запас снизу под FAB */
#tab-gallery.club-tab-content {
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    background: #000;
}

/* Оригинал: под fixed bottom-nav фон клуба (и чёрный «Образы») — см. body.visner-club-shell-active в bootstrap.js */
html[data-theme='original'] body.visner-club-shell-active main.app-main {
    padding-bottom: 0 !important;
}
html[data-theme='original'] body.visner-club-shell-active #page-club.page.active:not(.visner-club-chat-layout-fix) {
    padding-bottom: calc(var(--visner-main-pad-nav, 112px) + var(--visner-bottom-edge-inset));
    box-sizing: border-box;
}
/* Лента: чёрный фон в ту же зону, что и запас под навбар (margin «вбирает» паддинг страницы) */
html[data-theme='original'] body.visner-club-shell-active #page-club.page.active #tab-gallery.club-tab-content.active {
    margin-bottom: calc(-1 * (var(--visner-main-pad-nav, 112px) + var(--visner-bottom-edge-inset)));
    padding-bottom: calc(
        20px + env(safe-area-inset-bottom, 0px) + var(--visner-main-pad-nav, 112px) + var(--visner-bottom-edge-inset)
    );
}

/*
 * «Ответы»: фон доходит под fixed bottom-nav; вкладка flex:1 внутри #page-club (см. base-layout :has(#tab-faq)).
 */
html[data-theme='original'] body:not(.visner-club-common-chat-active)
    #page-club.page.active:not(.visner-club-chat-layout-fix)
    #tab-faq.club-tab-content.active {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin-bottom: calc(-1 * (var(--visner-main-pad-nav, 112px) + var(--visner-bottom-edge-inset)));
    padding-bottom: calc(
        max(24px, env(safe-area-inset-bottom, 0px)) + var(--visner-main-pad-nav, 112px) + var(--visner-bottom-edge-inset)
    );
    background: linear-gradient(168deg, #020206 0%, #06051c 38%, #0b0730 100%);
    box-sizing: border-box;
}
html[data-theme='original'] body:not(.visner-club-common-chat-active)
    #page-club.page.active:not(.visner-club-chat-layout-fix)
    #tab-faq.club-tab-content.active .faq-list {
    flex: 0 0 auto;
}

/* Чат клуба: запас под фиксированный bottom-nav, чтобы кнопка «Отправить» не уезжала под панель */
#tab-chat.club-tab-content {
    position: relative;
    padding-top: 0;
    padding-left: max(0px, env(safe-area-inset-left, 0px));
    padding-right: max(0px, env(safe-area-inset-right, 0px));
    margin-top: 0;
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    z-index: 1;
}
/* JS: syncClubRegisteredUi — нижний padding давал «чёрную полосу» между колонкой чата и fixed-композером */
#tab-chat.club-tab-content.visner-club-chat-logged-in {
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
}

/*
 * Только общий чат VISNER CLUB: visner-club-chat-layout-fix (JS, синхронно с body.visner-club-common-chat-active).
 * :has() убран — ложные матчи на «Спросить»/других вкладках давали height:100% и пустую полку.
 */
main.app-main > #page-club.page.active.visner-club-chat-layout-fix,
#page-club.page.active.visner-club-chat-layout-fix {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 0% !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: none !important;
}

/* Как в minimal-theme: весь main не скроллится + нижний padding убрать (Safari, композер в потоке) */
body.visner-club-common-chat-active main.app-main {
    overflow-y: hidden !important;
    overscroll-behavior-y: none;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
}
body.visner-club-chat-immersive.visner-club-common-chat-active
    #tab-chat.club-tab-content.visner-club-chat-logged-in.active {
    padding-bottom: max(16px, env(safe-area-inset-bottom, 0px)) !important;
}
body.visner-club-common-chat-active:not(.visner-club-chat-immersive)
    #tab-chat.club-tab-content.visner-club-chat-logged-in.active {
    padding-bottom: calc(var(--visner-main-pad-nav, 112px) + env(safe-area-inset-bottom, 0px)) !important;
}

#page-club.page.active.visner-club-chat-layout-fix > .club-header {
    flex: 0 0 auto !important;
}
#page-club.page.active.visner-club-chat-layout-fix > .club-page-lead {
    flex: 0 0 auto !important;
}

#page-club.active #tab-chat.club-tab-content.active {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    flex: 1 1 0% !important;
    flex-grow: 1 !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    align-self: stretch !important;
    position: relative !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
}
/* Табы: sticky сразу под глобальной шапкой (--visner-club-tabs-sticky-top задаётся из JS по высоте header) */
#page-club .club-header {
    position: static;
    background: transparent;
    padding-top: 8px;
    padding-bottom: 10px;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
}
#page-club .club-tabs {
    position: sticky;
    top: var(--visner-club-tabs-sticky-top, calc(env(safe-area-inset-top, 0px) + 58px));
    z-index: 121;
    margin-bottom: 0;
} 
/* Заголовок и слоган — обычный поток: при прокрутке уходят под шапку и под полосу табов */
#page-club .club-page-lead {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 10px max(20px, env(safe-area-inset-left, 0px)) 18px max(20px, env(safe-area-inset-right, 0px));
}
#page-club .club-page-lead .club-title {
    margin: 0 0 8px;
    position: relative;
    z-index: 1;
}
#page-club .club-page-lead .club-subtitle {
    margin: 0;
    position: relative;
    z-index: 1;
}
#page-club .club-header::after {
    display: none;
}

/* Композер чата — fixed и выше bottom-nav (z-index), иначе в превью/WebView тапы всё равно уходят «под» панель. */
#page-club.active #tab-chat.club-tab-content.active #clubChatUser:not(.hidden) .club-chat-composer {
    position: fixed;
    left: 50%;
    /* translateZ: Safari не должен класть fixed-композер под слой предков с overflow/backdrop */
    transform: translate3d(-50%, 0, 0);
    width: calc(100% - clamp(24px, 6vw, 40px));
    max-width: var(--container);
    bottom: calc(clamp(66px, 9.2vh, 86px) + env(safe-area-inset-bottom, 0px));
    padding:
        clamp(6px, 1vh, 10px)
        max(clamp(8px, 3vw, 14px), env(safe-area-inset-right, 0px))
        clamp(8px, 1.4vh, 14px)
        max(clamp(8px, 3vw, 14px), env(safe-area-inset-left, 0px));
    box-sizing: border-box;
    z-index: 1100;
    pointer-events: auto;
    margin-bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 14, 0.72) 28%, rgba(10, 10, 14, 0.9) 100%);
    -webkit-backdrop-filter: blur(8px) saturate(1.15);
    backdrop-filter: blur(8px) saturate(1.15);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.38);
}

/* Оригинальная тема: тоже fixed + z-index > bottom-nav — иначе композер оказывается ВНЕ main stacking context и полностью под панелью. */

#page-club.active #tab-chat.club-tab-content.active #clubChatUser:not(.hidden) .chat-messages,
#page-club.active #tab-chat.club-tab-content.active #clubChatUser:not(.hidden) .visner-messenger__scroll {
    margin-bottom: 0;
    /* Запас = позиция композера над табами + высота поля (~92px), без лишнего 25vh «полотна» */
    padding-bottom: calc(clamp(66px, 9.2vh, 86px) + 92px + env(safe-area-inset-bottom, 0px));
}
#page-club.active.visner-club-chat-layout-fix #tab-chat.club-tab-content.active {
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
}

/* Иначе position:fixed у композера цепляется к .page с transform (minimal theme: animation-fill both) — не к окну. */
#page-club.active.visner-club-chat-layout-fix {
    transform: none !important;
    animation: none !important;
}

/* Общий чат клуба: нижняя навигация скрыта — композер у края экрана вместо полосы табов */
body.visner-club-chat-immersive .bottom-nav {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    overflow: hidden !important;
}
body.visner-club-chat-immersive .app-wrapper {
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
body.visner-club-chat-immersive #page-club.active #tab-chat.club-tab-content.active #clubChatUser:not(.hidden) .club-chat-composer {
    bottom: max(8px, env(safe-area-inset-bottom, 0px));
}
body.visner-club-chat-immersive #page-club.active #tab-chat.club-tab-content.active #clubChatUser:not(.hidden) .chat-messages,
body.visner-club-chat-immersive #page-club.active #tab-chat.club-tab-content.active #clubChatUser:not(.hidden) .visner-messenger__scroll {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}
body.visner-club-chat-immersive #tab-chat.club-tab-content {
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/*
 * Общий чат клуба: у bottom-nav полупрозрачный «liquid» фон + backdrop-blur —
 * тёмная подложка .visner-messenger визуально «проступает» через панель.
 * Непрозрачная подложка + чуть выше z-index (композер чата остаётся 1100).
 */
body.visner-club-common-chat-active .bottom-nav {
    z-index: 1050 !important;
    background-color: rgba(10, 10, 14, 0.94) !important;
    background-image: linear-gradient(
        180deg,
        rgba(22, 18, 32, 0.98) 0%,
        rgba(8, 8, 14, 0.98) 100%
    ) !important;
    backdrop-filter: blur(22px) saturate(1.3) !important;
    -webkit-backdrop-filter: blur(22px) saturate(1.3) !important;
    border-top-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow:
        0 -14px 40px rgba(0, 0, 0, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

html[data-theme='minimal'] body.visner-club-common-chat-active .bottom-nav {
    background-color: rgba(251, 248, 243, 0.96) !important;
    background-image: linear-gradient(
        180deg,
        rgba(255, 253, 249, 0.98) 0%,
        rgba(245, 238, 230, 0.96) 100%
    ) !important;
    border-top-color: rgba(44, 40, 36, 0.12) !important;
    box-shadow:
        0 -14px 36px rgba(44, 40, 36, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
}

/* Личные сообщения: композер в потоке колонки (не fixed внутри панели с transform — иначе «внизу за экраном»). */
#socialDmPanel.is-open #socialDmMessages {
    padding-bottom: calc(12px + var(--visner-bottom-edge-inset));
}
#socialDmPanel.is-open .club-chat-composer {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    max-width: none;
    flex-shrink: 0;
    box-sizing: border-box;
    z-index: 5;
    pointer-events: auto;
    padding:
        clamp(6px, 1vh, 10px)
        max(clamp(8px, 3vw, 14px), env(safe-area-inset-right, 0px))
        max(clamp(8px, 1.4vh, 14px), var(--visner-bottom-edge-inset))
        max(clamp(8px, 3vw, 14px), env(safe-area-inset-left, 0px));
    margin-bottom: 0;
    margin-top: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(8, 8, 10, 0.75) 35%, rgba(8, 8, 10, 0.92) 100%);
    -webkit-backdrop-filter: blur(8px) saturate(1.1);
    backdrop-filter: blur(8px) saturate(1.1);
    box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.35);
}

/* ——— Друзья и сообщения: отдельные страницы page-friends / page-messages (боковое меню) ——— */
.social-page-body {
    padding: 20px max(20px, env(safe-area-inset-left, 0px)) max(88px, env(safe-area-inset-bottom, 0px))
        max(20px, env(safe-area-inset-right, 0px));
}
.social-member-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.social-member-row:last-child {
    border-bottom: none;
}

/* Список диалогов «Сообщения»: удаление свайпом влево (без иконки корзины) */
#socialDmThreads {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#socialDmThreads .social-dm-swipe-wrap.social-member-row {
    /* Не наследовать flex у .social-member-row — на WebView это даёт артефакты с absolute-слоем */
    display: block;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}
.social-dm-swipe-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    background-color: #131318;
}
html[data-theme="minimal"] #socialDmThreads .social-dm-swipe-wrap.social-member-row {
    border-color: rgba(44, 40, 36, 0.12);
    box-shadow: 0 4px 12px rgba(44, 40, 36, 0.08);
}
html[data-theme="minimal"] .social-dm-swipe-wrap {
    background-color: #faf8f4;
}
.social-dm-swipe-actions {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 96px;
    z-index: 0;
    pointer-events: none;
    background-color: #c62828;
    transition: visibility 0s linear 0.15s, opacity 0.12s ease;
}
.social-dm-swipe-wrap:not(.social-dm-swipe-wrap--actions-visible) .social-dm-swipe-actions {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 0s, opacity 0.08s ease;
}
.social-dm-swipe-wrap.social-dm-swipe-wrap--actions-visible .social-dm-swipe-actions {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s linear 0s, opacity 0.12s ease;
}
.social-dm-swipe-actions .social-dm-swipe-delete-btn {
    pointer-events: none;
}
.social-dm-swipe-wrap.social-dm-swipe-wrap--actions-visible .social-dm-swipe-delete-btn {
    pointer-events: auto;
}
.social-dm-swipe-delete-btn {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0 10px;
    border: none;
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    -webkit-tap-highlight-color: transparent;
}
.social-dm-swipe-delete-btn:active {
    filter: brightness(1.08);
}
.social-dm-swipe-front {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 60px;
    padding: 10px 12px;
    box-sizing: border-box;
    background-color: #131318;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}
.social-dm-swipe-front.social-dm-swipe-front--drag {
    transition: none;
}
.social-dm-swipe-open {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
html[data-theme="minimal"] .social-dm-swipe-front {
    background-color: #faf8f4;
}
html[data-theme="minimal"] .social-member-avatar {
    border-color: rgba(44, 40, 36, 0.16);
    background: rgba(220, 210, 198, 0.45);
}
html[data-theme="minimal"] .social-member-avatar--fallback {
    color: rgba(44, 40, 36, 0.88);
    background: linear-gradient(145deg, rgba(238, 230, 220, 0.95), rgba(223, 210, 194, 0.92));
}

.social-member-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.12);
    opacity: 1 !important;
    visibility: visible !important;
}
.social-member-avatar--fallback {
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 15px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.94);
    background: linear-gradient(145deg, rgba(68, 71, 86, 0.95), rgba(43, 46, 58, 0.95));
}
.social-member-meta {
    flex: 1;
    min-width: 0;
}
.social-member-name {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 2px;
}
.social-member-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}
.social-member-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}
.social-member-actions .pp-mini-btn {
    font-size: 11px;
    padding: 6px 10px;
    white-space: nowrap;
}
.social-dm-panel .account-panel-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding-bottom: 12px;
}
#socialDmMessages {
    flex: 1;
    overflow-y: auto;
    min-height: 120px;
    max-height: none;
    margin-bottom: 10px;
}
.social-privacy-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}
.social-privacy-row label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
}
.social-privacy-row select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 14px;
}
.social-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.45;
    margin: 0 0 16px;
}

.quick-contact-icons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.quick-social-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--border);
    font-size: 22px;
    text-decoration: none;
    transition: 0.25s;
}

.quick-social-icon:hover {
    filter: brightness(1.08);
    transform: scale(1.06);
    border-color: rgba(255, 255, 255, 0.35);
}

.quick-social-icon i {
    color: inherit;
}

.quick-social-icon.tg {
    color: #fff;
    background: linear-gradient(145deg, #34b6f0, #1d8fd4);
    border-color: rgba(52, 182, 240, 0.45);
}
.quick-social-icon.vk {
    color: #fff;
    background: linear-gradient(145deg, #4d8bf5, #0d65d9);
    border-color: rgba(13, 101, 217, 0.4);
}
.quick-social-icon.mail {
    color: #fff;
    background: linear-gradient(145deg, #f06b6b, #d93025);
    border-color: rgba(234, 67, 53, 0.45);
}
.quick-social-icon.ok {
    color: #fff;
    background: linear-gradient(145deg, #f59a2d, #e07000);
    border-color: rgba(238, 130, 8, 0.45);
}

.quick-social-icon.maxm {
    padding: 3px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.18);
}
.quick-social-icon.maxm img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 16px;
    background: transparent;
    border: none;
    color: white;
    text-align: left;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: 0.3s;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.5;
}

.faq-item.open .faq-answer {
    padding: 0 16px 16px;
    max-height: 200px;
}

#tab-ask .faq-item.open .faq-answer {
    max-height: 320px;
}

.ask-quick-list {
    margin-bottom: 16px;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(4, 3, 8, 0.55);
    backdrop-filter: blur(28px) saturate(1.35);
    -webkit-backdrop-filter: blur(28px) saturate(1.35);
    /* Выше личного кабинета (3200) и карточки товара (2600), иначе модалки не видны */
    z-index: 4000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.32s ease;
    padding: 20px;
}

.modal.open { 
    display: flex; 
    opacity: 1; 
}

.modal-content {
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    background-color: rgba(14, 14, 20, 0.52);
    background-image: var(--liquid-bg);
    border-radius: 20px;
    border: 1px solid var(--liquid-border);
    overflow-y: auto;
    position: relative;
    padding: 24px;
    animation: slideUp 0.3s ease;
    z-index: 4001;
    box-shadow: var(--liquid-shadow), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    backdrop-filter: blur(26px) saturate(1.42);
    -webkit-backdrop-filter: blur(26px) saturate(1.42);
}

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

/* ——— Страница товара (полноэкран) ——— */
#productPage {
    color: rgba(255, 255, 255, 0.9);
}
.product-page {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100%;
    max-width: var(--container);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    box-sizing: border-box;
    transform: translateX(-50%) translateX(105%);
    z-index: 2600;
    background:
        radial-gradient(100% 60% at 50% 0%, rgba(255, 20, 147, 0.06), transparent 50%),
        linear-gradient(180deg, #050508 0%, #08070a 45%, #040304 100%);
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.52s cubic-bezier(0.22, 0.99, 0.28, 1), opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: -12px 0 48px rgba(0, 0, 0, 0.5);
}

.product-page.is-open {
    transform: translateX(-50%) translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.product-page-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px 12px;
    padding-top: max(8px, env(safe-area-inset-top));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(6, 5, 8, 0.58);
    backdrop-filter: blur(28px) saturate(1.45);
    -webkit-backdrop-filter: blur(28px) saturate(1.45);
    flex-shrink: 0;
    z-index: 6;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.pp-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

#productPage .product-page-header .pp-icon-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.42);
    background: transparent;
    border: none;
}
#productPage .product-page-header .pp-icon-btn:hover {
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.06);
}
#productPage .product-page-header .pp-icon-btn:active {
    transform: scale(0.94);
}
#productPage .product-page-header .pp-icon-btn.active {
    color: #ff7eb3;
    background: rgba(255, 20, 147, 0.12);
    border-color: rgba(255, 20, 147, 0.35);
}
#productPage .product-page-header .pp-back-btn {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
}
#productPage .product-page-header .pp-back-btn .pp-back-svg {
    display: block;
    width: 20px;
    height: 20px;
}

.pp-icon-btn:active {
    transform: scale(0.94);
}

.pp-icon-btn.active {
    color: #ff1493;
    background: rgba(255, 20, 147, 0.15);
}

.pp-title {
    flex: 1;
    margin: 0 4px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.25;
    color: #f5f5f5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

#productPage .pp-title {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-size: clamp(16px, 4.2vw, 19px);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: none;
    color: rgba(255, 250, 248, 0.92);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

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

.product-page-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    scroll-behavior: auto;
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
}

.pp-gallery {
    padding: 0 16px 12px;
    background: transparent;
}

/* Появление галереи: только opacity — transform на родителе ломал плавность свайпа (двойной transform с #ppHeroStack). */
.product-page .pp-gallery {
    opacity: 0;
    transform: none;
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-page.is-open .pp-gallery {
    opacity: 1;
    transform: none;
    transition-delay: 0.04s;
}

html[data-theme="minimal"] .product-page .pp-gallery {
    transition: opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
html[data-theme="minimal"] .product-page.is-open .pp-gallery {
    transition-delay: 0.03s;
}

.pp-gallery-touch {
    position: relative;
    aspect-ratio: 3 / 4;
    max-height: min(78vh, 560px);
    margin: 0 auto;
    display: block;
    cursor: default;
    touch-action: pan-y;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(165deg, #141218 0%, #0a090c 42%, #121016 100%);
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.55);
    isolation: isolate;
    /* paint containment + filter на слоях давали рывки при translate во время свайпа */
    contain: layout;
    -webkit-tap-highlight-color: transparent;
}
/* Лёгкий «liquid glass»: блик и кромка без тяжёлого blur на всём фото */
.pp-gallery-touch::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.04) 28%,
        transparent 52%,
        transparent 62%,
        rgba(255, 20, 147, 0.06) 100%
    );
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.pp-gallery-touch::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    border-radius: inherit;
    background:
        radial-gradient(ellipse 85% 70% at 50% 50%, transparent 35%, rgba(4, 3, 6, 0.55) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, transparent 40%, rgba(0, 0, 0, 0.45) 100%);
}
.pp-gallery-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    border-radius: inherit;
}
.pp-gallery-overlay .pp-dots--on-image {
    pointer-events: auto;
}
.pp-gallery-counter {
    position: absolute;
    right: 14px;
    bottom: 44px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
}
.pp-hero-stack {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

#ppHeroStack.pp-pan-active {
    transition: none !important;
    will-change: transform;
}

#productPage #ppHeroStack.pp-pan-active .pp-hero-layer {
    filter: none;
    transition: none;
}

.pp-hero-layer {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: min(72vh, 520px);
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    opacity: 0;
    transition: opacity 0.26s cubic-bezier(0.25, 0.1, 0.25, 1);
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

#productPage .pp-hero-layer {
    left: 0;
    top: 0;
    transform: translate3d(0, 0, 0);
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center 22%;
    filter: brightness(0.93) contrast(1.05) saturate(0.94);
}

.pp-hero-layer.is-visible {
    opacity: 1;
    z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
    .pp-hero-layer {
        transition: none;
    }
    .product-page .pp-gallery {
        opacity: 1;
        transform: none;
        transition: none;
    }
    #ppHeroStack.pp-pan-active {
        will-change: auto;
    }
}

.pp-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    padding: 14px 0 20px;
}
.pp-dots--on-image {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 30px;
    padding: 0 12px;
    margin: 0;
}

.pp-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, width 0.25s ease, box-shadow 0.25s ease;
}

.pp-dot.active {
    background: linear-gradient(90deg, #ffb7d5, #ff1493 55%, #ff5fa8);
    transform: scale(1.08);
    width: 24px;
    border-radius: 999px;
    box-shadow: none;
}

.pp-price-block {
    padding: 22px 22px 8px;
    margin: 0 4px;
    animation: ppFadeUp 0.45s ease 0.05s both;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}
.pp-price-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}
.pp-price-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}
.pp-discount-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #fff;
    background: linear-gradient(135deg, #ff5fa8, #ff1493);
    border: none;
    box-shadow: none;
}
.pp-value-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    padding-top: 2px;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}
.pp-value-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.05);
    border: none;
}
.pp-value-chip i {
    font-size: 12px;
    color: rgba(255, 143, 190, 0.9);
}
.pp-value-chip--accent {
    color: rgba(255, 250, 252, 0.92);
    background: rgba(255, 20, 147, 0.14);
    border: none;
    box-shadow: none;
}
.pp-value-chip--accent i {
    color: #ffb6d9;
}
.pp-availability-line {
    margin: 14px 0 0;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.52);
    line-height: 1.45;
}
.pp-availability-line--warn {
    color: rgba(255, 200, 120, 0.88);
}
.pp-qty-pill {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.06);
    border: none;
    margin-top: 4px;
}
.pp-qty-pill i {
    font-size: 13px;
    color: rgba(255, 160, 200, 0.95);
    opacity: 0.95;
}
.pp-usp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 16px 22px 28px;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}
.pp-usp-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    padding: 14px 12px 16px;
    border-radius: 14px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.06em;
    text-align: left;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.035);
    border: none;
    transition: background 0.25s ease, color 0.25s ease;
}
.pp-usp-cell i {
    flex-shrink: 0;
    font-size: 17px;
    color: rgba(255, 105, 180, 0.88);
    transition: color 0.25s ease;
}
@media (hover: hover) and (pointer: fine) {
    .pp-usp-cell:hover {
        background: rgba(255, 255, 255, 0.055);
        color: rgba(255, 255, 255, 0.72);
    }
    .pp-usp-cell:hover i {
        color: rgba(255, 143, 190, 0.95);
    }
}
.pp-price-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}
.pp-price {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-size: clamp(34px, 9.5vw, 44px);
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    color: #fff;
    background: none;
    -webkit-text-fill-color: #fff;
    filter: none;
}
.pp-price-old {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.32);
    text-decoration: line-through;
    text-decoration-thickness: 1px;
    font-family: 'Outfit', 'Montserrat', sans-serif;
}

.pp-section-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.4);
    margin: 16px 0 10px 20px;
}
.pp-section-label--row {
    margin: 0;
    flex-shrink: 0;
}
.pp-variant-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 20px 8px;
}
.pp-variant-sub {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.45);
    text-align: right;
}

.pp-variant-scroll.pp-variant-scroll--row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 0 20px 10px;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.pp-variant-scroll::-webkit-scrollbar {
    display: none;
}

.pp-variant-scroll.pp-variant-scroll--row .pp-variant-item {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    aspect-ratio: 1;
    border-radius: 12px;
}

.pp-variant-item {
    position: relative;
    overflow: hidden;
    border: none;
    padding: 0;
    cursor: pointer;
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.05);
    transition: opacity 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    opacity: 0.62;
    box-shadow: none;
}

.pp-variant-item.selected {
    opacity: 1;
    transform: scale(1.02);
    box-shadow:
        0 0 0 2px rgba(255, 20, 147, 0.75),
        0 0 16px rgba(255, 20, 147, 0.22);
}

.pp-variant-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    display: block;
    filter: brightness(0.9) contrast(1.04) saturate(0.92);
}
.pp-variant-item.selected img {
    filter: brightness(0.96) contrast(1.05) saturate(0.96);
}
.pp-variant-check {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #fff;
    background: rgba(255, 20, 147, 0.92);
    box-shadow: none;
    z-index: 2;
}
.pp-variant-item.selected .pp-variant-check {
    display: flex;
}
.pp-variant-check i {
    font-size: 8px;
}

.pp-rate-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 6px;
}

.pp-stock-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 10px 16px 18px;
    animation: ppFadeUp 0.5s ease 0.12s both;
}
.pp-stock-pill {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 10px;
    line-height: 1.25;
    letter-spacing: 0.02em;
    text-align: center;
    border: none;
    background: rgba(255, 255, 255, 0.045);
    color: rgba(255, 255, 255, 0.82);
}
.pp-stock-pill i {
    flex-shrink: 0;
    font-size: 14px;
}
.pp-stock-pill span {
    display: block;
    max-width: 100%;
    word-break: break-word;
    hyphens: auto;
}
.pp-stock-pill--ok {
    background: rgba(46, 204, 113, 0.14);
    color: #5ee9a8;
    border-color: rgba(46, 204, 113, 0.35);
}
.pp-stock-pill--ok i {
    color: #2ecc71;
}
.pp-stock-pill--warn {
    background: rgba(241, 196, 15, 0.1);
    color: #f4d03f;
    border-color: rgba(241, 196, 15, 0.28);
}
.pp-stock-pill--muted i {
    color: rgba(255, 255, 255, 0.42);
}
.pp-stock-row--trust {
    margin-top: 4px;
}
.pp-stock-pill--trust {
    background: rgba(255, 255, 255, 0.04);
    border: none;
    color: rgba(255, 255, 255, 0.78);
}
.pp-stock-pill--trust i {
    color: rgba(255, 143, 190, 0.95);
}

/* Детали PDP: два одинаковых ряда прямоугольных плиток + раскрытие по клику */
.pp-detail-tiles-mount {
    padding: 0;
}
.pp-detail-tiles-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 0 12px;
}
.pp-detail-tiles-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.pp-detail-tile {
    appearance: none;
    margin: 0;
    cursor: pointer;
    text-align: center;
    font: inherit;
    min-height: 96px;
    padding: 12px 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.045);
    color: rgba(255, 255, 255, 0.82);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}
.pp-detail-tile i {
    flex-shrink: 0;
    font-size: 16px;
    color: rgba(255, 143, 190, 0.95);
}
.pp-detail-tile-label {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    max-width: 100%;
    word-break: break-word;
}
@media (hover: hover) and (pointer: fine) {
    .pp-detail-tile:hover {
        background: rgba(255, 255, 255, 0.07);
        border-color: rgba(255, 143, 190, 0.25);
    }
}
.pp-detail-tile:focus-visible {
    outline: 2px solid rgba(255, 143, 190, 0.65);
    outline-offset: 2px;
}
.pp-detail-tile.is-active {
    background: rgba(255, 105, 180, 0.1);
    border-color: rgba(255, 143, 190, 0.45);
    color: #fff;
}
.pp-detail-tile-expand {
    margin: 0 0 16px;
    padding: 14px 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.28);
    animation: ppFadeUp 0.35s ease both;
}
.pp-detail-tile-expand.hidden {
    display: none;
}
/* Полноэкранный скрим + компактная карточка по центру (высота по контенту, без «чёрной полосы» снизу) */
.pp-detail-tile-expand--overlay-open {
    position: fixed;
    inset: 0;
    z-index: 140;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: max(12px, env(safe-area-inset-top, 0px)) 14px max(20px, env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    border: none !important;
    border-radius: 0 !important;
    box-sizing: border-box;
    background: rgba(5, 4, 8, 0.52);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: none;
}
.pp-detail-tile-expand--overlay-open .pp-detail-tile-expand-inner {
    width: 100%;
    max-width: 720px;
    flex: 0 0 auto;
    align-self: center;
    padding: 12px 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 8, 14, 0.96);
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.45);
    box-sizing: border-box;
}
.pp-detail-tile-expand-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.pp-detail-tile-expand-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.35;
    color: #fff;
    flex: 1;
    min-width: 0;
}
.pp-detail-tile-expand-close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.2s ease;
}
.pp-detail-tile-expand-close:hover {
    background: rgba(255, 255, 255, 0.1);
}
.pp-detail-tile-expand-body {
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
}
.pp-detail-tile-expand-p {
    margin: 0 0 10px;
}
.pp-detail-tile-expand-p:last-child {
    margin-bottom: 0;
}

.pp-usp-illustration {
    margin: 14px 0 0;
    border-radius: 10px;
    overflow: hidden;
    line-height: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.pp-usp-illustration__img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    vertical-align: middle;
}
.pp-usp-illustration__img--light {
    display: none;
}
html[data-theme="minimal"] .pp-usp-illustration__img--dark {
    display: none;
}
html[data-theme="minimal"] .pp-usp-illustration__img--light {
    display: block;
}

.pp-variants-block {
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    margin-top: 4px;
}

.pp-desc-block {
    padding: 8px 22px calc(148px + env(safe-area-inset-bottom, 0px));
    animation: ppFadeUp 0.55s ease 0.15s both;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}
.pp-desc-block--panel {
    padding: 16px 0 24px;
    animation: none;
}

.pp-desc-title {
    font-size: 21px;
    font-weight: 600;
    margin: 0 0 12px;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.96);
    background: none;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.96);
    filter: none;
}
#productPage .pp-desc-title {
    color: rgba(255, 255, 255, 0.96);
    background: none;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.96);
}

.pp-desc-text {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
    font-size: 14px;
}

.pp-desc-lead {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.55;
    font-size: 15px;
    font-weight: 500;
}

.pp-desc-lead.hidden {
    display: none;
}

.pp-desc-full-wrap {
    margin: 0 0 20px;
}

.pp-desc-full-wrap.hidden {
    display: none;
}

.pp-desc-full-label {
    margin-bottom: 8px;
}

.pp-desc-text--full {
    margin: 0;
    white-space: pre-wrap;
    color: rgba(255, 255, 255, 0.52);
    font-weight: 400;
}

.pp-specs-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0 12px;
}

.pp-specs {
    list-style: none;
    margin: 0;
    padding: 0;
    border-radius: 0;
    overflow: visible;
    border: none;
}

.pp-specs li {
    padding: 14px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pp-specs li:last-child {
    border-bottom: none;
}

.pp-specs li::before {
    content: none;
}

.pp-spec-label {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
}

.pp-spec-value {
    text-align: right;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.4;
    max-width: 62%;
}

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

/* VISNER CLUB: премиальный фон страницы + glass-карточка лида + неон у сегментов */
#page-club.page {
    background: linear-gradient(168deg, #020206 0%, #06051c 38%, #0b0730 100%);
    position: relative;
    padding-bottom: 0;
}
#page-club.page::after {
    content: '';
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}
#page-club.page > * {
    position: relative;
    z-index: 1;
}

.club-page-lead--neon {
    margin: 6px auto 10px auto;
    padding: 0;
    width: min(100%, 82vw);
    max-width: 560px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
    -webkit-backdrop-filter: blur(26px) saturate(1.35);
    backdrop-filter: blur(26px) saturate(1.35);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 32px rgba(160, 80, 255, 0.12);
}
.club-page-lead__glass-inner {
    padding: 10px 12px 12px;
    text-align: center;
}
.club-title--neon-xl {
    font-size: clamp(20px, 4.6vw, 26px);
    font-weight: 800;
    letter-spacing: 0.05em;
    margin: 0 0 6px;
    background: linear-gradient(105deg, #ffe8a8 0%, #ff69b4 38%, #c9a6ff 72%, #ffb347 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.club-subtitle--neon {
    margin: 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0.02em;
}

#page-club .club-tab.active {
    background: linear-gradient(135deg, rgba(255, 95, 180, 0.75) 0%, rgba(150, 85, 255, 0.72) 48%, rgba(255, 155, 95, 0.55) 100%);
    color: #fff;
    box-shadow:
        0 0 24px rgba(255, 110, 200, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    font-weight: 700;
}

/* === Club chat: как в minimal — колонка на flex (fixed-композер вне потока), без absolute-«матрёшки» === */
#page-club.active #tab-chat.club-tab-content.active #clubChatUser:not(.hidden) {
    position: relative !important;
    flex: 1 1 0% !important;
    min-height: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    align-self: stretch !important;
    box-sizing: border-box !important;
}

#page-club.active #tab-chat.club-tab-content.active #clubChatUser:not(.hidden) .visner-messenger {
    position: relative !important;
    flex: 1 1 0% !important;
    min-height: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
}

#page-club.active #tab-chat.club-tab-content.active #clubChatUser:not(.hidden) .visner-messenger__messages-wrap {
    flex: 1 1 0% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

#page-club.active #tab-chat.club-tab-content.active #clubChatMessages.chat-messages {
    flex: 1 1 0% !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-y: contain !important;
    touch-action: pan-y !important;
    padding-bottom: calc(clamp(66px, 9.2vh, 86px) + 92px + env(safe-area-inset-bottom, 0px)) !important;
}

body.visner-club-chat-immersive #page-club.active #tab-chat.club-tab-content.active #clubChatUser:not(.hidden) #clubChatMessages.chat-messages {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
}

/* VISNER look detail final polish: original theme */
#lookImageModal.modal.open {
    display: flex !important;
    align-items: stretch !important;
    justify-content: center !important;
    padding: 0 !important;
    background: rgba(0,0,0,.72) !important;
}
#lookImageModal .look-image-modal-content {
    width: min(100vw, 430px) !important;
    max-width: 430px !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    background: #0d1118 !important;
    box-shadow: 0 0 34px rgba(255, 61, 196, .13), 0 0 1px rgba(255,255,255,.08) !important;
    animation: visnerLookIn .24s cubic-bezier(.2,.8,.2,1) both;
}
#lookImageModal.is-closing .look-image-modal-content { animation: visnerLookOut .18s ease both; }
@keyframes visnerLookIn { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes visnerLookOut { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(16px) scale(.985); } }
#lookImageModal .look-detail-topbar {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    height: calc(54px + env(safe-area-inset-top, 0px)) !important;
    padding: env(safe-area-inset-top, 0px) 14px 0 !important;
    display: grid !important;
    grid-template-columns: 42px 1fr 42px !important;
    align-items: center !important;
    background: #0d1118 !important;
    z-index: 30 !important;
}
#lookImageModal .look-detail-top-title {
    position: static !important;
    transform: none !important;
    text-align: center !important;
    letter-spacing: .38em !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    color: rgba(255,255,255,.9) !important;
}
#lookImageModal .look-detail-top-btn {
    width: 38px !important;
    height: 38px !important;
    border-radius: 999px !important;
    border: 0 !important;
    background: rgba(255,255,255,.06) !important;
    color: rgba(255,255,255,.92) !important;
    box-shadow: none !important;
    backdrop-filter: blur(12px) !important;
}
#lookImageModal .look-detail-scroll {
    height: calc(100dvh - 54px - env(safe-area-inset-top, 0px)) !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 0 0 calc(30px + env(safe-area-inset-bottom, 0px)) !important;
    background: #111722 !important;
    scrollbar-width: none !important;
}
#lookImageModal .look-detail-scroll::-webkit-scrollbar { display: none !important; }
#lookImageModal .look-detail-hero {
    position: relative !important;
    width: 100% !important;
    height: min(48vh, 440px) !important;
    min-height: 310px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    background: #090b10 !important;
}
#lookImageModal .look-detail-hero img#lookImageModalImg {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    border-radius: 0 !important;
}
#lookImageModal .look-detail-actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 14px 4px !important;
    background: #111722 !important;
    border: 0 !important;
    margin: 0 !important;
}
#lookImageModal .look-detail-action {
    min-width: 0 !important;
    height: 34px !important;
    padding: 0 10px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: rgba(255,255,255,.92) !important;
    font: 700 15px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif !important;
    box-shadow: none !important;
}
#lookImageModal .look-detail-action i { font-size: 24px !important; }
#lookImageModal .look-detail-save { margin-left: auto !important; }
#lookImageModal .look-detail-info {
    padding: 8px 16px 22px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: #111722 !important;
    color: #fff !important;
}
#lookImageModal .look-detail-author-row { margin-bottom: 10px !important; }
#lookImageModal .look-detail-title {
    margin: 0 0 7px !important;
    font: 800 16px/1.28 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif !important;
    letter-spacing: -.01em !important;
    color: rgba(255,255,255,.96) !important;
}
#lookImageModal .look-detail-description {
    margin: 0 !important;
    color: rgba(255,255,255,.88) !important;
    font: 500 14px/1.38 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 4 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}
#lookImageModal.look-detail-expanded .look-detail-description,
#lookImageModal .look-detail-description.is-expanded {
    display: block !important;
    -webkit-line-clamp: unset !important;
    overflow: visible !important;
}
#lookImageModal .look-detail-readmore {
    display: inline-flex;
    margin: 5px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: rgba(255,255,255,.58) !important;
    font: 600 14px/1.3 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif !important;
}
#lookImageModal .look-detail-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-top: 12px !important;
    color: #ff5bd7 !important;
    font: 700 13px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif !important;
}
#lookImageModal .look-detail-tags span { opacity: .9 !important; }
.club-look-comments-panel {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;
    display: none !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: center !important;
    padding: 0 10px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    background: rgba(0,0,0,.55) !important;
    backdrop-filter: blur(10px) !important;
}
.club-look-comments-panel.is-open { display: flex !important; animation: visnerCommentsFade .18s ease both; }
@keyframes visnerCommentsFade { from { opacity: 0; } to { opacity: 1; } }
.club-look-comments-panel .account-panel-header,
.club-look-comments-panel .account-panel-body {
    width: min(100%, 430px) !important;
    max-width: 430px !important;
    background: #141a24 !important;
    color: #fff !important;
}
.club-look-comments-panel .account-panel-header {
    border-radius: 22px 22px 0 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
    animation: visnerCommentsUp .22s cubic-bezier(.2,.8,.2,1) both;
}
.club-look-comments-panel .account-panel-body {
    height: min(66dvh, 560px) !important;
    border-radius: 0 0 22px 22px !important;
    padding-bottom: 12px !important;
    animation: visnerCommentsUp .22s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes visnerCommentsUp { from { transform: translateY(26px); } to { transform: translateY(0); } }

/* VISNER fix: comments modal must open centered, not as side account panel */
body .account-panel.club-look-comments-panel,
body .account-panel.club-look-comments-panel.is-open {
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    max-width: none !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 10px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    box-sizing: border-box !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: center !important;
    background: rgba(0,0,0,.56) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: none !important;
}
body .account-panel.club-look-comments-panel {
    display: flex !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}
body .account-panel.club-look-comments-panel.is-open {
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
    z-index: 99999 !important;
}
body .account-panel.club-look-comments-panel .account-panel-header,
body .account-panel.club-look-comments-panel .account-panel-body {
    width: min(100%, 430px) !important;
    max-width: 430px !important;
    box-sizing: border-box !important;
    transform: none !important;
}
body .account-panel.club-look-comments-panel.is-open .account-panel-header,
body .account-panel.club-look-comments-panel.is-open .account-panel-body {
    animation: visnerCommentsUp .22s cubic-bezier(.2,.8,.2,1) both !important;
}

/* VISNER detail-only polish: seamless reactions, heart feedback, newest-first safe styles */
#lookImageModal .look-detail-actions {
    background: #111722 !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 8px 14px 2px !important;
    margin: 0 !important;
}
#lookImageModal .look-detail-info {
    background: #111722 !important;
    padding-top: 10px !important;
    border-top: 0 !important;
    box-shadow: none !important;
}
#lookImageModal .look-detail-action {
    background: transparent !important;
    box-shadow: none !important;
}
#lookImageModal .look-detail-action.is-on,
#lookImageModal .look-detail-action.is-on i,
.club-look-grid-foot-btn.is-on,
.club-look-grid-foot-btn.is-on i {
    color: #ff5bd7 !important;
    text-shadow: 0 0 14px rgba(255, 91, 215, .42) !important;
}
#lookImageModal .look-detail-action.visner-heart-pop i,
.club-look-grid-foot-btn.visner-heart-pop i {
    animation: visnerHeartPop .52s cubic-bezier(.18,.88,.28,1.24) both !important;
    transform-origin: center !important;
}
#lookImageModal .look-detail-action.visner-heart-pop,
.club-look-grid-foot-btn.visner-heart-pop {
    animation: visnerHeartButtonNudge .52s cubic-bezier(.18,.88,.28,1.24) both !important;
}
@keyframes visnerHeartPop {
    0% { transform: scale(1) translateY(0) rotate(0deg); }
    18% { transform: scale(1.34) translateY(-5px) rotate(-8deg); }
    34% { transform: scale(1.12) translateY(0) rotate(7deg); }
    52% { transform: scale(1.24) translateY(-3px) rotate(-4deg); }
    74% { transform: scale(.96) translateY(0) rotate(2deg); }
    100% { transform: scale(1) translateY(0) rotate(0deg); }
}
@keyframes visnerHeartButtonNudge {
    0%,100% { transform: translateY(0); }
    28% { transform: translateY(-3px); }
    56% { transform: translateY(1px); }
}

/* VISNER FINAL HOTFIX: original opened look reactions spacing + seamless row */
#lookImageModal .look-detail-actions {
    background: #111722 !important;
    background-image: none !important;
    border: 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    padding: 10px 18px 6px !important;
    margin: 0 !important;
    gap: 18px !important;
}
#lookImageModal .look-detail-info {
    background: #111722 !important;
    border: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding-top: 10px !important;
}
#lookImageModal .look-detail-action {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 4px !important;
}
#lookImageModal .look-detail-action:first-child {
    margin-left: 0 !important;
}
#lookImageModal .look-detail-save {
    margin-left: auto !important;
    margin-right: 0 !important;
}

/* VISNER carousel publish hotfix: real multi-photo previews */
.club-look-preview-grid {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin-top: 12px;
}
.club-look-preview-grid.show { display: grid; }
.club-look-preview-item {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
  background-size: cover;
  background-position: center;
  background-color: rgba(255,255,255,.06);
  padding: 0;
  cursor: pointer;
}
.club-look-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.club-look-preview-item span {
  position: absolute;
  right: 6px;
  top: 6px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  background: rgba(0,0,0,.62);
  box-shadow: 0 0 12px rgba(0,0,0,.25);
}
.club-look-publish-btn:disabled { opacity: .62; pointer-events: none; }


/* VISNER smoothness + collections + offline hotfix */
html { scroll-behavior: smooth; }
body, .page, .account-panel, .modal-content, .card, .acc-look-card, .club-look-grid-media, .look-image-modal-content { -webkit-font-smoothing: antialiased; }
.card, .product-page, .account-panel, .modal-content, .acc-look-card, .acc-order-card, .club-look-carousel, .look-detail-hero, .look-detail-actions, .bottom-nav, .navbar, button {
  transition: transform .22s cubic-bezier(.2,.8,.2,1), opacity .22s ease, background-color .22s ease, border-color .22s ease, box-shadow .22s ease, color .22s ease;
}
.card-gallery-view, .card-media, .product-gallery, #ppGalleryTouch, #ppHeroStack, .club-look-carousel, .look-detail-hero { touch-action: pan-y pinch-zoom; overscroll-behavior: contain; }
.club-look-carousel-track { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; scroll-behavior:smooth; -webkit-overflow-scrolling:touch; scrollbar-width:none; overscroll-behavior-x:contain; }
.club-look-carousel-track::-webkit-scrollbar { display:none; }
.club-look-carousel-track img { flex:0 0 100%; width:100%; scroll-snap-align:center; transform:translateZ(0); backface-visibility:hidden; }
#ppHeroStack, #ppHeroStack img, #lookImageModalImg, .card-gallery-main-img { transform: translateZ(0); backface-visibility:hidden; will-change: transform; }
.visner-offline-catalog { grid-column:1/-1; min-height:260px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:10px; padding:28px 20px; border:1px dashed rgba(255,255,255,.18); border-radius:24px; background:rgba(18,20,28,.55); color:rgba(255,255,255,.88); }
.visner-offline-catalog .visner-offline-face { font-size:42px; line-height:1; filter:drop-shadow(0 10px 24px rgba(255,74,194,.22)); }
.visner-offline-catalog strong { font-size:20px; }
.visner-offline-catalog p { max-width:320px; margin:0; font-size:14px; line-height:1.35; color:rgba(255,255,255,.62); }
.account-tab[data-acc="collections"] i, .acc-cabinet-stat .fa-bookmark, .look-detail-save.is-saved, .club-look-grid-foot-btn--bookmark.is-saved { color:#ff4ad2; }
.acc-cabinet-stats { grid-template-columns: repeat(4, minmax(0,1fr)); }
.acc-collections-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:12px; padding:8px 0 18px; }
.acc-section-title { display:flex; align-items:center; gap:10px; font-weight:900; font-size:18px; margin:8px 0 14px; color:#ff4ad2; text-transform:uppercase; letter-spacing:.04em; }
.acc-collection-card { appearance:none; border:1px solid rgba(255,74,210,.22); background:rgba(16,20,30,.68); border-radius:18px; padding:8px; color:inherit; text-align:left; overflow:hidden; box-shadow:0 10px 24px rgba(0,0,0,.18); }
.acc-collection-card:active { transform:scale(.98); }
.acc-collection-media { display:block; position:relative; aspect-ratio:1/1; border-radius:14px; overflow:hidden; background:rgba(255,255,255,.06); margin-bottom:8px; }
.acc-collection-media img { width:100%; height:100%; object-fit:cover; display:block; }
.acc-collection-media em { position:absolute; right:8px; top:8px; display:inline-flex; align-items:center; gap:4px; padding:4px 7px; border-radius:999px; background:rgba(0,0,0,.58); color:#fff; font-style:normal; font-size:11px; }
.acc-collection-card strong { display:block; font-size:13px; line-height:1.25; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.acc-collection-card small { display:block; margin-top:3px; opacity:.62; font-size:11px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior:auto; } *, *::before, *::after { transition:none !important; animation:none !important; } }
