/* =========================================================
   BISING Studio — components
   ========================================================= */

/* Shared press state */
.btn:active, .icon-btn:active, .chip:active, .size-btn:active:not(:disabled), .swatch:active,
.tab:active, .float-btn:active, .card__quick:active, .qty button:active:not(:disabled),
.text-btn:active, .ticket button:active { transform: scale(.96); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--cta-bg);
  --btn-fg: var(--cta-fg);
  --btn-bd: var(--cta-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd);
  font-family: var(--f-body);
  font-weight: 700;
  font-size: var(--fs-sm);
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  max-width: 100%;
  position: relative;
  transition: background-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease), transform var(--d-fast) var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { --btn-bg: var(--cta-bg-hover); --btn-bd: var(--cta-bg-hover); }
.btn:disabled, .btn[aria-disabled="true"] {
  --btn-bg: var(--l3); --btn-fg: var(--t3); --btn-bd: var(--l3);
  cursor: not-allowed; transform: none;
}
.btn--lg { min-height: 54px; padding: 0 30px; font-size: var(--fs-base); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: var(--fs-xs); }
.btn--block { display: flex; width: 100%; }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--t1); --btn-bd: var(--line-strong); }
.btn--outline:hover { --btn-bg: transparent; --btn-bd: var(--t1); --btn-fg: var(--t1); }
.btn--lime { --btn-bg: var(--lime); --btn-fg: var(--on-lime); --btn-bd: var(--lime); }
.btn--lime:hover { --btn-bg: var(--lime-press); --btn-bd: var(--lime-press); --btn-fg: var(--on-lime); }
.btn--light { --btn-bg: #F6F4EF; --btn-fg: #111111; --btn-bd: #F6F4EF; }
.btn--light:hover { --btn-bg: #FFFFFF; --btn-bd: #FFFFFF; --btn-fg: #111111; }
.btn--on-photo { --btn-bg: transparent; --btn-fg: #F6F4EF; --btn-bd: rgba(246, 244, 239, .75); }
.btn--on-photo:hover { --btn-bg: rgba(246, 244, 239, .14); --btn-bd: #F6F4EF; --btn-fg: #F6F4EF; }
.btn.is-loading { color: transparent; 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;
}
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); }

.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--t1);
  text-decoration: underline;
  text-underline-offset: .25em;
  text-decoration-thickness: 1px;
  transition: transform var(--d-fast) var(--ease);
}
.text-btn:hover { text-decoration-color: transparent; }
.text-btn svg { width: 16px; height: 16px; transition: transform var(--d-fast) var(--ease); }
.text-btn:hover svg { transform: translateX(3px); }

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--r-pill);
  color: var(--t1);
  transition: background-color var(--d-fast) var(--ease), transform var(--d-fast) var(--ease);
  flex: none;
}
.icon-btn:hover { background: var(--l3); }
.icon-btn:disabled { color: var(--t4); background: none; }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn--bordered { border: 1px solid var(--line-strong); }

.count-badge {
  position: absolute;
  top: 3px; right: 1px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: var(--r-pill);
  background: var(--lime);
  color: var(--on-lime);
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 18px;
  text-align: center;
  border: 1px solid #111;
}
.count-badge.is-bump { animation: pop var(--d-slow) var(--ease); }

.search-pill {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 16px 0 14px;
  border-radius: var(--r-pill);
  background: var(--l2);
  color: var(--t2);
  font-size: var(--fs-sm);
  min-width: 180px;
  margin-right: 4px;
  transition: background-color var(--d-fast) var(--ease);
}
.search-pill:hover { background: var(--l3); }
.search-pill svg { width: 18px; height: 18px; color: var(--t1); }
@media (min-width: 1180px) { .search-pill { display: inline-flex; } .search-icon-btn { display: none; } }

/* ---------- Badges, stickers ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  font-weight: 700;
  font-size: 11.5px;
  background: var(--l1);
  color: var(--t1);
  white-space: nowrap;
}
.badge--drop, .badge--segera { background: var(--lime); color: var(--on-lime); }
.badge--sale { background: var(--sale); color: var(--on-sale); }
.badge--baru { background: var(--t1); color: #FFFFFF; }
.badge--terlaris { background: var(--l1); color: var(--t1); }
.badge--habis { background: var(--l3); color: var(--t1); }

.sticker {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px 5px;
  background: var(--lime);
  color: var(--on-lime);
  font-family: var(--f-display);
  text-transform: uppercase;
  font-size: clamp(1rem, .8rem + .8vw, 1.375rem);
  line-height: 1;
  transform: rotate(-4deg);
  border: 1.5px solid #111;
}

/* ---------- Tab bar (category navigation) ---------- */
.tabbar {
  position: relative;
  display: flex;
  gap: clamp(18px, 2.2vw, 32px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line-strong);
  min-width: 0;
  max-width: 100%;
}
.tabbar::-webkit-scrollbar { display: none; }
.tab {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 46px;
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--t2);
  white-space: nowrap;
  position: relative;
  transition: color var(--d-fast) var(--ease);
}
.tab::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  background: var(--t1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--d-mid) var(--ease);
}
.tab:hover { color: var(--t1); }
.tab[aria-selected="true"], .tab[aria-pressed="true"], .tab[aria-current="true"] { color: var(--t1); }
.tab[aria-selected="true"]::after, .tab[aria-pressed="true"]::after, .tab[aria-current="true"]::after { transform: scaleX(1); }
.tab__count { font-family: var(--f-mono); font-size: 11.5px; color: var(--t3); }

/* ---------- Pills (removable active filters, choices) ---------- */
.pill-wrap { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--l1);
  color: var(--t1);
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
  transition: background-color var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease), transform var(--d-fast) var(--ease);
}
.chip:hover { border-color: var(--t1); }
.chip[aria-pressed="true"] { background: var(--t1); color: #FFFFFF; border-color: var(--t1); }
.chip--remove { background: var(--t1); color: #FFFFFF; border-color: var(--t1); padding-right: 12px; }
.chip--remove:hover { background: var(--cta-bg-hover); }
.chip--remove svg { width: 14px; height: 14px; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field .field__label { font-size: var(--fs-sm); font-weight: 700; color: var(--t1); }
.field__hint { font-size: var(--fs-xs); color: var(--t3); }
.input, .select, .textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--l1);
  color: var(--t1);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  font-size: 16px;
  transition: border-color var(--d-fast) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--t3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--t3); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--t1); }
.input:disabled { background: var(--l3); color: var(--t3); }
.textarea { min-height: 92px; resize: vertical; }
.select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23111111' stroke-width='1.75' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { border-color: var(--sale); }
.field__error { display: none; font-size: var(--fs-xs); color: var(--sale); font-weight: 700; }
.field.is-invalid .field__error { display: block; }
.field.is-valid .input { border-color: var(--ok); }
.form-msg { font-size: var(--fs-sm); padding: 12px 14px; border: 1px solid var(--line); display: flex; gap: 10px; align-items: flex-start; background: var(--l1); color: var(--t1); }
.form-msg svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.form-msg--ok { border-color: var(--ok); }
.form-msg--ok svg { color: var(--ok); }
.form-msg--err { border-color: var(--sale); }
.form-msg--err svg { color: var(--sale); }
.inline-form { display: flex; gap: var(--s2); min-width: 0; }
.inline-form .input { flex: 1; min-width: 0; }
.inline-form .btn { flex: none; }
@media (max-width: 420px) { .inline-form { flex-direction: column; } }

.sort { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.sort label { font-size: var(--fs-sm); color: var(--t2); font-weight: 600; white-space: nowrap; }
.sort .select { min-height: 44px; padding-block: 8px; font-size: var(--fs-sm); font-weight: 600; width: auto; border-radius: var(--r-pill); padding-left: 16px; }

/* ---------- Swatches & sizes ---------- */
.swatches { display: flex; flex-wrap: wrap; gap: 4px; }
.swatch {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--d-fast) var(--ease);
}
.swatch::before {
  content: "";
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--sw, #999999);
  border: 1px solid var(--line-strong);
}
.swatch::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  transition: border-color var(--d-fast) var(--ease);
}
.swatch:hover::after { border-color: var(--t3); }
.swatch[aria-checked="true"]::after, .swatch[aria-pressed="true"]::after { border-color: var(--t1); }

.size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; }
.size-btn {
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--l1);
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: var(--fs-sm);
  color: var(--t1);
  transition: border-color var(--d-fast) var(--ease), background-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease), transform var(--d-fast) var(--ease);
}
.size-btn:hover:not(:disabled) { border-color: var(--t1); }
.size-btn[aria-checked="true"], .size-btn[aria-pressed="true"] { background: var(--t1); color: #FFFFFF; border-color: var(--t1); }
.size-btn:disabled { color: var(--t3); background: var(--l2); text-decoration: line-through; cursor: not-allowed; border-color: var(--line-soft); }

/* ---------- Price ---------- */
.price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-family: var(--f-mono); font-weight: 500; font-size: var(--fs-sm); }
.price__now { color: var(--t1); }
.price__now.is-sale { color: var(--sale); }
.price__was { color: var(--t3); text-decoration: line-through; font-size: .92em; }

/* ---------- Product card ---------- */
.card { position: relative; min-width: 0; display: flex; flex-direction: column; }
.card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  background: var(--l2);
  overflow: hidden;
}
.card__media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity var(--d-slow) var(--ease), transform 600ms var(--ease);
}
.card__media .img-b { opacity: 0; }
@media (hover: hover) {
  .card:hover .card__media .img-b.is-loaded { opacity: 1; }
  .card:hover .card__media img { transform: scale(1.03); }
}
.card__badges { position: absolute; left: 6px; top: 6px; display: flex; flex-wrap: wrap; gap: 4px; z-index: 2; pointer-events: none; }
.card__fav { position: absolute; right: 2px; top: 2px; z-index: 3; }
.card__fav svg { width: 20px; height: 20px; }
.card__fav[aria-pressed="true"] { color: var(--sale); }
.card__fav[aria-pressed="true"] svg { fill: currentColor; }
.card__quick {
  position: absolute;
  left: 6px; right: 6px; bottom: 6px;
  z-index: 3;
  min-height: 40px;
  border-radius: var(--r-pill);
  background: var(--l1);
  color: var(--t1);
  font-size: var(--fs-xs);
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--d-mid) var(--ease), transform var(--d-mid) var(--ease), background-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease);
}
.card__quick svg { width: 16px; height: 16px; }
.card__quick:hover { background: var(--t1); color: #FFFFFF; }
@media (hover: hover) and (min-width: 768px) {
  .card__quick { display: inline-flex; }
  .card:hover .card__quick, .card__quick:focus-visible { opacity: 1; transform: none; }
}
.card__body { padding-top: 8px; display: grid; gap: 2px; min-width: 0; }
.card__title { font-size: var(--fs-sm); font-weight: 700; line-height: 1.3; color: var(--t1); }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__meta { font-size: var(--fs-xs); color: var(--t2); }
.card__foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.card__dots { display: flex; gap: 3px; }
.card__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--sw); border: 1px solid var(--line-strong); }

/* Skeletons */
.skeleton { position: relative; overflow: hidden; background: var(--l2); }
.skeleton::after, .card__media:not(.is-loaded)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--l3), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.3s var(--ease) infinite;
}
.skel-line { height: 11px; background: var(--l3); margin-top: 8px; }
.skel-line--w60 { width: 60%; }
.skel-line--w40 { width: 40%; }
.skel-card .skeleton { aspect-ratio: 4 / 5; }

/* Image fallback (missing asset) */
.img-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: 12px;
  background-color: var(--l2);
  background-image: url("../img/ui/texture-grain.png");
  background-size: 180px;
  color: var(--t2);
  overflow: hidden;
}
.img-fallback strong { font-family: var(--f-mono); font-weight: 500; font-size: clamp(1rem, 4vw, 1.6rem); color: var(--t1); line-height: 1.1; word-break: break-all; }
.img-fallback span { font-size: 11.5px; font-weight: 600; }
.img-box { position: relative; overflow: hidden; background: var(--l2); }
.img-box > img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Carousel ---------- */
.carousel { position: relative; min-width: 0; }
.carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  min-width: 0;
  max-width: 100%;
}
.carousel__viewport::-webkit-scrollbar { display: none; }
.carousel__viewport.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.carousel__viewport.is-dragging * { pointer-events: none; user-select: none; }
.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 44%);
  gap: clamp(8px, 1vw, 14px);
}
.carousel__track > * { scroll-snap-align: start; min-width: 0; }
@media (min-width: 600px) { .carousel__track { grid-auto-columns: minmax(0, 30%); } }
@media (min-width: 1024px) { .carousel__track { grid-auto-columns: minmax(0, calc((100% - 4 * 14px) / 5.4)); } }
@media (min-width: 1440px) { .carousel__track { grid-auto-columns: minmax(0, calc((100% - 5 * 14px) / 6.4)); } }
.carousel__nav { display: flex; gap: var(--s2); }
.carousel__progress { height: 2px; background: var(--line); margin-top: var(--s4); position: relative; overflow: hidden; }
.carousel__progress i { position: absolute; inset: 0; background: var(--t1); transform-origin: left; transform: scaleX(.2); transition: transform var(--d-mid) var(--ease); }

/* ---------- Marquee (dash separators) ---------- */
.marquee {
  background: var(--ink);
  color: var(--on-ink);
  overflow: hidden;
  position: relative;
}
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track, .marquee.is-paused .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  padding-left: clamp(16px, 2vw, 28px);
  font-family: var(--f-display);
  text-transform: uppercase;
  font-size: clamp(1.3rem, 1rem + 1.6vw, 2.4rem);
  line-height: 1;
  padding-block: clamp(12px, 1.3vw, 18px);
  white-space: nowrap;
  color: var(--on-ink);
}
.marquee__item::after { content: ""; width: clamp(18px, 2vw, 32px); height: 3px; background: var(--lime); flex: none; }
.marquee__toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); color: var(--on-ink); background: var(--ink); }
.marquee__toggle:hover { background: #2A2A27; }
.marquee__toggle:active { transform: translateY(-50%) scale(.96); }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .marquee__toggle { display: none; }
}

/* ---------- Overlays (class-driven: opacity / visibility / transform) ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear var(--d-slow);
}
.overlay.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.overlay__scrim {
  position: absolute;
  inset: 0;
  background: var(--scrim);
  opacity: 0;
  transition: opacity var(--d-slow) var(--ease);
}
.overlay.is-open .overlay__scrim { opacity: 1; }
.drawer {
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: min(420px, 100%);
  background: var(--l1);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--d-slow) var(--ease);
}
.drawer--left { right: auto; left: 0; transform: translateX(-100%); }
.overlay.is-open .drawer { transform: none; }
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  min-height: 56px;
  padding: 0 var(--s2) 0 var(--gutter);
  border-bottom: 1px solid var(--line);
  flex: none;
}
.drawer__title { font-family: var(--f-display); text-transform: uppercase; font-size: 1.5rem; line-height: 1; }
.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: var(--s3) var(--gutter); min-height: 0; }
.drawer__foot { flex: none; padding: var(--s4) var(--gutter) calc(var(--s4) + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: var(--s3); background: var(--l1); }

.modal {
  position: absolute;
  left: 50%; top: 50%;
  width: min(940px, calc(100% - 24px));
  max-height: calc(100svh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--l1);
  opacity: 0;
  transform: translate(-50%, calc(-50% + 16px));
  transition: opacity var(--d-slow) var(--ease), transform var(--d-slow) var(--ease);
}
.overlay.is-open .modal { opacity: 1; transform: translate(-50%, -50%); }
.modal--sm { width: min(640px, calc(100% - 24px)); }
.modal__close { position: absolute; right: 6px; top: 6px; z-index: 3; background: var(--l1); }
.modal__head { padding: var(--s5) 56px var(--s3) var(--s5); }
.modal__body { padding: 0 var(--s5) var(--s5); }

.sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  max-height: 88svh;
  background: var(--l1);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform var(--d-slow) var(--ease);
}
.overlay.is-open .sheet { transform: none; }
.sheet__grip { width: 44px; height: 4px; border-radius: 4px; background: var(--l4); margin: 10px auto 0; flex: none; }

/* ---------- Quick view ---------- */
.qv { display: grid; grid-template-columns: minmax(0, 1fr); }
.qv > * { min-width: 0; }
.qv__media { aspect-ratio: 4 / 5; position: relative; background: var(--l2); overflow: hidden; }
.qv__media img { width: 100%; height: 100%; object-fit: cover; }
.qv__info { padding: var(--s5); display: grid; gap: var(--s4); align-content: start; }
.qv__name { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); line-height: .95; }
@media (max-width: 759px) { .qv__media { aspect-ratio: 1 / 1; } }
@media (min-width: 760px) {
  .qv { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .qv__info { padding: var(--s7) var(--s6) var(--s6); }
}

/* ---------- Line items (mini cart / cart / wishlist) ---------- */
.line-items { list-style: none; padding: 0; display: grid; }
.line-item {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: var(--s3);
  padding-block: var(--s3);
  border-bottom: 1px solid var(--line);
}
.line-item__img { aspect-ratio: 4 / 5; background: var(--l2); position: relative; overflow: hidden; display: block; }
.line-item__img img { width: 100%; height: 100%; object-fit: cover; }
.line-item__info { display: grid; gap: 4px; align-content: start; min-width: 0; }
.line-item__name { font-weight: 700; font-size: var(--fs-sm); line-height: 1.3; }
.line-item__meta { font-size: var(--fs-xs); color: var(--t2); }
.line-item__row { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); flex-wrap: wrap; margin-top: 4px; }
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  height: 44px;
  background: var(--l1);
}
.qty button { width: 40px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-pill); transition: background-color var(--d-fast) var(--ease), transform var(--d-fast) var(--ease); }
.qty button:hover:not(:disabled) { background: var(--l3); }
.qty button:disabled { color: var(--t4); }
.qty button svg { width: 16px; height: 16px; }
.qty output { min-width: 24px; text-align: center; font-family: var(--f-mono); font-size: var(--fs-sm); }
.summary-row { display: flex; justify-content: space-between; gap: var(--s3); font-size: var(--fs-sm); }
.summary-row--total { font-weight: 700; font-size: var(--fs-md); padding-top: var(--s3); border-top: 1px solid var(--line); }

/* Free shipping meter */
.ship-meter { display: grid; gap: 8px; font-size: var(--fs-sm); }
.ship-meter__bar { height: 6px; background: var(--l3); position: relative; overflow: hidden; }
.ship-meter__bar i { position: absolute; inset: 0; background: var(--t1); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform var(--d-slow) var(--ease); }
.ship-meter.is-done .ship-meter__bar i { background: var(--ok); }

/* ---------- Empty / error states ---------- */
.empty { display: grid; justify-items: start; gap: var(--s3); padding: clamp(28px, 5vw, 56px) 0; max-width: 560px; }
.empty__mark { font-family: var(--f-display); font-size: clamp(3rem, 11vw, 6rem); line-height: .85; text-transform: uppercase; color: var(--t1); }
.empty p { color: var(--t2); }

/* ---------- Accordion (JS-measured height) ---------- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s4);
  width: 100%;
  min-height: 56px;
  padding-block: var(--s3);
  text-align: left;
  font-weight: 700;
  font-size: var(--fs-base);
  color: var(--t1);
}
.acc__btn:hover { text-decoration: underline; text-underline-offset: .22em; }
.acc__chev { width: 20px; height: 20px; flex: none; transition: transform var(--d-mid) var(--ease); }
.acc__btn[aria-expanded="true"] .acc__chev { transform: rotate(180deg); }
.acc__panel { height: 0; overflow: hidden; visibility: hidden; transition: height var(--d-slow) var(--ease), visibility 0s linear var(--d-slow); }
.acc__panel.is-open { visibility: visible; transition: height var(--d-slow) var(--ease), visibility 0s; }
.acc__inner { padding-bottom: var(--s5); color: var(--t2); font-size: var(--fs-base); }
.acc__inner p + p, .acc__inner ul + p, .acc__inner p + ul { margin-top: .75em; }
.acc__inner ul { padding-left: 1.1em; display: grid; gap: 4px; }
.no-js .acc__panel { height: auto; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--line); overscroll-behavior-x: contain; background: var(--l1); }
.table { min-width: 420px; font-size: var(--fs-sm); }
.table th, .table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table thead th { font-weight: 700; font-size: var(--fs-xs); color: var(--t1); background: var(--l2); }
.table td { font-family: var(--f-mono); }
.table tr:last-child td, .table tr:last-child th { border-bottom: 0; }

/* ---------- Rating ---------- */
.stars { display: inline-flex; gap: 2px; color: var(--t1); }
.stars svg { width: 14px; height: 14px; }
.stars .is-off { color: var(--t4); }

/* ---------- Toast ---------- */
.toast-region {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: var(--z-toast);
  display: grid;
  gap: 8px;
  width: min(420px, calc(100% - 32px));
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px 10px 16px;
  background: #111111;
  color: #F6F4EF;
  font-size: var(--fs-sm);
  min-height: 52px;
  animation: rise var(--d-mid) var(--ease);
}
.toast.is-leaving { opacity: 0; transform: translateY(8px); transition: opacity var(--d-mid) var(--ease), transform var(--d-mid) var(--ease); }
.toast__icon { width: 18px; height: 18px; flex: none; }
.toast--ok .toast__icon { color: var(--lime); }
.toast--err { background: var(--sale); color: #FFFFFF; }
.toast__msg { flex: 1; min-width: 0; }
.toast__action {
  flex: none;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: var(--fs-xs);
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.toast__action:hover { background: rgba(246, 244, 239, .16); }

/* ---------- Floating: back-to-top + WhatsApp ---------- */
.float-stack {
  position: fixed;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: var(--z-float);
  display: grid;
  gap: 10px;
  justify-items: end;
  transition: transform var(--d-mid) var(--ease);
}
.has-sticky-atc .float-stack { transform: translateY(-78px); }
@media (min-width: 1024px) { .has-sticky-atc .float-stack { transform: none; } }
.float-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--l1);
  color: var(--t1);
  border: 1px solid var(--line-strong);
  transition: transform var(--d-fast) var(--ease), opacity var(--d-mid) var(--ease), background-color var(--d-fast) var(--ease);
}
.float-btn svg { width: 22px; height: 22px; }
.float-btn:hover { background: var(--l3); }
.to-top { opacity: 0; transform: translateY(10px); pointer-events: none; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

.wa-float {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 5px 5px 5px 18px;
  border-radius: var(--r-pill);
  background: #FFFFFF;
  color: #111111;
  border: 1px solid var(--line-strong);
  font-weight: 700;
  font-size: var(--fs-sm);
  transition: transform var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease);
}
.wa-float:hover { border-color: #111111; transform: translateY(-2px); }
.wa-float:active { transform: scale(.96); }
.wa-float__label { display: grid; line-height: 1.15; text-align: right; }
.wa-float__label small { font-weight: 500; font-size: 11.5px; color: var(--t2); }
.wa-float__icon {
  position: relative;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--wa);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.wa-float__icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--wa);
  animation: pulse-ring 2.4s var(--ease) infinite;
  z-index: -1;
}
.wa-float__icon svg { width: 24px; height: 24px; position: relative; }
@media (max-width: 767px) {
  .wa-float { padding: 0; min-height: 0; border: 0; background: none; }
  .wa-float__label { display: none; }
  .wa-float__icon { width: 50px; height: 50px; }
}
@media (prefers-reduced-motion: reduce) { .wa-float__icon::before { animation: none; opacity: 0; } }

/* ---------- Search overlay ---------- */
.search-ov {
  position: absolute;
  inset: 0;
  background: var(--l0);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity var(--d-mid) var(--ease), transform var(--d-mid) var(--ease);
}
.overlay.is-open .search-ov { opacity: 1; transform: none; }
.search-ov__bar { border-bottom: 1px solid var(--line); flex: none; position: sticky; top: 0; background: var(--l0); z-index: 2; }
.search-ov__form { display: flex; align-items: center; gap: var(--s2); min-height: 72px; }
.search-ov__form svg.lead { width: 24px; height: 24px; flex: none; color: var(--t2); }
.search-ov__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: var(--f-display);
  text-transform: uppercase;
  font-size: clamp(1.4rem, 1rem + 3vw, 2.8rem);
  line-height: 1;
  padding: 12px 0;
  color: var(--t1);
}
.search-ov__input::placeholder { color: var(--t3); }
.search-ov__input:focus-visible { outline: none; }
.search-ov__form:focus-within { box-shadow: inset 0 -2px 0 var(--t1); }
.search-ov__body { padding-block: var(--s5) var(--s8); display: grid; gap: var(--s6); }
.search-pop { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.search-pop a, .search-pop button { min-height: 40px; display: inline-flex; align-items: center; font-weight: 600; font-size: var(--fs-md); text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }
.search-articles { list-style: none; padding: 0; display: grid; }
.search-articles a { display: flex; justify-content: space-between; gap: var(--s4); padding-block: 12px; border-bottom: 1px solid var(--line); font-weight: 700; }
.search-articles a:hover { text-decoration: underline; text-underline-offset: .22em; }
.search-articles span { flex: none; font-weight: 500; color: var(--t2); font-size: var(--fs-sm); }

/* ---------- Countdown ---------- */
.countdown { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px clamp(10px, 1.6vw, 22px); }
.countdown__cell { display: grid; min-width: 0; }
.countdown__num { font-family: var(--f-mono); font-weight: 500; font-size: clamp(2.2rem, 1.2rem + 4.2vw, 4.8rem); line-height: .95; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.countdown__unit { font-size: var(--fs-xs); font-weight: 600; margin-top: 4px; }
.countdown__sep { font-family: var(--f-mono); font-size: clamp(1.6rem, 1rem + 3vw, 3.4rem); line-height: 1.2; opacity: .5; align-self: flex-start; }

/* ---------- Ticket / voucher (notched) ---------- */
.ticket {
  --notch: 14px;
  --tk-bg: var(--lime);
  --tk-fg: var(--on-lime);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  background: var(--tk-bg);
  color: var(--tk-fg);
  -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;
  min-width: 0;
}
.ticket__main { padding: 16px 18px 16px 26px; display: grid; gap: 4px; min-width: 0; border-right: 2px dashed rgba(17, 17, 17, .35); }
.ticket__stub { padding: 16px 26px 16px 18px; display: grid; align-content: center; justify-items: center; gap: 2px; text-align: center; }
.ticket__code { font-family: var(--f-mono); font-weight: 500; font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem); letter-spacing: .02em; color: var(--tk-fg); }
.ticket__title { font-weight: 700; font-size: var(--fs-sm); color: var(--tk-fg); }
.ticket__text { font-size: var(--fs-xs); color: var(--tk-fg); }
.ticket__big { font-family: var(--f-display); font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); line-height: .9; color: var(--tk-fg); }
.ticket--ink { --tk-bg: #111111; --tk-fg: #F6F4EF; }
.ticket--ink .ticket__main { border-right-color: rgba(246, 244, 239, .3); }
.ticket--paper { --tk-bg: var(--l1); --tk-fg: var(--t1); }
.ticket--paper .ticket__main { border-right-color: var(--line-strong); }
.ticket button { color: inherit; font-weight: 700; font-size: var(--fs-xs); text-decoration: underline; text-underline-offset: .2em; min-height: 36px; transition: transform var(--d-fast) var(--ease); }

/* ---------- Progress ring (drop stock) ---------- */
.ring { --p: 0; --size: 64px; --stroke: 6px; --ring-fg: var(--lime); --ring-bg: rgba(246, 244, 239, .18);
  width: var(--size); height: var(--size); position: relative; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: var(--stroke); }
.ring .ring__bg { stroke: var(--ring-bg); }
.ring .ring__fg { stroke: var(--ring-fg); stroke-linecap: butt; transition: stroke-dashoffset 900ms var(--ease); }
.ring__label { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-mono); font-weight: 500; font-size: 13px; }
.ring--paper { --ring-fg: #111111; --ring-bg: var(--l3); }

/* ---------- Feature card: color left, photo right ---------- */
.feat-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
@media (min-width: 900px) { .feat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feat {
  --feat-bg: var(--l1);
  --feat-fg: var(--t1);
  --feat-fg2: var(--t2);
  position: relative;
  display: flex;
  min-height: 200px;
  height: 100%;
  background: var(--feat-bg);
  color: var(--feat-fg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform var(--d-mid) var(--ease);
}
.feat:hover { transform: translateY(-3px); }
.feat__text { position: relative; z-index: 2; width: 58%; padding: var(--s5) var(--s4) var(--s5) var(--s5); display: grid; gap: var(--s2); align-content: space-between; }
.feat__kicker { font-weight: 600; font-size: .875rem; color: var(--feat-fg2); }
.feat__title { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: .95; color: var(--feat-fg); }
.feat__body { font-size: var(--fs-sm); color: var(--feat-fg2); }
.feat__photo {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 55%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 42%);
          mask-image: linear-gradient(90deg, transparent 0, #000 42%);
}
.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--lime { --feat-bg: var(--lime); --feat-fg: #111111; --feat-fg2: #111111; border-color: var(--lime); }
.feat--ink { --feat-bg: #111111; --feat-fg: #F6F4EF; --feat-fg2: #C9C6BE; border-color: #111111; }

/* ---------- Stat list (big number left, label right) ---------- */
.stat-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.stat-list li { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: var(--s4); align-items: baseline; padding-block: var(--s3); border-bottom: 1px solid var(--line); }
.stat-list strong { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.6rem); line-height: .9; min-width: 3.2ch; }
.stat-list span { color: var(--t2); font-size: var(--fs-sm); }

/* ---------- Breadcrumbs ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: var(--fs-xs); color: var(--t2); padding-block: var(--s3); list-style: none; padding-left: 0; }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.crumbs li + li::before { content: "/"; color: var(--t3); }
.crumbs a { display: inline-flex; min-height: 32px; align-items: center; font-weight: 600; }
.crumbs a:hover { color: var(--t1); text-decoration: underline; }
.crumbs [aria-current] { color: var(--t1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 56vw; }

/* ---------- Article card ---------- */
.a-card { display: grid; gap: var(--s2); position: relative; min-width: 0; align-content: start; }
.a-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--l2); position: relative; }
.a-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.a-card:hover .a-card__media img { transform: scale(1.04); }
.a-card__kicker { font-weight: 700; font-size: var(--fs-xs); color: var(--t1); }
.a-card__meta { font-size: var(--fs-xs); color: var(--t2); }
.a-card__title { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(1.3rem, 1.05rem + .9vw, 1.8rem); line-height: .98; }
.a-card__title a::after { content: ""; position: absolute; inset: 0; }
.a-card:hover .a-card__title a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }
.a-card__excerpt { color: var(--t2); font-size: var(--fs-sm); }
/* Mobile: compact row with 1:1 thumb */
@media (max-width: 719px) {
  .a-list .a-card { grid-template-columns: 96px minmax(0, 1fr); gap: 2px var(--s3); align-items: start; padding-bottom: var(--s3); border-bottom: 1px solid var(--line); }
  .a-list .a-card__media { aspect-ratio: 1 / 1; grid-row: 1 / span 3; }
  .a-list .a-card__title { font-size: 1.15rem; }
  .a-list .a-card__excerpt { display: none; }
  .a-list { gap: var(--s3); }
}

/* ---------- Load more ---------- */
.load-more { display: grid; justify-items: center; gap: var(--s3); margin-top: var(--s6); text-align: center; }
.load-more__meta { font-size: var(--fs-sm); color: var(--t2); font-weight: 600; }
.load-more__bar { width: min(220px, 100%); height: 2px; background: var(--line); position: relative; }
.load-more__bar i { position: absolute; inset: 0; background: var(--t1); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform var(--d-slow) var(--ease); }
