/* ==========================================================================
   Cartiva Bazar — "Mandi board"

   The anchor is the wholesale fruit market: painted signboards, stencilled
   crates, and the hand-lettered price card wedged into the top of each stack.
   The slab face appears exactly twice — the hero word and the price chip —
   and everything else is set quietly in Outfit so the boldness lands in one
   place rather than shouting throughout.
   ========================================================================== */

:root {
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-slab:    'Alfa Slab One', Georgia, serif;
  --font-body:    'Outfit', system-ui, sans-serif;
  --font-util:    'Archivo', system-ui, sans-serif;

  --display-weight: 800;
  --display-tracking: -0.025em;
  --brand-weight: 800;
  --eyebrow-tracking: .17em;
  --btn-tracking: .05em;

  --radius-xs: 3px; --radius-sm: 6px; --radius-md: 8px;
  --radius-lg: 10px; --radius-btn: 8px; --radius-pill: 999px;
  --card-min: 246px; --card-gap: 1.3rem;
  --btn-shadow: 0 6px 0 color-mix(in srgb, var(--ink-strong) 55%, transparent);
}

h1, h2, h3, .brand__name { font-stretch: 108%; }

/* Sacking texture — a woven diagonal, kept faint so it reads as material. */
body {
  background-image:
    repeating-linear-gradient(45deg, color-mix(in srgb, var(--rule) 34%, transparent) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(-45deg, color-mix(in srgb, var(--rule) 24%, transparent) 0 1px, transparent 1px 7px);
}

/* ---------- announce & header ---------- */

.announce { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .7rem; }
.hdr { border-bottom: 3px solid var(--ink-strong); background: var(--bg); }
.brand__name { font-size: 1.36rem; color: var(--ink-strong); }
.brand__sub { color: var(--danger); letter-spacing: .24em; font-weight: 800; }
.nav a { font-size: .84rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.nav a:hover { border-bottom-color: var(--danger); }
.searchbox input { border: 2px solid var(--rule-strong); border-radius: 8px; }
.util { font-weight: 600; }

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(2.6rem, 1.4rem + 5vw, 5.6rem);
  background: var(--primary); color: #F4EEDF;
  position: relative; overflow: hidden;
}
/* Stencilled crate slats across the painted board. */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgb(255 255 255 / .05) 0 2px, transparent 2px 52px);
}
.hero__in { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; position: relative; z-index: 1; }
@media (min-width: 940px) { .hero__in { grid-template-columns: 1.04fr .96fr; } }

.hero .eyebrow { color: var(--accent); }
.hero h1 {
  font-family: var(--font-slab); font-weight: 400; font-stretch: normal;
  font-size: clamp(2.2rem, 1rem + 4.6vw, 4.3rem); line-height: 1.04;
  letter-spacing: -.01em; color: #FBF5E9; margin-bottom: .6rem;
  text-shadow: 3px 3px 0 rgb(0 0 0 / .22);
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lede { font-size: clamp(1rem, .95rem + .45vw, 1.18rem); max-width: 46ch; color: #D6DDD4; line-height: 1.65; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }
.hero .btn--primary { background: var(--accent); color: var(--ink-strong); }
.hero .btn--primary:hover { background: #FFB04A; }
.hero .btn--ghost { color: #F4EEDF; border-color: rgb(255 255 255 / .35); }
.hero .btn--ghost:hover { background: rgb(255 255 255 / .1); }

.hero__proof { list-style: none; margin: 2rem 0 0; padding: 1.3rem 0 0; border-top: 1px solid rgb(255 255 255 / .18); display: grid; gap: .55rem; }
.hero__proof li { font-size: .84rem; color: #C9D3C8; display: grid; grid-template-columns: 16px 1fr; gap: .65rem; align-items: start; }
.hero__proof li::before { content: "▪"; color: var(--accent); font-size: .8rem; }

.hero__figure { position: relative; margin: 0; }
.hero__figure img {
  width: 100%; aspect-ratio: 5 / 4.2; object-fit: cover;
  border: 5px solid var(--accent); border-radius: 10px;
  box-shadow: 0 18px 40px rgb(0 0 0 / .34);
}
/* The stat block is a painted crate stencil. */
.hero__stat {
  position: absolute; left: -12px; bottom: -18px; rotate: -3deg;
  background: var(--danger); color: #FFF3E6;
  padding: .8rem 1.15rem; border-radius: 4px; display: grid; gap: .05rem;
  box-shadow: 0 10px 26px rgb(0 0 0 / .38);
}
.hero__stat b { font-family: var(--font-slab); font-size: 1.7rem; line-height: 1; }
.hero__stat span { font-size: .63rem; letter-spacing: .13em; text-transform: uppercase; opacity: .85; font-weight: 600; }

/* ---------- facts: the chalk price board ---------- */

.facts { background: var(--ink-strong); color: #E4EBE2; }
.facts__in { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.fact { padding: 1.35rem 1.2rem; display: grid; gap: .28rem; border-left: 2px dashed rgb(255 255 255 / .16); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact b { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--accent); }
.fact span { font-size: .79rem; opacity: .76; line-height: 1.5; }

/* ---------- sections ---------- */

.section-head { border-bottom: 3px solid var(--ink-strong); padding-bottom: .9rem; }
.section-head h2 { text-transform: uppercase; letter-spacing: -.015em; }
.section-head__link { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; color: var(--danger); }
.section-head__link:hover { color: var(--primary); }

/* ---------- categories ---------- */

.cats { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); }
.cat {
  text-decoration: none; color: inherit; background: var(--surface);
  border: 3px solid var(--ink-strong); border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cat:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--accent); }
.cat__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.cat__body { padding: 1rem 1.1rem 1.15rem; display: grid; gap: .32rem; }
.cat__body strong { font-family: var(--font-display); font-weight: 800; font-size: 1.06rem; text-transform: uppercase; letter-spacing: -.01em; }
.cat__body em { font-style: normal; font-size: .83rem; color: var(--muted); line-height: 1.5; }
.cat__n { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--danger); font-weight: 800; margin-top: .3rem; }

/* ==========================================================================
   SIGNATURE — the hand-painted price chip
   ========================================================================== */

.pcard {
  background: var(--surface);
  border: 3px solid var(--ink-strong);
  border-radius: 10px;
  overflow: visible;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pcard:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--accent); }
.pcard__media { border-radius: 7px 7px 0 0; overflow: hidden; position: relative; }

/* The chip: tilted, painted, wedged onto the crate the way a stall marks price. */
.pcard__chip {
  position: absolute; right: 10px; top: 10px; rotate: -6deg;
  background: var(--danger); color: #FFF3E6;
  font-family: var(--font-slab); font-weight: 400;
  font-size: 1.02rem; line-height: 1;
  padding: .5rem .7rem .45rem; border-radius: 4px;
  box-shadow: 0 5px 14px rgb(0 0 0 / .34);
  z-index: 2;
}
.pcard__chip small {
  display: block; font-family: var(--font-body); font-size: .55rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; opacity: .88; margin-top: .2rem;
}
.pcard__chip--out { background: var(--muted); }

.pcard__body { padding: .9rem 1rem 1.05rem; gap: .34rem; }
.pcard__crop { font-size: .63rem; letter-spacing: .15em; text-transform: uppercase; color: var(--danger); font-weight: 800; }
.pcard__variety { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; margin: 0; line-height: 1.24; }
.pcard__variety a { color: inherit; text-decoration: none; }
.pcard__variety a:hover { color: var(--primary); }
.pcard__desc {
  font-size: .81rem; color: var(--muted); margin: .25rem 0 .65rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Crate-stencil facts strip. */
.pcard__stencil {
  display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 .8rem;
}
.pcard__stencil span {
  font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--tint); color: var(--muted);
  border: 1px solid var(--rule-strong); border-radius: 3px; padding: .2rem .42rem;
}
.pcard__foot { padding-top: .1rem; gap: .5rem; }
.pcard__packline { font-size: .72rem; color: var(--muted); font-weight: 600; }

/* ---------- page head ---------- */

.pagehead { padding: clamp(1.7rem, 1rem + 2.4vw, 3rem) 0 1.5rem; border-bottom: 3px solid var(--ink-strong); margin-bottom: 2rem; }
.pagehead h1 { margin-bottom: .35rem; text-transform: uppercase; }
.pagehead__lede { color: var(--muted); max-width: 62ch; margin: 0; }
.crumbs { font-size: .76rem; color: var(--muted); margin-bottom: .95rem; font-weight: 600; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--danger); }
.crumbs span { opacity: .4; margin: 0 .35rem; }
.crumbs b { color: var(--ink-strong); }

/* ---------- shop ---------- */

.shopside__block { margin-bottom: 1.6rem; padding-bottom: 1.3rem; border-bottom: 2px solid var(--rule); }
.shopside__block h3 { font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.facets { list-style: none; margin: 0; padding: 0; display: grid; gap: .12rem; }
.facets a { display: flex; justify-content: space-between; gap: .5rem; padding: .4rem .55rem; text-decoration: none; color: var(--ink); font-size: .86rem; border-radius: 5px; font-weight: 500; }
.facets a:hover { background: var(--tint); }
.facets a.on { background: var(--primary); color: #F4EEDF; font-weight: 700; }
.facets a.on span { color: var(--accent); }
.facets span { font-size: .7rem; color: var(--muted); font-weight: 700; }
.shopside__note { margin-top: 1rem; font-size: .79rem; }

.shopbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding-bottom: 1rem; margin-bottom: 1.4rem; border-bottom: 3px solid var(--ink-strong); font-weight: 700; font-size: .84rem; text-transform: uppercase; letter-spacing: .05em; }
.shopbar__search { display: flex; gap: .45rem; }
.shopbar__search input { width: 200px; font-size: .84rem; padding: .46rem .8rem; text-transform: none; letter-spacing: 0; }

/* ---------- product page ---------- */

.pdp { display: grid; gap: clamp(1.8rem, 4vw, 3.6rem); }
@media (min-width: 900px) { .pdp { grid-template-columns: 1fr 1fr; align-items: start; } }
.gallery__main img { border: 4px solid var(--ink-strong); border-radius: 10px; }
.pdp__imgnote { font-size: .74rem; color: var(--muted); margin-top: .7rem; }
.pdp__variety { font-size: .86rem; color: var(--muted); margin-bottom: .9rem; font-weight: 600; }
.pdp__variety b { color: var(--danger); }
.pdp__desc { font-size: 1.01rem; line-height: 1.68; }

.pdp__pricebox { border: 3px solid var(--ink-strong); border-radius: 10px; padding: 1.15rem 1.25rem; margin: 1.5rem 0; background: var(--surface); box-shadow: 6px 6px 0 var(--accent); }
.pdp__price { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; }
.pdp__price b { font-family: var(--font-slab); font-weight: 400; font-size: 2.15rem; line-height: 1; color: var(--danger); }
.pdp__price s { color: var(--muted); font-size: 1rem; }
.pdp__price em { font-style: normal; font-size: .68rem; background: var(--primary); color: #F4EEDF; padding: .22rem .5rem; border-radius: 4px; font-weight: 700; }
.pdp__packline { font-size: .8rem; color: var(--muted); margin: .65rem 0 .45rem; font-weight: 600; }
.pdp__taxline { font-size: .81rem; color: var(--muted); margin: 0; line-height: 1.58; }
.pdp__buy { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.5rem; }

.taxnotice { border: 2px solid var(--rule-strong); border-left: 6px solid var(--primary); border-radius: 6px; background: var(--tint); padding: 1rem 1.1rem; margin: 1.5rem 0; font-size: .79rem; }
.taxnotice__row { display: flex; justify-content: space-between; gap: 1rem; padding: .26rem 0; }
.taxnotice__row span { color: var(--muted); font-weight: 600; }
.taxnotice__row b { text-align: right; }
.taxnotice__note { margin: .7rem 0 0; padding-top: .7rem; border-top: 2px dashed var(--rule-strong); color: var(--muted); font-size: .73rem; line-height: 1.6; }

.pdp__assure { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .55rem; }
.pdp__assure li { font-size: .86rem; display: grid; grid-template-columns: 80px 1fr; gap: .9rem; }
.pdp__assure b { font-size: .64rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); padding-top: .18rem; font-weight: 800; }

.pdp__detail { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); align-items: start; }
.pdp__panel { background: var(--surface); border: 2px solid var(--rule-strong); border-radius: 10px; padding: 1.25rem 1.35rem; }
.pdp__panel h2 { font-size: 1.06rem; text-transform: uppercase; margin-bottom: .85rem; padding-bottom: .6rem; border-bottom: 2px solid var(--rule); }

/* ---------- trust / cta ---------- */

.trustband { background: var(--tint); border-block: 3px solid var(--ink-strong); }
.trust { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.trust article { padding: 1.25rem; background: var(--surface); border: 2px solid var(--rule-strong); border-radius: 10px; }
.trust h3 { font-size: 1rem; margin-bottom: .5rem; }
.trust p { font-size: .86rem; color: var(--muted); margin: 0; line-height: 1.62; }

.cta { background: var(--danger); color: #FFF3E6; }
.cta__in { display: flex; flex-wrap: wrap; gap: 1.6rem; align-items: center; justify-content: space-between; }
.cta h2 { color: #FFF8EE; margin: 0 0 .4rem; font-family: var(--font-slab); font-weight: 400; text-transform: none; }
.cta p { margin: 0; opacity: .88; max-width: 52ch; }
.cta .btn--accent { background: var(--ink-strong); color: var(--accent); }

/* ---------- misc ---------- */

.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); font-size: .82rem; text-decoration: underline; cursor: pointer; font-weight: 600; }
.linkbtn:hover { color: var(--danger); }
.lineitem__name { font-family: var(--font-display); font-weight: 800; font-size: .99rem; text-decoration: none; color: inherit; }
.lineitem__ctrl { display: flex; gap: 1.1rem; align-items: center; margin-top: .75rem; }
.cart__foot { display: flex; justify-content: space-between; align-items: center; padding-top: 1.25rem; }
.summary { border: 3px solid var(--ink-strong); border-radius: 10px; box-shadow: 6px 6px 0 var(--accent); }
.summary__h { font-size: 1rem; text-transform: uppercase; padding-bottom: .75rem; border-bottom: 3px solid var(--ink-strong); margin-bottom: .75rem; }
.summary__items { display: grid; gap: .75rem; padding-bottom: .95rem; margin-bottom: .55rem; border-bottom: 2px solid var(--rule); }
.summary__item { display: grid; grid-template-columns: 44px 1fr auto; gap: .65rem; align-items: center; }
.summary__item img { border-radius: 4px; }
.summary__item b { display: block; font-size: .83rem; font-weight: 600; }
.rule { border: 0; border-top: 2px solid var(--rule); margin: .85rem 0; }

.authgrid { display: grid; gap: 1.4rem; }
@media (min-width: 860px) { .authgrid { grid-template-columns: 1fr 1fr; } }
.supportgrid { display: grid; gap: 1.4rem; }
@media (min-width: 980px) { .supportgrid { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.panel { background: var(--surface); border: 2px solid var(--rule-strong); border-radius: 10px; }
.panel--warn { border-left: 6px solid var(--warn); }
.linklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .46rem; font-size: .88rem; }
.msg { border-left: 3px solid var(--rule-strong); padding: .5rem 0 .5rem .85rem; margin-top: .75rem; }
.msg--support { border-left-color: var(--primary); }
.policyswitch { margin-top: 1.6rem; padding-top: 1.25rem; border-top: 2px solid var(--rule); display: grid; gap: .1rem; }
.policyswitch a { font-size: .85rem; text-decoration: none; color: var(--muted); padding: .3rem 0; font-weight: 600; }
.policyswitch a:hover, .policyswitch a.on { color: var(--danger); font-weight: 800; }
