/* ButterCup Lovers — butter yellow & olive theme with light & dark modes */
/* Palette: logo butter-yellow + olive green. "pink"/"lav"/"sky" token names are kept for compatibility but now hold olive & yellow tints. */
:root {
  --bg: #fdfaf0; --bg-2: #f5f1de; --surface: #ffffff; --surface-2: #faf6e6;
  --ink: #33361b; --muted: #75734f; --line: #e9e2c4;
  --butter: #f7c948; --butter-soft: #fdf0c4; --pink: #6b7b2c; --pink-soft: #ebefd6; --on-accent: #ffffff;
  --mint: #93b25a; --mint-soft: #e6efd4; --lav: #a7b36a; --lav-soft: #f0f2df; --sky: #d9c46a; --sky-soft: #f7f2d8;
  --gold: #b8911f; --olive: #4f5a21; --danger: #c2453d; --ok: #4f8a2f; --wa: #25d366;
  --shadow: 0 10px 30px -14px rgba(79, 90, 33, .30); --shadow-lg: 0 24px 60px -22px rgba(79, 90, 33, .40);
  --radius: 22px; --radius-sm: 14px;
  --head: "Fredoka", "Nunito", system-ui, sans-serif; --body: "Nunito", "Noto Sans Sinhala", "Noto Sans Tamil", system-ui, -apple-system, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji"; --script: "Dancing Script", cursive;
  --deco-1: #f9df86; --deco-2: #d3dca6; --deco-3: #ecefd0; --deco-4: #fbe7a2;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #191b10; --bg-2: #1f2214; --surface: #262a18; --surface-2: #2f3420; --ink: #f7f2dc; --muted: #bfbd98; --line: #3f4429;
  --butter: #f7cc52; --butter-soft: #46401d; --pink: #b8c868; --pink-soft: #343b1d; --on-accent: #1b1d10;
  --mint: #a3c46a; --mint-soft: #2c3a1d; --lav: #a9b96c; --lav-soft: #2d3320; --sky: #e2cc6c; --sky-soft: #3a3519; --gold: #f2cf5e; --olive: #e3ebb6;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6); --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .75);
  --deco-1: #4e4520; --deco-2: #3a4421; --deco-3: #2c3420; --deco-4: #4a3f1c;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 16px;
  overflow-x: hidden; transition: background-color .4s, color .4s;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.01em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.script { font-family: var(--script); font-weight: 700; color: var(--pink); }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; border-radius: 8px; }

/* floating background decorations */
.bg-deco { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-deco span { position: absolute; display: block; opacity: .4; animation: drift linear infinite; }
.bg-deco svg { width: 100%; height: 100%; }
@keyframes drift { from { transform: translateY(110vh) rotate(0); } to { transform: translateY(-20vh) rotate(360deg); } }
.blob { position: fixed; z-index: -2; border-radius: 50%; filter: blur(80px); opacity: .4; pointer-events: none; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 18px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 50%; box-shadow: 0 0 0 3px var(--butter-soft); transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
.brand:hover img { transform: rotate(-12deg) scale(1.08); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font-family: var(--head); font-size: 1.25rem; font-weight: 600; }
.brand-text i { font-family: var(--script); font-style: normal; color: var(--pink); font-size: 1.3rem; margin-top: -2px; }
.main-nav { display: flex; gap: 6px; margin-left: auto; }
.main-nav a { text-decoration: none; padding: 9px 16px; border-radius: 999px; font-weight: 700; color: var(--muted); transition: background .2s, color .2s; }
.main-nav a:hover { color: var(--ink); background: var(--butter-soft); }
.main-nav a.active { color: var(--ink); background: var(--butter); box-shadow: 0 6px 16px -8px var(--butter); }
:root[data-theme="dark"] .main-nav a.active { color: #3a2f12; }
.header-actions { display: flex; gap: 6px; align-items: center; }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); display: grid; place-items: center;
  cursor: pointer; text-decoration: none; transition: transform .25s cubic-bezier(.3,1.6,.5,1), background .2s; }
.icon-btn:hover { transform: translateY(-2px) scale(1.06); background: var(--butter-soft); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--pink); color: var(--on-accent);
  font-size: .72rem; font-weight: 800; display: grid; place-items: center; animation: pop .4s cubic-bezier(.3,1.8,.5,1); }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; fill: var(--butter); stroke: var(--butter); }
.theme-toggle .i-sun { stroke: #e0a200; }
.menu-btn { display: none; }
.mobile-nav { position: fixed; top: 72px; left: 12px; right: 12px; z-index: 60; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 10px; display: grid; animation: drop .3s ease; }
.mobile-nav a { padding: 14px 16px; border-radius: 14px; text-decoration: none; font-weight: 700; }
.mobile-nav a:hover { background: var(--butter-soft); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* theme switch animation (View Transitions) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: reveal .7s cubic-bezier(.6,.05,.3,1); }
@keyframes reveal { from { clip-path: circle(0 at var(--tx, 90%) var(--ty, 30px)); } to { clip-path: circle(150vmax at var(--tx, 90%) var(--ty, 30px)); } }

/* buttons */
.btn { --b: var(--butter); --c: #3a2f12; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; border: 0;
  background: var(--b); color: var(--c); font-weight: 800; text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 8px 20px -10px var(--b), inset 0 -3px 0 rgba(0,0,0,.08); transition: transform .25s cubic-bezier(.3,1.6,.5,1), box-shadow .2s, filter .2s; }
.btn:hover { transform: translateY(-2px) scale(1.02); filter: saturate(1.1); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn-pink { --b: var(--pink); --c: var(--on-accent); }
.btn-wa { --b: var(--wa); --c: #fff; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 8px 14px; font-size: .9rem; }
.btn-block { width: 100%; }

/* hero */
.hero { padding: 40px 0 30px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 700; }
.hero h1 .script { font-size: 1.15em; display: inline-block; transform: rotate(-3deg); }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 520px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); font-weight: 700; font-size: .9rem; }
.hero-visual { position: relative; min-height: 420px; border-radius: 40px; background: radial-gradient(circle at 50% 45%, var(--butter-soft), transparent 70%); }
.hero-visual .gb-scene { height: 420px; }
.floaty { position: absolute; font-size: 2rem; animation: bob 4s ease-in-out infinite; pointer-events: none; }
@keyframes bob { 50% { transform: translateY(-14px) rotate(8deg); } }

.offer-strip { margin: 10px 0 0; background: linear-gradient(90deg, var(--pink-soft), var(--butter-soft), var(--lav-soft)); border-block: 1.5px dashed var(--line); overflow: hidden; }
.offer-strip .track { display: flex; gap: 60px; padding: 12px 0; width: max-content; animation: marquee 28s linear infinite; font-weight: 800; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* sections */
.section { padding: 46px 0 10px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.section-head h2 small { display: block; font-family: var(--script); color: var(--pink); font-size: 1.15rem; font-weight: 700; }
.section-head a { font-weight: 800; color: var(--pink); text-decoration: none; white-space: nowrap; }
.row-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 18px; overflow-x: auto; padding: 6px 4px 22px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.row-scroll > * { scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }

/* product card */
.card { position: relative; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow); transition: transform .35s cubic-bezier(.3,1.5,.5,1), box-shadow .3s; animation: rise .5s both; }
.card:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: var(--shadow-lg); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.card-img { position: relative; aspect-ratio: 1; background: var(--surface-2); cursor: pointer; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-img img { transform: scale(1.06); }
.card-tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag { padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 800; background: var(--surface); color: var(--ink); box-shadow: 0 4px 10px -4px rgba(0,0,0,.2); }
.tag-new { background: var(--mint); color: #1f2a0e; }
.tag-sale { background: var(--pink); color: var(--on-accent); }
.tag-hot { background: var(--butter); color: #3a2f12; }
.tag-out { background: #555; color: #fff; }
.tag-low { background: var(--olive); color: #fff; }
.stock-note { margin: 4px 0 8px; font-weight: 800; font-size: .85rem; color: var(--muted); }
.stock-note.low { color: var(--danger); }
.pick .stock-note { margin: 0; font-size: .75rem; }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.card.sold-out .card-img img { filter: grayscale(.8) opacity(.7); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { font-size: 1.08rem; margin: 0; cursor: pointer; }
.price { display: flex; align-items: baseline; gap: 8px; font-weight: 800; font-family: var(--head); font-size: 1.15rem; }
.price s { color: var(--muted); font-size: .9rem; font-weight: 600; }
.card-actions { margin-top: auto; display: flex; gap: 8px; padding-top: 6px; }
.card-actions .btn { flex: 1; padding: 10px 12px; font-size: .9rem; }
.cat-pill { font-size: .78rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.step .n { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 1.3rem; margin-bottom: 10px; }
.step:nth-child(1) .n { background: var(--butter); color: #3a2f12; } .step:nth-child(2) .n { background: var(--pink); color: var(--on-accent); } .step:nth-child(3) .n { background: var(--mint); color: #1f2a0e; }

.cta-band { margin: 46px 0 10px; border-radius: 34px; padding: 34px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center;
  background: linear-gradient(120deg, var(--pink-soft), var(--lav-soft) 60%, var(--sky-soft)); border: 1.5px solid var(--line); }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }

/* page header + tabs */
.page-head { padding: 34px 0 10px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 20px; }
.tab { padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 800; cursor: pointer; transition: all .2s; }
.tab:hover { background: var(--butter-soft); }
.tab.active { background: var(--pink); color: var(--on-accent); border-color: var(--pink); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.input, select.input, textarea.input { width: 100%; padding: 12px 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); outline: none; transition: border-color .2s, box-shadow .2s; }
.input:focus { border-color: var(--pink); box-shadow: 0 0 0 4px var(--pink-soft); }
.toolbar .input { flex: 1; min-width: 180px; }
.toolbar select.input { flex: 0 0 auto; width: auto; }
label.field { display: grid; gap: 6px; font-weight: 700; font-size: .92rem; }
label.field span small { color: var(--muted); font-weight: 600; }
.form-grid { display: grid; gap: 14px; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty .big { font-size: 3rem; }

/* custom box builder */
.builder { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 26px; align-items: start; padding-bottom: 30px; }
.builder-stage { position: relative; background: var(--surface); border: 1.5px solid var(--line); border-radius: 30px; box-shadow: var(--shadow); padding: 16px; }
.builder-stage .gb-scene { height: 400px; border-radius: 22px; background: radial-gradient(circle at 50% 40%, var(--butter-soft), var(--surface-2) 75%); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; transition: transform .2s; }
.swatch:hover { transform: scale(1.12); }
.swatch.active { box-shadow: 0 0 0 3px var(--pink); transform: scale(1.08); }
.box-note { font-weight: 700; color: var(--soft, inherit); background: color-mix(in srgb, #dcb68a 22%, var(--surface)); border: 1.5px solid var(--line); border-radius: 14px; padding: 9px 14px; }
.style-row { display: grid; grid-template-columns: 70px 1fr; gap: 10px; align-items: center; margin-top: 12px; font-weight: 800; font-size: .9rem; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding: 4px; }
/* desktop: the item list scrolls on its own (without dragging the page along) and stays in view */
@media (min-width: 901px) {
  .builder > div:last-child { position: sticky; top: 88px; }
  .builder .pick-grid { max-height: calc(100vh - 170px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}
.pick { background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, border-color .2s; }
.pick.in { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft); }
.pick img { aspect-ratio: 1.25; object-fit: cover; width: 100%; background: var(--surface-2); }
.pick .pb { padding: 8px 10px 10px; display: grid; gap: 6px; }
.pick .pn { font-weight: 800; font-size: .9rem; line-height: 1.2; }
.pick.out { opacity: .55; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 6px; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.stepper button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--surface); font-weight: 900; cursor: pointer; font-size: 1.1rem; box-shadow: 0 2px 6px -2px rgba(0,0,0,.2); }
.stepper button:hover { background: var(--butter); }
.stepper b { min-width: 22px; text-align: center; }
.add-btn { border: 0; border-radius: 999px; padding: 8px; font-weight: 800; background: var(--butter); color: #3a2f12; cursor: pointer; }
.add-btn:hover { filter: brightness(1.05); transform: scale(1.02); }

.summary { margin-top: 18px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 26px; padding: 18px; box-shadow: var(--shadow); }
.summary h3 { display: flex; justify-content: space-between; align-items: center; }
.sum-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.sum-table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 6px 4px; border-bottom: 1.5px dashed var(--line); }
.sum-table td { padding: 8px 4px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.sum-table td.num, .sum-table th.num { text-align: right; white-space: nowrap; }
.sum-item { display: flex; align-items: center; gap: 10px; }
.sum-item img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.sum-total { display: grid; gap: 6px; margin-top: 12px; }
.sum-total div { display: flex; justify-content: space-between; }
.sum-total .grand { font-family: var(--head); font-size: 1.45rem; font-weight: 700; padding: 10px 14px; margin-top: 6px; border-radius: 16px; background: linear-gradient(90deg, var(--butter-soft), var(--pink-soft)); }
.sum-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.sum-actions .btn { flex: 1 1 180px; }

/* builder view tabs + AI photo */
.view-tabs { position: relative; z-index: 5; display: flex; gap: 6px; background: var(--surface-2); padding: 5px; border-radius: 999px; width: max-content; margin: 0 auto 12px; }
.view-tabs button { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font-weight: 800; cursor: pointer; color: var(--muted); transition: all .2s; }
.view-tabs button.active { background: var(--surface); color: var(--ink); box-shadow: 0 4px 12px -6px rgba(0,0,0,.25); }
.ai-view { position: relative; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; background:
  radial-gradient(circle at 30% 20%, var(--pink-soft), transparent 55%), radial-gradient(circle at 75% 80%, var(--lav-soft), transparent 55%), var(--surface-2); display: grid; place-items: center; }
.ai-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ai-view img.pop { animation: aipop .8s cubic-bezier(.2,.8,.2,1); }
@keyframes aipop { from { opacity: 0; transform: scale(1.06); filter: blur(10px); } }
.ai-msg { position: relative; text-align: center; padding: 24px; color: var(--muted); max-width: 360px; line-height: 1.5; }
.ai-msg b { color: var(--ink); font-family: var(--head); font-size: 1.2rem; font-weight: 600; }
.ai-load { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; background: color-mix(in srgb, var(--surface) 55%, transparent); backdrop-filter: blur(6px); font-weight: 800; color: var(--ink); text-align: center; }
.ai-load p { margin: 0; animation: shimmer 1.6s ease-in-out infinite; }
@keyframes shimmer { 50% { opacity: .45; } }
.spin { width: 46px; height: 46px; border-radius: 50%; border: 5px solid var(--butter-soft); border-top-color: var(--pink); animation: rot 0.9s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.ai-note { margin: 8px 4px 0; font-size: .8rem; color: var(--muted); text-align: center; }
.ai-refresh { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--surface); font-size: 1.2rem; font-weight: 900; cursor: pointer; box-shadow: var(--shadow); z-index: 2; }
.ai-refresh:hover { transform: rotate(-90deg); transition: transform .3s; }
.ai-badge:empty { display: none; }
.ai-badge { position: absolute; left: 10px; bottom: 10px; background: rgba(33, 36, 16, .72); color: #fff; font-size: .78rem; font-weight: 800; padding: 5px 12px; border-radius: 999px; backdrop-filter: blur(4px); z-index: 2; }

/* 3D gift box */
.gb-scene { --gb-scale: 1; position: relative; perspective: 1100px; perspective-origin: 50% 30%; cursor: grab; touch-action: pan-y; user-select: none; }
.gb-scene.dragging { cursor: grabbing; }
.gb-stage { position: absolute; left: 50%; top: 66%; width: 0; height: 0; transform: scale(var(--gb-scale)); transform-style: preserve-3d; }
.gb-shadow { position: absolute; width: 380px; height: 120px; left: -190px; top: 50px; border-radius: 50%; background: radial-gradient(closest-side, rgba(90,60,10,.28), transparent); filter: blur(6px); }
.gb-rot { position: absolute; transform-style: preserve-3d; }
.gb-face { position: absolute; left: 0; top: 0; backface-visibility: visible; }
/* kraft corrugated mailer box + white tissue paper */
.gb-scene { --kraft-a: #dcb68a; --kraft-b: #c99d6b; --kraft-in: #d2a877; }
.gb-wall { background:
    radial-gradient(rgba(120,80,30,.10) 1px, transparent 1.4px) 0 0 / 7px 9px,
    radial-gradient(rgba(255,240,215,.18) 1px, transparent 1.4px) 3px 4px / 11px 8px,
    linear-gradient(180deg, var(--kraft-a), var(--kraft-b));
  border-radius: 3px; box-shadow: inset 0 3px 0 rgba(255,235,205,.35), inset 0 0 0 1.5px rgba(110,70,25,.18), inset 0 -16px 24px -12px rgba(90,55,15,.22); }
.gb-back, .gb-left { filter: brightness(.86); }
.gb-bottom { background: var(--kraft-b); filter: brightness(.68); }
.gb-filler { background:
    radial-gradient(ellipse 60px 26px at 20% 30%, rgba(0,0,0,.05), transparent 70%),
    radial-gradient(ellipse 80px 30px at 70% 65%, rgba(0,0,0,.05), transparent 70%),
    repeating-linear-gradient(28deg, rgba(0,0,0,.025) 0 2px, transparent 2px 14px),
    linear-gradient(135deg, #ffffff, #f3f1ec);
  border-radius: 10px; box-shadow: inset 0 0 26px rgba(0,0,0,.10); }
:root[data-theme="dark"] .gb-filler { filter: brightness(.94); }
.gb-tissue { background:
    repeating-linear-gradient(80deg, rgba(0,0,0,.035) 0 2px, transparent 2px 16px),
    linear-gradient(180deg, rgba(255,255,255,.97), rgba(240,238,232,.95));
  border-radius: 40% 46% 8px 8px / 30% 36% 8px 8px; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.gb-lid { position: absolute; transform-style: preserve-3d; }
.gb-lidtop { background:
    repeating-linear-gradient(90deg, rgba(120,80,30,.07) 0 1px, transparent 1px 6px),
    linear-gradient(0deg, #d8b183, var(--kraft-in));
  border-radius: 4px; box-shadow: inset 0 0 0 1.5px rgba(110,70,25,.18), inset 0 0 30px rgba(90,55,15,.12); filter: brightness(.95); }
.gb-ear { background: linear-gradient(90deg, #d6ae7e, #c9a06d); border-radius: 4px 26px 26px 4px; box-shadow: inset 0 0 0 1.5px rgba(110,70,25,.18); }
.gb-items { position: absolute; transform-style: preserve-3d; }
.gb-item { position: absolute; left: 0; top: 0; transform-style: preserve-3d; transform: translate3d(var(--x), var(--y), var(--z)) rotateY(var(--ry)) rotateX(var(--rx, 0deg)); transform-origin: 0 calc(var(--s) / 2); }
.gb-item.is-new { animation: dropin .7s cubic-bezier(.3,1.5,.5,1) both; }
@keyframes dropin { from { transform: translate3d(var(--x), calc(var(--y) - 220px), var(--z)) rotateY(var(--ry)) rotateX(var(--rx, 0deg)) scale(.4); opacity: 0; } }
.gb-bill { position: relative; width: var(--s); height: var(--s); margin-left: calc(var(--s) / -2); transform: rotateZ(var(--rz)); transform-style: preserve-3d; }
.gb-card { position: absolute; inset: 0; background: #fff; border-radius: 14px; padding: 5px; box-shadow: 0 8px 16px -6px rgba(60,40,0,.35);
  transform: translate3d(calc(var(--k) * 9px), calc(var(--k) * -7px), calc(var(--k) * -6px)) rotate(calc(var(--k) * 7deg)); }
.gb-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; pointer-events: none; }
.gb-qty { position: absolute; right: -10px; top: -10px; transform: translateZ(4px); background: var(--olive); color: #fff; font-weight: 900; font-size: 14px; padding: 3px 9px; border-radius: 999px; box-shadow: 0 4px 10px rgba(0,0,0,.2); }
.gb-hint { position: absolute; bottom: 10px; right: 10px; font-size: .8rem; font-weight: 800; color: var(--muted); background: var(--surface); padding: 4px 12px; border-radius: 999px; opacity: .85; }
.gb-empty { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); font-weight: 800; color: var(--muted); white-space: nowrap; font-size: .9rem; display: none; }
.gb-scene.is-empty .gb-empty { display: block; }

/* sticky custom-box bar */
.box-bar { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 65; width: min(720px, calc(100% - 110px));
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 20px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); border: 1.5px solid var(--line); box-shadow: var(--shadow-lg);
  transition: transform .4s cubic-bezier(.3,1.4,.5,1), opacity .3s; animation: rise .4s both; }
body.summary-visible .box-bar { transform: translate(-50%, 160%); opacity: 0; pointer-events: none; }
.bb-info { display: grid; line-height: 1.15; } .bb-info span { font-size: .8rem; color: var(--muted); font-weight: 700; } .bb-info b { font-family: var(--head); font-size: 1.25rem; font-weight: 600; }
.bb-act { display: flex; gap: 8px; }
@media (max-width: 760px) { .box-bar { left: 12px; right: 92px; width: auto; transform: none; border-radius: 22px; padding: 10px; flex-wrap: wrap; } body.summary-visible .box-bar { transform: translateY(160%); }
  .bb-act { width: 100%; } .bb-act .btn { flex: 1; padding: 9px 10px; } }

/* cart */
.cart-list { display: grid; gap: 12px; }
.cart-row { display: grid; grid-template-columns: 72px 1fr auto auto; gap: 14px; align-items: center; background: var(--surface); border: 1.5px solid var(--line); border-radius: 20px; padding: 10px 14px; }
.cart-row img { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; }
.remove { border: 0; background: none; cursor: pointer; color: var(--danger); font-weight: 800; }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.contact-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: grid; gap: 8px; text-decoration: none; transition: transform .3s; }
.contact-card:hover { transform: translateY(-4px); }
.contact-card .ico { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; font-size: 1.6rem; }
.contact-card b { font-family: var(--head); font-size: 1.25rem; font-weight: 600; word-break: break-word; }

/* account */
.auth-box { max-width: 460px; margin: 10px auto 40px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 30px; padding: 26px; box-shadow: var(--shadow-lg); }
.note { background: var(--mint-soft); border-radius: 16px; padding: 12px 14px; font-weight: 600; font-size: .92rem; }
.order-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: 20px; padding: 16px; display: grid; gap: 8px; }
.status { padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; text-transform: capitalize; }
.status-new { background: var(--butter-soft); } .status-confirmed { background: var(--sky-soft); } .status-delivered { background: var(--mint-soft); } .status-cancelled { background: var(--pink-soft); }

/* modal */
.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(40, 28, 10, .45); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border-radius: 30px; padding: 24px; box-shadow: var(--shadow-lg); position: relative; animation: pop .4s cubic-bezier(.3,1.5,.5,1); }
.modal.wide { width: min(900px, 100%); }
.modal-x { position: absolute; top: 14px; right: 14px; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.pd-main { aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: var(--surface-2); }
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 8px; }
.pd-thumbs img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; cursor: pointer; border: 2px solid transparent; }
.pd-thumbs img.on { border-color: var(--pink); }
.contents { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; margin: 8px 0; }
.contents li { background: var(--butter-soft); border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: .85rem; }
.success { text-align: center; }
.success .big { font-size: 3.4rem; animation: bob 2s ease-in-out infinite; }
.success code { font-family: var(--head); font-size: 1.5rem; background: var(--butter-soft); padding: 4px 14px; border-radius: 12px; }

/* footer */
.site-footer { margin-top: 60px; background: var(--bg-2); border-top: 1.5px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 26px; padding: 36px 0 20px; }
.footer-inner h4 { font-size: 1.05rem; }
.footer-inner a { display: block; text-decoration: none; color: var(--muted); padding: 3px 0; font-weight: 600; }
.footer-inner a:hover { color: var(--pink); }
.foot-brand img { border-radius: 50%; margin-bottom: 8px; }
.foot-brand p { color: var(--muted); max-width: 320px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 16px 0 26px; border-top: 1px dashed var(--line); color: var(--muted); font-size: .9rem; }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 70; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); display: grid; place-items: center;
  box-shadow: 0 10px 24px -6px rgba(37, 211, 102, .6); animation: pulse 2.6s infinite; }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,.45), 0 10px 24px -6px rgba(37,211,102,.6); } 50% { box-shadow: 0 0 0 14px rgba(37,211,102,0), 0 10px 24px -6px rgba(37,211,102,.6); } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 220%); visibility: hidden; z-index: 200; background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-weight: 800;
  transition: transform .4s cubic-bezier(.3,1.5,.5,1), visibility .4s; max-width: calc(100% - 32px); text-align: center; }
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.demo-flag { position: fixed; left: 12px; bottom: 12px; z-index: 80; background: var(--olive); color: #fff; font-weight: 800; font-size: .78rem; padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow); }
.fade-in { animation: rise .45s both; }

@media (max-width: 900px) {
  .hero-grid, .builder, .pd-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 340px; } .hero-visual .gb-scene { height: 340px; }
  .builder-stage { position: relative; top: 0; }
  .steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; }
  .cta-band { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .main-nav { display: none; } .menu-btn { display: grid; } .header-actions { margin-left: auto; }
  .brand-text b { font-size: 1.05rem; }
  .icon-btn { width: 40px; height: 40px; }
  .cart-row { grid-template-columns: 56px 1fr auto; } .cart-row img { width: 56px; height: 56px; } .cart-row .remove { grid-column: 3; }
  .row-scroll { grid-auto-columns: 72%; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 10px 12px 12px; } .card-actions { flex-direction: column; }
  .pick-grid { grid-template-columns: repeat(2, 1fr); max-height: none; }
  .builder-stage .gb-scene { height: 320px; }
  .sum-table { font-size: .86rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
/* keep the whole box panel inside the screen while the item list scrolls */
@media (min-width: 901px) {
  .builder-stage .ai-view { max-height: max(240px, calc(100vh - 340px)); }
  .builder-stage .gb-scene { height: min(400px, max(240px, calc(100vh - 340px))); }
}
/* colour / flavour options */
.vdots { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin: 2px 0 6px; }
.vdots i { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--line); }
.vdots i.out { opacity: .3; }
.vdots small { font-weight: 800; color: var(--muted); font-size: .75rem; }
.vpick { display: grid; gap: 8px; margin: 6px 0 10px; }
.vchips { display: flex; flex-wrap: wrap; gap: 8px; }
.vchip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px 7px 8px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; transition: border-color .2s, background .2s; }
.vchip i { width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--line); flex: none; }
.vchip:hover:not(:disabled) { border-color: var(--pink); }
.vchip.on { border-color: var(--pink); background: var(--pink-soft); box-shadow: 0 0 0 2px var(--pink) inset; }
.vchip:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.vname { display: flex; align-items: center; gap: 5px; color: var(--muted); font-weight: 700; font-size: .8rem; }
.vname i { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.sum-item span { display: grid; }
.stepper.mini { display: inline-flex; padding: 2px; gap: 4px; }
.stepper.mini button { width: 24px; height: 24px; font-size: .9rem; }
/* customer details (required to order / download invoice) */
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.details { margin-top: 16px; padding: 14px; border-radius: 20px; background: var(--surface-2); border: 1.5px solid var(--line); }
.details h4 { margin: 0 0 10px; font-family: var(--head); font-weight: 600; font-size: 1.1rem; }
.details h4 small { font-family: inherit; font-weight: 600; font-size: .8rem; }
.dgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.dgrid .wide { grid-column: 1 / -1; }
.details .field span i { color: var(--danger); font-style: normal; }
.input.bad { border-color: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 20%, transparent); }
.dhint { margin: 8px 2px 0; font-size: .85rem; font-weight: 700; color: var(--danger); }
.dhint.ok { color: var(--ok); }
.btn.locked { opacity: .5; filter: grayscale(.4); }
@media (max-width: 560px) { .dgrid { grid-template-columns: 1fr; } }
/* AI photo: made on request */
.ai-msg .btn { margin-top: 12px; }
.ai-view img.stale { filter: blur(3px) brightness(.75); }
.ai-view.over .ai-msg { position: absolute; inset: 0; max-width: none; display: grid; place-content: center; justify-items: center; color: #fff; z-index: 1; }
.ai-view.over .ai-msg b { color: #fff; }
/* ratings & reviews */
.stars { --r: 0; display: inline-block; font-size: 1rem; line-height: 1; letter-spacing: 1px; white-space: nowrap; }
.stars::before { content: '★★★★★'; background: linear-gradient(90deg, #f2b705 calc(var(--r) / 5 * 100%), color-mix(in srgb, var(--muted) 30%, transparent) 0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars.big { font-size: 1.5rem; }
.rating-line { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); text-decoration: none; }
.rating-line b { color: var(--ink); }
.rating-line.big .stars { font-size: 1.15rem; }
.star-in { display: flex; gap: 2px; }
.star-in button { border: 0; background: none; padding: 0 2px; font-size: 2rem; line-height: 1; cursor: pointer; color: color-mix(in srgb, var(--muted) 35%, transparent); transition: transform .15s, color .15s; }
.star-in button:hover { transform: scale(1.15); }
.star-in button.on { color: #f2b705; }
.rate-block { display: grid; gap: 6px; padding: 14px; border-radius: 18px; background: var(--surface-2); border: 1.5px solid var(--line); }
.rate-item { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rate-item img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.rate-item > div { display: grid; gap: 4px; }
.rate-item .star-in button { font-size: 1.6rem; }
.quick-rate { margin-top: 18px; padding: 14px; border-radius: 18px; background: var(--butter-soft); display: grid; gap: 8px; justify-items: center; text-align: center; }
.quick-rate #qMore { display: grid; gap: 8px; width: 100%; }
.quick-rate #qMore[hidden] { display: none; }
.review { background: var(--surface); border: 1.5px solid var(--line); border-radius: 20px; padding: 16px; display: grid; gap: 8px; align-content: start; }
.review p { margin: 0; line-height: 1.55; white-space: pre-line; }
.rv-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rv-date { font-size: .8rem; color: var(--muted); }
.rv-item { font-size: .82rem; font-weight: 800; color: var(--pink); }
.rv-by { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .9rem; }
.verified { font-size: .75rem; font-weight: 800; color: var(--ok); background: var(--mint-soft); padding: 2px 8px; border-radius: 999px; }
.rv-reply { background: var(--surface-2); border-left: 3px solid var(--pink); border-radius: 0 12px 12px 0; padding: 8px 12px; font-size: .9rem; }
.rv-reply p { margin: 2px 0 0; }
.review-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 320px); gap: 16px; overflow-x: auto; padding: 4px 4px 18px; scroll-snap-type: x mandatory; }
.review-row > * { scroll-snap-align: start; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; padding-bottom: 20px; }
.review-list { display: grid; gap: 12px; margin-top: 14px; }
.rhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -6px 0 14px; }
.rsum { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.rsum-big { display: grid; justify-items: center; gap: 4px; text-align: center; }
.rsum-big > b { font-family: var(--head); font-size: 3rem; line-height: 1; }
.rsum-big .muted { font-size: .85rem; }
.rsum-bars { display: grid; gap: 5px; }
.rsum-bars div { display: grid; grid-template-columns: 30px 1fr 30px; gap: 8px; align-items: center; font-size: .85rem; font-weight: 700; }
.rsum-bars i { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.rsum-bars em { display: block; height: 100%; background: #f2b705; border-radius: 999px; }
.rsum-bars small { color: var(--muted); }
.reviews-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; margin: 10px 0 22px; }
.reviews-top .summary { margin: 0; }
.my-orders { display: grid; gap: 8px; }
.my-orders > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: var(--surface-2); }
.pd-reviews { grid-column: 1 / -1; margin-top: 22px; padding-top: 18px; border-top: 1.5px dashed var(--line); }
.pd-reviews:empty { display: none; }
@media (max-width: 760px) {
  .reviews-top { grid-template-columns: 1fr; }
  .rsum { grid-template-columns: 1fr; gap: 12px; }
  .review-row { grid-auto-columns: 82%; }
}
/* reviews in any language: Sinhala, Tamil, English, right-to-left scripts, symbols and emoji */
.review p, .rv-by b, .rv-reply p, .rate-block textarea, .rate-item textarea, #qTxt { unicode-bidi: plaintext; overflow-wrap: anywhere; font-family: var(--body); }
.review p, .rv-reply p { line-height: 1.7; }
.rv-tr { justify-self: start; border: 0; background: none; padding: 2px 0; font: inherit; font-size: .8rem; font-weight: 800; color: var(--pink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.rv-tr:disabled { opacity: .6; cursor: wait; }
.wa-cat-band { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 26px; padding: 18px 22px; border-radius: 22px; background: var(--surface); border: 1.5px solid var(--line); }
.wa-cat-band > div { display: grid; gap: 2px; }
.wa-cat-band b { font-family: var(--head); font-size: 1.2rem; font-weight: 600; }
@media (max-width: 560px) { .wa-cat-band .btn { width: 100%; } }
/* performance: soft background glows without a heavy blur filter */
.blob { filter: none; opacity: .55; }
.bg-deco span { will-change: transform; }
@media (max-width: 760px) { .site-header, .box-bar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); } .box-bar { background: var(--surface); } }
/* "From Rs. X" price + cake price request form */
.price .from { font-family: var(--body); font-size: .72em; font-weight: 700; color: var(--muted); margin-right: 2px; }
.quote { display: grid; gap: 12px; margin-top: 8px; }
.quote-note { margin: 0; padding: 10px 14px; border-radius: 14px; background: var(--butter-soft); font-weight: 600; font-size: .92rem; }

/* cake design photo upload */
.design-up { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.up-box { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px dashed var(--line-2, var(--line)); border-radius: 14px; cursor: pointer; font-weight: 600; color: var(--muted); background: var(--surface); }
.up-box:hover { border-color: var(--pink); }
.up-box img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; }
.design-up .link-btn { border: 0; background: none; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; justify-self: start; font: inherit; font-size: .85rem; }
.price .pnote { font-family: var(--body); font-size: .62em; font-weight: 700; color: var(--muted); }

.design-up[hidden] { display: none; }
.up-list { display: flex; flex-wrap: wrap; gap: 8px; }
.up-list:empty { display: none; }
.up-th { position: relative; width: 72px; height: 72px; }
.up-th img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.up-th button { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: #1e2015; color: #fff; font-size: 12px; cursor: pointer; }
.up-box[hidden] { display: none; }

/* catalog: Categories menu (main categories with sub-categories) */
.cat-menu { position: relative; flex: 0 0 auto; }
.cat-btn { display: flex; align-items: center; gap: 8px; width: auto; min-width: 190px; justify-content: space-between; font-weight: 800; cursor: pointer; white-space: nowrap; }
.cat-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.cat-btn.picked { border-color: var(--pink); background: var(--pink-soft); }
.cat-panel { position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; width: min(760px, 92vw); background: var(--surface); border: 1.5px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 14px; display: grid; gap: 10px; animation: drop .2s ease; }
.cat-panel[hidden] { display: none; }
.cat-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 18px; }
.cat-col { display: grid; align-content: start; gap: 2px; }
.cat-panel button { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 12px; cursor: pointer; font: inherit; color: var(--ink); }
.cat-panel button small { margin-left: auto; color: var(--muted); font-weight: 700; font-size: .78rem; }
.cat-panel button:hover { background: var(--butter-soft); }
.cat-panel button.on { background: var(--pink-soft); color: var(--pink); }
.cat-all { font-weight: 800; border-bottom: 1px dashed var(--line) !important; border-radius: 12px 12px 0 0 !important; }
.cat-main { font-weight: 800; font-size: 1rem; }
.cat-sub { padding-left: 34px !important; font-weight: 600; font-size: .92rem; color: var(--muted) !important; }
.cat-sub.on { color: var(--pink) !important; }
.cat-now { margin: -6px 0 14px; color: var(--muted); font-weight: 600; }
.cat-now .link-btn { border: 0; background: none; color: var(--pink); font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; padding: 0 0 0 6px; }
@media (max-width: 760px) {
  .toolbar .cat-menu { flex: 1 1 100%; }
  .cat-btn { width: 100%; }
  .cat-panel { width: 100%; }
}

/* custom box: every item card the same size, buttons lined up at the bottom */
.pick-grid { align-items: stretch; }
.pick { height: 100%; }
.pick img { aspect-ratio: 1.25; flex: none; }
.pick .pb { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 10px 12px 12px; }
.pick .pn { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; line-height: 1.2; }
.pick .stock-note { min-height: 0; }
.pick .vdots { margin: 0; }
.pick .add-btn, .pick .stepper, .pick .tag-out { margin-top: auto; }
.pick .add-btn { min-height: 42px; padding: 8px 10px; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick .stepper { min-height: 42px; }
.pick { min-height: 300px; }

/* cakes page */
.cakes-head p { max-width: 720px; font-size: 1.05rem; }
.cake-steps { margin-top: 6px; }
.cake-cta { margin: 26px 0 0; }

.boot-load { min-height: 50vh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted); font-weight: 700; text-align: center; }
.boot-load .spin { width: 46px; height: 46px; border-radius: 50%; border: 5px solid var(--butter-soft); border-top-color: var(--pink); animation: rot .9s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

/* checkout gift options */
.gift-box { display: grid; gap: 10px; padding: 12px 14px; border-radius: 18px; background: var(--surface-2); border: 1.5px dashed var(--line); }
.gift-box .flag { display: flex; gap: 8px; align-items: center; font-weight: 700; cursor: pointer; }
.gift-box [hidden] { display: none !important; }

/* bank transfer box after ordering */
.pay-box{display:grid;gap:10px;margin-top:16px;padding:14px;border:1px dashed var(--line, #e7dcb4);border-radius:16px;text-align:left}
.pay-rows{display:grid;grid-template-columns:auto 1fr;gap:4px 14px;font-size:.92rem}
.pay-rows span{color:var(--muted, #888)}
.pay-rows b{overflow-wrap:anywhere}
.pay-box label{justify-self:start;cursor:pointer}

/* policy pages */
.policy-page{max-width:820px}
.policy-text{line-height:1.7}
.policy-text h3{margin:22px 0 6px;font-size:1.1rem}
.policy-text h3:first-child{margin-top:0}
.policy-text p{margin:0 0 10px}
.policy-text ul{margin:0 0 12px;padding-left:22px}
.policy-text li{margin:4px 0}

/* share a product link */
.pd-share{border:1px solid var(--line, #e7dcb4);background:transparent;color:inherit;border-radius:999px;padding:4px 12px;font:inherit;font-size:.85rem;cursor:pointer;margin:-4px 0 8px}
.pd-share:hover{background:var(--butter-soft, #fff6d6)}

/* seasonal look: falling snow / petals / hearts (owner sets the season in Admin → Offers & look) */
.season-fx { position: fixed; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.season-fx span { position: absolute; top: -6vh; color: var(--pink); animation: season-fall linear infinite; will-change: transform; line-height: 1; }
@keyframes season-fall { 0% { transform: translate3d(0, -6vh, 0) rotate(0); } 50% { transform: translate3d(28px, 52vh, 0) rotate(160deg); } 100% { transform: translate3d(-10px, 112vh, 0) rotate(320deg); } }
@media (prefers-reduced-motion: reduce) { .season-fx { display: none; } }
.season-chip { background: var(--pink-soft); border-color: transparent; color: var(--pink); font-weight: 800; }
:root[data-season] .offer-strip { background: linear-gradient(90deg, var(--pink-soft), var(--butter-soft), var(--lav-soft)); }

/* Christmas: snow on cards, frosty cards (a tap knocks the snow off) */
.snow-cap { position: absolute; top: -2px; left: -2px; right: -2px; height: 42px; z-index: 3; pointer-events: none; filter: drop-shadow(0 3px 3px rgba(110, 150, 195, .35)); }
.snow-cap svg { width: 100%; height: 100%; display: block; }
.card.snowy .card-tags { top: 32px; }
.card.frosty .card-tags { z-index: 2; }
.card.frosty { border-color: #bfe0f5; box-shadow: 0 0 0 2px rgba(190, 225, 250, .55), 0 10px 26px -14px rgba(70, 130, 190, .45); }
.frost { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(circle at 0 0, rgba(255,255,255,.95), rgba(225,242,255,.55) 18%, transparent 42%),
    radial-gradient(circle at 100% 100%, rgba(255,255,255,.9), rgba(225,242,255,.5) 16%, transparent 38%),
    radial-gradient(circle at 100% 0, rgba(235,247,255,.75), transparent 26%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg stroke='%23ffffff' stroke-width='1.2' stroke-linecap='round' opacity='.55' fill='none'%3E%3Cpath d='M12 6v12M6 12h12M8 8l8 8M16 8l-8 8M44 34v14M37 41h14M39 36l10 10M49 36l-10 10'/%3E%3C/g%3E%3C/svg%3E");
  mix-blend-mode: screen; animation: frost-glint 4s ease-in-out infinite; }
.card.frosty .card-img img { filter: saturate(.85) brightness(1.04) hue-rotate(-6deg); }
@keyframes frost-glint { 50% { opacity: .78; } }
.frost-temp { position: absolute; right: 10px; bottom: 10px; z-index: 2; padding: 4px 10px; border-radius: 999px; background: rgba(230, 244, 255, .92); color: #23628f; font-weight: 800; font-size: .8rem; box-shadow: 0 4px 12px -4px rgba(35, 98, 143, .45); }
.snow-bit { position: fixed; z-index: 9999; border-radius: 50%; background: #fff; box-shadow: 0 0 4px rgba(150, 190, 230, .8); pointer-events: none; }
.card.shaking { animation: card-shake .42s ease-in-out; }
@keyframes card-shake { 20% { transform: rotate(-1.6deg); } 45% { transform: rotate(1.4deg); } 70% { transform: rotate(-.7deg); } }
:root[data-theme="dark"] .frost { mix-blend-mode: soft-light; }
@media (prefers-reduced-motion: reduce) { .frost { animation: none; } }

/* Halloween: a haunted page — ghosts, skulls, a hand from below, cobwebs, bats, fog, moon & lightning */
.ghost { position: absolute; width: 84px; height: 100px; z-index: 2; pointer-events: none; transition: transform 1.1s cubic-bezier(.2, .9, .3, 1.15); filter: drop-shadow(0 0 6px rgba(0, 0, 0, .7)) drop-shadow(0 10px 14px rgba(0, 0, 0, .55)); }
.ghost svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ghost .look { transform: translate(var(--ex, 0px), var(--ey, 0px)); transition: transform .3s ease-out; }
.gv-sheet .mouth { transform-box: fill-box; transform-origin: top; animation: ghost-moan 2.4s ease-in-out infinite; }
@keyframes ghost-moan { 50% { transform: scaleY(1.25); } }
.gv-hand { width: 74px; height: 112px; }
.gv-hand .fingers { transform-box: fill-box; transform-origin: bottom; }
.gv-hand.peek .fingers { animation: hand-claw 1.4s ease-in-out infinite; }
@keyframes hand-claw { 30% { transform: skewX(-4deg) scaleY(.96); } 60% { transform: skewX(3deg) scaleY(1.03); } }
.g-right { right: -92px; top: 20%; transform: rotate(-14deg); }
.g-right.peek { transform: translateX(-64px) rotate(-14deg); }
.g-left { left: -92px; top: 32%; transform: rotate(14deg); }
.g-left.peek { transform: translateX(64px) rotate(14deg); }
.g-top { top: -106px; left: 38%; transform: rotate(180deg); }
.g-top.peek { transform: translateY(72px) rotate(180deg); }
.g-bottom { bottom: -114px; left: 50%; transform: rotate(3deg); }
.g-bottom.peek { transform: translateY(-78px) rotate(3deg); }
.ghost.peek svg { animation: ghost-sway 2.2s ease-in-out infinite; }
@keyframes ghost-sway { 50% { transform: translateY(-5px) rotate(-2deg); } }
.ghost.flicker { animation: ghost-flicker 1.1s steps(1) infinite; }
@keyframes ghost-flicker { 0% { opacity: 1; } 12% { opacity: .15; } 18% { opacity: 1; } 46% { opacity: .5; } 50% { opacity: 1; } 78% { opacity: .1; } 82% { opacity: 1; } }
.ghost.twitch svg { animation: ghost-twitch .5s steps(2) 3; }
@keyframes ghost-twitch { 0% { transform: rotate(0); } 25% { transform: rotate(-11deg) translateX(-3px); } 50% { transform: rotate(9deg) translateX(2px); } 75% { transform: rotate(-4deg); } }
.ghost.lunge svg { animation: ghost-lunge .55s cubic-bezier(.5, 0, .3, 1.4) 1 forwards; }
@keyframes ghost-lunge { 40% { transform: scale(1.45) translateY(6px); } 100% { transform: scale(1.12); } }
.ghost.stare .look { transition-duration: 1.6s; }
.ghost-fly { position: fixed; z-index: 10000; pointer-events: none; filter: drop-shadow(0 0 10px rgba(0, 0, 0, .8)); }
.ghost-fly svg { width: 100%; height: 100%; display: block; overflow: visible; }
.scare-shade { position: fixed; inset: 0; z-index: 9999; pointer-events: none; background: radial-gradient(circle, rgba(60, 0, 0, .35), rgba(0, 0, 0, .92) 75%); }
.lightning { position: fixed; inset: 0; z-index: 9998; pointer-events: none; background: linear-gradient(180deg, #e8ecff, rgba(200, 210, 255, .25)); mix-blend-mode: screen; }
.cobweb { position: absolute; top: 0; right: 0; width: 42%; max-width: 120px; aspect-ratio: 1; z-index: 2; pointer-events: none; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .5)); }
.cobweb svg { width: 100%; height: 100%; display: block; }
.cobweb circle, .cobweb path[stroke="#111"] { animation: spider-drop 6s ease-in-out infinite; }
@keyframes spider-drop { 0%, 70%, 100% { transform: translateY(0); } 80% { transform: translateY(14px); } 90% { transform: translateY(10px); } }
.spooky { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.spooky .moon { position: absolute; top: 90px; right: 6vw; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle at 38% 36%, #fff9e3, #e9dcae 55%, #b9a77a); box-shadow: 0 0 60px 20px rgba(255, 236, 170, .18), 0 0 160px 60px rgba(160, 120, 255, .10); opacity: .85; }
.spooky .moon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 60%, rgba(150, 130, 90, .35) 0 9%, transparent 10%), radial-gradient(circle at 62% 30%, rgba(150, 130, 90, .3) 0 7%, transparent 8%), radial-gradient(circle at 66% 70%, rgba(150, 130, 90, .25) 0 5%, transparent 6%); }
.spooky .fog { position: absolute; bottom: -10vh; left: -30vw; width: 160vw; height: 40vh; background: radial-gradient(ellipse at 30% 60%, rgba(190, 180, 220, .16), transparent 60%), radial-gradient(ellipse at 70% 50%, rgba(170, 160, 210, .13), transparent 55%); filter: blur(8px); animation: fog-drift 38s linear infinite alternate; }
.spooky .fog.f2 { bottom: -16vh; animation-duration: 54s; animation-direction: alternate-reverse; opacity: .8; }
@keyframes fog-drift { to { transform: translateX(28vw); } }
.spooky .vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(0, 0, 0, .55)); }
.season-fx.fly span { top: auto; left: -8vw; animation-name: bat-fly; color: #0a0710; filter: drop-shadow(0 0 3px rgba(255, 140, 40, .45)); }
@keyframes bat-fly { 0% { transform: translate3d(0, 0, 0) scaleY(1); } 10% { transform: translate3d(12vw, -4vh, 0) scaleY(.55); } 20% { transform: translate3d(24vw, 2vh, 0) scaleY(1); } 30% { transform: translate3d(36vw, -6vh, 0) scaleY(.55); } 40% { transform: translate3d(48vw, 0, 0) scaleY(1); } 50% { transform: translate3d(60vw, -5vh, 0) scaleY(.55); } 60% { transform: translate3d(72vw, 3vh, 0) scaleY(1); } 70% { transform: translate3d(84vw, -3vh, 0) scaleY(.55); } 80% { transform: translate3d(96vw, 1vh, 0) scaleY(1); } 100% { transform: translate3d(118vw, -4vh, 0) scaleY(.6); } }
:root[data-season="halloween"] h1, :root[data-season="halloween"] .section-head h2, :root[data-season="halloween"] .page-head h1 { font-family: "Creepster", var(--head); font-weight: 400; letter-spacing: .03em; }
:root[data-season="halloween"] .section-head h2 small, :root[data-season="halloween"] h1 .script { font-family: var(--script); letter-spacing: 0; }
:root[data-season="halloween"] h1 { text-shadow: 0 0 18px rgba(255, 110, 20, .35); }
:root[data-season="halloween"] .card { border-color: #3a2846; box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .9); }
:root[data-season="halloween"] .card:hover { box-shadow: 0 0 0 1px rgba(255, 122, 26, .5), 0 18px 40px -16px rgba(255, 90, 20, .45); }
:root[data-season="halloween"] .card:hover .card-img img { filter: saturate(.7) contrast(1.1) brightness(.92); }
:root[data-season="halloween"] .site-header { background: rgba(15, 11, 20, .82); }
:root[data-season="halloween"] .bg-deco { opacity: .5; }
@media (prefers-reduced-motion: reduce) { .ghost, .season-fx, .spooky .fog { display: none; } .cobweb circle, .cobweb path { animation: none; } }
@media (max-width: 760px) {
  .ghost { width: 60px; height: 72px; } .gv-hand { width: 54px; height: 82px; }
  .g-right { right: -66px; } .g-right.peek { transform: translateX(-46px) rotate(-14deg); }
  .g-left { left: -66px; } .g-left.peek { transform: translateX(46px) rotate(14deg); }
  .g-top { top: -76px; } .g-top.peek { transform: translateY(52px) rotate(180deg); }
  .g-bottom { bottom: -84px; } .g-bottom.peek { transform: translateY(-56px) rotate(3deg); }
  .spooky .moon { width: 90px; height: 90px; top: 80px; }
}

/* personalised items: the form in the product window and the details in the cart */
.pz-form { display: grid; gap: 10px; margin: 12px 0; padding: 14px; border-radius: 16px; background: var(--pink-soft); }
.pz-form .pz-title { font-family: Fredoka, sans-serif; font-size: 1.05rem; }
.pz-form .field small { font-weight: 400; color: var(--muted); }
.pz-sum { font-size: .82rem; color: var(--muted); margin-top: 3px; display: grid; gap: 1px; }
.pz-sum span { font-weight: 700; color: var(--ink); }
.pz-ph { display: flex; gap: 4px; margin-top: 3px; }
.pz-ph img { width: 34px !important; height: 34px !important; border-radius: 8px; object-fit: cover; }
