/* Dari Dapur Sendiri — storefront. Palette from official wordmark: brown #482820, orange #D88038. */
:root {
  --cream: #F8F1E6;
  --cream-2: #F3E9D8;
  --ivory: #FBF7F0;
  --brown: #482820;
  --brown-soft: #6A4436;
  --orange: #D88038;
  --orange-dark: #C46C28;
  --gold: #C9A06A;
  --gold-soft: #E8D8C8;
  --text: #3A2A22;
  --muted: #8A7060;
  --line: #E8D8C8;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(72, 40, 32, 0.08);
  --shadow-sm: 0 6px 20px rgba(72, 40, 32, 0.06);
  --radius: 24px;
  --radius-sm: 16px;
  --font: "Outfit", "Segoe UI", system-ui, sans-serif;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  min-height: 100vh;
  font-weight: 400;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; color: var(--brown); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 241, 230, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo { display: flex; align-items: center; flex: 0 0 auto; }
.logo-img {
  height: 56px;
  width: auto;
  display: block;
}
.nav {
  display: none;
  gap: 2px;
  margin-left: 8px;
  flex: 1;
  justify-content: center;
}
.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--brown-soft);
  letter-spacing: 0.01em;
}
.nav a:hover, .nav a.is-active { background: #fff; color: var(--brown); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn, .cart-btn, .menu-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brown);
  position: relative;
  padding: 0;
}
.cart-btn { width: 48px; }
.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--brown);
  color: #fff;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  font-size: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
.menu-btn { font-size: 18px; }

.drawer {
  display: none;
  flex-direction: column;
  padding: 8px 20px 20px;
  gap: 4px;
  border-top: 1px solid var(--line);
  background: var(--ivory);
}
.drawer.is-open,
.drawer:not([hidden]) {
  display: flex;
}
.drawer[hidden] { display: none !important; }
.drawer a { padding: 12px 8px; font-weight: 500; color: var(--brown); border-bottom: 1px solid var(--line); }
.drawer a.is-active { color: var(--orange); }

/* Search */
.search-panel {
  position: sticky;
  top: 72px;
  z-index: 35;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  padding: 12px 24px 16px;
}
.search-inner { max-width: 1180px; margin: 0 auto; display: flex; gap: 8px; }
.search-inner input {
  flex: 1;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 12px 18px;
  outline: none;
}
.search-inner input:focus { border-color: var(--gold); }
.search-results { max-width: 1180px; margin: 10px auto 0; display: grid; gap: 6px; }
.search-results a {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  border: 1px solid var(--line);
}
.search-results img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brown);
  color: #fff;
  border: 1px solid var(--brown);
  border-radius: 999px;
  padding: 13px 26px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--brown-soft); }
.btn-outline, .btn-ghost {
  background: transparent;
  color: var(--brown);
  border: 1px solid var(--brown);
}
.btn-outline:hover, .btn-ghost:hover { background: #fff; }
.btn-orange { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); }

/* Hero */
.hero-lux {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  padding: 28px 0 72px;
}
.botanical {
  position: absolute;
  width: min(280px, 32vw);
  pointer-events: none;
  opacity: 0.85;
  z-index: 0;
}
.botanical-l { left: -40px; top: 40px; transform: rotate(-8deg); }
.botanical-r { right: -50px; bottom: -20px; transform: scaleX(-1) rotate(-6deg); }
.hero-lux-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 32px;
  align-items: center;
}
.hero-copy .eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 12px;
}
.hero-copy h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  margin: 0 0 18px;
  font-weight: 600;
}
.hero-copy h1 em {
  font-style: italic;
  color: var(--orange);
  font-weight: 600;
}
.hero-copy .lede {
  margin: 0 0 28px;
  color: var(--brown-soft);
  font-size: 17px;
  max-width: 34em;
  font-weight: 300;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--cream-2);
  aspect-ratio: 4 / 5;
  max-height: 620px;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Feature strip */
.feature-strip {
  margin-top: -40px;
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  overflow: hidden;
}
.feature-item {
  padding: 22px 18px;
  text-align: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature-item:nth-child(2n) { border-right: 0; }
.feature-item .ico {
  width: 36px;
  height: 36px;
  margin: 0 auto 8px;
  color: var(--orange);
}
.feature-item .ico img { width: 36px; height: 36px; object-fit: contain; }
body.kedai-hidden a[href="#/kedai"] { display: none !important; }
.feature-item h3 { margin: 0 0 4px; font-size: 16px; }
.feature-item p { margin: 0; font-size: 12.5px; color: var(--muted); }

/* Sections */
.section { margin-top: 72px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 28px;
}
.section-head h2 { margin: 0; font-size: clamp(28px, 3.4vw, 40px); }
.section-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.link-more { font-weight: 600; color: var(--orange); font-size: 14px; white-space: nowrap; }
.divider { height: 1px; background: var(--line); border: 0; margin: 64px 0 0; }

/* Koleksi favorit */
.fav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.fav-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  display: block;
  background: var(--cream-2);
}
.fav-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.fav-card:hover img { transform: scale(1.05); }
.fav-card .label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 48px 16px 16px;
  background: linear-gradient(to top, rgba(72,40,32,0.72), transparent);
  color: #fff;
}
.fav-card h3 { margin: 0; color: #fff; font-size: 22px; }
.fav-card p { margin: 4px 0 0; color: rgba(255,255,255,0.85); font-size: 13px; }

/* Product cards */
.product-grid, .cat-grid, .momen-grid { display: grid; gap: 18px; }
.product-grid { grid-template-columns: 1fr; }
.cat-grid { grid-template-columns: 1fr 1fr; }
.momen-grid { grid-template-columns: 1fr; }

.product-card, .cat-card, .momen-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: box-shadow 0.2s ease;
}
.product-card:hover, .cat-card:hover, .momen-card:hover { box-shadow: var(--shadow); }
.product-media {
  position: relative;
  background: var(--cream-2);
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-media img { transform: scale(1.05); }
.badge {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(255,255,255,0.92);
  color: var(--brown);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--line);
}
.product-body { padding: 16px 16px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-body h3 { margin: 0; font-size: 20px; }
.meta-note { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.price { font-weight: 600; color: var(--brown); }
.price .unit-label { font-weight: 400; color: var(--muted); font-size: 13px; }
.price small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; margin-top: 2px; }
.points-chip { display: none; }

.cat-card img, .momen-media img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: var(--cream-2);
}
.cat-card .body, .momen-card .body { padding: 14px 16px 18px; }
.cat-card h3, .momen-card h3 { margin: 0 0 4px; font-size: 18px; }
.cat-card p, .momen-card p { margin: 0; color: var(--muted); font-size: 13px; }
.momen-card { flex-direction: row; }
.momen-media { width: 120px; flex: 0 0 120px; }
.momen-media img { height: 100%; }

/* Kedai */
.kedai {
  display: grid;
  gap: 28px;
  align-items: center;
  margin-top: 16px;
}
.kedai-photo {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--cream-2);
  aspect-ratio: 4 / 5;
}
.kedai-photo img { width: 100%; height: 100%; object-fit: cover; }
.kedai-copy h2 { margin: 0 0 12px; font-size: clamp(28px, 3.4vw, 40px); }
.kedai-copy p { margin: 0 0 14px; color: var(--brown-soft); }
.kedai-facts {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  border-top: 1px solid var(--line);
}
.kedai-facts li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.kedai-facts strong { color: var(--brown); font-weight: 600; }
.kedai-maps { margin: 16px 0 0; }
.kedai-facts .tba {
  color: var(--muted);
  font-style: italic;
}
.eco-note {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--brown-soft);
  margin: 0 0 8px;
}

/* Info / about / forms */
.info-grid { display: grid; gap: 16px; }
.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.info-card h3 { margin: 0 0 8px; font-size: 22px; }
.info-card p, .info-card ul { margin: 0; color: var(--brown-soft); font-size: 14px; }
.info-card ul { margin-top: 8px; padding-left: 18px; }

.cta-band {
  margin: 72px 0 24px;
  background: var(--brown);
  color: #fff;
  border-radius: 28px;
  padding: 36px 28px;
  display: grid;
  gap: 16px;
}
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { margin: 6px 0 0; color: #F3E9D8; }
.cta-band .btn { background: #fff; color: var(--brown); border-color: #fff; justify-self: start; }

.crumbs { font-size: 13px; color: var(--muted); margin: 24px 0 8px; }
.crumbs a { color: var(--brown-soft); }
.filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--brown-soft);
  white-space: nowrap;
}
.chip.is-active { background: var(--brown); color: #fff; border-color: var(--brown); }

.detail { display: grid; gap: 28px; margin: 12px 0 48px; }
.detail-media {
  border-radius: 28px;
  overflow: hidden;
  background: var(--cream-2);
  aspect-ratio: 1;
}
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.qty-row { display: flex; align-items: center; gap: 10px; margin: 16px 0; }
.qty-row button {
  width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--brown);
}
.qty-row input {
  width: 64px; text-align: center; border: 1px solid var(--line);
  border-radius: 10px; padding: 8px; background: #fff;
}
.notes-block { display: grid; gap: 8px; margin: 16px 0; }
.notes-block textarea, .notes-block input, form input, form select, form textarea {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  width: 100%;
}
.form-grid { display: grid; gap: 12px; }
.form-grid label, form label { font-size: 13px; font-weight: 500; color: var(--brown); display: grid; gap: 6px; }

.cart-layout { display: grid; gap: 24px; margin: 12px 0 48px; }
.cart-line {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  align-items: center;
}
.cart-line img { width: 88px; height: 88px; object-fit: cover; border-radius: 12px; }
.cart-empty { text-align: center; padding: 64px 16px; }
.cart-empty h2 { margin: 0 0 8px; }
.source-pill { font-size: 11px; color: var(--muted); margin: 16px 0 32px; }
.page-enter { animation: rise 0.4s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Footer */
.footer {
  background: var(--brown);
  color: #F8F1E6;
  margin-top: 48px;
  padding: 48px 0 24px;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  gap: 28px;
}
.footer-logo {
  display: inline-flex;
  background: var(--ivory);
  border-radius: 16px;
  padding: 10px 14px;
}
.footer-logo img { height: 80px; width: auto; }
.footer-tagline { margin: 10px 0 0; color: #E8D8C8; font-size: 14px; max-width: 22em; }
.footer h3 { color: #fff; margin: 0 0 10px; font-size: 18px; }
.footer a { color: #F3E9D8; }
.footer a:hover { color: #fff; }
.footer-loc, .footer p { margin: 0 0 6px; color: #E8D8C8; font-size: 14px; }
.footer-meta {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(232, 216, 200, 0.2);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #C9A06A;
}
.admin-link { opacity: 0.7; }

.fab-wa {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  background: var(--brown);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 500;
  box-shadow: var(--shadow);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%) translateY(12px);
  background: var(--brown);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  opacity: 0;
  transition: 0.25s ease;
  z-index: 50;
  max-width: calc(100% - 32px);
  font-size: 14px;
}
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (min-width: 720px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
  .drawer { display: none !important; }
  .logo-img { height: 64px; }
  .hero-lux { padding: 36px 0 88px; }
  .hero-lux-inner { grid-template-columns: 1.05fr 0.95fr; gap: 48px; min-height: 560px; }
  .feature-strip { grid-template-columns: repeat(4, 1fr); }
  .feature-item { border-bottom: 0; }
  .feature-item:nth-child(2n) { border-right: 1px solid var(--line); }
  .feature-item:last-child { border-right: 0; }
  .fav-grid { grid-template-columns: repeat(4, 1fr); }
  .fav-card { aspect-ratio: 3 / 4; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .momen-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .detail { grid-template-columns: 1fr 1fr; align-items: start; }
  .detail-media { position: sticky; top: 96px; }
  .cart-layout { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
  .kedai { grid-template-columns: 0.95fr 1.05fr; gap: 48px; }
  .cta-band { grid-template-columns: 1fr auto; align-items: center; padding: 44px 40px; }
}
@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .momen-grid { grid-template-columns: repeat(3, 1fr); }
}
