/* Petals & Delight — mobile-first (360–414px dahulu), kemudian tablet/desktop. */
:root {
  --maroon: #84173E;
  --maroon-dark: #6A1231;
  --cream: #FBF6F0;
  --blush: #F3D9DE;
  --gold: #C9A45C;
  --text: #2B1A20;
  --muted: #6E5A61;
  --line: #EADDD9;
  --white: #fff;
  --ok: #2E7D4F;
  --warn: #9A6A12;
  --err: #B3261E;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(43, 26, 32, .08);
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: 16px;
  --header-h: 60px;
  --sticky-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.55; color: var(--text);
  background: var(--cream); overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--maroon); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); color: var(--maroon); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--maroon); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }
.page { padding-top: 20px; padding-bottom: 40px; }
.page-title { font-size: 2rem; margin-bottom: 12px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.lead { font-size: 1.08rem; color: var(--muted); }
.mono { font-family: ui-monospace, Consolas, monospace; }
.pre { white-space: pre-line; }
.mt { margin-top: 12px; }
.stack > * + * { margin-top: 12px; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; color: var(--maroon); font-weight: 600; margin-bottom: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  font-weight: 500; text-decoration: none; cursor: pointer; line-height: 1.2; transition: background .15s, color .15s, border-color .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary { background: var(--maroon); color: #fff; }
.btn-primary:hover { background: var(--maroon-dark); }
.btn-outline { background: transparent; border-color: var(--maroon); color: var(--maroon); }
.btn-outline:hover { background: var(--blush); }
.btn-ghost { background: transparent; color: var(--maroon); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--maroon); }
.btn-light { background: #fff; color: var(--maroon); }
.btn-danger { background: var(--err); color: #fff; }
.btn-pill { border-radius: 999px; padding-left: 28px; padding-right: 28px; }
.btn-lg { min-height: 52px; font-size: 1.05rem; padding: 12px 24px; }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: .9rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--maroon); text-decoration: underline; cursor: pointer; padding: 10px 0; min-height: 44px; }
.link-btn.danger { color: var(--err); }
.link-btn.light { color: #fff; }

/* ---------- Header ---------- */
.announce { background: var(--maroon); color: #fff; text-align: center; font-size: .8rem; letter-spacing: .06em; padding: 7px var(--gutter); }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header-inner { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; height: var(--header-h); max-width: 1180px; margin: 0 auto; padding: 0 8px; }
.logo { justify-self: center; display: block; }
.logo img { width: 150px; height: auto; }
.icon-btn { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--maroon); cursor: pointer; position: relative; border-radius: 50%; }
.cart-link { justify-self: end; }
.badge { position: absolute; top: 6px; right: 4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--maroon); color: #fff; font-size: .7rem; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.badge.is-empty { display: none; }
.desk-nav { display: none; }

/* Drawer (hamburger slide-in) */
.drawer { position: fixed; inset: 0 auto 0 0; width: min(84vw, 340px); background: var(--cream); z-index: 60; transform: translateX(-105%); transition: transform .25s ease; padding: 12px 16px 24px; overflow-y: auto; box-shadow: var(--shadow); visibility: hidden; }
.drawer.is-open { transform: none; visibility: visible; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(43, 26, 32, .45); z-index: 55; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.drawer-links { list-style: none; margin: 0 0 20px; padding: 0; }
.drawer-links a { display: flex; align-items: center; min-height: 48px; padding: 4px 4px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 1.05rem; }
body.no-scroll { overflow: hidden; }

/* ---------- Flash ---------- */
.flash-wrap { padding-top: 12px; }
.flash { padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 12px; border: 1px solid; font-size: .95rem; }
.flash-success { background: #EAF5EE; border-color: #B9DEC7; color: #1E5A38; }
.flash-info { background: #FFF8EA; border-color: #EBD7A6; color: #6A4B0E; }
.flash-error { background: #FDECEC; border-color: #F2BDBA; color: #8C1D18; }
.notice { background: #FFF8EA; border: 1px solid #EBD7A6; padding: 10px 12px; border-radius: var(--radius-sm); }

/* ---------- Hero ---------- */
.hero { background: var(--blush); }
.hero-inner { padding-top: 40px; padding-bottom: 44px; display: grid; gap: 24px; align-items: center; }
.hero-text { text-align: center; }
.hero h1 { font-size: 2.35rem; margin-bottom: 12px; font-weight: 600; }
.hero-sub { color: var(--text); font-size: 1.05rem; max-width: 30ch; margin: 0 auto 22px; }
.hero-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Sections ---------- */
.section { padding: 36px 0; }
.section-tight { padding-top: 12px; }
.section-blush { background: var(--blush); }
.section-title { font-size: 1.7rem; text-align: center; margin-bottom: 20px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head .section-title { margin: 0; text-align: left; }
.link-more { font-weight: 500; }

/* Shop by category: 4 bulatan satu baris */
.cat-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cat-item { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--text); min-height: 44px; }
.cat-circle { width: 100%; max-width: 120px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--blush); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); display: flex; align-items: center; justify-content: center; }
.cat-circle img { width: 100%; height: 100%; object-fit: cover; }
.cat-initial { font-family: var(--serif); font-size: 2rem; color: var(--maroon); }
.cat-name { font-size: .85rem; font-weight: 500; text-align: center; line-height: 1.2; }

/* ---------- Product grid & cards (2 lajur di telefon) ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 var(--line); }
.card-link { display: block; text-decoration: none; color: inherit; height: 100%; }
.card-media { position: relative; aspect-ratio: 1; background: var(--blush); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 10px 12px 14px; }
.card-title { font-family: var(--sans); font-size: .95rem; font-weight: 500; color: var(--text); margin: 0 0 4px; line-height: 1.3; }
.price { color: var(--maroon); font-weight: 600; margin: 0; }
.price .from { font-weight: 400; font-size: .8em; color: var(--muted); }
.price-lg { font-size: 1.5rem; margin-bottom: 10px; }
.tag { display: inline-block; font-size: .7rem; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--maroon); font-weight: 500; }
.card-media .tag { position: absolute; left: 8px; bottom: 8px; }
.tag-ok { background: #EAF5EE; color: var(--ok); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chips-sm { justify-content: flex-start; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: .92rem; white-space: nowrap; }
.chip.is-active, .chip:hover { background: var(--maroon); border-color: var(--maroon); color: #fff; }

.promises { display: grid; gap: 20px; text-align: center; }
.promises h3 { margin-bottom: 4px; }
.promises p { color: var(--muted); margin: 0; }

/* ---------- Shop ---------- */
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs a { color: var(--muted); }
.cat-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin: 0 calc(-1 * var(--gutter)) 12px; padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
.cat-tabs::-webkit-scrollbar { display: none; }
.filters { background: #fff; border-radius: var(--radius); margin-bottom: 12px; border: 1px solid var(--line); }
.filters summary { padding: 12px 16px; min-height: 48px; cursor: pointer; font-weight: 500; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.filters summary::after { content: "+"; font-size: 1.3rem; color: var(--maroon); }
.filters[open] summary::after { content: "–"; }
.filter-form { padding: 0 16px 16px; }
.filter-actions { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.result-count { margin: 4px 0 10px; font-size: .9rem; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 24px; }
.empty { text-align: center; padding: 40px 0; }

/* ---------- Forms ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 500; font-size: .92rem; margin-bottom: 6px; }
.field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field select, .field textarea, .map-search input {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  font-size: 16px; /* elak zoom automatik iOS */
}
.field textarea { min-height: 80px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--maroon); outline: none; box-shadow: 0 0 0 3px rgba(132, 23, 62, .15); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hint { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--err) !important; }
.error-text { color: var(--err); font-size: .88rem; margin: 6px 0 0; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--maroon); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; width: 100%; }
fieldset[disabled] { display: none; }

/* ---------- Product page ---------- */
.product-layout { display: grid; gap: 20px; }
.gallery-main { margin: 0 calc(-1 * var(--gutter)); background: var(--blush); }
.gallery-main img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery-thumbs { list-style: none; margin: 10px 0 0; padding: 0; display: flex; gap: 8px; overflow-x: auto; }
.gallery-thumbs a { display: block; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; flex: none; }
.gallery-thumbs a[aria-current="true"] { border-color: var(--maroon); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-title { font-size: 2rem; margin-bottom: 6px; }
.variants { margin: 0 0 16px; }
.variants legend { font-weight: 500; margin-bottom: 8px; }
.variant { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin-bottom: 8px; cursor: pointer; }
.variant:has(input:checked) { border-color: var(--maroon); background: #FDF5F7; }
.variant input { width: 20px; height: 20px; accent-color: var(--maroon); }
.variant-name { flex: 1; }
.variant-price { font-weight: 600; color: var(--maroon); }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.qty-row label { font-weight: 500; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; overflow: hidden; }
.stepper .step { width: 44px; height: 44px; border: 0; background: none; font-size: 1.3rem; color: var(--maroon); cursor: pointer; }
.stepper input { width: 44px; height: 44px; border: 0; text-align: center; font-size: 16px; -moz-appearance: textfield; appearance: textfield; background: transparent; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-sm .step, .stepper-sm input { height: 40px; width: 40px; }
.info-notes { list-style: none; padding: 0; margin: 16px 0; font-size: .9rem; color: var(--muted); }
.info-notes li { padding: 4px 0 4px 18px; position: relative; }
.info-notes li::before { content: "✿"; color: var(--gold); position: absolute; left: 0; }
.product-section { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.product-section h2 { font-size: 1.3rem; }
.contents-list { padding-left: 18px; margin: 0; }
.contents-list li { margin-bottom: 4px; }

/* Bar melekat di bawah (produk/troli/checkout) */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 20px rgba(43, 26, 32, .08);
}
.sticky-bar .btn { flex: 1; }
.sticky-price { font-weight: 600; color: var(--maroon); font-size: 1.1rem; display: flex; flex-direction: column; line-height: 1.2; min-width: 88px; }
body.has-sticky-bar { padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom)); }
.desktop-only { display: none; }

/* ---------- Cart ---------- */
.cart-lines { list-style: none; margin: 0 0 16px; padding: 0; }
.cart-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-thumb img { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; }
.cart-name { font-weight: 500; color: var(--text); text-decoration: none; }
.cart-info p { margin: 2px 0; }
.cart-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.qty-form { display: flex; align-items: center; gap: 8px; }
.cart-line-total { font-weight: 600; margin: 0; }
.cart-summary { background: #fff; border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.sum-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-size: 1.1rem; color: var(--maroon); }

/* ---------- Checkout (satu lajur di telefon) ---------- */
.checkout-grid { display: grid; gap: 16px; }
.step-card { background: #fff; border-radius: var(--radius); padding: 18px 16px; margin-bottom: 14px; box-shadow: 0 1px 0 var(--line); }
.step-card h2 { font-size: 1.35rem; display: flex; align-items: center; gap: 10px; }
.step-no { width: 28px; height: 28px; border-radius: 50%; background: var(--maroon); color: #fff; font-family: var(--sans); font-size: .85rem; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.method-list { display: grid; gap: 10px; }
.method { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; background: #fff; min-height: 56px; }
.method:has(input:checked) { border-color: var(--maroon); background: #FDF5F7; }
.method input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--maroon); flex: none; }
.method.is-disabled { opacity: .55; cursor: not-allowed; }
.method-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.method-title { font-weight: 600; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.method-fee { color: var(--maroon); font-weight: 600; }
.method-desc { font-size: .88rem; color: var(--muted); }
.map-search { display: flex; gap: 8px; }
.map-search input { flex: 1; min-width: 0; }
.map-results { list-style: none; margin: 8px 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; max-height: 240px; overflow-y: auto; }
.map-results button { width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 12px; min-height: 48px; cursor: pointer; font-size: .9rem; }
.map-results button:hover { background: var(--cream); }
.map { height: 280px; border-radius: var(--radius-sm); margin: 8px 0; background: var(--blush); z-index: 0; }
.map-pin { width: 28px; height: 28px; border-radius: 50% 50% 50% 0; background: var(--maroon); transform: rotate(-45deg); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.quote-box { padding: 12px; border-radius: var(--radius-sm); background: var(--cream); margin: 8px 0; font-size: .95rem; }
.quote-box.is-error { background: #FDECEC; color: #8C1D18; }
.quote-box.is-ok { background: #EAF5EE; color: #1E5A38; }
.summary-lines { list-style: none; margin: 0 0 8px; padding: 0; }
.summary-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: .92rem; border-bottom: 1px dashed var(--line); }

/* ---------- Thanks / track ---------- */
.status-hero { text-align: center; padding: 24px 16px; border-radius: var(--radius); background: var(--blush); margin-bottom: 16px; }
.status-hero.is-paid { background: #EAF5EE; }
.status-hero.is-pending { background: #FFF8EA; }
.details { display: grid; grid-template-columns: minmax(96px, 34%) 1fr; gap: 8px 12px; margin: 0 0 16px; font-size: .95rem; }
.details dt { color: var(--muted); }
.details dd { margin: 0; overflow-wrap: anywhere; }
.timeline { list-style: none; padding: 0 0 0 18px; margin: 0; border-left: 2px solid var(--blush); }
.timeline li { position: relative; padding: 0 0 12px 8px; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--maroon); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--blush); color: var(--maroon); font-family: var(--sans); vertical-align: middle; }
.pill-pending_payment { background: #FFF1D6; color: #7A5410; }
.pill-paid, .pill-preparing { background: #E4EEFB; color: #1F4F8A; }
.pill-ready, .pill-out_for_delivery, .pill-picked_up { background: #F1E6FA; color: #5B2A86; }
.pill-completed { background: #EAF5EE; color: #1E5A38; }
.pill-void { background: #EEE; color: #555; text-decoration: line-through; }
.mock-banner { background: #FFF1D6; border: 1px dashed var(--warn); color: #7A5410; padding: 10px 12px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .9rem; }
.error-page { text-align: center; padding-top: 48px; padding-bottom: 64px; }
.error-code { font-family: var(--serif); font-size: 5rem; color: var(--gold); margin: 0; line-height: 1; }

/* ---------- Prose / table ---------- */
.prose h2 { margin-top: 1.4em; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { font-weight: 600; background: var(--cream); }
.table .num { text-align: right; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--maroon); color: #fff; padding: 36px 0 20px; margin-top: 24px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 24px; }
.footer-logo { width: 170px; margin-bottom: 12px; }
.footer-address { opacity: .9; font-size: .92rem; max-width: 36ch; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.footer-links a { display: flex; align-items: center; min-height: 44px; text-decoration: none; opacity: .92; }
.footer-copy { font-size: .8rem; opacity: .75; margin-top: 20px; }

/* WhatsApp terapung */
.wa-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 35; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
body.has-sticky-bar .wa-float { bottom: calc(var(--sticky-h) + 14px + env(safe-area-inset-bottom)); }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .hero h1 { font-size: 3rem; }
  .promises { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr; }
  .cat-row { gap: 24px; max-width: 640px; margin: 0 auto; }
  .gallery-main { margin: 0; border-radius: var(--radius); overflow: hidden; }
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  :root { --header-h: 76px; }
  .header-inner { grid-template-columns: 1fr auto 1fr; padding: 0 24px; }
  .menu-toggle { justify-self: start; }
  .logo img { width: 190px; }
  .desk-nav { display: flex; gap: 24px; justify-self: end; grid-column: 3; grid-row: 1; margin-right: 56px; }
  .desk-nav a { color: var(--text); text-decoration: none; font-weight: 500; }
  .desk-nav a[aria-current="page"], .desk-nav a:hover { color: var(--maroon); }
  .cart-link { grid-column: 3; grid-row: 1; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 72px; padding-bottom: 80px; }
  .hero.has-image .hero-inner { grid-template-columns: 1fr 1fr; }
  .hero.has-image .hero-text { text-align: left; }
  .hero.has-image .hero-sub { margin-left: 0; }
  .hero h1 { font-size: 3.6rem; }
  .product-layout { grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
  .gallery { position: sticky; top: calc(var(--header-h) + 16px); }
  .checkout-grid { grid-template-columns: 1.6fr 1fr; align-items: start; gap: 24px; }
  .checkout-side { position: sticky; top: calc(var(--header-h) + 16px); }
  .desktop-only { display: inline-flex; }
  /* Di desktop bar melekat jadi sebahagian aliran biasa */
  .product-page .sticky-bar, .checkout-page .sticky-bar { position: static; box-shadow: none; border: 0; padding: 0; background: transparent; }
  .checkout-page .sticky-bar { display: none; }
  body.has-sticky-bar { padding-bottom: 0; }
  body.has-sticky-bar .wa-float { bottom: 24px; }
  .narrow .sticky-bar { position: static; box-shadow: none; border: 0; padding: 0; background: transparent; justify-content: flex-end; }
  .narrow .sticky-bar .btn { flex: 0 0 auto; min-width: 240px; }
  .page-title { font-size: 2.6rem; }
  .map { height: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
