.wrap { width: min(100% - 32px, 1180px); margin-inline: auto; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 999; background: var(--primary); color: #fff;
  padding: .6rem 1rem; border-radius: var(--r-sm); font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.banner {
  background: var(--brown-800); color: #fff; text-align: center; font-weight: 700;
  padding: .6rem 1rem; font-size: .95rem;
}
.banner.is-closed { background: var(--red-600); }

/* header */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: color-mix(in srgb, var(--cream-50) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { border-radius: 50%; }
.brand-text { display: grid; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--brown-700); }
.brand-sub { font-size: .78rem; color: var(--text-muted); font-weight: 700; }
.main-nav { display: none; margin-left: auto; gap: .25rem; }
.main-nav a {
  text-decoration: none; font-weight: 700; padding: .6rem .85rem; border-radius: var(--r-pill); color: var(--brown-800);
  transition: background-color .15s;
}
.main-nav a:hover { background: var(--cream-100); }
.cart-btn {
  margin-left: auto; position: relative; display: inline-flex; align-items: center; gap: .5rem;
  min-height: 46px; padding: .5rem 1rem; border-radius: var(--r-pill); border: 0;
  background: var(--primary); color: #fff; font-weight: 800;
  transition: background-color .18s, transform .12s;
}
.cart-btn:hover { background: var(--primary-hover); }
.cart-btn:active { transform: scale(.96); }
.cart-count {
  min-width: 24px; height: 24px; padding: 0 6px; border-radius: var(--r-pill); display: inline-grid; place-items: center;
  background: var(--accent); color: var(--brown-900); font-size: .82rem; font-weight: 800;
}
.cart-btn.bump { animation: bump .35s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.08); } }
.cart-label { display: none; }
@media (min-width: 900px) {
  .main-nav { display: flex; }
  .cart-btn { margin-left: .5rem; }
  .cart-label { display: inline; }
}

/* hero */
.hero { padding: 28px 0 40px; overflow: hidden; }
.hero-inner { display: grid; gap: 32px; align-items: center; }
.eyebrow { margin: 0 0 .6rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; color: var(--brown-600); }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: -.01em; }
.hl { background: linear-gradient(transparent 58%, var(--mustard-400) 58%, var(--mustard-400) 92%, transparent 92%); padding: 0 .1em; }
.lead { font-size: 1.1rem; color: var(--text-muted); max-width: 52ch; margin: 1rem 0 1.5rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-facts { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.hero-facts li { display: flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--brown-800); font-size: .95rem; }
.hero-facts .ic { color: var(--mustard-500); }
.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 520px; width: 100%; justify-self: center; }
.blob {
  position: absolute; inset: 4% -6% -2% 8%; background: var(--mustard-400);
  border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%;
}
.art-main {
  position: absolute; inset: 6% 8% 10% 2%; width: 90%; height: 84%; object-fit: cover;
  border-radius: var(--r-lg); box-shadow: var(--shadow-3); border: 6px solid #fff;
}
.art-side { position: absolute; width: 34%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 5px solid #fff; box-shadow: var(--shadow-2); }
.art-side.a { right: -2%; top: -2%; }
.art-side.b { left: -4%; bottom: -2%; }
@media (min-width: 900px) {
  .hero { padding: 56px 0 72px; }
  .hero-inner { grid-template-columns: 1.05fr .95fr; gap: 56px; }
}

/* menu */
.menu-section { padding: 24px 0 56px; scroll-margin-top: 68px; }
.menu-section:focus { outline: none; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1rem; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.menu-tools { margin-bottom: .75rem; }
.search {
  display: flex; align-items: center; gap: .5rem; padding: 0 .9rem; min-height: 50px; max-width: 460px;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-pill); color: var(--text-muted);
}
.search:focus-within { border-color: var(--brown-600); box-shadow: 0 0 0 3px rgba(242, 190, 69, .45); }
.search input { border: 0; outline: 0; background: transparent; flex: 1; min-height: 46px; color: var(--text); }
.cat-bar {
  position: sticky; top: 68px; z-index: var(--z-sticky); padding: .6rem 0;
  background: color-mix(in srgb, var(--cream-50) 94%, transparent); backdrop-filter: blur(8px);
}
.cat-scroll { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.cat-scroll::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 44px; padding: .5rem 1rem; border-radius: var(--r-pill);
  border: 1.5px solid var(--border); background: var(--surface); font-weight: 800; color: var(--brown-800);
  text-decoration: none; display: inline-flex; align-items: center; transition: background-color .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--mustard-400); }
.chip[aria-current="true"] { background: var(--brown-700); border-color: var(--brown-700); color: #fff; }

.cat-block { padding-top: 28px; scroll-margin-top: 140px; }
.cat-block h3 { font-size: 1.5rem; }
.cat-block > p { margin: .2rem 0 1rem; color: var(--text-muted); }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card {
  display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-md);
  border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-1);
  transition: box-shadow .2s var(--ease-out), transform .2s var(--ease-out);
}
@media (hover: hover) { .card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); } }
.card-media { aspect-ratio: 1 / 1; background: var(--cream-100); position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.ph {
  width: 100%; height: 100%; display: grid; place-items: center; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 18% 22%, rgba(107, 58, 31, .14) 0 5px, transparent 6px),
    radial-gradient(circle at 78% 30%, rgba(107, 58, 31, .12) 0 4px, transparent 5px),
    radial-gradient(circle at 30% 80%, rgba(107, 58, 31, .1) 0 6px, transparent 7px),
    radial-gradient(circle at 84% 78%, rgba(107, 58, 31, .12) 0 3px, transparent 4px),
    var(--ph-bg, var(--mustard-100));
}
.ph span {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 6vw, 2.6rem); color: var(--brown-700);
  width: 62%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 255, 255, .55); border: 3px solid rgba(107, 58, 31, .18);
}
.ph[data-cat="kue-asin"] { --ph-bg: #f6e0c4; }
.ph[data-cat="bambolini"] { --ph-bg: #f9e7d6; }
.ph[data-cat="donat-kentang"] { --ph-bg: #f7e9c8; }
.ph[data-cat="pasta"] { --ph-bg: #f5ddc8; }
.ph[data-cat="family-size"], .ph[data-cat="middle-size"] { --ph-bg: #efe3cf; }
.card-body { padding: .75rem .85rem .85rem; display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.card-title { font-weight: 800; font-size: 1rem; line-height: 1.3; color: var(--brown-900); }
.card-desc { font-size: .86rem; color: var(--text-muted); line-height: 1.4; }
.card-foot { margin-top: auto; padding-top: .5rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.price { font-weight: 800; color: var(--brown-700); font-variant-numeric: tabular-nums; }
.add-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
  min-height: 44px; min-width: 44px; padding: 0 .9rem; border-radius: var(--r-pill); border: 0;
  background: var(--accent); color: var(--brown-900); font-weight: 800;
  transition: background-color .15s, transform .12s;
}
.add-btn:hover { background: var(--mustard-500); }
.add-btn:active { transform: scale(.95); }
.stepper {
  display: inline-flex; align-items: center; border-radius: var(--r-pill); background: var(--brown-700); color: #fff;
}
.stepper button {
  width: 44px; height: 44px; border: 0; background: transparent; color: inherit; display: grid; place-items: center; border-radius: var(--r-pill);
}
.stepper button:hover { background: rgba(255, 255, 255, .12); }
.stepper output { min-width: 22px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.stepper.light { background: var(--cream-100); color: var(--brown-800); }
.stepper.light button:hover { background: var(--cream-200); }

.empty { text-align: center; padding: 48px 16px; color: var(--text-muted); }
.empty h3 { margin-bottom: .4rem; }
.skeleton-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); padding-top: 28px; }
@media (min-width: 640px) { .skeleton-grid { grid-template-columns: repeat(4, 1fr); } }
.sk { aspect-ratio: 3 / 4; border-radius: var(--r-md); background: linear-gradient(90deg, var(--cream-100), var(--cream-200), var(--cream-100)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* acara */
.event { padding: 56px 0; background: var(--brown-800); color: #fff; }
.event h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: .6rem; }
.event .eyebrow { color: var(--mustard-200); }
.event p { color: #f3e6d8; max-width: 54ch; }
.event-inner { display: grid; gap: 28px; align-items: center; }
.event img { border-radius: var(--r-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: var(--shadow-3); }
@media (min-width: 900px) { .event-inner { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* galeri */
.gallery { padding: 56px 0; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; color: var(--brown-700); text-decoration: none; min-height: 44px; }
.link-arrow:hover { text-decoration: underline; }
.gallery-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-md); }
@media (min-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .gallery-grid img:first-child { grid-column: span 2; grid-row: span 2; }
}

/* outlet */
.outlets { padding: 8px 0 64px; }
.outlet-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 768px) { .outlet-grid { grid-template-columns: repeat(3, 1fr); } }
.outlet {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.1rem;
  display: grid; gap: .3rem; box-shadow: var(--shadow-1);
}
.outlet .pin { width: 44px; height: 44px; border-radius: 50%; background: var(--mustard-100); color: var(--brown-700); display: grid; place-items: center; margin-bottom: .3rem; }
.outlet h3 { font-size: 1.15rem; }
.outlet p { margin: 0; color: var(--text-muted); }
.outlet a { margin-top: .4rem; justify-self: start; }

/* footer */
.site-footer { background: var(--cream-100); border-top: 1px solid var(--border); padding: 32px 0 calc(96px + env(safe-area-inset-bottom)); }
.footer-inner { display: grid; gap: 1rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.footer-links a { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-weight: 700; text-decoration: none; color: var(--brown-800); }
.footer-links a:hover { text-decoration: underline; }
.copy { margin: 0; color: var(--text-muted); font-size: .9rem; }
@media (min-width: 900px) {
  .footer-inner { grid-template-columns: auto 1fr auto; align-items: center; }
  .footer-links { justify-content: center; }
  .site-footer { padding-bottom: 32px; }
}

/* cart bar mobile */
.cart-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: var(--z-fab);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 58px; padding: .6rem .8rem .6rem 1.1rem; border: 0; border-radius: var(--r-pill);
  background: var(--brown-800); color: #fff; font-weight: 800; box-shadow: var(--shadow-3);
  animation: rise .28s var(--ease-out);
}
.cart-bar-info, .cart-bar-total { display: inline-flex; align-items: center; gap: .5rem; }
.cart-bar-total { background: var(--accent); color: var(--brown-900); padding: .45rem .5rem .45rem .9rem; border-radius: var(--r-pill); }
@keyframes rise { from { transform: translateY(120%); } }
@media (min-width: 900px) { .cart-bar { display: none !important; } }

/* sheet (keranjang/checkout) */
.sheet {
  padding: 0; border: 0; max-width: none; max-height: none; margin: 0; background: transparent;
  width: 100%; height: 100%; color: var(--text);
}
.sheet::backdrop { background: rgba(40, 20, 8, .45); }
.sheet[open] { display: flex; align-items: flex-end; justify-content: center; }
.sheet-inner {
  background: var(--bg); width: 100%; max-height: 92dvh; border-radius: var(--r-lg) var(--r-lg) 0 0;
  display: flex; flex-direction: column; box-shadow: var(--shadow-3); animation: sheet-up .28s var(--ease-out);
}
@keyframes sheet-up { from { transform: translateY(100%); } }
@media (min-width: 900px) {
  .sheet[open] { justify-content: flex-end; align-items: stretch; }
  .sheet-inner { width: 460px; max-height: none; height: 100%; border-radius: var(--r-lg) 0 0 var(--r-lg); animation-name: sheet-left; }
  @keyframes sheet-left { from { transform: translateX(100%); } }
}
.sheet-head { display: flex; align-items: center; gap: .5rem; padding: .75rem .75rem .5rem 1.1rem; border-bottom: 1px solid var(--border); }
.sheet-head h2 { font-size: 1.35rem; flex: 1; }
#sheetBack:not([hidden]) + h2 { margin-left: -.4rem; }
.sheet-body { overflow-y: auto; padding: 1rem 1.1rem; flex: 1; overscroll-behavior: contain; }
.sheet-foot { border-top: 1px solid var(--border); padding: .85rem 1.1rem calc(.85rem + env(safe-area-inset-bottom)); display: grid; gap: .6rem; background: var(--surface); }
.sheet-foot:empty { display: none; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; }
.total-row .tabular { font-size: 1.25rem; color: var(--brown-700); }

.line { display: grid; grid-template-columns: 56px 1fr auto; gap: .75rem; align-items: center; padding: .7rem 0; border-bottom: 1px dashed var(--border); }
.line:last-child { border-bottom: 0; }
.line-thumb { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: var(--cream-100); }
.line-thumb img, .line-thumb .ph { width: 100%; height: 100%; object-fit: cover; }
.line-thumb .ph span { font-size: 1rem; border-width: 2px; }
.line-name { font-weight: 800; line-height: 1.25; }
.line-meta { font-size: .88rem; color: var(--text-muted); }
.line .stepper button { width: 40px; height: 40px; }

.form-grid { display: grid; gap: 1rem; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.seg label {
  display: flex; align-items: center; gap: .55rem; min-height: 56px; padding: .6rem .8rem; cursor: pointer;
  border: 2px solid var(--border); border-radius: var(--r-md); background: var(--surface); font-weight: 800;
  transition: border-color .15s, background-color .15s;
}
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { border-color: var(--brown-700); background: var(--mustard-50); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.seg label:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.radio-list { display: grid; gap: .5rem; }
.radio-card {
  display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; padding: .7rem .8rem; cursor: pointer;
  border: 2px solid var(--border); border-radius: var(--r-md); background: var(--surface);
}
.radio-card input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--brown-700); }
.radio-card:has(input:checked) { border-color: var(--brown-700); background: var(--mustard-50); }
.radio-card strong { display: block; }
.radio-card small { color: var(--text-muted); font-size: .86rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.summary-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: .8rem 1rem; }
.summary-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.summary-box li { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; }
.notice { display: flex; gap: .6rem; align-items: flex-start; padding: .75rem .9rem; border-radius: var(--r-md); background: var(--info-bg); color: #1d3d5c; font-size: .92rem; }
.notice .ic { margin-top: 2px; }
.form-alert { padding: .75rem .9rem; border-radius: var(--r-md); background: var(--danger-bg); color: var(--danger); font-weight: 700; }

.success { text-align: center; padding: 1rem 0; }
.success-badge { width: 76px; height: 76px; border-radius: 50%; background: var(--success-bg); color: var(--success); display: grid; place-items: center; margin: 0 auto 1rem; animation: pop .4s var(--ease-out); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.success h3 { font-size: 1.6rem; }
.order-code { display: inline-block; margin: .6rem 0; padding: .4rem .9rem; border-radius: var(--r-pill); background: var(--mustard-100); font-weight: 800; letter-spacing: .04em; font-variant-numeric: tabular-nums; color: var(--brown-800); }
.success p { color: var(--text-muted); }

/* dialog varian */
.mini-dialog { border: 0; border-radius: var(--r-lg); padding: 0; width: min(92vw, 380px); box-shadow: var(--shadow-3); color: var(--text); }
.mini-dialog::backdrop { background: rgba(40, 20, 8, .45); }
.mini-inner { padding: 1.25rem; display: grid; gap: 1rem; }
.opt-list { display: grid; gap: .5rem; }
.mini-actions { display: flex; justify-content: flex-end; gap: .5rem; }
