/* =========================================================
   BAGINA — Design System
   Font: Sora (display) + Inter (body)
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg: #fafaff;
  --bg-alt: #f1effe;
  --surface: #ffffff;
  --border: #e5e2f7;
  --ink: #16162b;
  --ink-soft: #5b5c79;
  --ink-faint: #8b8ca8;

  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --primary-tint: #eeecfd;

  --accent: #ff6b35;
  --accent-dark: #e2521f;
  --accent-tint: #ffede3;

  --mint: #06b58a;
  --mint-tint: #e1f8f1;

  --yellow: #ffc93c;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 28px;

  --shadow-sm:
    0 1px 2px rgba(22, 22, 43, 0.06), 0 1px 1px rgba(22, 22, 43, 0.04);
  --shadow-md: 0 12px 28px rgba(38, 32, 109, 0.1);
  --shadow-lg: 0 24px 48px rgba(38, 32, 109, 0.14);

  --container: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* cegah geser horizontal karena 1 elemen overflow */
}

h1,
h2,
h3,
h4 {
  font-family: "Sora", "Inter", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
  color: var(--ink-soft);
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font-family: inherit;
  cursor: pointer;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 88px 0;
}
@media (max-width: 720px) {
  section {
    padding: 56px 0;
  }
}

.eyebrow-hidden {
  /* intentionally unused */
}

.section-head {
  max-width: 620px;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}
.section-head p {
  font-size: 1.05rem;
  margin-bottom: 0;
}

.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-tint);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.pill-tag svg {
  width: 14px;
  height: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 22px rgba(255, 107, 53, 0.28);
}
.btn-accent:hover {
  background: var(--accent-dark);
  box-shadow: 0 12px 26px rgba(255, 107, 53, 0.36);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-block {
  width: 100%;
}
.btn-sm {
  padding: 10px 16px;
  font-size: 0.9rem;
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 1.28rem;
  color: var(--ink);
}
.logo .dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
  display: inline-block;
  transform: rotate(12deg);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--ink-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  border-color: var(--accent);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 6px 24px 18px;
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a:last-child {
    border-bottom: none;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-right .btn-accent span.long {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 76px 0 60px;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  max-width: 12ch;
}
.hero p.lead {
  font-size: 1.12rem;
  max-width: 46ch;
  margin-bottom: 30px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.hero-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-meta div {
  display: flex;
  flex-direction: column;
}
.hero-meta strong {
  font-family: "Sora", sans-serif;
  font-size: 1.35rem;
  color: var(--ink);
}
.hero-meta span {
  font-size: 0.85rem;
  color: var(--ink-faint);
}

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  .hero-art {
    order: -1;
    max-width: 380px;
    margin: 0 auto;
  }
}

.hero-art {
  position: relative;
}
.hero-art .float-slow {
  animation: floaty 6s ease-in-out infinite;
}
.hero-art .float-slow.delay {
  animation-delay: -3s;
}
@media (prefers-reduced-motion: reduce) {
  .hero-art .float-slow {
    animation: none;
  }
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  padding: 26px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.trust-strip .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 40px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.trust-item svg {
  width: 20px;
  height: 20px;
  color: var(--mint);
  flex-shrink: 0;
}

/* ---------- Category cards ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .cat-grid {
    grid-template-columns: 1fr;
  }
}

.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 32px 28px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.cat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.cat-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.cat-icon svg {
  width: 28px;
  height: 28px;
}
.cat-icon.i-game {
  background: var(--primary-tint);
  color: var(--primary);
}
.cat-icon.i-voucher {
  background: var(--accent-tint);
  color: var(--accent-dark);
}
.cat-icon.i-kasir {
  background: var(--mint-tint);
  color: var(--mint);
}

.cat-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.cat-card p {
  font-size: 0.95rem;
  margin-bottom: 18px;
}
.cat-card .cat-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
}
.cat-card .cat-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.15s ease;
}
.cat-card:hover .cat-link svg {
  transform: translateX(3px);
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
@media (max-width: 980px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-item h4 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}
.feature-item p {
  font-size: 0.92rem;
  margin-bottom: 0;
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-alt);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg {
  width: 22px;
  height: 22px;
}

/* ---------- Testimonial Carousel ---------- */
.carousel-section {
  background: var(--bg-alt);
}
.carousel {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}
.carousel-track {
  position: relative;
  min-height: 230px;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(16px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  pointer-events: none;
}
.carousel-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}
@media (prefers-reduced-motion: reduce) {
  .carousel-slide {
    transition: none;
  }
}

.testi-card {
  background: var(--surface);
  border-radius: var(--radius-l);
  padding: 40px 44px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.testi-quote {
  font-family: "Sora", sans-serif;
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 22px;
}
.testi-name {
  font-weight: 700;
  font-size: 0.95rem;
}
.testi-role {
  font-size: 0.85rem;
  color: var(--ink-faint);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 26px;
}
.carousel-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}
.carousel-arrow:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.carousel-arrow svg {
  width: 16px;
  height: 16px;
}
.carousel-dots {
  display: flex;
  gap: 8px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  padding: 0;
  transition:
    background-color 0.2s ease,
    width 0.2s ease;
}
.carousel-dot.active {
  background: var(--primary);
  width: 22px;
  border-radius: 5px;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-l);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2rem);
  max-width: 20ch;
  margin-bottom: 8px;
}
.cta-banner p {
  color: #c6c6de;
  margin-bottom: 0;
  max-width: 40ch;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 52px 0 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.footer-brand p {
  max-width: 32ch;
  font-size: 0.92rem;
}
.footer-cols {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}
.footer-col h5 {
  font-size: 0.85rem;
  margin-bottom: 14px;
  color: var(--ink);
}
.footer-col a {
  display: block;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
  transition: color 0.15s ease;
}
.footer-col a:hover {
  color: var(--ink);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--mint);
  color: #fff;
  padding: 14px 20px;
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(6, 181, 138, 0.35);
  font-weight: 700;
  font-size: 0.92rem;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.wa-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(6, 181, 138, 0.45);
}
.wa-float svg {
  width: 20px;
  height: 20px;
}
@media (max-width: 560px) {
  .wa-float span {
    display: none;
  }
  .wa-float {
    padding: 14px;
  }
}

/* ---------- Page header ---------- */
.page-header {
  padding: 64px 0 40px;
}
.page-header h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  max-width: 16ch;
}
.page-header p {
  font-size: 1.05rem;
  max-width: 52ch;
}

/* ---------- Tabs ---------- */
.tab-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.tab-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}
.tab-btn svg {
  width: 17px;
  height: 17px;
}
.tab-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.tab-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.product-groups {
  position: relative;
}
.product-group {
  display: none;
  animation: fadeIn 0.35s ease;
}
.product-group.active {
  display: block;
}
.location-grid--simple {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin: 0 auto;
}

.location-grid--simple .location-info {
  width: 100%;
}

/* ===== Lokasi Kami (versi ringkas) ===== */
.location-simple {
  max-width: 960px;
  margin: 0 auto;
}

.loc-hero {
  text-align: center;
  padding: 40px 24px;
  background: var(--bg-alt, #f6f8fa);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  margin-bottom: 32px;
}
.loc-hero-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #06b58a;
  color: #fff;
}
.loc-hero-icon svg {
  width: 32px;
  height: 32px;
}
.loc-hero h3 {
  font-size: 1.4rem;
  margin: 0 0 8px;
}
.loc-hero p {
  margin: 0 auto;
  max-width: 480px;
  color: var(--ink-soft, #6b7280);
  line-height: 1.6;
}

.loc-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.loc-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.loc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}
.loc-card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
}
.loc-card-icon svg {
  width: 22px;
  height: 22px;
}
.loc-card-icon.i-time {
  background: #4f46e5;
}
.loc-card-icon.i-wa {
  background: #06b58a;
}
.loc-card-icon.i-fast {
  background: #ff6b35;
}
.loc-card h4 {
  margin: 0 0 8px;
  font-size: 1rem;
}
.loc-card p {
  margin: 0 0 10px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft, #6b7280);
}
.loc-card p strong {
  color: var(--ink, #111);
}
.loc-note {
  display: inline-block;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(6, 181, 138, 0.1);
  color: #06b58a;
}
.loc-cta {
  text-align: center;
}

@media (max-width: 768px) {
  .loc-cards {
    grid-template-columns: 1fr;
  }
  .loc-hero {
    padding: 32px 20px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .product-group {
    animation: none;
  }
}

.group-head {
  margin-bottom: 22px;
}
.group-head h2 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.group-head p {
  margin-bottom: 0;
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 52px;
}
@media (max-width: 980px) {
  .item-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 620px) {
  .item-grid {
    grid-template-columns: 1fr;
  }
}

.item-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition:
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
.item-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}
.item-card h4 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}
.item-card .item-desc {
  font-size: 0.88rem;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.item-card .item-price {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 18px;
}
.item-card .item-price span {
  display: block;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--ink-faint);
}
.item-card .btn {
  margin-top: auto;
}

.item-card.kasir-card {
  grid-column: span 1;
}
.kasir-features {
  margin: 0 0 18px;
  padding: 0;
}
.kasir-features li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.87rem;
  color: var(--ink-soft);
  margin-bottom: 7px;
}
.kasir-features li svg {
  width: 15px;
  height: 15px;
  color: var(--mint);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- About page ---------- */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .story-grid {
    grid-template-columns: 1fr;
  }
}
.story-art {
  background: var(--bg-alt);
  border-radius: var(--radius-l);
  padding: 40px;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) {
  .value-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .value-grid {
    grid-template-columns: 1fr;
  }
}

.stat-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 40px;
}
.stat-item strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 2rem;
  color: var(--primary);
}
.stat-item span {
  font-size: 0.88rem;
  color: var(--ink-faint);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 700px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 28px;
}
.contact-card .cc-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.contact-card .cc-icon svg {
  width: 22px;
  height: 22px;
}
.contact-card h4 {
  margin-bottom: 6px;
}
.contact-card p {
  margin-bottom: 14px;
  font-size: 0.92rem;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* =========================================================
   IMAGE ENHANCEMENTS
   ========================================================= */
.cat-image {
  border-radius: var(--radius-m);
  overflow: hidden;
  aspect-ratio: 16/10;
  margin-bottom: 22px;
  background: var(--bg-alt);
  position: relative;
}
.cat-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.cat-card:hover .cat-image img {
  transform: scale(1.06);
}

.testi-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  margin: 0 auto 18px;
  border: 3px solid var(--primary-tint);
  box-shadow: 0 6px 16px rgba(38, 32, 109, 0.12);
}

.story-art img.story-photo {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-m);
  object-fit: cover;
  display: block;
  aspect-ratio: 4/3;
}

.page-banner {
  border-radius: var(--radius-l);
  overflow: hidden;
  aspect-ratio: 21/8;
  margin-bottom: 44px;
  background: var(--bg-alt);
  position: relative;
}
.page-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 720px) {
  .page-banner {
    aspect-ratio: 16/9;
    margin-bottom: 32px;
  }
}

/* =========================================================
   PRODUCT ICONS
   ========================================================= */
.item-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  margin-bottom: 16px;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.item-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.item-card:hover .item-icon {
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-sm);
  border-color: transparent;
}

/* =========================================================
   LOCATION
   ========================================================= */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .location-grid {
    grid-template-columns: 1fr;
  }
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.loc-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.loc-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--primary-tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.loc-icon svg {
  width: 22px;
  height: 22px;
}
.loc-item h4 {
  font-size: 0.98rem;
  margin: 0 0 6px;
}
.loc-item p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.location-info .btn {
  align-self: flex-start;
  margin-top: 8px;
}

.location-map {
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 420px;
  background: var(--bg-alt);
}
.location-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}
@media (max-width: 900px) {
  .location-map {
    min-height: 320px;
  }
  .location-map iframe {
    min-height: 320px;
  }
}

.item-card .item-photo {
  margin: -22px -22px 16px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-m) var(--radius-m) 0 0;
  background: var(--primary-tint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cpath d='M20 30 45 18Q60 32 75 18L100 30 90 52 78 46V100H42V46L30 52Z' fill='%23c9c4f3'/%3E%3C/svg%3E")
    center / 38% no-repeat;
  overflow: hidden;
}
.item-card .item-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.item-card .item-price span.per-pcs {
  color: var(--accent, #ff6b35);
  font-weight: 600;
  margin-top: 2px;
}

/* =========================================================
   LEGAL PAGES
   ========================================================= */
.legal-wrap {
  max-width: 820px;
  margin: 0 auto;
}
.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 44px 48px;
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.legal-meta strong {
  color: var(--ink-soft);
  font-weight: 600;
}
.legal-card h2 {
  font-size: 1.2rem;
  margin: 34px 0 12px;
  scroll-margin-top: 90px;
}
.legal-card h2:first-of-type {
  margin-top: 0;
}
.legal-card h2 .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--primary-tint);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
  margin-right: 10px;
  vertical-align: 2px;
}
.legal-card p,
.legal-card li {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.legal-card strong {
  color: var(--ink);
}
.legal-card ul {
  padding-left: 0;
  margin: 0 0 1em;
}
.legal-card ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}
.legal-card ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.legal-card ol {
  list-style: decimal;
  padding-left: 22px;
  margin: 0 0 1em;
}
.legal-card ol li {
  margin-bottom: 8px;
  padding-left: 4px;
}
.legal-note {
  background: var(--primary-tint);
  border-left: 3px solid var(--primary);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  font-size: 0.9rem;
  margin: 20px 0;
  color: var(--primary-dark);
}
.legal-note strong {
  color: var(--primary-dark);
}
.legal-toc {
  background: var(--bg-alt);
  border-radius: var(--radius-m);
  padding: 22px 26px;
  margin-bottom: 32px;
}
.legal-toc h3 {
  font-size: 0.95rem;
  margin: 0 0 12px;
}
.legal-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 30px;
}
.legal-toc li {
  font-size: 0.9rem;
  margin-bottom: 6px;
  break-inside: avoid;
}
.legal-toc a {
  color: var(--primary-dark);
  font-weight: 600;
}
.legal-toc a:hover {
  text-decoration: underline;
}
@media (max-width: 640px) {
  .legal-card {
    padding: 28px 22px;
  }
  .legal-toc ol {
    columns: 1;
  }
}

/* =========================================================
   FAQ PAGE
   ========================================================= */
.faq-wrap {
  max-width: 820px;
  margin: 0 auto;
}
.faq-cat {
  margin-bottom: 40px;
}
.faq-cat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.faq-cat-head .fc-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.faq-cat-head .fc-icon svg {
  width: 20px;
  height: 20px;
}
.faq-cat-head .fc-icon.i-order {
  background: var(--primary-tint);
  color: var(--primary);
}
.faq-cat-head .fc-icon.i-pay {
  background: var(--accent-tint);
  color: var(--accent-dark);
}
.faq-cat-head .fc-icon.i-ship {
  background: var(--mint-tint);
  color: var(--mint);
}
.faq-cat-head .fc-icon.i-prod {
  background: #fff6e0;
  color: #b98200;
}
.faq-cat-head .fc-icon.i-help {
  background: #fde6ec;
  color: #c62d5f;
}
.faq-cat-head h2 {
  font-size: 1.25rem;
  margin: 0;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  margin-bottom: 12px;
  overflow: hidden;
  transition:
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.faq-item:hover {
  box-shadow: var(--shadow-sm);
}
.faq-item.open {
  border-color: var(--primary);
}
.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q .faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--primary);
  transition: transform 0.25s ease;
}
.faq-item.open .faq-q .faq-icon {
  transform: rotate(180deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a-inner {
  padding: 0 24px 22px;
  font-size: 0.94rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.faq-a-inner p:last-child {
  margin-bottom: 0;
}
.faq-a-inner ul {
  margin: 8px 0 0;
}
.faq-a-inner ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
}
.faq-a-inner ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
}
.faq-a-inner a {
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: underline;
}
.faq-cta {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-l);
  padding: 44px 36px;
  text-align: center;
  margin-top: 12px;
}
.faq-cta h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.faq-cta p {
  color: #c6c6de;
  margin: 0 auto 22px;
  max-width: 44ch;
}
@media (max-width: 640px) {
  .faq-q {
    padding: 18px 20px;
    font-size: 0.95rem;
  }
  .faq-a-inner {
    padding: 0 20px 20px;
  }
}

/* =========================================================
   KERANJANG & CEK PEMBAYARAN
   ========================================================= */
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--ink);
  background: var(--surface);
  margin-right: 8px;
}
.cart-link svg {
  width: 20px;
  height: 20px;
}
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-badge[data-n="0"] {
  display: none;
}

/* --- LAYOUT KERANJANG --- */
.cart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

/* Naikkan breakpoint supaya mobile landscape & tablet tetap 1 kolom */
@media (max-width: 980px) {
  .cart-grid {
    grid-template-columns: 1fr;
  }
}

.cart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 24px;
  box-shadow: var(--shadow-md);
  min-width: 0; /* penting: cegah grid item melebar karena konten */
}
.cart-card h2 {
  font-size: 1.15rem;
  margin: 0 0 16px;
}

.cart-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  flex-wrap: wrap; /* biar aman di layar kecil */
}
.cart-row > div:first-child {
  flex: 1 1 160px;
  min-width: 0;
}
.cart-row small {
  display: block;
  color: var(--ink-soft);
}

.qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qty button,
.cart-del {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  font-size: 16px;
  color: var(--ink);
}
.cart-del {
  color: #c0392b;
}

/* --- FORM KERANJANG (yang tadinya tidak simetris) --- */
.cart-form {
  display: block;
  width: 100%;
}
.cart-form label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin: 12px 0 6px;
}

.cart-form input,
.cart-form select,
.cart-form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  font: inherit;
  font-size: 16px; /* cegah iOS auto-zoom */
  line-height: 1.4;
  color: var(--ink);
  background: var(--bg);
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.cart-form input:focus,
.cart-form select:focus,
.cart-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

/* Select: panah custom supaya padding kanan konsisten dengan input lain */
.cart-form select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b5c79' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
}

.cart-form select::-ms-expand {
  display: none;
}

.cart-form textarea {
  resize: vertical;
  min-height: 96px;
}

/* iOS: hilangkan inner shadow pada input date/time */
.cart-form input[type="date"],
.cart-form input[type="time"] {
  min-height: 44px;
}

.cart-sum {
  display: flex;
  justify-content: space-between;
  margin: 18px 0 6px;
  font-weight: 700;
}
.cart-note {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 8px 0 14px;
}
.cart-empty {
  text-align: center;
  padding: 48px 16px;
}
.cart-alert {
  padding: 12px 14px;
  border-radius: var(--radius-s);
  background: var(--accent-tint);
  margin-bottom: 16px;
  font-size: 14px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
}
.timeline {
  list-style: none;
  margin: 18px 0;
  padding: 0;
}
.timeline li {
  position: relative;
  padding: 0 0 18px 32px;
  color: var(--ink-faint);
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
}
.timeline li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 20px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline li:last-child::after {
  display: none;
}
.timeline li.done {
  color: var(--ink);
}
.timeline li.done::before {
  background: var(--mint);
  border-color: var(--mint);
}
.timeline li.now {
  font-weight: 700;
}
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: var(--accent-tint);
  color: var(--accent-dark);
}
.status-badge.ok {
  background: var(--mint-tint);
  color: var(--mint);
}

/* Padding lebih kecil di HP supaya field tidak terjepit */
@media (max-width: 560px) {
  .container {
    padding: 0 16px;
  }
  .cart-card {
    padding: 18px 16px;
  }
  .cart-row {
    padding: 12px 0;
  }
}
