/* Mazaya design system — proposed identity evolution (logo unchanged).
   One file: tokens, base, components. Every prototype screen uses only this. */
@import url("./fonts.css");

:root {
  /* color */
  --bg: #FAFAF7;          /* soft off-white */
  --surface: #FFFFFF;
  --surface-alt: #F0EFEB; /* sand: product image wells */
  --ink: #17150F;
  --ink-muted: #5C574D;   /* 6.4:1 on --bg */
  --ink-soft: #8A8376;    /* decorative only, never body text */
  --line: #E4E2DC;
  --line-strong: #CFCCC4;
  --brand: #13A438;       /* the logo swoosh green, small signals only */
  --brand-deep: #0E4A2B;  /* bottle green: primary actions */
  --brand-deep-hover: #0A3A21;
  --brand-tint: #E4EFE6;
  --accent: #B07A3A;      /* amber / oud: hairlines, fills */
  --accent-tint: #F3E7D6;
  --sale: #A3231B;
  --sale-tint: #F7E4E1;
  --success: #1E7A3C;
  --warning: #8F5B00;
  --error: #B42318;
  --night: #0F1A14;       /* fragrance room */
  --night-2: #16261D;

  /* type */
  --font-display: "Markazi Text", "Noto Naskh Arabic", serif;
  --font-body: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-latin: "Instrument Serif", Georgia, serif;
  --font-note: "Aref Ruqaa", "Markazi Text", serif;

  --fs-display: clamp(36px, 2.2vw + 26px, 60px);
  --fs-h1: clamp(28px, 1.2vw + 22px, 40px);
  --fs-h2: clamp(22px, .8vw + 18px, 30px);
  --fs-h3: clamp(18px, .3vw + 16px, 22px);
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-micro: 12px;

  /* space (4 base) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;

  /* shape: four values, that is the whole set */
  --r0: 0; --r1: 4px; --r2: 10px; --rf: 999px;

  --shadow-1: 0 1px 2px rgba(23,21,15,.06), 0 2px 8px rgba(23,21,15,.04);
  --shadow-2: 0 10px 30px rgba(23,21,15,.12);
  --ease: cubic-bezier(.2,.7,.2,1);
  --wrap: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.7;
  font-weight: 400; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--r1); }
.latin { font-family: var(--font-latin); direction: ltr; unicode-bidi: isolate; letter-spacing: .005em; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--s4); }
@media (min-width: 768px) { .wrap { padding-inline: var(--s6); } }
@media (min-width: 1100px) { .wrap { padding-inline: var(--s7); } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* type roles */
.display { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-display); line-height: 1.15; margin: 0; }
.h1 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h1); line-height: 1.2; margin: 0; }
.h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h2); line-height: 1.25; margin: 0; }
.h3 { font-weight: 600; font-size: var(--fs-h3); line-height: 1.4; margin: 0; }
.eyebrow { font-size: var(--fs-micro); font-weight: 600; letter-spacing: .02em; color: var(--accent); margin: 0 0 var(--s2); }
.muted { color: var(--ink-muted); }
.small { font-size: var(--fs-small); }
.micro { font-size: var(--fs-micro); font-weight: 500; }
.hair { height: 1px; background: var(--line); border: 0; margin: 0; }
.amber-rule { width: 40px; height: 2px; background: var(--accent); border: 0; margin: var(--s3) 0; }

/* icons (inline svg) */
.i { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i-sm { width: 18px; height: 18px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s5); border-radius: var(--r1); border: 1px solid transparent;
  font-weight: 600; font-size: 16px; line-height: 1; transition: background .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-deep); color: #fff; }
.btn-primary:hover { background: var(--brand-deep-hover); }
.btn-secondary { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--ink); padding-inline: var(--s3); text-decoration: underline; text-underline-offset: 4px; }
.btn-block { width: 100%; }
.btn-lg { min-height: 56px; font-size: 17px; }

/* chips, badges */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 var(--s4); border: 1px solid var(--line-strong); border-radius: var(--rf); background: var(--surface); font-size: var(--fs-small); font-weight: 500; white-space: nowrap; }
.chip[aria-pressed="true"], .chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 var(--s2); border-radius: var(--r1); font-size: var(--fs-micro); font-weight: 600; }
.badge-sale { background: var(--sale); color: #fff; }
.badge-new { background: var(--ink); color: var(--bg); }
.badge-best { background: var(--accent-tint); color: #6B4518; }
.points { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 var(--s3); border-radius: var(--rf); background: var(--brand-tint); color: var(--brand-deep); font-size: var(--fs-small); font-weight: 600; }
.points::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }

/* announcement + header */
.announce { background: var(--ink); color: #FAFAF7; font-size: var(--fs-small); }
.announce .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 36px; gap: var(--s4); }
.announce a { opacity: .85; }
.announce .links { display: none; gap: var(--s5); }
@media (min-width: 1000px) { .announce .links { display: flex; } }
.announce .msg { flex: 1; text-align: center; }
@media (min-width: 1000px) { .announce .msg { text-align: start; flex: none; } }

.header { background: var(--bg); position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); }
.header .bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 64px; gap: var(--s4); }
.header .logo { display: block; width: 116px; justify-self: center; }
.header .logo svg { width: 100%; height: auto; display: block; }
.header .start, .header .end { display: flex; align-items: center; gap: var(--s2); }
.header .end { justify-content: flex-end; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r1); background: none; border: 0; }
.icon-btn:hover { background: var(--surface-alt); }
.icon-btn .count { position: absolute; top: 4px; inset-inline-start: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: var(--rf); background: var(--brand-deep); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; line-height: 1; }
.searchbar { display: flex; align-items: center; gap: var(--s2); height: 44px; padding: 0 var(--s3); border: 1px solid var(--line-strong); border-radius: var(--r1); background: var(--surface); color: var(--ink-muted); min-width: 0; }
.searchbar input { border: 0; outline: 0; background: none; flex: 1; min-width: 0; font-size: 15px; color: var(--ink); }
.header .searchbar.desk { display: none; width: 100%; max-width: 360px; }
.header .account { display: none; align-items: center; gap: var(--s2); font-size: var(--fs-small); font-weight: 500; padding: 0 var(--s2); height: 44px; }
.header .menu-btn { display: inline-grid; }
.mobile-search { padding-bottom: var(--s3); }
@media (min-width: 1000px) {
  .header .bar { grid-template-columns: 1fr auto 1fr; min-height: 76px; }
  .header .logo { width: 132px; }
  .header .searchbar.desk { display: flex; }
  .header .account { display: inline-flex; }
  .header .menu-btn { display: none; }
  .mobile-search { display: none; }
}
.nav { display: none; border-top: 1px solid var(--line); }
@media (min-width: 1000px) { .nav { display: block; } }
.nav ul { list-style: none; display: flex; justify-content: center; gap: var(--s1); margin: 0; padding: 0; }
.nav > .wrap a { display: inline-flex; align-items: center; height: 48px; padding: 0 var(--s4); font-size: 15px; font-weight: 500; position: relative; }
.nav > .wrap a[aria-current="page"]::after, .nav > .wrap a:hover::after { content: ""; position: absolute; inset-inline: var(--s4); bottom: 10px; height: 2px; background: var(--brand); }
.nav .sale-link { color: var(--sale); }
.nav .noor-nav { gap: 6px; color: var(--brand-deep); font-weight: 600; }
.nav .noor-nav .i { color: var(--accent-text); }

/* mega menu */
.mega { position: absolute; inset-inline: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2); }
.mega .wrap { display: grid; grid-template-columns: repeat(4, 1fr) 1.4fr; gap: var(--s6); padding-block: var(--s6); }
.mega h4 { font-size: var(--fs-small); font-weight: 600; margin: 0 0 var(--s3); color: var(--ink-muted); }
.mega ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.mega li a { font-size: 15px; }
.mega li a:hover { text-decoration: underline; text-underline-offset: 4px; }
.mega .promo { background: var(--surface-alt); border-radius: var(--r2); overflow: hidden; display: grid; grid-template-rows: 1fr auto; }
.mega .promo img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.mega .promo div { padding: var(--s4); }

/* bottom tab bar (mobile) */
.tabbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { display: grid; justify-items: center; gap: 2px; padding: 8px 0 6px; font-size: 11px; font-weight: 500; color: var(--ink-muted); position: relative; }
.tabbar a[aria-current="page"] { color: var(--ink); }
.tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: 0; width: 24px; height: 2px; background: var(--brand); }
.tabbar .count { position: absolute; top: 4px; margin-inline-start: 22px; min-width: 16px; height: 16px; border-radius: var(--rf); background: var(--brand-deep); color: #fff; font-size: 10px; display: grid; place-items: center; }
@media (min-width: 1000px) { .tabbar { display: none; } }
body.has-tabbar { padding-bottom: 64px; }
@media (min-width: 1000px) { body.has-tabbar { padding-bottom: 0; } }

/* breadcrumbs */
.crumbs { display: flex; flex-wrap: wrap; gap: var(--s2); font-size: var(--fs-small); color: var(--ink-muted); padding-block: var(--s4); }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { color: var(--line-strong); }

/* sections */
.section { padding-block: var(--s7); }
@media (min-width: 1000px) { .section { padding-block: var(--s8); } }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); }
.section-head a { font-size: var(--fs-small); font-weight: 600; white-space: nowrap; text-decoration: underline; text-underline-offset: 4px; }

/* product card */
.grid-products { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--s5) var(--s3); }
@media (min-width: 768px) { .grid-products { grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--s6) var(--s5); } }
@media (min-width: 1200px) { .grid-products.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: var(--s3); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s2); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 768px) { .rail { grid-auto-columns: 30%; gap: var(--s5); } }
@media (min-width: 1200px) { .rail { grid-auto-columns: calc((100% - 3*24px)/4); } }
.card { position: relative; display: grid; gap: var(--s2); align-content: start; min-width: 0; }
.card .well { position: relative; aspect-ratio: 4/5; background: var(--surface-alt); border-radius: var(--r2); overflow: hidden; display: grid; place-items: center; }
.card .well img { width: 78%; height: 78%; object-fit: contain; mix-blend-mode: multiply; transition: transform .4s var(--ease); }
.card:hover .well img { transform: scale(1.03); }
.card .tags { position: absolute; top: var(--s2); inset-inline-start: var(--s2); display: flex; gap: 4px; }
.card .fav { position: absolute; top: 4px; inset-inline-end: 4px; }
.card .quick { position: absolute; inset-inline: var(--s2); bottom: var(--s2); min-height: 40px; font-size: 14px; opacity: 0; transform: translateY(6px); transition: opacity .18s var(--ease), transform .18s var(--ease); }
.card:hover .quick, .card:focus-within .quick { opacity: 1; transform: none; }
@media (hover: none) { .card .quick { display: none; } }
.card .brand { font-size: var(--fs-micro); font-weight: 600; color: var(--ink-muted); letter-spacing: .02em; }
.card .name { font-family: var(--font-latin); font-size: 18px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; direction: ltr; text-align: right; min-height: 2.5em; }
.card .name.ar { font-family: var(--font-body); font-size: 15px; direction: rtl; }
.card .meta { font-size: var(--fs-micro); color: var(--ink-muted); }
.price { display: flex; align-items: baseline; gap: var(--s2); flex-wrap: wrap; }
.price .now { font-weight: 600; font-variant-numeric: tabular-nums; }
.price .was { font-size: var(--fs-small); color: var(--ink-muted); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.price .off { font-size: var(--fs-micro); color: var(--sale); font-weight: 600; }
.stars { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-micro); color: var(--ink-muted); }
.stars b { color: var(--ink); font-weight: 600; }
.swatches { display: flex; gap: 4px; }
.swatches i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.1); }

/* skeleton */
.sk { background: linear-gradient(90deg, var(--surface-alt) 0%, #F6F5F2 50%, var(--surface-alt) 100%); background-size: 200% 100%; animation: sk 1.4s linear infinite; border-radius: var(--r1); }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } * { transition: none !important; } }

/* forms */
.field { display: grid; gap: 6px; }
.field label { font-size: var(--fs-small); font-weight: 600; }
.field .hint { font-size: var(--fs-micro); color: var(--ink-muted); }
.input { height: 52px; padding: 0 var(--s4); border: 1px solid var(--line-strong); border-radius: var(--r1); background: var(--surface); font-size: 16px; width: 100%; }
.input:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.input.ok { border-color: var(--success); }
.input.err { border-color: var(--error); }
.err-msg { font-size: var(--fs-small); color: var(--error); }
.choice { display: flex; align-items: center; gap: var(--s3); padding: var(--s4); border: 1px solid var(--line-strong); border-radius: var(--r2); background: var(--surface); cursor: pointer; }
.choice.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--ink-muted); display: grid; place-items: center; flex: none; }
.choice.on .radio { border-color: var(--ink); }
.choice.on .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }

/* panels */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r2); padding: var(--s5); }
.note-strip { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s3) var(--s4); border-radius: var(--r2); background: var(--brand-tint); color: var(--brand-deep); font-size: var(--fs-small); }
.note-strip.amber { background: var(--accent-tint); color: #5E3C14; }

/* progress (free shipping) */
.progress { height: 6px; background: var(--surface-alt); border-radius: var(--rf); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--brand); border-radius: var(--rf); }

/* staff note «ورقة من الفرع» */
.staff-note { position: relative; background: #FBF6EC; border: 1px solid #E8DCC6; padding: var(--s4) var(--s4) var(--s3); border-radius: var(--r1); transform: rotate(-.6deg); box-shadow: 0 2px 0 #EFE5D2; }
.staff-note p { font-family: var(--font-note); font-size: 20px; line-height: 1.5; margin: 0 0 var(--s2); color: #2B2418; }
.staff-note small { font-size: var(--fs-micro); color: var(--ink-muted); }

/* sticky buy bar (mobile) */
.buybar { position: fixed; inset-inline: 0; bottom: 0; z-index: 45; background: var(--surface); border-top: 1px solid var(--line); padding: var(--s3) var(--s4) calc(var(--s3) + env(safe-area-inset-bottom)); display: flex; gap: var(--s3); align-items: center; box-shadow: 0 -6px 20px rgba(0,0,0,.06); }
@media (min-width: 1000px) { .buybar { display: none; } }

/* footer */
.footer { background: var(--ink); color: #F0EFEB; margin-top: var(--s8); }
.footer a { color: #F0EFEB; }
.footer .top { display: grid; gap: var(--s6); padding-block: var(--s7); }
@media (min-width: 900px) { .footer .top { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer h4 { font-size: var(--fs-small); font-weight: 600; color: #B9AF9E; margin: 0 0 var(--s3); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); font-size: 15px; }
.footer .news .input { background: #24211A; border-color: #3A352B; color: #fff; }
.footer .bottom { border-top: 1px solid #2E2A22; padding-block: var(--s4); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); font-size: var(--fs-micro); color: #B9AF9E; }
.footer .trust { display: flex; flex-wrap: wrap; gap: var(--s5); padding-block: var(--s5); border-top: 1px solid #2E2A22; font-size: var(--fs-small); }
.footer .trust span { display: inline-flex; gap: var(--s2); align-items: center; }

/* night theme: the fragrance room */
.night { --bg: var(--night); --surface: var(--night-2); --surface-alt: #1D3026; --ink: #F3EDE2; --ink-muted: #B8C2BA; --line: #2A3B31; --line-strong: #3A4F43; background: var(--bg); color: var(--ink); }

.night .btn-secondary { border-color: var(--ink); color: var(--ink); }
.night .btn-primary { background: #F3EDE2; color: var(--night); }
.night .chip { background: transparent; }

/* utility */
.row { display: flex; align-items: center; gap: var(--s3); }
.between { justify-content: space-between; }
.stack > * + * { margin-top: var(--s4); }
.hide-m { display: none; }
@media (min-width: 1000px) { .hide-m { display: initial; } .hide-d { display: none !important; } }
.foot-logo { width: 120px; }
.foot-logo svg path[fill="#000"] { fill: #F3EDE2; }
/* product photos ship on white: in the dark room keep a sand well so they never sit in white boxes */
.night .card .well { background: #F0EFEB; }
.night .card .well img { mix-blend-mode: multiply; }

.night .chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
/* touch devices: hover quick-add is hidden, so cards get a visible + button in the image well */
.card .add-m { display: none; }
@media (hover: none) {
  .card .add-m { display: grid; place-items: center; position: absolute; top: 0; margin-top: calc(125% - 48px); inset-inline-start: 8px; width: 40px; height: 40px; border-radius: var(--rf); background: var(--brand-deep); color: #fff; border: 0; box-shadow: var(--shadow-1); }
}

/* demo states band: extra states shown to management, visually separated from the shopper page */
.demo-states { margin-top: var(--s7); border: 1.5px dashed var(--line-strong); border-radius: var(--r2); padding: var(--s5); background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(176,122,58,.05) 14px 15px); }
.demo-states > .demo-label { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-micro); font-weight: 600; color: #6B4518; background: var(--accent-tint); border-radius: var(--rf); padding: 4px 12px; margin-bottom: var(--s4); }

/* Storefront hierarchy and shared interaction details */
:root {
  --accent-text: #80521f;
  --accent-light: #e0bb85;
  --editorial-radius: 18px;
  --header-shadow: 0 4px 18px rgba(15, 26, 20, .06);
}
[hidden] { display: none !important; }
html { scroll-padding-block: 150px 108px; }
body { background: var(--bg); }
main { min-width: 0; }
.header { background: var(--surface); box-shadow: var(--header-shadow); }
#mz-header { height: 157px; }
body[data-no-mobile-search] #mz-header { height: 101px; }
@media (min-width: 1000px) { #mz-header, body[data-no-mobile-search] #mz-header { height: 162px; } }
.header .searchbar { background: var(--bg); border-radius: var(--rf); }
.announce { background: var(--night); }
.nav > .wrap a { padding-inline: clamp(12px, 1.45vw, 24px); }
.nav > .wrap a[aria-current="page"]::after, .nav > .wrap a:hover::after { background: var(--brand-deep); }
.eyebrow { color: var(--accent-text); font-size: 13px; }
.night .eyebrow, .footer .eyebrow { color: var(--accent-light); }
.night a:focus-visible, .footer a:focus-visible { outline-color: var(--accent-light); }
.h1, .h2, .display { text-wrap: balance; }
.h1 { font-size: clamp(34px, 2vw + 22px, 52px); }
.h2 { font-size: clamp(29px, 1.35vw + 20px, 42px); }
.section-head > :first-child { min-width: 0; }
.section-head > a { display: inline-flex; align-items: center; min-height: 44px; }
.chip { min-height: 44px; }
.choice:focus-within { outline: 2px solid var(--brand-deep); outline-offset: 2px; }
.card .well { aspect-ratio: 1; isolation: isolate; }
.card .well img { width: 86%; height: 86%; }
.card .well-link { display: block; position: absolute; inset: 0; z-index: 1; }
.card .tags { z-index: 2; pointer-events: none; }
.card .fav { z-index: 3; background: var(--surface); border-radius: var(--rf); }
.card .fav[aria-pressed="true"] { color: var(--sale); }
.card .fav[aria-pressed="true"] svg { fill: currentColor; }
.card .quick, .card .add-m { z-index: 3; }
.card .quick { min-height: 44px; }
.card .brand { font-size: 13px; }
.card .name { font-family: var(--font-body); font-size: 15px; min-height: 2.5em; -webkit-line-clamp: 3; overflow-wrap: anywhere; }
.card .price { min-height: 28px; }
.rail { grid-auto-columns: calc((100% - 12px) / 2); scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.rail::-webkit-scrollbar { display: initial; height: 5px; }
.rail::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: var(--rf); }
.tabbar { box-shadow: 0 -4px 18px rgba(15, 26, 20, .07); }
.tabbar a { min-height: 60px; font-size: 12px; }
.tabbar a[aria-current="page"] { color: var(--brand-deep); font-weight: 600; }
.footer { background: var(--night); }
.footer .trust { border-bottom: 1px solid #304137; }
.footer a:hover, .footer a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.footer .news .input { min-width: 0; }
.footer-status { color: var(--accent-light); }
.skip-link { position: fixed; z-index: 100; inset-block-start: var(--s3); inset-inline-start: var(--s3); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.shop-status { position: fixed; z-index: 83; inset-inline-end: var(--s4); bottom: 104px; max-width: calc(100% - 32px); padding: var(--s3) var(--s4); background: var(--night); color: white; box-shadow: var(--shadow-2); border-radius: var(--r2); }
.shop-status a { margin-inline-start: var(--s3); text-decoration: underline; text-underline-offset: 3px; }
.quiet-empty { text-align: center; padding: clamp(28px, 6vw, 80px) var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r2); }
.quiet-empty > .i { margin-inline: auto; width: 40px; height: 40px; color: var(--brand-deep); }
.form-feedback { font-size: var(--fs-small); color: var(--brand-deep); margin: 0; }
.compact-heading { margin-block: var(--s5); }
@media (max-width: 767px) {
  .section-head { gap: var(--s2); margin-bottom: var(--s4); }
  .section { padding-block: var(--s6); }
  .footer { margin-top: var(--s7); }
  .footer .trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
}
@media (hover: none) {
  .card .add-m { top: auto; bottom: var(--s2); margin: 0; width: 44px; height: 44px; }
}
@media (min-width: 768px) { .rail { grid-auto-columns: calc((100% - 48px) / 3); } }
@media (min-width: 1200px) { .rail { grid-auto-columns: calc((100% - 72px) / 4); } }
.header form.searchbar button { background: none; border: 0; min-width: 32px; height: 40px; display: grid; place-items: center; margin-inline-start: -7px; }
.catalog-intro { padding-block: var(--s6); }
.catalog-intro .h1 { margin-bottom: var(--s3); }
.collection-intro { background: linear-gradient(105deg, var(--brand-tint), var(--bg) 75%); border-bottom: 1px solid var(--line); }
.collection-intro .crumbs { padding-top: 0; }
.search-intro { background: radial-gradient(ellipse at 18% 100%, #233b2e, var(--night) 68%); }
.catalog-search { display: grid; grid-template-columns: minmax(0, 1fr) 44px auto; align-items: center; gap: var(--s2); max-width: 765px; margin-block: var(--s4); }
.catalog-search .input { color: #17150f; background: #fff; }
.catalog-search .icon-btn:hover { background: #25382d; }
.catalog-suggestions, .catalog-controls { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.catalog-suggestions .chip { padding-inline: var(--s3); }
.catalog-list { padding-block-start: var(--s5); }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s5); }
.catalog-controls .input { width: auto; font-size: 14px; height: 48px; }
.catalog-controls select, .catalog-dialog select { appearance: none; padding-inline-end: 38px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317150f' stroke-width='1.8'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") left 10px center / 18px no-repeat; }
.catalog-controls .btn { font-size: 14px; }
.catalog-list #catalog-active { margin-bottom: var(--s4); }
.catalog-more { text-align: center; margin-top: var(--s5); }
.brand-picture { display: grid; place-items: center; min-width: 0; overflow: hidden; background: #eee7da; color: #634a2d; isolation: isolate; }
.brand-picture.rose { background: #f1e1de; color: #78423f; }
.brand-picture.blue { background: #dfe8f0; color: #273f63; }
.brand-picture.wine { background: #eee1e9; color: #5e3250; }
.brand-picture.green { background: #e3eae2; color: #2f5540; }
.brand-picture img { width: 100%; height: 100%; object-fit: contain; }
.brand-picture.product img { width: 81%; height: 88%; mix-blend-mode: multiply; }
.brand-picture.campaign img { object-fit: cover; }
.brand-picture.logo img { width: 76%; height: 70%; mix-blend-mode: multiply; }
.brand-picture.initials { font-family: var(--font-latin); font-size: calc(1.6em + .2vw); }
.bi .brand-picture.initials { font-size: 16px; }
.catalog-dialog { width: min(100% - 24px, 480px); color: var(--ink); max-height: min(620px, 90dvh); }
.catalog-dialog::backdrop { background: rgba(15,26,20,.59); }
.catalog-dialog form { display: grid; gap: var(--s4); }
@media (max-width: 767px) {
  .catalog-intro { padding-block: var(--s5); }
  .catalog-search { grid-template-columns: minmax(0, 1fr) 36px auto; gap: var(--s1); }
  .catalog-search .icon-btn { width: 36px; }
  .catalog-search .btn { padding-inline: var(--s2); }
  .catalog-toolbar { margin-bottom: var(--s4); }
  .catalog-dialog { inset-block: auto 0; width: 100%; max-width: 100%; margin: 0; border-radius: 18px 18px 0 0; }
}
