/* VELÍNCHI shop. One system: tokens, one radius family, one button pair, one card. */
:root {
  --bg: #f7f3ee;
  --surface: #efe8df;
  --ink: #211c18;
  --muted: #655c52;
  --line: rgba(33, 28, 24, .14);
  --action: #7a5636;
  --action-dark: #5c3f26;
  --on-action: #fffaf4;
  --danger: #a3361f;

  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;

  --r: 4px;            /* the one radius */
  --nav: 72px;
  --gut: 48px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
}
@media (max-width: 719px) { :root { --nav: 60px; --gut: 20px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav) + 16px); -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(38px, 4.6vw, 66px); }
h2 { font-size: clamp(32px, 3.6vw, 48px); }
h3 { font-size: 24px; }
p { margin: 0 0 var(--s4); }
a { color: inherit; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; max-width: 54ch; }
.eyebrow { font-size: 13px; font-weight: 500; color: var(--action); margin: 0 0 var(--s4); }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gut); }
:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }
.skip-link { position: absolute; left: var(--gut); top: -80px; background: var(--ink); color: var(--bg); padding: var(--s2) var(--s4); border-radius: var(--r); z-index: 30; }
.skip-link:focus { top: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* header */
.nav { position: fixed; inset: 0 0 auto 0; height: var(--nav); background: var(--bg); border-bottom: 1px solid var(--line); z-index: 10; }
.nav__bar { height: 100%; display: flex; align-items: center; gap: var(--s6); }
.logo { font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: .14em; text-decoration: none; margin-right: auto; }
.nav__links { display: flex; gap: var(--s6); margin-right: var(--s4); }
.nav__links a { position: relative; text-decoration: none; font-size: 15px; font-weight: 500; padding: var(--s2) 0; }
.nav__links a::after, .link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav__links a:hover::after, .link:hover::after { transform: scaleX(1); }
.nav__tools { display: flex; align-items: center; gap: var(--s3); }
@media (max-width: 859px) { .nav__links { display: none; } .logo { font-size: 20px; } }

.lang { display: flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.lang__btn { font: 500 13px var(--font-body); min-width: 44px; height: 40px; padding: 0 var(--s3); background: transparent; color: var(--ink); border: 0; cursor: pointer; transition: background .15s ease, color .15s ease; }
.lang__btn:hover { background: var(--surface); }
.lang__btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.cart-btn, .icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; background: transparent; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); cursor: pointer; transition: background .15s ease, transform .1s ease; }
.cart-btn:hover, .icon-btn:hover { background: var(--surface); }
.cart-btn:active, .icon-btn:active { transform: scale(.96); }
.cart-btn__count { position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--action); color: var(--on-action); font: 600 12px/20px var(--font-body); text-align: center; }
.cart-btn__count[data-zero="true"] { display: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s5); border-radius: var(--r); border: 1px solid transparent; font: 500 16px var(--font-body); text-decoration: none; cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .1s ease; }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--action); color: var(--on-action); }
.btn--primary:hover { background: var(--action-dark); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--bg); }
.btn--sm { min-height: 44px; padding: 0 var(--s4); font-size: 15px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.link { position: relative; text-decoration: none; font-weight: 500; color: var(--action); padding-bottom: 2px; background: none; border: 0; font-family: inherit; font-size: inherit; cursor: pointer; display: inline-block; }
.link:hover { color: var(--action-dark); }

/* sections */
.section { padding: var(--s9) 0; }
.section--alt { background: var(--surface); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s5); margin-bottom: var(--s7); }
@media (max-width: 719px) { .section { padding: var(--s8) 0; } .section-head { margin-bottom: var(--s6); } }

.frame { overflow: hidden; border-radius: var(--r); background: var(--surface); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }

/* hero */
.hero { padding: calc(var(--nav) + var(--s8)) 0 var(--s8); min-height: 100svh; display: flex; align-items: center; }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: center; }
.hero__copy h1 { margin-bottom: var(--s5); }
.hero__media { aspect-ratio: 4 / 5; max-height: calc(100svh - var(--nav) - 96px); justify-self: end; width: 100%; max-width: 540px; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: var(--s7); margin: var(--s7) 0 0; padding-top: var(--s5); border-top: 1px solid var(--line); }
.facts dt { font-size: 13px; color: var(--muted); font-weight: 500; }
.facts dd { margin: var(--s1) 0 0; font-weight: 500; }
@media (max-width: 859px) {
  .hero { min-height: 0; padding-top: calc(var(--nav) + var(--s6)); }
  .hero__grid { grid-template-columns: 1fr; gap: var(--s6); }
  .hero__media { order: -1; max-width: none; aspect-ratio: 4 / 3; max-height: none; }
  .hero__media img { object-position: center 40%; }
  .facts { gap: var(--s5); grid-template-columns: repeat(3, 1fr); }
  .btn-row .btn { flex: 1 1 100%; }
}

/* filters */
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip { min-height: 44px; padding: 0 var(--s4); border-radius: var(--r); border: 1px solid var(--line); background: transparent; font: 500 15px var(--font-body); color: var(--ink); cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* product grid + card */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); }
@media (max-width: 1099px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 799px) { .grid { grid-template-columns: repeat(2, 1fr); gap: var(--s4) var(--s3); } }
.card { display: flex; flex-direction: column; transition: transform .25s ease; }
.card:hover { transform: translateY(-2px); }
.card__media { display: block; padding: 0; border: 0; background: none; cursor: pointer; aspect-ratio: 3 / 4; width: 100%; }
.card__media .frame { display: block; width: 100%; height: 100%; }
.card:hover .frame img { transform: scale(1.03); }
.card__body { padding: var(--s4) 0 0; display: flex; flex-direction: column; gap: var(--s1); flex: 1; }
.card__body h3 { font-size: 22px; }
.card__body .muted { font-size: 14px; margin: 0; }
.card__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: auto; padding-top: var(--s3); }
.price { font-weight: 500; font-variant-numeric: tabular-nums; margin: 0; white-space: nowrap; }
.price--lg { font-size: 22px; }
.price del, .line__price del { color: var(--muted); font-weight: 400; margin-right: 4px; }
.price ins, .line__price ins { color: var(--danger); font-weight: 600; text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 799px) { .card__row { flex-direction: column; align-items: stretch; } .card__row .btn { width: 100%; } .card__body h3 { font-size: 20px; } }

/* about */
.about__grid { display: grid; grid-template-columns: 5fr 6fr; gap: var(--s8); align-items: center; }
.about__media { aspect-ratio: 4 / 5; max-height: 640px; }
.about__copy h2 { margin-bottom: var(--s5); }
@media (max-width: 859px) { .about__grid { grid-template-columns: 1fr; gap: var(--s6); } .about__media { aspect-ratio: 4 / 3; } }

/* steps */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); }
.steps li { counter-increment: s; border-top: 1px solid var(--ink); padding-top: var(--s5); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 500 14px var(--font-body); color: var(--action); margin-bottom: var(--s4); }
.steps h3 { margin-bottom: var(--s3); }
@media (max-width: 799px) { .steps { grid-template-columns: 1fr; gap: var(--s5); } }

/* footer */
.footer { border-top: 1px solid var(--line); padding: var(--s7) 0; }
.footer__bar { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s6); align-items: center; }
.footer__bar p { margin: 0; font-size: 14px; }
@media (max-width: 799px) { .footer__bar { grid-template-columns: 1fr; gap: var(--s3); } }

/* dialogs */
dialog { border: 0; padding: 0; max-width: none; color: var(--ink); background: var(--bg); }
dialog::backdrop { background: rgba(33, 28, 24, .55); }
.modal { width: min(960px, calc(100vw - 32px)); max-height: calc(100svh - 32px); border-radius: var(--r); overflow: auto; margin: auto; }
.modal__close { position: absolute; top: var(--s3); right: var(--s3); z-index: 2; background: var(--bg); }
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); padding: var(--s6); }
.pd__media .frame { aspect-ratio: 3 / 4; }
.pd__thumbs { display: flex; gap: var(--s2); margin-top: var(--s2); }
.pd__thumbs button { width: 64px; height: 84px; padding: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: none; cursor: pointer; opacity: .7; }
.pd__thumbs button[aria-current="true"] { opacity: 1; border-color: var(--ink); }
.pd__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd__info { display: flex; flex-direction: column; justify-content: center; }
.pd__info h2 { font-size: clamp(30px, 3vw, 40px); margin: 0 var(--s7) var(--s2) 0; }
.pd__info .price { margin: var(--s4) 0; }
@media (max-width: 719px) { .pd { grid-template-columns: 1fr; padding: var(--s4); gap: var(--s4); } .pd__info h2 { margin-right: 0; } .modal { width: 100vw; max-height: 100svh; height: 100svh; border-radius: 0; } }

.drawer { margin: 0 0 0 auto; width: min(460px, 100vw); height: 100svh; max-height: 100svh; display: flex; flex-direction: column; overflow: hidden; }
.drawer:not([open]) { display: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 30px; }
.drawer__body { flex: 1; overflow-y: auto; padding: var(--s5); }
.drawer__body[hidden], .drawer__foot[hidden] { display: none; }
.drawer__foot { border-top: 1px solid var(--line); padding: var(--s4) var(--s5) calc(var(--s5) + env(safe-area-inset-bottom)); }
.total { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; margin-bottom: var(--s2); }
.total strong { font-size: 24px; font-weight: 500; font-variant-numeric: tabular-nums; }
.drawer__foot .btn { margin-top: var(--s3); }

.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: var(--s4); padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.line__img { width: 72px; height: 96px; border-radius: var(--r); object-fit: cover; }
.line__name { font: 500 17px/1.3 var(--font-display); margin: 0 0 var(--s1); font-size: 20px; }
.line__price { font-variant-numeric: tabular-nums; font-weight: 500; text-align: right; margin: 0; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r); margin-top: var(--s2); }
.qty button { width: 44px; height: 44px; background: none; border: 0; font-size: 20px; cursor: pointer; color: var(--ink); }
.qty button:hover { background: var(--surface); }
.qty span { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }
.line__remove { display: block; margin: var(--s2) 0 0 auto; font-size: 14px; color: var(--muted); background: none; border: 0; text-decoration: underline; cursor: pointer; min-height: 44px; padding: 0 var(--s2); }
.line__remove:hover { color: var(--ink); }

/* form */
.form h3 { margin: var(--s4) 0 var(--s5); }
.back { margin-bottom: var(--s2); }
.field { margin-bottom: var(--s4); }
.field label, .fieldset legend { display: block; font-size: 14px; font-weight: 500; margin-bottom: var(--s2); padding: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea { width: 100%; min-height: 48px; padding: var(--s3) var(--s4); font: 400 16px var(--font-body); color: var(--ink); background: #fff; border: 1px solid rgba(33,28,24,.35); border-radius: var(--r); }
.field textarea { resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--action); outline-offset: 1px; }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: 14px; margin: var(--s2) 0 0; }
.fieldset { border: 0; padding: 0; margin: 0 0 var(--s4); min-width: 0; }
.radio { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; margin-right: var(--s5); cursor: pointer; font-weight: 400 !important; font-size: 16px !important; }
.radio input { width: 20px; height: 20px; accent-color: var(--action); }
.summary { background: var(--surface); border-radius: var(--r); padding: var(--s4); margin: var(--s5) 0 var(--s4); font-size: 15px; }
.summary ul { margin: 0 0 var(--s3); padding: 0; list-style: none; }
.summary li { display: flex; justify-content: space-between; gap: var(--s3); padding: 2px 0; }
.fee-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; margin-bottom: var(--s2); }
.fee-row strong { font-weight: 500; font-variant-numeric: tabular-nums; }
.summary li.fee { margin-top: var(--s2); padding-top: var(--s2); border-top: 1px solid var(--line, rgba(0,0,0,.12)); font-weight: 600; }
.summary .total { margin: 0; font-size: 16px; }
.form__status { min-height: 24px; margin: var(--s3) 0; font-weight: 500; }
.form__status[data-kind="error"] { color: var(--danger); }
.done h3 { margin: var(--s7) 0 var(--s4); }

@media (hover: hover) { .btn--secondary:hover { background: var(--ink); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } .card:hover { transform: none; } .card:hover .frame img { transform: none; } }
