/* ============================================================
   Katalog Produk — penuh warna, gaya marketplace, mobile first
   ============================================================ */

*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --bg: #F8F6FF;
  --surface: #FFFFFF;
  --ink: #17132B;
  --muted: #6D6790;
  --line: rgba(23, 19, 43, 0.10);
  --line-soft: rgba(23, 19, 43, 0.06);

  --violet: #7C3AED;
  --violet-deep: #5B21B6;
  --fuchsia: #D946EF;
  --pink: #EC4899;
  --rose: #F43F5E;
  --amber: #F59E0B;
  --green: #10B981;
  --sky: #0EA5E9;

  --price: #E11D48;

  --radius: 18px;
  --grad: linear-gradient(135deg, #7C3AED 0%, #C026D3 52%, #F43F5E 100%);
  --grad-2: linear-gradient(135deg, #F59E0B, #F43F5E);
  --grad-3: linear-gradient(135deg, #0EA5E9, #7C3AED);
  --shadow-sm: 0 2px 6px rgba(23, 19, 43, 0.05);
  --shadow: 0 2px 6px rgba(23, 19, 43, 0.05), 0 20px 42px -30px rgba(23, 19, 43, 0.45);
  --shadow-pop: 0 10px 24px -12px rgba(124, 58, 237, 0.65);
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(760px 480px at 92% -8%, rgba(217, 70, 239, 0.20), transparent 62%),
    radial-gradient(680px 460px at 2% 2%, rgba(124, 58, 237, 0.18), transparent 60%),
    radial-gradient(620px 420px at 60% 108%, rgba(244, 63, 94, 0.13), transparent 68%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ============================== header ============================== */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--grad);
  border-radius: 0 0 26px 26px;
  padding: 16px 0 18px;
  color: #fff;
  box-shadow: 0 14px 30px -22px rgba(91, 33, 182, 0.9);
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.5;
  pointer-events: none;
}
.hero-blob-a {
  width: 190px;
  height: 190px;
  top: -108px;
  right: -40px;
  background: radial-gradient(circle at 32% 32%, #FDE68A, rgba(253, 230, 138, 0));
}
.hero-blob-b {
  width: 150px;
  height: 150px;
  bottom: -96px;
  left: -34px;
  background: radial-gradient(circle at 60% 40%, #67E8F9, rgba(103, 232, 249, 0));
}

.hero-in { position: relative; z-index: 1; }

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-text { min-width: 0; }

.brand-sub {
  margin: 0 0 2px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.brand-name {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
}

.brand-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.icon-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.icon-btn svg { width: 19px; height: 19px; }

.icon-btn-glass {
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
}
.icon-btn-glass:hover { background: rgba(255, 255, 255, 0.28); }

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #FDE047;
  color: #4C1D95;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.55);
}
.cart-badge.is-bump { animation: bump 0.36s ease; }
@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* ------------------------------- search ------------------------------- */

.search-row { margin-top: 14px; }

.search {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 15px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  box-shadow: 0 8px 20px -16px rgba(23, 19, 43, 0.8);
  transition: box-shadow 0.18s ease;
}
.search:focus-within { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4), 0 8px 20px -16px rgba(23, 19, 43, 0.8); }
.search svg { width: 18px; height: 18px; color: var(--violet); flex: 0 0 auto; }
.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
  color: var(--ink);
}
.search input::placeholder { color: #9A93B8; }

/* ------------------------------- chips -------------------------------- */

.chips-bar {
  max-width: 1120px;
  margin: 14px auto 0;
}

.chips {
  display: flex;
  gap: 8px;
  padding: 2px 16px 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, color 0.16s ease, background 0.16s ease;
}
.chip:hover { transform: translateY(-1px); }
.chip[aria-pressed="true"] {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-pop);
}

.chip[data-color="0"] { color: #7C3AED; }
.chip[data-color="1"] { color: #DB2777; }
.chip[data-color="2"] { color: #0EA5E9; }
.chip[data-color="3"] { color: #059669; }
.chip[data-color="4"] { color: #D97706; }
.chip[data-color="0"][aria-pressed="true"],
.chip[data-color="1"][aria-pressed="true"],
.chip[data-color="2"][aria-pressed="true"],
.chip[data-color="3"][aria-pressed="true"],
.chip[data-color="4"][aria-pressed="true"] { color: #fff; }

/* ------------------------------- promo -------------------------------- */

.promo {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, #FDE68A 0%, #FDA4AF 52%, #C4B5FD 100%);
  box-shadow: var(--shadow);
}
.promo-text { position: relative; z-index: 1; max-width: 30ch; }
.promo-kicker {
  margin: 0 0 4px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9D174D;
}
.promo-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: #3B0764;
  letter-spacing: -0.01em;
}
.promo-art { position: absolute; inset: 0; pointer-events: none; }
.promo-bubble { position: absolute; border-radius: 50%; opacity: 0.55; }
.promo-bubble-1 { width: 88px; height: 88px; right: 8px; top: -22px; background: rgba(255, 255, 255, 0.7); }
.promo-bubble-2 { width: 54px; height: 54px; right: 74px; bottom: -18px; background: rgba(124, 58, 237, 0.35); }
.promo-bubble-3 { width: 26px; height: 26px; right: 40px; bottom: 22px; background: rgba(255, 255, 255, 0.85); }

/* ------------------------------ section ------------------------------- */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 0 14px;
}
.section-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.count {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* -------------------------------- grid -------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 8px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { box-shadow: 0 4px 10px rgba(23, 19, 43, 0.06), 0 26px 46px -32px rgba(23, 19, 43, 0.55); }
.card:active { transform: scale(0.994); }
.card.is-soldout .card-media img { filter: grayscale(0.35); opacity: 0.85; }

.card-hit {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--tint, linear-gradient(150deg, #EDE9FE, #FCE7F3));
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 2;
  background: linear-gradient(90deg, var(--card-a, #7C3AED), var(--card-b, #D946EF));
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.card:hover .card-media img { transform: scale(1.04); }

.media-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 34px;
  font-weight: 800;
  color: rgba(23, 19, 43, 0.22);
}

.photo-count,
.card-flag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: rgba(23, 19, 43, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.photo-count { top: 8px; right: 8px; font-variant-numeric: tabular-nums; }
.photo-count svg { width: 12px; height: 12px; }
.card-flag {
  bottom: 8px;
  left: 8px;
  background: linear-gradient(135deg, #F43F5E, #BE123C);
  letter-spacing: 0.02em;
}

.card-body { padding: 11px 12px 13px; }

.card-cat {
  margin: 0 0 4px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--card-a, var(--violet));
}

.card-name {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.card-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 7px;
  margin-top: 6px;
}

.card-price {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--price);
  font-variant-numeric: tabular-nums;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 7px;
  margin-top: 5px;
}

.stock {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.stock-ready { color: #047857; }
.stock-low { color: #B45309; }
.stock-empty { color: #BE123C; }

.card-spec {
  margin: 0;
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.card-add {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--card-a, #7C3AED), var(--card-b, #D946EF));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 18px -8px rgba(23, 19, 43, 0.55);
  transition: transform 0.16s ease, filter 0.16s ease;
}
.card-add svg { width: 17px; height: 17px; }
.card-add:hover { transform: translateY(-1px) scale(1.04); }
.card-add:active { transform: scale(0.94); }
.card-add.is-added { background: linear-gradient(135deg, #10B981, #047857); }

/* supaya tombol + tidak menutupi teks */
.card-body { padding-right: 12px; }
.card-meta, .card-price-row { padding-right: 40px; }

/* ------------------------------ empty state --------------------------- */

.empty {
  margin: 22px 0 34px;
  padding: 34px 22px;
  text-align: center;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.empty-art {
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
  border-radius: 24px;
  background: var(--grad);
  opacity: 0.9;
  transform: rotate(-8deg);
}
.empty h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.empty p { margin: 0; color: var(--muted); font-size: 13.5px; }
.empty-action { margin-top: 18px !important; }

/* ============================ tentang kami ========================== */

.about {
  position: relative;
  margin-top: 26px;
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #7C3AED, #D946EF 55%, #F59E0B) border-box;
  border: 1.5px solid transparent;
  box-shadow: var(--shadow);
}

.about-head {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.about-badge {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-pop);
}
.about-badge svg { width: 21px; height: 21px; }

.about-head > div:last-child { min-width: 0; }

.about-kicker {
  margin: 0;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fuchsia);
}
.about-title {
  margin: 1px 0 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
}
.about-tagline {
  margin: 3px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

.about-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.about-card {
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(150deg, #F5F3FF, #FDF2F8);
  border: 1px solid rgba(124, 58, 237, 0.10);
}
.about-card-address {
  background: linear-gradient(150deg, #FFFBEB, #FFF1F2);
  border-color: rgba(245, 158, 11, 0.18);
}

.about-card-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--violet);
}
.about-card-address .about-card-title { color: #B45309; }
.about-card-title svg { width: 14px; height: 14px; flex: 0 0 auto; }

.about-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: #3F3757;
}

.about-address {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  font-weight: 600;
  color: #4A3A1E;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 800;
  color: #047857;
  border-bottom: 1px solid rgba(4, 120, 87, 0.35);
  padding-bottom: 1px;
}
.about-link svg { width: 13px; height: 13px; }

.footer {
  padding: 26px 0 96px;
  margin-top: 22px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.footer p { margin: 0; }
.footer-brand {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.footer-address {
  margin-top: 5px !important;
  font-size: 11.5px;
  line-height: 1.6;
  max-width: 42ch;
  margin-inline: auto !important;
}
.footer-tagline {
  margin-top: 5px !important;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}
.footer-copy { margin-top: 8px !important; font-size: 11px; opacity: 0.85; }
.footer-slim { padding: 22px 0 10px; margin-top: 18px; border-top: 1px solid var(--line-soft); }

/* ============================== sheet =============================== */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 19, 43, 0.48);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: fade 0.2s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { transform: translateY(18px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.sheet-panel {
  position: relative;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  animation: rise 0.26s cubic-bezier(0.22, 0.9, 0.3, 1);
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 -12px 40px -18px rgba(23, 19, 43, 0.55);
}

.sheet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(23, 19, 43, 0.22);
}

.sheet-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--tint, linear-gradient(150deg, #EDE9FE, #FCE7F3));
}
.sheet-media .media-empty { font-size: 52px; }

/* ------------------------------ galeri ------------------------------- */

.gallery {
  position: relative;
  background: linear-gradient(150deg, #EDE9FE, #FCE7F3);
  overflow: hidden;
  border-radius: 24px 24px 0 0;
}
.gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  aspect-ratio: 4 / 3;
}
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }

.gallery-count {
  position: absolute;
  top: 12px;
  left: 12px;
  height: 24px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(23, 19, 43, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.gallery-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}
.gallery-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 0 0 1px rgba(23, 19, 43, 0.12);
  cursor: pointer;
  pointer-events: auto;
  transition: width 0.2s ease, background 0.2s ease;
}
.gallery-dot.is-active { width: 18px; border-radius: 999px; background: #fff; }

/* ----------------------------- sheet body ---------------------------- */

.sheet-body { padding: 18px 18px 26px; }

.sheet-cat {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet);
}
.sheet-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.sheet-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.sheet-price {
  margin: 0;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--price);
  font-variant-numeric: tabular-nums;
}

.stock-chip {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}
.stock-chip.stock-low { background: rgba(245, 158, 11, 0.16); color: #B45309; }
.stock-chip.stock-empty { background: rgba(244, 63, 94, 0.14); color: #BE123C; }

.sheet-buy { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }

.stepper {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  align-self: flex-start;
  padding: 4px;
  border-radius: 999px;
  background: #F5F3FF;
  border: 1px solid var(--line-soft);
}
.stepper-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--violet);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.stepper-btn:disabled { opacity: 0.4; cursor: default; box-shadow: none; }
.stepper-value {
  min-width: 34px;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.spec-list {
  margin: 18px 0 0;
  border-top: 1px solid var(--line-soft);
}
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
}
.spec-row dt { color: var(--muted); flex: 0 0 auto; }
.spec-row dd { margin: 0; text-align: right; font-weight: 600; }

.sheet-desc {
  margin: 16px 0 0;
  color: #4B4462;
  font-size: 13.5px;
  line-height: 1.65;
}

/* ============================== buttons ============================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #F1EEFF;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.99); }
.btn[disabled] { opacity: 0.45; cursor: default; transform: none; }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-pop);
}
.btn-primary svg { width: 18px; height: 18px; }

.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { background: #FAF8FF; }

.btn-wa {
  background: #fff;
  border-color: rgba(16, 185, 129, 0.4);
  color: #047857;
}
.btn-wa:hover { background: rgba(16, 185, 129, 0.07); }
.btn-wa svg { width: 17px; height: 17px; }

.btn-block { width: 100%; }

.btn-sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 12.5px;
}

.btn-danger {
  background: rgba(244, 63, 94, 0.08);
  border-color: rgba(244, 63, 94, 0.28);
  color: #BE123C;
}
.btn-danger:hover { background: rgba(244, 63, 94, 0.14); }

/* ============================ floating cart ========================= */

.cart-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px 9px 16px;
  border-radius: 18px;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 16px 34px -14px rgba(91, 33, 182, 0.75);
  animation: rise 0.28s cubic-bezier(0.22, 0.9, 0.3, 1);
}
.cart-bar-info { min-width: 0; flex: 1 1 auto; }
.cart-bar-count {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.cart-bar-total {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.cart-bar-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 13px;
  background: #fff;
  color: #5B21B6;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.cart-bar-btn svg { width: 16px; height: 16px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 78px;
  z-index: 120;
  transform: translateX(-50%) translateY(12px);
  max-width: calc(100vw - 32px);
  padding: 11px 16px;
  border-radius: 14px;
  background: rgba(23, 19, 43, 0.94);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: 0 16px 30px -18px rgba(23, 19, 43, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================== halaman ============================= */

.page-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0 4px;
}
.page-head .icon-btn { flex: 0 0 auto; }
.page-title {
  margin: 0;
  flex: 1 1 auto;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.page-sub {
  margin: 2px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

/* keranjang */
.cart-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.cart-thumb {
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  border-radius: 13px;
  overflow: hidden;
  background: linear-gradient(150deg, #EDE9FE, #FCE7F3);
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
  color: rgba(23, 19, 43, 0.22);
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }

.cart-main { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; }
.cart-name {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-price {
  margin: 3px 0 0;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--price);
  font-variant-numeric: tabular-nums;
}
.cart-warn {
  margin: 3px 0 0;
  font-size: 11px;
  font-weight: 700;
  color: #BE123C;
}
.cart-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}
.cart-remove {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: rgba(244, 63, 94, 0.08);
  color: #BE123C;
  cursor: pointer;
}
.cart-remove svg { width: 15px; height: 15px; }

.stepper-sm { padding: 3px; background: #F5F3FF; }
.stepper-sm .stepper-btn { width: 28px; height: 28px; font-size: 15px; }
.stepper-sm .stepper-value { min-width: 26px; font-size: 13px; }

.cart-summary {
  margin-top: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.sum-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  color: var(--muted);
  padding: 5px 0;
}
.sum-row.total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}
.sum-row.total span:last-child { color: var(--price); font-variant-numeric: tabular-nums; }

.checkout-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 34px -16px rgba(23, 19, 43, 0.5);
}
.checkout-total { flex: 1 1 auto; min-width: 0; }
.checkout-total .label-mini {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.checkout-total .value {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--price);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.checkout-bar .btn { flex: 0 0 auto; }

.cart-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.13);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #92400E;
  font-size: 12.5px;
  line-height: 1.55;
}
.cart-note strong { color: #78350F; }

/* =============================== admin ============================== */

.page-narrow { max-width: 640px; }

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0 4px;
}
.admin-title { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.admin-sub { margin: 2px 0 0; font-size: 13px; color: var(--muted); }

.admin-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
}
.admin-links a { color: var(--muted); }
.admin-links a:hover { color: var(--violet); }

.panel {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-top: 16px;
}

.rowlist { margin: 0; padding: 0; list-style: none; }
.rowitem {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.rowitem:last-child { border-bottom: 0; }
.rowitem-thumb {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 13px;
  overflow: hidden;
  background: linear-gradient(150deg, #EDE9FE, #FCE7F3);
}
.rowitem-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rowitem-main { min-width: 0; flex: 1 1 auto; }
.rowitem-name {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rowitem-meta {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.rowitem-tags { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.rowitem-tags .dot-sep { opacity: 0.6; }
.rowitem-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }

/* ------------------------------ form ------------------------------- */

.field { display: block; }
.field + .field { margin-top: 18px; }
.label {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.input,
.textarea {
  width: 100%;
  padding: 12px 14px;
  background: #FBFAFF;
  border: 1px solid var(--line);
  border-radius: 13px;
  font-size: 16px;
  line-height: 1.5;
  outline: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.input:focus,
.textarea:focus {
  background: #fff;
  border-color: rgba(124, 58, 237, 0.55);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14);
}
.textarea { resize: vertical; min-height: 110px; }
.hint { margin: 7px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }

.price-wrap { position: relative; display: block; }
.price-wrap .prefix {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  pointer-events: none;
}
.price-wrap .input { padding-left: 46px; font-variant-numeric: tabular-nums; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.photo-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 13px;
  overflow: hidden;
  background: linear-gradient(150deg, #EDE9FE, #FCE7F3);
  border: 1px solid var(--line-soft);
}
.photo-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-item.is-cover { box-shadow: inset 0 0 0 2px var(--violet); }

.photo-badge {
  position: absolute;
  left: 6px;
  bottom: 6px;
  height: 20px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(23, 19, 43, 0.68);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.photo-make {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.16s ease;
}
.photo-item:focus-within .photo-make,
.photo-item:hover .photo-make { opacity: 1; }
@media (hover: none) { .photo-make { opacity: 1; } }

.photo-del {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(23, 19, 43, 0.62);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.photo-add {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px;
  border: 1.5px dashed rgba(124, 58, 237, 0.4);
  border-radius: 13px;
  background: rgba(124, 58, 237, 0.05);
  color: var(--violet);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.photo-add:hover:not([disabled]) { background: rgba(124, 58, 237, 0.1); border-color: rgba(124, 58, 237, 0.65); }
.photo-add[disabled] { opacity: 0.45; cursor: default; }
.photo-add-icon { font-size: 22px; font-weight: 700; line-height: 1; }
.photo-add-label { font-size: 10.5px; font-weight: 700; text-align: center; line-height: 1.25; }

.picker-status { margin: 8px 0 0; font-size: 12px; color: var(--muted); }

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.form-actions .btn { flex: 1 1 auto; }

.alert {
  margin: 14px 0 0;
  padding: 12px 15px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.55;
  border: 1px solid transparent;
}
.alert-ok { background: rgba(16, 185, 129, 0.10); border-color: rgba(16, 185, 129, 0.28); color: #065F46; }
.alert-err { background: rgba(244, 63, 94, 0.08); border-color: rgba(244, 63, 94, 0.26); color: #9F1239; }
.alert a { border-bottom: 1px solid currentColor; }

/* ------------------------------- login ------------------------------ */

.auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px 40px;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  box-shadow: 0 4px 10px rgba(23, 19, 43, 0.05), 0 40px 70px -46px rgba(23, 19, 43, 0.65);
  padding: 28px 22px 24px;
}
.auth-eyebrow {
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--violet);
}
.auth-title { margin: 0; font-size: 25px; font-weight: 800; letter-spacing: -0.03em; }
.auth-text { margin: 8px 0 20px; font-size: 13.5px; color: var(--muted); }
.auth-foot {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.auth-foot a { color: var(--violet); font-weight: 700; }

/* ============================= responsif ============================ */

@media (min-width: 480px) {
  .cart-bar, .checkout-bar { left: 50%; right: auto; transform: translateX(-50%); width: 460px; }
  .toast { bottom: 84px; }
}

@media (min-width: 560px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .brand-name { font-size: 23px; }
  .card-name { font-size: 14px; }
  .card-price { font-size: 15.5px; }
  .promo-text { max-width: 44ch; }
  .promo-title { font-size: 15px; }
}

@media (min-width: 860px) {
  .wrap { padding: 0 24px; }
  .chips { padding: 2px 24px 4px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .section-head { margin: 30px 0 16px; }
  .about { padding: 22px; margin-top: 30px; }
  .about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .about-title { font-size: 19px; }
  .sheet { align-items: center; padding: 24px; }
  .sheet-panel { max-width: 560px; border-radius: 24px; max-height: 88vh; }
  .gallery { border-radius: 24px 24px 0 0; }
  .hero { border-radius: 0 0 32px 32px; padding: 20px 0 22px; }
  .panel { padding: 22px; }
  .footer { padding-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
