/* ==========================================================================
   Larik — design system toko batik modern wanita
   Referensi: Buttonscarves (beranda berbasis koleksi, kartu produk, tab koleksi),
   Cottonink (utility bar, header wordmark tengah + nav baris kedua, ubin kategori
   berlabel putih, badge kotak kecil). Lihat study-cases/modest-fashion-brand-store/design-system.md
   ========================================================================== */

/* ---------- Token ---------- */
:root {
  --font: "Poppins", system-ui, sans-serif;
  --font-display: "Bodoni Moda", Georgia, serif;   /* hanya judul koleksi */

  --ink: #1c1c1c;        /* teks, tombol utama, blok gelap */
  --ink-2: #6b6b6b;      /* meta, harga sekunder */
  --ink-3: #a6a6a6;      /* nonaktif */
  --line: #e5e5e5;
  --line-2: #cfcfcf;
  --bg: #ffffff;
  --tile: #ededed;       /* latar ubin foto (Buttonscarves) */
  --soft: #f5f5f5;       /* field, baris tabel */
  --brand: #8a2338;      /* marun dari warna tombol situs asli, dijenuhkan */
  --brand-soft: #f6e9ec; /* hanya elemen kecil: pill PO, pilihan terpilih */
  --ok: #1f7a4d;
  --warn: #b45309;

  --r-xs: 2px;
  --r-sm: 4px;
  --r-pill: 999px;
  --sh-pop: 0 8px 32px rgba(0, 0, 0, .14);

  --w: 1320px;
  --gutter: 40px;
}
@media (max-width: 720px) { :root { --gutter: 16px; } }

/* ---------- Dasar ---------- */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font: 400 14px/1.6 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img { display: block; max-width: 100%; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }
[data-lucide] { width: 20px; height: 20px; stroke-width: 1.5; flex: none; }
.i-sm { width: 16px; height: 16px; }

/* Router layar (lapak.js) */
[data-screen] { display: none; }
[data-screen].is-active { display: block; }

.wrap { max-width: calc(var(--w) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Tipografi ---------- */
.t-display { font: 400 76px/1 var(--font-display); letter-spacing: .01em; text-transform: uppercase; }
.t-display--md { font-size: 52px; }
.t-h1 { font: 500 30px/1.25 var(--font); letter-spacing: -0.01em; }
.t-h2 { font: 500 22px/1.3 var(--font); letter-spacing: -0.005em; }
.t-h3 { font: 500 16px/1.4 var(--font); }
.t-meta { font-size: 13px; color: var(--ink-2); }
.t-small { font-size: 12px; color: var(--ink-2); }
.sec-title { text-align: center; font: 500 22px/1.3 var(--font); margin-bottom: 28px; }
@media (max-width: 720px) { .t-display { font-size: 44px; } .t-display--md { font-size: 34px; } .t-h1 { font-size: 24px; } .sec-title { font-size: 19px; } }

/* ---------- Tombol ---------- */
.btn { height: 46px; padding: 0 28px; border-radius: var(--r-pill); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 500; font-size: 14px; white-space: nowrap; border: 1px solid transparent; transition: background .15s, color .15s; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #3a3a3a; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: #721b2d; }
.btn-light { background: #fff; color: var(--ink); }
.btn-outline { background: #fff; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--soft); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 13px; }
.btn-block { width: 100%; }
.link { text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }

/* ---------- Utility bar + header (Cottonink) ---------- */
.utility { background: var(--brand); color: #fff; font-size: 12.5px; }
.utility .wrap { height: 38px; display: flex; align-items: center; gap: 16px; }
.utility__msg { flex: 1; text-align: center; }
.utility__side { display: flex; gap: 14px; align-items: center; min-width: 120px; }
.utility__side:last-child { justify-content: flex-end; }
.utility [data-lucide] { width: 16px; height: 16px; }
@media (max-width: 720px) { .utility__side { display: none; } .utility .wrap { height: auto; padding-top: 8px; padding-bottom: 8px; line-height: 1.4; } }

.header { border-bottom: 1px solid var(--line); background: #fff; }
.header__top { height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.header__left, .header__right { display: flex; gap: 18px; align-items: center; }
.header__right { justify-content: flex-end; }
.header__search { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13px; }
.logo { font: 500 26px/1 var(--font); letter-spacing: .32em; padding-left: .32em; }
.cart-ico { position: relative; }
.cart-ico b { position: absolute; top: -6px; right: -8px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 10.5px; font-weight: 600; display: grid; place-items: center; padding: 0 4px; }
.nav { display: flex; justify-content: center; gap: 28px; height: 44px; align-items: flex-start; font-size: 13.5px; overflow-x: auto; scrollbar-width: none; }
.nav a { white-space: nowrap; padding-bottom: 10px; border-bottom: 1.5px solid transparent; }
.nav a.is-active { border-color: var(--ink); }
.nav .nav--sale { color: var(--brand); font-weight: 500; }
@media (max-width: 720px) {
  .header__top { height: 60px; }
  .header__search span, .header__left .hide-m { display: none; }
  .logo { font-size: 20px; }
  .nav { justify-content: flex-start; gap: 20px; }
}

/* ---------- Hero koleksi (Buttonscarves) ---------- */
.hero { position: relative; height: 640px; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--ink); overflow: hidden; }
.hero .photo { aspect-ratio: auto; height: 100%; border-radius: 0; }
.hero .photo > img { object-position: 50% 18%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.62) 100%); pointer-events: none; }
.hero__text { position: absolute; left: 0; right: 0; bottom: 56px; z-index: 2; color: #fff; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 0 var(--gutter); }
.hero__text p { max-width: 560px; font-size: 15px; }
.hero__cta { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }
.btn-ghost-w { border-color: rgba(255,255,255,.8); color: #fff; background: transparent; }
.btn-ghost-w:hover { background: rgba(255,255,255,.12); }
@media (max-width: 720px) { .hero { height: 560px; grid-template-columns: 1fr; } .hero .photo:not(:first-child) { display: none; } }

/* ---------- Foto ---------- */
.photo { position: relative; aspect-ratio: var(--ar, 2 / 3); overflow: hidden; background: var(--tile); }
.photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Ubin kategori (Cottonink: label putih di foto) ---------- */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat { position: relative; display: block; }
.cat .photo { --ar: 3 / 4; }
.cat__label { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); background: #fff; padding: 9px 22px; font-size: 13px; font-weight: 500; white-space: nowrap; }
@media (max-width: 720px) { .cats { grid-template-columns: 1fr 1fr; gap: 8px; } .cat__label { bottom: 12px; padding: 7px 14px; font-size: 12px; } }

/* ---------- Banner koleksi + tab (Buttonscarves) ---------- */
.banner { position: relative; display: grid; grid-template-columns: 1fr 1fr; height: 460px; overflow: hidden; background: var(--ink); }
.banner .photo { aspect-ratio: auto; height: 100%; }
.banner .photo > img { object-position: 50% 22%; }
.banner__title { position: absolute; left: 48px; bottom: 40px; color: #fff; z-index: 2; display: flex; flex-direction: column; gap: 6px; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.5) 0, rgba(0,0,0,0) 55%); }
.lede { max-width: 640px; margin: 28px auto 0; text-align: center; color: #3d3d3d; font-size: 14.5px; }
.ctabs { display: flex; justify-content: center; gap: 28px; margin: 22px 0 22px; }
.ctabs button { font-size: 14px; color: var(--ink-2); padding: 4px 6px 8px; border-bottom: 2px solid transparent; }
.ctabs button.is-active { color: var(--ink); border-color: #bdbdbd; }
@media (max-width: 720px) { .banner { height: 360px; grid-template-columns: 1fr; } .banner .photo:nth-child(2) { display: none; } .banner__title { left: 20px; bottom: 24px; } }

/* ---------- Kartu produk ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 6px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); gap: 32px 8px; }
@media (max-width: 1024px) { .grid, .grid--3 { grid-template-columns: repeat(2, 1fr); } }
.card { display: flex; flex-direction: column; gap: 10px; text-align: center; }
.card__media { position: relative; }
.card__fav, .card__add { position: absolute; width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.card__fav { top: 12px; right: 12px; }
.card__add { bottom: 12px; right: 12px; }
.card__fav.is-on svg { fill: var(--brand); stroke: var(--brand); }
.card__name { font-size: 13.5px; }
.card__price { font-size: 13px; color: var(--ink-2); margin-top: -6px; }
.card__price s { margin-left: 6px; color: var(--ink-3); }
.card__price .sale { color: var(--brand); }
.card__sizes { display: flex; justify-content: center; gap: 8px; font-size: 11.5px; color: var(--ink-2); margin-top: -4px; }
.card__sizes s { color: var(--ink-3); }
.card__sizes .po { color: var(--brand); }
.badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.badge { font-size: 11px; font-weight: 500; line-height: 1; padding: 5px 7px; background: var(--ink); color: #fff; border-radius: var(--r-xs); }
.badge--brand { background: var(--brand); }
.badge--light { background: #fff; color: var(--ink); }
.card.is-soldout .photo > img { opacity: .55; }
@media (max-width: 720px) { .card__fav, .card__add { width: 34px; height: 34px; } }

/* ---------- Jadwal drop (tabel bergaris) ---------- */
.drops { border-top: 1px solid var(--ink); }
.drop { display: grid; grid-template-columns: 88px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.drop .photo { --ar: 1 / 1; width: 88px; }
.drop__name { font-weight: 500; font-size: 15px; }
.meter { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; margin-top: 8px; }
.meter > span { display: block; height: 100%; background: var(--brand); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 500; background: var(--soft); white-space: nowrap; }
.pill--brand { background: var(--brand-soft); color: var(--brand); }
.pill--ok { background: #e8f3ed; color: var(--ok); }
.pill--warn { background: #fdf1e3; color: var(--warn); }
@media (max-width: 860px) { .drop { grid-template-columns: 64px minmax(0, 1fr); gap: 8px 16px; } .drop .photo { width: 64px; grid-row: span 3; } .drop > :last-child { justify-self: start; } }

/* ---------- Blok gelap (reseller) ---------- */
.dark-band { display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); color: #fff; }
.dark-band .photo { --ar: auto; height: 100%; min-height: 460px; }
.dark-band__body { padding: 64px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.25); }
.tiers > div { padding: 16px 16px 0 0; }
.tiers b { display: block; font-size: 26px; font-weight: 500; }
.tiers span { font-size: 12.5px; color: rgba(255,255,255,.7); }
@media (max-width: 860px) { .dark-band { grid-template-columns: 1fr; } .dark-band .photo { min-height: 320px; } .dark-band__body { padding: 32px 16px; } }

/* ---------- Baris layanan ---------- */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.perk { display: flex; gap: 12px; padding: 22px 20px; align-items: flex-start; font-size: 13px; }
.perk + .perk { border-left: 1px solid var(--line); }
.perk b { display: block; font-weight: 500; font-size: 14px; }
@media (max-width: 860px) { .perks { grid-template-columns: 1fr 1fr; } .perk:nth-child(3) { border-left: 0; } .perk:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 32px; margin-top: 72px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; font-size: 13px; }
.footer h4 { font-size: 14px; font-weight: 500; margin-bottom: 14px; }
.footer li + li { margin-top: 8px; }
.footer a { color: var(--ink-2); }
.news { display: flex; gap: 8px; margin-top: 14px; max-width: 380px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Field ---------- */
.field { height: 44px; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 0 14px; background: #fff; width: 100%; font-size: 13.5px; outline: 0; }
.field:focus { border-color: var(--ink); }
.check { display: flex; align-items: center; gap: 10px; font-size: 13.5px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--ink); margin: 0; }
.check small { margin-left: auto; color: var(--ink-3); font-size: 12px; }

/* ---------- Katalog ---------- */
.crumb { font-size: 12.5px; color: var(--ink-2); padding: 18px 0 0; }
.crumb a:hover { color: var(--ink); }
.cat-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 14px 0 22px; }
.catalog { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 40px; align-items: start; }
.filters { position: sticky; top: 16px; }
.fgroup { border-top: 1px solid var(--line); padding: 16px 0 18px; display: flex; flex-direction: column; gap: 10px; }
.fgroup h4 { font-size: 13.5px; font-weight: 500; display: flex; justify-content: space-between; align-items: center; }
.sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.size { min-width: 44px; height: 38px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm); font-size: 13px; display: inline-flex; align-items: center; justify-content: center; background: #fff; }
.size.is-active, .size.is-selected { border-color: var(--ink); background: var(--ink); color: #fff; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.sw { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); outline: 1.5px solid transparent; outline-offset: 2px; }
.sw.is-active { outline-color: var(--ink); }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.fchip { height: 32px; padding: 0 10px 0 12px; border-radius: var(--r-pill); background: var(--soft); font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; }
.fchip svg { width: 14px; height: 14px; }
.sort { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.sort select { height: 36px; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 0 10px; background: #fff; }
.empty-note { grid-column: 1 / -1; text-align: center; padding: 48px 0; color: var(--ink-2); }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.pager a { width: 38px; height: 38px; display: grid; place-items: center; font-size: 13px; border-radius: 50%; }
.pager a.is-active { background: var(--ink); color: #fff; }
.filter-btn { display: none; }
@media (max-width: 960px) {
  .catalog { grid-template-columns: 1fr; }
  .filters { display: none; position: static; }
  .filters.is-open { display: block; }
  .filter-btn { display: inline-flex; }
  .cat-head { flex-direction: column; align-items: flex-start; }
  .sort { margin-left: 0; }
}

/* ---------- Halaman produk (Dawn: media dua kolom + info sticky) ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 12px; }
.media { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.media .photo:first-child { grid-column: 1 / -1; --ar: 4 / 5; }
.media .photo:first-child > img { object-position: 50% 20%; }
.info { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 20px; }
.info__price { font-size: 19px; font-weight: 500; }
.opt-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; margin-bottom: 10px; }
.opt-head b { font-weight: 500; }
.colors { display: flex; gap: 10px; }
.color { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; color: var(--ink-2); }
.color .sw { width: 34px; height: 34px; }
.color.is-selected .sw { outline-color: var(--ink); }
.vsizes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.vsize { height: 52px; border: 1px solid var(--line-2); border-radius: var(--r-sm); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 14px; font-weight: 500; background: #fff; }
.vsize small { font-size: 10.5px; font-weight: 400; color: var(--ink-2); }
.vsize.is-po small { color: var(--brand); }
.vsize.is-low small { color: var(--warn); }
.vsize.is-selected { border: 1.5px solid var(--ink); }
.notice { display: flex; gap: 12px; padding: 14px 16px; background: var(--brand-soft); border-radius: var(--r-sm); font-size: 13px; color: #4a1520; }
.notice svg { color: var(--brand); margin-top: 1px; }
.notice--plain { background: var(--soft); color: var(--ink); }
.notice--plain svg { color: var(--ink-2); }
.buy { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 10px; }
.stepper { height: 46px; border: 1px solid var(--line-2); border-radius: var(--r-pill); display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; text-align: center; }
.stepper button { height: 100%; display: grid; place-items: center; }
.stepper output { font-weight: 500; }
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 15px 0; display: flex; justify-content: space-between; align-items: center; font-weight: 500; font-size: 14px; }
.acc summary::-webkit-details-marker { display: none; }
.acc details[open] summary svg { transform: rotate(45deg); }
.acc .acc__body { padding: 0 0 16px; font-size: 13.5px; color: #3d3d3d; }
.acc .acc__body li { padding-left: 14px; position: relative; }
.acc .acc__body li::before { content: ""; position: absolute; left: 0; top: .7em; width: 5px; height: 1px; background: var(--ink-2); }
@media (max-width: 960px) { .pdp { grid-template-columns: 1fr; gap: 28px; } .info { position: static; } .media { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 86%; overflow-x: auto; scrollbar-width: none; } .media .photo:first-child { grid-column: auto; --ar: 2 / 3; } }

/* ---------- Drawer (panduan ukuran, keranjang) ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: #fff; z-index: 41; display: flex; flex-direction: column; box-shadow: var(--sh-pop); }
.drawer__head { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; border-bottom: 1px solid var(--line); flex: none; }
.drawer__body { padding: 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; flex: 1; }
.drawer__foot { padding: 20px 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; flex: none; }
.seg { display: inline-flex; background: var(--soft); border-radius: var(--r-pill); padding: 3px; }
.seg button { height: 32px; padding: 0 16px; border-radius: var(--r-pill); font-size: 13px; }
.seg button.is-active { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); font-weight: 500; }
.stable { font-size: 13px; }
.stable th, .stable td { padding: 10px 8px; text-align: center; border-bottom: 1px solid var(--line); }
.stable th { font-weight: 500; background: var(--soft); }
.stable td:first-child, .stable th:first-child { text-align: left; }
.stable tr.is-hl td { background: var(--brand-soft); font-weight: 500; }
.calc { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; }
.calc label { font-size: 12px; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }
.line-item { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.line-item .photo { width: 76px; }
.sum-row { display: flex; justify-content: space-between; font-size: 14px; }

/* ---------- Reseller: lembar order grosir ---------- */
.rs-head { display: flex; align-items: center; gap: 16px; padding: 28px 0 8px; flex-wrap: wrap; }
.rs-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 500; font-size: 16px; }
.utabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin: 16px 0 24px; overflow-x: auto; scrollbar-width: none; }
.utabs button { padding: 12px 0; font-size: 14px; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.utabs button.is-active { color: var(--ink); border-color: var(--ink); font-weight: 500; }
.tierbar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 10px; }
.tierbar > div { padding: 10px 12px; background: var(--soft); font-size: 12.5px; border-top: 3px solid var(--line-2); }
.tierbar > div b { display: block; font-size: 13.5px; font-weight: 500; }
.tierbar > div.is-on { border-color: var(--brand); background: var(--brand-soft); }
.sheet-wrap { overflow-x: auto; border: 1px solid var(--line); }
.sheet { min-width: 920px; font-size: 13px; }
.sheet th { text-align: left; font-weight: 500; font-size: 12px; color: var(--ink-2); padding: 10px 12px; background: var(--soft); border-bottom: 1px solid var(--line); white-space: nowrap; }
.sheet td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.sheet tr:last-child td { border-bottom: 0; }
.sheet .c { text-align: center; }
.sheet .r { text-align: right; white-space: nowrap; }
.prod { display: flex; gap: 12px; align-items: center; }
.prod .photo { width: 44px; flex: none; }
.qty { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.qty input { width: 54px; height: 34px; text-align: center; border: 1px solid var(--line-2); border-radius: var(--r-sm); font-size: 13.5px; outline: 0; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty input:focus { border-color: var(--ink); }
.qty input.has-val { border-color: var(--ink); font-weight: 600; }
.qty small { font-size: 10.5px; color: var(--ink-3); }
.qty small.po { color: var(--brand); }
.orderbar { position: sticky; bottom: 0; z-index: 5; background: var(--ink); color: #fff; margin-top: 24px; }
.orderbar .wrap { min-height: 76px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.orderbar dl { display: flex; flex-direction: column; }
.orderbar dt { font-size: 11.5px; color: rgba(255,255,255,.65); }
.orderbar dd { font-size: 16px; font-weight: 500; }
.orderbar .check { color: #fff; }
.orderbar .check input { accent-color: #fff; }
.orderbar .btn { margin-left: auto; }
.track { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tcard { border: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding-top: 18px; font-size: 12px; color: var(--ink-3); }
.step::before { content: ""; position: absolute; top: 4px; left: 0; right: 0; height: 2px; background: var(--line); }
.step::after { content: ""; position: absolute; top: 0; left: 0; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--line-2); }
.step.is-done { color: var(--ink); }
.step.is-done::before { background: var(--ink); }
.step.is-done::after { background: var(--ink); border-color: var(--ink); }
.step.is-now { color: var(--brand); font-weight: 500; }
.step.is-now::after { border-color: var(--brand); background: var(--brand); }
.step b { display: block; font-weight: 500; }
@media (max-width: 860px) { .track { grid-template-columns: 1fr; } .orderbar .wrap { gap: 14px 20px; } .orderbar .btn { margin-left: 0; width: 100%; } }
@media (max-width: 720px) {
  .buy { grid-template-columns: 104px minmax(0, 1fr); }
  .buy .btn { padding: 0 12px; font-size: 12.5px; }
  .orderbar dl:nth-child(2), .orderbar dl:nth-child(3) { display: none; }
  .orderbar .wrap { min-height: 0; }
}
.drawer__body .seg { align-self: flex-start; }
