/* ==========================================================================
   Racabel storefront — prototipe
   Mengikuti Brand Guidelines Racabel (2024) + Brand Playbook 2026:
   Royal Blue #2E3190 + putih/hitam, aksen Cerulean/Teal/Lavender.
   Judul: Exotic350 Demi Bold (fallback web: Marcellus), teks: General Sans.
   ========================================================================== */
:root {
  --bg: #FFFFFF;
  --surface: #FAFAFA;
  --sunk: #F3F3F7;
  --ink: #1A1A1A;
  --ink-2: #666666;
  --ink-3: #8F8F95;
  --line: #ECECF0;
  --line-2: #D7D7E2;
  --brand: #2E3190;      /* Royal Blue */
  --brand-2: #23256E;    /* hover tombol utama */
  --brand-tint: #EEEEF7;
  --cerulean: #4890CA;
  --teal: #408992;
  --lavender: #423F96;
  --accent: var(--cerulean);
  --danger: #B3261E;

  --serif: "Exotic350 DmBd BT", "Exotic350 BT", "Marcellus", "Optima", Georgia, serif;
  --sans: "General Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 12px;
  --radius-card: 8px;
  --shadow-card: 0 2px 15px -3px rgba(18, 29, 61, .10), 0 4px 6px -4px rgba(18, 29, 61, .10);
  --shadow-lift: 0 18px 40px -18px rgba(18, 29, 61, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Tipografi ---------- */
.eyebrow {
  font: 600 11px/1.4 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand);
}
.display {
  font: 400 clamp(44px, 5.6vw, 84px)/1 var(--serif);
  letter-spacing: .01em; text-transform: uppercase;
}
.display em, .h2 em { font-style: normal; color: var(--brand); }
.h2 { font: 400 clamp(28px, 3vw, 42px)/1.12 var(--serif); text-transform: uppercase; letter-spacing: .02em; }
.h3 { font: 400 clamp(19px, 1.6vw, 23px)/1.2 var(--serif); text-transform: uppercase; letter-spacing: .03em; color: var(--brand); }
.lead { font-size: 16px; line-height: 1.7; color: var(--ink-2); max-width: 44ch; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid var(--ink); border-radius: var(--radius);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn--solid { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--solid:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn--ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--ghost:hover { background: var(--brand); color: #fff; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link {
  font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  border-bottom: 1px solid currentColor; padding-bottom: 4px;
}
.link { color: var(--brand); }
.link:hover { color: var(--brand-2); }
.text-link { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- Announcement & header ---------- */
.announce { background: var(--brand); color: #fff; text-align: center; }
.announce p { padding: 9px 16px; font-size: 12px; letter-spacing: .06em; }

.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.header.scrolled { border-bottom-color: var(--line); }
.header__inner {
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.header__nav { display: flex; gap: 30px; }
.header__nav a, .header__link {
  font-size: 13px; letter-spacing: .04em; position: relative; padding: 6px 0;
}
.header__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.header__nav a:hover::after, .header__nav a[aria-current="page"]::after { transform: scaleX(1); }
.header__nav a[aria-current="page"] { color: var(--brand); }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__icon { height: 30px; width: 30px; }
.logo__word { height: 19px; width: auto; }
.logo--footer .logo__icon { height: 40px; width: 40px; }
.logo--footer .logo__word { height: 22px; }
.logo--drawer .logo__icon { height: 26px; width: 26px; }
.logo--drawer .logo__word { height: 16px; }
.header__actions { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.header__link { margin-right: 14px; color: var(--ink-2); }
.header__link:hover { color: var(--ink); }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%;
  transition: background .2s;
}
.icon-btn:hover { background: var(--sunk); }
.icon-btn.header__menu { display: none; }
.cart-btn { position: relative; }
.cart-count {
  position: absolute; top: 6px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: var(--brand); color: #fff;
  font: 600 10px/17px var(--sans); text-align: center;
}

/* ---------- Hero ---------- */
.hero { padding: clamp(32px, 5vw, 72px) 0 clamp(56px, 7vw, 104px); }
.hero__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__text { display: grid; gap: 28px; align-content: center; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero__materials { display: flex; gap: 22px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 13px; }
.hero__materials span + span::before { content: "—"; margin-right: 22px; color: var(--line-2); }
.hero__media { position: relative; }
.hero__main { aspect-ratio: 4 / 5; overflow: hidden; background: var(--sunk); border-radius: var(--radius-card); }
.hero__main img { width: 100%; height: 100%; object-fit: cover; animation: slowzoom 14s var(--ease) both; }
@keyframes slowzoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero__card {
  position: absolute; left: clamp(-64px, -5vw, -24px); bottom: 48px; width: clamp(150px, 30%, 240px);
  background: #fff; padding: 10px 10px 14px; border-radius: var(--radius-card); box-shadow: var(--shadow-lift);
  transition: transform .4s var(--ease);
}
.hero__card:hover { transform: translateY(-4px); }
.hero__card img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 4px; }
.hero__card p { margin-top: 10px; display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.hero__card strong { font: 400 15px/1 var(--serif); text-transform: uppercase; letter-spacing: .05em; }
.hero__card span { color: var(--brand); font-weight: 600; }

/* ---------- USP ---------- */
.usp { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.usp__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.usp__item { display: flex; gap: 14px; align-items: flex-start; padding: 26px 24px; }
.usp__item + .usp__item { border-left: 1px solid var(--line); }
.usp__item svg { width: 24px; height: 24px; flex: none; color: var(--accent); margin-top: 2px; }
.usp__item strong { display: block; font-weight: 600; font-size: 14px; }
.usp__item span { font-size: 13px; color: var(--ink-2); }

/* ---------- Section umum ---------- */
.section { padding: clamp(64px, 8vw, 120px) 0; }
.section--tight { padding-top: 0; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head > div { display: grid; gap: 14px; }

/* ---------- Kategori ---------- */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 24px); }
.cat { position: relative; display: block; overflow: hidden; background: var(--sunk); aspect-ratio: 3 / 4; border-radius: var(--radius-card); }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cat:hover img { transform: scale(1.04); }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 20, 60, .62), rgba(20, 20, 60, 0) 48%); }
.cat__label { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; color: #FBF7F1; display: flex; justify-content: space-between; align-items: flex-end; }
.cat__label strong { font: 400 clamp(24px, 2.2vw, 32px)/1 var(--serif); text-transform: uppercase; letter-spacing: .04em; }
.cat__label span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Grid produk ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(28px, 3vw, 44px) clamp(12px, 1.6vw, 24px); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card { display: grid; align-content: start; background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-card); overflow: hidden; transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.card__media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #F4F4F6; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.card__media img + img { opacity: 0; }
.card:hover .card__media img + img, .card:focus-within .card__media img + img { opacity: 1; }
.card:hover .card__media img { transform: scale(1.03); }
.card__badge {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  background: var(--brand); color: #fff; border-radius: 4px; padding: 5px 9px; font: 600 10px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
}
.card__body { display: grid; gap: 4px; padding: 16px 18px 20px; }
.card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card__name { font: 400 18px/1.2 var(--serif); text-transform: uppercase; letter-spacing: .05em; }
.card__price { font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--brand); }
.card__meta { font-size: 13px; color: var(--ink-2); }
.swatches { display: flex; gap: 6px; margin-top: 6px; }
.swatch-dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .14); }

/* ---------- Editorial ---------- */
.editorial { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.editorial--flip .editorial__media { order: 2; }
.editorial__media { aspect-ratio: 1; overflow: hidden; background: var(--sunk); border-radius: var(--radius-card); }
.editorial__media img { width: 100%; height: 100%; object-fit: cover; }
.editorial__text { display: grid; gap: 24px; max-width: 480px; }

/* ---------- Material ---------- */
.materials { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); }
.material { padding: 28px 24px 8px 0; display: grid; gap: 12px; align-content: start; }
.material + .material { padding-left: 24px; border-left: 1px solid var(--line); }
.material__num { font: 400 15px/1 var(--serif); color: var(--brand); letter-spacing: .1em; }
.material p { font-size: 14px; color: var(--ink-2); }
.material a { margin-top: 6px; justify-self: start; }

/* ---------- Lookbook ---------- */
.look { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: clamp(12px, 1.6vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.look a { scroll-snap-align: start; display: grid; gap: 10px; }
.look__img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--sunk); border-radius: var(--radius-card); }
.look__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.look a:hover img { transform: scale(1.04); }
.look span { font-size: 13px; color: var(--ink-2); }
.look strong { color: var(--ink); font-weight: 600; }

/* ---------- CTA ukuran ---------- */
.help { background: var(--brand); color: #fff; position: relative; overflow: hidden; }
.help__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: clamp(48px, 6vw, 80px) var(--gutter); }
.help .eyebrow { color: #B9B9E6; }
.help .h2 em { color: #C9CAF2; }
.help p { color: #D9D9F2; margin-top: 16px; max-width: 46ch; }
.help__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.help .btn--solid { background: #fff; color: var(--brand); border-color: #fff; }
.help .btn--solid:hover { background: var(--brand-tint); }
.help .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.help .btn--ghost:hover { background: #fff; color: var(--brand); }

/* ---------- Koleksi ---------- */
.page-head { padding: clamp(40px, 5vw, 72px) 0 clamp(24px, 3vw, 40px); display: grid; gap: 16px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { color: var(--line-2); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; margin-bottom: 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 36px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 13px; display: inline-flex; align-items: center; transition: all .2s;
}
.chip:hover { border-color: var(--ink); }
.chip:hover { color: var(--brand); border-color: var(--brand); }
.chip[aria-pressed="true"], .chip[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.chips--static li { font-size: 12px; border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 10px; color: var(--ink-2); }
.select {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent;
  font-size: 13px; padding: 8px 22px 8px 0; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B1714' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center; background-size: 14px;
}
.count { font-size: 13px; color: var(--ink-2); }
.empty { padding: 64px 0; text-align: center; color: var(--ink-2); }

/* ---------- Halaman produk ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); padding-bottom: clamp(64px, 8vw, 112px); }
.gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-self: start; position: sticky; top: calc(var(--header-h) + 16px); }
.gallery__main { aspect-ratio: 1; background: #F4F4F6; overflow: hidden; position: relative; border-radius: var(--radius-card); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: grid; gap: 10px; align-content: start; grid-auto-rows: 76px; height: 0; min-height: 100%; overflow-y: auto; scrollbar-width: none; }
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumbs button { aspect-ratio: 1; overflow: hidden; background: #F4F4F6; opacity: .55; transition: opacity .2s; border: 1.5px solid transparent; border-radius: 6px; }
.gallery__thumbs button[aria-current="true"] { opacity: 1; border-color: var(--brand); }
.gallery__thumbs button:hover { opacity: 1; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery__dots { display: none; }

.buy { display: grid; gap: 28px; align-content: start; padding-top: 8px; }
.buy__head { display: grid; gap: 14px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.buy__name { font: 400 clamp(34px, 3.4vw, 48px)/1.05 var(--serif); text-transform: uppercase; letter-spacing: .03em; }
.buy__price { font-size: 20px; font-weight: 600; color: var(--brand); }
.buy__note { font-size: 13px; color: var(--ink-2); }
.opt { display: grid; gap: 12px; }
.opt__label { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; }
.opt__label b { font-weight: 600; }
.opt__label .text-link { font-size: 12px; color: var(--ink-2); }
.colors { display: flex; flex-wrap: wrap; gap: 10px; }
.color {
  display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 16px 0 10px;
  border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; transition: border-color .2s;
}
.color:hover { border-color: var(--ink-2); }
.color[aria-pressed="true"] { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); color: var(--brand); font-weight: 600; }
.color i { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); }
.sizes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.sizes--wide { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.sizes--wide .size { padding: 0 10px; }
.size {
  min-height: 46px; border: 1px solid var(--line-2); font-size: 14px; border-radius: var(--radius);
  transition: all .2s;
}
.size:hover { border-color: var(--ink); }
.size:hover { border-color: var(--brand); color: var(--brand); }
.size[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.opt__hint { font-size: 12px; color: var(--ink-2); min-height: 18px; }
.opt__hint.warn { color: var(--danger); }
.free-size { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); font-size: 14px; }
.buy__row { display: grid; grid-template-columns: 128px 1fr; gap: 12px; }
.qty { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; border: 1px solid var(--line-2); min-height: 52px; border-radius: var(--radius); }
.qty button { height: 100%; font-size: 18px; color: var(--ink-2); }
.qty button:hover { color: var(--ink); }
.qty output, .qty span { text-align: center; font-size: 14px; }
.perks { display: grid; gap: 10px; font-size: 13px; color: var(--ink-2); padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.perks li { display: flex; gap: 12px; align-items: center; }
.perks svg { color: var(--accent); width: 18px; height: 18px; flex: none; }
.acc { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font: 300 22px/1 var(--sans); transition: transform .3s; }
.acc[open] summary::after { transform: rotate(45deg); }
.acc__body { padding: 0 0 20px; font-size: 14px; color: var(--ink-2); display: grid; gap: 10px; }
.spec { display: grid; grid-template-columns: 120px 1fr; gap: 6px 16px; }
.spec dt { color: var(--ink-3); }
.spec dd { margin: 0; color: var(--ink); }

/* ---------- Drawer & modal ---------- */
.drawer, .modal { position: fixed; inset: 0; z-index: 60; visibility: hidden; }
.drawer.open, .modal.open { visibility: visible; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(27, 23, 20, .4); opacity: 0; transition: opacity .35s var(--ease); }
.drawer.open .drawer__scrim, .modal.open .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: 1; width: min(440px, 100%);
  background: var(--bg); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .45s var(--ease);
}
.drawer--left .drawer__panel { right: auto; left: 0; transform: translateX(-100%); }
.drawer.open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 14px 24px; border-bottom: 1px solid var(--line); }
.drawer__title { font: 400 22px/1.1 var(--serif); text-transform: uppercase; letter-spacing: .04em; }
.menu-list { display: grid; padding: 16px 24px; }
.menu-list a { font: 400 24px/1.2 var(--serif); padding: 12px 0; border-bottom: 1px solid var(--line); text-transform: uppercase; letter-spacing: .04em; }
.menu-list .menu-list__small { font: 500 14px/1.4 var(--sans); border: 0; padding: 14px 0 0; color: var(--ink-2); }
.modal { display: grid; place-items: center; padding: 16px; }
.modal__panel {
  position: relative; z-index: 1; width: min(640px, 100%); max-height: calc(100dvh - 32px); overflow: auto;
  background: var(--bg); opacity: 0; transform: translateY(12px); transition: all .35s var(--ease);
}
.modal.open .modal__panel { opacity: 1; transform: none; }
.modal__body { padding: 24px; display: grid; gap: 24px; }

/* ---------- Keranjang ---------- */
.cart { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.cart__items { flex: 1; overflow: auto; padding: 8px 24px; }
.cart__item { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart__item img { width: 84px; height: 84px; object-fit: cover; background: #F4F4F6; border-radius: 6px; }
.cart__item h3 { font: 400 17px/1.2 var(--serif); text-transform: uppercase; letter-spacing: .04em; }
.cart__item p { font-size: 12px; color: var(--ink-2); margin-top: 4px; }
.cart__item .qty { min-height: 34px; width: 104px; grid-template-columns: 32px 1fr 32px; margin-top: 10px; }
.cart__right { display: grid; justify-items: end; align-content: space-between; font-size: 14px; }
.cart__remove { font-size: 12px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.cart__foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); display: grid; gap: 14px; background: var(--surface); }
.cart__sum { display: flex; justify-content: space-between; font-size: 15px; }
.cart__sum strong { font-weight: 600; }
.cart__note { font-size: 12px; color: var(--ink-2); }
.cart__empty { flex: 1; display: grid; place-content: center; gap: 20px; text-align: center; padding: 24px; }
.cart__empty p { font: 400 24px/1.25 var(--serif); }

/* ---------- Panduan ukuran ---------- */
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 20px; display: grid; gap: 12px; }
.calc__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.input {
  min-height: 46px; padding: 0 14px; border: 1px solid var(--line-2); background: var(--bg); border-radius: var(--radius); width: 100%;
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.calc .input { width: 120px; }
.calc__result { font: 400 22px/1.25 var(--serif); min-height: 28px; color: var(--brand); }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; }
.seg button { padding: 7px 14px; border-radius: 999px; font-size: 12px; }
.seg button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line); }
.table th { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
.table tr.hit td { background: var(--brand-tint); color: var(--brand); font-weight: 600; }
.steps { display: grid; gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 12px; font-size: 14px; color: var(--ink-2); }
.steps li::before { content: counter(s); font: 400 20px/1 var(--serif); color: var(--brand); }
.guide { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); padding-bottom: clamp(64px, 8vw, 112px); }
.guide > div { display: grid; gap: 24px; align-content: start; }

/* ---------- Checkout ---------- */
.co { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding-bottom: 96px; }
.co__form { display: grid; gap: 36px; }
.fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; }
.fieldset legend { font: 400 20px/1.1 var(--serif); margin-bottom: 18px; padding: 0; text-transform: uppercase; letter-spacing: .04em; color: var(--brand); }
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; color: var(--ink-2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
textarea.input { min-height: 88px; padding: 12px 14px; resize: vertical; }
.pay { display: grid; gap: 8px; }
.pay label {
  display: grid; grid-template-columns: 20px 1fr auto; gap: 12px; align-items: center; padding: 16px;
  border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-size: 14px; border-radius: var(--radius);
}
.pay label:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.pay input { accent-color: var(--brand); width: 16px; height: 16px; }
.pay small { color: var(--ink-2); font-size: 12px; }
.ship-note { padding: 16px; border: 1px dashed var(--line-2); font-size: 13px; color: var(--ink-2); }
.co__sum { background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 28px; display: grid; gap: 18px; align-self: start; position: sticky; top: calc(var(--header-h) + 16px); }
.co__line { display: flex; justify-content: space-between; font-size: 14px; }
.co__line--total { font-size: 17px; font-weight: 700; padding-top: 16px; border-top: 1px solid var(--line); color: var(--brand); }
.co__mini { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; font-size: 13px; }
.co__mini img { width: 56px; height: 56px; object-fit: cover; background: #F4F4F6; border-radius: 6px; }
.co__mini b { font: 400 15px/1.2 var(--serif); display: block; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Toast & badge ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--bg); padding: 14px 20px; font-size: 13px; max-width: calc(100% - 32px);
  opacity: 0; pointer-events: none; transition: all .35s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.proto-badge {
  position: fixed; left: 12px; bottom: 12px; z-index: 30; font-size: 11px; letter-spacing: .06em;
  background: var(--surface); border: 1px solid var(--line-2); padding: 6px 10px; color: var(--ink-2);
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--surface); padding-top: clamp(48px, 6vw, 80px); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.footer__brand { display: grid; gap: 18px; align-content: start; }
.footer__brand p { font-size: 14px; color: var(--ink-2); max-width: 36ch; }
.footer__title { font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; }
.footer__title--gap { margin-top: 24px; }
.footer ul:not(.chips) { display: grid; gap: 10px; font-size: 14px; }
.footer ul a:hover { color: var(--brand); }
.footer__bottom { padding-top: 40px; padding-bottom: 32px; margin-top: 48px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }

/* ---------- Animasi masuk ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsif
   ========================================================================== */
/* 6 tautan kategori: rapatkan, lalu pindah ke menu ikon sebelum bertabrakan dengan logo */
@media (max-width: 1360px) { .header__nav { gap: 20px; } }
@media (max-width: 1180px) {
  .header__nav { display: none; }
  .icon-btn.header__menu { display: inline-grid; margin-left: -10px; }
  .header__inner > .header__menu { justify-self: start; }
}

@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .materials { grid-template-columns: 1fr 1fr; }
  .material:nth-child(3) { padding-left: 0; border-left: 0; }
  .usp__grid { grid-template-columns: 1fr 1fr; }
  .usp__item:nth-child(3) { border-left: 0; }
  .usp__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .header__link { display: none; }
}

@media (max-width: 860px) {
  :root { --header-h: 60px; }
  .header__nav { display: none; }
  .icon-btn.header__menu { display: inline-grid; margin-left: -10px; }
  .header__inner > .header__menu { justify-self: start; }
  .logo { font-size: 15px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; margin: 0 calc(var(--gutter) * -1); }
  .hero__main { aspect-ratio: 4 / 4.4; }
  .hero__card { left: auto; right: var(--gutter); bottom: -32px; width: 150px; }
  .hero__text { padding-top: 24px; }
  .cats { grid-template-columns: 1fr 1fr; }
  .cats .cat:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .grid, .grid--3 { grid-template-columns: 1fr 1fr; }
  .editorial { grid-template-columns: 1fr; }
  .editorial--flip .editorial__media { order: 0; }
  .help__inner { grid-template-columns: 1fr; }
  .help__actions { justify-content: flex-start; }
  .pdp { grid-template-columns: 1fr; }
  .gallery { position: static; grid-template-columns: 1fr; margin: 0 calc(var(--gutter) * -1); }
  .gallery__thumbs { display: none; }
  .gallery__main { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .gallery__main::-webkit-scrollbar { display: none; }
  .gallery__main img { flex: 0 0 100%; scroll-snap-align: start; }
  .gallery__dots { display: flex; justify-content: center; gap: 6px; padding-top: 12px; }
  .gallery__dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); transition: background .2s; }
  .gallery__dots span.on { background: var(--ink); }
  .guide, .co { grid-template-columns: 1fr; }
  .co__sum { position: static; order: -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scrollbar-width: none; }
  .toolbar .chips::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; }
  .toolbar__right { display: flex; justify-content: space-between; }
}

@media (max-width: 560px) {
  body { font-size: 14px; }
  .usp__grid { grid-template-columns: 1fr; }
  .usp__item + .usp__item { border-left: 0; border-top: 1px solid var(--line); }
  .usp__item { padding: 18px 0; }
  .materials { grid-template-columns: 1fr; }
  .material, .material + .material { padding: 24px 0 16px; border-left: 0; }
  .material + .material { border-top: 1px solid var(--line); }
  .section__head { flex-direction: column; align-items: flex-start; }
  .card__row { flex-direction: column; gap: 2px; }
  .card__name { font-size: 20px; }
  .field-row { grid-template-columns: 1fr; }
  .hero__materials { gap: 14px; flex-wrap: wrap; }
  .hero__materials span + span::before { margin-right: 14px; }
  .hero__actions .btn { flex: 1; }
  .cart__item { grid-template-columns: 72px 1fr auto; }
  .cart__item img { width: 72px; height: 72px; }
  .proto-badge { display: none; }
}

/* ---------- Motif brand (strip ikon logo, seperti di foto produk racabel.com) ---------- */
.motif {
  position: absolute; top: 0; bottom: 0; width: 30px; pointer-events: none;
  background: url("/aset/logo/motif-strip.png") repeat-y center top / 100% auto;
}
.hero { position: relative; }
.hero > .motif { left: max(8px, calc((100vw - var(--wrap)) / 2 - 56px)); opacity: .55; }
.help { isolation: isolate; }
.r-mark { position: absolute; z-index: -1; right: -40px; bottom: -70px; width: clamp(240px, 30vw, 420px); aspect-ratio: 881 / 900;
  background: url("/aset/logo/r-fragmen-putih.png") no-repeat center / contain; opacity: .12; pointer-events: none; }
@media (max-width: 1400px) { .hero > .motif { display: none; } }
@media (max-width: 860px) { .r-mark { width: 220px; right: -30px; bottom: -40px; } }
.tagline { font: 400 15px/1.4 var(--serif); color: var(--brand); letter-spacing: .2em; text-transform: uppercase; }

/* Perapian HP */
@media (max-width: 860px) {
  .hero__main, .gallery__main { border-radius: 0; }
}
@media (max-width: 560px) {
  .announce p { font-size: 11px; padding: 8px 12px; }
  .card__body { padding: 12px 12px 16px; }
  .card__name { font-size: 18px; }
}
.size-chart { width: 100%; border-radius: var(--radius-card); box-shadow: var(--shadow-card); background: #fff; }

/* ---------- Halaman Tentang / FAQ / Garansi ---------- */
.narrow { max-width: 860px; }
.about-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--brand); color: #fff; padding: clamp(48px, 7vw, 104px) 0 clamp(56px, 8vw, 120px); }
.about-hero .wrap { display: grid; gap: 22px; }
.about-hero .eyebrow { color: #B9B9E6; }
.about-hero .lead { color: #D9D9F2; max-width: 52ch; }
.about-hero .r-mark { right: -60px; bottom: -90px; width: clamp(280px, 38vw, 520px); }
.crumbs--light, .crumbs--light a { color: #B9B9E6; }
.crumbs--light span[aria-hidden] { color: #6E70B8; }
.logo-story { display: grid; grid-template-columns: 160px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(32px, 4vw, 48px); background: var(--surface); border-radius: var(--radius-card); }
.logo-story > div { display: grid; gap: 16px; }
.faq-group { margin-bottom: 40px; }
.faq-group__title { font: 600 12px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--brand); padding-bottom: 6px; border-bottom: 1px solid var(--line-2); }
.faq-group .acc summary { text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 500; }
.faq-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px; margin-bottom: clamp(64px, 8vw, 112px); background: var(--brand-tint); border-radius: var(--radius-card); }
.faq-cta p { font: 400 20px/1.2 var(--serif); text-transform: uppercase; letter-spacing: .03em; color: var(--brand); }
.draft-note { padding: 12px 16px; margin-bottom: 28px; border-left: 3px solid var(--cerulean); background: #F2F7FC; font-size: 13px; color: var(--ink-2); }
.steps-card { display: grid; gap: 24px; justify-items: start; padding: clamp(24px, 4vw, 40px); margin-bottom: clamp(64px, 8vw, 112px); background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.steps-card .steps { width: 100%; }
@media (max-width: 560px) { .logo-story { grid-template-columns: 1fr; } .logo-story img { width: 96px; height: 96px; } }

/* ---------- Tombol WhatsApp melayang ---------- */
.wa-fab {
  position: fixed; right: clamp(16px, 2.5vw, 28px); bottom: clamp(16px, 2.5vw, 28px); z-index: 50;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 10px 28px -8px rgba(18, 29, 61, .45);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.wa-fab svg { width: 30px; height: 30px; }
.wa-fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 16px 32px -10px rgba(18, 29, 61, .5); }
.wa-fab:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
body.locked .wa-fab { opacity: 0; pointer-events: none; }
.toast { bottom: 96px; }
@media (max-width: 560px) { .wa-fab { width: 54px; height: 54px; } }

/* ---------- Integrasi Scalev ---------- */
.card__badge--soon { background: #fff; color: var(--ink-2); border: 1px solid var(--line-2); }
.lok { position: relative; }
.lok__list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% - 18px); max-height: 280px; overflow: auto;
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-card); box-shadow: var(--shadow-lift); }
.lok__list li { padding: 11px 14px; font-size: 14px; cursor: pointer; border-bottom: 1px solid var(--line); }
.lok__list li:hover, .lok__list li:focus { background: var(--brand-tint); color: var(--brand); outline: none; }
select.input { appearance: auto; }
.pay label span small { color: var(--ink-3); font-weight: 400; }
.co__error { padding: 12px 14px; border-radius: var(--radius-card); background: #FDECEA; color: var(--danger); font-size: 13px; }
#coSubmit[disabled] { opacity: .6; cursor: progress; }

/* ---------- Checkout: logo pembayaran & tombol di bawah (revisi 20 Nov) ---------- */
.pay label.pay__opt { grid-template-columns: 20px 64px 1fr auto; }
.pay__logo { width: 64px; height: 28px; display: grid; place-items: center start; }
.pay__logo img { max-width: 64px; max-height: 26px; width: auto; height: auto; object-fit: contain; }
.co__bottom { display: none; gap: 14px; padding: 20px; border-radius: var(--radius-card); background: #fff; box-shadow: var(--shadow-card); }
@media (max-width: 860px) {
  .co__bottom { display: grid; }
  .co__sum .co__totals, .co__sum .co__error, .co__sum .co__submit, .co__sum > .small { display: none !important; }
}
@media (max-width: 560px) {
  .pay label.pay__opt { grid-template-columns: 18px 52px 1fr; }
  .pay label.pay__opt small { grid-column: 3; }
  .pay__logo { width: 52px; }
  .pay__logo img { max-width: 52px; }
}
.pay label.pay__opt small:empty { display: none; }
.pay label.pay__opt { padding: 12px 14px; }

/* ---------- Voucher ---------- */
.voucher { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.voucher .input { text-transform: uppercase; }
.voucher .btn { min-height: 46px; padding: 0 20px; }
.co__line--disc span:last-child { color: var(--teal); font-weight: 600; }
