/* ==========================================================================
   Components — tombol, input, kartu produk, overlay, toast, tab, accordion,
   ticket, progress ring, feature card, stat list, skeleton, empty state
   ========================================================================== */

/* ---------- Buttons (pill) ---------- */
.btn {
  --btn-bg: var(--l1);
  --btn-fg: var(--tx-1);
  --btn-bd: var(--line-field);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--pill);
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: .9375rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { background: var(--l2); }
.btn:active { transform: scale(.96); }
.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--l2);
  border-color: var(--line);
  color: var(--tx-4);
  transform: none;
}
.btn--primary { --btn-bg: var(--brand); --btn-fg: var(--on-brand); --btn-bd: var(--brand); }
.btn--primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn--ink { --btn-bg: var(--ink); --btn-fg: var(--on-ink); --btn-bd: var(--ink); }
.btn--ink:hover { background: #2F3329; }
.btn--signal { --btn-bg: var(--signal-strong); --btn-fg: var(--on-signal); --btn-bd: var(--signal-strong); }
.btn--signal:hover { background: #9F370C; }
.btn--light { --btn-bg: #FFFFFF; --btn-fg: #1B1E17; --btn-bd: #FFFFFF; }
.btn--light:hover { background: var(--l0); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #FFFFFF; --btn-bd: rgba(255, 255, 255, .7); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: var(--fs-sm); }
.btn--block { width: 100%; }
.btn.is-loading { color: transparent; position: relative; pointer-events: none; }
.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--btn-fg);
  border-right-color: transparent;
  animation: spin .7s linear infinite;
}
@media (max-width: 359px) { .btn { padding: 0 18px; } }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform var(--dur-2) var(--ease); }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover svg { transform: translateX(3px); }

.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 44px;
  border-radius: var(--pill);
  color: var(--tx-1);
  text-decoration: none;
  transition: background-color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.icon-btn:hover { background: var(--l2); }
.icon-btn:active { transform: scale(.96); }
.icon-btn svg { width: 22px; height: 22px; }
@media (min-width: 1024px) { .icon-btn { width: 44px; } }
.icon-btn--line { border: 1px solid var(--line-strong); background: var(--l1); }
.icon-btn:disabled { color: var(--tx-4); background: none; }
.count {
  position: absolute;
  top: 4px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--pill);
  background: var(--brand);
  color: var(--on-brand);
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}
.count.is-bump { animation: rise-in var(--dur-3) var(--ease); }

/* ---------- Search ---------- */
.search__field { position: relative; display: flex; align-items: center; }
.search__icon { position: absolute; left: 16px; width: 18px; height: 18px; color: var(--tx-3); pointer-events: none; }
.search input {
  width: 100%;
  height: 46px;
  padding: 0 96px 0 44px;
  border-radius: var(--pill);
  border: 1px solid var(--line-field);
  background: var(--l0);
  font-size: 1rem;
  transition: border-color var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease);
}
.search input::placeholder { color: var(--tx-3); }
.search input:focus { outline: none; border-color: var(--brand); background: var(--l1); box-shadow: 0 0 0 3px var(--brand-tint); }
.search input::-webkit-search-cancel-button { display: none; }
.search__btn {
  position: absolute;
  right: 4px;
  height: 38px;
  padding: 0 18px;
  border-radius: var(--pill);
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 600;
  font-size: var(--fs-sm);
}
.search__btn:hover { background: var(--brand-hover); }
.search__btn:active { transform: scale(.96); }
.search__panel {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 6px);
  z-index: 5;
  background: var(--l1);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  max-height: min(70vh, 460px);
  overflow-y: auto;
  padding: 6px;
  animation: rise-in var(--dur-1) var(--ease);
}
.search__group { padding: 8px 10px 4px; font-size: var(--fs-xs); font-weight: 600; color: var(--tx-3); }
.search__opt {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 6px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  min-height: 48px;
}
.search__opt > * { min-width: 0; }
.search__opt img { width: 40px; height: 40px; object-fit: cover; border-radius: var(--radius); background: var(--l2); }
.search__opt .cat-ico { width: 40px; height: 40px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); border-radius: var(--radius); }
.search__opt .cat-ico svg { width: 18px; height: 18px; }
.search__opt strong { display: block; font-weight: 500; font-size: var(--fs-sm); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search__opt small { color: var(--tx-3); font-size: var(--fs-xs); }
.search__opt mark { background: none; color: var(--brand); font-weight: 700; }
.search__opt[aria-selected="true"], .search__opt:hover { background: var(--l2); }
.search__empty { padding: 14px 10px; color: var(--tx-2); font-size: var(--fs-sm); }
.search__all { display: block; padding: 12px 10px; border-top: 1px solid var(--line); margin-top: 6px; font-weight: 600; color: var(--brand); text-decoration: none; font-size: var(--fs-sm); }

/* ---------- Badges & pills ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--pill);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.badge--sale { background: var(--signal-strong); color: var(--on-signal); }
.badge--new { background: var(--ink); color: var(--on-ink); }
.badge--best { background: var(--brand); color: var(--on-brand); }
.badge--soft { background: var(--l2); color: var(--tx-2); }
.badge--ok { background: var(--success-tint); color: var(--success); }

/* Pill filter aktif (bisa dihapus) */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 8px 0 14px;
  border-radius: var(--pill);
  border: 1px solid var(--line-strong);
  background: var(--l1);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.pill svg { width: 16px; height: 16px; }
.pill:hover { border-color: var(--line-field); }
.pill:active { transform: scale(.96); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- Tab bar bergaris bawah (navigasi kategori) ---------- */
.tabbar {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line-strong);
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
}
.tabbar::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .tabbar { margin-inline: 0; padding-inline: 0; } }
.tabbar__btn {
  position: relative;
  flex: none;
  min-height: 46px;
  padding: 0 12px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--tx-2);
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--dur-1) var(--ease);
}
.tabbar__btn:first-child { margin-left: -12px; }
@media (max-width: 1023px) { .tabbar__btn:first-child { margin-left: 0; } }
.tabbar__btn::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: -1px;
  height: 3px;
  background: var(--brand);
  transform: scaleX(0);
  transition: transform var(--dur-2) var(--ease);
}
.tabbar__btn:hover { color: var(--tx-1); }
.tabbar__btn[aria-selected="true"], .tabbar__btn[aria-pressed="true"], .tabbar__btn[aria-current="true"] { color: var(--tx-1); font-weight: 600; }
.tabbar__btn[aria-selected="true"]::after, .tabbar__btn[aria-pressed="true"]::after, .tabbar__btn[aria-current="true"]::after { transform: scaleX(1); }
.tabbar__btn small { color: var(--tx-3); font-weight: 400; font-size: var(--fs-xs); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; min-width: 0; }
.field__label { font-weight: 600; font-size: var(--fs-sm); color: var(--tx-1); }
.field__label .opt { font-weight: 400; color: var(--tx-3); }
.field__hint { font-size: var(--fs-xs); color: var(--tx-3); }
.field__error { display: none; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--error); font-weight: 500; }
.field__error svg { width: 16px; height: 16px; flex: none; }
.field.is-invalid .field__error { display: flex; }
.input, .select, .textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line-field);
  border-radius: var(--radius-lg);
  background: var(--l1);
  color: var(--tx-1);
  font-size: 1rem;
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23474C3F' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}
.input::placeholder, .textarea::placeholder { color: var(--tx-3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--tx-2); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.input:disabled, .select:disabled { background: var(--l2); color: var(--tx-4); }
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { border-color: var(--error); box-shadow: 0 0 0 3px var(--error-tint); }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.form-grid > * { min-width: 0; }
@media (min-width: 768px) {
  .form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid .span-2 { grid-column: 1 / -1; }
}
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; font-size: var(--fs-sm); }
.check input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; margin: 0; }
.check small { color: var(--tx-3); margin-left: auto; }

.alert {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  font-size: var(--fs-sm);
  border: 1px solid transparent;
}
.alert svg { width: 20px; height: 20px; }
.alert--ok { background: var(--success-tint); color: var(--success); border-color: rgba(52, 107, 63, .25); }
.alert--err { background: var(--error-tint); color: var(--error); border-color: rgba(179, 38, 30, .25); }
.alert--info { background: var(--l2); color: var(--tx-2); }
.alert strong { font-weight: 600; }

/* Qty stepper */
.qty {
  display: inline-grid;
  grid-template-columns: 44px 48px 44px;
  align-items: center;
  height: 46px;
  border: 1px solid var(--line-field);
  border-radius: var(--pill);
  background: var(--l1);
  overflow: hidden;
}
.qty button { height: 100%; display: grid; place-items: center; color: var(--tx-1); }
.qty button:hover { background: var(--l2); }
.qty button:disabled { color: var(--tx-4); background: none; }
.qty button svg { width: 16px; height: 16px; }
.qty input {
  width: 100%;
  height: 100%;
  border: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 500;
  background: transparent;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm { grid-template-columns: 40px 40px 40px; height: 40px; }

/* ---------- Swatch & size ---------- */
.swatches { display: flex; flex-wrap: wrap; gap: 4px; }
.swatch-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--sw);
  box-shadow: inset 0 0 0 1px rgba(27, 30, 23, .2);
}
.swatch-opt {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: border-color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.swatch-opt span { width: 30px; height: 30px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(27, 30, 23, .22); }
.swatch-opt:hover { border-color: var(--line-field); }
.swatch-opt[aria-checked="true"], .swatch-opt[aria-pressed="true"] { border: 2px solid var(--tx-1); }
.swatch-opt:active { transform: scale(.96); }

.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size-opt {
  min-width: 52px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--pill);
  border: 1px solid var(--line-field);
  background: var(--l1);
  font-weight: 500;
  font-size: var(--fs-sm);
  transition: border-color var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.size-opt:hover:not(:disabled) { border-color: var(--tx-1); }
.size-opt:active:not(:disabled) { transform: scale(.96); }
.size-opt[aria-checked="true"], .size-opt[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.size-opt:disabled { color: var(--tx-4); text-decoration: line-through; background: var(--l2); border-color: var(--line); }

/* ---------- Price ---------- */
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.price__now { font-weight: 600; color: var(--tx-1); }
.price__now--sale { color: var(--signal-strong); }
.price__was { color: var(--tx-3); text-decoration: line-through; font-size: .85em; }
.price__off { color: var(--signal-strong); font-weight: 600; font-size: .85em; }

/* Rating sebagai meter segmen (tanpa ikon bintang) */
.rating { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--tx-2); }
.rating strong { color: var(--tx-1); font-weight: 600; }
.rating__bar { display: inline-flex; gap: 2px; }
.rating__bar i { width: 10px; height: 4px; border-radius: 2px; background: var(--l3); }
.rating__bar i.on { background: var(--coyote); }

/* ---------- Product card ---------- */
.card { position: relative; display: grid; grid-template-rows: auto 1fr; gap: 10px; min-width: 0; }
.card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--l2);
}
.card__link { position: absolute; inset: 0; display: block; }
.card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--dur-3) var(--ease), transform 600ms var(--ease);
}
.card__img--alt { opacity: 0; }
@media (hover: hover) {
  .card:hover .card__img--alt, .card:focus-within .card__img--alt { opacity: 1; }
  .card:hover .card__img { transform: scale(1.03); }
}
.card__badges { position: absolute; top: 8px; left: 8px; display: flex; flex-wrap: wrap; gap: 4px; pointer-events: none; }
.card__wish {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--tx-1);
}
.card__wish span {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  transition: transform var(--dur-1) var(--ease);
}
.card__wish svg { width: 18px; height: 18px; }
.card__wish:active span { transform: scale(.9); }
.card__wish[aria-pressed="true"] { color: var(--signal-strong); }
.card__wish[aria-pressed="true"] svg { fill: currentColor; }

.card__quick {
  position: absolute;
  left: 8px; right: 8px; bottom: 8px;
  display: none;
  gap: 6px;
  padding: 8px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line);
}
.card__quick p { font-size: var(--fs-xs); font-weight: 600; color: var(--tx-2); display: flex; justify-content: space-between; gap: 8px; }
.card__quick p button { color: var(--brand); font-weight: 600; text-decoration: underline; min-height: 24px; }
.card__quick .q-sizes { display: flex; flex-wrap: wrap; gap: 4px; }
.card__quick .q-sizes button {
  min-width: 36px;
  min-height: 32px;
  padding: 0 8px;
  border-radius: var(--pill);
  border: 1px solid var(--line-field);
  font-size: var(--fs-xs);
  font-weight: 600;
  background: var(--l1);
}
.card__quick .q-sizes button:hover:not(:disabled) { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.card__quick .q-sizes button:disabled { color: var(--tx-4); text-decoration: line-through; border-color: var(--line); }
@media (hover: hover) and (min-width: 1024px) {
  .card__quick { display: grid; opacity: 0; transform: translateY(8px); transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease); }
  .card:hover .card__quick, .card__quick:focus-within { opacity: 1; transform: none; }
}
.card__plus {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
}
.card__plus span {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-ink);
}
.card__plus svg { width: 18px; height: 18px; }
.card__plus:active span { transform: scale(.9); }
@media (hover: hover) and (min-width: 1024px) { .card__plus { display: none; } }

.card__body { display: grid; gap: 5px; align-content: start; min-width: 0; }
.card__spec { font-family: var(--font-mono); font-size: 11px; color: var(--tx-3); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__name {
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
.card__name a { text-decoration: none; }
.card__name a:hover { text-decoration: underline; }
.card__price { font-size: .9375rem; }
.card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.card__sold { font-size: var(--fs-xs); color: var(--tx-3); }

/* Flash card ring */
.card__flash { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--tx-2); font-weight: 500; }

/* ---------- Progress ring ---------- */
.ring { --p: 50; --size: 40px; --ring-c: var(--signal); position: relative; width: var(--size); height: var(--size); flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4; }
.ring .ring__track { stroke: var(--l3); }
.ring .ring__val {
  stroke: var(--ring-c);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--p));
  transition: stroke-dashoffset 900ms var(--ease);
}
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-mono); font-size: 10px; font-weight: 500; color: var(--tx-1); }

/* ---------- Ticket / voucher bertakik ---------- */
.ticket {
  --notch: 12px;
  position: relative;
  border-radius: var(--radius-lg);
  -webkit-mask:
    radial-gradient(circle var(--notch) at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle var(--notch) at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle var(--notch) at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle var(--notch) at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
}
.ticket__cut { border-left: 2px dashed currentColor; opacity: .35; align-self: stretch; }

/* ---------- Feature card: warna solid kiri memudar ke foto kanan ---------- */
.feat-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.feat-grid > * { min-width: 0; }
@media (min-width: 768px) { .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .feat-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .feat-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feat {
  --feat-bg: var(--l1);
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 18px;
  min-height: 188px;
  height: 100%;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--feat-bg);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  color: var(--tx-1);
  transition: transform var(--dur-3) var(--ease);
}
.feat:hover { transform: translateY(-3px); }
.feat__photo {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 50%;
  z-index: -1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 45%);
  mask-image: linear-gradient(to right, transparent 0%, #000 45%);
}
.feat__photo img { width: 100%; height: 100%; object-fit: cover; opacity: 1; transition: transform 600ms var(--ease); }
.feat:hover .feat__photo img { transform: scale(1.07); }
.feat__text { max-width: 50%; display: grid; gap: 6px; }
.feat__icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
}
.feat__icon svg { width: 20px; height: 20px; }
.feat h3 { font-size: 1.375rem; color: var(--tx-1); }
.feat p { font-size: var(--fs-sm); color: var(--tx-2); line-height: 1.5; }
.feat--brand { --feat-bg: var(--brand); border-color: var(--brand); color: #FFFFFF; }
.feat--brand h3 { color: #FFFFFF; }
.feat--brand p { color: var(--on-brand-2); }
.feat--brand .feat__icon { background: rgba(255, 255, 255, .16); color: #FFFFFF; }

/* ---------- Stat list & bento ---------- */
.stat-list { display: grid; }
.stat-list li {
  display: grid;
  grid-template-columns: minmax(96px, auto) minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding-block: 14px;
  border-top: 1px solid var(--line);
}
.stat-list li:last-child { border-bottom: 1px solid var(--line); }
.stat-list b { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); line-height: 1; color: var(--tx-1); }
.stat-list span { color: var(--tx-2); font-size: var(--fs-sm); }
.bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.bento > * { min-width: 0; }
@media (min-width: 768px) { .bento { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.bento__hero {
  display: grid;
  align-content: space-between;
  gap: 24px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--brand);
  color: #FFFFFF;
  min-height: 220px;
}
.bento__hero b { font-family: var(--font-display); font-weight: 700; font-size: clamp(4rem, 3rem + 4vw, 6.5rem); line-height: .9; color: #FFFFFF; }
.bento__hero p { color: var(--on-brand-2); max-width: 30ch; }
.bento__hero strong { color: #FFFFFF; font-weight: 600; }
.bento__list { padding: 8px 20px; border-radius: var(--radius-lg); background: var(--l1); border: 1px solid var(--line); }
.bento__list .stat-list li:first-child { border-top: 0; }
.bento__list .stat-list li:last-child { border-bottom: 0; }

/* ---------- Overlay system (drawer, modal, sheet, lightbox) ---------- */
.ovl {
  position: fixed;
  inset: 0;
  z-index: 100;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear var(--dur-3);
}
.ovl.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.ovl__backdrop {
  position: absolute;
  inset: 0;
  background: var(--scrim);
  opacity: 0;
  transition: opacity var(--dur-3) var(--ease);
}
.ovl.is-open .ovl__backdrop { opacity: 1; }
.ovl__panel {
  position: absolute;
  display: flex;
  flex-direction: column;
  background: var(--l1);
  color: var(--tx-1);
  max-height: 100%;
  outline: none;
  transition: transform var(--dur-3) var(--ease), opacity var(--dur-3) var(--ease);
}
.ovl__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 20px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.ovl__head h2 { font-size: 1.5rem; }
.ovl__body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 20px; min-height: 0; }
.ovl__foot { flex: none; padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 10px; background: var(--l1); }

.ovl--right .ovl__panel { top: 0; right: 0; bottom: 0; width: min(420px, 100%); transform: translateX(100%); }
.ovl--left .ovl__panel { top: 0; left: 0; bottom: 0; width: min(360px, 88%); transform: translateX(-100%); }
.ovl--right.is-open .ovl__panel, .ovl--left.is-open .ovl__panel { transform: none; }

.ovl--modal .ovl__panel {
  left: 50%;
  top: 50%;
  width: min(920px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  border-radius: var(--radius-lg);
  opacity: 0;
  transform: translate(-50%, calc(-50% + 16px));
}
.ovl--modal.is-open .ovl__panel { opacity: 1; transform: translate(-50%, -50%); }
.ovl--modal-sm .ovl__panel { width: min(680px, calc(100% - 24px)); }
@media (max-width: 767px) {
  .ovl--modal .ovl__panel {
    left: 0; right: 0; top: auto; bottom: 0;
    width: 100%;
    max-height: 92%;
    border-radius: 12px 12px 0 0;
    transform: translateY(100%);
    opacity: 1;
  }
  .ovl--modal.is-open .ovl__panel { transform: none; }
}

.ovl--sheet .ovl__panel {
  left: 0; right: 0; bottom: 0;
  max-height: 88%;
  border-radius: 12px 12px 0 0;
  transform: translateY(100%);
}
.ovl--sheet.is-open .ovl__panel { transform: none; }
.ovl__grab { width: 40px; height: 4px; border-radius: 4px; background: var(--l4); margin: 8px auto 0; flex: none; }

.ovl--lightbox .ovl__backdrop { background: rgba(12, 14, 10, .94); }
.ovl--lightbox .ovl__panel { inset: 0; background: transparent; color: #FFFFFF; opacity: 0; }
.ovl--lightbox.is-open .ovl__panel { opacity: 1; }

/* Mobile nav drawer content */
.mnav { display: grid; gap: 20px; }
.mnav__search .search { position: static; opacity: 1; visibility: visible; transform: none; padding: 0; border: 0; }
.mnav__cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mnav__cats a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 52px;
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.3;
}
.mnav__cats img { width: 44px; height: 44px; object-fit: cover; border-radius: var(--radius); background: var(--l2); }
.mnav__links { display: grid; border-top: 1px solid var(--line); }
.mnav__links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-weight: 500;
}
.mnav__links a svg { width: 18px; height: 18px; color: var(--tx-3); }
.mnav__links .is-signal { color: var(--signal-strong); font-weight: 600; }
.mnav__title { font-weight: 600; font-size: var(--fs-sm); color: var(--tx-3); }

/* Mini cart */
.mc-list { display: grid; gap: 16px; }
.mc-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.mc-item img { width: 72px; height: 90px; object-fit: cover; border-radius: var(--radius); background: var(--l2); }
.mc-item h3 { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: var(--fs-sm); font-weight: 500; line-height: 1.35; }
.mc-item h3 a { text-decoration: none; }
.mc-item p { font-size: var(--fs-xs); color: var(--tx-3); }
.mc-sum { display: flex; justify-content: space-between; font-weight: 600; }
.ship-meter { display: grid; gap: 6px; font-size: var(--fs-sm); color: var(--tx-2); }
.ship-meter__bar { height: 6px; border-radius: 6px; background: var(--l2); overflow: hidden; }
.ship-meter__bar i { display: block; height: 100%; background: var(--brand); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 400ms var(--ease); }

/* ---------- Toast ---------- */
.toasts {
  position: fixed;
  left: 50%;
  bottom: calc(16px + var(--fab-offset, 0px) + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 120;
  display: grid;
  gap: 8px;
  width: min(440px, calc(100% - 32px));
  pointer-events: none;
}
.toast {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 12px 12px 16px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--on-ink);
  font-size: var(--fs-sm);
  pointer-events: auto;
  animation: rise-in var(--dur-3) var(--ease);
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.toast.is-leaving { opacity: 0; transform: translateY(8px); }
.toast svg { width: 20px; height: 20px; }
.toast--ok svg { color: #8FCB9A; }
.toast--err svg { color: #F4A39C; }
.toast button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--pill);
  border: 1px solid rgba(241, 238, 230, .35);
  color: var(--on-ink);
  font-weight: 600;
  font-size: var(--fs-xs);
}
.toast button:hover { background: rgba(241, 238, 230, .12); }

/* ---------- Skeleton ---------- */
.skel { position: relative; overflow: hidden; background: var(--l2); border-radius: var(--radius); }
.skel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
  animation: shimmer 1.2s infinite;
}
.skel-card { display: grid; gap: 10px; }
.skel-card .skel:nth-child(1) { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); }
.skel-card .skel:nth-child(2) { height: 10px; width: 60%; }
.skel-card .skel:nth-child(3) { height: 14px; width: 90%; }
.skel-card .skel:nth-child(4) { height: 14px; width: 40%; }

/* ---------- Empty / error state ---------- */
.empty {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: clamp(24px, 1rem + 3vw, 48px);
  border: 1px dashed var(--line-field);
  border-radius: var(--radius-lg);
  background: var(--l1);
}
.empty__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--l2); color: var(--tx-2); }
.empty__icon svg { width: 26px; height: 26px; }
.empty h2, .empty h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.empty p { color: var(--tx-2); max-width: 52ch; }

/* ---------- Accordion (tinggi diukur JS) ---------- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  gap: 16px;
  align-items: center;
  min-height: 56px;
  padding: 12px 0;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  color: var(--tx-1);
}
.acc__btn:hover { color: var(--brand); }
.acc__chev {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--l2);
  transition: transform var(--dur-3) var(--ease), background-color var(--dur-1) var(--ease);
}
.acc__chev svg { width: 16px; height: 16px; }
.acc__btn[aria-expanded="true"] .acc__chev { transform: rotate(180deg); background: var(--brand); color: var(--on-brand); }
.acc__panel { height: 0; overflow: hidden; transition: height var(--dur-3) var(--ease); }
.acc__panel.is-open { height: auto; }
.acc__inner { padding: 0 48px 18px 0; color: var(--tx-2); font-size: .9375rem; line-height: 1.65; }
.acc__inner > * + * { margin-top: .7em; }
.no-js .acc__panel { height: auto; }

/* ---------- Tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--l1); }
.table { min-width: 520px; font-size: var(--fs-sm); }
.table th, .table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table thead th { background: var(--l2); font-weight: 600; color: var(--tx-1); }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table tbody th { font-weight: 600; }
.table .num { font-size: var(--fs-sm); }
.table--compact { min-width: 0; }

/* ---------- Tabs (PDP) ---------- */
.tabs__panel { padding-top: 20px; }

/* ---------- Carousel ---------- */
.carousel { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--ink); }
.carousel__track { display: flex; transition: transform 500ms var(--ease); touch-action: pan-y; }
.carousel__slide { flex: 0 0 100%; min-width: 0; position: relative; }
.carousel__ctrl {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  pointer-events: none;
}
.carousel__ctrl > * { pointer-events: auto; }
.carousel__dashes { display: flex; gap: 4px; }
.carousel__dash { width: 44px; height: 44px; display: grid; place-items: center; }
.carousel__dash i { width: 28px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .45); transition: background-color var(--dur-2) var(--ease), width var(--dur-2) var(--ease); }
.carousel__dash[aria-current="true"] i { background: #FFFFFF; }
.carousel__btns { display: none; gap: 6px; }
@media (min-width: 768px) { .carousel__btns { display: flex; } }
.carousel__btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #1B1E17;
}
.carousel__btn:hover { background: #FFFFFF; }
.carousel__btn:active { transform: scale(.96); }
.carousel__btn svg { width: 20px; height: 20px; }

/* ---------- Section misc ---------- */
.divider-dash { width: 32px; height: 2px; background: var(--brand); }
