/* =====================================================================
   VA — стили. Тёмная премиум-тема.
   Палитра и отступы — в :root ниже: поменять в одном месте.
   ===================================================================== */

:root {
  --bg: #121110;            /* основной фон */
  --bg-2: #171412;          /* чуть светлее (чередование секций) */
  --panel: #1c1815;         /* панели, карточки форм */
  --text: #d8d4ce;          /* основной текст */
  --muted: #8f887d;         /* приглушённый текст */
  --accent: #c9a87c;        /* тёплый коньяк — кнопки, ссылки, акценты */
  --accent-dark: #a98a5f;
  --on-accent: #191512;     /* текст на акцентной кнопке */
  --burgundy: #7a2e3a;      /* бейдж LIMITED */
  --line: rgba(216, 212, 206, 0.14);
  --line-soft: rgba(216, 212, 206, 0.08);
  --radius: 2px;
  --font-sans: "Jost", "Segoe UI", Arial, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --container: 1200px;
  --header-h: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

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

/* ---------- Типографика ---------- */

.h-page {
  font-weight: 200;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text);
}

.page-lead {
  text-align: center;
  color: var(--muted);
  max-width: 560px;
  margin: 14px auto 0;
  font-size: 15px;
}

.caps-label {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
  color: var(--muted);
}

/* ---------- Контейнер ---------- */

.container {
  width: min(var(--container), 92%);
  margin: 0 auto;
}

/* =====================================================================
   ШАПКА
   ===================================================================== */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}

.header.is-solid {
  background: rgba(18, 17, 16, 0.92);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line-soft);
}

.header__inner {
  width: min(var(--container), 94%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo__svg {
  display: block;
  height: 44px;
  width: auto;
  color: var(--accent);
  transition: color 0.2s;
}

.logo:hover .logo__svg { color: var(--text); }

.logo__svg--footer { height: 44px; }

.nav {
  display: flex;
  gap: clamp(16px, 3vw, 38px);
}

.nav__link {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav__link:hover,
.nav__link.is-active { color: var(--text); border-bottom-color: var(--accent); }

/* Выпадающее меню «Каталог» */
.nav__dd { position: relative; }

.nav__caret {
  width: 9px;
  height: 6px;
  margin-left: 7px;
  vertical-align: 2px;
  transition: transform 0.25s;
}

.nav__dd:hover .nav__caret { transform: rotate(180deg); }

.nav__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 230px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s, transform 0.22s, visibility 0.22s;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  z-index: 120;
}

/* хвостик выпадашки */
.nav__dropdown::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 9px;
  height: 9px;
  background: var(--bg-2);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: translateX(-50%) rotate(45deg);
}

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

.nav__dropdown a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 10px 22px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s, padding-left 0.15s;
}

.nav__dropdown a:hover {
  color: var(--accent);
  background: rgba(216, 212, 206, 0.04);
  padding-left: 28px;
}

.nav__dd-count { font-size: 10px; color: var(--muted); opacity: 0.7; letter-spacing: 0.08em; }

.header__icons { display: flex; gap: 6px; }

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid transparent;
  color: var(--muted);
  padding: 8px;
  border-radius: var(--radius);
  transition: color 0.2s, border-color 0.2s;
}

.icon-btn:hover { color: var(--text); border-color: var(--line); }
.icon-btn svg { width: 21px; height: 21px; }

.icon-btn__badge {
  position: absolute;
  top: 0; right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
}

/* display:flex перебивает атрибут hidden — возвращаем его силу */
.icon-btn__badge[hidden] { display: none; }

#searchHint {
  position: static;
  background: none;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  min-width: 0; height: auto;
}

/* =====================================================================
   КНОПКИ
   ===================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 34px;
  background: var(--accent);
  color: var(--on-accent);
  border: 1px solid var(--accent);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn--ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }

.btn--wide { width: 100%; }
.btn--sm { padding: 10px 20px; font-size: 11px; }

/* =====================================================================
   ГЕРОЙ (главный экран)
   ===================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 12, 10, 0.82) 0%, rgba(14, 12, 10, 0.38) 40%, rgba(12, 10, 9, 0.88) 100%),
    url("../img/hero-bg.jpg") center 38% / cover no-repeat,
    linear-gradient(160deg, #191512 0%, #100e0c 55%, #0c0a09 100%);
}

/* лёгкая «кожаная» фактура: SVG-шум */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding: 120px 20px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.hero__collection {
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 11px;
  color: var(--accent);
}

.hero__logo {
  width: clamp(150px, 22vw, 300px);
  height: auto;
  color: #efe9dc;
  filter: drop-shadow(0 8px 34px rgba(0, 0, 0, 0.65));
}

.hero__tagline {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: clamp(11px, 1.4vw, 14px);
  color: var(--muted);
}

.hero__down {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* =====================================================================
   СЕКЦИИ ГЛАВНОЙ
   ===================================================================== */

.section { padding: 90px 0; }
.section--alt { background: var(--bg-2); }

.section__head { margin-bottom: 48px; }

/* Плитки-ссылки на категории (как большие баннеры) */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.tile {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  display: flex;
  align-items: flex-end;
  background: var(--panel);
}

.tile img,
.tile .ph {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.tile:hover img,
.tile:hover .ph { transform: scale(1.045); }

.tile__overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 22px;
  background: linear-gradient(transparent, rgba(10, 9, 8, 0.85));
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.tile__title {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 15px;
  font-weight: 400;
}

.tile__count { font-size: 11px; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; }

.tile__arrow {
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
}

/* История мастерской */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.story__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.story__photo img, .story__photo .ph { width: 100%; height: 100%; object-fit: cover; }
.story__photo .ph { position: absolute; inset: 0; }
.story__photo img { position: relative; z-index: 1; }

.story__title {
  font-weight: 200;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 26px;
}

.story__text p { color: var(--muted); margin-bottom: 16px; }

.story__more { margin-top: 10px; }

/* О доставке (строка из 4 пунктов) */
.shipping { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }

.shipping__item {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.shipping__title {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 10px;
}

.shipping__text { color: var(--muted); font-size: 14px; }

.shipping__text strong { color: var(--text); font-weight: 400; }

/* Форма обратной связи */
.feedback { max-width: 720px; margin: 0 auto; }

/* =====================================================================
   ФОРМЫ
   ===================================================================== */

.form { display: grid; gap: 18px; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-weight: 300;
  font-size: 15px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s;
}

.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--accent); }

.field textarea { resize: vertical; min-height: 110px; }

.field select { appearance: none; }

/* =====================================================================
   КАТАЛОГ: категории и товары
   ===================================================================== */

.page-head { padding: 140px 0 40px; text-align: center; }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-bottom: 90px;
}

/* Карточка товара */
.pcard {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: transparent;
}

.pcard__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: var(--panel);
}

.pcard__photo img,
.pcard__photo .ph {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pcard:hover .pcard__photo img,
.pcard:hover .pcard__photo .ph { transform: scale(1.04); }

.pcard__badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 1;
  padding: 5px 12px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 999px;
}

.pcard__badge--limited { background: var(--burgundy); color: #f1e2e4; }
.pcard__badge--preorder { background: transparent; border: 1px solid var(--line); color: var(--muted); }

.pcard__fav {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 1;
  background: none;
  border: none;
  color: rgba(216, 212, 206, 0.55);
  padding: 8px;
  transition: color 0.2s, transform 0.2s;
}

.pcard__fav:hover { transform: scale(1.15); color: var(--text); }
.pcard__fav.is-on { color: var(--accent); }

.pcard__fav svg { width: 19px; height: 19px; }

.pcard__body { padding: 16px 4px 0; display: flex; flex-direction: column; gap: 4px; }

.pcard__name {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 400;
  transition: color 0.2s;
}

.pcard:hover .pcard__name { color: var(--accent); }

.pcard__leather { color: var(--muted); font-size: 12.5px; }

.pcard__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 6px;
}

.pcard__price { font-size: 16px; letter-spacing: 0.04em; }

.pcard__stock { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; }
.pcard__stock--out { color: var(--burgundy); }

/* Панель фильтров каталога */
.toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 34px;
}

.toolbar select,
.toolbar input[type="search"] {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-weight: 300;
  font-size: 13px;
  padding: 10px 14px;
  outline: none;
}

.toolbar input[type="search"] { flex: 1; min-width: 180px; }
.toolbar select:focus, .toolbar input:focus { border-color: var(--accent); }

.toolbar__count { margin-left: auto; color: var(--muted); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }

.empty {
  padding: 70px 0 90px;
  text-align: center;
  color: var(--muted);
}

.empty__title { text-transform: uppercase; letter-spacing: 0.2em; font-size: 14px; margin-bottom: 10px; }

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

.product { padding: 120px 0 90px; }

.product__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 60px;
  align-items: start;
}

.gallery__main {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--panel);
}

.gallery__main img, .gallery__main .ph { width: 100%; height: 100%; object-fit: cover; }

.gallery__thumbs { display: flex; gap: 10px; margin-top: 10px; }

.gallery__thumb {
  position: relative;
  width: 74px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 0;
  opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s;
}

.gallery__thumb.is-active, .gallery__thumb:hover { opacity: 1; border-color: var(--accent); }
.gallery__thumb img, .gallery__thumb .ph { width: 100%; height: 100%; object-fit: cover; }

.product__badge-row { display: flex; gap: 8px; margin-bottom: 16px; }

.product__name {
  font-weight: 300;
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: 0.08em;
  line-height: 1.25;
  margin-bottom: 8px;
}

.product__leather { color: var(--muted); font-size: 15px; }

.product__price {
  font-size: 26px;
  letter-spacing: 0.05em;
  margin: 22px 0;
}

.product__stock { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: -14px 0 22px; }
.product__stock--out { color: var(--burgundy); }

.product__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }

.product__desc { color: var(--muted); margin-bottom: 34px; }

/* Характеристики — аккордеон */
.specs { border-top: 1px solid var(--line); }

.specs__item { border-bottom: 1px solid var(--line); }

.specs__summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--text);
}

.specs__summary::-webkit-details-marker { display: none; }

.specs__summary::after { content: "+"; color: var(--accent); font-size: 16px; }
.specs__item[open] .specs__summary::after { content: "–"; }

.specs__body { padding: 0 0 18px; }

.specs__row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 7px 0;
  font-size: 14px;
}

.specs__row dt { color: var(--muted); }
.specs__row dd { text-align: right; }

.backlink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  margin-top: 40px;
  transition: color 0.2s;
}

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

/* Похожие товары */
.related { padding: 0 0 90px; }

/* =====================================================================
   КОРЗИНА
   ===================================================================== */

.cart { padding: 140px 0 90px; }

.cart__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 50px;
  align-items: start;
}

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

.cart-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.cart-item__photo {
  position: relative;
  width: 96px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--panel);
}

.cart-item__photo img, .cart-item__photo .ph { width: 100%; height: 100%; object-fit: cover; }

.cart-item__name {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  font-weight: 400;
}

.cart-item__leather { color: var(--muted); font-size: 12.5px; margin-top: 3px; }

.cart-item__price { font-size: 14px; margin-top: 8px; }

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

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

.qty button {
  background: none;
  border: none;
  color: var(--muted);
  width: 34px;
  height: 34px;
  font-size: 16px;
  transition: color 0.2s;
}

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

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

.cart-item__remove {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.cart-item__remove:hover { color: var(--burgundy); }

/* Сводка заказа */
.summary {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.summary__title {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}

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

.summary__row strong { color: var(--text); font-weight: 400; }

.summary__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 18px;
  margin-bottom: 22px;
}

.summary__total span:last-child { font-size: 22px; }

.summary__note { font-size: 12px; color: var(--muted); margin-top: 14px; line-height: 1.5; }

/* =====================================================================
   ТЕКСТОВЫЕ СТРАНИЦЫ (Кто мы / О коже / Доставка)
   ===================================================================== */

.text-page { padding: 150px 0 90px; max-width: 760px; margin: 0 auto; }

.text-page__title { margin-bottom: 10px; }

.text-page .lead { text-align: center; color: var(--muted); margin-bottom: 44px; font-size: 16px; }

.text-page p { color: var(--muted); margin-bottom: 18px; }
.text-page p:first-of-type { color: var(--text); }

.info-list { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 10px; }

.info-list__item { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }

.info-list__title {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--accent);
}

.info-list__text { color: var(--muted); font-size: 14.5px; }

/* =====================================================================
   ПОИСК (модалка)
   ===================================================================== */

.search-overlay { position: fixed; inset: 0; z-index: 200; }
.search-overlay[hidden] { display: none; }

.search-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 6, 0.75);
  backdrop-filter: blur(6px);
}

.search-panel {
  position: relative;
  max-width: 640px;
  margin: 12vh auto 0;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 26px;
}

.search-panel__close {
  position: absolute;
  top: 14px; right: 14px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 16px;
  padding: 6px 10px;
}

.search-panel__close:hover { color: var(--text); }

.search-panel__input {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 17px;
  font-weight: 300;
  padding: 15px 18px;
  outline: none;
}

.search-panel__input:focus { border-color: var(--accent); }

.search-panel__results { margin-top: 10px; max-height: 46vh; overflow-y: auto; }

.sr-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 12px 10px;
  border-radius: var(--radius);
  transition: background 0.15s;
}

.sr-item:hover { background: rgba(216, 212, 206, 0.05); }

.sr-item__name { text-transform: uppercase; letter-spacing: 0.1em; font-size: 12.5px; }

.sr-item__leather { color: var(--muted); font-size: 12px; margin-top: 2px; }
.sr-item__price { white-space: nowrap; font-size: 14px; }

.search-empty { color: var(--muted); text-align: center; padding: 20px 0; font-size: 14px; }

/* =====================================================================
   ПОДВАЛ
   ===================================================================== */

.footer {
  margin-top: auto;
  background: #0c0a09;
  border-top: 1px solid var(--line-soft);
}

.footer__inner {
  width: min(var(--container), 92%);
  margin: 0 auto;
  padding: 60px 0 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
}

.footer__tagline {
  margin-top: 14px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 10px;
  color: var(--muted);
}

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

.footer__nav a {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--muted);
  transition: color 0.2s;
}

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

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

.footer__contact {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--muted);
  transition: color 0.2s;
}

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

.footer__social { display: flex; gap: 14px; margin-top: 8px; }

.footer__social a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}

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

.footer__bottom {
  border-top: 1px solid var(--line-soft);
  padding: 22px 0;
}

.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* =====================================================================
   ТОСТЫ
   ===================================================================== */

.toasts {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.toast {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  color: var(--text);
  font-size: 13.5px;
  padding: 13px 22px;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  animation: toast-in 0.25s ease;
}

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

/* =====================================================================
   ЗАГЛУШКИ ФОТО (генерятся в JS, класс .ph)
   ===================================================================== */

.ph {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ph svg { width: 100%; height: 100%; }

/* Фирменный уголок VΛ на каждом фото товара */
.photo-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  color: rgba(240, 234, 222, 0.88);
  pointer-events: none;
  line-height: 0;
}

.photo-badge svg {
  width: 24px;
  height: auto;
  display: block;
  filter: drop-shadow(0 1px 5px rgba(0, 0, 0, 0.55));
}

.gallery__main .photo-badge svg { width: 44px; }
.gallery__main .photo-badge { right: 16px; bottom: 16px; }

.gallery__thumb .photo-badge svg { width: 12px; }
.gallery__thumb .photo-badge { right: 4px; bottom: 4px; }

.cart-item__photo .photo-badge svg { width: 15px; }
.cart-item__photo .photo-badge { right: 5px; bottom: 5px; }

/* =====================================================================
   АДМИНКА
   ===================================================================== */

.admin { padding: 130px 0 90px; }

.admin__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 34px; }

.admin__hint { color: var(--muted); font-size: 13px; max-width: 560px; line-height: 1.5; }

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

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

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

.admin-table tr:hover td { background: rgba(216, 212, 206, 0.03); }

.admin-table__actions { display: flex; gap: 6px; }

.admin-table__actions button {
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  padding: 6px 12px;
  font-size: 11px;
  letter-spacing: 0.08em;
  transition: color 0.2s, border-color 0.2s;
}

.admin-table__actions button:hover { color: var(--text); border-color: var(--accent); }

.admin-editor {
  margin-top: 40px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px;
}

.admin-editor__title { text-transform: uppercase; letter-spacing: 0.2em; font-size: 13px; margin-bottom: 24px; }

.admin-editor .form__row--3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }

.admin-editor__photos { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

.admin-editor__photo {
  width: 64px; aspect-ratio: 4/5;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.admin-editor__photo img { width: 100%; height: 100%; object-fit: cover; }

.admin-editor__photo button {
  position: absolute; top: 2px; right: 2px;
  background: rgba(0,0,0,.65);
  border: none; color: #fff;
  width: 18px; height: 18px;
  font-size: 10px;
  border-radius: 3px;
}

.admin-editor__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* =====================================================================
   АДАПТИВ
   ===================================================================== */

@media (max-width: 1024px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .product__grid, .cart__grid { grid-template-columns: 1fr; gap: 40px; }
  .summary { position: static; }
  .shipping { grid-template-columns: repeat(2, 1fr); }
  .story { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 768px) {
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }          /* мобильное меню — упрощённо: скрыто */
  .header__inner { justify-content: space-between; }
  #searchHint { display: none; }
  .form__row, .form__row--3 { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 30px; }
  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-item__right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; }
}

@media (max-width: 560px) {
  .catalog-grid, .tiles { grid-template-columns: 1fr; }
  .shipping { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}

/* =====================================================================
   БУРГЕР И МОБИЛЬНОЕ МЕНЮ
   ===================================================================== */

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
}

.burger span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: currentColor;
  transition: transform 0.25s, opacity 0.25s;
}

.burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(16, 14, 12, 0.98);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 8px 0 18px;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}

.mobile-menu[hidden] { display: none; }

.mobile-menu a {
  display: block;
  padding: 13px 6vw;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid var(--line-soft);
}

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

.mobile-menu .mm-group {
  padding: 18px 6vw 6px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 10.5px;
  color: var(--muted);
}

.mobile-menu .mm-sub a {
  padding-left: 11vw;
  font-size: 12px;
  color: var(--muted);
}

@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
}

@media (max-width: 768px) {
  .burger { display: inline-flex; }
}
