/* ЭН ЭМ СТОР — calm storefront (2026-11-06 review): one accent per screen, sentence case everywhere
   (caps only in the logo), Unbounded for headings only, Onest for everything else, all text dark;
   the accent (#c2410c, 5.2:1 with white) is used only for buttons and prices. */
:root {
  --bg: #fff7ee;
  --surface: #ffffff;
  --ink: #24140a;
  --ink-2: #4a3426;
  --muted: #6f5546;
  --line: #eadccb;
  --accent: #c2410c;
  --accent-hover: #9a3412;
  --ok: #15803d;
  --bad: #b42318;
  --radius: 20px;
  --wrap: 1200px;
  --display: "Unbounded", "Onest", system-ui, sans-serif;
  --body: "Onest", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.5; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
h2 { font-size: clamp(22px, 3vw, 30px); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
main { min-height: 55vh; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 247, 238, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; }
.header-left { display: flex; align-items: center; }
.nav { display: flex; gap: 24px; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink); }
.nav a:hover { color: var(--accent); }
.logo img { width: 52px; height: 52px; border-radius: 14px; }
.cart-link { justify-self: end; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 9px 16px; font-size: 15px; font-weight: 600; }
.cart-link:hover { border-color: var(--ink); }
.cart-count { background: var(--accent); color: #fff; font-weight: 700; font-size: 12px; min-width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; padding: 0 6px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-content: center; gap: 4px; background: var(--surface); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
.menu-pop { position: absolute; top: 52px; left: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 6px; display: grid; min-width: 200px; box-shadow: 0 12px 30px rgba(36, 20, 10, .12); }
.menu-pop a { text-decoration: none; font-size: 16px; font-weight: 500; padding: 12px 14px; border-radius: 10px; }
.menu-pop a:hover { background: var(--bg); }
@media (max-width: 760px) {
  .nav { display: none; }
  .menu { display: block; }
  .header-row { height: 64px; }
  .logo img { width: 46px; height: 46px; border-radius: 12px; }
  .cart-label { display: none; }
  .cart-link { padding: 10px 12px; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; font-weight: 600; font-size: 16px; padding: 13px 24px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s; }
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: #e6d9ca; color: var(--muted); cursor: not-allowed; transform: none; }
.btn-lg { padding: 16px 30px; font-size: 17px; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: var(--bg); }
.btn.is-added { background: var(--ok); }

/* ---------- hero ---------- */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 48px; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.hero h1 { font-size: clamp(30px, 4.2vw, 50px); margin-bottom: 16px; }
.hero-lead { font-size: 18px; color: var(--ink-2); max-width: 480px; margin: 0 0 28px; }
.hero-photo { display: block; border-radius: 28px; overflow: hidden; background: var(--surface); }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .4s; }
.hero-photo:hover img { transform: scale(1.03); }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; padding-bottom: 28px; }
  .hero-photo { max-width: 340px; width: 100%; margin: 0 auto; border-radius: 22px; }
}

.perks { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.perks-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 28px; padding-top: 14px; padding-bottom: 14px; }
.perk { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.perk img { width: 36px; height: 36px; flex: none; object-fit: contain; }
.perk strong { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .perks-row { grid-template-columns: minmax(0, 1fr); gap: 8px; } .perk img { width: 30px; height: 30px; } }

/* ---------- catalog ---------- */
.catalog { padding: 40px 0 72px; }
.catalog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.catalog-head h2 { margin: 0; }
.vol-form { display: flex; gap: 8px; }
.select { position: relative; display: inline-block; }
.select select { appearance: none; -webkit-appearance: none; font: inherit; font-size: 15px; font-weight: 500; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 9px 38px 9px 16px; cursor: pointer; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin: 0 -2px 22px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; text-decoration: none; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 15px; font-weight: 500; color: var(--ink); background: var(--surface); }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

.card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 14px 32px rgba(36, 20, 10, .10); transform: translateY(-2px); }
.card-img { aspect-ratio: 3 / 4; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.card-title { text-decoration: none; font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.card-title::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-sub { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dots { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 2px; position: relative; z-index: 2; align-items: center; }
.dot { width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); display: block; }
.dot.is-active { outline: 2px solid var(--ink); outline-offset: 2px; }
.dot-more { font-size: 12px; color: var(--muted); }
.dots-lg { gap: 10px; }
.dots-lg .dot { width: 34px; height: 34px; }
.card-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.price { font-weight: 700; font-size: 18px; color: var(--accent); white-space: nowrap; }
.price .from { font-weight: 500; font-size: 14px; color: var(--muted); }
.ship { font-size: 12px; color: var(--muted); line-height: 1.35; }
.plus { position: relative; z-index: 2; flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding-bottom: 2px; }
.plus:hover { background: var(--accent-hover); }
.plus.is-added { background: var(--ok); font-size: 16px; }
.is-oos .card-img img { opacity: .5; filter: grayscale(.6); }
.is-oos .price { color: var(--muted); }
@media (max-width: 700px) {
  .card { border-radius: 16px; }
  .card-body { padding: 10px 10px 12px; }
  .card-title { font-size: 14px; }
  .card-sub { font-size: 13px; }
  .price { font-size: 16px; }
  .ship { font-size: 11px; }
  .plus { width: 34px; height: 34px; font-size: 20px; }
  .dot { width: 16px; height: 16px; }
}
.empty { color: var(--muted); padding: 40px 0; }

/* ---------- product ---------- */
.product { padding-top: 20px; padding-bottom: 72px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; display: flex; gap: 8px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.product-grid { display: grid; grid-template-columns: minmax(0, 500px) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 860px) { .product-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; } }
.gallery { position: sticky; top: 96px; }
@media (max-width: 860px) { .gallery { position: static; } }
.gallery-main { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); background: var(--surface); scrollbar-width: none; }
.gallery-main::-webkit-scrollbar { display: none; }
.gallery-main img { flex: 0 0 100%; width: 100%; height: auto; min-width: 0; aspect-ratio: 3 / 4; object-fit: cover; scroll-snap-align: center; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.thumb { flex: none; width: 56px; height: 75px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); padding: 0; overflow: hidden; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.product-title { font-size: clamp(26px, 3vw, 36px); margin-bottom: 6px; }
.product-sub { font-size: 17px; color: var(--muted); margin: 0 0 18px; }
.buy-price { font-size: 32px; font-weight: 800; color: var(--accent); letter-spacing: -.01em; line-height: 1.1; }
.ship-line { font-size: 15px; color: var(--ok); font-weight: 500; margin: 6px 0 24px; display: flex; align-items: center; gap: 8px; }
.ship-line::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ship-line.is-no { color: var(--muted); }
.label { font-size: 15px; color: var(--muted); margin-bottom: 10px; }
.label strong { color: var(--ink); font-weight: 600; }
.colors, .sizes { margin-bottom: 24px; }
.sizes-row { display: flex; gap: 8px; flex-wrap: wrap; }
.size { min-width: 72px; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: 15px; cursor: pointer; }
.size[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 600; }
.size:disabled { color: #a8907f; text-decoration: line-through; cursor: not-allowed; }
.buy-note { font-size: 14px; color: var(--muted); margin: 12px 0 28px; text-align: center; }
.summary { font-size: 16px; color: var(--ink-2); margin: 0 0 20px; }
.specs { width: 100%; border-collapse: collapse; font-size: 15px; margin-bottom: 18px; }
.specs th, .specs td { padding: 11px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.specs th { font-weight: 400; color: var(--muted); width: 50%; padding-right: 12px; }
.specs td { font-weight: 600; }
.more summary { cursor: pointer; font-weight: 600; padding: 8px 0; list-style: none; display: inline-flex; gap: 6px; align-items: center; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.more[open] summary::after { transform: rotate(-135deg); }
.prose { color: var(--ink-2); font-size: 15px; padding-top: 8px; }
.prose h3 { font-family: var(--body); font-size: 16px; font-weight: 700; color: var(--ink); margin: 1.4em 0 .4em; letter-spacing: 0; }
.prose p { margin: 0 0 .8em; }
.related { margin-top: 64px; }

/* ---------- cart ---------- */
.cart-page { padding-top: 32px; padding-bottom: 72px; }
.cart-page > h1 { font-size: clamp(28px, 4vw, 40px); }
.cart-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: start; }
@media (max-width: 860px) { .cart-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.cart-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cart-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item img { width: 64px; height: 85px; object-fit: cover; border-radius: 10px; background: var(--surface); }
.cart-item-title { text-decoration: none; font-size: 15px; font-weight: 600; line-height: 1.35; display: block; }
.cart-item-meta { font-size: 14px; color: var(--muted); }
.cart-item-side { text-align: right; display: grid; gap: 8px; justify-items: end; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.qty button { width: 32px; height: 32px; border: 0; background: none; font-size: 18px; cursor: pointer; color: var(--ink); }
.qty button:disabled { color: #cdbcab; cursor: default; }
.qty span { min-width: 22px; text-align: center; font-weight: 600; }
.remove { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; padding: 0; }
.cart-item.is-gone { opacity: .55; }
.cart-total-row { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0 6px; font-size: 18px; }
.cart-total-row strong { font-size: 24px; }
.checkout { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 14px; }
.checkout h2 { margin: 0; font-size: 22px; }
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; }
.field > span, .field legend { font-size: 14px; font-weight: 600; padding: 0; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field textarea, .order-form select, .order-form input { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid #d9c7b3; background: #fffdf9; color: var(--ink); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.field input.is-invalid { border-color: var(--bad); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt span { display: block; text-align: center; padding: 12px 10px; border-radius: 12px; border: 1px solid #d9c7b3; background: #fffdf9; cursor: pointer; font-size: 15px; }
.seg-opt input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 600; }
.seg-opt input:focus-visible + span { outline: 2px solid var(--accent); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.form-error { background: #fef3f2; color: var(--bad); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.cart-done, .cart-empty { text-align: center; padding: 40px 0; max-width: 520px; margin: 0 auto; }
.done-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: #e7f6ec; color: var(--ok); display: grid; place-items: center; font-size: 30px; font-weight: 700; }

/* ---------- pages ---------- */
.page { padding-top: 36px; padding-bottom: 72px; }
.page h1 { font-size: clamp(28px, 4vw, 40px); }
.prose-page { max-width: 760px; }
.prose-page h2 { font-size: 20px; margin-top: 1.6em; }
.prose-page p, .prose-page li { color: var(--ink-2); }
.narrow { max-width: 420px; }
.contact-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 16px; }
.contact-list span { color: var(--muted); min-width: 90px; }

/* ---------- admin ---------- */
.admin-head { display: flex; justify-content: space-between; align-items: center; }
.order { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 14px; padding: 14px 16px; margin: 12px 0; }
.order.status-confirmed { border-left-color: #2563eb; }
.order.status-shipped { border-left-color: #7c3aed; }
.order.status-done { border-left-color: var(--ok); }
.order.status-cancelled { border-left-color: #a8907f; opacity: .7; }
.order-top { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.order-total { margin-left: auto; font-weight: 700; }
.order-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 10px 0; font-size: 15px; }
@media (max-width: 700px) { .order-cols { grid-template-columns: 1fr; } }
.order-items { margin: 0; padding-left: 18px; }
.order-form { display: grid; grid-template-columns: 180px 1fr auto; gap: 8px; }
.order-form select, .order-form input { padding: 8px 10px; font-size: 14px; }
@media (max-width: 600px) { .order-form { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #eadccb; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; padding-top: 40px; padding-bottom: 44px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.footer-brand img { width: 72px; height: 72px; border-radius: 20px; margin-bottom: 12px; }
.footer-brand p { max-width: 320px; margin: 0; }
.footer-links { display: grid; gap: 8px; align-content: start; }
.footer-links a, .footer-legal a { color: #fff7ee; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-legal { font-size: 14px; }
.copy { margin-top: 10px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); z-index: 50; display: flex; gap: 12px; align-items: center; max-width: calc(100% - 32px); }
.toast a { color: #fdba74; font-weight: 600; text-decoration: none; white-space: nowrap; }
