/* ============================================================
   MINIMALMONK — Less, but better.
   Brand system: Ink #0A0A0A · Paper #FFFFFF · Natural #F4F2EE
   Signal Red #BE0000 (used only for price drops, alerts, sale)
   Type: Oswald (condensed display, matches the wordmark) ·
         Inter (body) · JetBrains Mono (technical labels)
   Geometry: 0px radius, 1px hairlines, no soft shadows.
   ============================================================ */
:root {
  /* --- core ink & paper --- */
  --ink: #0A0A0A;              /* near-black — headings, text, CTAs */
  --ink-soft: #45443F;         /* body copy */
  --muted: #8B8983;            /* meta, captions */
  --bg: #FFFFFF;               /* paper */
  --bg-soft: #F4F2EE;          /* natural shade — alt sections, image beds */
  --bg-deep: #EAE7E1;          /* pressed / hover on natural */
  --line: #E3E0DA;             /* hairline */
  --line-dark: #C8C4BC;        /* input borders */
  --night: #0A0A0A;            /* dark surfaces */
  --night-soft: #1C1C1A;

  /* --- signal red: the only chromatic accent --- */
  --red: #BE0000;
  --red-deep: #8F0000;
  --red-soft: #FBECEC;

  /* --- semantic tokens kept for admin/status chrome (desaturated) --- */
  --green: #2F5D3F;  --green-soft: #E8EFE9;
  --amber: #7A5B10;  --amber-soft: #F5EFDF;
  --blue: #2A4A6B;   --blue-soft: #E9EEF4;
  --violet: #4A3F63; --violet-soft: #EDEAF2;
  --coral: var(--red); --coral-soft: var(--red-soft);

  /* --- geometry: the reference is built on soft rectangles and pills --- */
  --r-pill: 999px;      /* SHOP NOW, category chips, tile plates */
  --r-nav: 12px;        /* the header pill — a rounded rectangle, not a capsule */
  /* The sticky header's full height: the bar plus the wrapper's padding above
     and below it (28 + 58 + 10). Anything that has to come to rest clear of
     the header measures from here rather than keeping its own copy of the
     number — the product gallery was stopping 12px behind it once the bar
     grew. */
  --header-h: 96px;
  --r-lg: 26px;         /* the big black Collections panel */
  --r-md: 18px;         /* collection tiles, newsletter field */
  --r-sm: 10px;         /* small controls */
  --radius: var(--r-sm);
  --shadow: 0 18px 40px rgba(10, 10, 10, .10);
  --shadow-sm: 0 6px 18px rgba(10, 10, 10, .07);
  --shadow-lift: 0 1px 0 var(--ink);

  /* --- type --- */
  --font: 'Lato', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-display: 'Oswald', Impact, sans-serif;   /* wordmark + primary button only */
  --font-condensed: 'Oswald', var(--font);
  --font-head: var(--font);                        /* section headings — humanist, light */
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-accent: var(--font-mono);
  --font-ar: 'Manjari', 'Noto Sans Malayalam', sans-serif;
  --ease: cubic-bezier(.2, .7, .3, 1);

  /* --- compatibility aliases: older templates reference these by name.
         Everything chromatic collapses onto ink so no stray colour survives;
         only genuine "sale / discount / danger" signals resolve to red. --- */
  --pink: var(--ink);          /* primary action colour — now ink, not a hue */
  --pink-deep: #2E2D2A;
  --pink-soft: var(--bg-soft);
  --gold-brand: var(--ink);
  --plum: var(--ink);
  --plum-deep: var(--night);
  --gold: var(--ink);
  --gold-soft: var(--bg-soft);
  --saffron: var(--ink);
  --saffron-deep: var(--ink);
  --saffron-soft: var(--bg-soft);
  --rose: var(--red);
  --sea: var(--ink);
  --sand: var(--bg-soft);
  --mist: var(--bg-soft);
  --cream: var(--bg);
  --pearl: var(--bg);
  --surface: var(--bg);
  --font-serif: var(--font-display);
  --font-sans: var(--font);
  --font-body: var(--font);
}
/* The header pill sets the site's corner. Everything that borrows --r-nav
   steps down with it on a phone, so a button never carries a rounder corner
   than the bar above it. */
@media (max-width: 720px) {
  :root { --r-nav: 10px; --header-h: 80px; }  /* 22 + 50 + 8 */
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink-soft); background: var(--bg); line-height: 1.6; font-size: 14.5px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
/* A page shorter than the screen — an empty bag, a thin content page — left the
   footer floating with a band of white under it. The column holds the footer at
   the bottom on those, and changes nothing on a page that already scrolls.
   The header is sticky inside this column and stays so; dvh rather than vh so
   the phone's collapsing address bar does not leave a gap of its own. */
body { min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
footer.site { flex-shrink: 0; }
[dir="rtl"] body, html[lang="ml"] body { font-family: var(--font-ar), var(--font); font-size: 1.02em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 0; }
::selection { background: var(--ink); color: #fff; }
.container { width: 100%; max-width: none; margin: 0 auto; padding: 0 clamp(16px, 2.5vw, 48px); }
/* The reference sets headings in the body face, light and sentence case. The
   condensed display face is reserved for the wordmark and the primary button. */
h1, h2, h3 { font-family: var(--font-head); font-weight: 300; letter-spacing: -0.01em; line-height: 1.12; text-transform: none; }
h4, h5, h6 { font-family: var(--font); font-weight: 600; letter-spacing: 0; }
.serif { font-family: var(--font-head); font-weight: 300; text-transform: none; }
/* Opt back into the condensed voice where it belongs. */
.display { font-family: var(--font-display); font-weight: 500; letter-spacing: .5px; text-transform: uppercase; }
/* Technical labels — the spec block on the product band. */
.kicker, .eyebrow { text-transform: uppercase; letter-spacing: 1.6px; font-size: 10.5px; font-weight: 500; font-family: var(--font-mono); color: var(--muted); }
.mono { font-family: var(--font-mono); }
hr { border: none; border-top: 1px solid var(--line); }
strong, b { font-weight: 600; }

/* ---------- Header: the floating pill ----------
   The reference header is one black pill with the monogram, the wordmark and two
   controls. Everything else — navigation, account, language — lives in the drawer
   behind the menu button, which is why there is no second or third row. */
/* A slim bar with more air above it than below, as the reference draws it. The
   band around the bar is see-through, so the page scrolls on behind it and only
   the pill floats; it lets clicks through as well, so it never blocks a link
   that has scrolled under it. */
.sticky-header-wrapper { position: sticky; top: 0; z-index: 50; background: transparent; padding: 28px 0 10px; pointer-events: none; }
header.site { background: transparent; border: none; position: relative; z-index: 2; }
.navpill {
  display: flex; align-items: center; gap: 14px;
  background: var(--ink); color: #fff;
  pointer-events: auto;
  border-radius: var(--r-nav);
  /* Tighter on the right than the left: each 32px control already carries 5px
     of its own padding around its 22px icon, the monogram carries none. Equal
     padding would sit the menu further from the pill's edge than the mark. */
  padding: 0 22px 0 32px;
  /* The bar is drawn to a height rather than left to its contents. */
  min-height: 58px;
}
.navpill a { color: #fff; }
.np-mark { display: flex; align-items: center; flex: 0 0 auto; }
.np-mark img { height: 22px; width: auto; }
/* The wordmark is optically centred on the pill, not centred between the two
   controls — the mark and the actions have different widths. */
.np-word { position: absolute; left: 50%; transform: translateX(-50%); display: flex; }
.np-word img { height: 17px; width: auto; }
.navpill { position: relative; }
.np-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.np-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0;
  background: none; border: none; border-radius: var(--r-pill);
  color: #fff; cursor: pointer; transition: background .18s var(--ease);
}
.np-btn:hover { background: rgba(255, 255, 255, .12); }
.np-btn svg { width: 22px; height: 22px; }
.np-count {
  position: absolute; top: 2px; right: 1px;
  min-width: 15px; height: 15px; padding: 0 4px;
  background: #fff; color: var(--ink);
  border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: 9px; font-weight: 500;
  line-height: 15px; text-align: center;
}
@media (max-width: 720px) {
  /* The phone runs a slim bar with more air above it than below, as the phone
     reference draws it; everything inside is about 85% of its desktop size. */
  .sticky-header-wrapper { padding: 22px 0 8px; }
  .navpill { padding: 8px 16px 8px 24px; min-height: 50px; gap: 10px; }
  .np-mark img { height: 20px; }
  .np-word img { height: 15.5px; }
  .np-btn { width: 30px; height: 30px; }
  .np-btn svg { width: 20px; height: 20px; }
}
/* The wordmark is centred on the pill rather than in the space left between the
   mark and the controls, and the controls are the wider side — so on the
   narrowest phones it is the right-hand gap that closes first. */
@media (max-width: 340px) {
  .np-word img { height: 15px; }
}

/* ---------- Buttons ---------- */
/* One button: a solid ink block. Inverts on hover. Nothing lifts, nothing glows. */
.btn { display: inline-block; background: var(--ink); color: #fff; border: 1px solid var(--ink); padding: 14px 32px; border-radius: var(--r-nav); font-family: var(--font-display); font-size: 14px; font-weight: 500; letter-spacing: 1.6px; text-transform: uppercase; cursor: pointer; text-align: center; transition: background .18s var(--ease), color .18s var(--ease); }
.btn:hover { background: transparent; color: var(--ink); box-shadow: none; transform: none; }
.btn:active { background: var(--night-soft); color: #fff; }
.btn.gold { background: transparent; color: var(--ink); }
.btn.gold:hover { background: var(--ink); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-dark); }
.btn.ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: none; }
.btn.sm { padding: 8px 16px; font-size: 11px; letter-spacing: 1.1px; }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.danger:hover { background: transparent; color: var(--red); }
.btn.ghost.danger { background: transparent; color: var(--red); border-color: var(--red); }
.btn.ghost.danger:hover { background: var(--red); color: #fff; }
.btn.wide { width: 100%; }
.btn[disabled], .btn:disabled { opacity: .35; pointer-events: none; }
/* text link with the brand's rule-underline */
.link-rule { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.link-rule:hover { opacity: .55; }

/* ---------- Hero carousel ---------- */
.hero-carousel { position: relative; margin: 0 auto; max-width: none; padding: 0; }
.hero-viewport { border-radius: 0; }
.hero-slide { border-radius: 0; }
.hero-slide, .hero-slide .hs-img { min-height: 420px; }
.hero-slide .hs-text { padding-left: clamp(28px, 5vw, 90px); }
[dir="rtl"] .hero-slide .hs-text { padding-left: 44px; padding-right: clamp(28px, 5vw, 90px); }
.hero-arrow.prev { left: 22px; } .hero-arrow.next { right: 22px; }
.hero-viewport { overflow: hidden; border-radius: 0; }
.hero-track { display: flex; transition: transform .5s var(--ease); }
.hero-slide { flex: 0 0 100%; min-height: 330px; border-radius: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: center; overflow: hidden; color: #fff; position: relative; }
.hero-slide .hs-text { padding: 44px 56px; position: relative; z-index: 2; }
.hero-slide .hs-kicker { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 2.4px; font-size: 10.5px; font-weight: 400; opacity: .7; margin-bottom: 14px; }
.hero-slide h2 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 58px); line-height: 1; font-weight: 600; letter-spacing: -0.005em; text-transform: uppercase; margin-bottom: 16px; }
.hero-slide h2 .mega { font-size: clamp(46px, 6.4vw, 92px); display: block; line-height: .95; }
.hero-slide p { font-size: 14.5px; line-height: 1.6; opacity: .82; margin: 0 0 26px; max-width: 400px; }
.hero-slide .hs-img { height: 100%; min-height: 330px; }
.hero-slide .hs-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-slide.s1 { background: var(--ink); }
.hero-slide.s2 { background: var(--bg-soft); color: var(--ink); }
.hero-slide.s3 { background: var(--night-soft); }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 0; background: var(--bg); border: 1px solid var(--ink); cursor: pointer; font-size: 15px; color: var(--ink); box-shadow: none; z-index: 5; transition: background .18s, color .18s; display: flex; align-items: center; justify-content: center; }
.hero-arrow:hover { background: var(--ink); color: #fff; }
.hero-arrow.prev { left: 44px; } .hero-arrow.next { right: 44px; }
.hero-dots { display: flex; gap: 7px; justify-content: center; margin-top: 12px; }
.hero-dots button { width: 22px; height: 2px; border-radius: 0; border: none; background: var(--line-dark); cursor: pointer; transition: background .25s, width .25s var(--ease); padding: 0; }
.hero-dots button.on { width: 44px; background: var(--ink); }
@media (max-width: 860px) { .hero-slide { display: grid; grid-template-columns: 1fr; min-height: 480px; } .hero-slide .hs-img { display: block; width: 100%; height: 260px; min-height: 260px; order: -1; } .hero-slide .hs-text { padding: 34px 30px; } .hero-arrow.prev { left: 16px; } .hero-arrow.next { right: 16px; } }

/* ---------- Sections ---------- */
section.block { padding: clamp(48px, 6vw, 88px) 0; }
section.block.alt { background: var(--bg-soft); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); gap: 16px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--font-head); font-size: clamp(22px, 2.6vw, 34px); color: var(--ink); font-weight: 300; letter-spacing: -0.015em; text-transform: none; }
.section-head a.more { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink); font-weight: 400; }
.section-head a.more:hover { opacity: .55; }

/* ---------- Category tile strip ---------- */
.tile-strip { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.tile-strip { justify-content: space-between; }
.tile { flex: 1 0 150px; max-width: 210px; text-align: center; }
.tile .tile-img { width: 100%; aspect-ratio: 1; border-radius: 0; overflow: hidden; background: var(--bg-soft); border: 1px solid var(--line); }
.tile .tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.tile:hover .tile-img img { transform: scale(1.04); }
.tile .tile-label { margin-top: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 400; color: var(--ink); }
.tile:hover .tile-label { opacity: .55; }

/* ---------- Grids & product cards ---------- */
.grid { display: grid; gap: 18px; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-6 { grid-template-columns: repeat(6, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid.cols-4, .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .grid.cols-6 { grid-template-columns: repeat(3, 1fr); } .grid.cols-2 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid.cols-4, .grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid.cols-6 { grid-template-columns: repeat(2, 1fr); } }

.product-card { background: var(--bg); border: 1px solid var(--line); border-radius: 0; overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s var(--ease); position: relative; }
.product-card:hover { border-color: var(--ink); }
.product-card .imgzone { position: relative; }
.product-card .imgwrap { aspect-ratio: 4/5; background: var(--bg-soft); overflow: hidden; position: relative; display: block; }
.product-card .imgwrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.product-card:hover .imgwrap img { transform: scale(1.04); }
.product-card .body { padding: 14px 15px 16px; flex: 1; display: flex; flex-direction: column; gap: 3px; border-top: 1px solid var(--line); }
.product-card .brand { font-family: var(--font-display); font-size: 14px; font-weight: 500; letter-spacing: .5px; text-transform: uppercase; color: var(--ink); line-height: 1.25; }
/* .pcat replaced .brand on the card; the rule above stays for any template still using it. */
.product-card .pname { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.product-card .price { margin-top: auto; padding-top: 10px; font-weight: 600; color: var(--ink); font-size: 14.5px; font-variant-numeric: tabular-nums; }
.price .was { color: var(--muted); text-decoration: line-through; font-weight: 400; font-size: 12px; margin: 0 5px; }
.price .off { color: var(--red); font-weight: 600; font-size: 11.5px; font-family: var(--font-mono); }
/* wishlist heart */
.wish-heart { position: absolute; top: 10px; right: 10px; z-index: 3; }
[dir="rtl"] .wish-heart { right: auto; left: 10px; }
.wish-heart button,
.wish-heart a { width: 32px; height: 32px; border-radius: var(--r-nav); background: rgba(255,255,255,.94); border: 1px solid var(--line); cursor: pointer; font-size: 15px; color: var(--ink-soft); box-shadow: none; transition: color .15s, border-color .15s; }
.wish-heart button:hover,
.wish-heart a:hover { color: var(--ink); border-color: var(--ink); }
/* quick add */
.product-card .quick-add { position: absolute; left: 10px; right: 10px; bottom: 10px; opacity: 0; transform: translateY(8px); transition: opacity .22s var(--ease), transform .22s var(--ease); z-index: 2; }
.product-card:hover .quick-add, .product-card:focus-within .quick-add { opacity: 1; transform: none; }
.quick-add button { width: 100%; background: var(--bg); color: var(--ink); border: 1px solid var(--ink); padding: 11px; border-radius: 0; font-family: var(--font-display); font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 500; cursor: pointer; transition: background .15s, color .15s; }
.quick-add button:hover { background: var(--ink); color: #fff; }
@media (hover: none) { .product-card .quick-add { opacity: 1; transform: none; position: static; padding: 12px; } }

.badge { display: inline-block; font-family: var(--font-mono); font-size: 9.5px; font-weight: 500; padding: 4px 9px; border-radius: 0; letter-spacing: 1px; text-transform: uppercase; }
.badge.sale { background: var(--red); color: #fff; position: absolute; top: 10px; left: 10px; z-index: 2; }
[dir="rtl"] .badge.sale { left: auto; right: 10px; }
/* Pre-order stacks under the sale badge on the left, never on the right: the wishlist
   heart owns that corner and would sit on top of it. `.has-sale` is set on the badge
   when the card also shows a discount, so the two never overlap each other either. */
.badge.preorder { background: var(--ink); color: #fff; position: absolute; top: 10px; left: 10px; z-index: 2; }
.badge.preorder.has-sale { top: 54px; }   /* clears the sale badge above it */
[dir="rtl"] .badge.preorder { left: auto; right: 10px; }
.badge.pre { background: var(--bg-soft); color: var(--ink); }
.badge.founder { background: var(--ink); color: #fff; }
.badge.st-pending { background: var(--amber-soft); color: var(--amber); }
.badge.st-confirmed { background: var(--blue-soft); color: var(--blue); }
.badge.st-processing { background: var(--violet-soft); color: var(--violet); }
.badge.st-shipped { background: var(--green-soft); color: var(--green); }
.badge.st-delivered { background: var(--green); color: #fff; }
.badge.st-cancelled, .badge.st-rejected { background: var(--coral-soft); color: var(--coral); }
.badge.st-awaiting_approval, .badge.st-requested { background: var(--amber-soft); color: var(--amber); }
.badge.st-approved { background: var(--blue-soft); color: var(--blue); }
.badge.st-refunded, .badge.st-returned { background: var(--violet-soft); color: var(--violet); }
.badge.st-exchanged { background: var(--green-soft); color: var(--green); }
.badge.st-approved { background: var(--blue-soft); color: var(--blue); }
.badge.st-paid { background: var(--green); color: #fff; }
.badge.st-approved, .badge.st-paid, .badge.st-active, .badge.st-handled { background: var(--green-soft); color: var(--green); }
.badge.st-open, .badge.st-draft, .badge.st-paused { background: var(--amber-soft); color: var(--amber); }
.badge.st-forwarded { background: var(--violet-soft); color: var(--violet); }

/* offer banners (3-up strip) */
.offer-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .offer-strip { grid-template-columns: 1fr; } }
.offer-card { border-radius: 0; padding: 30px 30px; color: #fff; display: flex; flex-direction: column; gap: 8px; min-height: 150px; justify-content: center; transition: opacity .2s var(--ease); }
.offer-card:hover { opacity: .88; }
.offer-card .oc-k { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 1.8px; font-size: 10px; font-weight: 400; opacity: .7; }
.offer-card .oc-t { font-family: var(--font-display); font-size: 24px; font-weight: 500; letter-spacing: .5px; text-transform: uppercase; line-height: 1.12; }
.offer-card .oc-s { font-size: 13px; opacity: .9; }
.offer-card.o1 { background: var(--ink); }
.offer-card.o2 { background: var(--bg-soft); color: var(--ink); border: 1px solid var(--line); }
.offer-card.o3 { background: var(--red); }

/* brand spotlight (portrait cards, offer line below) */
.spot-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px 18px; }
@media (max-width: 1100px) { .spot-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .spot-grid { grid-template-columns: repeat(2, 1fr); } }
.spot-card { display: block; }
.spot-card .spot-img { aspect-ratio: 3/4; border-radius: 0; overflow: hidden; position: relative; background: var(--bg-soft); }
.spot-card .spot-img > img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.spot-card:hover .spot-img > img { transform: scale(1.05); }
/* Logo above the name, both centred on the tile's bottom plate. */
.spot-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 10px 14px; background: linear-gradient(180deg, rgba(10,10,10,0) 0%, rgba(10,10,10,.5) 42%, rgba(10,10,10,.9) 100%); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 9px; font-weight: 800; font-size: 14px; line-height: 1.25; letter-spacing: .8px; text-transform: uppercase; text-align: center; overflow-wrap: break-word; }
/* Narrow tiles: shrink the name so long single-word brands still fit on one line. */
@media (max-width: 640px) { .spot-name { font-size: 12px; letter-spacing: .2px; gap: 7px; padding: 30px 6px 12px; } }
.spot-logo { width: 1.4cm; height: 1.4cm; border-radius: 0; border: 1px solid rgba(255,255,255,.5); background: #fff; object-fit: contain; padding: 4px; flex-shrink: 0; box-shadow: none; }
/* No tile image: drop the plate and centre the same logo + name in the tile. */
.spot-img.no-img { background: var(--bg-soft); border: 1px solid var(--line); }
.spot-img.no-img .spot-name { top: 0; justify-content: center; padding: 14px; background: none; color: var(--ink); }
.spot-img.no-img .spot-logo { width: 2.2cm; height: 2.2cm; border-color: transparent; box-shadow: none; }
.spot-off { margin-top: 12px; font-family: var(--font-display); font-weight: 500; letter-spacing: .5px; text-transform: uppercase; font-size: 15px; color: var(--ink); }
.spot-card:hover .spot-off { opacity: .55; }
.spot-sub { color: var(--muted); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .6px; text-transform: uppercase; margin-top: 3px; }

.brand-card { background: var(--bg); border: 1px solid var(--line); border-radius: 0; padding: 26px 18px; text-align: center; transition: border-color .2s var(--ease); }
.brand-card:hover { border-color: var(--ink); }
.brand-card img.logo-img { width: 76px; height: 76px; border-radius: 0; object-fit: contain; margin: 0 auto 14px; border: 1px solid var(--line); padding: 8px; }
.brand-card h3 { color: var(--ink); font-family: var(--font-display); font-size: 16px; font-weight: 500; letter-spacing: .6px; text-transform: uppercase; }
.brand-card .tag { color: var(--muted); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .5px; margin: 5px 0 10px; }

.cat-card { background: var(--bg); border: 1px solid var(--line); border-radius: 0; padding: 26px 12px; text-align: center; transition: border-color .2s, background .2s; }
.cat-card:hover { border-color: var(--ink); background: var(--bg-soft); }
.cat-card .emoji { font-size: 30px; margin-bottom: 6px; }
.cat-card .name { font-family: var(--font-mono); font-weight: 400; letter-spacing: 1px; text-transform: uppercase; color: var(--ink); font-size: 11px; }

/* ---------- Page shells ---------- */
.page-head { background: var(--ink); color: #ffffff; padding: clamp(48px, 6.5vw, 90px) 0; text-align: center; border-bottom: none; border-radius: var(--r-lg); margin-top: 4px; }
.page-head h1 { font-family: var(--font-head); font-size: clamp(30px, 4.2vw, 50px); font-weight: 300; letter-spacing: -0.02em; text-transform: none; color: #ffffff; margin: 0; }
.page-head p { color: rgba(255, 255, 255, 0.72); max-width: 620px; margin: 14px auto 0; font-size: 14px; line-height: 1.65; }
.page-head .eyebrow { color: rgba(255, 255, 255, 0.55); margin-bottom: 12px; }
.page-head a { color: #ffffff; }
.narrow { max-width: 760px; margin: 0 auto; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 0; padding: 30px; }
.prose h2 { color: var(--ink); margin: 34px 0 10px; font-family: var(--font-head); font-size: 23px; font-weight: 400; letter-spacing: -0.01em; text-transform: none; }
.prose h3 { color: var(--ink); margin: 24px 0 6px; font-family: var(--font-head); font-size: 17px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.prose p, .prose li { color: var(--ink-soft); font-size: 14.5px; line-height: 1.75; margin-bottom: 10px; }
.prose ul { padding-left: 22px; margin: 8px 0; }
.prose a { color: var(--ink); border-bottom: 1px solid var(--line-dark); }
.prose a:hover { border-color: var(--ink); }
/* Content pages: each "## " section of a policy sits in its own box on the
   natural shade, so a long policy reads as a stack of short answers. */
.page-sheet { background: var(--bg-soft); padding-bottom: clamp(30px, 5vw, 70px); }
/* The shaded sheet runs straight into the footer instead of leaving the
   footer's usual white gap. */
body:has(.page-sheet) footer.site { margin-top: 0; }
/* Boxed policies run at the site's standard 1440px width, the same as the
   header and footer. Unboxed pages such as About keep the narrow measure. */
.page-sheet > .container.narrow:has(.policy-card) { max-width: 1440px; }
.policy-intro { margin-bottom: 26px; }
.policy-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 32px 22px; margin-bottom: 22px; }
.policy-card h2 { margin: 0 0 12px; }
.policy-card > :last-child { margin-bottom: 8px; }
@media (max-width: 600px) { .policy-card { padding: 22px 20px 14px; border-radius: var(--r-md); margin-bottom: 16px; } }
/* The footer's two voices: Oswald for the wordmark-style titles, JetBrains
   Mono uppercase for labels. Body copy stays in Lato for long reading. */
.page-sheet h1, .page-sheet .policy-card h2 { font-family: var(--font-display); font-weight: 500; text-transform: uppercase; letter-spacing: .01em; color: var(--ink); }
.page-sheet h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.05; margin-bottom: 14px; }
.page-sheet .policy-card h2 { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.15; }
.page-sheet .policy-intro:has(+ .policy-card) > p:first-child { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }

/* ---------- Forms ---------- */
form .field { margin-bottom: 15px; }
label { display: block; font-family: var(--font-mono); font-size: 10.5px; font-weight: 400; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=url], input[type=date], input[type=search], select, textarea {
  width: 100%; border: 1px solid var(--line-dark); background: var(--bg); border-radius: 0; padding: 12px 13px; font-size: 14px; font-family: inherit; outline: none; transition: border-color .2s; color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--ink); }
input[type=date] { -webkit-appearance: none; appearance: none; min-height: 42px; }

/* ---------- Admin filter toolbar ---------- */
.filter-toolbar { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.filter-toolbar .field { margin: 0; min-width: 0; }
.filter-toolbar .field label { white-space: nowrap; }
.filter-toolbar input, .filter-toolbar select { height: 42px; }
.filter-toolbar .btn { height: 42px; padding: 0 22px; display: inline-flex; align-items: center; }
.filter-toolbar .clear-link { font-size: 12.5px; color: var(--muted); align-self: center; margin-top: 18px; }
.filter-toolbar .clear-link:hover { color: var(--pink); }
/* per-field widths live here (not inline) so the mobile rules below can override */
.filter-toolbar .f-search { flex: 1 1 220px; max-width: 300px; }
.filter-toolbar .f-status { width: 170px; }
.filter-toolbar .f-payment { width: 130px; }
.filter-toolbar .f-role { width: 190px; }
.filter-toolbar .f-date { width: 160px; }
@media (max-width: 700px) {
  .filter-toolbar { gap: 10px; }
  .filter-toolbar .f-search, .filter-toolbar .f-status, .filter-toolbar .f-payment, .filter-toolbar .f-role, .filter-toolbar .f-date { width: auto; max-width: none; flex: 1 1 46%; }
  .filter-toolbar .btn { flex: 1 1 100%; justify-content: center; }
  .filter-toolbar .clear-link { margin: 0 auto; }
}
input:focus, select:focus, textarea:focus { border-color: var(--ink); box-shadow: none; }
textarea { min-height: 110px; resize: vertical; }
.checkline { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 10px; font-weight: 400; }
.checkline input { margin-top: 4px; accent-color: var(--pink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 700px) { .form-row { grid-template-columns: 1fr; } }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.hint a { color: var(--pink); }

/* ---------- Admin settings tabs ---------- */
.set-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; border-bottom: 1px solid var(--line); padding-bottom: 0; }
.set-tab { display: inline-flex; align-items: center; gap: 7px; background: transparent; border: none; border-bottom: 2px solid transparent; color: var(--ink-soft); font-family: inherit; font-size: 13px; font-weight: 600; padding: 9px 14px; margin-bottom: -1px; cursor: pointer; border-radius: 8px 8px 0 0; transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.set-tab .i { opacity: .8; }
.set-tab:hover { background: var(--bg-soft); color: var(--ink); }
.set-tab.on { color: var(--pink); border-bottom-color: var(--pink); background: var(--pink-soft); }
.set-panel { display: none; }
.set-panel.on { display: block; animation: setFade .18s var(--ease, ease); }
@keyframes setFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.set-blurb { color: var(--muted); font-size: 13px; margin: 0 0 6px; }
.set-help { display: block; font-size: 11.5px; color: var(--muted); margin-top: 4px; font-weight: 400; }
.img-field { display: flex; gap: 8px; align-items: center; }
.img-field input[type="url"] { flex: 1; min-width: 0; }
.img-field .btn { white-space: nowrap; flex-shrink: 0; }
.img-field-preview { margin-top: 8px; }
.img-field-preview img { max-height: 90px; max-width: 240px; border-radius: 8px; border: 1px solid var(--line, rgba(0,0,0,0.1)); object-fit: cover; }

/* ---------- Toasts & notices ---------- */
.flash { position: fixed; top: 16px; right: 16px; z-index: 200; max-width: 380px; padding: 14px 20px; border-radius: 0; font-size: 13px; font-weight: 500; box-shadow: none; animation: toast-in .3s var(--ease); }
[dir="rtl"] .flash { right: auto; left: 16px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px); } }
.flash.success { background: var(--ink); color: #fff; }
.flash.error { background: var(--red); color: #fff; }
.flash a { color: inherit; text-decoration: underline; }
/* Block flow, not flex: notices contain inline markup (<strong>, <a>) that flex
   would split into separate columns. Icons align via the .notice .ico rule below. */
.notice { background: var(--bg-soft); padding: 16px 20px; border-radius: 0; font-size: 14px; margin-bottom: 24px; border: 1px solid var(--line); border-left: 3px solid var(--ink); box-shadow: none; display: block; line-height: 1.6; }
.notice.gold { background: var(--bg-soft); color: var(--ink); box-shadow: none; }
.notice.sea { background: var(--bg-soft); color: var(--green); border-left-color: var(--green); box-shadow: none; }
.notice.coral { background: var(--red-soft); color: var(--red); border-left-color: var(--red); box-shadow: none; }
.notice a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Tables ---------- */
table.list { width: 100%; border-collapse: collapse; background: var(--bg); border-radius: 0; overflow: hidden; border: 1px solid var(--line); box-shadow: none; font-size: 13px; }
table.list th { background: var(--bg-soft); text-align: left; padding: 14px 16px; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); font-weight: 400; border-bottom: 1px solid var(--ink); }
[dir="rtl"] table.list th { text-align: right; }
table.list td { padding: 16px; border-top: 1px solid var(--line); vertical-align: middle; transition: background 0.2s ease; }
table.list tr:hover td { background: var(--bg-soft); }
table.list td.nowrap, table.list th.nowrap { white-space: nowrap; }
.thumb { width: 44px; height: 54px; object-fit: cover; border-radius: 0; border: 1px solid var(--line); }
/* The global `a` rule leaves links inheriting the text colour with no underline, so a
   product, order or customer name that opens its page read as plain text. */
table.list td a:not(.btn):not(.thumb-link) { border-bottom: 1px solid var(--line-dark); }
table.list td a:not(.btn):not(.thumb-link):hover { border-color: var(--ink); }
.thumb-link { display: inline-block; line-height: 0; }
/* The global img max-width resolves against the link, which shrinks with a tight
   table — it took the 44px thumbnail down to a 3px sliver. */
.thumb-link .thumb { max-width: none; }
/* Wraps so a narrow window stacks the buttons rather than pushing the table past
   its panel; side by side they need ~165px the product name can't spare at 1024. */
.row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; }

/* Fulfilment buttons in the seller orders list. They stay on one line: letting them
   wrap made the column claim width the order code and date then had to wrap out of,
   so one narrow column dragged the whole table out of shape. Tighter than .btn.sm
   because up to three sit side by side in a cell that already shares ten columns. */
.ship-actions { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; }
/* border-box plus a transparent border on the solid buttons: ghost buttons carry a
   1.5px border, so without this they stand ~3px taller and the row never lines up. */
.ship-actions .btn { box-sizing: border-box; height: 30px; padding: 0 10px; font-size: 11.5px;
  white-space: nowrap; display: inline-flex; align-items: center; border: 1.5px solid transparent; }
.ship-actions .btn .i { margin-right: 5px; }
.ship-note { font-size: 11px; color: var(--muted); margin-top: 6px; white-space: nowrap; }
/* On the mobile cards the same buttons have the full card width, so they may wrap. */
.mi-body .ship-actions { flex-wrap: wrap; }
.mi-body .ship-note { white-space: normal; }

/* Ten columns of order data plus a button group. The default 16px cell padding spent
   ~200px on gutters, squeezing the item name into a three-line column. */
table.list.dense th { padding: 16px 10px 11px; }
table.list.dense td { padding: 12px 10px; }
/* The product name is the one column worth reading at a glance; without a floor the
   auto layout gave it the leftovers and wrapped it to three lines. */
table.list.dense .item-col { min-width: 200px; }
/* Same squeeze collapsed the status select to a bare chevron with its value hidden. */
table.list.dense select { min-width: 118px; }
table.list.dense .pick-col { width: 30px; padding-right: 0; }
table.list.dense .pick-col input { width: 15px; height: 15px; cursor: pointer; accent-color: var(--ink); }

/* Batch-print bar. Hidden until something is ticked, so it never sits there empty. */
.bulk-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 9px 14px;
  background: var(--bg-soft); border: 1px solid var(--ink); border-radius: 0; font-size: 12px; font-family: var(--font-mono); letter-spacing: .6px; color: var(--ink); }
.bulk-bar[hidden] { display: none; }
.bulk-bar .btn { margin-left: auto; }
.bulk-bar .btn + .btn { margin-left: 0; }
/* The select replaces the status badge that used to sit beside it, so it carries the
   badge's colour — the status still reads at a glance without a column of its own. */
.st-select { font-weight: 700; }
.st-select.st-pending { color: var(--amber); }
.st-select.st-confirmed, .st-select.st-processing { color: var(--ink); }
.st-select.st-shipped, .st-select.st-delivered { color: var(--green); }
.st-select.st-cancelled { color: var(--red); }

/* .panel is a grid, so .main-pane inherits min-width:auto and cannot shrink below the
   widest thing inside it — a table with nowrap cells then pushes the whole page wider
   than the window and the shell scrolls sideways. min-width:0 lets the pane hold its
   track, and the wrapper gives the table somewhere to scroll instead of being clipped.
   Scoped with :has() so panes without a scroll wrapper keep today's behaviour rather
   than silently cutting a wide table off; browsers without :has() also keep it. */
.main-pane:has(.table-scroll) { min-width: 0; }
.table-scroll { overflow-x: auto; }

/* ---------- Footer ----------
   A black field: the wordmark, one hairline, then the links as monospaced
   parentheticals. Deliberately sparse — the reference has no columns of headings.
   Everything is set flush left, with Contact pushed out to the far edge. */
footer.site {
  background: var(--ink); color: #fff;
  margin-top: clamp(60px, 10vw, 140px);
  padding: clamp(35px, 6.5vw, 100px) 0 clamp(40px, 6vw, 70px);
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .04em;
  text-align: left;
}
footer.site .ft-word { height: clamp(17.5px, 2.3vw, 34px); width: auto; display: block; }
footer.site .ft-rule { height: 1px; background: rgba(255, 255, 255, .3); margin: clamp(14px, 2vw, 22px) 0 clamp(4px, 1.1vw, 16px); }
footer.site .ft-row { display: flex; align-items: flex-start; gap: clamp(16px, 2vw, 28px); }
footer.site .ft-label { color: #fff; flex: 0 0 auto; }
footer.site .ft-links { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
footer.site .ft-contact { margin-left: auto; }
footer.site .ft-legal { display: flex; flex-wrap: wrap; gap: 4px clamp(6px, .8vw, 12px); margin-top: clamp(66px, 10vw, 140px); }
footer.site .ft-break { flex-basis: 100%; height: 0; }
footer.site a, footer.site .ft-label { text-transform: uppercase; }
footer.site a { display: inline-block; color: #fff; transition: opacity .15s; }
footer.site a:hover { opacity: .6; }
/* The phone runs the social links on one line rather than stacked, and sets the
   legal rows tight. */
@media (max-width: 720px) {
  footer.site { font-size: 11.5px; padding-top: 35px; }
  footer.site .ft-rule { margin-bottom: 4px; }
  footer.site .ft-row { flex-wrap: wrap; gap: 0 16px; }
  footer.site .ft-links { flex-direction: row; flex-wrap: wrap; gap: 0 16px; }
  footer.site .ft-legal { gap: 0 6px; margin-top: 66px; line-height: 1.35; }
}

/* ---------- Panel (Studio / Admin) ---------- */
.panel-top { display: flex; align-items: center; gap: 14px; padding: 12px clamp(16px, 2.5vw, 48px); background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
/* The storefront header no longer defines .logo, so the panel states its own. */
.panel-top .logo { display: flex; align-items: center; color: var(--ink); }
.panel-top .logo img { height: 17px; width: auto; display: block; }
.panel-chip { background: var(--pink-soft); color: var(--pink); font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.panel-user { margin-left: auto; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
[dir="rtl"] .panel-user { margin-left: 0; margin-right: auto; }
.panel-user a { color: var(--ink); font-weight: 600; }
.panel-user a:hover { color: var(--pink); }
.panel-user .sep { color: var(--line-dark); }
.panel { display: grid; grid-template-columns: 248px 1fr; min-height: calc(100vh - 58px); }
.side { background: var(--bg); color: var(--ink-soft); padding: 22px 0; border-right: 1px solid var(--line); }
[dir="rtl"] .side { border-right: none; border-left: 1px solid var(--line); }
.side .brand-mini { padding: 0 22px 16px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.side .brand-mini .nm { color: var(--ink); font-weight: 800; font-size: 16px; }
.side .brand-mini .rl { font-size: 10px; color: var(--pink); letter-spacing: 2px; text-transform: uppercase; font-weight: 700; margin-top: 2px; }
.side a.item { display: block; padding: 11px 22px; font-size: 13.5px; color: var(--ink-soft); border-left: 3px solid transparent; font-weight: 500; transition: background .15s, color .15s; }
[dir="rtl"] .side a.item { border-left: none; border-right: 3px solid transparent; }
.side a.item:hover { background: var(--bg-soft); color: var(--ink); }
.side a.item.on { background: var(--pink-soft); color: var(--pink); border-color: var(--pink); font-weight: 700; }
.main-pane { padding: 32px 36px; background: var(--bg-soft); }
.main-pane h1 { color: var(--ink); font-size: 25px; margin-bottom: 22px; font-weight: 800; }
.main-pane h2 { font-size: 18px; }
/* Heading row of every panel page. It wraps: unwrapped, Products' three buttons ran
   past a phone's edge with NEW PRODUCT cut in half. */
.pane-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin: 0 0 22px; }
.pane-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pane-head .btn { white-space: nowrap; }
.stat-row { display: grid; gap: 18px; margin-bottom: 32px; }
.stat-row.primary { grid-template-columns: repeat(2, 1fr); }
.stat-row.secondary { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
@media (max-width: 600px) { .stat-row.primary { grid-template-columns: 1fr; } }
.stat { background: var(--bg); border: none; border-radius: 14px; padding: 20px 22px; box-shadow: 0 4px 14px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.02); display: flex; flex-direction: column; justify-content: space-between; transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); position: relative; overflow: hidden; }
.stat::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--ink); opacity: 0; transition: opacity 0.3s ease; }
.stat:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04); }
.stat:hover::after { opacity: 1; }
.stat .stat-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: var(--bg-soft); color: var(--pink); margin-bottom: 16px; border: 1px solid var(--line); transition: background 0.3s ease, color 0.3s ease; }
.stat:hover .stat-icon { background: var(--pink); color: #fff; border-color: transparent; }
.stat .stat-icon svg { width: 22px; height: 22px; }
/* The dashboard tiles used a four-hue icon set. The brand has one ink and one
   signal red, so the tiles are differentiated by their icon alone; only the
   warning tile keeps a colour, because that is what red is for here. */
.stat .stat-icon.icon-green,
.stat .stat-icon.icon-blue,
.stat .stat-icon.icon-purple { color: var(--ink); background: var(--bg-soft); border-color: var(--line); }
.stat:hover .stat-icon.icon-green,
.stat:hover .stat-icon.icon-blue,
.stat:hover .stat-icon.icon-purple { background: var(--ink); color: #fff; border-color: var(--ink); }
.stat .stat-icon.icon-orange { color: var(--red); background: var(--red-soft); border-color: var(--red-soft); }
.stat:hover .stat-icon.icon-orange { background: var(--red); color: #fff; border-color: var(--red); }
.stat .stat-content .v { font-size: 26px; font-weight: 800; color: var(--ink); line-height: 1.1; word-break: break-word; letter-spacing: -0.5px; }
.stat .stat-content .l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.3px; font-weight: 700; margin-top: 8px; }
@media (max-width: 860px) { .panel { grid-template-columns: 1fr; } .side, .main-pane { min-width: 0; } .side { display: flex; align-items: center; overflow-x: auto; padding: 0; border-right: none; border-bottom: 1px solid var(--line); } .side .brand-mini { display: none; } .side a.item { white-space: nowrap; border-left: none !important; border-right: none !important; border-bottom: 3px solid transparent; padding: 13px 16px; } .side a.item.on { border-color: var(--pink); background: var(--pink-soft); } .main-pane { padding: 22px 16px; } .panel-user { display: none; } }

/* ---------- Charts ---------- */
.chart { display: flex; align-items: flex-end; gap: 12px; height: 180px; background: var(--bg); border: none; border-radius: 14px; padding: 24px 24px 30px; box-shadow: 0 4px 20px rgba(0,0,0,0.03), 0 1px 3px rgba(0,0,0,0.02); background-image: repeating-linear-gradient(0deg, transparent, transparent 34px, rgba(0,0,0,0.04) 34px, rgba(0,0,0,0.04) 35px); }
.chart .bar { flex: 1; background: var(--ink); border-radius: 0; min-height: 4px; position: relative; transition: filter 0.2s ease, transform 0.2s ease; transform-origin: bottom; opacity: 0.9; }
.chart .bar:hover { filter: brightness(1.15); transform: scaleY(1.03); opacity: 1; }
.chart .bar span { position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--muted); white-space: nowrap; font-weight: 700; letter-spacing: 0.5px; }
.chart .bar .bar-val { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 800; color: var(--plum); white-space: nowrap; }
.chart .bar.bar-empty { opacity: 0.28; }
.chart-wrap { padding-bottom: 32px; }

/* ---------- Misc ---------- */
.accordion details { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; transition: border-color .2s; }
.accordion details[open] { border-color: var(--pink); }
.accordion summary { cursor: pointer; font-weight: 600; padding: 15px 20px; color: var(--ink); list-style: none; font-size: 14.5px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; float: right; color: var(--pink); font-size: 18px; line-height: 1; }
[dir="rtl"] .accordion summary::after { float: left; }
.accordion details[open] summary::after { content: '–'; }
.accordion .ans { padding: 0 20px 16px; color: var(--ink-soft); font-size: 13.5px; }
.accordion .ans a { color: var(--pink); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 26px 24px; text-align: center; }
.step .num { width: 42px; height: 42px; border-radius: 50%; background: var(--pink-soft); color: var(--pink); font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-size: 17px; }
.step h3 { color: var(--ink); margin-bottom: 5px; font-size: 16.5px; }
.step p { color: var(--ink-soft); font-size: 13.5px; }

.qty-input { width: 64px !important; text-align: center; }
.progress-track { display: flex; gap: 5px; margin: 18px 0 8px; }
.progress-track .seg { flex: 1; height: 7px; border-radius: 4px; background: var(--line); }
.progress-track .seg.done { background: var(--green); }
.muted { color: var(--muted); font-size: 12.5px; }
.right { text-align: right; } [dir="rtl"] .right { text-align: left; }
.mt { margin-top: 20px; } .mb { margin-bottom: 20px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.score-pill { font-size: 11.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.score-hi { background: var(--green-soft); color: var(--green); }
.score-mid { background: var(--amber-soft); color: var(--amber); }
.score-lo { background: var(--coral-soft); color: var(--coral); }

.gallery-main { aspect-ratio: 4/5; border-radius: 10px; overflow: hidden; background: var(--bg-soft); border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs img { width: 66px; height: 82px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; transition: border-color .2s; }
.gallery-thumbs img.on, .gallery-thumbs img:hover { border-color: var(--pink); }

/* ===== Store masthead — the brand's own editorial header ===== */
.sf { --gold: var(--ink); --gold-line: var(--line-dark); }

.sf-hero { position: relative; }
.sf-banner { position: relative; height: 300px; overflow: hidden;
  background: var(--bg-soft); }
.sf-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* fade the (arbitrary, often busy) banner down into the cream page */
.sf-scrim { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(10,10,10,.06) 0%, rgba(10,10,10,0) 40%, rgba(255,255,255,.45) 78%, var(--bg) 100%); }

.sf-identity { position: relative; max-width: 660px; margin: -66px auto 0; padding: 0 20px 4px; text-align: center; }

/* Square ink-framed logo plate, straddling the banner seam */
.sf-medallion { width: 112px; height: 112px; margin: 0 auto 20px; border-radius: 0; padding: 0;
  background: var(--ink); box-shadow: none; }
.sf-medallion img { width: 100%; height: 100%; border-radius: 0; object-fit: contain; display: block;
  background: var(--bg); border: 6px solid var(--ink); }

.sf-eyebrow { font-family: var(--font-mono); font-size: 10.5px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0; }

.sf-name { font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(32px, 5vw, 50px); line-height: 1; letter-spacing: .005em; color: var(--ink);
  margin: 9px 0 0; display: inline-flex; align-items: center; gap: 11px; flex-wrap: wrap; justify-content: center; }
.sf-verified { display: inline-flex; align-items: center; }

/* The signature: twin hairlines flanking a small square, rotated 45°. */
.sf-rule { display: flex; align-items: center; justify-content: center; gap: 12px; width: 190px; margin: 18px auto 16px; }
.sf-rule span { flex: 1; height: 1px; background: var(--line-dark); box-shadow: none; }
.sf-rule span:last-child { background: var(--line-dark); }
.sf-rule i { flex: 0 0 auto; width: 6px; height: 6px; transform: rotate(45deg); background: var(--ink); border: none; }

.sf-tagline { font-family: var(--font); font-style: normal; font-weight: 400; font-size: clamp(15px, 2vw, 17px); line-height: 1.6; color: var(--ink-soft); margin: 0 0 16px; }

.sf-stats { display: inline-flex; align-items: center; justify-content: center; gap: 13px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.sf-stats strong { color: var(--ink); font-weight: 600; }
.sf-dot { width: 3px; height: 3px; border-radius: 0; background: var(--line-dark); }
.sf-rating { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-weight: 600; }

.sf-about { font-size: 15px; line-height: 1.75; color: var(--ink-soft); max-width: 580px; margin: 0 auto 18px; }

.sf-links { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.sf-ig { display: inline-flex; align-items: center; gap: 6px; color: var(--pink); font-weight: 600; font-size: 13.5px; text-decoration: none; }
.sf-ig:hover { text-decoration: underline; }
.sf-badge { background: var(--ink); color: var(--bg-soft); font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 5px 13px; border-radius: 999px; }

.sf-promo { margin: 30px 0 6px; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.sf-promo img { width: 100%; display: block; }

/* section heads share the kasavu-gold eyebrow + serif */
.sf-sechead { text-align: center; margin: 46px 0 26px; }
.sf-sechead .sf-eyebrow { display: block; margin-bottom: 5px; }
.sf-sechead h2 { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .01em; font-size: clamp(20px, 2.6vw, 28px); color: var(--ink); margin: 0; }

.sf-cats-track { display: flex; flex-wrap: wrap; gap: 24px 28px; justify-content: center; }
.sf-cat { display: block; text-decoration: none; text-align: center; width: 94px; }
.sf-cat--dup { display: none; } /* second copy only used by the mobile marquee */
.sf-cat-ring { display: flex; align-items: center; justify-content: center; width: 90px; height: 90px; border-radius: 50%; margin: 0 auto; overflow: hidden; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-soft); transition: transform .22s var(--ease), box-shadow .22s, border-color .22s; }
.sf-cat-ring img { width: 100%; height: 100%; object-fit: cover; }
.sf-cat:hover .sf-cat-ring { transform: translateY(-4px); box-shadow: none; border-color: var(--ink); }
.sf-cat.is-sel .sf-cat-ring { border: 2px solid var(--gold); box-shadow: 0 6px 18px rgba(201,155,63,.30); color: var(--ink); }
.sf-cat-label { display: block; margin-top: 11px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.sf-cat.is-sel .sf-cat-label { color: var(--ink); }
.sf-cat:focus-visible .sf-cat-ring { outline: 2px solid var(--gold); outline-offset: 3px; }

.sf-collections { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 22px 0 4px; }
.sf-collections a { text-decoration: none; font-size: 13px; font-weight: 600; color: var(--ink-soft); border: 1px solid var(--line-dark); border-radius: 999px; padding: 8px 17px; transition: border-color .18s, color .18s, background .18s; }
.sf-collections a span { color: var(--muted); font-weight: 500; margin-left: 2px; }
.sf-collections a:hover { border-color: var(--gold); color: var(--ink); background: var(--bg-soft); }

.sf-grid { margin-bottom: 44px; }
.sf-empty { padding: 40px 0 60px; }

/* orchestrated masthead reveal */
@keyframes sf-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.sf-identity > * { animation: sf-rise .6s var(--ease) backwards; }
.sf-medallion { animation-delay: 0s; }
.sf-eyebrow { animation-delay: .06s; }
.sf-name { animation-delay: .12s; }
.sf-rule { animation-delay: .18s; }
.sf-tagline { animation-delay: .24s; }
.sf-stats { animation-delay: .30s; }
.sf-about { animation-delay: .36s; }
.sf-links { animation-delay: .42s; }

/* mobile: categories become one seamless auto-scrolling line (marquee) */
@keyframes sf-marquee { to { transform: translateX(-50%); } }

@media (max-width: 640px) {
  .sf-banner { height: 172px; }
  .sf-identity { margin-top: -54px; }
  .sf-medallion { width: 96px; height: 96px; }
  .sf-about { font-size: 14px; }
  .sf-cat, .sf-cat-ring { width: 76px; }
  .sf-cat-ring { height: 76px; }

  .sf-cats { overflow: hidden; margin-inline: calc(-1 * clamp(16px, 2.5vw, 48px)); }
  .sf-cats-track { flex-wrap: nowrap; gap: 0; justify-content: flex-start; width: max-content; padding-block: 2px;
    animation: sf-marquee var(--sf-mq, 20s) linear infinite; }
  .sf-cat { flex: 0 0 auto; margin-right: 20px; } /* uniform spacing keeps the -50% loop seamless */
  .sf-cat--dup { display: block; }
  /* let shoppers stop the strip to tap a category */
  .sf-cats:hover .sf-cats-track,
  .sf-cats:focus-within .sf-cats-track,
  .sf-cats:active .sf-cats-track { animation-play-state: paused; }
}

@media (prefers-reduced-motion: reduce) {
  .sf-identity > * { animation: none; }
  .sf-cat:hover .sf-cat-ring { transform: none; }
}
/* reduced-motion: no auto-scroll — keep the single line but let it be swiped by hand */
@media (prefers-reduced-motion: reduce) and (max-width: 640px) {
  .sf-cats { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .sf-cats-track { animation: none; }
  .sf-cat--dup { display: none; }
}

.summary-box { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 22px 24px; }
.summary-box .row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; color: var(--ink-soft); }
.summary-box .row.total { border-top: 1px solid var(--line); margin-top: 9px; padding-top: 12px; font-weight: 800; font-size: 16px; color: var(--ink); }
.summary-box .hint a { color: var(--pink); }

/* Product "assurance" trust badges — icon chip + stacked title/desc, vertically centered */
.assurance { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; }
.assurance-item { display: flex; align-items: center; gap: 14px; padding: 15px 0; }
.assurance-item + .assurance-item { border-top: 1px solid var(--line); }
.assurance-ico { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: inline-flex; align-items: center; justify-content: center; }
.assurance-ico .ico { margin: 0; }
.assurance-txt { display: flex; flex-direction: column; min-width: 0; }
.assurance-txt strong { color: var(--ink); font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.assurance-txt span { color: var(--muted); font-size: 13px; line-height: 1.4; margin-top: 2px; }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .big { font-size: 40px; margin-bottom: 10px; }
.empty a { color: var(--pink); font-weight: 700; }

/* marketplace filter bar */
.filter-toggle { padding: 0; overflow: hidden; }
.filter-toggle summary { display: none; cursor: pointer; list-style: none; padding: 14px 16px; font-weight: 700; font-size: 13.5px; color: var(--ink); }
.filter-toggle summary::-webkit-details-marker { display: none; }
.filter-toggle summary::after { content: '▾'; float: right; color: var(--pink); transition: transform .2s; }
[dir="rtl"] .filter-toggle summary::after { float: left; }
.filter-toggle[open] summary::after { transform: rotate(180deg); }
@media (max-width: 860px) {
  .filter-toggle summary { display: block; }
  .filter-toggle:not([open]) { padding: 0; }
  .filter-toggle[open] summary { border-bottom: 1px solid var(--line); }
}
.filter-bar { display: grid; grid-template-columns: 2fr 1fr 1fr .7fr .7fr 1fr auto; gap: 12px; align-items: end; padding: 18px; }
@media (max-width: 1000px) { .filter-bar { grid-template-columns: repeat(3, 1fr); } .filter-bar > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 600px) { .filter-bar { grid-template-columns: 1fr 1fr; } }

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

/* edit / occasion cards on homepage */
.edit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .edit-grid { grid-template-columns: repeat(2, 1fr); } }
.edit-card { border-radius: 10px; padding: 26px 22px; min-height: 130px; display: flex; flex-direction: column; justify-content: center; gap: 4px; color: #fff; transition: transform .2s var(--ease), box-shadow .2s; }
.edit-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.edit-card .ec-emoji { font-size: 22px; margin-bottom: 4px; }
.edit-card .ec-t { font-size: 18px; font-weight: 800; }
.edit-card .ec-s { font-size: 12.5px; opacity: .85; }
.edit-card.e1 { background: var(--ink); }
.edit-card.e2 { background: #1C1C1A; }
.edit-card.e3 { background: #45443F; }
.edit-card.e4 { background: #6E6C66; }

/* occasion tiles (storefront "Collections grid" section) — 4:5 portrait, max 4 */
.occ-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.occ-card { position: relative; overflow: hidden; border-radius: 12px; aspect-ratio: 4 / 5; display: flex; align-items: flex-end; color: #fff; background: var(--occ-bg, var(--occ-tone, var(--pink))); transition: transform .2s var(--ease), box-shadow .2s; }
.occ-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.occ-card .occ-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.occ-card .occ-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 18%, rgba(0,0,0,.45) 58%, rgba(0,0,0,.92) 100%); opacity: calc(.35 + var(--occ-veil, .55) * .65); }
.occ-card .occ-body { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px 18px; width: 100%; text-shadow: 0 1px 10px rgba(0,0,0,.35); }
.occ-card .occ-ico { margin-bottom: 4px; display: block; }
.occ-card .occ-ico .ico { vertical-align: -1px; }
.occ-card .occ-t { font-size: 18px; font-weight: 800; line-height: 1.25; }
.occ-card .occ-s { font-size: 12.5px; opacity: .9; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.occ-card.e1 { --occ-tone: var(--ink); }
.occ-card.e2 { --occ-tone: #1C1C1A; }
.occ-card.e3 { --occ-tone: #45443F; }
.occ-card.e4 { --occ-tone: #6E6C66; }
.occ-dots { display: none; }

/* Mobile: one-card-at-a-time snap slider (autoplay driven by main.js) */
@media (max-width: 700px) {
  .occ-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .occ-grid.occ-slider { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
  .occ-grid.occ-slider::-webkit-scrollbar { display: none; }
  .occ-grid.occ-slider .occ-card { flex: 0 0 76%; scroll-snap-align: center; }
  .occ-grid.occ-slider .occ-card:hover { transform: none; }
  .occ-slider + .occ-dots { display: flex; justify-content: center; gap: 7px; margin-top: 12px; }
  .occ-dots button { width: 7px; height: 7px; padding: 0; border: none; border-radius: 50%; background: var(--line-dark); cursor: pointer; transition: width .2s, background .2s; }
  .occ-dots button.on { width: 18px; border-radius: 4px; background: var(--pink); }
}

/* guide teaser cards */
.guide-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 20px; transition: box-shadow .2s, transform .2s var(--ease); }
.guide-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.guide-card h3 { font-size: 15.5px; margin-bottom: 6px; color: var(--ink); }
.guide-card p { font-size: 13px; color: var(--muted); }
.guide-card .gc-k { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--pink); font-weight: 700; margin-bottom: 6px; }

/* trust strip */
.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 800px) { .trust-strip { grid-template-columns: 1fr; } }
.trust-item { text-align: center; padding: 8px; }
.trust-item .ti-ico { font-size: 26px; margin-bottom: 8px; }
.trust-item h3 { font-size: 16px; color: var(--ink); margin-bottom: 4px; }
.trust-item p { font-size: 13px; color: var(--muted); }

/* breadcrumbs & breadcrumbs bar */
.crumbs-bar {
  background: var(--ink);
  padding: 12px 0;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.crumbs-bar .crumbs { margin-bottom: 0; }
.crumbs { font-size: 12.5px; color: rgba(255, 255, 255, 0.75); margin-bottom: 14px; }
.crumbs a { color: rgba(255, 255, 255, 0.85); font-weight: 500; text-decoration: none; transition: color .15s; }
.crumbs a:hover { color: #ffffff; text-decoration: underline; }
.crumbs span { color: #ffffff; font-weight: 600; }
.crumbs .sep { color: rgba(255, 255, 255, 0.45); margin: 0 6px; }

.page-head .crumbs { margin-bottom: 12px; color: rgba(255, 255, 255, 0.75); }
.page-head .crumbs a { color: rgba(255, 255, 255, 0.88); }
.page-head .crumbs a:hover { color: #ffffff; }
.page-head .crumbs span { color: #ffffff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .hero-track { transition: none; }
}

/* Minimalmonk: tabular prices */
.price, .stat .v, .summary-box .row span:last-child { font-variant-numeric: tabular-nums; }

/* ============================================================
   Mobile & tablet — app-like experience
   ============================================================ */
html { -webkit-tap-highlight-color: transparent; }
body { overscroll-behavior-y: none; }
.buy-row { display: flex; gap: 12px; align-items: center; }

/* Touch devices: no hover-dependent UI */
@media (hover: none) {
  .hero-arrow { display: none; }
  .btn.sm { padding: 10px 16px; }
  .wish-heart button, .wish-heart a { width: 38px; height: 38px; font-size: 17px; }
}

/* --- Mobile + small tablet: app chrome --- */
@media (max-width: 860px) {
  /* The storefront header is the pill at every width, so the old multi-row header
     rules are gone with it. What is left here is page chrome. */
  .container { padding: 0 14px; }

  /* hero */
  .hero-arrow { display: none; }
  .hero-slide, .hero-slide .hs-img { min-height: 230px; }
  .hero-slide .hs-text { padding: 26px 20px !important; }
  .hero-slide p { font-size: 13.5px; margin-bottom: 16px; }

  /* rhythm & type */
  section.block { padding: 26px 0; }
  .section-head { margin-bottom: 14px; }
  .section-head h2 { font-size: 19px; }
  .page-head { padding: 22px 0; }
  .page-head h1 { font-size: 22px; }
  .page-head p { font-size: 13px; padding: 0 16px; }
  .grid { gap: 12px; }
  .crumbs { margin-bottom: 12px; }

  /* category tiles: horizontal swipe rail */
  .tile-strip { gap: 12px; justify-content: flex-start; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
  .tile { flex: 0 0 108px; scroll-snap-align: start; }
  .tile .tile-label { font-size: 12.5px; margin-top: 7px; }

  /* product cards */
  .product-card .body { padding: 10px 11px 12px; }
  .product-card .brand, .product-card .pname { font-size: 13px; }
  .product-card .pcat { font-size: 9px; }
  .product-card .price { font-size: 13.5px; }

  /* forms: 16px inputs prevent iOS focus zoom */
  input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], select, textarea { font-size: 16px; }
  .btn { padding: 13px 22px; }
  .card { padding: 18px 16px; }

  /* collapse inline multi-column layouts (cart, checkout, account, contact…) */
  .grid[style*="grid-template-columns"], .steps[style*="grid-template-columns"] { grid-template-columns: 1fr !important; gap: 20px !important; }
  .grid.cols-2[style] { gap: 24px !important; }

  /* tables scroll instead of overflowing the page */
  table.list { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* cart: rows become cards */
  .cart-table tr:first-child { display: none; }
  table.cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr { padding: 14px 14px 12px; border-top: 1px solid var(--line); position: relative; }
  .cart-table tr:first-of-type { border-top: none; }
  .cart-table td { padding: 4px 0 !important; border: none !important; }
  .cart-table td[data-label] { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
  .cart-table td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; }
  .cart-table td.cart-remove { position: absolute; top: 10px; right: 10px; width: auto; padding: 0 !important; }
  [dir="rtl"] .cart-table td.cart-remove { right: auto; left: 10px; }
  .cart-table td:first-child { padding-right: 44px !important; }

  /* product page */
  .gallery-thumbs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .gallery-thumbs img { flex-shrink: 0; }
  .buy-row { flex-wrap: wrap; }
  .buy-row .btn { flex: 1 1 auto; padding: 14px 18px; }

  /* filter bar */
  .filter-bar { padding: 14px; gap: 10px; }
  .filter-bar .btn { grid-column: 1 / -1; padding: 12px; }

  /* toasts sit above the bottom nav */
  .flash { top: auto; bottom: calc(80px + env(safe-area-inset-bottom)); left: 12px; right: 12px; max-width: none; text-align: center; }

  footer.site { margin-top: 40px; }

}

/* --- Small phones --- */
@media (max-width: 480px) {
  .hero-slide h2 { font-size: 22px; }
  .hero-slide h2 .mega { font-size: 34px; }
  .offer-card { padding: 20px 18px; min-height: 110px; }
  .edit-grid { gap: 12px; }
  .edit-card { padding: 18px 16px; min-height: 104px; }
  .main-pane { padding: 18px 12px; }
}

/* ---------- Flat icon system (replaces emoji glyphs) ---------- */
.ico { flex-shrink: 0; vertical-align: -4px; }
.i { vertical-align: -3px; margin-right: 6px; }
.i-r { vertical-align: -3px; margin-left: 6px; }
.trust-item .ti-ico { color: var(--pink); display: flex; justify-content: center; }
.step .num .ico, .edit-card .ec-emoji .ico { vertical-align: -1px; }
.empty .big { display: flex; align-items: center; justify-content: center; }
.side a.item .ico, .icon-link .ico { vertical-align: -3px; margin-right: 8px; }
[dir="rtl"] .side a.item .ico, [dir="rtl"] .icon-link .ico { margin-right: 0; margin-left: 8px; }
.wish-heart button, .wish-heart button svg,
.wish-heart a, .wish-heart a svg { display: flex; align-items: center; justify-content: center; }
.badge .ico { margin-right: 3px; }
.notice .ico, .hint .ico { vertical-align: -3px; margin-right: 5px; }
.step .num { color: var(--pink); }
.filter-toggle summary::after { content: none; }
.filter-toggle summary .toggle-chev { float: right; color: var(--pink); transition: transform .2s; }
[dir="rtl"] .filter-toggle summary .toggle-chev { float: left; }
.filter-toggle[open] summary .toggle-chev { transform: rotate(180deg); }

/* --- Mobile Drawer --- */
.mobile-drawer-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.5); z-index: 100; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.mobile-drawer-overlay.drawer-open { opacity: 1; visibility: visible; }
.mobile-drawer { position: fixed; top: 0; left: -300px; width: 300px; max-width: 85vw; height: 100%; height: 100dvh; background: var(--bg); z-index: 101; transition: transform .3s ease; display: flex; flex-direction: column; box-shadow: 2px 0 10px rgba(0,0,0,0.1); }
.mobile-drawer.drawer-open { transform: translateX(300px); }
[dir="rtl"] .mobile-drawer { left: auto; right: -300px; box-shadow: -2px 0 10px rgba(0,0,0,0.1); }
[dir="rtl"] .mobile-drawer.drawer-open { transform: translateX(-300px); }

.drawer-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px 18px; border-bottom: 1px solid var(--line); }
.drawer-header img { height: 15px; width: auto; }
.drawer-title { font-weight: 700; font-size: 16px; color: var(--ink); }
.drawer-close { background: none; border: none; font-size: 0; padding: 6px; margin: -6px; cursor: pointer; color: var(--ink); }

.drawer-content { flex: 1; overflow-y: auto; padding: 24px 22px 80px; -webkit-overflow-scrolling: touch; }
/* The pill header hides every link behind this drawer, so it carries the whole
   navigation: primary links first, then the support and account groups. */
.drawer-nav { display: flex; flex-direction: column; }
.drawer-nav a { font-size: 21px; font-weight: 300; letter-spacing: -0.01em; color: var(--ink); padding: 9px 0; transition: opacity .15s; }
.drawer-nav.sub a { padding: 7px 0; }
.drawer-nav a:hover { opacity: .55; }
.drawer-content hr { border: none; border-top: 1px solid var(--line); margin: 20px 0; }

.drawer-links { display: flex; flex-direction: column; gap: 15px; }
.drawer-links a { font-size: 14.5px; font-weight: 500; color: var(--ink); text-decoration: none; }
.drawer-links hr { border: none; border-top: 1px solid var(--line); margin: 5px 0; }

/* ============================================================
   Seller dashboard — mobile app chrome
   Tab bar + "More" sheet markup lives in partials/seller-nav.ejs;
   table.list gets .stack + per-cell data-labels from main.js.
   ============================================================ */
.seller-tabbar, .seller-sheet, .seller-sheet-overlay, .m-list { display: none; }

@media (max-width: 860px) {
  body:has(.seller-tabbar) { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .panel:has(.seller-tabbar) .side { display: none; }
  .panel:has(.seller-tabbar) .main-pane { padding: 14px 12px 20px; }
  .main-pane h1 { font-size: 19px; margin-bottom: 12px; }
  .main-pane h2 { font-size: 16px; }
  .main-pane .notice { padding: 11px 14px; font-size: 13px; margin-bottom: 14px; border-radius: 10px; }
  .main-pane p.muted { font-size: 12.5px; }
  .main-pane .flex-between { gap: 8px; }
  .main-pane .flex-between .btn { padding: 9px 13px; font-size: 12px; }
  .main-pane .mb { margin-bottom: 12px; }

  /* --- bottom tab bar --- */
  .seller-tabbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 120; justify-content: space-around; background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 7px 4px calc(7px + env(safe-area-inset-bottom)); box-shadow: none; }
  .seller-tabbar a, .seller-tabbar button { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; font-weight: 600; color: var(--ink-soft); background: none; border: none; font-family: inherit; cursor: pointer; padding: 2px 1px; white-space: nowrap; text-align: center; }
  .seller-tabbar svg { width: 22px; height: 22px; stroke: currentColor; fill: none; flex-shrink: 0; }
  .seller-tabbar .on { color: var(--pink); }

  /* --- "More" bottom sheet --- */
  .seller-sheet-overlay { display: block; position: fixed; inset: 0; background: rgba(54, 16, 8, .45); z-index: 130; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
  .seller-sheet-overlay.open { opacity: 1; visibility: visible; }
  .seller-sheet { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 131; background: var(--bg); border-radius: 18px 18px 0 0; padding: 8px 16px calc(18px + env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform .28s var(--ease); box-shadow: none; max-height: 78dvh; overflow-y: auto; }
  .seller-sheet.open { transform: none; }
  .seller-sheet .sheet-grab { width: 42px; height: 4px; border-radius: 999px; background: var(--line-dark); margin: 6px auto 14px; }
  .sheet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
  .sheet-grid a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 15px 6px 13px; border-radius: 12px; background: var(--bg-soft); font-size: 11.5px; font-weight: 600; color: var(--ink-soft); text-align: center; }
  .sheet-grid a svg { width: 20px; height: 20px; }
  .sheet-grid a.on { background: var(--pink-soft); color: var(--pink); font-weight: 700; }
  .sheet-foot { display: flex; justify-content: space-between; margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
  .sheet-foot a { font-size: 13px; font-weight: 700; color: var(--ink-soft); padding: 6px 4px; }

  /* --- stat cards: swipeable rail --- */
  .main-pane .stat-row { display: flex; overflow-x: auto; gap: 8px; margin: 0 -12px 16px; padding: 2px 12px 6px; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .main-pane .stat-row::-webkit-scrollbar { display: none; }
  .main-pane .stat { flex: 0 0 128px; scroll-snap-align: start; padding: 11px 13px; border-radius: 11px; }
  .main-pane .stat .stat-icon { width: 28px; height: 28px; border-radius: 8px; margin-bottom: 8px; }
  .main-pane .stat .stat-icon svg { width: 15px; height: 15px; }
  .main-pane .stat .stat-content .v, .main-pane .stat .v { font-size: 17px; }
  .main-pane .stat .stat-content .l, .main-pane .stat .l { font-size: 9.5px; margin-top: 3px; letter-spacing: 1px; }

  /* --- charts: decluttered for narrow screens --- */
  .main-pane .chart { gap: 5px; height: 128px; padding: 14px 10px 24px; background-image: none; }
  .main-pane .chart-wrap { padding-bottom: 6px; }
  /* section headings carry inline desktop margins — tighten them on mobile */
  .main-pane .flex-between[style*="margin"] { margin: 12px 0 8px !important; }
  .main-pane .chart .bar .bar-val { display: none; }
  .main-pane .chart .bar:nth-child(even) span { display: none; }

  /* AI describe button: icon only (label text is JS-swapped, so hide via font-size) */
  #aiBtn { font-size: 0; padding: 10px 12px; }
  #aiBtn .i, #aiBtn svg { margin: 0; width: 16px; height: 16px; }

  /* --- app-style list views (markup in seller views; replaces the table) --- */
  .m-swap { display: none !important; }
  .m-list { display: block; }
  .m-item { display: flex; align-items: center; gap: 11px; background: var(--bg); border-radius: 11px; box-shadow: 0 3px 10px rgba(0, 0, 0, .04), 0 1px 3px rgba(0, 0, 0, .02); padding: 10px 12px; margin-bottom: 8px; position: relative; }
  .m-item .mi-thumb { width: 46px; height: 58px; border-radius: 8px; object-fit: cover; background: var(--bg-soft); flex-shrink: 0; }
  .m-item .mi-thumb.ph { display: flex; align-items: center; justify-content: center; color: var(--muted); }
  .m-item .mi-body { flex: 1; min-width: 0; }
  .m-item .mi-link { display: block; font-weight: 700; font-size: 13.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .m-item .mi-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
  .m-item .mi-sub { font-size: 12px; color: var(--ink-soft); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .m-item .mi-meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
  .m-item .mi-meta .score-pill { font-size: 10px; padding: 1px 8px; }
  .m-item .mi-side { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; flex-shrink: 0; position: relative; z-index: 2; }
  .m-item .mi-side .badge { font-size: 9.5px; padding: 2px 7px; }
  .m-item .mi-chev { color: var(--line-dark); display: flex; }
  .m-item .mi-del { width: 32px; height: 30px; border-radius: 8px; border: none; background: var(--bg-soft); color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
  .m-item .mi-del:active { background: var(--pink-soft); color: var(--pink); }

  /* --- data tables become stacked cards (labels added by main.js) --- */
  table.list.stack { display: block; overflow: visible; background: transparent; box-shadow: none; border-radius: 0; }
  table.list.stack tbody, table.list.stack tr, table.list.stack td { display: block; width: 100%; }
  table.list.stack tr.stack-head, table.list.stack thead { display: none; }
  table.list.stack tr { background: var(--bg); border-radius: 11px; box-shadow: 0 3px 10px rgba(0, 0, 0, .04), 0 1px 3px rgba(0, 0, 0, .02); margin-bottom: 8px; padding: 9px 13px; }
  table.list.stack td { border: none; padding: 2.5px 0; font-size: 13px; }
  table.list.stack tr:hover td { background: transparent; }
  table.list.stack td[data-label] { display: flex; justify-content: space-between; align-items: center; column-gap: 12px; row-gap: 1px; flex-wrap: wrap; text-align: right; min-height: 24px; }
  [dir="rtl"] table.list.stack td[data-label] { text-align: left; }
  table.list.stack td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; text-align: left; flex-shrink: 0; }
  [dir="rtl"] table.list.stack td[data-label]::before { text-align: right; }
  table.list.stack td:not([data-label]) { display: flex; align-items: center; gap: 8px; }
  table.list.stack td[data-label] > .muted { flex: 1 0 100%; text-align: inherit; font-size: 12px; }
  table.list.stack .thumb { width: 40px; height: 50px; border-radius: 7px; }
  table.list.stack .badge { padding: 2px 8px; font-size: 10px; }
  table.list.stack td form { justify-content: flex-end; }
  table.list.stack .row-actions { margin-left: auto; }
  table.list.stack td select { width: auto; flex: 1; min-width: 0; max-width: 220px; }
}

/* ---------- Storefront editor: per-section style overrides (.ss classes are
   emitted by sectionStyleAttr() from validated style_* section settings) ---------- */
.ss-bg { background: var(--ss-bg); }
.ss-bg .block, .ss-bg .block.alt, .ss-bg .page-head { background: transparent; }
.ss-hc h1, .ss-hc h2, .ss-hc h3, .ss-hc .section-head h2 { color: var(--ss-hc); }
.ss-tc p, .ss-tc li, .ss-tc .muted, .ss-tc .eyebrow, .ss-tc .page-head p { color: var(--ss-tc); }
.ss-align .container, .ss-align .page-head { text-align: var(--ss-align); }
.ss-hs .section-head h2 { font-size: calc(24px * var(--ss-hs)); }
.ss-hs .page-head h1 { font-size: calc(28px * var(--ss-hs)); }
.ss-hs .prose h2, .ss-hs .card h2 { font-size: calc(19px * var(--ss-hs)); }
.ss-hw h1, .ss-hw h2, .ss-hw h3 { font-weight: var(--ss-hw); }
.ss-font-body h1, .ss-font-body h2, .ss-font-body h3 { font-family: var(--font); }
.ss-upper h1, .ss-upper h2 { text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Storefront editor: category tile sizes + custom offer cards ---------- */
.tile-strip.tiles-small .tile { flex-basis: 110px; max-width: 150px; }
.tile-strip.tiles-large .tile { flex-basis: 190px; max-width: 260px; }
.offer-card.o-custom { background: var(--night); }

/* ===== Slide-out cart drawer ===== */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 200; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; top: 0; right: -460px; width: 460px; max-width: 92vw; height: 100dvh; background: #fff; z-index: 201; display: flex; flex-direction: column; box-shadow: -4px 0 24px rgba(0,0,0,.18); transition: transform .32s ease; }
.cart-drawer.open { transform: translateX(-460px); }
.cart-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.cart-drawer-title { font-size: 22px; font-weight: 800; color: var(--ink); }
.cart-drawer-title span { color: var(--muted); font-weight: 700; }
.cart-drawer-close { background: none; border: none; cursor: pointer; color: var(--ink-soft); line-height: 0; padding: 4px; border-radius: 8px; }
.cart-drawer-close:hover { background: var(--bg-soft); }

.cart-ship { padding: 16px 22px; background: var(--bg-soft); }
.cart-ship-msg { font-size: 14px; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.cart-ship-msg b { color: var(--pink); font-weight: 800; }
.cart-ship-track { height: 8px; background: #fff; border-radius: 6px; overflow: hidden; margin-top: 10px; border: 1px solid var(--line); }
.cart-ship-fill { height: 100%; width: 0; border-radius: 0; background: var(--ink); transition: width .45s ease; }

.cart-drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.cart-line { display: grid; grid-template-columns: 92px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-line-img { width: 92px; height: 116px; object-fit: cover; border-radius: 8px; background: var(--bg-soft); }
.cart-line-name { font-weight: 700; color: var(--ink); font-size: 15px; line-height: 1.3; text-decoration: none; display: block; }
.cart-line-name:hover { color: var(--pink); }
.cart-line-variant { font-size: 13px; color: var(--muted); margin: 3px 0; }
.cart-line-price { font-weight: 700; color: var(--ink); margin: 6px 0 10px; }
.cart-line-controls { display: flex; align-items: center; gap: 14px; }
.cart-qty { display: inline-flex; align-items: center; border: 1px solid var(--line-dark); border-radius: 8px; overflow: hidden; }
.cart-qty button { width: 34px; height: 36px; border: none; background: #fff; cursor: pointer; font-size: 17px; color: var(--ink); line-height: 1; }
.cart-qty button:hover { background: var(--bg-soft); }
.cart-qty button:disabled { opacity: .4; cursor: not-allowed; }
.cart-qty span { min-width: 36px; text-align: center; font-weight: 700; font-size: 14px; }
.cart-line-remove { background: none; border: none; cursor: pointer; color: var(--muted); padding: 6px; border-radius: 6px; line-height: 0; }
.cart-line-remove:hover { color: var(--pink); background: var(--pink-soft); }

.cart-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.cart-empty .btn { margin-top: 16px; }

.cart-popular-head { font-size: 18px; font-weight: 800; color: var(--ink); margin: 26px 0 4px; }
.cart-pop { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.cart-pop img { width: 72px; height: 90px; object-fit: cover; border-radius: 8px; background: var(--bg-soft); }
.cart-pop-name { font-weight: 700; color: var(--ink); font-size: 14.5px; text-decoration: none; }
.cart-pop-name:hover { color: var(--pink); }
.cart-pop-price { color: var(--ink-soft); font-size: 14px; margin: 4px 0 6px; }
.cart-pop-add { background: none; border: none; color: var(--pink); font-weight: 700; cursor: pointer; text-decoration: underline; padding: 0; font-size: 13.5px; }

.cart-drawer-foot { border-top: 1px solid var(--line); padding: 16px 22px 20px; background: #fff; }
.cart-options { display: flex; gap: 10px; margin-bottom: 12px; }
.cart-opt { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-nav); padding: 10px; font-size: 13px; font-weight: 700; color: var(--ink-soft); cursor: pointer; }
.cart-opt:hover, .cart-opt.on { color: var(--pink); border-color: var(--pink); }
.cart-opt-panel { margin-bottom: 12px; }
.cart-opt-panel textarea, .cart-opt-panel input { width: 100%; border: 1px solid var(--line-dark); border-radius: 8px; padding: 9px 12px; font-family: inherit; font-size: 14px; margin-bottom: 8px; }
.cart-coupon-row { display: flex; gap: 8px; }
.cart-coupon-row input { flex: 1; margin-bottom: 0; text-transform: uppercase; }
.cart-coupon-msg { font-size: 12.5px; margin-top: 6px; }
.cart-coupon-msg.ok { color: var(--green); }
.cart-coupon-msg.err { color: var(--pink); }
.cart-subtotal { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; color: var(--ink); font-size: 20px; margin-top: 4px; }
.cart-tax-note { font-size: 12.5px; color: var(--muted); margin: 4px 0 14px; }
.cart-checkout-btn { display: block; text-align: center; }
.cart-viewcart-btn { display: block; text-align: center; margin-top: 10px; }

@media (max-width: 520px) {
  .cart-drawer { right: -100vw; width: 100vw; max-width: 100vw; }
  .cart-drawer.open { transform: translateX(-100vw); }
}

/* ============================================================
   MINIMALMONK NORMALISATION LAYER
   The brand is built on soft rectangles: a pill header, rounded
   cards, rounded plates. Rather than chase every legacy rule
   above, this layer restates the geometry once and re-styles the
   handful of components that still carried the old theme's look.
   ============================================================ */

/* --- Geometry: one rounding scale, applied where surfaces are --- */
.card, .stat, .chart, .notice, .product-card, .brand-card, .cat-card,
.offer-card, .edit-card, .occ-card, .guide-card, .step, .summary-box,
.assurance, .gallery-main, .filter-toolbar, .seller-sheet, .sf-promo,
.hero-viewport, .hero-slide, .spot-card .spot-img, .tile .tile-img,
table.list, table.list.stack tr, .accordion details, .m-item {
  border-radius: var(--r-md);
}
/* Buttons, chips and badges take the header's corner so the whole site reads
   with one rounding. The capsule survives only where the shape is the point:
   a progress bar, a round counter, a circular arrow. */
.btn, .sf-collections a, .set-tab, .panel-chip, .sf-badge, .score-pill,
.side a.item, .sheet-grid a, .badge { border-radius: var(--r-nav); }
.cart-ship-track, .cart-ship-fill, .hero-arrow,
.cart-count, .bn-count { border-radius: var(--r-pill); }
input, select, textarea, .thumb, .gallery-thumbs img, .img-field-preview img,
.drawer-cat-card .dcc-img, .cart-line-img, .m-item .mi-thumb, .m-item .mi-del,
.stat .stat-icon, .step .num { border-radius: var(--r-sm); }
/* Tables clip their own corners so the rounding reads on the header row. */
table.list { overflow: hidden; }

/* --- Elevation: hairlines carry structure; only lifted surfaces get a shadow --- */
.card, .stat, .chart, .notice, .brand-card, .cat-card, .guide-card,
.step, .accordion details, .summary-box, .assurance, .m-item,
table.list, table.list.stack tr, .drawer-cat-card .dcc-img,
.seller-tabbar, .filter-toolbar, .sf-promo {
  box-shadow: none;
}
.product-card:hover { box-shadow: var(--shadow-sm); }
.stat, .chart { border: 1px solid var(--line) !important; }
.stat:hover { transform: none !important; border-color: var(--ink) !important; }
.guide-card:hover, .brand-card:hover, .cat-card:hover, .m-item:hover { transform: none !important; }

/* --- Panel / admin chrome --- */
.panel-chip { background: var(--ink); color: #fff; font-family: var(--font-mono); font-weight: 400; }
.side a.item.on { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 500; }
.side .brand-mini .rl { color: var(--muted); font-family: var(--font-mono); font-weight: 400; }
.set-tab { border-radius: 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; font-weight: 400; }
.set-tab.on { color: var(--ink); border-bottom-color: var(--ink); background: var(--bg-soft); }
.stat .stat-icon { background: var(--bg-soft); color: var(--ink); border: 1px solid var(--line); }
.stat:hover .stat-icon { background: var(--ink); color: #fff; border-color: var(--ink); }

/* --- FAQ accordion: a stack of rules, opened with a rotating cross --- */
.accordion details { border-color: var(--line); }
.accordion details[open] { border-color: var(--ink); }
.accordion summary { font-family: var(--font); font-size: 15px; font-weight: 700;
  letter-spacing: 0; text-transform: none; }
.accordion summary::after { color: var(--ink); font-weight: 300; transition: transform .2s var(--ease); }
.accordion details[open] summary::after { transform: rotate(45deg); }

/* --- How-it-works steps: numbered rules, not circles --- */
.step .num { width: auto; height: auto; background: none; color: var(--ink);
  font-family: var(--font-display); font-size: 34px; font-weight: 500; line-height: 1;
  border-bottom: 1px solid var(--ink); display: inline-block; padding: 0 0 8px; margin: 0 auto 16px; }
.trust-item .ti-ico { color: var(--ink); }

/* --- Product gallery --- */
.gallery-thumbs img { border: 1px solid var(--line); }
.gallery-thumbs img.on, .gallery-thumbs img:hover { border-color: var(--ink); }

/* --- Mobile app chrome: solid paper, hairline top rule --- */
@media (max-width: 1120px) {
  .seller-tabbar { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none;
    border-top: 1px solid var(--ink); }
  .seller-tabbar a { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .6px; text-transform: uppercase; }
  .seller-tabbar .on { color: var(--ink); }
  .sheet-grid a.on { background: var(--ink); color: #fff; font-weight: 500; }
  .m-item .mi-del:active { background: var(--ink); color: #fff; }
}

/* --- Drawers --- */
.drawer-title, .cart-drawer-title { font-family: var(--font); font-weight: 700; letter-spacing: 0; text-transform: none; font-size: 16px; }
.drawer-cat-card span { font-family: var(--font); font-size: 12px; letter-spacing: 0; text-transform: none; }
.cart-line-name { font-family: var(--font); font-weight: 700; letter-spacing: 0; text-transform: none; }
.cart-ship-msg b { color: var(--ink); font-weight: 600; }
.cart-tax-note { font-family: var(--font-mono); font-size: 10px; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.cart-subtotal { font-family: var(--font-display); font-weight: 500; letter-spacing: .6px; text-transform: uppercase; }

/* --- Editorial rhythm: the brand's signature is whitespace --- */
.guide-card .gc-k { color: var(--muted); font-family: var(--font-mono); font-weight: 400; letter-spacing: 1.4px; }
.empty a { color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--ink); }
.hint a, .summary-box .hint a, .accordion .ans a { color: var(--ink); border-bottom: 1px solid var(--line-dark); }
.hint { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .4px; color: var(--muted); }
.filter-toolbar .clear-link:hover, .filter-toggle summary::after,
.filter-toggle summary .toggle-chev { color: var(--ink); }
.checkline input { accent-color: var(--ink); }
.sf-ig { color: var(--ink); }
.sf-badge { background: var(--ink); color: #fff; font-family: var(--font-mono); font-weight: 400; letter-spacing: 1px; text-transform: uppercase; }
.sf-cat:hover .sf-cat-ring { transform: none; box-shadow: none; border-color: var(--ink); }
.sf-cat.is-sel .sf-cat-ring { border: 1px solid var(--ink); box-shadow: none; color: var(--ink); }
.sf-collections a { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; font-weight: 400; }
.sf-collections a:hover { border-color: var(--ink); background: var(--ink); color: #fff; }


/* --- Hero slide tones ---------------------------------------------------
   Slides are authored with their own ground. `.on-light` is set by the
   template when that ground is a light hex, so the same markup reads on
   both ink and natural paper. --------------------------------------------- */
.hero-slide .hs-btn { background: #fff; color: var(--ink); border-color: #fff; }
.hero-slide .hs-btn:hover { background: transparent; color: #fff; border-color: #fff; }
.hero-slide.on-light { color: var(--ink); }
.hero-slide.on-light .hs-kicker { opacity: .62; }
.hero-slide.on-light p { opacity: .78; }
.hero-slide.on-light .hs-btn { background: var(--ink); color: #fff; border-color: var(--ink); }
.hero-slide.on-light .hs-btn:hover { background: transparent; color: var(--ink); border-color: var(--ink); }
/* The photography is the other half of the slide — give it a matching bed so a
   transparent PNG or a letterboxed shot never floats on the wrong ground. */
.hero-slide .hs-img { background: rgba(255,255,255,.06); }
.hero-slide.on-light .hs-img { background: rgba(10,10,10,.04); }

/* --- Hero proportions ---------------------------------------------------
   The condensed display face is far taller per line than the old Poppins
   setting, so the original 330/420px slide clipped a three-line heading into
   the arrows. Give the slide real height, keep the text column clear of the
   arrow gutters, and cap the heading so a long line wraps instead of
   colliding. ------------------------------------------------------------- */
.hero-slide, .hero-slide .hs-img { min-height: clamp(440px, 56vh, 620px); }
.hero-slide .hs-text {
  padding: clamp(38px, 4vw, 58px) clamp(30px, 4vw, 64px) clamp(38px, 4vw, 58px) clamp(56px, 6vw, 104px);
  max-width: 640px;
}
[dir="rtl"] .hero-slide .hs-text {
  padding-left: clamp(30px, 4vw, 64px);
  padding-right: clamp(56px, 6vw, 104px);
}
/* Never break inside a word — the condensed face makes a hyphen-free wrap the
   only setting that reads. The column is the constraint, not a ch cap. */
.hero-slide h2 { overflow-wrap: normal; word-break: normal; hyphens: none;
  font-size: clamp(24px, 2.3vw, 33px); margin-bottom: 18px; }
.hero-slide h2 .mega { font-size: clamp(38px, 4.2vw, 58px); letter-spacing: -0.01em; }
.hero-slide p { margin-bottom: 30px; }
.hero-arrow.prev { left: 14px; } .hero-arrow.next { right: 14px; }
@media (max-width: 860px) {
  .hero-slide, .hero-slide .hs-img { min-height: 0; }
  .hero-slide { min-height: 540px; }
  .hero-slide .hs-img { height: 280px; min-height: 280px; }
  .hero-slide .hs-text { padding: 34px 26px 40px; max-width: none; }
  .hero-slide h2 { max-width: none; }
}

/* --- Product card hierarchy --------------------------------------------
   The card leads with a small monospaced category label, then the product
   name in the display face — the name is what the shopper is scanning for,
   and these names are long enough to need two lines. -------------------- */
.product-card .pcat { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--muted); }
.product-card .pname { font-family: var(--font); font-size: 14.5px; font-weight: 400;
  letter-spacing: 0; text-transform: uppercase; color: var(--ink); line-height: 1.3;
  margin-top: 5px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.badge.soldout { background: var(--bg); color: var(--ink); border: 1px solid var(--ink);
  position: absolute; bottom: 10px; left: 10px; right: 10px; text-align: center; padding: 9px 0; z-index: 2; }
[dir="rtl"] .badge.soldout { left: 10px; right: 10px; }

/* ============================================================
   REFERENCE LANDING PAGE
   The four sections of the Landing Pages brand deck, in order:
   statement · ruled hero band · black collections panel · sign-up.
   ============================================================ */

/* --- 1. Brand statement -------------------------------------------------- */
/* The padding takes up what the slimmer header and the tighter lines gave back,
   so the hero band stays where it was. */
.mm-statement { padding: clamp(53px, 8vw, 108px) 0 clamp(35px, 6.8vw, 92px); }
/* Both sentences in ink, set tight, one to a line; the phone runs them on. */
.mm-statement p { margin: 0; max-width: none; font-size: clamp(14px, 1.3vw, 18.5px); line-height: 1.25; color: var(--ink); }
.mm-statement .l1,
.mm-statement .l2 { display: block; }
.mm-statement.caps .l1,
.mm-statement.caps .l2 { text-transform: uppercase; letter-spacing: -0.005em; }

/* The phone reference drops the caps and runs the two sentences on as one
   short paragraph. The measure is set so it breaks into three lines; the
   padding keeps the hero band where it was before the header slimmed. */
@media (max-width: 720px) {
  .mm-statement { padding: 53px 0 35px; }
  .mm-statement p { max-width: 24.5em; font-size: 14px; line-height: 1.22; }
  .mm-statement .l1,
  .mm-statement .l2 { display: inline; }
  .mm-statement.caps .l1,
  .mm-statement.caps .l2 { text-transform: none; }
}


/* --- 2. Hero band -------------------------------------------------------- */
/* Ruled top and bottom; the illustration is cropped by those rules on purpose. */
.mm-hero-band {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  height: clamp(300px, 27vw, 430px);
  overflow: hidden;
}
.mm-hero-inner {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  pointer-events: none;
}
/* Regular weight in a darkened grey; the emphasis is carried by ink alone. */
.mm-hero-head { margin: 0; font-weight: 400; line-height: 1.05; letter-spacing: -0.005em; }
.mm-hero-head .l1,
.mm-hero-head .l2 { display: block; font-size: clamp(18px, 1.95vw, 28px); text-transform: uppercase; color: rgba(10, 10, 10, .7); }
.mm-hero-head .l2 strong { color: var(--ink); font-weight: 400; }
.mm-hero-code {
  font-size: clamp(15px, 1.5vw, 21px); color: var(--ink); font-weight: 400;
  align-self: center; flex: 0 0 auto;
}
/* The art is sized off the band's height and hangs past both rules — the crop is
   the composition. `left` puts the hiker at ~63% of the band, where the reference
   sits it, once the figure's offset from the artwork's own centre is accounted for. */
.mm-hero-art {
  position: absolute; left: 59%; top: -22%; z-index: 1;
  transform: translateX(-50%);
  height: 126%;
  display: block; pointer-events: none;
}
.mm-hero-art img { height: 100%; width: auto; display: block; }
/* The extra 19px below is what the plate gave up when it went from 63px to 44,
   so the panel below stays where it was. */
.mm-hero-cta { padding-top: clamp(22px, 3vw, 44px); padding-bottom: calc(clamp(30px, 5vw, 70px) + 19px); }
.mm-hero-cta .btn { padding: 12px 26px; font-size: 14px; letter-spacing: 1.2px; }
/* The shop CTA is a plate of a fixed size rather than a button sized by its
   label, so the one on the landing page and the one on an empty bag are the
   same object. inline-flex because the padding no longer sets the box, and
   max-width so the plate always fits a phone's gutters. */
.btn.shop-cta {
  width: 140px;
  height: 44px;
  border-radius: 8px;
  max-width: 100%;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 720px) {
  /* The phone reference runs a near-square band and swaps in the taller artwork,
     so the art is sized off the band's width here rather than its height. */
  .mm-hero-band { height: clamp(300px, 96vw, 400px); }
  .mm-hero-head { line-height: 1; margin-top: 3px; }
  .mm-hero-head .l1, .mm-hero-head .l2 { font-size: 14.5px; }
  .mm-hero-art { left: -4%; top: -2%; width: 108%; height: auto; transform: none; }
  .mm-hero-art img { width: 100%; height: auto; }
  .mm-hero-inner { align-items: flex-start; padding-top: 26%; }
  .mm-hero-code { align-self: flex-start; font-size: 15px; }
  /* The plate is smaller on a phone — here and on the empty bag alike, since it
     is the same object. The CTA row keeps its height, so the panel below it
     does not move up. */
  .mm-hero-cta { display: flex; justify-content: flex-end; padding-top: 22px; padding-bottom: 59px; }
  .btn.shop-cta { width: 118px; height: 38px; border-radius: 7px; }
}

/* --- 3. Collections panel ------------------------------------------------ */
/* Heading, two collection tiles, and an arrow cell under a rule that runs the
   panel's full width — which is why the panel has no padding of its own: each
   cell carries its own. */
.mm-collections { padding-bottom: clamp(36px, 4.4vw, 64px); }
.mm-panel {
  --mm-inset: clamp(22px, 3.4vw, 54px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: #000; color: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.mm-panel-head { padding: 48px 36px 50px; }
.mm-panel-head h2 { margin: 0; font-weight: 400; line-height: 1.02; letter-spacing: -0.02em; }
.mm-panel-head .w1,
.mm-panel-head .w2 { display: block; font-size: clamp(30px, 8.9vw, 46px); }
.mm-panel-head .w1 { color: #8B8983; }
.mm-panel-head .w2 { color: #fff; }

.mm-tiles {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0 var(--mm-inset) 38px;
}
.mm-tile {
  display: block; position: relative;
  aspect-ratio: 4 / 5;
  background: #fff; color: var(--ink);
  border-radius: 12px;
  overflow: hidden;
  transition: opacity .18s var(--ease);
}
.mm-tile:hover { opacity: .9; }
.mm-tile-img { display: block; width: 100%; height: 100%; }
.mm-tile-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
/* The plate floats over the foot of the photograph. */
.mm-tile-plate {
  position: absolute; left: 7px; right: 7px; bottom: 12px;
  background: rgba(10, 10, 10, .92);
  border-radius: 6px;
  color: #fff; padding: 7px 11px;
  font-size: 11.5px; line-height: 1.25;
  text-transform: uppercase; letter-spacing: .01em;
}
/* A measure of eight ems breaks each title onto two lines, as designed. */
.mm-tile-title { display: block; max-width: 8em; }

.mm-panel-more {
  display: flex; align-items: center; justify-content: center;
  min-height: 78px;
  border-top: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  transition: opacity .18s var(--ease);
}
.mm-panel-more:hover { opacity: .6; }
.mm-panel-more svg { width: 20px; height: 20px; }

/* Phone: the tiles become a row you swipe. Each card takes about two thirds of
   the panel so the next one peeks in at the right edge, snaps to the panel's
   inset, and carries its title on one line in a wide plate. Where the browser
   has scroll-driven animations, a card shrinks a little as it leaves the
   focus position, so the peeking card sits back behind the current one. */
@media (max-width: 767px) {
  .mm-tiles {
    display: flex; gap: 14px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--mm-inset);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .mm-tiles::-webkit-scrollbar { display: none; }
  /* Trailing space so the last card can snap to the inset too. */
  .mm-tiles::after { content: ""; flex: 0 0 1px; }
  .mm-tile {
    flex: 0 0 68%;
    aspect-ratio: 3 / 4;
    background: #fff;
    border-radius: 18px;
    scroll-snap-align: start;
  }
  /* The card is taller than either photograph (the wear shot is nearly
     square), so cover would crop its sides and zoom it in. Both are shot on
     white, so they sit whole at the top of a white card instead, and any
     spare height falls behind the plate. */
  .mm-tile-img img { object-fit: contain; object-position: center top; }
  .mm-tile-plate {
    left: 12px; right: 12px; bottom: 12px;
    background: #2b2926;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 12px; line-height: 1.3; letter-spacing: .02em;
  }
  /* The same eight-em measure as the wider layouts, so each title breaks
     onto two lines ("Notebooks & / Journals", "Minimalist / Wear"). */

  /* Status line and prev/next replace the ruled arrow cell on the phone. */
  .mm-tiles { padding-bottom: 26px; }
  .mm-panel-more { display: none; }
  .mm-carousel-nav { padding: 0 var(--mm-inset) 36px; }

  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      .mm-tile {
        animation: mm-tile-focus linear both;
        animation-timeline: view(inline);
      }
    }
  }
}
@keyframes mm-tile-focus {
  entry 0%   { transform: scale(.9); }
  entry 100% { transform: scale(1); }
  exit 0%    { transform: scale(1); }
  exit 100%  { transform: scale(.9); }
}

/* The phone's carousel status line and buttons; the arrow cell does their job
   from tablet width up. */
@media (min-width: 768px) { .mm-carousel-nav { display: none; } }
.mm-status {
  display: flex; align-items: baseline; gap: 8px 10px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255, 255, 255, .5);
}
.mm-status-name { color: #fff; }
.mm-status-idx { font-variant-numeric: tabular-nums; }
.mm-status-hint { margin-left: auto; }
.mm-nav { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.mm-nav-btn {
  display: flex; align-items: center; justify-content: center;
  width: 62px; height: 40px; padding: 0;
  background: none; border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--r-pill);
  color: #fff; cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease), opacity .18s;
}
.mm-nav-btn:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); }
.mm-nav-btn[disabled] { opacity: .3; cursor: default; }
.mm-nav-btn[disabled]:hover { background: none; border-color: rgba(255, 255, 255, .28); }
.mm-nav-btn svg { width: 28px; height: auto; }
.mm-nav-all {
  margin-left: auto; color: #fff; text-decoration: none;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, .5); padding-bottom: 5px;
  transition: opacity .18s var(--ease);
}
.mm-nav-all:hover { opacity: .6; }

@media (min-width: 768px) {
  /* The phone's stack, scaled up: heading over the tiles, the two tiles sharing
     the panel's width at the same 4:5, and the arrow under the rule. */
  .mm-panel { --mm-inset: clamp(32px, 4vw, 64px); }
  .mm-panel-head { padding: clamp(40px, 4.4vw, 72px) var(--mm-inset) clamp(28px, 3vw, 48px); }
  .mm-panel-head .w1,
  .mm-panel-head .w2 { font-size: clamp(32px, 3.2vw, 52px); }
  .mm-tiles {
    gap: clamp(16px, 2vw, 32px);
    padding: 0 var(--mm-inset) clamp(32px, 3.4vw, 56px);
  }
  .mm-tile { border-radius: 16px; }
  .mm-tile-plate {
    left: clamp(10px, 1vw, 16px); right: clamp(10px, 1vw, 16px); bottom: clamp(10px, 1.2vw, 18px);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: clamp(12px, 1.15vw, 17px);
  }
  .mm-panel-more { min-height: clamp(78px, 7vw, 110px); }
  .mm-panel-more svg { width: 28px; height: 28px; }
}

/* --- 4. Newsletter ------------------------------------------------------- */
.mm-newsletter { padding: clamp(8px, 1vw, 16px) 0 clamp(40px, 5vw, 72px); text-align: center; }
/* The footer's own top margin would double the newsletter's bottom padding. */
main:has(> [data-section-type="mm_newsletter"]:last-child) + footer.site { margin-top: 0; }
/* Two lines, regular weight, set tight; the measure is what breaks it after
   "products". */
.mm-news-head {
  margin: 0 auto clamp(32px, 3vw, 48px);
  max-width: 13.5em;
  font-weight: 400; line-height: .95; letter-spacing: -0.015em;
  font-size: clamp(22px, 2.5vw, 36px); color: var(--ink);
}
/* The form is a pair of slim bars. The field's own text stays at 16px — below
   that, iOS Safari zooms the page when the field is focused — so it is only the
   placeholder that is drawn small. */
.mm-news-form { max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.mm-news-form input[type="email"] {
  width: 100%; height: 38px; text-align: center;
  border: 1px solid var(--line-dark); border-radius: 6px;
  background: var(--bg); padding: 0 14px;
  font-family: inherit; font-size: 16px; color: var(--ink);
}
.mm-news-form input[type="email"]::placeholder { color: var(--ink-soft); font-size: 11px; }
.mm-news-form input[type="email"]:focus { border-color: var(--ink); outline: none; }
.mm-news-btn {
  width: 100%; height: 38px; border: 1px solid var(--ink); border-radius: 6px;
  background: var(--ink); color: #fff;
  padding: 0 14px;
  font-family: inherit; font-size: 11px; font-weight: 400;
  cursor: pointer; transition: background .18s var(--ease), color .18s var(--ease);
}
.mm-news-btn:hover { background: transparent; color: var(--ink); }
/* The phone runs the bars slimmer and inset from the page edges. */
@media (max-width: 720px) {
  .mm-newsletter { padding: 40px 0 80px; }
  .mm-news-form { max-width: none; margin: 0 22px; gap: 14px; }
  .mm-news-form input[type="email"],
  .mm-news-btn { height: 30px; padding: 0 12px; }
  .mm-news-btn,
  .mm-news-form input[type="email"]::placeholder { font-size: 10px; }
}

/* The landing page runs to the page edges at desktop width, like the reference. */
.mm-statement > .container,
.mm-hero-inner,
.mm-hero-cta,
.mm-collections > .container,
footer.site > .container { max-width: 1440px; }

/* ==========================================================================
   Shop card
   --------------------------------------------------------------------------
   The rounded frame encloses the photograph only; the name, blurb, price and
   buttons sit below it on the page ground with no box of their own. That is
   what keeps a dense grid from reading as a wall of panels.

   Both buttons are full width and stacked, so the tap target is the whole
   column on a phone — the primary one is solid ink, the secondary a hairline.
   ========================================================================== */
/* minmax(0, 1fr), not 1fr. A bare 1fr is minmax(auto, 1fr), and `auto` floors
   the track at the item's min-content width — which .shop-card-desc sets to the
   full length of the blurb, because it is `white-space: nowrap` and expects to
   be cut with an ellipsis. On a 375px phone that floor is ~203px a column, so
   the two columns plus the gap came to 469px and gave the whole page a ~94px
   sideways scroll. Zero as the floor lets the track take the width it is given
   and the blurb ellipsis do its job. */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 24px;
}
@media (min-width: 760px)  { .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.shop-card { display: flex; flex-direction: column; }

/* 4:5, the shape the catalogue is shot in (800x1000, 1400x1750): a square frame
   shrank those photographs to fit its height and left a band of empty frame down
   either side. */
.shop-card-frame {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
  overflow: hidden;
  margin-bottom: 16px;
  transition: border-color .2s var(--ease);
}
.shop-card-frame:hover { border-color: var(--ink); }
/* contain, not cover: a few shots are taller than the frame (one is 1400x2515),
   and cropping one to fit lands on an empty stretch of backdrop rather than on
   the product. Those sit in the frame with a margin either side instead. */
.shop-card-frame img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 10px;
  display: block;
  transition: transform .45s var(--ease);
}
.shop-card-frame:hover img { transform: scale(1.03); }

/* Sold out / pre-order sit inside the frame rather than over the artwork, so
   the photograph is never obscured by a label. */
.shop-card-flag {
  position: absolute; left: 12px; top: 12px;
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase;
  background: var(--ink); color: #fff;
  padding: 4px 9px; border-radius: var(--r-nav);
}

/* Two lines, always: a card whose name runs to one line and a card whose name
   runs to two would otherwise start their prices at different heights, and a
   row of cards is read across, not down. Longer names are clamped rather than
   allowed to set the height of every card beside them. */
.shop-card-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
  font-family: var(--font-body);
  font-size: 19px; font-weight: 700;
  letter-spacing: -0.01em; line-height: 1.25;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 6px;
}
.shop-card-name:hover { text-decoration: underline; text-underline-offset: 3px; }

.shop-card-desc {
  font-size: 15px; line-height: 1.4;
  color: var(--muted);
  margin: 0 0 14px;
  /* One line, cut with an ellipsis — see the Str::limit in the template. */
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}

/* The card is a full-height flex column, so auto here settles the price and the
   buttons under it against the bottom of the card — the actions line up across
   the row whatever the copy above them does. */
.shop-card-price {
  margin: auto 0 16px;
  display: flex; align-items: baseline; gap: 12px;
  font-variant-numeric: tabular-nums;
}
.shop-card-price .was {
  font-size: 17px; font-weight: 400;
  color: var(--muted); text-decoration: line-through;
}
.shop-card-price .now { font-size: 23px; font-weight: 700; color: var(--ink); }

/* The two actions share one shape; only the fill separates them. */
.shop-btn {
  display: block; width: 100%;
  padding: 14px 16px;
  border-radius: var(--r-nav);
  font-family: var(--font-body);
  font-size: 16px; font-weight: 500;
  letter-spacing: 0; text-transform: none;
  text-align: center; text-decoration: none;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.shop-card form + form { margin-top: 10px; }
.shop-card .shop-btn + .shop-btn { margin-top: 10px; }

.shop-btn.ghost { background: var(--bg); color: var(--ink); border: 1.5px solid var(--ink); }
.shop-btn.ghost:hover { background: var(--bg-soft); }

.shop-btn.solid { background: var(--ink); color: #fff; border: 1.5px solid var(--ink); }
.shop-btn.solid:hover { background: #262626; border-color: #262626; }

.shop-btn.is-disabled {
  background: var(--bg-soft); color: var(--muted);
  border: 1.5px solid var(--line); cursor: default;
}

@media (max-width: 520px) {
  .shop-grid { gap: 32px 16px; }
  .shop-card-name { font-size: 17px; }
  .shop-card-desc { font-size: 14px; }
  .shop-card-price .now { font-size: 21px; }
  .shop-btn { padding: 12px 14px; font-size: 15px; }
}

/* Panel charts. Two short series, drawn with plain boxes — the app has no build
   step, so a charting library would be the single heaviest thing it loads. */
.chart {
  display: flex; align-items: flex-end; gap: 6px;
  height: 160px; padding: 12px 0 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}
.chart-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.chart-bar {
  width: 100%; background: var(--ink); min-height: 2px;
  transition: opacity .2s var(--ease);
}
.chart-col:hover .chart-bar { opacity: .65; }
.chart-label {
  font-family: var(--font-mono); font-size: 9.5px; color: var(--muted);
  margin-top: 6px;
}

/* The wishlist heart on a shop card. The card itself is the positioning
   context — the frame clips its overflow, which would cut the button off. */
.shop-card { position: relative; }
.shop-card .wish-heart { top: 12px; right: 12px; }
.shop-card .wish-heart button,
.shop-card .wish-heart a { border-radius: 999px; }

/* Park the slide-out panels with a transform instead of a negative offset.
   `right: -460px` leaves them inside the document's scrollable area, which on a
   phone gives the whole page a ~45px sideways scroll with nothing in it. A
   translated element is painted outside the flow and cannot do that. */
.cart-drawer { right: 0; transform: translateX(100%); }
.cart-drawer.open { transform: translateX(0); }

.mobile-drawer { left: 0; transform: translateX(-100%); }
.mobile-drawer.drawer-open { transform: translateX(0); }

/* =========================================================================
   Page rhythm and form primitives
   -------------------------------------------------------------------------
   These three class names are used across the store and the account screens
   and had no rules at all. `section` is on eighteen views, so every one of
   them ran its content straight into the sticky header; a validation message
   read as ordinary body copy; and a Remove button rendered as the browser's
   grey system button in the middle of a bag line.
   ========================================================================= */

/* Vertical only, in longhand. `.section` sits on the same element as
   `.container` and comes later in the file, so a shorthand would take the
   container's horizontal padding with it and run every one of these pages
   edge to edge. */
.section {
  padding-top: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(28px, 4vw, 56px);
}

.field-error {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--red);
}

/* A button that has to read as a link: it submits a form, so it cannot be an
   anchor, but it sits inline in a sentence and must not look like a control. */
.linklike {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.linklike:hover { color: var(--ink); }
.linklike.danger { color: var(--red); }
.linklike.danger:hover { color: var(--red-deep); }

/* The money block. It appears inside .summary-box on the bag and checkout and
   inside a plain .card on the confirmation, so it carries its own frame rather
   than borrowing one. */
.totals { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }

.totals .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.totals .row span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }

.totals .row.total {
  border-top: 1px solid var(--line);
  margin-top: 9px;
  padding-top: 12px;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}
