/* SOOLA — стили сайта.
   Цвета из логотипа: пудровый, молочный, тёмно-оливковый; коралловый — только мелкие акценты. */

:root {
  --milk: #FAF6F0;
  --milk-2: #F3ECE3;
  --white: #FFFDFB;
  --powder: #EED1CB;
  --powder-2: #F7E6E2;
  --olive: #473800;
  --olive-2: #5E5230;
  --olive-3: #7A6F52;
  --coral: #EC715D;
  --coral-dark: #B9503E;
  --line: #E9DED4;
  --green: #4F7A3A;
  --amber: #A06A12;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(71, 56, 0, .05), 0 6px 20px rgba(71, 56, 0, .06);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--olive);
  background: var(--milk);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0 0 12px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--olive); color: var(--milk); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px;
  border: 1.5px solid var(--olive); border-radius: 999px;
  background: var(--olive); color: var(--milk);
  font: 600 15px/1.1 var(--font); text-decoration: none; text-align: center;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--olive-2); border-color: var(--olive-2); }
.btn-outline { background: transparent; color: var(--olive); }
.btn-outline:hover { background: var(--olive); color: var(--milk); }
.btn-ghost { background: var(--white); color: var(--olive); border-color: var(--line); }
.btn-ghost:hover { background: var(--powder-2); border-color: var(--powder); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }
.btn-disabled, .btn-disabled:hover { background: var(--milk-2); color: var(--olive-3); border-color: var(--milk-2); cursor: not-allowed; }

/* ---------- Верхняя строка и шапка ---------- */
.topline {
  background: var(--olive); color: var(--powder);
  font-size: 10.5px; font-weight: 600; letter-spacing: .14em;
  text-align: center; padding: 7px var(--gutter);
}
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 246, 240, .94);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "brand . actions" "search search search";
  align-items: center; gap: 10px 12px;
  padding-top: 10px; padding-bottom: 12px;
}
.brand { grid-area: brand; display: flex; flex-direction: column; text-decoration: none; color: var(--olive); }
.brand-logo { width: 104px; height: auto; display: block; }
.brand-tag { font-size: 7.5px; letter-spacing: .32em; color: var(--olive-3); margin-top: 3px; white-space: nowrap; }
.header-actions { grid-area: actions; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--line); background: var(--white); color: var(--olive);
}
.icon-btn:hover { border-color: var(--powder); background: var(--powder-2); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }

.search { grid-area: search; position: relative; margin: 0; }
.search input {
  width: 100%; height: 46px; padding: 0 16px 0 44px;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--olive);
  font: 500 16px var(--font); /* 16px — чтобы телефон не увеличивал страницу */
  -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: var(--olive-3); }
.search input:focus { outline: none; border-color: var(--olive-3); box-shadow: 0 0 0 3px rgba(238, 209, 203, .7); }
.search-icon { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--olive-3); stroke-width: 2; stroke-linecap: round; pointer-events: none; }

@media (min-width: 900px) {
  .header-row { grid-template-columns: auto minmax(280px, 560px) auto; grid-template-areas: "brand search actions"; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
  .brand-logo { width: 128px; }
  .brand-tag { font-size: 8.5px; }
  .topline { font-size: 11px; }
}

/* ---------- Первый экран ---------- */
.hero {
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(236, 113, 93, .10), transparent 60%),
    linear-gradient(180deg, var(--powder-2) 0%, var(--milk) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner { padding-top: 28px; padding-bottom: 28px; }
.hero-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(32px, 8vw, 56px); line-height: 1.02; letter-spacing: -.01em;
  max-width: 14ch;
}
.hero-text { margin: 12px 0 20px; max-width: 52ch; color: var(--olive-2); font-size: 15px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .btn { flex: 1 1 auto; }
.hero-facts {
  list-style: none; margin: 22px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  font-size: 13px; font-weight: 600; color: var(--olive-2);
}
.hero-facts li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); margin-right: 8px; vertical-align: middle; }
@media (max-width: 699px) {
  /* На телефоне первый экран компактный, чтобы сразу были видны товары */
  .hero-inner { padding-top: 18px; padding-bottom: 18px; }
  .hero-title { font-size: 32px; max-width: none; }
  .hero-text { font-size: 14px; margin: 8px 0 14px; }
  .hero-actions { flex-wrap: nowrap; gap: 8px; }
  .hero-actions .btn { flex: 1 1 0; min-height: 44px; padding: 6px 10px; font-size: 13.5px; line-height: 1.2; }
  .hero-facts { display: none; }
}
@media (min-width: 700px) {
  .hero-inner { padding-top: 56px; padding-bottom: 52px; }
  .hero-text { font-size: 17px; }
  .hero-actions .btn { flex: 0 0 auto; }
}

/* Два пути: для себя (розница) и для бизнеса (опт) */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 760px; }
.path {
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line);
}
.path-wholesale { background: var(--olive); border-color: var(--olive); color: var(--milk); }
.path-title { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.05; }
.path-text { font-size: 13px; line-height: 1.4; margin: 0 0 6px; color: var(--olive-2); flex: 1; }
.path-wholesale .path-text { color: var(--powder); }
.path .btn { align-self: stretch; padding: 6px 10px; line-height: 1.2; }
.path-wholesale .btn { background: var(--milk); color: var(--olive); border-color: var(--milk); }
.path-wholesale .btn:hover { background: var(--powder); border-color: var(--powder); }
@media (min-width: 700px) {
  .path { padding: 20px; gap: 8px; }
  .path-title { font-size: 26px; }
  .path-text { font-size: 14px; }
  .path .btn { align-self: flex-start; padding: 0 18px; }
}
@media (max-width: 359px) {
  .paths { grid-template-columns: 1fr; }
}

/* ---------- Категории ---------- */
.catalog { padding-top: 18px; padding-bottom: 40px; }
.chips {
  display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px;
  scroll-snap-type: x proximity;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
          mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; scroll-snap-align: start;
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--olive);
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.chip:hover { border-color: var(--powder); background: var(--powder-2); }
.chip.is-active { background: var(--olive); border-color: var(--olive); color: var(--milk); }
.chip-count { font-size: 12px; font-weight: 500; opacity: .6; }
@media (min-width: 900px) {
  .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; -webkit-mask-image: none; mask-image: none; }
}

/* ---------- Панель: найдено, бренд, сортировка ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 14px 0 6px; }
.found { margin: 0; font-size: 14px; font-weight: 600; color: var(--olive-2); }
.toolbar-controls { display: flex; gap: 8px; width: 100%; }
.select { position: relative; flex: 1 1 0; min-width: 0; }
.select select {
  width: 100%; height: 42px; padding: 0 34px 0 14px;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--olive);
  font: 600 14px var(--font);
  -webkit-appearance: none; appearance: none; cursor: pointer;
  text-overflow: ellipsis;
}
.select::after {
  content: ""; position: absolute; right: 15px; top: 50%; width: 7px; height: 7px;
  border-right: 2px solid var(--olive-3); border-bottom: 2px solid var(--olive-3);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
@media (min-width: 700px) {
  .toolbar-controls { width: auto; }
  .select { flex: 0 0 210px; }
}
.stock-note { font-size: 12.5px; color: var(--olive-3); margin: 0 0 14px; }

/* ---------- Сетка карточек: 2 на телефоне, 3 на планшете, 4 на компьютере ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.grid.is-loading { opacity: .5; transition: opacity .2s; }

/* ---------- Карточка ---------- */
.card {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); }
.card-media { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--white); }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }

.ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(160deg, var(--powder-2), var(--milk-2));
  text-align: center; padding: 12px;
}
.ph-brand { font-family: var(--serif); font-weight: 600; font-size: clamp(18px, 4.6vw, 26px); line-height: 1.05; color: var(--olive-2); word-break: break-word; }
.ph-note { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--olive-3); }
.ph-lg .ph-brand { font-size: clamp(28px, 7vw, 44px); }

.badge {
  position: absolute; left: 8px; top: 8px;
  padding: 4px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  background: var(--olive); color: var(--milk);
}
.badge-new { background: var(--white); color: var(--olive); border: 1px solid var(--powder); }
.badge-sale, .badge-promo { background: var(--coral-dark); color: #fff; }

.card-body { display: flex; flex-direction: column; flex: 1; padding: 10px 10px 12px; }
.card-brand { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--olive-3); margin-bottom: 3px; }
.card-title { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.card-title a { text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-volume { font-size: 12px; color: var(--olive-3); margin-top: 3px; }
.card-bottom { margin-top: auto; padding-top: 10px; }
.card .btn { min-height: 42px; font-size: 13.5px; padding: 0 10px; margin-top: 10px; }

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.price-main { font-size: 17px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.price-note { font-size: 11px; color: var(--olive-3); }

.stock { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; margin-top: 6px; }
.stock .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.stock-in_stock { color: var(--green); }
.stock-on_order { color: var(--amber); }
.stock-out_of_stock { color: var(--olive-3); }
.stock-hint { font-size: 11px; color: var(--olive-3); margin: 2px 0 0; line-height: 1.35; }
.card.is-out .card-media { opacity: .55; }
.card-opt {
  display: block; margin-top: 8px; text-align: center;
  font-size: 12px; font-weight: 600; color: var(--olive-2);
  text-decoration: underline; text-decoration-color: var(--powder); text-underline-offset: 3px;
}
.card-opt:hover { color: var(--olive); text-decoration-color: currentColor; }

/* Страница товара: купить для себя / оптом */
.buy-options { display: grid; gap: 10px; margin-bottom: 22px; }
.buy-option { padding: 16px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.buy-option-opt { background: var(--powder-2); border-color: var(--powder); }
.buy-title { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.1; margin-bottom: 4px; }
.buy-text { font-size: 13.5px; color: var(--olive-2); margin-bottom: 12px; }
@media (min-width: 900px) { .buy-options { grid-template-columns: 1fr 1fr; } }

@media (min-width: 700px) {
  .card-body { padding: 14px 14px 16px; }
  .card-title { font-size: 14.5px; }
  .price-main { font-size: 18px; }
  .card .btn { font-size: 14px; }
}

/* ---------- Пусто / ещё ---------- */
.empty { text-align: center; padding: 40px 12px; background: var(--white); border: 1px dashed var(--powder); border-radius: var(--radius); }
.empty h2 { font-family: var(--serif); font-size: 28px; font-weight: 600; margin-bottom: 8px; }
.empty p { color: var(--olive-2); max-width: 46ch; margin: 0 auto 18px; }
.empty-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.more-wrap { display: flex; justify-content: center; margin-top: 24px; }
.more-wrap .btn { min-width: 220px; }

/* ---------- Страница товара ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--olive-3); padding: 16px 0 12px; }
.crumbs a { color: var(--olive-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.product { display: grid; gap: 20px; }
.product-media { position: relative; aspect-ratio: 1 / 1; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.product-media .badge { left: 14px; top: 14px; font-size: 12px; }
.product-brand { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--olive-3); text-decoration: none; }
.product-brand:hover { color: var(--olive); }
.product-title { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 6vw, 40px); line-height: 1.08; margin: 6px 0 16px; }
.product-price .price-main { font-size: 26px; }
.product-price { display: flex; align-items: baseline; gap: 8px; }
.wholesale-hint { display: inline-block; margin: 8px 0 14px; padding: 6px 12px; border-radius: 999px; background: var(--powder-2); font-size: 13px; font-weight: 600; }
.product .stock { font-size: 14px; }
.product .stock-hint { font-size: 12.5px; margin-bottom: 18px; }
.product-actions { display: grid; gap: 10px; margin-bottom: 22px; }
.product-desc { padding: 16px 0 18px; border-top: 1px solid var(--line); }
.product-desc-title { font-size: 15px; font-weight: 700; margin: 0 0 8px; }
.product-desc-text { font-size: 14.5px; line-height: 1.6; color: var(--olive-2); overflow-wrap: anywhere; }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line); font-size: 14px; }
.specs dt { color: var(--olive-3); }
.specs dd { margin: 0; font-weight: 600; word-break: break-word; }
.related { margin: 40px 0 48px; }
.section-title { font-family: var(--serif); font-weight: 600; font-size: 28px; margin-bottom: 14px; }
@media (min-width: 900px) {
  .product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .product-info { padding-top: 8px; }
  .product-actions { grid-template-columns: 1fr 1fr; }
}

/* ---------- Простые страницы ---------- */
.page-narrow { max-width: 640px; padding-top: 40px; padding-bottom: 56px; }
.page-title { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 7vw, 44px); line-height: 1.08; margin-bottom: 14px; }
.page-narrow p { color: var(--olive-2); font-size: 16px; }

/* ---------- Старая цена и «Акции» ---------- */
.price-old { font-size: 13px; color: var(--olive-3); text-decoration-color: var(--coral-dark); text-decoration-thickness: 1.5px; white-space: nowrap; }
.price-main.is-sale { color: var(--coral-dark); }
.chip-sale { border-color: var(--powder); color: var(--coral-dark); }
.chip-sale.is-active { background: var(--coral-dark); border-color: var(--coral-dark); color: #fff; }

/* ---------- Оптовая цена ---------- */
.price-opt .price-main { color: var(--olive); }
.price-opt .price-note {
  font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 10px;
  background: var(--powder-2); color: var(--olive-2); padding: 2px 6px; border-radius: 999px;
}
.price-sub { font-size: 11.5px; color: var(--olive-3); margin: 2px 0 0; line-height: 1.35; }
.product .price-sub { font-size: 13px; margin: 6px 0 14px; }

/* ---------- Строка статуса под шапкой ---------- */
.statusbar { font-size: 13.5px; line-height: 1.4; border-bottom: 1px solid var(--line); }
.statusbar-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 10px; padding-bottom: 10px; }
.statusbar-ok { background: var(--white); }
.statusbar-pending { background: #FBF1DC; color: #6B4A0C; }
.statusbar-rejected { background: var(--powder-2); }
.currency { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--milk-2); border: 1px solid var(--line); margin-left: auto; }
.currency button {
  min-width: 56px; height: 34px; padding: 0 14px; border: 0; border-radius: 999px;
  background: transparent; color: var(--olive-2); font: 700 13.5px var(--font); cursor: pointer;
}
.currency button.is-active { background: var(--olive); color: var(--milk); }

/* ---------- Формы: вход, регистрация ---------- */
.auth { max-width: 520px; padding-top: 28px; padding-bottom: 48px; }
.auth-lead { color: var(--olive-2); margin-bottom: 20px; }
.form { display: grid; gap: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label { font-size: 13.5px; font-weight: 700; }
.field input, .field textarea, .phone-row input, .password-row input {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); color: var(--olive);
  font: 500 16px var(--font);
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--olive-3); box-shadow: 0 0 0 3px rgba(238, 209, 203, .7); }
.field .select select { height: 48px; border-radius: var(--radius-sm); font-size: 16px; }
.has-error input, .has-error select { border-color: var(--coral-dark); }
.field-error { color: var(--coral-dark); font-size: 13px; font-weight: 600; margin: 0; }
.field-hint { color: var(--olive-3); font-size: 12.5px; margin: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.phone-row { display: grid; grid-template-columns: 118px 1fr; gap: 8px; }
.phone-code { flex: none; }
.password-row { position: relative; }
.password-row input { padding-right: 96px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  height: 36px; padding: 0 12px; border: 0; border-radius: 8px;
  background: var(--milk-2); color: var(--olive-2); font: 600 13px var(--font); cursor: pointer;
}
.optional { border-top: 1px solid var(--line); padding-top: 12px; }
.optional summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--olive-2); }
.optional[open] summary { margin-bottom: 12px; }
.optional .field + .field { margin-top: 12px; }
.alert { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; }
.alert-error { background: #FBE6E1; color: #8A2E1E; }
.form-link { justify-self: center; font-size: 14px; font-weight: 600; color: var(--olive-2); }
.auth-alt { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 20px; color: var(--olive-2); font-size: 14px; }
.auth-alt form { margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 380px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- Кабинет ---------- */
.account-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 28px; }
.account-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.account-name { font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.1; }
.account-phone { color: var(--olive-2); font-weight: 600; margin-top: 4px; }
.account .specs { margin-bottom: 12px; }
.status-pill { flex: none; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.status-pending { background: #FBF1DC; color: #6B4A0C; }
.status-approved { background: #E3EEDB; color: #2F5520; }
.status-rejected, .status-blocked { background: var(--powder-2); color: var(--coral-dark); }
.muted { color: var(--olive-3); }

/* ---------- Корзина: кнопка, «− число +», значок, всплывашка ---------- */
.qty { margin: 10px 0 0; }
.qty .stepper { display: none; }
.qty.has-qty .qty-add { display: none; }
.qty.has-qty .stepper { display: grid; }
.qty.is-busy { opacity: .6; pointer-events: none; }
.stepper {
  grid-template-columns: 42px 1fr 42px; align-items: center;
  height: 42px; border: 1.5px solid var(--olive); border-radius: 999px; overflow: hidden; background: var(--white);
}
.step { height: 100%; border: 0; background: var(--olive); color: var(--milk); font: 600 20px/1 var(--font); cursor: pointer; }
.step:hover { background: var(--olive-2); }
.step-input {
  width: 100%; min-width: 0; height: 100%; border: 0; text-align: center;
  font: 700 16px var(--font); color: var(--olive); background: transparent;
  -moz-appearance: textfield; appearance: textfield;
}
.step-input::-webkit-outer-spin-button, .step-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.card .qty .btn { margin-top: 0; }
.product .qty { margin-top: 0; }
.product .qty .btn, .product .stepper { min-height: 48px; height: 48px; }
.product-buy { grid-template-columns: 1fr; }

.cart-btn { position: relative; }
.cart-badge {
  position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--coral-dark); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 19px; text-align: center;
}
.toast {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50;
  display: flex; align-items: center; gap: 16px; max-width: calc(100% - 32px);
  padding: 12px 18px; border-radius: 999px; background: var(--olive); color: var(--milk);
  font-size: 14px; font-weight: 600; box-shadow: 0 8px 28px rgba(71, 56, 0, .25);
  width: max-content; white-space: nowrap;
}
.toast a { color: var(--powder); white-space: nowrap; }

/* ---------- Страница корзины ---------- */
.cart-page { padding-top: 24px; padding-bottom: 48px; }
.cart-layout { display: grid; gap: 20px; align-items: start; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; } .cart-summary { position: sticky; top: 110px; } }
.cart-mode { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--olive-3); margin-bottom: 8px; }
.cart-lines { display: grid; gap: 10px; }
.cart-line {
  position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px;
  padding: 12px 40px 12px 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.cart-thumb { position: relative; display: block; width: 76px; height: 76px; border-radius: var(--radius-sm); overflow: hidden; background: var(--white); }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-thumb .ph-brand { font-size: 14px; }
.cart-name { display: block; font-weight: 600; font-size: 14px; line-height: 1.3; text-decoration: none; margin: 2px 0 4px; }
.cart-unit { font-size: 12.5px; color: var(--olive-3); }
.cart-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.cart-controls .qty { margin: 0; width: 140px; flex: none; }
.cart-sum { font-weight: 700; font-size: 16px; white-space: nowrap; }
.cart-remove { position: absolute; top: 6px; right: 6px; margin: 0; }
.cart-remove button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--olive-3); font-size: 22px; line-height: 1; cursor: pointer; }
.cart-remove button:hover { background: var(--powder-2); color: var(--coral-dark); }
.cart-empty { text-align: center; padding: 40px 16px; background: var(--white); border: 1px dashed var(--powder); border-radius: var(--radius); }
.cart-empty-title { font-family: var(--serif); font-size: 28px; font-weight: 600; margin-bottom: 6px; }
.cart-summary { gap: 14px; }
.summary-row { font-size: 14px; color: var(--olive-2); }
.summary-total { display: flex; flex-direction: column; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.summary-total span { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--olive-3); }
.summary-total strong { font-size: 24px; line-height: 1.2; }
.from { font-size: 14px; line-height: 1.5; }
.from .field-hint { display: block; }
.btn-wa { background: #2E6B3F; border-color: #2E6B3F; }
.btn-wa:hover { background: #24563A; border-color: #24563A; }
.alert-info { background: var(--powder-2); color: var(--olive); margin-bottom: 14px; }

/* ---------- Заявка ---------- */
.order-page { text-align: left; }
.sent-mark {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #E3EEDB; color: #2F5520; font-size: 28px; font-weight: 700; margin-bottom: 12px;
}
.order-actions { display: grid; gap: 10px; margin-bottom: 18px; }
.reply-box { padding: 14px 16px; border-radius: var(--radius); background: var(--powder-2); margin-bottom: 26px; }
.reply-box p { margin: 6px 0 0; font-size: 14px; color: var(--olive-2); }
.order-items { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 16px 12px; }
.order-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.order-item-name { grid-column: 1 / -1; font-weight: 600; }
.order-item-qty { color: var(--olive-3); }
.order-total { border-bottom: 0; font-size: 16px; }
.order-sub { font-size: 13.5px; color: var(--olive-2); }
.order-saved strong { color: var(--green); }
.savings {
  margin: 0; padding: 8px 12px; border-radius: var(--radius-sm);
  background: #E3EEDB; color: #2F5520; font-size: 13.5px; font-weight: 600; line-height: 1.4;
}
.order-total span { font-weight: 700; }
.status-order-new { background: #FBF1DC; color: #6B4A0C; }
.status-order-in_progress { background: var(--powder-2); color: var(--olive); }
.status-order-done { background: #E3EEDB; color: #2F5520; }
.status-order-cancelled { background: var(--milk-2); color: var(--olive-3); }

/* ---------- История заявок в кабинете ---------- */
.orders-list { display: grid; gap: 10px; margin-bottom: 8px; }
.orders-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center;
  padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.orders-main { display: flex; flex-direction: column; gap: 2px; text-decoration: none; min-width: 0; }
.orders-main .muted { font-size: 13px; }
.orders-row form { grid-column: 1 / -1; margin: 0; }
@media (min-width: 600px) { .orders-row { grid-template-columns: minmax(0, 1fr) auto auto; } .orders-row form { grid-column: auto; } }

/* ---------- Подвал ---------- */
.footer { background: var(--olive); color: var(--powder); padding: 32px 0 20px; margin-top: 24px; }
.footer-grid { display: grid; gap: 20px; }
.footer-logo { width: 120px; height: auto; color: var(--milk); }
.footer-tag { font-size: 8.5px; letter-spacing: .32em; margin: 6px 0 0; color: var(--powder); }
.footer-contacts { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.footer-wa { color: var(--milk); font-weight: 700; text-decoration: none; }
.footer-wa:hover { text-decoration: underline; }
.footer-bottom { font-size: 12px; color: rgba(238, 209, 203, .7); margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(238, 209, 203, .18); }
.footer-contacts a { color: var(--powder); }
.footer-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; }
.footer-links a { color: var(--powder); text-decoration: none; padding: 4px 0; }
.footer-links a:hover { color: var(--milk); text-decoration: underline; }
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1fr auto; align-items: start; }
  .footer-contacts { text-align: right; }
}

/* ---------- Инфо-страницы ---------- */
.info-text h2 { font-size: 18px; font-weight: 700; margin: 26px 0 8px; }
.info-text p, .info-text li { color: var(--olive-2); font-size: 15.5px; line-height: 1.65; }
.info-text ul { padding-left: 20px; margin: 0 0 14px; display: grid; gap: 4px; }
.contacts-list { display: grid; grid-template-columns: max-content 1fr; gap: 12px 18px; margin: 8px 0 26px; font-size: 15.5px; }
.contacts-list dt { color: var(--olive-3); }
.contacts-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 420px) { .contacts-list { grid-template-columns: 1fr; gap: 2px; } .contacts-list dd { margin-bottom: 10px; } }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
