:root {
  --cream: #f9f7f2;
  --ink: #1a2f23;
  --gold: #c5a059;
  --sand: #f4dfa8;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; }

.serif { font-family: var(--serif); }

/* ---------- gerbang outlet ---------- */
.gate {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(197, 160, 89, 0.16), transparent 60%),
    var(--cream);
}

.gate__inner {
  flex: 1;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 48px 20px 40px;
}

.gate__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.gate__logo { height: 62px; width: auto; opacity: 0.9; }

.gate__eyebrow {
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #8a6a2a;
}

.gate__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(32px, 7vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}

.gate__rule {
  width: 64px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.panels {
  margin: 40px 0 0;
  display: grid;
  gap: 18px;
}

.panel {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 20px;
  min-height: 220px;
  box-shadow: 0 18px 44px -30px rgba(26, 47, 35, 0.8);
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s;
}

.panel:nth-child(1) { animation-delay: 0.12s; }
.panel:nth-child(2) { animation-delay: 0.24s; }

.panel:hover { transform: translateY(-4px); box-shadow: 0 26px 60px -30px rgba(26, 47, 35, 0.75); }

.panel__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.panel:hover .panel__img { transform: scale(1.06); }

.panel__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 26, 20, 0.9) 6%, rgba(15, 26, 20, 0.35) 55%, rgba(15, 26, 20, 0.1) 100%);
}

.panel__body {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  height: 100%;
  padding: 22px;
  min-height: 220px;
}

.panel__logo {
  height: 52px;
  width: 52px;
  object-fit: contain;
  padding: 6px;
  border-radius: 12px;
  background: rgba(249, 247, 242, 0.94);
  flex-shrink: 0;
}

.panel__text { flex: 1; min-width: 0; color: var(--cream); }

.panel__name {
  display: block;
  font-family: var(--serif);
  font-size: clamp(21px, 3.4vw, 30px);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

.panel__tagline {
  display: block;
  margin: 4px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(249, 247, 242, 0.78);
}

.panel__go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
  padding-bottom: 4px;
}

.panel:hover .panel__go svg { transform: translateX(4px); }
.panel__go svg { transition: transform 0.4s; }

/* ---------- footer bersama ---------- */
.foot {
  margin-top: 40px;
  padding: 28px 20px 34px;
  border-top: 1px solid rgba(197, 160, 89, 0.28);
  text-align: center;
}

.foot__addr {
  max-width: 520px;
  margin: 0 auto 12px;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(26, 47, 35, 0.62);
}

.foot__map {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #8a6a2a;
  border-bottom: 1px solid rgba(197, 160, 89, 0.5);
  padding-bottom: 2px;
}

.foot__note {
  margin: 18px 0 0;
  font-size: 11px;
  color: rgba(26, 47, 35, 0.45);
}

.foot__sign {
  margin: 14px 0 0;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(26, 47, 35, 0.34);
}

/* ---------- halaman menu: hero ---------- */
.hero { position: relative; }

.hero__frame {
  position: relative;
  height: 40vh;
  min-height: 280px;
  overflow: hidden;
  background: var(--ink);
}

.hero__img {
  position: absolute;
  inset: -48px 0 0;
  height: 122%;
  width: 100%;
  object-fit: cover;
  will-change: transform;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 26, 20, 0.66) 0%, rgba(26, 47, 35, 0.35) 52%, var(--cream) 100%);
}

.backlink {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  color: var(--ink);
  box-shadow: 0 6px 18px -12px rgba(26, 47, 35, 0.8);
  backdrop-filter: blur(6px);
  transition: background 0.3s, transform 0.3s;
  z-index: 2;
}

.backlink:hover { background: #fff; transform: translateX(-2px); }

.hero__card-wrap {
  position: relative;
  max-width: 1100px;
  margin: -64px auto 0;
  padding: 0 20px;
}

.hero__card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 50px -24px rgba(26, 47, 35, 0.5);
  border: 1px solid rgba(197, 160, 89, 0.35);
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  backdrop-filter: blur(6px);
}

.hero__logo {
  height: 64px;
  width: 64px;
  object-fit: contain;
  padding: 8px;
  border-radius: 12px;
  background: var(--cream);
  border: 1px solid rgba(197, 160, 89, 0.3);
  flex-shrink: 0;
}

.hero__name {
  font-family: var(--serif);
  font-size: clamp(23px, 4vw, 36px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}

.hero__note {
  margin: 5px 0 0;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #8a6a2a;
}

/* ---------- navigasi kategori ---------- */
.ribbon {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(249, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(197, 160, 89, 0.22);
}

.ribbon::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  border: 1px solid rgba(197, 160, 89, 0.4);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--sand);
}

/* ---------- tata letak ---------- */
.shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 26px 20px 30px;
}

.side { display: none; }

.main { min-width: 0; }

.section { margin-bottom: 38px; scroll-margin-top: 64px; }

.section__head { margin-bottom: 14px; }

.section__title {
  font-family: var(--serif);
  font-size: clamp(24px, 3.6vw, 30px);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

.section__note {
  margin: 6px 0 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a6a2a;
  line-height: 1.7;
}

.section__rule {
  height: 1px;
  margin-top: 12px;
  background: linear-gradient(to right, rgba(197, 160, 89, 0.55), transparent);
}

.items { display: grid; gap: 12px; }

/* ---------- kartu item ---------- */
.item {
  display: flex;
  align-items: stretch;
  gap: 14px;
  width: 100%;
  min-height: 48px;
  padding: 12px;
  text-align: left;
  border: 1px solid rgba(197, 160, 89, 0.22);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 10px 30px -24px rgba(26, 47, 35, 0.7);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s, border-color 0.4s;
}

.item:hover {
  transform: translateY(-2px);
  border-color: rgba(197, 160, 89, 0.55);
  box-shadow: 0 18px 40px -22px rgba(26, 47, 35, 0.55);
}

.item:active { transform: scale(0.99); }

.item__thumb {
  display: block;
  position: relative;
  height: 96px;
  width: 96px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #eeeae2;
}

.item__thumb img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.item:hover .item__thumb img { transform: scale(1.1); }

.item__illus {
  position: absolute;
  right: 4px;
  bottom: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.9);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.item__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  padding: 2px 0;
}

.item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.item__name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
}

.item__price {
  display: inline-block;
  flex-shrink: 0;
  white-space: nowrap;
  border-radius: 999px;
  background: var(--ink);
  color: var(--sand);
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 500;
}

.item__badge {
  align-self: flex-start;
  margin-top: 5px;
  border-radius: 999px;
  background: rgba(197, 160, 89, 0.16);
  color: #8a6a2a;
  padding: 2px 8px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.item__desc {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(26, 47, 35, 0.6);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- sheet detail ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(10, 18, 13, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.backdrop.is-open { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 61;
  width: 100%;
  max-width: 480px;
  transform: translate(-50%, 105%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 22px 22px 0 0;
  background: var(--cream);
  overflow: hidden;
  box-shadow: 0 -20px 60px -20px rgba(10, 18, 13, 0.6);
}

.sheet.is-open { transform: translate(-50%, 0); }

.sheet__img { height: 42vh; max-height: 300px; width: 100%; object-fit: cover; background: #eeeae2; }

.sheet__body { position: relative; padding: 20px 22px 26px; }

.sheet__close {
  position: absolute;
  top: -18px;
  right: 16px;
  height: 40px;
  width: 40px;
  border: none;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 22px -12px rgba(26, 47, 35, 0.8);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.sheet__eyebrow {
  margin: 0 0 4px;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #8a6a2a;
}

.sheet__title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

.sheet__price {
  display: inline-block;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--sand);
  padding: 5px 14px;
  font-size: 13px;
}

.sheet__badge {
  display: inline-block;
  margin-left: 8px;
  border-radius: 999px;
  background: rgba(197, 160, 89, 0.16);
  color: #8a6a2a;
  padding: 4px 10px;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sheet__desc {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(26, 47, 35, 0.72);
}

.sheet__share {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: transparent;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.sheet__share:hover { background: var(--ink); color: var(--sand); }

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-in { opacity: 1; transform: none; }

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .panel, .gate__brand, .hero__card { animation: none !important; opacity: 1; transform: none; }
  .reveal { transition: none; }
}

/* ---------- desktop ---------- */
@media (min-width: 640px) {
  .items { grid-template-columns: 1fr 1fr; }
  .item__thumb { height: 108px; width: 108px; }
  .item__name { font-size: 19px; }
  .hero__card-wrap { padding: 0 32px; }
  .backlink { left: 32px; top: 22px; }
}

@media (min-width: 1024px) {
  .panels { grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 52px; }
  .panel, .panel__body { min-height: 300px; }
  .gate__inner { padding: 72px 32px 48px; }
  .ribbon { display: none; }

  .shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 56px;
    padding-top: 34px;
    align-items: start;
  }

  .side { display: block; position: sticky; top: 26px; }

  .side__label {
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #8a6a2a;
    margin: 0 0 12px;
  }

  .side__list { display: flex; flex-direction: column; gap: 2px; margin: 0 0 26px; padding: 0; list-style: none; }

  .side__link {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    border-left: 2px solid transparent;
    padding: 7px 0 7px 12px;
    font-size: 13px;
    color: rgba(26, 47, 35, 0.62);
    cursor: pointer;
    transition: color 0.3s, border-color 0.3s;
  }

  .side__link:hover { color: var(--ink); }

  .side__link.is-active { color: var(--ink); font-weight: 600; border-left-color: var(--gold); }

  .side__meta {
    border-top: 1px solid rgba(197, 160, 89, 0.3);
    padding-top: 16px;
    font-size: 11.5px;
    line-height: 1.7;
    color: rgba(26, 47, 35, 0.55);
  }

  .side__meta a { color: #8a6a2a; border-bottom: 1px solid rgba(197, 160, 89, 0.45); }

  .side__swap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8a6a2a;
  }

  .section__title { font-size: 30px; }
  .hero__frame { height: 48vh; }
  .hero__name { font-size: 38px; }
  .sheet__img { height: 300px; }
}
