@font-face {
    font-family: 'benzin-bold';
    src: url('../fonts/benzin-bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

:root {
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --text-color: #000000;
    --accent-color: #000000;
    --secondary-bg: #f2f2f7;
    --border-color: #e5e5ea;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    --radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    /* Глобально скрываем скроллбары */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

*::-webkit-scrollbar {
    display: none;
}


html {
    background-color: #ffffff;
    overflow-x: clip;
    max-width: 100%;
}

body {
    overflow-x: clip;
    max-width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: var(--text-color);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: calc(55px + env(safe-area-inset-bottom, 0px));
}

/* Убираем полосу прокрутки для Chrome/Safari */
body::-webkit-scrollbar {
    display: none;
}


.container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 3px;
}

header {
    background: #ffffff;
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding-top: env(safe-area-inset-top, 0px);
    transition: transform 0.3s ease-in-out;
}

.header-hidden {
    transform: translateY(-100%);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 52px;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}
nav::-webkit-scrollbar {
    display: none;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo a {
    font-family: 'benzin-bold', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    color: var(--text-color);
    text-transform: uppercase;
    line-height: 1;
    margin-top: 3px;
    margin-left: 3px;
    white-space: nowrap;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 0px;
    align-items: center;
    margin-right: 6px;
    flex-shrink: 0;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    transition: background-color 0.15s ease, opacity 0.15s ease;
}

/* Кнопка «Мой профиль»: иконка и подпись в одной закруглённой плашке.
   Градиент тот же, что у кнопки «Редактировать профиль» в карточке. */
.nav-links a.nav-me {
    width: auto;
    gap: 7px;
    padding: 0 14px 0 11px;
    border-radius: 999px;
    background: linear-gradient(135deg, #FFE1F2 0%, #FFD0EC 45%, #DDF6FA 100%);
    color: #17171a;
    font-size: 13px;
    font-weight: 700;
}
.nav-links a.nav-me i { font-size: 14px; color: #17171a; }
.nav-links a.nav-me:hover {
    background: linear-gradient(135deg, #FFD6EE 0%, #FFC2E6 45%, #D2F2F8 100%);
}
/* На узком экране подпись убираем - иначе шапка переполняется */
@media (max-width: 400px) {
    .nav-links a.nav-me span { display: none; }
    .nav-links a.nav-me { width: 38px; padding: 0; border-radius: 12px; }
}

.nav-links a:hover {
    background-color: var(--secondary-bg, #f2f2f7);
}

.nav-links a:active {
    transform: scale(0.92);
}

main {
    /* подвал теперь заполнен ссылками — воздух внизу нужен обычный */
    padding: 10px 0 24px;
}

/* --- GRID ---
   Карточка товара: название и цена лежат ПОВЕРХ фотографии, на затемнении
   у нижнего края. Так снимок занимает всю карточку, подписи не отнимают
   высоту, а лента перестаёт выглядеть как таблица с текстом.
   Разметку менять не пришлось: .product-info просто переведён в абсолютное
   положение, поэтому вид обновился сразу на главной, в избранном,
   в архиве и в профиле. */
/* Зазор между карточками задаётся полями самой карточки, а отрицательное
   поле сетки возвращает ряд к краям контейнера. */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -4px;
}

.product-card {
    position: relative;          /* якорь для подписи поверх фото */
    text-decoration: none;
    color: inherit;
    width: 50%;
    padding: 4px;
    display: block;
}

.product-image {
    width: 100%;
    aspect-ratio: 2/3;
    background-color: var(--secondary-bg);
    border-radius: 22px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Затемнение снизу: без него светлые фотографии «съедают» белый текст.
   Лежит внутри .product-image, поэтому обрезается по скруглению. */
.product-image::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 58%;
    background: linear-gradient(to top,
        rgba(10, 9, 12, .88) 0%,
        rgba(10, 9, 12, .45) 38%,
        rgba(10, 9, 12, 0) 100%);
    pointer-events: none;
}

.product-info {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 13px;
    z-index: 2;
    padding: 0;
    display: flex;
    flex-direction: column;
    pointer-events: none;        /* клик всегда уходит на саму карточку */
}

.product-info h3 {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 1px;
    color: rgba(255, 255, 255, .92);
    text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    font-family: 'benzin-bold', -apple-system, sans-serif;
    font-weight: 800;
    font-size: 1.02rem;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
}

/* Товар со скидкой: новая цена красная, старая - мелкая, серая, зачёркнутая.
   Старая цена приходит из разметки отдельным <span> с инлайновыми стилями,
   поэтому её переопределяем через !important.
   Красный цвет включаем через :has() - так не пришлось добавлять класс
   в четыре шаблона. Браузер без поддержки просто покажет белую цену. */
.product-price span {
    color: rgba(255, 255, 255, .5) !important;
    font-size: 0.68em !important;
    font-weight: 600 !important;
    text-decoration: line-through !important;
    margin-right: 5px !important;
}

.product-price:has(span) {
    color: #ff5b6e;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
}

@media (max-width: 360px) {
    .product-image { border-radius: 18px; }
    .product-info { left: 12px; right: 12px; bottom: 11px; }
    .product-price { font-size: 0.95rem; }
    .product-info h3 { font-size: 0.76rem; }
}

/* Жёлтая плашка (badge). В разметке она идёт после цены, но на карточке
   должна быть сверху - поднимаем порядком во флексе, а не правкой четырёх
   шаблонов. */
.product-badge {
    order: -1;
    align-self: flex-start;
    display: inline-block;
    background: #f4c430;
    color: #3a2f00;
    font-size: 0.66rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    margin: 0 0 5px;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Auth & Forms */
.auth-form {
    padding: 20px 0;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    color: #8e8e93;
    margin-bottom: 6px;
}

input, textarea, select {
    width: 100%;
    padding: 12px;
    background: var(--secondary-bg);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    font-family: inherit;
}

button, .btn {
    width: 100%;
    padding: 14px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
}

.btn-sm {
    padding: 8px 12px;
    font-size: 0.8rem;
    width: auto;
}

.btn-danger { background: #ff3b30; }
.btn-success { background: #34c759; }

/* Admin Spacing */
.admin-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    font-size: 0.85rem;
    border-collapse: collapse;
}

td, th {
    padding: 12px 8px;
    border-bottom: 0.5px solid var(--border-color);
}

/* Cropper */
.crop-container {
    max-height: 300px;
    margin-bottom: 10px;
}

/* Image Preview List */
.preview-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.preview-item {
    position: relative;
    aspect-ratio: 2/3;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.preview-item .remove {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff3b30;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal / Product View */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 1000;
    overflow-y: auto;
    display: none;
}

.modal.active { display: block; }

.modal-header {
    height: 50px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.slider-container {
    position: relative;
    width: 100%;
}

.slider {
    width: 100%;
    aspect-ratio: 2/3;
    overflow-x: auto;
    display: flex;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.slider::-webkit-scrollbar {
    display: none;
}

.slider img {
    width: 100%;
    flex-shrink: 0;
    scroll-snap-align: start;
    object-fit: cover;
    border-radius: var(--radius);
}

.dots-container {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    pointer-events: none;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transition: all 0.2s;
}

.dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* Accordion */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.accordion-content.open {
    max-height: 5000px;
}
.accordion-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.accordion-trigger i {
    transition: transform 0.3s;
}
.accordion-trigger.active i {
    transform: rotate(180deg);
}

@media (min-width: 600px) {
    .accordion-content {
        max-height: none !important;
        overflow: visible !important;
    }
    .accordion-trigger i {
        display: none !important;
    }
}

/* Кнопка добавления в избранное на карточке товара (просто иконка без фона, расширенная область нажатия 46х46 px) */
.product-image button.fav-card-btn,
.product-image .fav-card-btn {
    position: absolute !important;
    top: 0px !important;
    right: 0px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 10 !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    max-width: 46px !important;
    max-height: 46px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 1.35rem !important;
    line-height: 1 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6) !important;
    box-shadow: none !important;
    flex-shrink: 0 !important;
    backdrop-filter: none !important;
}
.product-image button.fav-card-btn:hover,
.product-image .fav-card-btn:hover {
    background: transparent !important;
    transform: scale(1.15);
}
.product-image button.fav-card-btn:active,
.product-image .fav-card-btn:active {
    transform: scale(0.9);
}
.product-image button.fav-card-btn.active,
.product-image .fav-card-btn.active {
    background: transparent !important;
    color: #ff3b30 !important;
    text-shadow: none !important;
    box-shadow: none !important;
}
.product-image button.fav-card-btn.active i,
.product-image .fav-card-btn.active i {
    font-weight: 900;
}

/* Кнопка в самой карточке товара напротив названия */
.fav-card-btn.active,
.fav-card-btn.active i {
    color: #ff3b30 !important;
}
.fav-card-btn.active i {
    font-weight: 900;
}

/* ============================================================
   ИНДИКАЦИЯ ЗАНЯТОСТИ (js/busy.js)
   Полоска вверху экрана на любое ожидание + занятая кнопка.
   ============================================================ */
#vdBusyBar {
    position: fixed; top: 0; left: 0; z-index: 100000;
    width: 0; height: 3px; opacity: 0; pointer-events: none;
    background: linear-gradient(90deg, #FF85CB 0%, #78DEEE 100%);
    border-radius: 0 3px 3px 0;
    transition: width .45s cubic-bezier(.22,.8,.3,1), opacity .2s ease;
}
#vdBusyBar.is-on { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
    #vdBusyBar { transition: opacity .2s ease; }
}

/* Рейтинг продавца в карточке товара: подпись и под ней пять звёзд.
   Пустые звёзды остаются видимыми серыми - сразу понятно, что шкала из пяти. */
.seller-rate { flex: 0 0 auto; text-align: right; }
.seller-rate__cap { font-size: 0.72rem; color: #8e8e93; margin-bottom: 3px; }
.seller-rate__stars { display: flex; gap: 3px; justify-content: flex-end; }

/* Одна звезда = серая подложка + жёлтая копия поверх. Половинку даёт
   обрезка жёлтой копии по ширине: так полузвезда выглядит честно
   закрашенной слева, а не просто бледной. */
.srs { position: relative; display: inline-block; line-height: 1; }
.srs i { font-size: 0.82rem; line-height: 1; display: block; }
.srs__bg { color: #dddcd8; }
.srs__fg {
    position: absolute; left: 0; top: 0; color: #ffb020;
    overflow: hidden; white-space: nowrap;
}
.srs--none .srs__fg { width: 0; }
.srs--half .srs__fg { width: 50%; }
.srs--full .srs__fg { width: 100%; }

/* Кнопка «О нас» в шапке: стоит слева от «Войти», видна только гостям.
   Нарочно тихая - второстепенное действие рядом с главным. */
.nav-links a.about-btn {
    width: auto;
    height: 38px;
    padding: 0 16px;
    border-radius: 36px;
    background: #f3f2f0;
    color: #21201e;
    font-family: 'benzin-bold', -apple-system, sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

/* небольшой зазор до «Войти», чтобы кнопки не слипались */
.nav-links a.about-btn { margin-right: 6px; }

.nav-links a.about-btn:active { transform: scale(0.94); }

body.page-auth .nav-links a.about-btn { display: none; }

/* Кнопка «Вход» в шапке (розовый градиент) */
.nav-links a.login-btn {
    width: auto;
    height: 38px;
    padding: 0 20px;
    border-radius: 36px;
    background: linear-gradient(135deg, #ff4fa3 0%, #ff8ec4 100%);
    color: #ffffff;
    font-family: 'benzin-bold', -apple-system, sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    box-shadow: 0 3px 12px rgba(255, 79, 163, 0.32);
    white-space: nowrap;
}

.nav-links a.login-btn:hover {
    background: linear-gradient(135deg, #ff4fa3 0%, #ff8ec4 100%);
    opacity: 0.92;
}

.nav-links a.login-btn:active {
    transform: scale(0.94);
}

/* Профиль: серый фон до самого низа */
body.page-profile {
    background-color: #f5f4f2;
}

html:has(body.page-profile) {
    background-color: #f5f4f2;
}

body.page-profile main {
    padding-bottom: 0;
}

body.page-profile footer {
    background: #f5f4f2;
}

/* Профиль: карточки во всю ширину экрана на мобильных */
body.page-profile main.container {
    max-width: none;
    padding: 0;
}

@media (min-width: 521px) {
    body.page-profile main.container {
        max-width: 500px;
        padding: 0 3px;
    }
}

/* ============================================================
   Галерея товара — фотокарточки под наклоном
   ============================================================ */
.ph-stage {
    position: relative;
    width: 100%;
    padding: 0;
}

.ph-track {
    display: flex;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-padding: 0;
    /* overflow-x обрезает и по вертикали, поэтому даём запас изнутри.
       Сверху компенсируем margin'ом, снизу оставляем реальное место —
       иначе следующий блок наезжает и перекрывает тень. */
    padding: 26px 0 46px;
    margin: -26px 0 0;
}

.ph-track::-webkit-scrollbar { display: none; }

/* Поля у крайних слайдов: без них первая и последняя фотография не могут
   встать по центру - прокрутке просто некуда уехать, и они липнут к краю. */
.ph-slide:first-child { margin-left: 9%; }
.ph-slide:last-child  { margin-right: 9%; }

.ph-slide {
    /* Слайд уже дорожки - поэтому по краям выглядывают соседние фото */
    flex: 0 0 82%;
    width: 82%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* сама фотокарточка: белая рамка, скругление, наклон */
.ph-card {
    --tilt: -2deg;
    width: 92%;
    max-width: 330px;
    background: #fff;
    border-radius: 18px;
    padding: 9px;
    font-size: 0;
    line-height: 0;
    box-shadow:
        0 10px 26px rgba(0, 0, 0, .13),
        0 2px 6px rgba(0, 0, 0, .07);
    transform: rotate(var(--tilt));
    transition: transform .45s cubic-bezier(.22, .68, .36, 1);
    will-change: transform;
}

.ph-card img,
.ph-card .ph-empty {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    border-radius: 11px;
    object-fit: cover;
    background: #f2f2f7;
}

.ph-card .ph-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d2d2d7;
}

/* активная карточка чуть ровнее и крупнее — притягивает взгляд */
.ph-slide.is-active .ph-card {
    transform: rotate(calc(var(--tilt) * .45)) scale(1.045);
}

/* точки под галереей */
.ph-stage .dots-container {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    pointer-events: none;
}

.ph-stage .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d7d6d3;
    transition: all .25s ease;
}

.ph-stage .dot.active {
    background: #21201e;
    transform: scale(1.25);
}

/* метки поверх галереи */
/* --- стрелки листания галереи (только ПК) --- */
.ph-arrow {
    /* по умолчанию скрыты: мобильные, планшеты и веб-аппы их не увидят */
    display: none;
    position: absolute;
    /* дорожка имеет padding 26px сверху и 46px снизу, поэтому
       визуальный центр карточки на 10px выше центра блока */
    top: calc(50% - 10px);
    transform: translateY(-50%);
    z-index: 30;
    width: 38px;
    height: 38px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #21201e;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .16);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background .18s ease, box-shadow .18s ease, opacity .18s ease;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.ph-arrow--prev { left: 6px; }
.ph-arrow--next { right: 6px; }

.ph-arrow:hover:not(:disabled) {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .22);
}

.ph-arrow:active:not(:disabled) {
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

/* край галереи — кнопка неактивна */
.ph-arrow:disabled {
    opacity: .32;
    cursor: default;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

/* Показываем только там, где есть мышь и нет сенсорного ввода.
   Телефоны, планшеты и мобильные веб-аппы под это не подпадают. */
@media (hover: hover) and (pointer: fine) {
    .ph-arrow { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
    .ph-track { scroll-behavior: auto; }
    .ph-card { transition: none; }
}

/* --- коллекции Monster High в карточке товара --- */
.pd-cols {
    margin: -6px 0 20px;
}
.pd-cols__t {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #a8a7a3;
    margin-bottom: 8px;
}
.pd-cols__list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.pd-cols__item {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 10px;
    /* Фирменные цвета: голубой переходит в розовый. Перелива больше нет -
       плашек на карточке бывает по десять штук, и десять бегущих градиентов
       отвлекали от самого товара. */
    background: linear-gradient(115deg, #78DEEE 0%, #FF85CB 100%);
    color: #17171a;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -.1px;
}

/* Перелив — украшение: если в системе просят меньше движения, выключаем */

/* --- Единая кнопка «назад» -------------------------------------------------
   Раньше на каждой странице был свой вариант: .np-back, .bs-back, .pnl-back
   и инлайновая ссылка в product.php — разного размера и цвета.
   Этот класс один на весь сайт и заметно компактнее прежних 15px. */
.vd-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 30px;
    padding: 0 11px 0 9px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: #f5f4f2;
    color: #6b6a67;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -.1px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .15s ease, color .15s ease, transform .12s ease;
}

.vd-back i,
.vd-back svg {
    font-size: 10px;
    width: 10px;
    height: 10px;
    display: block;
    flex: 0 0 auto;
}

.vd-back:hover { background: #ecebe8; color: #21201e; }
.vd-back:active { transform: scale(.96); background: #e5e4e0; }

/* Аватар продавца в карточке товара: первая буква имени в круге */
.seller-ava {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform .12s ease;
}

.seller-ava:active { transform: scale(.94); }
/* Загруженная аватарка: кружок уже круглый, картинку просто вписываем.
   overflow нужен здесь, иначе квадратное фото торчит из круга. */
.seller-ava { overflow: hidden; }
.seller-ava img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }


/* =========================================================================
   Экраны входа, регистрации и восстановления (body.page-auth).
   Общий макет: пустая подложка на весь экран + нижний белый лист.
   Стили лежат здесь, а не в трёх страницах, чтобы правка была одна.
   ========================================================================= */
/* =========================================================================
   Экраны входа, регистрации и восстановления (body.page-auth).
   Во весь экран, без нижней плашки и без прокрутки: содержимое обязано
   помещаться целиком, поэтому поля и отступы здесь компактнее обычных.
   Шапка с названием сайта остаётся, кнопка «Войти» в ней прячется —
   человек уже на странице входа, вести его оттуда некуда.
   ========================================================================= */
body.page-auth {
    background: #ffffff;
    display: flex; flex-direction: column;
    min-height: 100vh; min-height: 100dvh;
}
body.page-auth .nav-links a.login-btn { display: none; }
body.page-auth main.container {
    max-width: none; width: 100%; margin: 0; padding: 0;
    flex: 1 1 auto; display: flex; min-height: 0;
}

.auth-screen {
    flex: 1 1 auto; width: 100%; min-height: 0;
    display: flex; flex-direction: column;
    padding: 18px 20px calc(18px + env(safe-area-inset-bottom));
}
.auth-box {
    width: 100%; max-width: 460px;
    margin: 0 auto;
    display: flex; flex-direction: column;
    flex: 1 1 auto; min-height: 0;
}
/* Всё содержимое идёт от верха подряд: кнопки стоят сразу за текстом
   или за формой, без прижатия к нижнему краю экрана. */
.auth-actions { margin-top: 10px; }

.auth-mark {
    width: 50px; height: 50px; border-radius: 50%;
    background: #f4f3f1;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px; flex-shrink: 0;
}
.auth-box h1 {
    font-family: 'benzin-bold', -apple-system, sans-serif;
    font-size: 1.7rem; line-height: 1.1; margin: 0 0 8px; text-align: left;
}
.auth-sub { margin: 0 0 18px; color: #8e8e93; font-size: 0.93rem; line-height: 1.35; }

.auth-btn {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    width: 100%; height: 54px; border: 0; border-radius: 16px;
    font-family: 'benzin-bold', -apple-system, sans-serif;
    font-size: 1rem; font-weight: 700; text-decoration: none;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
    transition: transform .12s ease, background-color .15s ease;
}
.auth-btn + .auth-btn { margin-top: 10px; }
.auth-btn:active { transform: scale(.985); }
.auth-btn--dark { background: #17171a; color: #fff; }
.auth-btn--dark:active { background: #2a2a2e; }
.auth-btn--soft { background: #f1f0ee; color: #17171a; }
.auth-btn--soft:active { background: #e7e5e2; }

/* Нижний ряд: «Регистрация» и «Забыл пароль» делят строку поровну. */
.auth-row { display: flex; gap: 10px; margin-top: 10px; }
.auth-row .auth-btn { margin-top: 0; flex: 1 1 0; min-width: 0; }

/* Телеграм - второй по счёту способ входа, поэтому во всю ширину и с
   подписью: раньше он стоял в паре узкой плиткой-иконкой. */
.auth-tg { margin-top: 10px; }
.page-auth .tgbtn {
    width: 100%; height: 54px; border-radius: 16px;
    background: #229ED9; color: #fff; gap: 9px;
    box-shadow: none; border: 0;
    font-family: 'benzin-bold', -apple-system, sans-serif;
    font-size: 1rem; font-weight: 700;
}
.page-auth .tgbtn span { display: inline; }
.page-auth .tgbtn svg { width: 22px; height: 22px; }
.page-auth .tgbtn:active { background: #1e96d4; transform: scale(.985); }

/* Форма */
.auth-form-box .form-group { margin-bottom: 9px; }
.auth-form-box label {
    display: block; font-size: 0.76rem; font-weight: 700;
    color: #8e8e93; margin-bottom: 4px;
}
.auth-form-box input {
    width: 100%; height: 48px; padding: 0 14px;
    border: 1px solid #e6e5e3; border-radius: 14px;
    background: #fbfaf9; font-size: 1rem; box-sizing: border-box;
}
.auth-form-box input:focus { outline: none; border-color: #17171a; background: #fff; }
.auth-pass { position: relative; }
.auth-pass input { padding-right: 46px; }
.auth-pass__eye {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    width: 34px; height: 34px; padding: 0; border: 0; background: transparent;
    color: #8e8e93; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}

/* Согласие внизу — только на экранах с формой */
.auth-legal {
    margin: 12px 0 0;
    font-size: 0.72rem; line-height: 1.4; color: #9c9b97; text-align: center;
}
.auth-legal a { color: #6f6d6a; text-decoration: underline; }

.auth-note {
    border-radius: 14px; padding: 10px 13px; font-size: 0.85rem;
    line-height: 1.35; margin-bottom: 10px;
}
.auth-note--err { background: #ffece9; color: #d5341f; }
.auth-note--ok  { background: #e8f5e9; color: #2e7d32; }

/* Низкие экраны: ужимаем всё, чтобы обошлось без прокрутки */
@media (max-height: 700px) {
    .auth-mark { width: 42px; height: 42px; margin-bottom: 10px; }
    .auth-box h1 { font-size: 1.45rem; }
    .auth-sub { font-size: 0.86rem; margin-bottom: 12px; }
    .auth-btn, .page-auth .tgbtn { height: 48px; }
    .auth-form-box input { height: 44px; }
    .auth-form-box .form-group { margin-bottom: 7px; }
}


/* Красная точка на щите админки: есть объявления, ждущие модерации.
   Точка абсолютная внутри ссылки, поэтому не двигает соседние иконки. */
.nav-links a.nav-admin { position: relative; overflow: visible; }
.nav-links a.nav-admin .nav-dot {
    position: absolute;
    top: -1px;
    right: -3px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ff3b30;
    border: 2px solid #ffffff;   /* отбивка от иконки на белой шапке */
    box-sizing: content-box;
    pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
    .nav-links a.nav-admin .nav-dot { animation: navDotIn .25s ease-out; }
    @keyframes navDotIn {
        from { transform: scale(0); opacity: 0; }
        to   { transform: scale(1); opacity: 1; }
    }
}


/* ============================================================
   ПОДВАЛ САЙТА
   Лёгкий: ссылки одной строкой через точку, ниже пояснение о роли
   площадки (его требует 152-ФЗ и здравый смысл) и год.
   Намеренно неяркий - это сноска, а не раздел навигации.
   ============================================================ */
.site-footer {
    clear: both;
    margin-top: 28px;
    padding: 18px 16px calc(22px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #ececea;
    background: transparent;
    text-align: center;
}

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 7px;
    margin-bottom: 9px;
}

.site-footer__nav a {
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.3;
    color: #6f6d6a;
    text-decoration: none;
    padding: 3px 0;          /* область нажатия, не влияющая на вид */
}
.site-footer__nav a:hover,
.site-footer__nav a:focus-visible { color: #17171a; text-decoration: underline; }

.site-footer__dot { color: #cfcdc9; font-size: 12px; }

.site-footer__note {
    margin: 0 auto 6px;
    max-width: 460px;
    font-size: 11px;
    line-height: 1.45;
    color: #a3a19c;
}

.site-footer__copy {
    margin: 0;
    font-size: 11px;
    color: #c0bdb8;
}

/* На экранах входа и регистрации подвал не нужен: там под формой уже
   стоит строка про соглашение и политику. */
body.page-auth .site-footer { display: none; }

/* Тёмные страницы аукционов: те же размеры, другой контраст. */
body.page-auction .site-footer { border-top-color: #26242b; }
body.page-auction .site-footer__nav a { color: #9b99a3; }
body.page-auction .site-footer__nav a:hover { color: #fff; }
body.page-auction .site-footer__dot { color: #3a3842; }
body.page-auction .site-footer__note { color: #6f6d75; }
body.page-auction .site-footer__copy { color: #55535c; }

@media (max-width: 359px) {
    .site-footer__nav { flex-direction: column; gap: 2px; }
    .site-footer__dot { display: none; }
}

/* ============================================================
   ВИШ-ЛИСТ: кнопка-подарок у кукол энциклопедии
   Неактивная — прозрачная и серая, активная — красная.
   ============================================================ */
.enc-wish {
    width: 36px; height: 36px; padding: 0; border: 0; background: transparent;
    border-radius: 50%; cursor: pointer; display: inline-flex;
    align-items: center; justify-content: center; flex: 0 0 auto; -webkit-tap-highlight-color: transparent;
    transition: transform .15s ease;
}
.enc-wish:active { transform: scale(.88); }
.enc-wish svg { display: block; overflow: visible; }
.enc-wish .wb { fill: none; stroke: #8e8e93; stroke-width: 1.8; stroke-linejoin: round; }
.enc-wish .wr { fill: none; stroke: #8e8e93; stroke-width: 1.8; stroke-linecap: round; }
.enc-wish.is-on .wb { fill: #e5322d; stroke: #000; stroke-width: 2.2; }
.enc-wish.is-on .wr { stroke: #000; stroke-width: 2.2; }
/* Кнопка с подписью под фото куклы */
.enc-wish-row { margin: 12px 4px 16px; }
.enc-wish.enc-wish--big {
    width: 100%; height: 48px; padding: 0 18px; border-radius: 999px; background: #fff;
    border: 1px solid #e5e5ea; color: #000; font-size: 16px; font-weight: 600;
    gap: 10px; justify-content: center; font-family: inherit;
}
.enc-wish--big .enc-wish__txt { line-height: 1; }
.enc-wish--big:active { background: #f2f2f7; }
.enc-wish.is-on { animation: wishPop .35s ease; }
@keyframes wishPop {
    0%   { transform: scale(.8); }
    60%  { transform: scale(1.15); }
    100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) { .enc-wish.is-on { animation: none; } }

/* Кнопка справа вверху карточки в сетке коллекции */
.enc-card-wrap { position: relative; min-width: 0; }
.enc-card-wrap > .enc-wish { position: absolute; top: 4px; right: 4px; z-index: 2; }

/* Строка «Все куклы»: место под кнопку справа, стрелка остаётся на месте */
.enc-row-wrap { position: relative; min-width: 0; }
.enc-row-wrap .enc-row { padding-right: 44px; }
.enc-row-wrap > .enc-wish { position: absolute; top: 6px; right: 0; z-index: 2; }
.enc-rows--grid .enc-row-wrap .enc-row { padding-right: 0; }
.enc-rows--grid .enc-row-wrap > .enc-wish { top: 4px; right: 4px; }

/* Полоска виш-листа под профилем */
.wl-strip {
    margin: 14px 0 20px; padding: 14px 14px 12px; border-radius: 20px; color: #1c1b20;
    /* запасной вариант без поддержки размытия: почти непрозрачный белый */
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(255, 255, 255, .7);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .10), inset 0 1px 0 rgba(255, 255, 255, .8);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .wl-strip {
        background: rgba(255, 255, 255, .42);
        -webkit-backdrop-filter: blur(18px) saturate(170%);
        backdrop-filter: blur(18px) saturate(170%);
    }
}
.wl-strip__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.wl-strip__title { font-weight: 800; font-size: 16px; color: #1c1b20; text-decoration: none; }
.wl-strip__all { font-size: 13px; font-weight: 600; color: #6e6e73; text-decoration: none; }
.wl-strip__empty { font-size: 14px; color: #6e6e73; line-height: 1.4; }
/* Ряд: видно четыре карточки, остальные — прокруткой вправо */
.wl-row {
    display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 30px) / 4);
    gap: 10px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior-x: contain;
}
.wl-row::-webkit-scrollbar { display: none; }
.wl-item { display: block; min-width: 0; scroll-snap-align: start; text-decoration: none; color: #000; }
.wl-item__img {
    display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1 / 1;
    border-radius: 12px; background: #f2f2f7; border: .5px solid #e5e5ea; overflow: hidden;
    color: #6e6e73; font-weight: 700; font-size: 1.2rem;
}
.wl-item__img img { width: 100%; height: 100%; object-fit: contain; }
.wl-item__name {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-size: 13px; font-weight: 600; line-height: 1.25; margin-top: 6px; color: #000;
}

/* Верхняя строка страницы виш-листа: назад слева, поделиться справа */
.wl-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin: 6px 4px 0; }
.wl-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.wl-share-btn {
    display: inline-block; width: fit-content; padding: 4px 10px; border: 0; border-radius: 999px;
    background: linear-gradient(90deg, #ec5a78, #c81d44); color: #fff;
    font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.3; white-space: nowrap;
    cursor: pointer;
}
.wl-share-btn:active { opacity: .85; }
/* Окно «Поделиться» */
.wl-modal {
    position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
    padding: 16px; background: rgba(0, 0, 0, .35);
}
.wl-modal[hidden] { display: none; }
.wl-modal__box {
    width: 100%; max-width: 420px; background: #fff; border-radius: 16px; padding: 18px 18px 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .18); color: #1c1b20;
}
.wl-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.wl-modal__title { margin: 0; font-size: 18px; font-weight: 700; color: #000; }
.wl-modal__close {
    width: 34px; height: 34px; padding: 0; display: flex; align-items: center; justify-content: center;
    border: 0; border-radius: 50%; background: #f2f2f7; color: #000;
    font-size: 22px; line-height: 1; cursor: pointer; font-family: inherit; flex: 0 0 auto;
}
.wl-modal__row { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.wl-modal__input {
    flex: 0 0 auto; width: 100%; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid #e5e5ea; border-radius: 12px;
    background: #f2f2f7; color: #000; font-family: inherit; font-size: 15px;
}
.wl-modal__copy {
    width: 100%; flex: 0 0 auto; height: 44px; padding: 0 16px; border: 0; border-radius: 12px; background: #000; color: #fff;
    font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit; white-space: nowrap;
}
.wl-modal__copy:active { opacity: .85; }
.wl-modal__msg { min-height: 20px; margin-top: 10px; font-size: 14px; color: #6e6e73; }

/* Тёмный вариант полоски виш-листа (только пользователь с ID 1) */
.wl-strip--dark {
    background: rgba(0, 0, 0, .88);
    border-color: rgba(255, 255, 255, .12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .08);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .wl-strip--dark {
        background: rgba(0, 0, 0, .5);
        -webkit-backdrop-filter: blur(18px) saturate(160%);
        backdrop-filter: blur(18px) saturate(160%);
    }
}
.wl-strip--dark .wl-strip__title,
.wl-strip--dark .wl-item__name { color: #fff; }
.wl-strip--dark .wl-strip__all,
.wl-strip--dark .wl-strip__empty { color: rgba(255, 255, 255, .72); }

/* Описание виш-листа: хозяин пишет в форме, остальные читают текст */
.wl-note { margin: 0 4px 18px; font-size: 15px; line-height: 1.5; color: #3a3a3c; overflow-wrap: anywhere; }
/* Фильтр по поколению на чужом виш-листе (кнопки справа, цвета как в каталоге) */
.wl-genrow { display: flex; justify-content: flex-end; margin: 0 4px 12px; }
.wl-gen { display: flex; flex-wrap: nowrap; gap: 8px; }
.wl-gen-btn {
    width: auto; flex: 0 0 auto; margin: 0; height: 32px; min-width: 60px; padding: 0 14px; border: 0; border-radius: 999px;
    background: #f2f2f7; color: #000; font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1; cursor: pointer;
}
.wl-gen-btn.is-on { background: #000; color: #fff; }
.wl-gen-btn:active { transform: scale(.96); }
.wl-card[hidden], .wl-gen-none[hidden] { display: none; }
.wl-note-form { margin: 0 4px 18px; }
.wl-note-form__label { display: block; font-size: 13px; font-weight: 600; color: #6e6e73; margin-bottom: 6px; }
.wl-note-form textarea {
    display: block; width: 100%; min-height: 84px; resize: vertical; padding: 12px;
    border: 1px solid #e5e5ea; border-radius: 12px; background: #f2f2f7; color: #000;
    font-family: inherit; font-size: 15px; line-height: 1.45; outline: none;
}
.wl-note-form textarea:focus { border-color: #c81d44; }
.wl-note-form__row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.wl-note-form__btn {
    width: auto; padding: 10px 18px; border: 0; border-radius: 999px; background: #000; color: #fff;
    font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.wl-note-form__ok { font-size: 14px; color: #6e6e73; }
.wl-note-view { display: flex; align-items: flex-start; gap: 8px; margin: 0 4px 18px; }
.wl-note-view[hidden] { display: none; }
.wl-note-view .wl-note { margin: 0; flex: 1 1 auto; min-width: 0; }
.wl-note--empty { color: #8e8e93; }
.wl-note-view .wl-note-form__ok { flex: 0 0 auto; align-self: center; }
.wl-note-edit {
    flex: 0 0 auto; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
    background: #f2f2f7; color: #000; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.wl-note-edit:active { background: #e5e5ea; }

/* Верхняя строка справа: «Инфо» и «Поделиться» */
.wl-top__right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: 0 0 auto; margin-top: 7px; }
.wl-info-btn {
    width: fit-content; padding: 4px 10px; border: 1px solid #e5e5ea; border-radius: 999px;
    background: #fff; color: #000; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.3;
    white-space: nowrap; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.wl-info-btn:active { background: #f2f2f7; }
.wl-info-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid #ecebe8; }
.wl-info-dot { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; margin-top: 2px; }
.wl-info-dot--1 { background: #A895FF; }
.wl-info-dot--2 { background: #FFCBEB; }
.wl-info-dot--3 { background: #C3FFFF; }
.wl-info-row__t { font-size: 15px; font-weight: 700; color: #000; }
.wl-info-row__d { font-size: 14px; color: #000; margin-top: 2px; line-height: 1.4; }

/* Мини-окно выбора уровня желания */
.wl-pick {
    position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center;
    padding: 16px; background: rgba(0, 0, 0, .28);
}
.wl-pick[hidden] { display: none; }
.wl-pick__box {
    width: 100%; max-width: 300px; background: #fff; border-radius: 18px; padding: 14px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .2); color: #1c1b20;
}
.wl-pick__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.wl-pick__title { font-size: 16px; font-weight: 800; color: #000; }
.wl-pick__hint { font-size: 13px; line-height: 1.4; color: #6e6e73; margin: 0 0 12px; }
.wl-pick__x {
    width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: #f2f2f7; color: #000;
    font-family: inherit; font-size: 20px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.wl-pick__opts { display: grid; gap: 8px; }
.wl-pick__opt {
    display: block; width: 100%; margin: 0; padding: 12px 14px; border: 0; border-radius: 999px;
    font-family: inherit; font-size: 15px; font-weight: 700; color: #1c1b20; text-align: center; cursor: pointer;
}
.wl-pick__opt[data-lvl="1"] { background: #A895FF; }
.wl-pick__opt[data-lvl="2"] { background: #FFCBEB; }
.wl-pick__opt[data-lvl="3"] { background: #C3FFFF; }
.wl-pick__opt.is-cur { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1c1b20; }
.wl-pick__opt:disabled { opacity: .6; cursor: default; }
.wl-pick__rm {
    display: block; width: 100%; margin: 10px 0 0; padding: 8px; border: 0; background: none;
    color: #c62828; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.wl-pick__rm[hidden] { display: none; }
.wl-pick__rm:disabled { opacity: .6; }


/* Страница виш-листа */
.wl-page { max-width: 560px; margin: 0 auto; padding: 8px 12px 40px; color: #1c1b20; }
.wl-back { display: inline-block; margin: 6px 4px 6px; color: #000; font-size: 15px; font-weight: 600; text-decoration: none; }
.wl-h1 { font-family: 'benzin-bold', -apple-system, sans-serif; font-weight: 700; font-size: 1.5rem; line-height: 1.2; margin: 6px 4px 4px; color: #000; }
.wl-sub { font-size: 14px; color: #6e6e73; margin: 0 4px 16px; }
.wl-empty { color: #6e6e73; padding: 16px 4px; font-size: 14px; line-height: 1.4; }
.wl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; padding: 0 4px; }
@media (min-width: 640px) { .wl-page { max-width: 760px; } .wl-grid { gap: 16px 14px; } }
/* Плитки виш-листа — те же, что на главной объявлений (.product-card / .product-image / .product-info).
   Здесь только сброс лишних размеров под сетку из трёх колонок. */
/* Плитка виш-листа: фото без рамки; под подписью — рандомный мазок цвета уровня */
.wl-card { position: relative; min-width: 0; }
.wl-card .product-card { width: 100%; padding: 0; }
.wl-card .product-image { aspect-ratio: 1 / 1; }
/* Затемнение в виш-листе меньше и ниже — только здесь, плитки главной не меняются */
.wl-card .product-image::after {
    height: 34%;
    background: linear-gradient(to top,
        rgba(10, 9, 12, .6) 0%,
        rgba(10, 9, 12, .22) 45%,
        rgba(10, 9, 12, 0) 100%);
}
.wl-tile__ph {
    height: 100%; display: flex; align-items: center; justify-content: center;
    background: var(--secondary-bg); color: #8e8e93; font-weight: 700; font-size: 1.6rem;
}
.wl-tile__meta {
    margin: 0; font-size: 0.68rem; line-height: 1.2; color: rgba(255, 255, 255, .85);
    text-shadow: 0 1px 6px rgba(0, 0, 0, .5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wl-card > .enc-wish { top: 6px; right: 6px; }
/* Снятая с виш-листа кукла остаётся на странице, но бледнеет: её можно вернуть подарком */
.wl-card .wl-card__link { transition: opacity .2s ease; }
.wl-card.is-off .wl-card__link { opacity: .45; }
.wl-card__link { display: block; text-decoration: none; color: #000; }
.wl-card__media { position: relative; display: block; }
/* Цветная подложка под фото: та же форма, чуть ниже — видна узкой полоской под нижним краем */
.wl-card__media::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: -8px;
    border-radius: 16px; background: #e5e5ea; z-index: 0;
}
.wl-card--lvl-1 .wl-card__media::before { background: #A895FF; }
.wl-card--lvl-2 .wl-card__media::before { background: #FFCBEB; }
.wl-card--lvl-3 .wl-card__media::before { background: #C3FFFF; }
.wl-card.is-off .wl-card__media::before { background: #e5e5ea; }
.wl-card .wl-item__img {
    position: relative; z-index: 1; width: 100%; aspect-ratio: 1 / 1; background: #fff; border: 0; border-radius: 16px;
    box-shadow: 0 8px 14px -6px rgba(0, 0, 0, .28);
}
.wl-card__text { display: block; box-sizing: border-box; padding: 18px 2px 0; }
.wl-card__name {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-size: 15px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere;
}
.wl-card__meta {
    display: block; font-size: 13px; color: #6e6e73; margin-top: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wl-card > .enc-wish { position: absolute; top: 6px; right: 6px; z-index: 2; }

/* Личная полка */
.wl-pick__shelf { display:block; width:100%; padding:13px 12px; margin:12px 0;
 border:0; border-radius:999px; background:linear-gradient(90deg, #FF85CB 0%, #78DEEE 100%); color:#1c1b20; font:inherit; font-weight:700; cursor:pointer; }
.wl-pick__shelf:disabled { opacity:.55; cursor:wait; }
.wl-pick__error { color:#a11b28; font-size:13px; }
.shelf-card { position:relative; }
.shelf-remove { position:absolute; top:6px; right:6px; z-index:3; display:flex; align-items:center; justify-content:center;
 width:26px; height:26px; padding:0; margin:0; border:0; border-radius:50%; background:rgba(255,255,255,.94); color:#17171a;
 font:24px/1 Arial,sans-serif; cursor:pointer; box-shadow:0 2px 8px rgba(0,0,0,.12); }
.shelf-remove:disabled { opacity:.5; cursor:wait; }
.shelf-card.is-off .wl-item__img { filter:grayscale(1); }
.shelf-card.is-off .shelf-remove { background:#e5e5ea; color:#6e6e73; }
.shelf-card .wl-card__media::before { background:transparent; }
.shelf-card.shelf-card--mine .wl-card__media::before { background:linear-gradient(90deg,#FF85CB 0%,#78DEEE 100%); }
.shelf-card.is-off .wl-card__media::before { background:#e5e5ea; }
.shelf-owner { display:block; margin-top:4px; font-size:13px; font-weight:400; opacity:.75; }


/* Состояния подарка и полки */
.shelf-remove { color:#e5322d; font-size:19px; }
.enc-wish.is-on[data-level="1"] .wb { fill:#A895FF; }
.enc-wish.is-on[data-level="2"] .wb { fill:#FFCBEB; }
.enc-wish.is-on[data-level="3"] .wb { fill:#C3FFFF; }
/* Та же подложка, радиусы и тень, что у фото на полке. */
.enc-shelf-media { position:relative; display:block; }
.is-on-shelf .enc-shelf-media::before {
 content:""; position:absolute; left:0; right:0; top:0; bottom:-8px;
 border-radius:16px; background:linear-gradient(90deg,#FF85CB 0%,#78DEEE 100%); z-index:0;
}
.is-on-shelf .enc-shelf-media .enc-thumb,
.is-on-shelf .enc-shelf-media .enc-row-thumb {
 position:relative; z-index:1; box-sizing:border-box; border:0; border-radius:16px;
 background:#fff; overflow:hidden; box-shadow:0 8px 14px -6px rgba(0,0,0,.28);
}
.is-on-shelf .enc-shelf-media + .enc-name { margin-top:18px; }
.is-on-shelf .enc-shelf-media + .enc-row-body { margin-top:18px; }
.shelf-confetti { position:fixed; width:9px; height:14px; border-radius:2px; pointer-events:none; z-index:10000; }

.shelf-remove.shelf-remove--restore { width:auto; height:26px; padding:0 9px; border-radius:999px; font-family:inherit; font-size:12px; line-height:1; font-weight:600; }
