/* =====================================================================
   La Patissiere — shared site chrome
   =====================================================================

   WHY THIS FILE EXISTS
   Until 4 Nov every page carried its own copy of the tokens, the brand bar
   and the buttons. That was the right call at two pages and the wrong one
   at seven: a brand change meant seven edits and the copies had already
   started to drift. The README flagged the swap at "page three"; the
   dead-links build is five pages at once, so it happens here.

   WHAT LIVES HERE: tokens, reset, brand bar, buttons, interior page
   header, footer, back-to-top. Anything used by more than one page.

   WHAT DOES NOT: anything page-specific. The homepage hero wheel, the
   storage matrix, the product grid — those stay inline on their own page.

   🔴 public/trade/index.html DOES NOT LINK THIS FILE and must not.
   It is a Google Ads landing page and has to load in one request. Its
   duplication is deliberate. If a token changes here, change it there
   too — the comment at the top of that file says so as well.
   ===================================================================== */

:root{
  color-scheme: light;
  --paper:#EFEDE9;
  --paper-2:#E7E4DE;
  --ink:#1B1A17;
  --mute:#7D7A72;
  --line:#D6D1C7;
  --gold:#B4A070;        /* sampled from the client's live site — rules, labels, decoration */
  --gold-deep:#7A6634;   /* same hue, darkened so it is legible as text on a light ground */
}

*{box-sizing:border-box}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body{
  margin:0;
  background:var(--paper);color:var(--ink);
  font-family:'IBM Plex Sans','Segoe UI',Helvetica,Arial,sans-serif;
  font-size:16px;line-height:1.55;-webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
.wrap{max-width:1280px;margin:0 auto;padding-inline:24px}

/* ---------- brand bar ----------------------------------------------
   On the homepage the bar floats over the hero, so it is absolute and
   its pill nav sits on translucent white over photography. On every
   other page there is no hero behind it, so .bar--solid drops it into
   normal flow and gives it an opaque ground and a hairline rule. Same
   markup, same measurements — only the ground changes. */
.bar{position:absolute;top:0;left:0;right:0;z-index:6}
.bar .wrap{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:20px;padding-block:14px}
.bar--solid{position:relative;background:var(--paper);border-bottom:1px solid var(--line)}
.bar--solid .nav{background:var(--paper-2);border-color:var(--line)}
.bar--solid .ibtn{background:var(--paper-2);border-color:var(--line)}

.mark{display:block;line-height:0}
.mark img{height:clamp(52px,5.6vw,78px);width:auto}
.nav{
  justify-self:center;display:flex;gap:2px;padding:5px;border-radius:999px;
  background:rgba(255,255,255,.40);border:1px solid rgba(255,255,255,.6);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
}
.nav a{
  font-size:13.5px;font-weight:500;color:#36332C;text-decoration:none;
  padding:9px 17px;border-radius:999px;white-space:nowrap;
}
.nav a.on{background:var(--gold);color:#241E0C;font-weight:600}
.nav a:not(.on):hover{background:rgba(255,255,255,.55)}
.bar--solid .nav a:not(.on):hover{background:rgba(255,255,255,.75)}
.nav a:focus-visible{outline:2px solid var(--gold-deep);outline-offset:2px}
.actions{display:flex;gap:9px;justify-self:end}
.ibtn{
  width:41px;height:41px;border-radius:50%;cursor:pointer;display:grid;place-items:center;
  background:rgba(255,255,255,.45);border:1px solid rgba(255,255,255,.65);color:#36332C;
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
}
.ibtn:hover{background:#fff}
.ibtn:focus-visible{outline:2px solid var(--gold-deep);outline-offset:2px}
.ibtn .lang{font-family:'IBM Plex Mono',monospace;font-size:11px;font-weight:500;letter-spacing:.04em}

/* ---------- buttons ---------- */
.btn{
  font-size:14.5px;font-weight:600;padding:14px 26px;border-radius:2px;
  text-decoration:none;cursor:pointer;border:1.5px solid var(--ink);display:inline-block;font-family:inherit;
}
.btn-primary{background:var(--ink);color:var(--paper)}
.btn-primary:hover{background:var(--gold-deep);border-color:var(--gold-deep)}
.btn-ghost{background:transparent;color:var(--ink)}
.btn-ghost:hover{background:rgba(0,0,0,.06)}
.btn:focus-visible{outline:2px solid var(--gold-deep);outline-offset:3px}

/* ---------- interior page header ------------------------------------
   The homepage signature is the arc band sweeping off the right edge.
   Repeating the whole wheel on five more pages would be noise, so the
   interior pages keep ONE quiet echo of it: a single wide arc, very low
   contrast, anchored to the same right edge. It says "same site" without
   competing with the page's own content. */
.phead{position:relative;overflow:hidden;background:var(--paper-2);border-bottom:1px solid var(--line)}
.phead::before{
  content:'';position:absolute;top:50%;right:-40%;width:120%;aspect-ratio:1;
  transform:translateY(-50%);border-radius:50%;
  background:radial-gradient(circle at center,#F3E6D2 0%,#F3E6D2 56%,transparent 57%);
  opacity:.55;pointer-events:none;
}
.phead .wrap{position:relative;padding-block:clamp(44px,7vw,86px)}
.phead .eyebrow{
  font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:11.5px;
  letter-spacing:.14em;text-transform:uppercase;color:var(--gold-deep);
  margin:0 0 14px;display:flex;align-items:center;gap:10px;
}
.phead .eyebrow b{display:block;width:26px;height:1px;background:var(--gold);flex:none}
.phead h1{
  font-family:'Playfair Display',Georgia,serif;font-weight:600;
  font-size:clamp(32px,4.6vw,56px);line-height:1.06;letter-spacing:-.015em;
  margin:0 0 18px;text-wrap:balance;max-width:19ch;
}
.phead h1 em{font-style:normal;color:var(--gold-deep)}
.phead .lede{font-size:17px;line-height:1.62;color:#413E37;max-width:56ch;margin:0}

/* ---------- shared section furniture ---------- */
.sec{padding-block:clamp(48px,6vw,82px)}
.sec--alt{background:var(--paper-2);border-block:1px solid var(--line)}
.klabel{
  font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:11.5px;
  letter-spacing:.14em;text-transform:uppercase;color:var(--mute);margin:0 0 12px;
}
.h2{
  font-family:'Playfair Display',Georgia,serif;font-weight:600;
  font-size:clamp(25px,3.1vw,37px);line-height:1.14;letter-spacing:-.012em;
  margin:0 0 16px;text-wrap:balance;
}
.h2 em{font-style:normal;color:var(--gold-deep)}
.p{font-size:16px;line-height:1.68;color:#413E37;max-width:66ch;margin:0 0 16px}
.p:last-child{margin-bottom:0}

/* ---------- footer ---------------------------------------------------
   Built 4 Nov with the interior pages. Carries the full nav a second
   time, which is the thing a long page actually needs at the bottom, and
   the registered company line — a procurement buyer checks it. */

/* ---------- product strips and range cards ---------------------------------
   Used by the export lanes (/export/) and the range cards (/wholesale/). They
   live HERE rather than in either page's own stylesheet because two pages need
   them; the export-only lane chrome and the shelf-life scale stay on that page.

   🔴 These were on the export page first and the wholesale section rendered as
   raw bullets with full-size photographs, because that page never loads the
   export page's CSS. If a third page wants a strip, it links this file. */

/* 🔴 A grid item defaults to min-width:auto, so a track sizes itself to the
   strip's MIN-CONTENT — the sum of ten tiles — and the card grew to 1169px
   inside a 768px viewport. minmax(0,1fr) plus min-width:0 is what lets the
   scroll container actually scroll instead of pushing the page wide. */
.xl-s{min-width:0;list-style:none;display:flex;gap:8px;margin:0 0 14px;padding:0 0 4px;
      overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none}
.xl-s::-webkit-scrollbar{display:none}
/* the cutouts carry real alpha, so each sits on its own tinted tile — a white
   plate on a white card disappears */
.xl-s li{flex:none;width:104px;height:74px;border-radius:5px;background:var(--tint,#F3F1ED);
         display:grid;place-items:center;overflow:hidden}
.xl-s img{width:100%;height:100%;object-fit:contain;display:block}

/* the full list stays available, it just stops shouting */
.xl-d{border-top:1px solid var(--line);padding-top:12px}
/* min-height 44px: these rows were 17px tall, which is not a tappable
   control on a phone. */
.xl-d summary{cursor:pointer;min-height:44px;display:flex;align-items:center;
  font-family:'IBM Plex Mono',ui-monospace,monospace;
              font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--mute)}
.xl-d summary:hover{color:var(--ink)}
.xl-d summary:focus-visible{outline:2px solid var(--gold-deep);outline-offset:3px}
.xl-d[open] summary{margin-bottom:12px}
.xl-l{list-style:none;display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0}
.xl-l li{font-size:11.5px;padding:4px 10px;border-radius:999px;
         background:var(--paper-2);border:1px solid var(--line);color:#3C3930}

/* wholesale: the same visual language, cut by category rather than by lane */
.wrange{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;margin-top:30px}
.wr{min-width:0;background:#fff;border:1px solid var(--line);border-radius:6px;
    padding:22px 24px 18px;--tint:#F4F1EB}
.wr-h{display:flex;align-items:baseline;gap:12px;justify-content:space-between;margin-bottom:6px}
.wr h3{font-family:'Playfair Display',Georgia,serif;font-weight:600;font-size:23px;margin:0}
.wr-c{margin:0;font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:11.5px;
      letter-spacing:.1em;text-transform:uppercase;color:var(--gold-deep);white-space:nowrap}
.wr-b{font-size:14.5px;line-height:1.6;color:#413E37;margin:0 0 14px;max-width:62ch}
@media (max-width:560px){ .xl-s li{width:90px;height:64px} }

/* ---------- back to top ----------------------------------------------
   🔴 24 Nov: this no longer owns the bottom-right corner. The WhatsApp
   launcher took it (Liwaa's call -- right is the thumb corner and the
   conversion belongs in it), and the two now sit as one vertical stack on
   a shared axis: WhatsApp 56px at bottom:22, this one directly above it.
   bottom = 22 + 56 + 12.  right = 22 + (56-46)/2, so the two circles share
   a centre line instead of being flush-aligned on one edge.
   🔴 The homepage does NOT load this file -- it carries its own copy of
   .totop. Change both or the homepage keeps the old position. */
.totop{
  position:fixed;right:27px;bottom:calc(90px + env(safe-area-inset-bottom,0px));
  z-index:40;width:46px;height:46px;border-radius:50%;
  display:grid;place-items:center;cursor:pointer;
  background:var(--paper);border:1.5px solid var(--ink);color:var(--ink);
  opacity:0;visibility:hidden;transform:translateY(8px);
  transition:opacity .22s ease,transform .22s ease,visibility .22s;
}
.totop.on{opacity:1;visibility:visible;transform:none}
.totop:hover{background:var(--ink);color:var(--paper)}
.totop:focus-visible{outline:2px solid var(--gold-deep);outline-offset:3px}

/* ---------- responsive ----------------------------------------------
   The nav pill does not survive below ~1000px — five items plus a logo
   plus two round buttons will not fit without cramping the tap targets,
   and the universal standard is a hard floor on that. Below 1000 the nav
   moves to its own row and scrolls horizontally, which keeps every target
   at full size and never clips. */
@media (max-width:1000px){
  .bar .wrap{grid-template-columns:auto auto;row-gap:10px;padding-block:12px}
  .nav{
    grid-column:1 / -1;grid-row:2;justify-self:stretch;overflow-x:auto;
    scrollbar-width:none;-ms-overflow-style:none;
  }
  .nav::-webkit-scrollbar{display:none}
}
@media (max-width:600px){
  .wrap{padding-inline:16px}
  .nav a{padding:9px 14px}
  /* 🔴 Not a stack at this width. A 136px vertical reserve on a 390px screen
     left a visible hollow in the footer, so the two controls go to opposite
     corners instead: WhatsApp keeps bottom-right, this takes bottom-left --
     the slot WhatsApp itself occupied until today and which is already proven
     clear of the footer. right:auto is required, or the old right wins. */
  /* 🔴 Was 42x42 here. 46px declared above, then quietly undone by this
     override -- the same way .lsw-a lost its 44px three lines under a
     comment warning about exactly that. A floor is only a floor if every
     override respects it, so the mobile size is 44, not 42. Moving the
     button is what this block is for; resizing it was never the point. */
  .totop{left:14px;right:auto;bottom:calc(14px + env(safe-area-inset-bottom,0px));
         width:44px;height:44px}
}
/* The open panel occupies exactly the space this button sits in, so it steps
   out of the way rather than being overlapped by a translucent-shadowed edge.
   Set on <html> by contact.js. */
.lp-wa-open .totop{opacity:0;visibility:hidden;pointer-events:none}
@media (prefers-reduced-motion:reduce){
  .totop{transition:none}
}
