/* ============================================================================
   ТЕСТО СУШИ — единый файл стилей
   ----------------------------------------------------------------------------
   Структура (по порядку):
     01. Переменные и палитра
     02. Сброс и базовая типографика
     03. Утилиты (container, кнопки, иконки)
     04. Верхняя контактная полоса (topbar)
     05. Основная шапка (header) + логотип + навигация + корзина
     06. Hero (главная)
     07. Якорное меню категорий (catnav)
     08. Секция категории на главной (cat-section)
     09. Карточка товара (product)
     10. Заголовок страницы категории (cat-header)
     11. Блок «другие разделы»
     12. Страница товара
     13. Страница корзины
     14. Информационные страницы (доставка, статьи, политика)
     15. Подвал (footer)
     16. Адаптивность (мобилка / планшет)
     17. Админ-панель (изолированные классы admin-*)
   ============================================================================ */




/* ============================================================================
   01. ПЕРЕМЕННЫЕ И ПАЛИТРА
   ============================================================================ */

:root {
    /* Цвета фона — светлая (белая) тема */
    --bg:          #FFFFFF;   /* белый — основной фон */
    --surface:     #FFFFFF;   /* карточки */
    --surface-2:   #F4F5F7;   /* мягкая выделенная плашка (нейтральный серый) */

    /* Текст */
    --text:        #1A1A1A;   /* почти чёрный */
    --text-muted:  #5C5C5C;
    --text-soft:   #909090;

    /* Границы и тени */
    --border:      #E2E4E8;
    --border-soft: #EDEEF1;
    --shadow-sm:   0 1px 2px rgba(20, 20, 20, .04);
    --shadow-md:   0 8px 24px -8px rgba(20, 20, 20, .12);
    --shadow-lg:   0 20px 60px -20px rgba(20, 20, 20, .22);

    /* Акценты */
    --accent:      #D11E1E;   /* красный — под цвет логотипа ТеСТо */
    --accent-dark: #1C1816;
    --warn:        #C24914;

    /* Радиусы */
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 22px;
    --r-xl: 32px;

    /* Контейнер */
    --container: 1240px;
    --pad:       24px;

    /* Шрифты */
    --font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
    --font-body:    'Manrope', system-ui, -apple-system, sans-serif;
    /* Шрифт слогана на главной. Artifakt Element — платный, файлы кладутся
       в static/fonts/ (см. @font-face ниже). Пока их нет — используется Inter Thin. */
    --font-slogan:  'Artifakt Element', 'Inter', 'Manrope', system-ui, sans-serif;

    /* Тайминги */
    --t-fast: 120ms;
    --t-med:  220ms;
    --t-slow: 400ms;
    --ease:   cubic-bezier(.4, 0, .2, 1);
}




/* ============================================================================
   02. СБРОС И БАЗОВАЯ ТИПОГРАФИКА
   ============================================================================ */

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

html { scroll-behavior: smooth; scroll-padding-top: 140px; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin: 0;
    color: var(--text);
}

p { margin: 0; }

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--t-fast) var(--ease);
}

a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

ul { list-style: none; padding: 0; margin: 0; }

::selection { background: var(--accent); color: #fff; }




/* ============================================================================
   03. УТИЛИТЫ — контейнер, кнопки, иконки
   ============================================================================ */

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--pad);
}

.icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --- Кнопки --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.01em;
    transition: all var(--t-med) var(--ease);
    white-space: nowrap;
}

.btn--primary {
    background: var(--text);
    color: var(--bg);
}
.btn--primary:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}
.btn--ghost:hover {
    border-color: var(--text);
    color: var(--text);
}

.btn--full { width: 100%; justify-content: center; }

/* --- Хлебные крошки --- */
.breadcrumbs {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { color: var(--text-soft); }

/* --- Общий заголовок страницы --- */
.page-title {
    font-size: clamp(34px, 5vw, 56px);
    margin-bottom: 16px;
}
.page-lead {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 640px;
    margin-bottom: 48px;
}




/* ============================================================================
   04. ВЕРХНЯЯ КОНТАКТНАЯ ПОЛОСА (topbar)
   ============================================================================ */

.topbar {
    background: var(--text);
    color: #D6CFC4;
    font-size: 13px;
    padding: 10px 0;
    letter-spacing: 0.01em;
}

.topbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.topbar__group {
    display: flex;
    align-items: center;
    gap: 24px;
}

.topbar__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.topbar__item .icon { width: 14px; height: 14px; opacity: .7; }

.topbar__link:hover { color: #fff; }

.topbar__phone {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    transition: color var(--t-fast) var(--ease);
}
.topbar__phone:hover { color: var(--accent); }




/* ============================================================================
   05. ОСНОВНАЯ ШАПКА — логотип, навигация, корзина
   ============================================================================ */

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 12px -6px rgba(20, 20, 20, .12);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    height: 78px;
}

/* --- Логотип --- */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Логотип-картинка в шапке. Логотип почти квадратный, вписываем по высоте. */
.logo__img {
    height: 52px;
    width: auto;
    display: block;
    transition: transform var(--t-med) var(--ease);
}

.logo:hover .logo__img { transform: scale(1.04); }

/* Логотип в подвале — на тёмном фоне. Кладём на белую подложку,
   потому что у картинки белый фон (на тёмном смотрелся бы как белый прямоугольник). */
.logo--footer .logo__img {
    height: 96px;
    background: #fff;
    border-radius: var(--r-md);
    padding: 10px 14px;
}

.logo__mark {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    font-size: 22px;
    font-family: var(--font-display);
    line-height: 1;
}

.logo__text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 0.04em;
    color: var(--text);
}

.logo:hover { color: var(--text); }
.logo:hover .logo__mark { transform: rotate(-8deg); transition: transform var(--t-med) var(--ease); }

/* --- Категориальная навигация в шапке --- */
.nav {
    display: flex;
    gap: 4px;
    align-items: center;
}

.nav__link {
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all var(--t-fast) var(--ease);
}

.nav__link:hover {
    color: var(--text);
    background: var(--surface-2);
}

/* --- Кнопка-корзина --- */
.cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px 11px 16px;
    background: var(--text);
    color: var(--bg);
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    transition: all var(--t-med) var(--ease);
}

.cart-btn:hover {
    background: var(--accent);
    color: #fff;
}

.cart-btn .icon { width: 18px; height: 18px; }

.cart-btn__count {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.cart-btn:hover .cart-btn__count {
    background: #fff;
    color: var(--accent);
}

.cart-btn__count[data-empty] { display: none; }




/* ============================================================================
   06. HERO — главный (и единственный) экран главной страницы
   ============================================================================ */

.hero {
    padding: 40px 0 90px;
    overflow: hidden;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;      /* слоган и логотип строго на одном уровне */
    gap: 56px;
    min-height: 60vh;
}

/* --- Слоган --- */
.hero__title {
    font-family: var(--font-slogan);
    font-weight: 100;               /* начертание Hair */
    font-size: clamp(44px, 6.4vw, 104px);
    line-height: 1.02;
    letter-spacing: -0.02em;
    margin: 0 0 40px;
    display: flex;
    flex-direction: column;
}

.hero__title-red  { color: var(--accent); }
.hero__title-dark { color: var(--text); }

/* --- Кнопки под слоганом --- */
.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* --- Логотип справа --- */
.hero__art {
    position: relative;
    width: 100%;
    max-width: 620px;
    margin-left: auto;
    justify-self: end;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__logo {
    width: 100%;
    height: auto;
    display: block;
}




/* ============================================================================
   07. ЯКОРНОЕ МЕНЮ КАТЕГОРИЙ (catnav)
   ============================================================================ */

.catnav {
    position: sticky;
    top: 78px;
    z-index: 40;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    padding: 14px 0;
}

.catnav__inner {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

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

.catnav__pill {
    --accent: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px 9px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    transition: all var(--t-fast) var(--ease);
}

.catnav__pill:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.catnav__dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}




/* ============================================================================
   08. СЕКЦИЯ КАТЕГОРИИ НА ГЛАВНОЙ
   ============================================================================ */

.cat-section {
    padding: 72px 0;
}

.cat-section:not(:last-child) {
    border-bottom: 1px solid var(--border-soft);
}

.cat-section__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.cat-section__tag {
    --accent: var(--accent);
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 10px;
}

.cat-section__title {
    font-size: clamp(32px, 4vw, 48px);
}

.cat-section__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    transition: all var(--t-fast) var(--ease);
}

.cat-section__more:hover {
    color: var(--text);
    border-color: var(--text);
    transform: translateX(2px);
}

/* --- Сетка карточек --- */
.grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}




/* ============================================================================
   09. КАРТОЧКА ТОВАРА (product)
   ============================================================================ */

.product {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--t-med) var(--ease);
}

.product:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border);
}

/* Изображение / заглушка с инициалом */
.product__media {
    --accent: var(--accent);
    position: relative;
    aspect-ratio: 4 / 3;
    background:
        radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent) 18%, var(--surface-2)) 0%, var(--surface-2) 70%);
    overflow: hidden;
}

.product__initial {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 120px;
    font-weight: 400;
    color: var(--accent);
    opacity: 0.32;
    line-height: 1;
    user-select: none;
    transform: translateY(-2%);
    transition: transform var(--t-slow) var(--ease);
}

/* Реальная картинка товара (если загружена через админку) */
.product__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow) var(--ease);
}

.product:hover .product__img { transform: scale(1.04); }

.product:hover .product__initial {
    transform: translateY(-2%) scale(1.08);
}

.product__weight {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}

.product__body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.product__name {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.15;
}

.product__desc {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.5;
    flex: 1;
    /* Обрезаем длинные описания до двух строк */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Карточка — контейнер для container-запросов: цена масштабируется
   по ширине КАРТОЧКИ, а не экрана (важно на мобильной сетке в 2 колонки). */
.product { container-type: inline-size; }

.product__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    /* если цена длинная и вдвоём с кнопкой не помещаются —
       кнопка уезжает на свою строку, а не сплющивается */
    flex-wrap: wrap;
}

.product__price {
    font-family: var(--font-display);
    font-size: 20px;                     /* запасное значение для старых браузеров */
    font-size: clamp(12px, 6.4cqw, 20px);
    font-weight: 700;
    color: var(--text);
    line-height: 1.15;
    letter-spacing: -0.01em;
    white-space: nowrap;                 /* не разрывать число посередине */
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;                    /* абсурдно длинная цена не вылезет за карточку */
}

.btn-add {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;              /* кнопка не сжимается */
    white-space: nowrap;         /* «В корзину» не рвётся на две строки */
    padding: 9px 14px 9px 16px;
    background: var(--text);
    color: var(--bg);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    transition: all var(--t-fast) var(--ease);
}

.btn-add .icon { width: 14px; height: 14px; }

.btn-add:hover {
    background: var(--accent);
    transform: scale(1.04);
}

.btn-add.is-added {
    background: #2F5D50;
    pointer-events: none;
}




/* ============================================================================
   10. ЗАГОЛОВОК СТРАНИЦЫ КАТЕГОРИИ
   ============================================================================ */

.cat-header {
    --accent: var(--accent);
    padding: 56px 0 40px;
    position: relative;
    overflow: hidden;
}

.cat-header::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent) 0%, transparent 60%);
    pointer-events: none;
}

.cat-header__inner {
    position: relative;
}

.cat-header__tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 12px;
}

.cat-header__title {
    font-size: clamp(40px, 6vw, 72px);
    margin-bottom: 16px;
}

.cat-header__count {
    color: var(--text-muted);
    font-size: 15px;
}

/* --- Категория с обложкой: фото-баннер с затемнением и белым текстом --- */
.cat-header--has-cover {
    padding: 72px 0 56px;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
}

.cat-header--has-cover::before { display: none; }   /* убираем радиальное пятно */

.cat-header__cover {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* Затемняющий градиент поверх фото, чтобы читался текст */
.cat-header__cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(20, 20, 20, 0.25) 0%,
        rgba(20, 20, 20, 0.55) 65%,
        rgba(20, 20, 20, 0.78) 100%
    );
}

/* На обложке весь текст белый */
.cat-header--has-cover .cat-header__inner { color: #fff; }
.cat-header--has-cover .cat-header__title { color: #fff; }
.cat-header--has-cover .cat-header__tag { color: #fff; }
.cat-header--has-cover .cat-header__count { color: rgba(255, 255, 255, 0.85); }
.cat-header--has-cover .breadcrumbs,
.cat-header--has-cover .breadcrumbs a { color: rgba(255, 255, 255, 0.8); }
.cat-header--has-cover .breadcrumbs a:hover { color: #fff; }
.cat-header--has-cover .breadcrumbs span { color: rgba(255, 255, 255, 0.5); }




/* ============================================================================
   11. БЛОК «ДРУГИЕ РАЗДЕЛЫ»
   ============================================================================ */

.other-cats {
    padding: 48px 0 96px;
    border-top: 1px solid var(--border-soft);
    margin-top: 48px;
}

.other-cats__title {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--text-muted);
    font-weight: 500;
}

.other-cats__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.other-cats__item {
    --accent: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-weight: 500;
    font-size: 15px;
    transition: all var(--t-fast) var(--ease);
}

.other-cats__item:hover {
    border-color: var(--accent);
    color: var(--text);
    transform: translateY(-2px);
}

.other-cats__dot {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
}




/* ============================================================================
   12. СТРАНИЦА ТОВАРА
   ============================================================================ */

.product-page { padding: 32px 0 96px; }

.product-page__grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: start;
    margin-top: 24px;
}

.product-page__media {
    --accent: var(--accent);
    position: relative;
    aspect-ratio: 1 / 1;
    background:
        radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--accent) 22%, var(--surface-2)) 0%, var(--surface-2) 75%);
    border-radius: var(--r-xl);
    overflow: hidden;
}

.product-page__initial {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: clamp(180px, 28vw, 280px);
    font-weight: 400;
    color: var(--accent);
    opacity: 0.4;
    line-height: 1;
    transform: translateY(-2%);
}

.product-page__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-page__title {
    font-size: clamp(36px, 5vw, 56px);
    margin-bottom: 16px;
}

.product-page__desc {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
}

.product-page__params {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 36px;
    padding: 20px 0;
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}

.product-page__params li {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
}

.product-page__params span { color: var(--text-muted); }

.product-page__buy {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.product-page__price {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
}




/* ============================================================================
   13. СТРАНИЦА КОРЗИНЫ
   ============================================================================ */

.cart-page { padding: 32px 0 96px; }

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    margin-top: 40px;
    align-items: start;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Карточка-строка товара в корзине (рендерится из JS) */
.cart-item {
    display: grid;
    grid-template-columns: 96px 1fr auto auto;
    gap: 20px;
    align-items: center;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-md);
}

.cart-item__media {
    --accent: var(--accent);
    width: 96px;
    height: 96px;
    border-radius: var(--r-sm);
    background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--accent) 22%, var(--surface-2)), var(--surface-2));
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 44px;
    color: var(--accent);
    opacity: 0.95;
    font-weight: 400;
}

.cart-item__title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.cart-item__price { font-size: 14px; color: var(--text-muted); }

.qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
}

.qty button {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    font-size: 16px;
    color: var(--text-muted);
    transition: color var(--t-fast) var(--ease);
}

.qty button:hover { color: var(--accent); }

.qty span {
    min-width: 28px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.cart-item__remove {
    color: var(--text-soft);
    padding: 6px;
    border-radius: 50%;
    transition: all var(--t-fast) var(--ease);
}

.cart-item__remove:hover { color: var(--accent); background: var(--surface-2); }

/* Заглушка пустой корзины */
.cart-empty {
    padding: 80px 24px;
    text-align: center;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--r-lg);
}

.cart-empty__icon { font-size: 56px; margin-bottom: 16px; }
.cart-empty h2 { font-size: 28px; margin-bottom: 8px; }
.cart-empty p { color: var(--text-muted); margin-bottom: 24px; }

/* Сводка справа */
.cart-summary {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    padding: 24px;
    position: sticky;
    top: 100px;
}

.cart-summary__title { font-size: 22px; margin-bottom: 20px; }

.cart-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    font-size: 15px;
    color: var(--text-muted);
}

.cart-summary__row--total {
    border-top: 1px solid var(--border-soft);
    margin-top: 8px;
    padding-top: 18px;
    color: var(--text);
    font-size: 17px;
    font-weight: 600;
}

.cart-summary__row--total span:last-child {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
}

.cart-summary__hint {
    background: var(--surface-2);
    color: var(--text-muted);
    border-radius: var(--r-sm);
    padding: 12px 14px;
    font-size: 13px;
    margin: 12px 0 20px;
    display: none;
}

.cart-summary__hint.is-visible { display: block; }

.cart-summary__note {
    font-size: 12px;
    color: var(--text-soft);
    text-align: center;
    margin-top: 12px;
    line-height: 1.5;
}




/* ============================================================================
   14. ИНФОРМАЦИОННЫЕ СТРАНИЦЫ (доставка, статьи, политика)
   ============================================================================ */

.info-page { padding: 32px 0 96px; }
.info-page__inner--narrow { max-width: 760px; }

/* --- Сетка карточек (доставка) --- */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 8px 0 64px;
}

.info-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    padding: 32px;
    position: relative;
    transition: all var(--t-med) var(--ease);
}

.info-card:hover {
    border-color: var(--border);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.info-card__num {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 12px;
}

.info-card__title { font-size: 24px; margin-bottom: 12px; }

.info-card p { color: var(--text-muted); line-height: 1.6; }

/* --- Зоны доставки --- */
.info-zones {
    background: var(--surface);
    border-radius: var(--r-lg);
    padding: 40px;
    border: 1px solid var(--border-soft);
}

.info-zones__title { font-size: 28px; margin-bottom: 16px; }
.info-zones p { color: var(--text-muted); margin-bottom: 24px; }
.info-zones__list { display: flex; flex-direction: column; gap: 12px; }
.info-zones__list li {
    padding: 16px 20px;
    background: var(--surface-2);
    border-radius: var(--r-md);
    font-size: 15px;
}
.info-zones__list strong { display: block; margin-bottom: 4px; color: var(--text); }

/* --- Сетка статей --- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.article-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all var(--t-med) var(--ease);
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border);
}

.article-card__date { font-size: 12px; color: var(--text-soft); letter-spacing: 0.04em; text-transform: uppercase; }
.article-card__title { font-size: 22px; line-height: 1.2; }
.article-card p { color: var(--text-muted); font-size: 14.5px; line-height: 1.6; flex: 1; }
.article-card__link {
    font-weight: 600;
    color: var(--accent);
    font-size: 14px;
    margin-top: 8px;
}

/* --- Длинный текст (политика и т. п.) --- */
.prose { color: var(--text-muted); line-height: 1.7; }
.prose h2 { font-size: 24px; margin: 32px 0 12px; color: var(--text); }
.prose p { margin-bottom: 14px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose__note {
    background: var(--surface-2);
    border-left: 3px solid var(--accent);
    padding: 16px 20px;
    border-radius: var(--r-sm);
    font-size: 14px;
    margin-top: 32px;
}




/* ============================================================================
   15. ПОДВАЛ (footer)
   ============================================================================ */

.footer {
    background: var(--text);
    color: #C9C0B5;
    margin-top: 64px;
    padding-top: 64px;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 48px;
}

.logo--footer .logo__text { color: #fff; }
.logo--footer { margin-bottom: 16px; }

.footer__tagline {
    color: #9C9388;
    font-size: 14px;
    margin-bottom: 20px;
    max-width: 280px;
}

.footer__phone {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.footer__hours { font-size: 13px; color: #9C9388; }

.footer__title {
    color: #fff;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 18px;
}

.footer__list { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.footer__list a { color: #C9C0B5; }
.footer__list a:hover { color: var(--accent); }
.footer__list--addresses li { color: #C9C0B5; }

.footer__social { display: flex; gap: 10px; margin-top: 20px; }
.footer__social a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: all var(--t-fast) var(--ease);
}
.footer__social a:hover { background: var(--accent); }

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 22px 0;
}

.footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    color: #8A8278;
    gap: 16px;
    flex-wrap: wrap;
}

.footer__bottom a:hover { color: #fff; }




/* ============================================================================
   16. АДАПТИВНОСТЬ
   ============================================================================ */

/* --- Большие планшеты / мелкие десктопы --- */
@media (max-width: 1100px) {
    .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer__inner { grid-template-columns: 1fr 1fr; gap: 36px; }
    .nav__link { padding: 9px 11px; font-size: 13.5px; }
}

/* --- Планшеты --- */
@media (max-width: 900px) {
    .hero__inner {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .hero__art {
        max-width: 360px;
        margin: 0 auto;
        order: -1;
    }
    .hero { padding: 40px 0 56px; }

    .product-page__grid { grid-template-columns: 1fr; gap: 32px; }

    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }

    .info-grid { grid-template-columns: 1fr; }
    .articles-grid { grid-template-columns: 1fr 1fr; }

    .nav { display: none; }   /* категории в шапке прячем — есть catnav ниже */
    .topbar__group:first-child { display: none; }
}

/* --- Мобильники --- */
@media (max-width: 640px) {
    :root { --pad: 16px; }

    .topbar { font-size: 12px; }
    .topbar__group { gap: 14px; }
    .topbar__link { display: none; }

    .header__inner { height: 64px; gap: 12px; }
    .logo__text { font-size: 17px; }
    .logo__mark { width: 38px; height: 38px; font-size: 18px; }

    .cart-btn__label { display: none; }
    .cart-btn { padding: 10px 12px; }

    html { scroll-padding-top: 130px; }

    .hero { padding: 28px 0 40px; }
    .hero__title { font-size: clamp(38px, 11vw, 56px); }
    .hero__lead { font-size: 16px; }
    .hero__meta { gap: 24px; }
    .hero__meta strong { font-size: 20px; }
    .hero__actions .btn { padding: 12px 20px; font-size: 14px; }

    .catnav { top: 64px; padding: 10px 0; }
    .catnav__pill { padding: 8px 14px 8px 12px; font-size: 13px; }

    .cat-section { padding: 48px 0; }
    .cat-section__head { flex-direction: column; align-items: flex-start; }
    .cat-section__more { align-self: flex-start; }

    .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .product__body { padding: 14px 14px 16px; }
    .product__name { font-size: 16px; }
    .product__desc { font-size: 12.5px; }
    .product__price { font-size: 17px; }
    .product__initial { font-size: 80px; }
    .btn-add span { display: none; }
    .btn-add { padding: 8px; width: 36px; height: 36px; justify-content: center; }
    .btn-add .icon { width: 16px; height: 16px; }

    .articles-grid { grid-template-columns: 1fr; }
    .info-zones { padding: 24px; }

    .footer__inner { grid-template-columns: 1fr; gap: 32px; padding-bottom: 36px; }
    .footer { padding-top: 48px; }

    .cart-item {
        grid-template-columns: 72px 1fr;
        grid-template-rows: auto auto;
        gap: 12px 16px;
    }
    .cart-item__media { width: 72px; height: 72px; font-size: 32px; }
    .cart-item .qty,
    .cart-item__remove { grid-column: 2; justify-self: start; }
}




/* ============================================================================
   17. АДМИН-ПАНЕЛЬ
   ----------------------------------------------------------------------------
   Все классы здесь начинаются с admin- или auth- — изолированы от публичных.
   Можно безопасно править: на витрину сайта не повлияет.
   ============================================================================ */

/* --- Общий фон админки --- */
.admin-body {
    background: var(--surface-2);
    min-height: 100vh;
}

/* ========== Логин ========== */

.admin-body--auth {
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    padding: 40px 36px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-card__logo {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 28px;
    line-height: 1;
    margin-bottom: 4px;
}

/* Логотип-картинка на странице логина */
.auth-card__logo-img {
    width: auto;
    height: 130px;
    display: block;
    margin: 0 auto 8px;
}

.auth-card__title { text-align: center; }
.auth-card__sub { text-align: center; }

.auth-card__title { font-size: 28px; }

.auth-card__sub {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 8px;
}

.auth-card__error {
    background: #FDECEE;
    border: 1px solid #F5C4CB;
    color: #8B1A2A;
    padding: 12px 14px;
    border-radius: var(--r-sm);
    font-size: 14px;
}

.auth-card__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-card__field span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.auth-card__field input {
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    font-family: var(--font-body);
    font-size: 15px;
    background: var(--surface);
    transition: border-color var(--t-fast) var(--ease);
}

.auth-card__field input:focus {
    outline: none;
    border-color: var(--accent);
}

.auth-card__back {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 8px;
}

/* ========== Шапка админки ========== */

.admin-header {
    background: var(--text);
    color: #C9C0B5;
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-header__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 14px var(--pad);
    display: flex;
    align-items: center;
    gap: 32px;
}

.admin-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.admin-logo:hover { color: #fff; }

/* Логотип-картинка в шапке админки. Шапка тёмная, у логотипа белый фон —
   кладём на белую подложку со скруглением. */
.admin-logo__img {
    height: 40px;
    width: auto;
    display: block;
    background: #fff;
    border-radius: var(--r-sm);
    padding: 4px 8px;
}

.admin-logo__mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    background: var(--accent);
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 16px;
    line-height: 1;
}

.admin-logo__text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.02em;
}

.admin-logo__text em {
    font-style: normal;
    font-weight: 400;
    color: #8A8278;
    margin-left: 4px;
}

.admin-header__nav {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.admin-header__link {
    color: #C9C0B5;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 999px;
    transition: all var(--t-fast) var(--ease);
}

.admin-header__link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.admin-header__link--ext { color: #8A8278; }

.admin-header__user {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
}

.admin-header__username {
    color: #fff;
    font-weight: 600;
}

.admin-header__logout {
    color: #8A8278;
    font-size: 13px;
}

.admin-header__logout:hover { color: #fff; }

/* ========== Контент админки ========== */

.admin-main { padding: 40px 0 80px; }

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.admin-h1 {
    font-size: 36px;
    line-height: 1;
    margin: 0;
}

.admin-h1__sub {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 8px;
}

.admin-back {
    display: inline-block;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 12px;
}

.admin-back:hover { color: var(--accent); }

/* ========== Секция с одной категорией товаров ========== */

.admin-section {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    padding: 24px;
    margin-bottom: 20px;
}

.admin-section__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 18px;
}

.admin-section__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.admin-section__count {
    background: var(--surface-2);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13px;
    padding: 3px 10px;
    border-radius: 999px;
    margin-left: 4px;
}

.admin-empty {
    color: var(--text-muted);
    padding: 16px 0 4px;
    font-size: 14px;
}

.admin-empty a {
    color: var(--accent);
    margin-left: 6px;
    font-weight: 600;
}

/* ========== Таблица товаров ========== */

.admin-table-wrap { overflow-x: auto; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table th {
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-soft);
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-soft);
}

.admin-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-soft);
    vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }

.admin-table tr:hover td { background: var(--surface-2); }

.admin-table__col-thumb { width: 64px; }
.admin-table__col-num   { width: 90px; text-align: right; white-space: nowrap; }
.admin-table__col-actions { width: 100px; text-align: right; }

.admin-table__desc {
    color: var(--text-muted);
    max-width: 420px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Превью товара в таблице */
.admin-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--r-sm);
    object-fit: cover;
}

.admin-thumb--empty {
    --accent: var(--accent);
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--accent) 18%, var(--surface-2));
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
}

/* Маленькие кнопки действий */
.btn-sm {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    background: var(--surface-2);
    color: var(--text);
    border-radius: var(--r-sm);
    font-size: 14px;
    margin-left: 4px;
    transition: all var(--t-fast) var(--ease);
}

.btn-sm:hover { background: var(--text); color: var(--bg); }

.btn-sm--danger:hover { background: var(--accent); color: #fff; }

.inline-form { display: inline; }

/* ========== Форма редактирования ========== */

.admin-form {
    max-width: 720px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    padding: 36px;
}

.admin-form__row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.admin-form__row label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.02em;
}

.admin-form__row small {
    font-size: 12.5px;
    color: var(--text-soft);
    line-height: 1.5;
}

.admin-form__row input[type="text"],
.admin-form__row input[type="number"],
.admin-form__row textarea,
.admin-form__row select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    font-family: var(--font-body);
    font-size: 15px;
    background: var(--surface);
    color: var(--text);
    transition: border-color var(--t-fast) var(--ease);
}

.admin-form__row input:focus,
.admin-form__row textarea:focus,
.admin-form__row select:focus {
    outline: none;
    border-color: var(--accent);
}

.admin-form__row textarea {
    resize: vertical;
    min-height: 80px;
    font-family: var(--font-body);
}

.admin-form__row input[type="file"] {
    font-size: 14px;
    padding: 10px;
    border: 1.5px dashed var(--border);
    border-radius: var(--r-sm);
    background: var(--surface-2);
}

.admin-form__split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.admin-form__split .admin-form__row { margin-bottom: 24px; }

.admin-form__current-img {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: var(--surface-2);
    border-radius: var(--r-sm);
    margin-bottom: 8px;
}

.admin-form__current-img img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--r-sm);
}

.admin-form__checkbox {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--text-muted) !important;
}

.admin-form__checkbox input { accent-color: var(--accent); }

.admin-form__actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-soft);
}

/* ========== Панель категорий на дашборде ========== */

.admin-cats-panel {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    padding: 24px;
    margin-bottom: 28px;
}

.admin-cats-panel__title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.admin-cats-panel__hint {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 18px;
}

.admin-cats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.admin-cat-card {
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: all var(--t-fast) var(--ease);
    background: var(--surface);
}

.admin-cat-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    color: var(--text);
}

.admin-cat-card__cover {
    --accent: var(--accent);
    aspect-ratio: 16 / 7;
    background: color-mix(in srgb, var(--accent) 14%, var(--surface-2));
    position: relative;
    overflow: hidden;
}

.admin-cat-card__cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-cat-card__noimg {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 12px;
    color: var(--text-soft);
    letter-spacing: 0.02em;
}

.admin-cat-card__body {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.admin-cat-card__name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
}

.admin-cat-card__edit {
    font-size: 12.5px;
    color: var(--text-soft);
    white-space: nowrap;
}

.admin-cat-card:hover .admin-cat-card__edit { color: var(--accent); }

/* Ссылка «изменить категорию» в заголовке секции товаров */
.admin-section__edit {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 12.5px;
    color: var(--text-soft);
    margin-left: auto;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    transition: all var(--t-fast) var(--ease);
}

.admin-section__edit:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* Делаем заголовок секции flex, чтобы ссылка ушла вправо */
.admin-section__title { width: 100%; }

/* ========== Выбор цвета (color picker) в форме категории ========== */

.admin-form__color {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-form__color input[type="color"] {
    width: 56px;
    height: 40px;
    padding: 2px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--surface);
    cursor: pointer;
}

.admin-form__color-val {
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

/* --- Адаптив для админки --- */
@media (max-width: 700px) {
    .admin-header__inner { gap: 12px; flex-wrap: wrap; }
    .admin-header__nav { order: 3; width: 100%; }
    .admin-header__link { padding: 6px 10px; }
    .admin-form { padding: 24px 20px; }
    .admin-form__split { grid-template-columns: 1fr; gap: 0; }
    .admin-table__col-desc, .admin-table__desc { display: none; }
    .admin-h1 { font-size: 26px; }
    .admin-cats-grid { grid-template-columns: 1fr 1fr; }
    .admin-section__edit { margin-left: 0; }
}




/* ============================================================================
   18. ШРИФТ СЛОГАНА — Artifakt Element (Hair)
   ----------------------------------------------------------------------------
   Artifakt Element — платный шрифт, файлы в комплект не входят.
   Чтобы слоган на главной отображался именно им:
     1) положи файлы в /var/www/testo-sushi/static/fonts/
        ArtifaktElement-Hair.ttf
     2) больше ничего делать не нужно — правило ниже подхватит их само.
   Пока файлов нет, слоган рендерится запасным Inter Thin (тоже тонкий).
   ============================================================================ */

@font-face {
    font-family: 'Artifakt Element';
    src: url('/static/fonts/ArtifaktElement-Hair.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}




/* ============================================================================
   19. НАВИГАЦИЯ С ГРУППАМИ (выпадающее меню «Роллы»)
   ============================================================================ */

.nav__group {
    position: relative;
}

.nav__link--group {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-family: var(--font-body);
}

.nav__chev {
    width: 14px;
    height: 14px;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform var(--t-fast) var(--ease);
}

.nav__group:hover .nav__chev,
.nav__group:focus-within .nav__chev { transform: rotate(180deg); }

.nav__dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    min-width: 210px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--t-med) var(--ease);
    z-index: 60;
}

/* Невидимый мостик, чтобы курсор не «проваливался» между кнопкой и списком */
.nav__dropdown::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.nav__group:hover .nav__dropdown,
.nav__group:focus-within .nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav__dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--r-sm);
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    transition: background var(--t-fast) var(--ease);
}

.nav__dropdown-link:hover {
    background: var(--surface-2);
    color: var(--text);
}

.nav__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Ссылка «Меню» — только на мобильных, вместо полной навигации */
.nav-mobile-link {
    display: none;
    padding: 9px 16px;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-left: auto;
    margin-right: 12px;
}

.nav-mobile-link:hover { border-color: var(--text); color: var(--text); }




/* ============================================================================
   20. СТРАНИЦА «МЕНЮ» — плитки разделов
   ============================================================================ */

.menu-page { padding: 32px 0 96px; }

.menu-group { margin-bottom: 56px; }

.menu-group__title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(26px, 3.4vw, 38px);
    margin-bottom: 24px;
}

.menu-group__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.menu-tile {
    --accent: var(--accent);
    display: block;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: all var(--t-med) var(--ease);
}

.menu-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border);
    color: var(--text);
}

.menu-tile__media {
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 35% 30%,
            color-mix(in srgb, var(--accent) 22%, var(--surface-2)) 0%,
            var(--surface-2) 75%);
}

.menu-tile__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow) var(--ease);
}

.menu-tile:hover .menu-tile__media img { transform: scale(1.05); }

.menu-tile__body {
    padding: 16px 18px 18px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.menu-tile__name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 18px;
    line-height: 1.15;
}

.menu-tile__count {
    font-size: 12.5px;
    color: var(--text-soft);
    white-space: nowrap;
}




/* ============================================================================
   21. АДАПТИВНОСТЬ ДЛЯ НОВЫХ БЛОКОВ
   ============================================================================ */

@media (max-width: 900px) {
    /* Полную навигацию прячем (правило есть в секции 16),
       вместо неё показываем ссылку «Меню» */
    .nav-mobile-link { display: inline-block; }

    .hero__inner {
        grid-template-columns: 1fr;
        gap: 28px;
        min-height: 0;
        text-align: center;
    }
    .hero__art { order: -1; max-width: 420px; margin: 0 auto; }
    .hero__title { align-items: center; }
    .hero__actions { justify-content: center; }
}

@media (max-width: 640px) {
    .hero { padding: 24px 0 56px; }
    .hero__art { max-width: 300px; }
    .hero__title { font-size: clamp(34px, 11vw, 52px); margin-bottom: 28px; }
    .menu-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .menu-tile__body { padding: 12px 14px 14px; flex-direction: column; align-items: flex-start; gap: 4px; }
    .menu-tile__name { font-size: 15px; }
    .menu-group { margin-bottom: 40px; }
}




/* ============================================================================
   22. ПОЛОСА ПРОКРУТКИ
   ----------------------------------------------------------------------------
   Тонкая, скруглённая, без фона дорожки. Прозрачная рамка вокруг ползунка
   даёт отступ от края и работает на любом фоне (белом и сером в админке).
   ============================================================================ */

/* Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: #CBD0D8 transparent;
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #CBD0D8;
    border-radius: 999px;
    border: 3px solid transparent;   /* отступ от краёв — полоска выглядит тонкой */
    background-clip: padding-box;
    transition: background-color var(--t-fast) var(--ease);
}

::-webkit-scrollbar-thumb:hover {
    background-color: #A7AEB9;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:active {
    background-color: #8B929D;
    background-clip: padding-box;
}

::-webkit-scrollbar-corner {
    background: transparent;
}


/* ============================================================================
   18. КОРЗИНА ПЕРЕД ГЛАЗАМИ (как на kitaev-sushi.ru)
   - .cat-layout  — двухколоночная раскладка страницы категории
   - .cartdock    — липкая панель корзины справа (десктоп)
   - .cart-line   — позиция внутри панели
   - .cartbar     — мобильная плашка снизу
   - .cart-modal  — мобильный оверлей корзины
   ============================================================================ */

/* --- Раскладка: товары + корзина справа --- */

.cat-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 348px;
    gap: 28px;
    align-items: start;
}

/* --- Панель корзины --- */

.cartdock {
    position: sticky;
    top: 92px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 112px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: opacity .45s cubic-bezier(.22,1,.36,1),
                transform .45s cubic-bezier(.22,1,.36,1);
}

/* Пока корзина пуста — панель полностью спрятана; при первом товаре выезжает из правого верхнего угла */
.cartdock.is-empty {
    opacity: 0;
    transform: translate(36px, -28px) scale(.97);
    pointer-events: none;
}

.cartdock__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 12px;
}

.cartdock__title {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
}

.cartdock__headcount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    margin-left: 8px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    vertical-align: 3px;
}

.cartdock__mode {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin: 0 20px 12px;
    padding: 4px;
    background: var(--surface-2);
    border-radius: 999px;
}

.cartdock__mode-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 999px;
    background: transparent;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--t-fast) var(--ease);
}

.cartdock__mode-btn.is-active {
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.cartdock__items {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 4px 20px 8px;
    min-height: 60px;
}

.cartdock__empty {
    padding: 26px 20px 30px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.5;
}

.cartdock__empty a { color: var(--accent); font-weight: 600; }

/* --- Позиция в корзине --- */

.cart-line {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-soft);
}

.cart-line:last-child { border-bottom: none; }

.cart-line__media {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-sm);
    background: var(--surface-2);
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-soft);
}

.cart-line__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    /* Обрезаем длинные названия в две строки */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-line__price {
    margin-top: 2px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.cart-line__controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-line__controls .qty { margin: 0; }

.cart-line__sum {
    min-width: 64px;
    text-align: right;
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.cart-line__remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-soft);
    cursor: pointer;
    transition: all var(--t-fast) var(--ease);
}

.cart-line__remove:hover { color: var(--accent); background: var(--surface-2); }

/* --- Итоги --- */

.cartdock__foot {
    padding: 12px 20px 18px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.cartdock__progress {
    margin-bottom: 12px;
}

.cartdock__progress i {
    display: block;
    height: 4px;
    border-radius: 999px;
    background: var(--border-soft);
    overflow: hidden;
    position: relative;
}

.cartdock__progress i::after {
    content: "";
    display: block;
    height: 100%;
    width: var(--pct, 0%);
    border-radius: 999px;
    background: var(--accent);
    transition: width var(--t-slow) var(--ease);
}

.cartdock__progress-label {
    display: block;
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.cartdock__row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 14px;
    color: var(--text-muted);
}

.cartdock__row b { color: var(--text); font-variant-numeric: tabular-nums; }

.cartdock__row--total {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid var(--border-soft);
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}

.cartdock__row--total b { font-size: 20px; font-weight: 800; }

.cartdock__checkout { margin-top: 12px; }

.cartdock__checkout[disabled] {
    opacity: .45;
    pointer-events: none;
}

.cartdock__hint {
    margin-top: 8px;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--text-muted);
    text-align: center;
}

.cartdock__note {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-soft);
    text-align: center;
}

/* --- Мобильная плашка снизу --- */

.cartbar {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 90;
    transform: translateY(140%);
    transition: transform var(--t-med) var(--ease);
}

.cartbar.is-visible { transform: translateY(0); }

.cartbar__btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-body);
    cursor: pointer;
    box-shadow: var(--shadow-lg);
}

.cartbar__icon {
    position: relative;
    display: flex;
    align-items: center;
}

.cartbar__count {
    position: absolute;
    top: -7px;
    right: -9px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border-radius: 999px;
    background: #fff;
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
}

.cartbar__sum {
    flex: 1;
    text-align: left;
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.cartbar__label {
    font-size: 14px;
    font-weight: 600;
    opacity: .9;
}

/* --- Мобильный оверлей корзины --- */

.cart-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    visibility: hidden;
    pointer-events: none;
}

.cart-modal.is-open {
    visibility: visible;
    pointer-events: auto;
}

.cart-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 14, 13, .55);
    opacity: 0;
    transition: opacity var(--t-med) var(--ease);
}

.cart-modal.is-open .cart-modal__backdrop { opacity: 1; }

.cart-modal__panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
    transition: transform var(--t-slow) var(--ease);
    padding-bottom: env(safe-area-inset-bottom);
}

.cart-modal.is-open .cart-modal__panel { transform: translateY(0); }

.cart-modal__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 6px;
}

.cart-modal__label {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
}

.cart-modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--text);
    cursor: pointer;
}

.cart-modal__panel .cartdock {
    position: static;
    max-height: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

body.cart-open { overflow: hidden; }

/* --- Адаптив --- */

@media (max-width: 1200px) {
    .cat-layout { grid-template-columns: 1fr; }
    .cartdock--desktop { display: none; }
}

@media (min-width: 1201px) {
    .cartbar { display: none; }
    .cart-modal { display: none; }
}

@media (max-width: 640px) {
    .cartdock__head { padding: 14px 16px 10px; }
    .cartdock__mode { margin: 0 16px 10px; }
    .cartdock__items { padding: 4px 16px 8px; }
    .cartdock__foot { padding: 12px 16px 16px; }
    .cart-line { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; }
    .cart-line__sum { display: none; }
}

/* ============================================================================
   18. КОРЗИНА ПЕРЕД ГЛАЗАМИ (dock) + мобильная плашка + оверлей
   ============================================================================ */

/* --- Двухколоночный layout страницы категории --- */
.cat-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 336px;
    gap: 28px;
    align-items: start;
}
.cat-layout__main { min-width: 0; }

/* --- Липкая панель корзины --- */
.cartdock {
    position: sticky;
    top: 92px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 116px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.cartdock__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 0;
}
.cartdock__title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
}
.cartdock__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}
.cartdock__count[data-empty] { display: none; }

/* Доставка / Самовывоз */
.cartdock__mode {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin: 14px 20px 0;
    padding: 4px;
    background: var(--surface-2);
    border-radius: 999px;
}
.cartdock__mode-btn {
    padding: 8px 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--t-fast) var(--ease);
}
.cartdock__mode-btn.is-active {
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

/* Список позиций */
.cartdock__items {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scrollbar-width: thin;
}
.cartdock__items[hidden] { display: none; }

.cart-line {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}
.cart-line__media {
    width: 44px;
    height: 44px;
    border-radius: var(--r-sm);
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-soft);
    flex-shrink: 0;
}
.cart-line__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.cart-line__price { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.cart-line__controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.cart-line__sum { font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.cart-line__remove {
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text-soft);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-fast) var(--ease);
}
.cart-line__remove:hover { color: var(--accent); background: var(--surface-2); }

/* Кнопки +/- уже описаны в секции 13 (.qty) — тут только компактнее */
.cartdock .qty button { width: 26px; height: 26px; font-size: 15px; }
.cartdock .qty span { min-width: 24px; font-size: 13.5px; }

/* Пустая корзина */
.cartdock__empty {
    flex: 1 1 auto;
    padding: 36px 24px;
    text-align: center;
}
.cartdock__empty[hidden] { display: none; }
.cartdock__empty-icon { font-size: 40px; display: block; margin-bottom: 12px; }
.cartdock__empty p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* Футер панели: прогресс + итоги + кнопка */
.cartdock__foot {
    flex-shrink: 0;
    padding: 14px 20px 20px;
    border-top: 1px solid var(--border-soft);
    background: var(--surface);
}
.cartdock__foot[hidden] { display: none; }

.cartdock__progress { margin-bottom: 12px; }
.cartdock__progress[hidden] { display: none; }
.cartdock__progress-bar {
    height: 4px;
    border-radius: 999px;
    background: var(--border-soft);
    overflow: hidden;
}
.cartdock__progress-bar i {
    display: block;
    height: 100%;
    width: 0;
    background: var(--accent);
    border-radius: 999px;
    transition: width var(--t-slow) var(--ease);
}
.cartdock__progress-label {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.cartdock__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 4px 0;
    font-size: 14px;
    color: var(--text-muted);
}
.cartdock__row b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.cartdock__row--total { padding-top: 10px; margin-top: 6px; border-top: 1px dashed var(--border); }
.cartdock__row--total span { font-size: 15px; font-weight: 700; color: var(--text); }
.cartdock__row--total b { font-size: 20px; font-weight: 800; }

.cartdock__hint {
    margin: 8px 0 0;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--text-muted);
}
.cartdock__hint.is-warning { color: var(--accent); font-weight: 600; }
.cartdock__hint[hidden] { display: none; }

.cartdock__checkout { margin-top: 14px; }
.cartdock__checkout:disabled {
    opacity: .45;
    pointer-events: none;
}
.cartdock__note {
    margin-top: 10px;
    font-size: 11.5px;
    color: var(--text-soft);
    text-align: center;
}

/* --- Мобильная нижняя плашка --- */
.cartbar {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 150;
    transform: translateY(140%);
    transition: transform var(--t-med) var(--ease);
    pointer-events: none;
}
.cartbar.is-visible {
    transform: translateY(0);
    pointer-events: auto;
}
.cartbar__btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--text);
    color: #fff;
    font-family: var(--font-body);
    cursor: pointer;
    box-shadow: var(--shadow-lg);
}
.cartbar__icon { position: relative; display: inline-flex; }
.cartbar__count {
    position: absolute;
    top: -7px;
    right: -9px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cartbar__sum { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cartbar__label {
    margin-left: auto;
    font-size: 14px;
    font-weight: 600;
    opacity: .85;
}

/* --- Мобильный оверлей корзины (bottom sheet) --- */
.cart-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    visibility: hidden;
    pointer-events: none;
}
.cart-modal.is-open {
    visibility: visible;
    pointer-events: auto;
}
.cart-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 14, 14, .55);
    opacity: 0;
    transition: opacity var(--t-med) var(--ease);
}
.cart-modal.is-open .cart-modal__backdrop { opacity: 1; }
.cart-modal__panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border-radius: 24px 24px 0 0;
    transform: translateY(102%);
    transition: transform var(--t-slow) var(--ease);
    box-shadow: var(--shadow-lg);
}
.cart-modal.is-open .cart-modal__panel { transform: translateY(0); }

.cart-modal__topline {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px 0;
}
.cart-modal__label {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
}
.cart-modal__close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cart-modal .cartdock {
    position: static;
    max-height: none;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    flex: 1 1 auto;
    min-height: 0;
}

/* Блокировка прокрутки подложки при открытом оверлее */
body.cart-open { overflow: hidden; }

/* --- Адаптивность корзины --- */
@media (max-width: 1199px) {
    .cat-layout { grid-template-columns: 1fr; }
    .cat-layout > .cartdock { display: none; }
}
@media (min-width: 1200px) {
    .cartbar { display: none; }
    .cart-modal { display: none; }
}



/* ============================================================================
   18. КОРЗИНА ПЕРЕД ГЛАЗАМИ (липкий док как на kitaev-sushi.ru)
   ----------------------------------------------------------------------------
   - cat-layout: две колонки — товары + липкая корзина справа
   - cartdock:   сама корзина (десктоп ≥ 1200px), sticky
   - cart-line:  строка позиции внутри корзины
   - cartbar:    нижняя плашка на мобильных (< 1200px)
   - cart-modal: оверлей корзины на мобильных (открывается по плашке/шапке)
   ============================================================================ */

/* --- Двухколоночный layout страницы категории --- */

.cat-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: start;
}

/* --- Липкая корзина --- */

.cartdock {
    position: sticky;
    top: 92px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 108px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.cartdock__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 0;
}

.cartdock__title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
}

.cartdock__count {
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.cartdock__count[data-empty] { display: none; }

.cartdock__mode {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin: 14px 20px 0;
    padding: 4px;
    background: var(--surface-2);
    border-radius: 999px;
}

.cartdock__mode-btn {
    padding: 8px 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--t-fast) var(--ease);
}

.cartdock__mode-btn:hover { color: var(--text); }

.cartdock__mode-btn.is-active {
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.cartdock__items {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scrollbar-width: thin;
}

.cartdock__empty {
    padding: 26px 20px 30px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.5;
}

.cartdock__empty-icon {
    display: block;
    font-size: 34px;
    margin-bottom: 8px;
}

.cartdock__foot {
    padding: 14px 20px 18px;
    border-top: 1px solid var(--border-soft);
    background: var(--surface);
}

/* --- Прогресс до бесплатной доставки --- */

.cartdock__progress { margin-bottom: 12px; }

.cartdock__progress[hidden] { display: none; }

.cartdock__progress-bar {
    height: 4px;
    border-radius: 999px;
    background: var(--border-soft);
    overflow: hidden;
}

.cartdock__progress-bar i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: var(--accent);
    transition: width var(--t-slow) var(--ease);
}

.cartdock__progress-label {
    display: block;
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--text-muted);
}

/* --- Строки итогов --- */

.cartdock__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-muted);
    padding: 3px 0;
}

.cartdock__row b {
    font-weight: 600;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.cartdock__row--total {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
    font-size: 16px;
    color: var(--text);
    font-weight: 600;
}

.cartdock__row--total b {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
}

.cartdock__hint {
    margin: 8px 0 0;
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.45;
}

.cartdock__hint.is-warning { color: var(--accent); }

.cartdock__checkout { margin-top: 14px; }

.cartdock__checkout[disabled] {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cartdock__note {
    margin: 10px 0 0;
    font-size: 12px;
    color: var(--text-soft);
    text-align: center;
}

/* --- Строка позиции в корзине --- */

.cart-line {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    animation: cart-line-in var(--t-med) var(--ease);
}

@keyframes cart-line-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: none; }
}

.cart-line__media {
    width: 44px;
    height: 44px;
    border-radius: var(--r-sm);
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-soft);
}

.cart-line__info { min-width: 0; }

.cart-line__title {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-line__price {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

.cart-line__controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.cart-line__controls .qty { transform: scale(.92); transform-origin: right center; }

.cart-line__sum {
    font-size: 13.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.cart-line__remove {
    border: 0;
    background: none;
    color: var(--text-soft);
    cursor: pointer;
    padding: 2px;
    border-radius: 6px;
    line-height: 0;
    transition: color var(--t-fast) var(--ease);
}

.cart-line__remove:hover { color: var(--accent); }

/* --- Нижняя плашка (мобильные) --- */

.cartbar {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    transform: translateY(130%);
    transition: transform var(--t-med) var(--ease);
    pointer-events: none;
}

.cartbar.is-visible {
    transform: none;
    pointer-events: auto;
}

.cartbar__btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--text);
    color: #fff;
    font-family: var(--font-body);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
}

.cartbar__icon {
    position: relative;
    display: inline-flex;
}

.cartbar__count {
    position: absolute;
    top: -7px;
    right: -9px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.cartbar__sum {
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.cartbar__label {
    margin-left: auto;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, .85);
}

/* --- Мобильный оверлей корзины --- */

.cart-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    visibility: hidden;
}

.cart-modal.is-open { visibility: visible; }

.cart-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 20, .55);
    opacity: 0;
    transition: opacity var(--t-med) var(--ease);
}

.cart-modal.is-open .cart-modal__backdrop { opacity: 1; }

.cart-modal__panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    transform: translateY(102%);
    transition: transform var(--t-slow) var(--ease);
    overflow: hidden;
}

.cart-modal.is-open .cart-modal__panel { transform: none; }

.cart-modal__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px 6px;
    flex-shrink: 0;
}

.cart-modal__label {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
}

.cart-modal__close {
    border: 0;
    background: var(--surface-2);
    color: var(--text);
    width: 36px;
    height: 36px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Внутри оверлея док перестаёт быть липким */
.cart-modal .cartdock {
    position: static;
    max-height: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    flex: 1 1 auto;
    min-height: 0;
}

body.cart-open { overflow: hidden; }

/* --- Адаптив --- */

@media (max-width: 1199px) {
    .cat-layout { grid-template-columns: 1fr; }
    .cat-layout > .cartdock { display: none; }
}

@media (min-width: 1200px) {
    .cartbar, .cart-modal { display: none; }
}

/* В модалке шапка панели дублирует топлайн — скрываем */
.cart-modal .cartdock__head { display: none; }

/* Нижняя системная панелька (iPhone) — не даём контенту упереться в неё */
.cart-modal__panel { padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }

/* ============================================================================
   СЕКЦИЯ 19 — витрина, зоны, checkout, заказ, оплата, вход, профиль,
   добавки, расширения админки.
   ========================================================================== */

/* ---------- Витрина главной (showcase) ---------- */
.showcase { padding: 56px 0 8px; }
.showcase__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.showcase__title { font-family: var(--font-display); font-size: 26px; font-weight: 700; }
.showcase__all { color: var(--accent); text-decoration: none; font-weight: 600; font-size: 14px; }
.showcase__all:hover { text-decoration: underline; }
.showcase__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 32px; }
.showcase__products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.showcase-card {
    position: relative; border-radius: var(--r-lg); padding: 26px 24px;
    background: linear-gradient(135deg, var(--accent-dark) 0%, #2b1416 100%);
    color: #fff; text-decoration: none; overflow: hidden; min-height: 230px;
    display: flex; flex-direction: column; justify-content: flex-end;
    transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.showcase-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(43, 20, 22, .28); }
.showcase-card__foot {
    margin-top: 14px; display: inline-flex; align-items: center; gap: 8px;
    font-size: 13.5px; font-weight: 700; color: #ffb199;
}
.showcase-card__foot i { font-style: normal; transition: transform var(--t-fast) var(--ease); }
.showcase-card:hover .showcase-card__foot i { transform: translateX(4px); }
.showcase-card--info { background: linear-gradient(135deg, #20303f 0%, #1a2530 100%); }
.showcase-card__kind {
    position: absolute; top: 14px; left: 16px; font-size: 11px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; color: #ffb199;
}
.showcase-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.showcase-card__body { position: static; }
.showcase-card__title { font-family: var(--font-display); font-size: 17px; font-weight: 700; line-height: 1.25; color: #fff; }
.showcase-card__text { font-size: 13px; opacity: .82; margin-top: 6px; }

/* ---------- Бэйджи и цена по акции ---------- */
.badge {
    display: inline-block; padding: 4px 10px; border-radius: 999px;
    font-size: 11.5px; font-weight: 700; letter-spacing: .03em;
}
.badge--new { background: var(--accent); color: #fff; }
.badge--promo { background: #fff; color: var(--accent-dark); border: 1px solid var(--line); }
.product__badge {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
    padding: 4px 8px; border-radius: 999px; letter-spacing: .04em;
}
.product__kbju { font-size: 11.5px; color: var(--text-muted); margin: 2px 0 0; }
.product__price-old { color: var(--text-muted); text-decoration: line-through; font-size: 13px; margin-left: 6px; }

/* ---------- Зона доставки в липкой корзине ---------- */
.cartdock__zone { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.cartdock__zone-label { white-space: nowrap; }
.cartdock__zone-select {
    background: var(--bg-soft, #f5f2ef); border: 1px solid var(--line); border-radius: var(--r-sm);
    padding: 7px 10px; font-size: 13px; color: var(--text); max-width: 58%;
}

/* ---------- Формы (checkout / auth / профиль) ---------- */
.form-row { margin-bottom: 14px; }
.form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-input {
    width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm);
    padding: 11px 14px; font-size: 15px; color: var(--text); background: #fff;
}
.form-input:focus { outline: none; border-color: var(--accent); }
.form-hint { font-size: 12.5px; color: var(--text-muted); margin-top: 6px; }
.form-error { font-size: 13px; color: var(--warn); margin-top: 10px; }
.form-ok { font-size: 13px; color: #2c7a39; margin-top: 10px; }
.form-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- Оформление заказа ---------- */
.checkout { padding: 40px 0 80px; }
.checkout__inner { max-width: 1100px; }
.checkout__grid { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
.checkout__block { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; margin-bottom: 18px; }
.checkout__h2 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.checkout__mode { margin-bottom: 16px; }
.checkout__summary {
    background: var(--accent-dark); color: #fff; border-radius: var(--r-lg);
    padding: 24px; position: sticky; top: 140px;
}
.checkout__summary .cartdock__row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; color: rgba(255,255,255,.85); }
.checkout__summary .cartdock__row b { color: #fff; }
.checkout__summary .cartdock__row--total { border-top: 1px solid rgba(255,255,255,.15); margin-top: 8px; padding-top: 14px; font-size: 18px; }
.checkout__summary .cartdock__hint { color: #ffb199; font-size: 12.5px; }
.pay-options { display: flex; flex-direction: column; gap: 10px; }
.pay-option {
    display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line);
    border-radius: var(--r-sm); padding: 14px 16px; cursor: pointer; transition: border-color var(--t-fast) var(--ease);
}
.pay-option:hover { border-color: var(--accent); }
.pay-option.is-active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pay-option input { margin-top: 3px; }
.pay-option__body small { display: block; color: var(--text-muted); font-size: 12.5px; margin-top: 2px; }
.consent-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-muted); margin: 16px 0; }
.consent-row input { margin-top: 2px; }
.consent-row a { color: var(--accent); }
.wallet-range { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.wallet-range input[type="range"] { flex: 1; accent-color: var(--accent); }
.wallet-range b { white-space: nowrap; }

/* ---------- Страница заказа ---------- */
.order-page { padding: 40px 0 80px; }
.order-page__inner { max-width: 760px; }
.order-back { display: inline-block; color: var(--accent); text-decoration: none; font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.order-status-card {
    display: flex; gap: 16px; align-items: center; background: #fff;
    border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; margin-bottom: 20px;
}
.order-status-card__icon { font-size: 34px; }
.order-status-card__title { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.order-status-card__text { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.order-status-card__badge {
    margin-left: auto; padding: 6px 14px; border-radius: 999px;
    background: var(--bg-soft, #f5f2ef); font-size: 13px; font-weight: 700; white-space: nowrap;
}
.order-details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.order-details__block + .order-details__block { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
.order-details__h2 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 10px; }
.order-details__row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14.5px; }
.order-details__row--total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-weight: 700; font-size: 17px; }
.order-details__note { font-size: 13px; color: var(--text-muted); margin-top: 10px; }

/* ---------- Оплата (СБП QR) ---------- */
.pay-page { padding: 40px 0 80px; }
.pay-page__inner { max-width: 560px; }
.pay-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; text-align: center; }
.pay-card__title { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.pay-card__order { font-size: 13.5px; color: var(--text-muted); margin-bottom: 18px; }
.pay-card__amount { font-size: 34px; font-weight: 800; margin-bottom: 18px; }
.pay-card__qr { display: flex; justify-content: center; margin-bottom: 18px; }
.pay-card__qr img { width: 260px; height: 260px; }
.pay-card__hint { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.pay-card__status { display: inline-block; padding: 8px 18px; border-radius: 999px; background: var(--bg-soft, #f5f2ef); font-weight: 700; font-size: 14px; }
.pay-card__status.is-paid { background: #e6f4ea; color: #2c7a39; }
.pay-card__actions { margin-top: 18px; display: flex; gap: 10px; justify-content: center; }

/* ---------- Вход (телефон / VK / Telegram) ---------- */
.auth-page { padding: 56px 0 80px; }
.auth-page__inner { max-width: 420px; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.auth-card__title { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.auth-card__sub { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.auth-card__phone { font-size: 18px; letter-spacing: .04em; }
.auth-card__code { font-size: 22px; text-align: center; letter-spacing: .3em; }
.auth-card__code-hint { font-size: 12.5px; color: var(--text-muted); margin-top: 8px; }
.auth-card__legal { font-size: 12px; color: var(--text-muted); margin-top: 16px; }
.auth-card__legal a { color: var(--accent); }
.auth-card__back { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--text-muted); }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-social { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-social__btn {
    display: flex; justify-content: center; align-items: center; gap: 8px;
    border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px;
    font-size: 14px; font-weight: 600; color: var(--text); text-decoration: none; background: #fff;
}
.auth-social__btn:hover { border-color: var(--accent); }
.auth-social__btn.is-disabled { opacity: .45; pointer-events: none; }

/* ---------- Профиль ---------- */
.profile-page { padding: 40px 0 80px; }
.profile-page__inner { max-width: 860px; }
.profile-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.profile-head__title { font-family: var(--font-display); font-size: 26px; font-weight: 700; }
.profile-head__phone { color: var(--text-muted); font-size: 15px; }
.profile-logout { margin-left: auto; font-size: 13.5px; color: var(--warn); text-decoration: none; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.profile-block { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.profile-block__title { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.profile-wallet__label { font-size: 12.5px; color: var(--text-muted); }
.profile-wallet__num { font-size: 32px; font-weight: 800; display: block; margin: 4px 0 12px; }
.profile-bd__value { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.wallet-log { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 10px; }
.wallet-log__row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 13px; }
.wallet-log__plus { color: #2c7a39; font-weight: 700; }
.wallet-log__minus { color: var(--warn); font-weight: 700; }
.wallet-log__note { color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-orders { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.profile-orders__row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.profile-orders__row:last-child { border-bottom: none; }

/* ---------- Добавки на странице товара ---------- */
.mods { margin: 18px 0; }
.mods__title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 10px; }
.mods__group { margin-bottom: 12px; }
.mods__label { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }.mods__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mods-chip {
    border: 1px solid #e2dcd3; border-radius: 999px; background: #fff;
    padding: 9px 16px; font-size: 13.5px; cursor: pointer; transition: all var(--t-fast) var(--ease);
    box-shadow: 0 1px 2px rgba(30,20,20,.04);
}
.mods-chip:hover { border-color: var(--accent); }
.mods-chip em { font-style: normal; font-weight: 700; color: var(--accent); margin-left: 4px; }
.mods-chip.is-on em { color: #ffd7c9; }.mods-chip.is-on { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.mods-chip--remove.is-on { background: #fff; border-color: var(--warn); color: var(--warn); text-decoration: line-through; }.mods-chip em { font-style: normal; font-weight: 700; color: var(--accent); margin-left: 2px; }
.mods-chip.is-on em { color: #ffd9cf; }
.mods__label { display: block; }
.mods__note { font-size: 12px; color: var(--text-muted); margin-top: 8px; }

/* ---------- Админка: новые разделы ---------- */
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-tab {
    padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
    font-size: 13px; text-decoration: none; color: var(--text-muted); background: #fff;
}
.admin-tab.is-active { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.admin-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; background: var(--bg-soft, #f5f2ef); color: var(--text-muted); }
.admin-badge--ok { background: #e6f4ea; color: #2c7a39; }
.admin-badge--new { background: #eef2fb; color: #2b4ea2; }
.admin-badge--confirming { background: #fff4e0; color: #9a6b00; }
.admin-badge--cooking { background: #fdeaea; color: #b3403f; }
.admin-badge--delivering { background: #eaf4fd; color: #22689e; }
.admin-badge--canceled { background: #f0f0f0; color: #888; }
.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; margin-bottom: 22px; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.admin-card__title { font-family: var(--font-display); font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.admin-card__totals { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.admin-card__totals div { display: flex; justify-content: space-between; font-size: 14px; }
.admin-card__grand { font-size: 17px; font-weight: 700; }
.admin-card__big-number { font-size: 34px; font-weight: 800; }
.admin-form--inline { display: flex; gap: 8px; align-items: flex-end; }
.admin-form--inline .admin-form__row { margin-bottom: 0; }
.admin-table-wrap--tall { max-height: 480px; overflow: auto; }
.admin-table__col-num.is-neg { color: var(--warn); }
.admin-alert { padding: 12px 16px; border-radius: var(--r-sm); font-size: 14px; margin-bottom: 16px; }
.admin-alert--ok { background: #e6f4ea; color: #2c7a39; }
.admin-alert--err { background: #fdeaea; color: #b3403f; }
.admin-map { display: inline-flex; gap: 6px; align-items: center; }
.admin-map__input { width: 210px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px 10px; font-size: 13px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
    .showcase__grid, .showcase__products { grid-template-columns: repeat(3, 1fr); }
    .checkout__grid { grid-template-columns: 1fr; }
    .checkout__summary { position: static; }
}
@media (max-width: 900px) {
    .admin-grid-2 { grid-template-columns: 1fr; }
    .profile-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .showcase__grid, .showcase__products { grid-template-columns: repeat(2, 1fr); }
    .showcase__grid { margin-bottom: 20px; }
    .form-cols { grid-template-columns: 1fr; }
    .auth-social { grid-template-columns: 1fr; }
    .order-status-card { flex-wrap: wrap; }
    .order-status-card__badge { margin-left: 0; }
    .checkout__block { padding: 18px; }
    .profile-head { gap: 10px; }
}

/* ============================================================================
   СЕКЦИЯ 20 — Карта зон доставки (Leaflet)
   ============================================================================ */

.zonemap {
    height: 340px;
    border-radius: var(--r-lg, 16px);
    overflow: hidden;
    border: 1px solid var(--line, rgba(255,255,255,.1));
    background: #e9e5df;
    position: relative;
    z-index: 0;
}

.zonemap--delivery { height: 460px; }
.zonemap--admin { height: 480px; }

.zonemap .leaflet-container {
    font: inherit;
    background: #e9e5df;
}

/* легенда цен */
.zonemap-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: var(--r-lg, 16px);
    background: var(--surface, #1C1816);
    border: 1px solid var(--line, rgba(255,255,255,.1));
    font-size: 14px;
    color: var(--text-muted, #a9a29b);
}

.zonemap-legend__row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.zonemap-legend__dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.zonemap-legend__dot--green  { background: #2e7d32; }
.zonemap-legend__dot--orange { background: #ef6c00; }
.zonemap-legend__dot--red    { background: #c62828; }

/* инфо-строка выбранной зоны на /delivery */
.zone-pick {
    margin-top: 10px;
    font-size: 15px;
    color: var(--text, #f5f1e8);
    min-height: 22px;
}

.zone-pick strong { color: var(--accent, #E8501E); }

/* редактор в админке */
.zone-editor__controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    font-size: 14px;
}

.zone-editor__controls .btn-sm { white-space: nowrap; }

.zone-editor__status {
    flex-basis: 100%;
    order: 9;
    color: var(--text-muted);
    font-size: 13px;
}

.zone-editor__controls select {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--line, rgba(255,255,255,.1));
    background: var(--surface-2, #26211E);
    color: var(--text, #f5f1e8);
}

.zone-editor__status {
    color: var(--text-muted, #a9a29b);
    font-size: 13px;
}

@media (max-width: 640px) {
    .zonemap { height: 280px; }
    .zonemap--delivery { height: 340px; }
    .zonemap--admin { height: 380px; }
}

/* ============================================================================
   СЕКЦИЯ 20 — Витрина-карусель (постеры) на главной
   ========================================================================== */

.spotlight { padding: 8px 0 64px; }

.spotlight__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.spotlight__title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.spotlight__spark {
    width: 10px; height: 10px;
    background: var(--accent);
    border-radius: 2px;
    transform: rotate(45deg);
    flex: none;
}

.spotlight__all {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
}
.spotlight__all:hover { text-decoration: underline; }

.spotlight__wrap { position: relative; }

.spotlight__row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 2px 10px;
    scrollbar-width: none;
}
.spotlight__row::-webkit-scrollbar { display: none; }

.spot-card {
    position: relative;
    flex: 0 0 178px;
    aspect-ratio: 3 / 4;
    border-radius: var(--r-lg);
    overflow: hidden;
    scroll-snap-align: start;
    background: var(--surface-2, #14161a);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
}
.spot-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(0,0,0,.35);
}

.spot-card__media { position: absolute; inset: 0; }

.spot-card__fallback {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display, inherit);
    font-size: 44px;
    font-weight: 800;
    color: rgba(255,255,255,.35);
}

.spot-card__media img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}

.spot-card__overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 40px 12px 12px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.72) 78%);
    color: #fff;
}

.spot-card__name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
}

.spot-card__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 14px;
    color: rgba(255,255,255,.75);
}
.spot-card__price b { font-size: 18px; color: #fff; }
.spot-card__price s { font-size: 13px; opacity: .7; }

.spot-card__badge {
    position: absolute;
    top: 10px; left: 10px;
    z-index: 2;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.spot-card__badge--new  { background: #2E9E63; }
.spot-card__badge--sale { background: var(--accent); }

.spotlight__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 42px; height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(20,22,26,.78);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity .2s ease, background .2s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.spotlight__wrap:hover .spotlight__nav,
.spotlight__nav:focus-visible { opacity: 1; }
.spotlight__nav:hover { background: var(--accent); }
.spotlight__nav--prev { left: -8px; }
.spotlight__nav--next { right: -8px; }
.spotlight__nav[disabled] { opacity: 0 !important; pointer-events: none; }

@media (max-width: 640px) {
    .spot-card { flex-basis: 148px; }
    .spotlight__nav { display: none; }
    .spotlight { padding-bottom: 44px; }
}
