/* BEYOND store styles, version 3
   Palette from the Brand Guidelines book: Black #000000, Broken White #F8F7F3
   and #EDEAE3, White #F9F9F9, Blue #AFC0E6 and #B8CFFF.
   Layout language from Salomon and Nike, type and mood from BEYOND. */

:root {
  /* light surface */
  --bg: #f9f9f9;          /* White */
  --bg-2: #edeae3;        /* Broken White, product tiles and fields */
  --bg-3: #e2ded5;        /* pressed, chips */
  --line: #e2ded5;
  --line-strong: #c3beb2;

  /* ink on light */
  --ink: #000000;         /* Black */
  --ink-2: #48463f;
  --ink-3: #78756c;
  --ink-inverse: #f8f7f3;

  /* dark surface, used by .dark sections */
  --dark: #000000;
  --dark-2: #0e0e0f;
  --dark-3: #17171a;
  --dark-line: #232326;
  --dark-line-strong: #3a3a3e;
  --on-dark: #f8f7f3;     /* Broken White */
  --on-dark-2: #b4b2ab;
  --on-dark-3: #7b7974;

  /* signal */
  --accent: #3c5b8c;      /* deepened brand blue, readable on Broken White */
  --accent-soft: #afc0e6; /* brand blue, for dark sections */
  --danger: #bf3a30;
  --ok: #2f6b45;

  /* type */
  --sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --display: "Barlow Condensed BEYOND", "Helvetica Neue", Arial, sans-serif;
  --serif: "Libre Baskerville BEYOND", Georgia, serif;

  /* metrics */
  --gutter: 20px;
  --maxw: 1440px;
  --header-h: 60px;
  --pill: 999px;
  --radius: 4px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 900px) {
  :root { --gutter: 40px; --header-h: 68px; }
}

/* a section that flips to the dark palette keeps using the same tokens */
.dark {
  --bg: var(--dark);
  --bg-2: var(--dark-2);
  --bg-3: var(--dark-3);
  --line: var(--dark-line);
  --line-strong: var(--dark-line-strong);
  --ink: var(--on-dark);
  --ink-2: var(--on-dark-2);
  --ink-3: var(--on-dark-3);
  --ink-inverse: #0a0a0b;
  background: var(--bg);
  color: var(--ink);
}

@font-face {
  font-family: "Barlow Condensed BEYOND";
  src: url("../fonts/barlow-condensed-latin-800-italic.woff2") format("woff2");
  font-weight: 800; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed BEYOND";
  src: url("../fonts/barlow-condensed-latin-700-italic.woff2") format("woff2");
  font-weight: 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed BEYOND";
  src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Libre Baskerville BEYOND";
  src: url("../fonts/libre-baskerville-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Libre Baskerville BEYOND";
  src: url("../fonts/libre-baskerville-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- type ---------- */

.display {
  font-family: var(--display);
  font-weight: 800; font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.92;
  margin: 0;
  text-wrap: balance;
}
h1.display { font-size: clamp(42px, 9vw, 96px); }
h2.display { font-size: clamp(30px, 5.5vw, 54px); }
h3.display { font-size: clamp(22px, 3.6vw, 32px); }

.title { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; margin: 0; }
.label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-3); margin: 0; font-weight: 500; }
.serif { font-family: var(--serif); font-style: italic; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- announcement + header ---------- */

.announce {
  background: var(--dark); color: var(--on-dark);
  font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase;
  text-align: center; padding: 9px var(--gutter);
}
.announce a { text-decoration: underline; text-underline-offset: 3px; }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(249, 249, 249, 0.94);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
}
.header-left { display: flex; align-items: center; gap: 6px; justify-self: start; }
.header-right { display: flex; align-items: center; gap: 4px; justify-self: end; }
.brand {
  font-family: var(--display); font-weight: 800; font-style: italic;
  font-size: 26px; letter-spacing: 0.03em; text-transform: uppercase; line-height: 1;
  justify-self: center; padding: 6px 4px;
  display: inline-flex; align-items: center; gap: 9px;
}
.brand .mark { height: 17px; width: auto; }
.footer .brand .mark { height: 22px; }
.nav-main { display: none; align-items: center; gap: 28px; }
.nav-main a { font-size: 13px; letter-spacing: 0.02em; color: var(--ink); padding: 8px 0; border-bottom: 2px solid transparent; }
.nav-main a:hover, .nav-main a[aria-current="page"] { border-bottom-color: var(--ink); }

.icon-btn {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: none; border-radius: 50%; cursor: pointer; color: var(--ink); position: relative;
}
.icon-btn:hover { background: var(--bg-2); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: 4px; right: 3px;
  min-width: 16px; height: 16px; padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--bg); font-size: 10px; font-weight: 700; border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.cart-count[data-empty="true"] { display: none; }

@media (min-width: 900px) {
  .header-row { grid-template-columns: auto 1fr auto; }
  .header-left { display: none; }
  .brand { justify-self: start; padding-left: 0; }
  .nav-main { display: flex; justify-self: center; }
}

/* mobile menu, slides under the header */
.mobile-nav {
  position: fixed; left: 0; right: 0; top: 0; bottom: 0; z-index: 49;
  background: var(--bg); display: none; flex-direction: column;
  padding: calc(var(--header-h) + 18px) var(--gutter) 30px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-family: var(--display); font-style: italic; font-weight: 700; text-transform: uppercase; font-size: 30px;
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-nav a::after { content: "\2192"; font-family: var(--sans); font-style: normal; font-weight: 400; font-size: 16px; color: var(--ink-3); }
.mobile-nav .mobile-nav-foot { margin-top: auto; display: flex; gap: 18px; font-size: 13px; color: var(--ink-3); }
.mobile-nav .mobile-nav-foot a { border: 0; padding: 0; font: inherit; text-transform: none; }
.mobile-nav .mobile-nav-foot a::after { content: none; }

/* search panel (Salomon style rounded field) */
.search {
  position: fixed; left: 0; right: 0; top: 0; z-index: 60;
  background: var(--bg); border-bottom: 1px solid var(--line);
  display: none; padding: 14px var(--gutter) 18px;
}
.search.open { display: block; }
.search-row { display: flex; gap: 10px; align-items: center; max-width: 900px; margin: 0 auto; }
.search-field {
  flex: 1; display: flex; align-items: center; gap: 10px;
  background: var(--bg-2); border-radius: var(--pill); padding: 0 16px; height: 48px;
}
.search-field svg { width: 20px; height: 20px; color: var(--ink-3); flex: 0 0 auto; }
.search-field input { flex: 1; border: 0; background: none; font-size: 16px; height: 100%; outline: none; color: var(--ink); }
.search-results { max-width: 900px; margin: 12px auto 0; display: grid; gap: 6px; }
.search-results a { display: flex; justify-content: space-between; align-items: center; padding: 10px 6px; border-radius: var(--radius); }
.search-results a:hover { background: var(--bg-2); }
.search-results .n { font-family: var(--display); font-style: italic; font-weight: 700; text-transform: uppercase; font-size: 20px; }
.search-empty { padding: 10px 6px; color: var(--ink-3); font-size: 14px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 26px;
  border: 1px solid var(--ink); border-radius: var(--pill);
  background: var(--ink); color: var(--ink-inverse);
  font-size: 14px; font-weight: 500; letter-spacing: 0.01em;
  cursor: pointer; transition: opacity 0.15s var(--ease), transform 0.15s var(--ease), background 0.15s var(--ease);
}
.btn:hover { opacity: 0.85; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; }
.btn-light { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn-grey { background: var(--bg-3); color: var(--ink); border-color: var(--bg-3); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); opacity: 1; }
.btn-block { width: 100%; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 13px; }
.btn-wa { background: #25d366; border-color: #25d366; color: #06301a; }

/* a white pill that sits on photography, Nike style */
.on-photo .btn { background: #fff; color: #0a0a0b; border-color: #fff; }

.link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.link:hover { text-decoration-thickness: 2px; }

/* ---------- hero: the portrait film, uncovered ---------- */

.hero { position: relative; overflow: hidden; }
.hero-film { position: relative; width: 100%; aspect-ratio: 9 / 16; max-height: 78vh; background: #000; }
.hero-film video, .hero-film img { width: 100%; height: 100%; object-fit: cover; }
.hero-copy { padding: 26px var(--gutter) 34px; }
.hero-copy .label { color: var(--on-dark-2); margin-bottom: 12px; }
.hero-copy .display { color: var(--on-dark); margin-bottom: 12px; font-size: clamp(46px, 13vw, 92px); }
.hero-sub { max-width: 34ch; color: var(--on-dark-2); margin: 0 0 22px; font-size: 15px; }
.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero-actions .link { color: var(--on-dark); }

@media (min-width: 900px) {
  /* split: type on the left, the portrait film standing on the right */
  .hero {
    /* the film is sized by its height, so its column must hug it (auto).
       A fraction here leaves the surplus as dead space next to the film. */
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
    gap: clamp(28px, 3.5vw, 56px);
    /* The black runs to both edges of the window. The padding, not a max-width,
       is what keeps the type and the film measured in the middle. */
    max-width: none; margin: 0;
    padding: 48px max(var(--gutter), calc((100% - 1240px) / 2)) 64px;
  }
  .hero-film { order: 2; aspect-ratio: 9 / 16; height: min(82vh, 860px); width: auto; max-height: none; }
  /* The film's width comes from the window HEIGHT, so a headline sized in vw
     either collides with it on a tall screen or leaves a hole on a short one.
     Sizing the type against its own column instead keeps the two in step. */
  .hero-copy { order: 1; padding: 0; container-type: inline-size; }
  .hero-copy .display { font-size: clamp(58px, 9vw, 150px); }
  .hero-copy .display { font-size: clamp(58px, 21cqw, 168px); }
  .hero-sub { font-size: 16px; max-width: 40ch; }
}

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

.section { padding: 56px 0; }
@media (min-width: 900px) { .section { padding: 84px 0; } }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head .title { font-size: 22px; }
@media (min-width: 900px) { .section-head .title { font-size: 26px; } }

/* ---------- product tiles (Salomon) ---------- */

.grid-products { display: grid; gap: 22px 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; } }

.card { display: block; min-width: 0; }
.card-media {
  position: relative; aspect-ratio: 4 / 5; background: var(--bg-2);
  overflow: hidden; border-radius: var(--radius);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .card-media img { transform: scale(1.03); }
.card-flag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: rgba(255,255,255,0.9); color: var(--ink);
  font-size: 11px; letter-spacing: 0.06em; padding: 5px 10px; border-radius: var(--pill);
}
.card-body { padding-top: 12px; }
.card-drop { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }
.card-name { font-family: var(--serif); font-style: italic; font-size: 15px; line-height: 1.3; color: var(--ink-2); margin-top: 6px; }
.card-price { font-size: 13.5px; margin-top: 8px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.card-note { font-size: 12px; color: var(--ink-3); min-height: 16px; margin-top: 2px; }

/* image tiles with the label top left (Salomon "shop by") */
.tiles { display: grid; gap: 4px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
.tile { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--dark-2); border-radius: var(--radius); }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.tile:hover img { transform: scale(1.03); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,11,0.45) 0%, rgba(10,10,11,0) 40%, rgba(10,10,11,0.25) 100%); }
.tile-label { position: absolute; top: 16px; left: 16px; z-index: 2; color: #fff; font-size: 15px; font-weight: 500; }
.tile-foot { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; color: #fff; }
.tile-foot .display { display: block; font-size: clamp(22px, 4vw, 34px); color: #fff; }
.tile-foot .small { display: block; color: rgba(255,255,255,0.75); margin-top: 6px; }

/* films: portrait players in a row */
.films { display: grid; gap: 22px; grid-template-columns: 1fr; padding: 0 var(--gutter); }
/* the film band runs to both edges of the window, so no page gutter here */
@media (min-width: 700px) { .films { grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 0; } }
.film { margin: 0; }
.film-media { background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 9 / 16; }
@media (min-width: 700px) { .film-media { border-radius: 0; } .film figcaption { padding: 14px var(--gutter) 0; } }

/* sound, because a browser will only autoplay a film that is muted */
.hero-film { position: relative; }
.sound-btn {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; cursor: pointer;
  background: rgba(10, 10, 11, .55); border: 1px solid rgba(248, 247, 243, .35);
  color: #f8f7f3; backdrop-filter: blur(6px); transition: background .18s var(--ease);
}
.sound-btn:hover { background: rgba(10, 10, 11, .8); }
.sound-btn:focus-visible { outline: 2px solid #f8f7f3; outline-offset: 2px; }
.sound-btn svg { width: 20px; height: 20px; display: block; }
.film-media video, .film-media img { width: 100%; height: 100%; object-fit: cover; }
.film figcaption { padding-top: 14px; display: grid; gap: 6px; justify-items: start; }
.film-title { font-size: 19px; color: var(--ink); }
.film-inline video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #000; }
.film-inline figcaption { padding: 10px 2px 0; }

/* editorial photo card with copy inside (Nike) */
.feature { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--dark-2); }
.feature img, .feature video { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
@media (min-width: 900px) { .feature img, .feature video { aspect-ratio: 16 / 9; } }
.feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,11,0) 45%, rgba(10,10,11,0.7) 100%); }
.feature-copy { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px; color: #fff; }
@media (min-width: 900px) { .feature-copy { padding: 40px; } }
.feature-copy .eyebrow { font-size: 13px; color: rgba(255,255,255,0.8); margin: 0 0 6px; }
.feature-copy .display { color: #fff; font-size: clamp(30px, 5vw, 56px); margin-bottom: 16px; }

/* two up editorial row */
.two-up { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .two-up { grid-template-columns: 1fr 1fr; } }

/* quote block */
.quote { text-align: center; padding: 72px var(--gutter); display: grid; justify-items: center; gap: 18px; }
.quote p { max-width: 26ch; margin: 0; font-size: clamp(21px, 3.2vw, 32px); line-height: 1.45; }
.quote .label { margin: 0; }

/* service strip (Salomon rows with chevrons) */
.services { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-row { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.service-row:last-child { border-bottom: 0; }
.service-row svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--ink-2); }
.service-row .chev { margin-left: auto; color: var(--ink-3); }
.service-row b { font-weight: 500; }
.service-row span.small { display: block; color: var(--ink-3); }
@media (min-width: 900px) {
  .services .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .service-row { border-bottom: 0; padding: 24px 0; }
}

/* member / newsletter block (dark) */
.join { padding: 64px 0; }
.join .display { font-size: clamp(38px, 8vw, 84px); margin-bottom: 14px; }
.join p { max-width: 46ch; color: var(--ink-2); margin: 0 0 22px; }
.join-form { display: flex; gap: 10px; max-width: 520px; flex-wrap: wrap; }
.join-form input { flex: 1; min-width: 200px; height: 48px; border-radius: var(--pill); border: 1px solid var(--line-strong); background: var(--bg-2); color: var(--ink); padding: 0 18px; font-size: 15px; }
.join-form input::placeholder { color: var(--ink-3); }
.join-form .btn { background: var(--ink); color: var(--ink-inverse); border-color: var(--ink); }
.join-note { font-size: 12px; color: var(--ink-3); margin-top: 10px; }

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

.pdp { display: grid; gap: 28px; padding-top: 18px; }
@media (min-width: 900px) {
  .pdp { grid-template-columns: minmax(0, 1.3fr) minmax(360px, 0.7fr); gap: 56px; align-items: start; padding-top: 30px; }
  .pdp-info { position: sticky; top: calc(var(--header-h) + 24px); }
}
.crumbs { font-size: 13px; color: var(--ink-3); padding: 18px 0 0; }
.crumbs a:hover { color: var(--ink); }
.pdp-gallery { display: grid; gap: 8px; }
@media (min-width: 620px) { .pdp-gallery { grid-template-columns: 1fr 1fr; } }
.pdp-gallery figure { margin: 0; background: var(--bg-2); border-radius: var(--radius); overflow: hidden; }
.pdp-gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.pdp-gallery .full { grid-column: 1 / -1; }
.pdp-gallery .full img { aspect-ratio: 4 / 3; }
.pdp-gallery video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #000; }

.pdp-info h1 { font-size: clamp(34px, 7vw, 54px); }
.pdp-info .sub { font-size: 15px; color: var(--ink-2); margin: 8px 0 4px; }
.price-row { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 20px; }
.price { font-size: 17px; font-variant-numeric: tabular-nums; }
.price-was { color: var(--ink-3); text-decoration: line-through; font-size: 14px; }

.size-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.size-head .link { font-size: 13px; color: var(--ink-3); }
.sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 8px; }
.size-btn {
  height: 46px; cursor: pointer; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--line-strong);
  font-size: 14px; letter-spacing: 0.04em;
}
.size-btn:hover { border-color: var(--ink); }
.size-btn[aria-pressed="true"] { background: var(--ink); color: var(--ink-inverse); border-color: var(--ink); }
.size-btn[disabled] { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }
.stock-note { font-size: 13px; color: var(--ink-3); min-height: 18px; margin: 4px 0 16px; }
.stock-note[data-low="true"] { color: var(--accent); }
.dark .stock-note[data-low="true"] { color: var(--accent-soft); }

.acc { border-top: 1px solid var(--line); }
.acc:last-of-type { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 16px 0; display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 500; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; color: var(--ink-3); font-size: 18px; font-weight: 300; }
.acc[open] summary::after { content: "\2013"; }
.acc-body { padding: 0 0 18px; color: var(--ink-2); font-size: 14.5px; }
.acc-body ul { margin: 0; padding-left: 18px; }
.acc-body li { margin-bottom: 6px; }
.acc-body a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- tables ---------- */

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.table th { color: var(--ink-3); font-weight: 500; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.table td { font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }

/* ---------- bag and checkout ---------- */

.line-item { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line-item img { width: 88px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--bg-2); border-radius: var(--radius); }
.line-name { font-family: var(--display); font-style: italic; font-weight: 700; text-transform: uppercase; font-size: 20px; line-height: 1.05; }
.line-meta { font-size: 13px; color: var(--ink-3); margin-top: 3px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--pill); margin-top: 10px; }
.qty button { width: 34px; height: 34px; background: none; border: 0; cursor: pointer; color: var(--ink-2); font-size: 16px; border-radius: 50%; }
.qty button:hover { color: var(--ink); background: var(--bg-2); }
.qty span { min-width: 26px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.line-right { text-align: right; font-variant-numeric: tabular-nums; font-size: 15px; }
.line-remove { background: none; border: 0; padding: 0; margin-top: 10px; cursor: pointer; font-size: 13px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.line-remove:hover { color: var(--danger); }

.checkout-grid { display: grid; gap: 32px; padding: 26px 0 70px; }
@media (min-width: 940px) {
  .checkout-grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 64px; align-items: start; }
  .summary-box { position: sticky; top: calc(var(--header-h) + 22px); }
}

fieldset { border: 0; padding: 0; margin: 0 0 32px; }
legend { padding: 0; margin-bottom: 14px; font-size: 17px; font-weight: 500; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.field .hint { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], textarea, select {
  width: 100%; padding: 13px 16px;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 10px;
  font-family: inherit; font-size: 16px;
}
textarea { min-height: 90px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #a3a3a0; }
input:focus, textarea:focus, select:focus { border-color: var(--ink); outline: none; }
.field.error input, .field.error textarea { border-color: var(--danger); }
.field .err { display: none; color: var(--danger); font-size: 12.5px; margin-top: 6px; }
.field.error .err { display: block; }
.row-2 { display: grid; gap: 14px; }
@media (min-width: 560px) { .row-2 { grid-template-columns: 1fr 1fr; } }

.option {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 10px;
  margin-bottom: 10px; cursor: pointer; background: var(--bg);
}
.option:hover { border-color: var(--ink-3); }
.option input { margin: 3px 0 0; accent-color: var(--ink); }
.option-main { flex: 1; min-width: 0; }
.option-title { display: block; font-size: 15px; }
.option-note { display: block; font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.option-price { font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.option[data-selected="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

.results { border: 1px solid var(--line-strong); border-radius: 10px; margin-top: 6px; max-height: 240px; overflow-y: auto; background: var(--bg); }
.results:empty { display: none; }
.results button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 11px 14px; cursor: pointer; font-size: 14px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.results button:last-child { border-bottom: 0; }
.results button:hover, .results button:focus { background: var(--bg-2); color: var(--ink); }

.summary-box { border-radius: 12px; background: var(--bg-2); padding: 22px; }
.sum-row { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; font-size: 14.5px; }
.sum-row span:last-child { font-variant-numeric: tabular-nums; }
.sum-total { border-top: 1px solid var(--line-strong); margin-top: 10px; padding-top: 14px; font-size: 18px; font-weight: 500; }
.sum-items { border-bottom: 1px solid var(--line-strong); margin-bottom: 12px; padding-bottom: 8px; }
.sum-item { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14px; color: var(--ink-2); }

.notice { border-radius: 10px; background: var(--bg-2); border-left: 3px solid var(--accent); padding: 13px 16px; font-size: 14px; color: var(--ink-2); margin: 14px 0; }
.notice[data-kind="error"] { border-left-color: var(--danger); background: #f7ece9; color: #8a1f17; }
.notice[data-kind="ok"] { border-left-color: var(--ok); background: #ecf3ee; color: #1d4d31; }
.dark .notice[data-kind="error"] { background: #2a1513; color: #ffb4ae; }

.steps { display: grid; gap: 14px; margin: 22px 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.steps li::before { counter-increment: s; content: counter(s); width: 26px; height: 26px; flex: 0 0 26px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; font-size: 12px; color: var(--ink); }
.pay-box { border-radius: 12px; background: var(--bg-2); padding: 18px; margin: 16px 0; }
.pay-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14.5px; border-bottom: 1px dashed var(--line-strong); }
.pay-row:last-child { border-bottom: 0; }
.pay-row b { font-weight: 500; font-variant-numeric: tabular-nums; }
.copy-btn { background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--pill); padding: 4px 10px; font-size: 12px; cursor: pointer; color: var(--ink-2); }
.copy-btn:hover { color: var(--ink); border-color: var(--ink); }
.qris-img { max-width: 260px; border-radius: 8px; background: #fff; padding: 8px; border: 1px solid var(--line); }

/* ---------- prose ---------- */

.prose { max-width: 720px; color: var(--ink-2); }
.prose h2 { font-size: 18px; color: var(--ink); margin: 32px 0 8px; font-weight: 500; }
.prose h3 { font-size: 15px; color: var(--ink); margin: 20px 0 6px; font-weight: 500; }
.prose p, .prose li { font-size: 15px; }
.prose ul, .prose ol { padding-left: 20px; }
.prose li { margin-bottom: 7px; }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.prose .lead { font-size: 19px; color: var(--ink); }

/* ---------- footer (dark) ---------- */

.footer { padding: 52px 0 32px; font-size: 14px; }
.footer-grid { display: grid; gap: 30px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; } }
.footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-3); margin: 0 0 14px; font-weight: 500; }
.footer a { display: block; padding: 5px 0; color: var(--ink-2); }
.footer a:hover { color: var(--ink); }
.footer .brand { font-size: 30px; padding: 0; }
.footer-bottom { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); }
.footer-bottom a { display: inline; padding: 0; }

/* ---------- utility ---------- */

.stack > * + * { margin-top: 14px; }
.center { text-align: center; }
.hidden { display: none !important; }
.spinner { width: 15px; height: 15px; border: 2px solid rgba(0,0,0,0.15); border-top-color: currentColor; border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(20px);
  background: var(--dark); color: var(--on-dark);
  padding: 12px 20px; border-radius: var(--pill); font-size: 14px;
  opacity: 0; pointer-events: none; transition: all 0.25s var(--ease); z-index: 80;
  max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.banner-demo { background: #fff4d6; color: #6b4b00; border-bottom: 1px solid #f1dfae; font-size: 12.5px; padding: 8px var(--gutter); text-align: center; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
