/* ============================================================
   PONCHIN LOGISTICS — Design system
   Navy · White · Yellow.

   Contrast discipline (WCAG AA, computed against #FFFFFF unless noted):
     --navy-800  #0A2240  on white     15.3:1   safe for any text
     --body      #4A5566  on white      7.6:1   safe for body copy
     --muted     #6B7687  on white      4.8:1   safe at >=16px only
     --navy-800  on --yellow #FFC220   11.6:1   the CTA pairing in the mockups
     --yellow    on white               1.6:1   NEVER text. Fills, rules and
                                                icons only — this is the single
                                                easiest way to ship an
                                                inaccessible marketplace.
     #FFFFFF     on --yellow            1.4:1   the mistake this palette invites.
                                                Gold buttons carry navy labels.

   Page-level layouts are intentionally absent: they are built in Phase 4
   against the approved mockups. What is here is the vocabulary those pages
   will be written in.
   ============================================================ */

:root {
  /* Brand — navy. Sampled from the approved mockups: the header/hero band,
     the darker footer, and the mid tone used on secondary buttons. */
  --navy-900: #071B33;   /* footer */
  --navy-800: #0A2240;   /* header, hero band, dark CTA */
  --navy-700: #12325C;
  --navy-600: #1B4F8F;
  --navy-tint:#EAF1F9;

  /* Brand — gold (action, never text on light) */
  --yellow:      #FFC220;
  --yellow-600:  #E8AC08;
  --yellow-700:  #8A6400;   /* dark enough for gold-toned TEXT on white */
  --yellow-tint: #FFF6DF;

  /* Neutrals */
  --ink:    #10151C;
  --body:   #4A5566;
  --muted:  #6B7687;
  --white:  #FFFFFF;
  --paper:  #F7F9FC;   /* section background in the mockups */
  --paper-2:#EDF1F6;
  --line:   #E8EDF3;   /* card border */
  --line-2: #CFD7E2;

  /* Status */
  --ok:     #1B7F4B;
  --warn:   #A15C00;
  --err:    #B3261E;

  /* Type */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --fs-display: clamp(2rem, 4.5vw, 3.25rem);
  --fs-h1:      clamp(1.75rem, 3.2vw, 2.5rem);
  --fs-h2:      clamp(1.375rem, 2.1vw, 1.875rem);
  --fs-h3:      clamp(1.125rem, 1.5vw, 1.375rem);
  --fs-lead:    clamp(1rem, 1.15vw, 1.125rem);
  --fs-body:    1rem;
  --fs-sm:      0.875rem;
  --fs-xs:      0.8125rem;
  --fs-2xs:     0.6875rem;

  /* Space */
  --s1: .25rem;  --s2: .5rem;   --s3: .75rem;  --s4: 1rem;
  --s5: 1.25rem; --s6: 1.5rem;  --s7: 2rem;    --s8: 2.5rem;
  --s9: 3rem;    --s10: 4rem;   --s11: 5rem;

  --r-sm: 4px; --r: 8px; --r-lg: 14px; --r-pill: 999px;

  --sh-sm: 0 1px 2px rgba(11,37,69,.06);
  --sh:    0 2px 10px rgba(11,37,69,.08);
  --sh-lg: 0 16px 40px -14px rgba(11,37,69,.22);

  --wrap: 1280px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 64px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  /* Nothing may widen the page. On a marketplace the alternative is a product
     grid that scrolls sideways on a phone. */
  overflow-x: hidden;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }

/* Focus must always be visible — a keyboard user has to be able to check out. */
:focus-visible {
  outline: 3px solid var(--navy-600);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy-800); color: #fff; padding: .75rem 1.25rem;
  border-radius: 0 0 var(--r) 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(2.5rem, 6vw, 5rem); }
.stack > * + * { margin-top: var(--s4); }

/* Every grid track is minmax(0,1fr): a grid item's automatic minimum size is
   its min-content width, and one long word or nowrap row silently widens the
   whole column otherwise. */
.grid { display: grid; gap: var(--s5); grid-template-columns: minmax(0, 1fr); }
.grid > * { min-width: 0; }
@media (min-width: 640px)  { .g2, .g3, .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 960px)  { .g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
                             .g4 { grid-template-columns: repeat(4, minmax(0,1fr)); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.5rem; border-radius: var(--r);
  font-size: var(--fs-sm); font-weight: 700; letter-spacing: .01em;
  border: 1px solid transparent; cursor: pointer; text-align: center;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
/* The marketplace action. Navy on yellow, never white on yellow. */
.btn--primary { background: var(--yellow); color: var(--navy-800); }
.btn--primary:hover { background: var(--yellow-600); }
.btn--navy { background: var(--navy-800); color: #fff; }
.btn--navy:hover { background: var(--navy-700); }
.btn--ghost { background: var(--white); color: var(--navy-800); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--navy-600); background: var(--navy-tint); }
.btn--onNavy { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--onNavy:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn--block { width: 100%; }

/* ---------- forms ---------- */
.field { display: grid; gap: .35rem; }
.field__label { font-size: var(--fs-sm); font-weight: 700; color: var(--navy-800); }
.field__hint  { font-size: var(--fs-xs); color: var(--muted); }
.field__err   { font-size: var(--fs-xs); color: var(--err); font-weight: 600; }

.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem;
  background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.textarea { min-height: 120px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--navy-600); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--navy-600);
  box-shadow: 0 0 0 3px rgba(27,79,143,.18);
}
.input[aria-invalid="true"] { border-color: var(--err); }

/* ---------- marketplace search ---------- */
.msearch { display: flex; width: 100%; background: var(--white); border-radius: var(--r-pill); box-shadow: var(--sh); }
.msearch__input {
  flex: 1 1 auto; min-width: 0; min-height: 54px; padding: 0 1.25rem;
  border: 0; background: transparent; border-radius: var(--r-pill) 0 0 var(--r-pill);
}
.msearch__input:focus { outline: none; }
.msearch__btn {
  flex: none; min-height: 54px; padding: 0 1.5rem; border-radius: var(--r-pill);
  background: var(--yellow); color: var(--navy-800); font-weight: 800;
}
.msearch__btn:hover { background: var(--yellow-600); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy-800); color: #fff;
}
.header__bar {
  display: flex; align-items: center; gap: var(--s4);
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: .55rem; flex: none; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: var(--yellow); color: var(--navy-800);
  display: grid; place-items: center; font-weight: 900; font-size: 1rem;
}
.brand__name { font-weight: 800; font-size: 1.0625rem; letter-spacing: -.01em; color: #fff; white-space: nowrap; }
.brand__name small { display: block; font-size: .625rem; font-weight: 600; letter-spacing: .12em; color: var(--yellow); text-transform: uppercase; }

.nav { display: none; flex: 1 1 auto; min-width: 0; }
.nav__list { display: flex; align-items: center; gap: .15rem; flex-wrap: nowrap; }
.nav__list > li > a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 .7rem;
  border-radius: var(--r-sm); font-size: var(--fs-sm); font-weight: 600;
  color: rgba(255,255,255,.88); white-space: nowrap;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.nav__list > li > a:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav__list > li.current-menu-item > a { color: var(--yellow); }

.header__actions { display: flex; align-items: center; gap: .35rem; margin-left: auto; flex: none; }
.iconbtn {
  width: 44px; height: 44px; border-radius: var(--r); display: grid; place-items: center;
  color: #fff; transition: background .16s var(--ease);
}
.iconbtn:hover { background: rgba(255,255,255,.12); }
.iconbtn svg { width: 21px; height: 21px; }
.header__cta { display: none; }

@media (min-width: 1024px) {
  .nav { display: block; }
  .header__cta { display: inline-flex; }
  .header__burger { display: none; }
}

/* ---------- mobile drawer ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 110; background: rgba(6,26,51,.55);
  opacity: 0; visibility: hidden; transition: opacity .24s var(--ease), visibility .24s;
}
.scrim.is-on { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 120;
  width: min(88vw, 360px); background: var(--white); color: var(--ink);
  display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden;
  transition: transform .26s var(--ease), visibility .26s;
  overflow-y: auto; overscroll-behavior: contain;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s4) var(--s5); background: var(--navy-800); color: #fff; position: sticky; top: 0;
}
.drawer__body { padding: var(--s5); }
.drawer__list > li + li { border-top: 1px solid var(--line); }
.drawer__list a {
  display: flex; align-items: center; min-height: 52px;
  font-weight: 700; color: var(--navy-800);
}
.drawer__list a:hover { color: var(--navy-600); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.76); margin-top: var(--s10); }
.footer__grid { display: grid; gap: var(--s7); padding-block: var(--s9); grid-template-columns: minmax(0,1fr); }
@media (min-width: 700px) { .footer__grid { grid-template-columns: 1.4fr repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px){ .footer__grid { grid-template-columns: 1.6fr repeat(3, minmax(0,1fr)); } }
.footer__title {
  font-size: var(--fs-2xs); font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--yellow); margin-bottom: var(--s3);
}
.footer__list > li + li { margin-top: .55rem; }
.footer__list a { font-size: var(--fs-sm); }
.footer__list a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-block: var(--s5);
  display: flex; flex-wrap: wrap; gap: var(--s4); justify-content: space-between;
  font-size: var(--fs-xs);
}

/* ---------- notices / placeholders ---------- */
.notice { padding: var(--s4) var(--s5); border-radius: var(--r); border-left: 4px solid; font-size: var(--fs-sm); }
.notice--info { background: var(--navy-tint); border-color: var(--navy-600); color: var(--navy-800); }
.notice--warn { background: var(--yellow-tint); border-color: var(--yellow-600); color: #5A4200; }
.notice--err  { background: #FDECEA; border-color: var(--err); color: #7A1912; }
.notice--ok   { background: #E9F6EF; border-color: var(--ok); color: #10552F; }

/* Marks a region that is deliberately unbuilt until the mockups land, so an
   unfinished page is never mistaken for a finished one. */
.pending {
  border: 2px dashed var(--line-2); border-radius: var(--r-lg);
  padding: var(--s8) var(--s5); text-align: center; color: var(--muted);
  background: var(--paper);
}
.pending h2 { font-size: var(--fs-h3); color: var(--navy-800); margin-bottom: .5rem; }
.pending code { background: var(--white); padding: .1rem .4rem; border-radius: var(--r-sm); font-size: var(--fs-xs); }

/* ---------- motion ---------- */
[data-anim] { will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-anim] { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   COMPONENT VOCABULARY
   Every component below appears in the approved mockups. These are the
   reusable pieces the twelve pages are assembled from in Phase 4 — the page
   layouts themselves are not here.
   ============================================================ */

/* ---------- page hero band (navy, breadcrumb + title) ---------- */
.phero {
  position: relative; background: var(--navy-800); color: #fff; overflow: hidden;
}
.phero::after {
  /* Photography sits on the right on wide screens and is dropped entirely on
     small ones, where it would only push the headline down the fold. */
  content: ""; position: absolute; inset: 0 0 0 auto; width: 52%;
  background-image: var(--phero-img, none); background-size: cover; background-position: center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 42%);
          mask-image: linear-gradient(90deg, transparent, #000 42%);
  display: none;
}
@media (min-width: 900px) { .phero::after { display: block; } }
.phero__inner { position: relative; z-index: 1; padding-block: clamp(2rem, 5vw, 3.5rem); max-width: 640px; }
.phero__title { font-size: var(--fs-display); color: #fff; margin-block: .35rem .75rem; }
.phero__sub { color: rgba(255,255,255,.82); font-size: var(--fs-lead); max-width: 52ch; }

/* ---------- breadcrumb ---------- */
.crumbs { font-size: var(--fs-sm); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.crumbs li + li::before { content: "›"; margin-right: .4rem; opacity: .6; }
.crumbs a { opacity: .8; }
.crumbs a:hover { opacity: 1; text-decoration: underline; }
.crumbs [aria-current] { font-weight: 700; }
.phero .crumbs { color: rgba(255,255,255,.8); }

/* ---------- trust strip ---------- */
.trust {
  display: grid; gap: var(--s3); grid-template-columns: repeat(2, minmax(0,1fr));
  border-top: 1px solid rgba(255,255,255,.14); padding-block: var(--s4);
}
@media (min-width: 700px)  { .trust { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1024px) { .trust { grid-template-columns: repeat(5, minmax(0,1fr)); } }
.trust__item { display: flex; align-items: center; gap: .6rem; font-size: var(--fs-sm); font-weight: 600; }
.trust__item svg { width: 22px; height: 22px; color: var(--yellow); flex: none; }
.trust--light { border-color: var(--line); }
.trust--light .trust__item svg { color: var(--navy-700); }

/* ---------- product card ---------- */
.pcard {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.pcard:hover { box-shadow: var(--sh-lg); transform: translateY(-2px); }
.pcard__media { aspect-ratio: 1 / 1; background: var(--paper); display: grid; place-items: center; padding: var(--s4); }
.pcard__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pcard__body { padding: var(--s4); display: flex; flex-direction: column; gap: .3rem; flex: 1 1 auto; }
.pcard__title {
  font-size: var(--fs-sm); font-weight: 700; line-height: 1.35; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard__price { font-size: 1.0625rem; font-weight: 800; color: var(--navy-800); }
.pcard__moq { font-size: var(--fs-xs); color: var(--muted); }
.pcard__cta { margin-top: auto; padding: var(--s4); padding-top: 0; }
.pcard__cta .btn { width: 100%; min-height: 40px; font-size: var(--fs-xs); }

/* ---------- category card ---------- */
.ccard {
  display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s5) var(--s3);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.ccard:hover { border-color: var(--navy-600); box-shadow: var(--sh); }
.ccard__media { width: 62px; height: 62px; display: grid; place-items: center; }
.ccard__media img { max-height: 100%; object-fit: contain; }
.ccard__name { font-size: var(--fs-xs); font-weight: 700; color: var(--ink); }

/* ---------- section heading ---------- */
.secthead { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); }
.secthead__title { font-size: var(--fs-h2); color: var(--navy-800); }
.secthead__sub { font-size: var(--fs-sm); color: var(--muted); margin-top: .25rem; }
.secthead__more { font-size: var(--fs-sm); font-weight: 700; color: var(--navy-600); white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: .3rem; }
.secthead__more svg { width: 15px; height: 15px; flex: none; }
.secthead__more:hover { color: var(--navy-800); }
@media (max-width: 599px) {
  .secthead { flex-wrap: wrap; gap: var(--s2); }
  .secthead__more { flex: 1 1 100%; }
}

/* ---------- numbered process steps ---------- */
.steps { display: grid; gap: var(--s6); grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (min-width: 700px)  { .steps { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(5, minmax(0,1fr)); } }
.step { text-align: center; }
.step__n {
  width: 46px; height: 46px; margin: 0 auto var(--s3); border-radius: 50%;
  background: var(--navy-800); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: var(--fs-sm);
}
.step__icon { height: 34px; margin-bottom: .6rem; color: var(--navy-700); display: grid; place-items: center; }
.step__icon svg { width: 30px; height: 30px; }
.step__title { font-size: var(--fs-sm); font-weight: 800; color: var(--ink); margin-bottom: .25rem; }
.step__text { font-size: var(--fs-xs); color: var(--body); line-height: 1.5; }

/* ---------- accordion (FAQ) ---------- */
.acc { border: 1px solid var(--line); border-radius: var(--r); background: var(--white); overflow: hidden; }
.acc + .acc { margin-top: var(--s3); }
.acc__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: var(--s4) var(--s5); text-align: left; font-weight: 700; color: var(--navy-800); min-height: 56px;
}
.acc__btn:hover { background: var(--paper); }
.acc__btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s var(--ease); }
.acc__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.acc__panel { padding: 0 var(--s5) var(--s5); color: var(--body); font-size: var(--fs-sm); line-height: 1.65; }
.acc__panel[hidden] { display: none !important; }

/* ---------- status timeline (tracking) ---------- */
.tl { display: grid; gap: 0; }
.tl__row { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: var(--s4); position: relative; padding-bottom: var(--s6); }
.tl__row:last-child { padding-bottom: 0; }
.tl__row::before {
  content: ""; position: absolute; left: 16px; top: 30px; bottom: 0; width: 2px; background: var(--line-2);
}
.tl__row:last-child::before { display: none; }
.tl__dot {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; z-index: 1;
  background: var(--white); border: 2px solid var(--line-2); color: transparent;
}
.tl__dot svg { width: 15px; height: 15px; }
.tl__row.is-done .tl__dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.tl__row.is-done::before { background: var(--ok); }
.tl__row.is-now .tl__dot { border-color: var(--navy-600); border-width: 5px; }
.tl__title { font-weight: 700; color: var(--ink); font-size: var(--fs-sm); }
.tl__note { font-size: var(--fs-xs); color: var(--muted); margin-top: .15rem; }
.tl__time { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }
.tl__row:not(.is-done):not(.is-now) .tl__title { color: var(--muted); font-weight: 600; }

/* ---------- badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem;
  border-radius: var(--r-pill); font-size: var(--fs-2xs); font-weight: 800; letter-spacing: .03em;
}
.badge--info { background: var(--navy-tint); color: var(--navy-700); }
.badge--ok   { background: #E9F6EF; color: #10552F; }
.badge--warn { background: var(--yellow-tint); color: #6B4E00; }
.badge--err  { background: #FDECEA; color: #7A1912; }
.badge--mute { background: var(--paper-2); color: var(--body); }

/* ---------- stat card (dashboard) ---------- */
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); }
.stat__top { display: flex; align-items: center; gap: var(--s3); }
.stat__icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.stat__icon svg { width: 21px; height: 21px; }
.stat__n { font-size: 1.75rem; font-weight: 800; color: var(--navy-800); line-height: 1; }
.stat__label { font-size: var(--fs-xs); color: var(--muted); margin-top: .2rem; }
.stat__link { font-size: var(--fs-xs); font-weight: 700; color: var(--navy-600); margin-top: var(--s3); display: inline-block; }

/* ---------- panel / card surface ---------- */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); }
.panel--flush { padding: 0; overflow: hidden; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s5); border-bottom: 1px solid var(--line); }
.panel__title { font-size: var(--fs-h3); color: var(--navy-800); }

/* ---------- data table ---------- */
.dtable { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.dtable th {
  text-align: left; font-size: var(--fs-xs); font-weight: 700; color: var(--muted);
  padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); white-space: nowrap;
}
.dtable td { padding: var(--s4); border-bottom: 1px solid var(--line); vertical-align: middle; }
.dtable tr:last-child td { border-bottom: 0; }
/* A table cannot be made narrow enough for a phone; it scrolls inside itself
   rather than widening the page. */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- filter sidebar ---------- */
.filters { display: grid; gap: var(--s6); }
.filters__group { border-bottom: 1px solid var(--line); padding-bottom: var(--s5); }
.filters__group:last-child { border-bottom: 0; }
.filters__title { font-size: var(--fs-sm); font-weight: 800; color: var(--navy-800); margin-bottom: var(--s3); }
.filters__list li + li { margin-top: .5rem; }
.filters__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); font-size: var(--fs-sm); color: var(--body); min-height: 32px; }
.filters__row:hover { color: var(--navy-700); }
.filters__count { font-size: var(--fs-xs); color: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: .45rem; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); cursor: pointer; }
.swatch[aria-pressed="true"] { outline: 2px solid var(--navy-600); outline-offset: 2px; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: var(--s5); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: var(--s3) 0; font-weight: 700; font-size: var(--fs-sm); color: var(--muted);
  border-bottom: 3px solid transparent; white-space: nowrap; min-height: 46px;
}
.tab[aria-selected="true"] { color: var(--navy-800); border-color: var(--navy-700); }

/* ---------- quantity stepper ---------- */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.qty button { width: 42px; height: 44px; display: grid; place-items: center; font-size: 1.1rem; font-weight: 700; color: var(--navy-800); }
.qty button:hover { background: var(--paper); }
.qty input { width: 64px; height: 44px; border: 0; border-inline: 1px solid var(--line-2); text-align: center; font-weight: 700; }
.qty input:focus { outline: none; }

/* ---------- spec grid ---------- */
.specs { display: grid; gap: var(--s3) var(--s6); grid-template-columns: minmax(0,1fr); }
@media (min-width: 600px) { .specs { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.spec { display: flex; align-items: center; gap: .6rem; font-size: var(--fs-sm); }
.spec svg { width: 17px; height: 17px; color: var(--navy-600); flex: none; }
.spec__k { color: var(--muted); }
.spec__v { color: var(--ink); font-weight: 600; margin-left: auto; text-align: right; }

/* ---------- newsletter ---------- */
.nl__form { display: grid; gap: .5rem; }
.nl__input { min-height: 44px; border-radius: var(--r); border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff; padding: 0 .85rem; }
.nl__input::placeholder { color: rgba(255,255,255,.55); }
.nl__input:focus { outline: none; border-color: var(--yellow); }

/* ---------- dashboard sidebar ---------- */
.dash { display: grid; gap: var(--s6); grid-template-columns: minmax(0,1fr); align-items: start; }
@media (min-width: 1000px) { .dash { grid-template-columns: 250px minmax(0,1fr); } }
.dnav { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s3); }
.dnav a {
  display: flex; align-items: center; gap: .7rem; min-height: 46px; padding: 0 var(--s3);
  border-radius: var(--r); font-size: var(--fs-sm); font-weight: 600; color: var(--body);
}
.dnav a:hover { background: var(--paper); color: var(--navy-800); }
.dnav a[aria-current="page"] { background: var(--navy-tint); color: var(--navy-800); font-weight: 800; }
.dnav svg { width: 18px; height: 18px; flex: none; }
.dnav__count { margin-left: auto; background: var(--err); color: #fff; font-size: var(--fs-2xs); font-weight: 800; border-radius: var(--r-pill); padding: .05rem .4rem; }

/* ---------- nav dropdown (Pwodwi, Kategori) ---------- */
.nav__list > li { position: relative; }
.nav__list .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 230px; z-index: 30;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--sh-lg); padding: .4rem;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
}
.nav__list > li:hover > .sub-menu,
.nav__list > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav__list .sub-menu a {
  display: block; padding: .55rem .7rem; border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink);
}
.nav__list .sub-menu a:hover { background: var(--navy-tint); color: var(--navy-800); }
.nav__list > li.menu-item-has-children > a::after {
  content: ""; width: 6px; height: 6px; margin-left: .35rem; flex: none;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

/* Drawer submenus are always open: a phone has no hover, and a disclosure that
   needs two taps to reach a category is a category nobody visits. */
.drawer__list .sub-menu { padding: 0 0 .5rem 1rem; }
.drawer__list .sub-menu a { min-height: 42px; font-weight: 600; color: var(--body); }

/* ---------- footer refinements (5 columns, real tap targets) ---------- */
@media (min-width: 700px)  { .footer__grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.5fr repeat(3, minmax(0,1fr)); } }
@media (min-width: 1200px) { .footer__grid { grid-template-columns: 1.6fr repeat(3, minmax(0,1fr)) 1.2fr; } }

/* A 17px text link is a 17px tap target. Padding gives the row a real height
   without changing how the column reads. */
.footer__list > li + li { margin-top: 0; }
.footer__list a,
.footer__list span {
  display: inline-flex; align-items: center; min-height: 34px; padding-block: .2rem;
}
.footer__legal { display: flex; gap: var(--s4); flex-wrap: wrap; }
.footer__legal a { display: inline-flex; align-items: center; min-height: 34px; }
.footer__bottom { align-items: center; }

/* A two-letter link ("Èd") is a 17px-wide target however tall the row is.
   Negative margin keeps the column reading identically while the hit area
   clears 24px in both directions. */
.footer__list a, .footer__legal a { padding-inline: .3rem; margin-inline: -.3rem; }
.crumbs a, .crumbs span { display: inline-flex; align-items: center; min-height: 26px; padding-inline: .2rem; margin-inline: -.2rem; }

/* ============================================================
   PAGE LAYOUTS
   Built against the approved mockups. Every grid track is
   minmax(0,1fr) and every table scrolls inside itself, so nothing
   here can widen the page on a phone.
   ============================================================ */

.section--paper { background: var(--paper); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.centred { text-align: center; max-width: 46ch; margin: 0 auto var(--s8); font-size: var(--fs-h2); color: var(--navy-800); }
.muted { color: var(--muted); }
.right { text-align: right; }
.rule { border: 0; border-top: 1px solid var(--line); margin-block: var(--s5); }
.req { color: var(--err); }

/* ---------- hero variants ---------- */
.phero--home .phero__inner { max-width: 620px; }
.phero--centred .phero__inner { max-width: 720px; margin-inline: auto; text-align: center; }
.phero--centred .phero__sub { margin-inline: auto; }
.phero__actions { margin-top: var(--s6); max-width: 560px; display: grid; gap: var(--s3); }
.phero--centred .phero__actions { margin-inline: auto; }
.phero__badges { display: flex; flex-wrap: wrap; gap: var(--s5); margin-top: var(--s5); }
.phero__badge { display: inline-flex; align-items: center; gap: .45rem; font-size: var(--fs-sm); font-weight: 600; color: rgba(255,255,255,.9); }
.phero__badge svg { width: 18px; height: 18px; color: var(--yellow); }

/* ---------- product grid ---------- */
.pgrid { display: grid; gap: var(--s4); grid-template-columns: repeat(2, minmax(0,1fr)); }
.pgrid > * { min-width: 0; }
@media (min-width: 700px)  { .pgrid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1000px) { .pgrid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--s5); } }
@media (min-width: 1240px) { .pgrid { grid-template-columns: repeat(5, minmax(0,1fr)); } }
.pcard__ph { width: 46px; height: 46px; color: var(--line-2); }
.pcard { position: relative; }
.pcard__title a::after { content: ""; position: absolute; inset: 0; }

/* ---------- empty state ---------- */
.emptystate {
  text-align: center; padding: var(--s9) var(--s5); border: 2px dashed var(--line-2);
  border-radius: var(--r-lg); background: var(--paper); color: var(--body);
}
.emptystate svg { width: 46px; height: 46px; margin: 0 auto var(--s4); color: var(--line-2); }
.emptystate h3 { font-size: var(--fs-h3); color: var(--navy-800); margin-bottom: .5rem; }
.emptystate p { max-width: 46ch; margin: 0 auto var(--s5); font-size: var(--fs-sm); }

/* ---------- CTA band ---------- */
.ctaband {
  display: grid; gap: var(--s4); align-items: center; text-align: center;
  background: var(--navy-800); color: #fff; border-radius: var(--r-lg);
  padding: var(--s7) var(--s6); margin-block: var(--s7);
}
.ctaband__icon { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--yellow); display: grid; place-items: center; margin-inline: auto; }
.ctaband__icon svg { width: 26px; height: 26px; color: var(--yellow); }
.ctaband__title { font-size: var(--fs-h2); color: #fff; }
.ctaband__text { color: rgba(255,255,255,.78); font-size: var(--fs-sm); margin-top: .35rem; }
.ctaband .btn { justify-self: center; }
@media (min-width: 860px) {
  .ctaband { grid-template-columns: auto 1fr auto; text-align: left; padding: var(--s7); }
  .ctaband__icon { margin-inline: 0; }
}

/* ---------- ticks ---------- */
.ticks { display: grid; gap: .6rem; margin-block: var(--s4) var(--s5); }
.ticks li { display: flex; align-items: center; gap: .55rem; font-size: var(--fs-sm); font-weight: 600; }
.ticks li svg { width: 18px; height: 18px; color: var(--ok); flex: none; }
.ticks--stacked li { font-weight: 500; color: var(--body); }
.ticks--hero { grid-template-columns: repeat(2, minmax(0,1fr)); margin-top: var(--s6); }
.ticks--hero li { color: rgba(255,255,255,.92); }
.ticks--hero li svg { color: var(--yellow); }
@media (min-width: 760px) { .ticks--hero { grid-template-columns: repeat(3, minmax(0,1fr)); } }

/* ---------- two-column duo ---------- */
.duo { display: grid; gap: var(--s5); grid-template-columns: minmax(0,1fr); }
@media (min-width: 900px) { .duo { grid-template-columns: 1.25fr 1fr; } }
.duo__text { font-size: var(--fs-sm); color: var(--body); margin-block: var(--s3) var(--s4); }
.tracksearch { display: grid; gap: var(--s3); }
@media (min-width: 520px) { .tracksearch { grid-template-columns: minmax(0,1fr) auto; } }
.tracksearch--hero { max-width: 640px; margin: var(--s6) auto 0; grid-template-columns: minmax(0,1fr) auto; }
.tracksearch--hero .input { background: #fff; }
.tracksearch__icon { display: none; }

/* ---------- FAQ columns ---------- */
.faqcols { display: grid; gap: var(--s3); grid-template-columns: minmax(0,1fr); }
@media (min-width: 900px) { .faqcols { grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--s5); } }

/* ---------- shop (archive) ---------- */
.shop { display: grid; gap: var(--s6); grid-template-columns: minmax(0,1fr); align-items: start; }
@media (min-width: 1000px) { .shop { grid-template-columns: 268px minmax(0,1fr); } }
.shop__bar { display: grid; gap: var(--s3); margin-bottom: var(--s5); }
@media (min-width: 720px) { .shop__bar { grid-template-columns: minmax(0,1fr) 220px; align-items: center; } }
.shop__count { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--s4); }
.filters__row.is-on { color: var(--navy-800); font-weight: 800; }
.pagination { margin-top: var(--s7); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.pagination .page-numbers {
  min-width: 42px; min-height: 42px; padding: 0 .6rem; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--r); font-weight: 700; font-size: var(--fs-sm); color: var(--navy-800);
}
.pagination .page-numbers:hover { border-color: var(--navy-600); background: var(--navy-tint); }
.pagination .page-numbers.current { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.pagination svg { width: 16px; height: 16px; }
.pagination .flip { transform: rotate(180deg); }

/* ---------- product detail ---------- */
.pdp { display: grid; gap: var(--s6); grid-template-columns: minmax(0,1fr); margin-top: var(--s5); }
@media (min-width: 950px) { .pdp { grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); gap: var(--s8); } }
.gal { display: grid; gap: var(--s3); grid-template-columns: minmax(0,1fr); }
@media (min-width: 620px) { .gal { grid-template-columns: 84px minmax(0,1fr); } }
.gal__thumbs { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; }
.gal__thumbs::-webkit-scrollbar { display: none; }
@media (min-width: 620px) { .gal__thumbs { flex-direction: column; overflow: visible; } }
.gal__thumb { flex: none; width: 74px; height: 74px; border: 2px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--paper); padding: 0; }
.gal__thumb.is-on { border-color: var(--navy-700); }
.gal__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gal__main { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: grid; place-items: center; aspect-ratio: 1/1; }
.gal__main img { width: 100%; height: 100%; object-fit: contain; }
.gal__main--empty { color: var(--muted); text-align: center; padding: var(--s7); gap: var(--s3); }
.gal__main--empty svg { width: 48px; height: 48px; color: var(--line-2); }

.pdp__cat { font-size: var(--fs-sm); font-weight: 700; color: var(--navy-600); }
.pdp__title { font-size: var(--fs-h1); margin-block: .4rem var(--s3); }
.pdp__rating { font-size: var(--fs-sm); color: var(--body); margin-bottom: var(--s3); }
.stars { color: var(--yellow-600); letter-spacing: .1em; }
.pdp__price { font-size: 2rem; font-weight: 800; color: var(--navy-800); }
.pdp__pricenote, .pdp__hint { font-size: var(--fs-xs); color: var(--muted); }
.pdp__moq { font-size: var(--fs-sm); color: var(--body); margin-top: .25rem; }
.pdp__excerpt { font-size: var(--fs-sm); color: var(--body); margin-block: var(--s4); }
.pdp__row { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s4); }
.pdp__k { font-size: var(--fs-sm); font-weight: 700; color: var(--navy-800); }
.pdp__specs { margin-top: var(--s5); padding-top: var(--s5); border-top: 1px solid var(--line); }
.pdp__actions { display: grid; gap: var(--s3); margin-top: var(--s6); }
.pdp__trust { margin-top: var(--s7); }
.pdp__tabs { margin-top: var(--s8); }
.tabpanel { padding-top: var(--s5); }
.prose p { margin-bottom: var(--s4); color: var(--body); }
.prose ul { list-style: disc; padding-left: 1.2rem; color: var(--body); }
.prose li { margin-bottom: .4rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-flex; align-items: center; min-height: 30px; padding: 0 .65rem; border-radius: var(--r-pill); background: var(--paper); border: 1px solid var(--line); font-size: var(--fs-xs); font-weight: 600; }

/* ---------- with-sidebar layout ---------- */
.withside { display: grid; gap: var(--s6); grid-template-columns: minmax(0,1fr); align-items: start; }
@media (min-width: 1000px) { .withside { grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); gap: var(--s7); } }
.withside__side { display: grid; gap: 0; }

/* ---------- forms ---------- */
.formcard .field + .field, .formcard .grid2, .formcard .grid3 { margin-top: var(--s4); }
.grid2, .grid3 { display: grid; gap: var(--s4); grid-template-columns: minmax(0,1fr); }
@media (min-width: 620px) { .grid2 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 720px) { .grid3 { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.formcard__note { display: flex; align-items: center; gap: .45rem; margin-top: var(--s4); font-size: var(--fs-xs); color: var(--muted); }
.formcard__note svg { width: 15px; height: 15px; flex: none; }

.upload { position: relative; display: grid; place-items: center; gap: .35rem; text-align: center;
  border: 2px dashed var(--line-2); border-radius: var(--r); padding: var(--s7) var(--s4); background: var(--paper); }
.upload:hover, .upload.is-over { border-color: var(--navy-600); background: var(--navy-tint); }
.upload input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload__icon svg { width: 34px; height: 34px; color: var(--navy-600); }
.upload__text { font-weight: 700; font-size: var(--fs-sm); color: var(--navy-800); }
.upload__hint { font-size: var(--fs-xs); color: var(--muted); }
.upload__list { font-size: var(--fs-xs); color: var(--navy-700); font-weight: 600; }

/* ---------- panels ---------- */
.panel--navy { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.panel--tip { background: var(--navy-tint); border-color: #C9DDF2; }
.feature { display: flex; gap: var(--s3); align-items: flex-start; }
.feature + .feature { margin-top: var(--s5); }
.feature__icon { width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--navy-tint); color: var(--navy-700); display: grid; place-items: center; }
.feature__icon svg { width: 20px; height: 20px; }
.feature__title { font-size: var(--fs-sm); font-weight: 800; color: var(--navy-800); }
.feature__text { font-size: var(--fs-xs); color: var(--body); line-height: 1.55; margin-top: .15rem; }
.features2 { display: grid; gap: var(--s3); grid-template-columns: minmax(0,1fr); margin-top: var(--s4); }
@media (min-width: 620px) { .features2 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.feature2 { display: flex; align-items: center; gap: .55rem; font-size: var(--fs-sm); color: var(--body); }
.feature2 svg { width: 18px; height: 18px; color: var(--navy-600); flex: none; }

.contactlist { display: grid; gap: .3rem; }
.contactlist li { display: flex; align-items: center; gap: .55rem; font-size: var(--fs-sm); min-height: 34px; }
.contactlist svg { width: 17px; height: 17px; color: var(--navy-600); flex: none; }
.contactlist--navy li { color: rgba(255,255,255,.86); }
.contactlist--navy svg { color: var(--yellow); }
.contactlist--navy a:hover { color: #fff; }

/* ---------- sectors / why cards ---------- */
.sector { text-align: center; }
.sector__icon { width: 54px; height: 54px; margin: 0 auto var(--s3); border-radius: 50%; background: var(--navy-tint); color: var(--navy-700); display: grid; place-items: center; }
.sector__icon svg { width: 25px; height: 25px; }
.sector__title { font-size: var(--fs-sm); font-weight: 800; color: var(--navy-800); }
.sector__text { font-size: var(--fs-xs); color: var(--body); line-height: 1.55; margin-top: .35rem; }

/* ---------- help ---------- */
.helplinks { display: grid; gap: var(--s3); grid-template-columns: repeat(2, minmax(0,1fr)); margin-top: var(--s6); }
@media (min-width: 860px) { .helplinks { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.helplink { display: flex; align-items: center; gap: .55rem; padding: var(--s3); border-radius: var(--r); background: rgba(255,255,255,.08); font-size: var(--fs-sm); font-weight: 600; color: #fff; min-height: 52px; }
.helplink:hover { background: rgba(255,255,255,.16); }
.helplink svg { width: 20px; height: 20px; color: var(--yellow); flex: none; }

/* ---------- contact ---------- */
.contactgrid { display: grid; gap: var(--s6); grid-template-columns: minmax(0,1fr); align-items: start; }
@media (min-width: 950px) { .contactgrid { grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); gap: var(--s7); } }
.infocard { display: flex; gap: var(--s4); align-items: center; }
.infocard + .infocard, .infonote { margin-top: var(--s4); }
.infocard__icon { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--navy-tint); color: var(--navy-700); }
.infocard__icon svg { width: 21px; height: 21px; }
.infocard__icon--whatsapp { background: #E6F6EC; color: #1B7F4B; }
.infocard__icon--email { background: var(--navy-tint); color: var(--navy-600); }
.infocard__title { font-size: var(--fs-sm); font-weight: 800; color: var(--navy-800); }
.infocard__value { font-size: var(--fs-sm); color: var(--body); }
.infonote p { font-size: var(--fs-sm); color: var(--body); margin-top: .4rem; }

/* ---------- dashboard ---------- */
.dash__hello { margin-bottom: var(--s5); }
.dash__title { font-size: var(--fs-h1); color: var(--navy-800); }
.dash__sub { color: var(--body); font-size: var(--fs-sm); margin-top: .25rem; }
.dash__block { margin-top: var(--s5); }
.dash__empty { padding: var(--s7) var(--s5); text-align: center; color: var(--muted); font-size: var(--fs-sm); }
.statgrid { display: grid; gap: var(--s4); grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (min-width: 900px) { .statgrid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.statgrid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.dnav__me { display: flex; gap: .6rem; align-items: center; padding: var(--s4); background: var(--navy-800); color: #fff; border-radius: var(--r); margin-bottom: var(--s3); }
.dnav__me small { display: block; font-size: var(--fs-2xs); color: rgba(255,255,255,.7); word-break: break-all; }
.dnav__me strong { font-size: var(--fs-sm); }
.dnav__avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--yellow); color: var(--navy-800); display: grid; place-items: center; font-weight: 800; font-size: var(--fs-sm); }
.dtable .total td { border-top: 2px solid var(--line-2); }

/* ---------- payment ---------- */
.paymethods { display: grid; gap: var(--s3); }
.paymethod { display: flex; align-items: center; gap: .7rem; padding: var(--s4); border: 1px solid var(--line-2); border-radius: var(--r); cursor: pointer; min-height: 56px; }
.paymethod:hover { border-color: var(--navy-600); background: var(--navy-tint); }
.paymethod.is-off { opacity: .55; cursor: not-allowed; }
.paymethod small { display: block; font-size: var(--fs-xs); color: var(--muted); }
.notice svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: .3rem; }

/* ---------- success ---------- */
.success { max-width: 640px; margin-inline: auto; text-align: center; padding-block: var(--s8); }
.success__mark { width: 84px; height: 84px; margin: 0 auto var(--s5); border-radius: 50%; display: grid; place-items: center; }
.success__mark.is-done { background: #E9F6EF; color: var(--ok); }
.success__mark.is-pending { background: var(--navy-tint); color: var(--navy-700); }
.success__mark svg { width: 40px; height: 40px; }
.success__title { font-size: var(--fs-h1); color: var(--navy-800); }
.success__text { color: var(--body); margin-top: var(--s3); }
.success__card { text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); margin-top: var(--s6); }
.success__row { display: flex; justify-content: space-between; gap: var(--s4); padding: .55rem 0; font-size: var(--fs-sm); }
.success__row + .success__row { border-top: 1px solid var(--line); }
.success__row span { color: var(--muted); }
.success__actions { display: grid; gap: var(--s3); margin-top: var(--s6); }
@media (min-width: 560px) { .success__actions { grid-auto-flow: column; justify-content: center; } }
.success__help { font-size: var(--fs-sm); color: var(--muted); margin-top: var(--s5); }

/* ---------- auth ---------- */
.authbox { max-width: 460px; margin-inline: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s7); }
.authbox__title { font-size: var(--fs-h2); color: var(--navy-800); }
.authbox__text { color: var(--body); font-size: var(--fs-sm); margin-block: var(--s3) var(--s5); }
.authbox__alt { font-size: var(--fs-sm); color: var(--body); margin-top: var(--s4); text-align: center; }
.authbox input[type=text], .authbox input[type=password] {
  width: 100%; min-height: 48px; padding: .7rem .9rem; border: 1px solid var(--line-2); border-radius: var(--r);
}
.authbox label { display: block; font-size: var(--fs-sm); font-weight: 700; color: var(--navy-800); margin-bottom: .3rem; }
.authbox p { margin-bottom: var(--s4); }
.authbox input[type=submit] {
  width: 100%; min-height: 48px; border-radius: var(--r); background: var(--navy-800); color: #fff;
  font-weight: 700; border: 0; cursor: pointer;
}
.authbox input[type=submit]:hover { background: var(--navy-700); }

/* ---------- categories index ---------- */
.catgrid { align-items: start; }
.catblock__head { display: flex; gap: .7rem; align-items: center; }
.catblock__icon { width: 44px; height: 44px; flex: none; border-radius: var(--r); background: var(--navy-tint); color: var(--navy-700); display: grid; place-items: center; }
.catblock__icon svg { width: 20px; height: 20px; }
.catblock__name { display: block; font-size: var(--fs-sm); font-weight: 800; color: var(--navy-800); }
.catblock__count { font-size: var(--fs-xs); color: var(--muted); }
.catblock__kids { margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--line); display: grid; gap: .1rem; }
.catblock__kids a { display: flex; align-items: center; min-height: 30px; font-size: var(--fs-xs); color: var(--body); }
.catblock__kids a:hover { color: var(--navy-700); }

/* ---------- tap-target floor ----------
   Inline links inside hints, notes and small print are still targets. Padding
   plus a negative margin lifts them past 24px without moving the text. */
.field__hint a, .authbox__alt a, .success__help a, .notice a, .infonote a, .emptystate a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 26px;
  padding-inline: .25rem; margin-inline: -.25rem;
}
.secthead__more { min-height: 32px; }

/* wp_login_form() ships a 13px "remember me" box. It is a control a person has
   to hit, so it gets a real size. */
.authbox input[type="checkbox"] {
  width: 22px; height: 22px; accent-color: var(--navy-700); margin-right: .35rem;
}
.authbox .login-remember label { display: inline-flex; align-items: center; min-height: 34px; font-weight: 500; }

/* ---------- grid blowout guard, applied to every grid in the theme ----------
   A grid item's automatic minimum size is its min-content width, so one
   nowrap button or a select with a long option silently widens the whole
   column. Allowing items to shrink is the fix; constraining the track is not,
   because the track definitions differ per breakpoint. */
.phero__actions > *, .shop__bar > *, .shop > *, .tracksearch > *, .success__actions > *,
.paymethods > *, .statgrid > *, .helplinks > *, .faqcols > *, .features2 > *,
.grid2 > *, .grid3 > *, .steps > *, .pgrid > *, .duo > *, .withside > *,
.pdp > *, .gal > *, .dash > *, .footer__grid > *, .nl__form > *, .ticks > *,
.filters > *, .contactgrid > *, .catgrid > * {
  min-width: 0;
}
.msearch, .shop__sort, .shop__sort .select, .tracksearch .input { max-width: 100%; }
/* "Chèche" must stay on one line, but the button may not set the form's floor. */
.msearch__btn { padding-inline: clamp(.75rem, 4vw, 1.5rem); }

/* 22px was an improvement on WordPress's 13px; 24 is the actual floor. */
.authbox input[type="checkbox"] { width: 24px; height: 24px; }
