:root {
  --bg: #07120d;
  --card: rgba(16, 30, 22, 0.88);
  --card-2: rgba(24, 43, 31, 0.92);
  --text: #f4fff7;
  --muted: #a8bbae;
  --green: #7dde8a;
  --green-2: #2fbf71;
  --gold: #ffd15a;
  --danger: #ff6f6f;
  --line: rgba(255,255,255,.10);
  --shadow: 0 18px 45px rgba(0,0,0,.42);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% -10%, rgba(125,222,138,.16), transparent 28rem),
    radial-gradient(circle at 90% 10%, rgba(255,209,90,.12), transparent 20rem),
    linear-gradient(180deg, #07120d 0%, #08140e 45%, #040807 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.bg-orb { position: fixed; width: 16rem; height: 16rem; border-radius: 99rem; filter: blur(60px); opacity: .35; pointer-events: none; }
.orb-one { left: -4rem; top: 9rem; background: #37d777; }
.orb-two { right: -5rem; bottom: 8rem; background: #a8ffbf; opacity: .16; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 42px 66px 1fr 48px;
  align-items: center;
  gap: 10px;
  padding: 12px clamp(14px, 4vw, 26px);
  background: rgba(5, 12, 8, .82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.icon-btn, .cart-btn {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  border-radius: 15px;
  height: 42px;
  transition: all .2s ease;
}
.icon-btn:hover, .cart-btn:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.18);
  transform: translateY(-1px);
}
.icon-btn:active, .cart-btn:active {
  transform: translateY(0);
}

.brand { display: inline-flex; align-items: center; gap: 7px; font-weight: 900; letter-spacing: -.04em; }
.brand img { width: 31px; height: 31px; }
.brand span { font-size: 20px; }

.search-wrap {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.42);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
  transition: all .25s cubic-bezier(.2,.8,.2,1);
}
.search-wrap:focus-within {
  background: rgba(0,0,0,.65);
  border-color: rgba(125,222,138,.3);
  box-shadow: inset 0 0 0 1px rgba(125,222,138,.15), 0 0 16px rgba(125,222,138,.1);
}
.search-wrap input {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text);
  font-size: 14px;
}
.search-wrap input::placeholder { color: #7f9185; transition: color .2s; }
.search-wrap:focus-within input::placeholder { color: #a8bbae; }
.search-wrap span {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: #1d1600;
  border-radius: 50%;
  font-size: 16px;
  flex-shrink: 0;
  cursor: pointer;
  transition: all .2s ease;
}
.search-wrap span:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.cart-btn { position: relative; font-size: 20px; }
.cart-btn b {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: #111;
  border-radius: 99px;
  border: 2px solid #07120d;
  font-size: 12px;
  font-weight: 800;
  transition: all .3s cubic-bezier(.68, -.55, .265, 1.55);
  animation: cart-pulse 0.5s ease-in-out;
}
@keyframes cart-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
.cart-btn b:not(:empty) {
  animation: cart-pulse 0.5s ease-in-out infinite;
  animation-iteration-count: 1;
  animation-delay: 0.1s;
}

.page-shell { width: min(1160px, 100%); margin: 0 auto; padding: 18px clamp(14px, 4vw, 26px) 110px; }

.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  background: #102016;
  margin-top: 12px;
}
.banner-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.banner-track::-webkit-scrollbar { display: none; }
.banner-slide {
  flex: 0 0 76%;
  scroll-snap-align: center;
  position: relative;
  aspect-ratio: 12 / 5;
  min-height: 156px;
  background: transparent;
}
.banner-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; }
.banner-copy {
  position: absolute;
  inset: auto 18px 18px 18px;
  width: min(440px, calc(100% - 36px));
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(0,0,0,.70), rgba(4,18,11,.42));
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
}
.banner-copy h1 { margin: 0 0 6px; font-size: clamp(20px, 4vw, 36px); line-height: 1; letter-spacing: -.05em; }
.banner-copy p { margin: 0; color: #cde4d2; font-size: 13px; }
.banner-dots { display: none !important; }

/* modern centered carousel */
.banner-track { padding: 0 6%; gap: 18px; }
.banner-slide { flex: 0 0 76%; transition: transform .36s cubic-bezier(.2,.9,.2,1), filter .36s ease, opacity .36s ease; border-radius: 14px; overflow: hidden; }
.banner-slide img { border-radius: 14px; display: block; }
.banner-slide:not(.active) { transform: scale(.94); filter: brightness(.85); opacity: .95; }
.banner-slide.active { transform: scale(1); box-shadow: 0 18px 40px rgba(0,0,0,.45); }

@media (max-width: 760px) {
  .banner-track { padding: 0 4%; gap: 12px; }
  .banner-slide { flex: 0 0 86%; }
}

/* restore simple slider styles */
.banner-track { padding: 0; gap: 0; }
.banner-slide { flex: 0 0 100%; transition: transform .25s ease; scroll-snap-align: center; }
.banner-slide img { border-radius: 14px; display: block; }
.banner-dots { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 7px; }
.banner-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.35); }
.banner-dots button.active { width: 22px; border-radius: 999px; background: var(--gold); }

.section-block { margin-top: 34px; }
.section-title-row { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.eyebrow { margin: 0 0 5px; color: var(--gold); letter-spacing: .10em; font-size: 12px; font-weight: 800; }
h2, h3 { margin: 0; letter-spacing: -.04em; }
.section-title-row h2, .section-heading-center h2 { font-size: clamp(24px, 5vw, 34px); }
.mini-note { color: var(--muted); font-weight: 700; font-size: 12px; }
.subtitle { color: var(--muted); margin: 8px 0 0; }
.section-heading-center { text-align: center; margin-bottom: 18px; }

.top-seller-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.top-card {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 102px;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.015)),
    radial-gradient(circle at 10% 10%, rgba(125,222,138,.15), transparent 9rem),
    var(--card);
  box-shadow: 0 14px 26px rgba(0,0,0,.24);
}
.top-card .rank { color: var(--gold); font-weight: 900; font-size: 12px; }
.top-card img { width: 82px; height: 82px; object-fit: contain; filter: drop-shadow(0 16px 16px rgba(0,0,0,.55)); }
.top-card h4 { margin: 0 0 6px; font-size: 15px; line-height: 1.15; color: var(--text); }
.top-card p { margin: 0; color: var(--muted); font-size: 12px; }

.quick-filters { display: flex; gap: 9px; overflow-x: auto; padding: 2px 0 14px; scrollbar-width: none; }
.quick-filters::-webkit-scrollbar { display: none; }
.filter-chip {
  white-space: nowrap;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: #d7eadb;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 13px;
}
.filter-chip.active { background: rgba(255,209,90,.16); color: var(--gold); border-color: rgba(255,209,90,.38); }

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.product-card {
  position: relative;
  min-height: 230px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 24px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)),
    radial-gradient(circle at 50% 22%, rgba(125,222,138,.18), transparent 8rem),
    rgba(12, 24, 17, .78);
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease;
}
.product-card:hover { transform: translateY(-2px); border-color: rgba(125,222,138,.35); }
.product-card::before { content: ""; position: absolute; inset: 10px; border-radius: 18px; background: linear-gradient(135deg, rgba(255,255,255,.08), transparent 34%); pointer-events: none; }
.product-media { height: 132px; display: grid; place-items: center; }
.product-media img { max-width: 112%; max-height: 150px; object-fit: contain; filter: drop-shadow(0 22px 17px rgba(0,0,0,.52)); }
.product-info { position: relative; z-index: 1; }
.product-card h4 { margin: 0 0 7px; font-size: 15px; line-height: 1.15; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.price { color: var(--gold); font-weight: 900; font-size: 13px; }
.stock-pill { border: 1px solid rgba(125,222,138,.26); background: rgba(125,222,138,.10); color: #b6ffc1; border-radius: 999px; padding: 6px 8px; font-size: 11px; font-weight: 800; }
.badge-pill { display: inline-flex; width: fit-content; border: 1px solid rgba(255,209,90,.26); background: rgba(255,209,90,.13); color: var(--gold); padding: 6px 9px; border-radius: 999px; font-weight: 900; font-size: 11px; }
.empty-state { text-align: center; color: var(--muted); padding: 30px 0; }

.wa-float {
  position: fixed;
  z-index: 45;
  right: 18px;
  bottom: 22px;
  border: 0;
  border-radius: 999px;
  padding: 13px 16px;
  background: var(--gold);
  color: #211800;
  font-weight: 900;
  box-shadow: 0 16px 32px rgba(0,0,0,.35);
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(6px);
}
.sheet {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 0;
  width: min(680px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  transform: translate(-50%, 110%);
  transition: transform .23s ease;
  padding: 22px 18px 24px;
  border-radius: 28px 28px 0 0;
  border: 1px solid rgba(255,255,255,.13);
  background: linear-gradient(180deg, rgba(19,38,26,.98), rgba(8,15,11,.98));
  box-shadow: 0 -24px 60px rgba(0,0,0,.52);
}
.sheet.open { transform: translate(-50%, 0); }
.sheet-close {
  position: absolute;
  right: 14px;
  top: 13px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  color: var(--text);
  font-size: 24px;
}
.sheet-product-head { display: grid; grid-template-columns: 135px 1fr; gap: 16px; align-items: center; padding-right: 42px; }
.sheet-img-wrap { height: 135px; display: grid; place-items: center; border-radius: 24px; background: radial-gradient(circle, rgba(125,222,138,.15), rgba(255,255,255,.03)); border: 1px solid var(--line); }
.sheet-img-wrap img { max-width: 130px; max-height: 130px; object-fit: contain; filter: drop-shadow(0 22px 16px rgba(0,0,0,.5)); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.option-block { margin-top: 20px; }
.option-title { font-weight: 900; margin-bottom: 10px; }
.chip-grid { display: flex; gap: 9px; flex-wrap: wrap; }
.option-chip {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  color: #e4f5e8;
  border-radius: 999px;
  padding: 10px 13px;
  font-weight: 800;
  font-size: 13px;
}
.option-chip.active { background: rgba(125,222,138,.16); border-color: rgba(125,222,138,.5); color: #c4ffcc; }
.option-chip:disabled { opacity: .38; cursor: not-allowed; }
.qty-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
}
.qty-label { margin: 0 0 4px; font-weight: 900; }
.qty-control { display: grid; grid-template-columns: 38px 44px 38px; align-items: center; text-align: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty-control button { height: 38px; border: 0; background: rgba(255,255,255,.07); color: var(--text); font-size: 20px; }
.qty-control button:disabled { opacity: .35; }

.primary-btn, .secondary-btn {
  min-height: 48px;
  border-radius: 16px;
  border: 0;
  padding: 12px 15px;
  font-weight: 900;
}
.primary-btn { background: linear-gradient(135deg, var(--green), var(--green-2)); color: #041008; box-shadow: 0 12px 24px rgba(47,191,113,.22); }
.primary-btn:disabled { opacity: .45; cursor: not-allowed; }
.secondary-btn { background: rgba(255,255,255,.07); color: var(--text); border: 1px solid var(--line); }
.full-btn { width: 100%; }

.cart-items { display: grid; gap: 10px; margin: 18px 0; }
.cart-empty { padding: 22px; text-align: center; border: 1px dashed var(--line); border-radius: 20px; color: var(--muted); }
.cart-item { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 12px; border-radius: 20px; border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.cart-item img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 13px 10px rgba(0,0,0,.4)); }
.cart-item h4 { margin: 0 0 3px; font-size: 14px; }
.cart-item p { margin: 0; color: var(--muted); font-size: 12px; }
.cart-item-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; }
.mini-qty { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.mini-qty button { width: 30px; height: 30px; border: 0; color: var(--text); background: rgba(255,255,255,.07); }
.remove-btn { border: 0; background: transparent; color: var(--danger); font-weight: 800; }
.cart-summary, .payment-detail > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cart-summary { padding: 16px 0; border-top: 1px solid var(--line); }
.cart-summary strong { color: var(--gold); font-size: 20px; }

.field-label { display: grid; gap: 8px; margin: 18px 0 12px; font-weight: 800; }
.field-label input { width: 100%; border: 1px solid var(--line); background: rgba(0,0,0,.26); color: var(--text); border-radius: 16px; padding: 14px; outline: none; }
.join-methods { display: grid; gap: 10px; margin-bottom: 16px; }
.join-methods label { display: flex; align-items: center; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.04); font-weight: 700; }
.payment-card { display: grid; grid-template-columns: 138px 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: 22px; border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.qris-box { aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #fff; display: grid; place-items: center; padding: 10px; }
.qris-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.payment-detail { display: grid; gap: 10px; }
.payment-detail span { color: var(--muted); }
.payment-detail strong { color: var(--text); }
.grand-total { padding-top: 10px; border-top: 1px solid var(--line); }
.grand-total strong { color: var(--gold); font-size: 21px; }
.checkout-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 86px;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #07120d;
  font-weight: 900;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  transition: .18s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 760px) {
  .topbar { grid-template-columns: 38px 50px 1fr 44px; gap: 8px; padding: 10px 12px; }
  .brand span { display: none; }
  .search-wrap { height: 44px; padding: 0 12px; }
  .search-wrap input { font-size: 13px; }
  .search-wrap span { width: 32px; height: 32px; font-size: 14px; }
  .icon-btn { height: 40px; }
  .cart-btn { font-size: 18px; }
  .cart-btn b { min-width: 22px; height: 22px; font-size: 11px; top: -5px; right: -5px; }
  .page-shell { padding-inline: 12px; }
  .banner-copy { padding: 12px; inset: auto 12px 12px 12px; }
  .banner-copy p { display: none; }
  .banner-dots { bottom: 12px; right: 12px; }
  .top-seller-grid { grid-template-columns: 1fr; gap: 10px; }
  .top-card { grid-template-columns: 1fr; text-align: center; }
  .top-card img { width: 72px; height: 72px; margin: 0 auto; }
  .top-card h4 { font-size: 14px; text-align: center; }
  .top-card p { text-align: center; }
  .product-grid { gap: 11px; }
  .product-card { min-height: 210px; padding: 10px; border-radius: 20px; }
  .product-media { height: 122px; }
  .product-media img { max-height: 135px; }
  .product-card h4 { font-size: 14px; }
  .product-meta { align-items: flex-start; flex-direction: column; gap: 7px; }
  .sheet-product-head { grid-template-columns: 112px 1fr; gap: 12px; }
  .sheet-img-wrap { height: 112px; }
  .sheet-img-wrap img { max-width: 108px; max-height: 108px; }
  .payment-card { grid-template-columns: 1fr; }
  .qris-box { width: 170px; margin: 0 auto; }
  .checkout-actions { grid-template-columns: 1fr; }
}

@media (min-width: 900px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .product-card { min-height: 250px; }
}
