/* DAY2DAY LIVING SDN. BHD. — shared styles
   "Kitchen-counter sticker" system: linen page, the logo's hand-inked black outline as 2px borders with hard offset
   shadows, logo butter-yellow (#f5cc72) as the fill colour (always INK text on it) and a brick red (#9c3f1d, AA on
   linen) for accent text and links. Bricolage Grotesque display over Figtree body. Centred two-row masthead,
   yellow footer, sidebar shop, panoramic home. Mobile-first overrides at the bottom. */

:root {
  --ink: #231f20;
  --ink-soft: #494345;       /* 9:1 on --bg */
  --ink-faint: #625b5d;      /* 6.3:1 on --bg */
  --bg: #fbf9f4;
  --bg-soft: #f7ecd0;
  --bg-sage: #e6ebdd;
  --surface: #ffffff;
  --border: #e4dccb;
  --accent: #f5cc72;         /* logo butter yellow: fills only, INK text on top */
  --accent-dark: #ecb94a;
  --accent-text: #9c3f1d;    /* brick: 6.4:1 on --bg, 5.1:1 on --bg-soft */
  --accent-soft: rgba(245, 204, 114, 0.28);
  --tag-fg: #3a3436;
  --radius-lg: 22px;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --lift: 4px 4px 0 var(--ink);
  --lift-sm: 3px 3px 0 var(--ink);
  --shadow-soft: 0 18px 40px -22px rgba(35, 31, 32, 0.35);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Figtree", -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, .display {
  font-family: "Bricolage Grotesque", "Figtree", -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
a { color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent-text); outline-offset: 2px; border-radius: 4px;
}
.wrap { width: min(1220px, 100% - 3rem); margin-inline: auto; }

/* ---------- Masthead: contact | centred logo | cart, nav row beneath ---------- */
.topbar { display: none; }
.masthead {
  position: sticky; top: 0; z-index: 30;
  background: var(--bg);
  border-bottom: 2px solid var(--ink);
}
.masthead .wrap {
  display: grid; grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "tel brand cart" "nav nav nav";
  align-items: center; column-gap: 1rem;
}
.masthead .tel { grid-area: tel; font-size: 0.85rem; font-weight: 700; text-decoration: none; color: var(--ink-soft); }
.masthead .tel small { display: block; font-weight: 500; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.masthead .tel:hover { color: var(--accent-text); }
.brand { grid-area: brand; display: inline-flex; align-items: center; text-decoration: none; padding-block: 0.7rem; justify-self: center; }
.brand-logo { height: 62px; width: auto; flex: none; display: block; }
.nav { display: contents; }
.nav .links {
  grid-area: nav; display: flex; justify-content: center; gap: 0.4rem;
  border-top: 1.5px solid var(--border); padding-block: 0.45rem;
}
.nav .links a {
  text-decoration: none; font-weight: 700; font-size: 0.92rem; color: var(--ink-soft);
  padding: 0.35rem 1.1rem; border-radius: var(--radius-pill); border: 2px solid transparent;
  transition: background 0.15s, color 0.15s;
}
.nav .links a:hover { background: var(--accent-soft); color: var(--ink); }
.nav .links a[aria-current="page"] { background: var(--accent); color: var(--ink); border-color: var(--ink); }
.cart-link {
  grid-area: cart; justify-self: end;
  display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; font-weight: 700; font-size: 0.9rem;
  border: 2px solid var(--ink); border-radius: var(--radius-pill); padding: 0.4rem 0.85rem 0.4rem 0.7rem;
  background: var(--surface); box-shadow: var(--lift-sm); transition: transform 0.12s, box-shadow 0.12s;
}
.cart-link:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.cart-link[aria-current="page"] { background: var(--accent); }
.cart-link svg { width: 20px; height: 20px; }
.cart-badge {
  min-width: 1.4rem; height: 1.4rem; padding: 0 0.35rem; border-radius: var(--radius-pill);
  background: var(--ink); color: #fff; font-size: 0.75rem; line-height: 1.4rem; text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-weight: 800; font-size: 0.95rem; text-decoration: none; cursor: pointer;
  background: var(--accent); color: var(--ink);
  border: 2px solid var(--ink); border-radius: var(--radius); padding: 0.7rem 1.4rem;
  box-shadow: var(--lift-sm); transition: transform 0.12s, box-shadow 0.12s, background 0.15s;
}
.btn:hover { background: var(--accent-dark); transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--ghost { background: var(--surface); }
.btn--ghost:hover { background: var(--bg-soft); }
.btn--block { display: flex; width: 100%; }
.btn--add { padding: 0.5rem 1rem; font-size: 0.88rem; }

.eyebrow {
  display: inline-block; margin: 0 0 1rem; padding: 0.25rem 0.8rem;
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--accent); border: 2px solid var(--ink); border-radius: var(--radius-pill); color: var(--ink);
  text-decoration: none;
}
.lead, .lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; margin: 0; }
.muted { color: var(--ink-faint); }

/* ---------- Sections ---------- */
.band { padding-block: clamp(3rem, 7vw, 5.5rem); }
.band--soft { background: var(--bg-soft); border-block: 2px solid var(--ink); }
.band--sage { background: var(--bg-sage); border-block: 2px solid var(--ink); }
.page-main { padding-block: clamp(2rem, 5vw, 3.5rem); }
.page-head { background: var(--accent); border-bottom: 2px solid var(--ink); padding-block: clamp(2.2rem, 5vw, 3.6rem); }
.page-head h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
.page-head .lede { margin-top: 0.9rem; color: var(--ink); }
.page-head .eyebrow { background: var(--surface); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.section-head .meta { color: var(--ink-faint); font-size: 0.9rem; font-weight: 600; }

/* ---------- Home: hero ---------- */
.hero { padding: clamp(2.6rem, 6vw, 4.5rem) 0 0; text-align: center; background:
  radial-gradient(circle at 12% 20%, var(--accent-soft) 0 90px, transparent 91px),
  radial-gradient(circle at 90% 70%, var(--accent-soft) 0 140px, transparent 141px); }
.hero .wrap { display: block; }
.hero-copy { max-width: 880px; margin: 0 auto; }
.hero h1 { font-size: clamp(2.7rem, 8.2vw, 6rem); line-height: 0.96; }
.hero h1 em { font-style: normal; background: var(--accent); padding: 0 0.18em; border-radius: 0.18em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero .lead { margin: 1.4rem auto 0; font-size: 1.2rem; }
.hero-cta { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; margin-top: 1.8rem; }
.hero-visual {
  margin: clamp(2rem, 5vw, 3.2rem) 0 0; border: 2px solid var(--ink); border-bottom: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; background: var(--accent);
}
.hero-visual img { width: 100%; height: auto; }

.ticker { background: var(--ink); color: var(--accent); overflow: hidden; border-block: 2px solid var(--ink); }
.ticker__track { display: flex; width: max-content; animation: tick 38s linear infinite; }
.ticker span { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.1rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.8rem 1.6rem; white-space: nowrap; }
.ticker span::after { content: "\2726"; margin-left: 3.2rem; color: #fff; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Home: bento categories ---------- */
.cat-cards {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(190px, auto);
}
.cat-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
  text-decoration: none; background: var(--surface);
  border: 2px solid var(--ink); border-radius: var(--radius-lg); box-shadow: var(--lift);
  transition: transform 0.14s, box-shadow 0.14s;
}
.cat-card:hover { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.cat-card:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.cat-card:nth-child(2), .cat-card:nth-child(3) { grid-column: span 3; }
.cat-card:nth-child(4), .cat-card:nth-child(5) { grid-column: span 3; }
.cat-card:nth-child(2) { background: var(--bg-sage); }
.cat-card:nth-child(3) { background: var(--bg-soft); }
.cat-card__media { position: absolute; inset: 0 0 0 0; display: flex; justify-content: flex-end; }
.cat-card__media img { height: 100%; width: auto; max-width: 70%; object-fit: contain; mix-blend-mode: multiply; }
.cat-card:nth-child(1) .cat-card__media { padding: 1rem 1rem 4.5rem; }
.cat-card:nth-child(1) .cat-card__media img { max-width: 100%; margin-inline: auto; }
.cat-card__body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 0.15rem; padding: 1.2rem 1.4rem; align-items: flex-start; }
.cat-card h3 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); }
.cat-card .n { font-size: 0.85rem; color: var(--ink-soft); font-weight: 600; }
.cat-card .go { margin-top: 0.5rem; font-weight: 800; font-size: 0.85rem; background: var(--accent); border: 2px solid var(--ink); border-radius: var(--radius-pill); padding: 0.15rem 0.7rem; }

/* ---------- Product cards ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.4rem; }
.pcard {
  position: relative; display: flex; flex-direction: column; background: var(--surface);
  border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden;
  transition: transform 0.14s, box-shadow 0.14s;
}
.pcard:hover { transform: translate(-2px, -2px); box-shadow: var(--lift); }
.pcard__link { position: absolute; inset: 0; z-index: 1; }
.pcard__media { position: relative; background: #fff; border-bottom: 2px solid var(--ink); aspect-ratio: 1; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; }
.sku {
  position: absolute; left: 0.6rem; top: 0.6rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em;
  background: var(--accent); color: var(--tag-fg); border: 1.5px solid var(--ink); border-radius: var(--radius-pill); padding: 0.1rem 0.55rem;
}
.pcard__body { display: flex; flex-direction: column; flex: 1; padding: 0.95rem 1rem 1rem; gap: 0.4rem; }
.pcard h3 { font-size: 1.12rem; line-height: 1.15; }
.pcard p { margin: 0; font-size: 0.86rem; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__foot { margin-top: auto; padding-top: 0.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; }
.price { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.2rem; display: flex; flex-direction: column; line-height: 1.1; }
.price .pack { font-family: "Figtree", sans-serif; font-size: 0.72rem; font-weight: 600; color: var(--ink-faint); }
.pcard__buy { display: flex; align-items: center; gap: 0.45rem; position: relative; z-index: 2; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.qty__btn { width: 1.9rem; height: 2.1rem; border: 0; background: transparent; font: inherit; font-weight: 800; font-size: 1.05rem; cursor: pointer; }
.qty__btn:hover { background: var(--accent-soft); }
.qty__in { width: 2.6rem; height: 2.1rem; border: 0; text-align: center; font: inherit; font-weight: 700; background: transparent; -moz-appearance: textfield; }
.qty__in::-webkit-outer-spin-button, .qty__in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pcard .qty__btn { width: 1.6rem; }
.pcard .qty__in { width: 2.1rem; }

/* home: single scrolling shelf */
.shelf { display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.4rem 0.4rem 1.4rem; margin-inline: -0.4rem; scrollbar-color: var(--ink) transparent; }
.shelf .pcard { flex: 0 0 min(280px, 78vw); scroll-snap-align: start; }

/* ---------- Home: day-at-home split, steps, faq ---------- */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.split__lead { position: sticky; top: 9.5rem; }
.split__lead h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.split__lead p { margin: 1rem 0 1.6rem; color: var(--ink-soft); max-width: 40ch; }
.moments { list-style: none; margin: 0; padding: 0; counter-reset: m; display: grid; gap: 1rem; }
.moments li {
  counter-increment: m; position: relative; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius-lg);
  padding: 1.3rem 1.5rem 1.4rem 5rem; box-shadow: var(--lift-sm);
}
.moments li::before {
  content: counter(m, decimal-leading-zero); position: absolute; left: 1.3rem; top: 1.1rem;
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 2.1rem; color: var(--accent-text); line-height: 1;
}
.moments h3 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.moments p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

.steprow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; position: relative; counter-reset: s; }
.steprow::before { content: ""; position: absolute; left: 8%; right: 8%; top: 1.7rem; border-top: 3px dashed var(--ink); z-index: 0; }
.step { position: relative; z-index: 1; text-align: center; counter-increment: s; padding-top: 0; }
.step::before {
  content: counter(s); display: grid; place-items: center; width: 3.4rem; height: 3.4rem; margin: 0 auto 1rem; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--ink); box-shadow: var(--lift-sm); font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.4rem;
}
.step h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.step p { margin: 0 auto; color: var(--ink-soft); font-size: 0.95rem; max-width: 32ch; }

.valuegrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.valuegrid--3 { grid-template-columns: repeat(3, 1fr); }
.value { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.3rem 1.3rem 1.4rem; }
.value .num { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; color: var(--accent-text); font-size: 1rem; }
.value h3 { font-size: 1.15rem; margin: 0.4rem 0; }
.value p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

.faq-list { display: grid; gap: 0.8rem; }
.faq { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); }
.faq summary { cursor: pointer; list-style: none; font-weight: 800; padding: 1rem 3rem 1rem 1.2rem; position: relative; font-family: "Bricolage Grotesque", sans-serif; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 800; }
.faq[open] summary::after { content: "\2212"; }
.faq[open] { background: var(--bg-soft); }
.faq p { margin: 0; padding: 0 1.2rem 1.1rem; color: var(--ink-soft); font-size: 0.95rem; }

.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  background: var(--accent); border: 2px solid var(--ink); border-radius: var(--radius-lg); box-shadow: 6px 6px 0 var(--ink); padding: clamp(1.6rem, 4vw, 2.8rem);
}
.cta h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.cta p { margin: 0.5rem 0 0; max-width: 52ch; }
.cta .btn { background: var(--ink); color: #fff; }
.cta .btn:hover { background: #000; }

/* ---------- About ---------- */
.about-hero { background: var(--accent); border-bottom: 2px solid var(--ink); padding-block: clamp(2.4rem, 6vw, 4.5rem); }
.about-hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.8rem, 5vw, 4rem); align-items: center; }
.about-hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); }
.about-hero .lede { margin-top: 1.1rem; color: var(--ink); }
.about-hero .eyebrow { background: var(--surface); }
.about-hero .hero-visual { margin: 0; border: 2px solid var(--ink); border-radius: var(--radius-lg); box-shadow: 6px 6px 0 var(--ink); transform: rotate(1.6deg); }
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem, 4vw, 3.5rem); align-items: start; }
.prose p { margin: 0 0 1.1rem; color: var(--ink-soft); }
.prose p:first-child::first-line { color: var(--ink); }
.prose strong { color: var(--ink); }
.range-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.range-panel { display: grid; grid-template-columns: 150px 1fr; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.range-panel__media { background: #fff; border-right: 2px solid var(--ink); }
.range-panel__media img { width: 100%; height: 100%; object-fit: cover; }
.range-panel__body { padding: 1rem 1.2rem; display: flex; flex-direction: column; gap: 0.3rem; align-items: flex-start; }
.range-panel h3 { font-size: 1.25rem; }
.range-panel p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; background: var(--bg-soft); border: 1.5px solid var(--ink); border-radius: var(--radius-pill); padding: 0.05rem 0.6rem; }
.go { font-weight: 800; color: var(--accent-text); text-decoration: none; margin-top: auto; }
.go:hover { text-decoration: underline; }

/* testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: start; }
.quote { margin: 0; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius-lg); padding: 1.6rem 1.5rem 1.4rem; box-shadow: var(--lift); position: relative; }
.quote:nth-child(2) { transform: translateY(1.6rem); background: var(--accent); }
.quote::before { content: "\201C"; position: absolute; top: -0.4rem; left: 1.1rem; font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 5rem; line-height: 1; color: var(--accent-text); }
.quote:nth-child(2)::before { color: var(--ink); }
.quote blockquote { margin: 1.6rem 0 1.1rem; font-size: 1.02rem; line-height: 1.55; }
.quote .stars { color: var(--accent-text); letter-spacing: 0.15em; font-size: 0.95rem; }
.quote:nth-child(2) .stars { color: var(--ink); }
.quote figcaption { display: flex; align-items: center; gap: 0.7rem; border-top: 2px dashed var(--ink); padding-top: 0.9rem; font-size: 0.88rem; }
.quote .av { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--bg-soft); border: 2px solid var(--ink); display: grid; place-items: center; font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; flex: none; }
.quote:nth-child(2) .av { background: #fff; }
.quote figcaption strong { display: block; line-height: 1.2; }
.quote figcaption span { color: var(--ink-soft); }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; }
.contact-card { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.contact-card h4 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.contact-card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.contact-card a { color: var(--accent-text); font-weight: 700; }

/* ---------- Shop: sidebar + grid ---------- */
.shop-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.6rem); align-items: start; }
.shop-side { position: sticky; top: 9.5rem; }
.shop-side h2 { font-size: 1.1rem; margin-bottom: 0.8rem; }
.filters { display: flex; flex-direction: column; gap: 0.5rem; }
.chip {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; text-align: left; font: inherit; font-weight: 700; font-size: 0.93rem; cursor: pointer;
  background: var(--surface); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius); padding: 0.6rem 0.9rem;
  transition: background 0.12s, transform 0.12s;
}
.chip:hover { background: var(--accent-soft); }
.chip[aria-pressed="true"] { background: var(--accent); box-shadow: var(--lift-sm); transform: translate(-1px, -1px); }
.chip .c { font-size: 0.75rem; background: var(--ink); color: #fff; border-radius: var(--radius-pill); padding: 0.05rem 0.55rem; }
.shop-note { margin-top: 1.4rem; background: var(--bg-soft); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1rem; font-size: 0.88rem; color: var(--ink-soft); }
.shop-note a { color: var(--accent-text); font-weight: 700; }
.shop-top { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; flex-wrap: wrap; margin-bottom: 1.4rem; }
.shop-top h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.shop-top .meta { color: var(--ink-faint); font-weight: 600; font-size: 0.9rem; }
.cat-group { margin-bottom: 2.8rem; scroll-margin-top: 10rem; }
.cat-group__head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.1rem; padding-bottom: 0.7rem; border-bottom: 2px solid var(--ink); }
.cat-group__head h2 { font-size: 1.5rem; }
.cat-group__head .n { margin-left: auto; color: var(--ink-faint); font-size: 0.85rem; font-weight: 600; }
#catalog .pgrid { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
.no-results { padding: 2rem; text-align: center; color: var(--ink-soft); }
.pricelist { margin-top: 1rem; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); }
.pricelist summary { cursor: pointer; font-weight: 800; padding: 0.9rem 1.2rem; }
.tbl-scroll { overflow-x: auto; padding: 0 1.2rem 1.2rem; }
.plist { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.plist th, .plist td { padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--border); text-align: left; }
.plist th { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }
.plist .code { font-family: ui-monospace, Menlo, monospace; font-size: 0.8rem; white-space: nowrap; }
.plist .amt { text-align: right; font-weight: 700; }

/* ---------- Product page ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.82rem; }
.crumbs a { text-decoration: none; font-weight: 700; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .here { color: var(--ink-soft); }
.page-head:has(.crumbs) { padding-block: 1rem; background: var(--bg-soft); }
.pdetail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.pdetail__media { position: sticky; top: 9.5rem; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius-lg); box-shadow: 6px 6px 0 var(--ink); overflow: hidden; }
.pdetail__media img { width: 100%; height: auto; }
.pdetail__info h1 { font-size: clamp(1.9rem, 4vw, 3rem); margin: 0.2rem 0 0.8rem; }
.pdetail__price { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 2rem; margin: 0; }
.pdetail__price span { font-size: 0.9rem; font-weight: 600; color: var(--ink-faint); font-family: "Figtree", sans-serif; }
.pdetail__pack { margin: 0.2rem 0 1.2rem; color: var(--ink-soft); font-weight: 600; }
.pdetail__buy { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 1.6rem; padding: 1rem; background: var(--accent); border: 2px solid var(--ink); border-radius: var(--radius); }
.pdetail__buy .btn--add { background: var(--ink); color: #fff; padding: 0.65rem 1.4rem; font-size: 0.95rem; }
.pdetail__buy .link-back { margin-left: auto; }
.pdetail__block { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.1rem 1.3rem; margin-bottom: 1rem; }
.pdetail__h { font-size: 1.15rem; margin-bottom: 0.6rem; }
.pdetail__sub { font-size: 0.98rem; margin: 1rem 0 0.4rem; }
.pdetail__desc { margin: 0; color: var(--ink-soft); }
.pdetail__list { margin: 0; padding-left: 1.2rem; color: var(--ink-soft); }
.pdetail__desc a { font-weight: 700; }
.spec { margin: 0; display: grid; }
.spec > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.8rem; padding: 0.5rem 0; border-bottom: 1px dashed var(--border); font-size: 0.93rem; }
.spec > div:last-child { border-bottom: 0; }
.spec dt { color: var(--ink-faint); font-weight: 600; }
.spec dd { margin: 0; }
.link-back { font-weight: 800; color: var(--accent-text); text-decoration: none; font-size: 0.92rem; }
.link-back:hover { text-decoration: underline; }
.variant-picker { margin-bottom: 1rem; }
.variant-picker__label { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 0.4rem; }
.variant-picker__opts { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.variant-pill { font: inherit; font-weight: 700; font-size: 0.88rem; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius-pill); padding: 0.3rem 0.9rem; cursor: pointer; }
.variant-pill[aria-pressed="true"] { background: var(--accent); }
.empty { text-align: center; padding: 3rem 1rem; border: 2px dashed var(--ink); border-radius: var(--radius-lg); background: var(--surface); }
.empty p { font-size: 1.15rem; margin: 0 0 1.2rem; }

/* ---------- Cart ---------- */
.cart-view { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(1.5rem, 3vw, 2.4rem); align-items: start; }
.cart-view > .empty { grid-column: 1 / -1; }
.cart-list { display: grid; gap: 1rem; }
.cart-row {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto; grid-template-areas: "img info qty line" "img info qty rm";
  align-items: center; gap: 0.4rem 1.1rem; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); padding: 0.8rem;
}
.cart-row > img { grid-area: img; width: 96px; height: 96px; object-fit: cover; border: 2px solid var(--ink); border-radius: var(--radius-sm); }
.cart-row__info { grid-area: info; display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.cart-row__info h3 { font-size: 1.05rem; }
.cart-row__info .mono { font-size: 0.78rem; color: var(--ink-faint); }
.cart-row__variant { font-size: 0.82rem; color: var(--ink-soft); }
.cart-row .qty { grid-area: qty; }
.cart-row__line { grid-area: line; font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.1rem; text-align: right; }
.cart-row__rm { grid-area: rm; justify-self: end; background: none; border: 0; padding: 0; font: inherit; font-size: 0.8rem; font-weight: 700; color: var(--accent-text); cursor: pointer; text-decoration: underline; }
.cart-summary { position: sticky; top: 9.5rem; background: var(--bg-soft); border: 2px solid var(--ink); border-radius: var(--radius-lg); box-shadow: var(--lift); padding: 1.4rem; display: grid; gap: 0.8rem; }
.row { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.95rem; }
.row.total { border-top: 2px dashed var(--ink); padding-top: 0.8rem; margin-top: 0.4rem; font-weight: 800; font-size: 1.15rem; }
.note, .co-note { margin: 0; font-size: 0.85rem; color: var(--ink-soft); }
.co-note a, .note a { color: var(--accent-text); font-weight: 700; }

/* ---------- Checkout / forms ---------- */
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: clamp(1.5rem, 3vw, 2.6rem); align-items: start; }
.co-form { display: grid; gap: 1.1rem; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius-lg); padding: clamp(1.2rem, 3vw, 2rem); }
.co-summary { position: sticky; top: 9.5rem; background: var(--bg-soft); border: 2px solid var(--ink); border-radius: var(--radius-lg); box-shadow: var(--lift); padding: 1.4rem; display: grid; gap: 0.8rem; }
.co-summary .row { border-bottom: 1px dashed var(--ink-faint); padding-bottom: 0.7rem; }
.co-summary .row.total { border-bottom: 0; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 700; font-size: 0.9rem; }
.req { color: var(--accent-text); }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 2px solid var(--ink); border-radius: var(--radius-sm); padding: 0.65rem 0.8rem;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, textarea:focus { background: #fff; outline: 3px solid var(--accent); outline-offset: 0; }
textarea { min-height: 120px; resize: vertical; }
.radios { display: grid; gap: 0.5rem; }
.radios label { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; background: var(--bg); border: 2px solid var(--ink); border-radius: var(--radius-sm); padding: 0.55rem 0.8rem; cursor: pointer; }
.radios input { accent-color: var(--ink); }
.co-payment h2 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.payment-notice { display: flex; gap: 0.9rem; background: var(--accent-soft); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1rem; }
.payment-notice__icon { flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; background: var(--accent); border: 2px solid var(--ink); border-radius: 50%; }
.payment-notice p { margin: 0 0 0.5rem; font-size: 0.92rem; }
.payment-notice p:last-child { margin: 0; }
.payment-notice a { color: var(--accent-text); font-weight: 700; }
.terms-row { display: flex; gap: 0.6rem; align-items: flex-start; }
.terms-row input { flex: none; margin-top: 0.3rem; accent-color: var(--ink); width: 1.05rem; height: 1.05rem; }
.terms-row label { font-size: 0.88rem; color: var(--ink-soft); }
.terms-row a { color: var(--accent-text); font-weight: 700; }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(1.5rem, 3vw, 2.6rem); align-items: start; }
.contact-map { position: sticky; top: 9.5rem; }
.office-card { background: var(--accent); border: 2px solid var(--ink); border-radius: var(--radius-lg); box-shadow: var(--lift); padding: 1.5rem; }
.office-card h3 { font-size: 1.4rem; margin-bottom: 0.7rem; }
.office-card address { font-style: normal; font-weight: 600; margin-bottom: 0.8rem; }
.office-card p { margin: 0 0 0.7rem; font-size: 0.92rem; }
.map-note { font-size: 0.8rem !important; font-family: ui-monospace, Menlo, monospace; }
.co-done { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius-lg); box-shadow: var(--lift); padding: clamp(1.2rem, 3vw, 2rem); }
.co-done h2 { font-size: 1.8rem; margin-bottom: 0.6rem; }
.co-done .ref { font-weight: 700; }
.co-done pre { white-space: pre-wrap; word-break: break-word; background: var(--bg); border: 2px dashed var(--ink); border-radius: var(--radius-sm); padding: 1rem; font-size: 0.82rem; }
.actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }

.pay-result { max-width: 680px; margin: 0 auto; text-align: center; padding: 2rem 1.5rem; border: 2px solid var(--ink); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--lift); }
.pay-result h2 { margin: 0 0 0.8rem; }
.pay-result p { margin: 0 0 0.8rem; }
.pay-result__ref { display: inline-block; margin: 0.3rem 0 1rem; padding: 0.6rem 1rem; border: 2px dashed var(--ink); border-radius: var(--radius); background: var(--bg-soft); font-size: 0.85rem; word-break: break-all; }
.pay-result__actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }

/* ---------- Legal: sticky contents rail + document ---------- */
.legal-doc { display: grid; grid-template-columns: 270px minmax(0, 1fr); column-gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; max-width: 1100px; }
.legal-doc > * { grid-column: 2; }
.legal-doc > .legal-toc { grid-column: 1; grid-row: 1 / span 40; position: sticky; top: 9.5rem; }
.legal-doc .updated-note { display: inline-block; justify-self: start; margin: 0 0 1.2rem; background: var(--accent-soft); border: 2px solid var(--ink); border-radius: var(--radius-pill); padding: 0.25rem 1rem; font-size: 0.82rem; font-weight: 700; color: var(--ink); }
.legal-toc { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1rem 1.1rem; max-height: calc(100vh - 11rem); overflow: auto; }
.legal-toc h4 { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.6rem; color: var(--ink-faint); }
.legal-toc ol { margin: 0; padding-left: 1.2rem; }
.legal-toc li { margin-bottom: 0.35rem; font-size: 0.88rem; }
.legal-toc a { color: var(--ink); font-weight: 600; text-decoration: none; }
.legal-toc a:hover { color: var(--accent-text); text-decoration: underline; }
.legal-doc section { margin-bottom: 1.6rem; padding-bottom: 1.6rem; border-bottom: 1px dashed var(--ink-faint); scroll-margin-top: 10rem; }
.legal-doc h2 { font-size: 1.35rem; display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.7rem; }
.legal-doc .clause-no { flex: none; display: grid; place-items: center; min-width: 2.3rem; height: 2.3rem; padding: 0 0.4rem; background: var(--accent); border: 2px solid var(--ink); border-radius: 50%; font-size: 0.85rem; }
.legal-doc p, .legal-doc li { color: var(--ink-soft); font-size: 0.97rem; }
.legal-doc p { margin: 0 0 0.8rem; }
.legal-doc ul, .legal-doc ol { color: var(--ink-soft); }
.legal-doc a { color: var(--accent-text); font-weight: 600; }

/* ---------- Footer: butter yellow ---------- */
footer { background: var(--accent); border-top: 2px solid var(--ink); color: var(--ink); margin-top: 0; }
footer .wrap { padding-top: clamp(2.4rem, 5vw, 3.6rem); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.foot-brand .brand-logo { height: 76px; }
.foot-brand .brand { padding: 0; justify-self: start; }
.foot-brand p { max-width: 36ch; font-size: 0.93rem; margin: 1rem 0 0; }
.foot-col h5 { font-family: "Bricolage Grotesque", sans-serif; font-size: 1rem; font-weight: 800; margin: 0 0 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.foot-col a { text-decoration: none; font-weight: 600; font-size: 0.93rem; }
.foot-col a:hover { text-decoration: underline; }
.foot-legal { margin-top: 2.4rem; padding-block: 1.2rem; border-top: 2px solid var(--ink); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; font-size: 0.78rem; font-weight: 600; }
.foot-legal .reg { font-weight: 700; }
.foot-contact { display: grid; gap: 0.2rem; margin-top: 1rem; font-weight: 700; font-size: 0.93rem; }
.foot-contact a { text-decoration: none; }
.foot-contact a:hover { text-decoration: underline; }

/* ======================= Responsive ======================= */
@media (max-width: 1020px) {
  .valuegrid { grid-template-columns: repeat(2, 1fr); }
  .valuegrid--3 { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .quote:nth-child(2) { transform: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .range-grid { grid-template-columns: 1fr; }
  .cart-view, .co-grid { grid-template-columns: 1fr; }
  .cart-summary, .co-summary { position: static; }
  .co-summary { order: -1; }
}
@media (max-width: 860px) {
  .wrap { width: min(1220px, 100% - 2rem); }
  .masthead .wrap { grid-template-columns: 1fr auto; grid-template-areas: "brand cart" "nav nav"; }
  .masthead .tel { display: none; }
  .brand { justify-self: start; padding-block: 0.5rem; }
  .brand-logo { height: 50px; }
  .nav .links { justify-content: space-between; gap: 0; padding-inline: 0; margin-inline: -0.2rem; }
  .nav .links a { padding: 0.35rem 0.7rem; font-size: 0.88rem; }
  .cart-link { padding: 0.3rem 0.7rem 0.3rem 0.6rem; }
  .split, .about-split, .about-hero .wrap, .contact-layout, .pdetail { grid-template-columns: 1fr; }
  .split__lead, .pdetail__media, .contact-map { position: static; }
  .about-hero .hero-visual { transform: none; box-shadow: var(--lift); }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-side { position: static; }
  .shop-side h2, .shop-note { display: none; }
  .filters { flex-direction: row; overflow-x: auto; padding: 0.2rem 0.2rem 0.6rem; margin-inline: -0.2rem; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; white-space: nowrap; }
  .legal-doc { grid-template-columns: 1fr; }
  .legal-doc > * { grid-column: 1; }
  .legal-doc > .legal-toc { grid-row: auto; position: static; max-height: none; margin-bottom: 1.4rem; }
  .legal-toc ol { columns: 1; }
  .steprow { grid-template-columns: 1fr; gap: 1.6rem; }
  .steprow::before { left: 1.7rem; right: auto; top: 1.7rem; bottom: 1.7rem; border-top: 0; border-left: 3px dashed var(--ink); }
  .step { text-align: left; padding-left: 4.6rem; }
  .step::before { position: absolute; left: 0; top: 0; margin: 0; }
  .step p { margin: 0; max-width: none; }
  .cat-cards { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
  .cat-card:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .cat-card:nth-child(1) { grid-column: 1 / -1; grid-row: span 2; }
  .cat-card:nth-child(5) { grid-column: 1 / -1; }
  .cat-card__media img { max-width: 62%; }
}
@media (max-width: 560px) {
  body { font-size: 0.97rem; }
  .hero h1 { font-size: clamp(2.4rem, 12.5vw, 3.4rem); }
  .hero .lead, .lead, .lede { font-size: 1.02rem; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-visual img { min-height: 130px; object-fit: cover; }
  .section-head { margin-bottom: 1.3rem; }
  .valuegrid, .valuegrid--3 { grid-template-columns: 1fr; }
  .pgrid, #catalog .pgrid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .pcard__body { padding: 0.7rem; }
  .pcard h3 { font-size: 0.98rem; }
  .pcard p { display: none; }
  .pcard__foot { flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .pcard__buy { justify-content: space-between; }
  .pcard .qty__btn { width: 1.4rem; }
  .pcard .qty__in { width: 1.7rem; }
  .btn--add { padding: 0.45rem 0.7rem; }
  .sku { font-size: 0.6rem; left: 0.4rem; top: 0.4rem; }
  .moments li { padding: 1.1rem 1.1rem 1.2rem 4.1rem; }
  .moments li::before { left: 1rem; font-size: 1.8rem; }
  .cat-cards { grid-auto-rows: 170px; gap: 0.8rem; }
  .cat-card h3 { font-size: 1.15rem; }
  .cat-card__body { padding: 0.9rem 1rem; }
  .range-panel { grid-template-columns: 110px 1fr; }
  .spec > div { grid-template-columns: 1fr; gap: 0.1rem; }
  .pdetail__buy { padding: 0.8rem; }
  .pdetail__buy .link-back { margin-left: 0; flex-basis: 100%; }
  .cart-row { grid-template-columns: 72px minmax(0, 1fr); grid-template-areas: "img info" "qty line" "rm rm"; gap: 0.6rem 0.8rem; }
  .cart-row > img { width: 72px; height: 72px; }
  .cart-row__rm { justify-self: start; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem 1rem; }
  .foot-legal { flex-direction: column; }
  .cta { box-shadow: 4px 4px 0 var(--ink); }
  .cta .btn { width: 100%; }
  .legal-doc h2 { font-size: 1.15rem; }
  .actions .btn { flex: 1 1 100%; }
}
@media print {
  .masthead, footer, .ticker, .cta { display: none; }
  body { background: #fff; }
}

.range-panel:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 1020px) { .range-panel:last-child:nth-child(odd) { grid-column: auto; } }
.shop-layout > *, .cart-view > *, .co-grid > *, .contact-layout > *, .pdetail > *, .split > *, .about-split > * { min-width: 0; }

@media (max-width: 860px) {
  .cat-cards { grid-template-columns: 1fr; grid-auto-rows: 150px; }
  .cat-card:nth-child(n) { grid-column: 1 / -1; grid-row: span 1; }
  .cat-card:nth-child(1) { grid-row: span 1; }
  .cat-card:nth-child(1) .cat-card__media { padding: 0.6rem; }
  .cat-card:nth-child(1) .cat-card__media img { max-width: 62%; margin-inline: 0; margin-left: auto; }
  .cat-card__media img { max-width: 55%; }
  .cat-card__body { max-width: 52%; }
}
@media (max-width: 560px) {
  .hero-visual img { height: 230px; min-height: 0; object-fit: cover; object-position: left center; }
}
