/* Butter & Lantern — demo festive pre-order shop (Cartsmith Studio, v2 2026-11-13). Fictional home bakery, Pexels placeholder photos.
   The RM399 product: one shop, re-dressed for each festival. [data-fest] on <body> sets colours, pattern, ornaments and language. */
:root, body[data-fest="cny"] {
  --bg: #fff8f0; --soft: #fbeadb; --card: #fff; --ink: #2b120e; --muted: #7b5b4f; --line: #f0dccb;
  --brand: #8f1418; --brand-2: #c62828; --gold: #e3b04b; --on: #fff4e2;
  --tint: 110, 10, 14;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23e3b04b' stroke-opacity='.22' stroke-width='1.3'%3E%3Cpath d='M8 32c0-9 7-16 16-16s16 7 16 16M24 32c0-9 7-16 16-16s16 7 16 16'/%3E%3Cpath d='M-8 48c0-9 7-16 16-16s16 7 16 16M24 48c0-9 7-16 16-16s16 7 16 16M40 48c0-9 7-16 16-16s16 7 16 16'/%3E%3C/g%3E%3C/svg%3E");
}
body[data-fest="raya"] {
  --bg: #f7f6ee; --soft: #e6efe4; --ink: #10241d; --muted: #536a5f; --line: #d9e4d5;
  --brand: #0b5240; --brand-2: #138060; --gold: #d9b45a; --on: #f5f1df;
  --tint: 6, 52, 40;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23d9b45a' stroke-opacity='.26' stroke-width='1.3'%3E%3Cpath d='M24 6l18 18-18 18L6 24z'/%3E%3Cpath d='M24 15l9 9-9 9-9-9z'/%3E%3C/g%3E%3C/svg%3E");
}
body[data-fest="xmas"] {
  --bg: #fbf6ef; --soft: #f1e7dc; --ink: #1a201c; --muted: #59625b; --line: #e6dccf;
  --brand: #173f2e; --brand-2: #b3263a; --gold: #d8ac4f; --on: #f6f0e4;
  --tint: 13, 38, 27;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='%23f6f0e4' fill-opacity='.18'%3E%3Ccircle cx='10' cy='12' r='2'/%3E%3Ccircle cx='40' cy='8' r='1.5'/%3E%3Ccircle cx='28' cy='34' r='2.5'/%3E%3Ccircle cx='52' cy='40' r='2'/%3E%3Ccircle cx='14' cy='50' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
}
body[data-fest="val"] {
  --bg: #fff6f7; --soft: #fde6ec; --ink: #2d0f1a; --muted: #7d5763; --line: #f6d5de;
  --brand: #8c1037; --brand-2: #d6336c; --gold: #f2bfcb; --on: #fff1f4;
  --tint: 104, 8, 40;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M28 40s-10-6.4-10-13a5.6 5.6 0 0 1 10-3.4A5.6 5.6 0 0 1 38 27c0 6.6-10 13-10 13z' fill='%23f2bfcb' fill-opacity='.18'/%3E%3C/svg%3E");
}
:root { --serif: "Playfair Display", "Noto Serif SC", Georgia, serif; --zh: "Noto Serif SC", "Songti SC", serif; --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; --r: 18px; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body[data-lang="zh"] { font-size: 16.5px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.12; margin: 0 0 .4em; letter-spacing: -.01em; }
body[data-lang="zh"] h1, body[data-lang="zh"] h2, body[data-lang="zh"] h3 { font-family: var(--zh); letter-spacing: .02em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
.en { display: block; font: 600 .78em/1.35 var(--sans); letter-spacing: .01em; opacity: .72; margin-top: .25em; }
h1 .en { font: 600 italic clamp(1.05rem, 1.9vw, 1.35rem)/1.3 "Playfair Display", serif; opacity: .9; margin-top: .45em; letter-spacing: 0; color: var(--gold); }
h2 .en, h3 .en { font-family: var(--sans); font-weight: 700; letter-spacing: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.wrap { width: min(1180px, 100% - 2 * clamp(16px, 4vw, 48px)); margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font: 800 .74rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-2); margin: 0 0 12px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 1.4em; border-radius: 999px; border: 2px solid var(--brand); background: var(--brand); color: var(--on); font-weight: 800; text-decoration: none; transition: transform .15s, background .2s, opacity .2s; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--brand); }
.btn--light { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn--block { width: 100%; }
.btn--sm { min-height: 38px; padding: 0 1em; font-size: .9rem; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--brand-2); font-weight: 700; text-decoration: underline; cursor: pointer; }

/* demo bar + festival switcher */
.demobar { background: #111; color: #e9e3da; font-size: .82rem; padding: 7px 0; text-align: center; }
.demobar p { display: inline; margin: 0; }
.demobar a { color: #f0c46a; font-weight: 800; margin-left: 10px; text-decoration: none; white-space: nowrap; }
.dm-short { display: none; }
.festbar { background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 10px; padding: 7px 12px; flex-wrap: wrap; font-size: .82rem; color: #555; }
.festbar__btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.festbar button { border: 1px solid #ddd; background: #fff; border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: .82rem; display: inline-flex; align-items: center; gap: 6px; color: #333; }
.festbar button i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.festbar button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on); }

/* header */
.hdr { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; align-items: center; gap: 14px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.3rem/1 "Playfair Display", serif; color: var(--brand); white-space: nowrap; }
.brand svg { width: 30px; height: 30px; color: var(--gold); flex: none; }
.brand i { color: var(--gold); font-style: italic; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 700; font-size: .94rem; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.nav a:hover, .nav a.is-on { background: var(--soft); }
.cartbtn { position: relative; display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--brand); color: var(--on); border-radius: 999px; min-height: 42px; padding: 0 16px; font-weight: 800; }
.cartbtn svg { width: 20px; height: 20px; }
.cartbtn b { background: var(--gold); color: var(--ink); border-radius: 999px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: .78rem; padding: 0 6px; }

/* hero: the festive photo full-bleed, words on a tinted fade, ornaments hanging from the top */
.hero { position: relative; overflow: hidden; color: #fff; background: rgb(var(--tint)); isolation: isolate; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; z-index: -3; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(var(--tint), .97) 0%, rgba(var(--tint), .93) 36%, rgba(var(--tint), .55) 60%, rgba(var(--tint), .05) 86%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--pattern); opacity: .9; -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 40%, transparent 70%); mask-image: linear-gradient(90deg, #000 0%, #000 40%, transparent 70%); }
.hero__in { position: relative; min-height: clamp(520px, 70vh, 650px); display: flex; flex-direction: column; justify-content: center; padding: 44px 0 30px; }
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.hero__meta { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin: 4px 0 20px; }
.hero__meta .early, .hero__meta .count { margin: 0; }
.hero__copy { max-width: 600px; }
.hero .kicker { color: var(--gold); }
.hero h1 { color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero__lead { font-size: 1.08rem; color: rgba(255,255,255,.9); max-width: 34em; }
.hero__lead .en { color: rgba(255,255,255,.75); }
.early { display: inline-flex; align-items: center; gap: 8px; background: var(--gold); color: var(--ink); font-weight: 800; font-size: .88rem; padding: 6px 14px; border-radius: 999px; margin: 0 0 18px; }
.count { display: flex; gap: 10px; margin: 6px 0 22px; }
.count div { min-width: 74px; text-align: center; border: 1px solid rgba(255,255,255,.3); border-radius: 14px; padding: 8px 6px; background: rgba(255,255,255,.08); backdrop-filter: blur(4px); }
.count b { display: block; font: 700 1.7rem/1 "Playfair Display", serif; }
.count small { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; opacity: .85; margin-top: 4px; }
.hero__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.season { margin-top: 26px; }
.season > p { font: 800 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; }
.season ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; flex-wrap: wrap; }
.season li a { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 84px; text-decoration: none; text-align: center; font-size: .8rem; font-weight: 700; line-height: 1.25; color: #fff; }
.season img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); box-shadow: 0 8px 20px rgba(0,0,0,.3); transition: transform .2s; }
.season li a:hover img { transform: scale(1.06); }
.hero__badge { position: absolute; right: clamp(16px, 6vw, 90px); bottom: 40px; width: 120px; height: 120px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; text-align: center; transform: rotate(-8deg); box-shadow: 0 16px 34px rgba(0,0,0,.3); font-weight: 800; line-height: 1.15; font-size: .78rem; }
.hero__badge b { display: block; font: 700 1.5rem/1 "Playfair Display", serif; margin: 2px 0; }
.hero__badge i { display: block; font-style: normal; }
/* hanging ornaments */
.orn { position: absolute; top: 0; z-index: 1; pointer-events: none; transform-origin: top center; animation: sway 6s ease-in-out infinite alternate; }
.orn svg { display: block; }
.orn--1 { right: 7%; } .orn--2 { right: 22%; animation-delay: -2s; } .orn--3 { right: 37%; animation-delay: -4s; }
@keyframes sway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }

/* sections */
.sec { padding: clamp(56px, 8vw, 96px) 0; }
.sec--soft { background: var(--soft); position: relative; }
.sec__head { text-align: center; max-width: 720px; margin: 0 auto 32px; }
.sec__head p { color: var(--muted); }
.cats { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.cats button { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 16px; font-weight: 700; }
.cats button[aria-pressed="true"] { background: var(--brand); color: var(--on); border-color: var(--brand); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(0,0,0,.08); }
.card__img { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--soft); border: 0; padding: 0; width: 100%; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__img img { transform: scale(1.04); }
.badge { position: absolute; left: 12px; top: 12px; background: var(--brand-2); color: #fff; font-size: .74rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.badge--gold { background: var(--gold); color: var(--ink); }
.card.is-out .card__img img { filter: grayscale(.7); opacity: .7; }
.card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin: 0 0 4px; font-size: 1.15rem; }
.card__unit { font-size: .86rem; color: var(--muted); margin: 0 0 10px; }
.stock { font-size: .78rem; font-weight: 700; color: var(--brand-2); display: flex; justify-content: space-between; }
.bar { height: 6px; border-radius: 99px; background: var(--soft); overflow: hidden; margin: 6px 0 14px; }
.bar i { display: block; height: 100%; background: var(--brand-2); border-radius: inherit; }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-weight: 800; font-size: 1.12rem; color: var(--brand); }
.price s { font-weight: 600; font-size: .82rem; color: var(--muted); margin-left: 4px; }
.cap { text-align: center; margin: 22px 0 0; font-size: .86rem; color: var(--muted); }

/* how ordering works */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; position: relative; }
.step__ico { width: 46px; height: 46px; border-radius: 14px; background: var(--brand); color: var(--gold); display: grid; place-items: center; margin-bottom: 14px; }
.step__ico svg { width: 24px; height: 24px; }
.step h3 { font-size: 1.08rem; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }
.pays { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 26px; }
.pays span { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; font-weight: 800; font-size: .82rem; color: var(--ink); }

/* delivery + gift */
.opts3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.opt { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.opt h3 { font-size: 1.1rem; }
.opt p { color: var(--muted); font-size: .92rem; margin: 0 0 8px; }
.opt b { color: var(--brand); }
.giftband { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.giftband img { border-radius: 22px; box-shadow: 0 24px 50px rgba(0,0,0,.14); aspect-ratio: 16 / 11; object-fit: cover; width: 100%; }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks svg { width: 20px; height: 20px; flex: none; color: var(--brand-2); margin-top: 3px; }
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.faq summary { font-weight: 800; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* footer */
.ftr { background: var(--brand); color: var(--on); padding: 48px 0 32px; position: relative; }
.ftr::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); opacity: .6; pointer-events: none; }
.ftr__in { position: relative; display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 28px; }
.ftr .brand { color: #fff; }
.ftr p { margin: 8px 0 0; font-size: .9rem; opacity: .9; }
.ftr h4 { margin: 0 0 8px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.ftr__cs { background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.18); border-radius: 16px; padding: 16px; font-size: .88rem; }
.ftr__cs a { color: var(--gold); font-weight: 800; }

/* sheet (product), drawer (cart), modal (payment) */
.scrim { position: fixed; inset: 0; background: rgba(20,10,8,.55); z-index: 60; opacity: 0; transition: opacity .2s; }
.scrim.is-on { opacity: 1; }
.sheet { position: fixed; z-index: 61; left: 50%; top: 50%; transform: translate(-50%, -46%); opacity: 0; width: min(860px, 100% - 32px); max-height: min(88vh, 760px); overflow: auto; background: var(--card); border-radius: 24px; transition: transform .25s, opacity .25s; display: grid; grid-template-columns: 1fr 1fr; }
.sheet.is-on { transform: translate(-50%, -50%); opacity: 1; }
.sheet__img { background: var(--soft); }
.sheet__img img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.sheet__body { padding: 26px; display: flex; flex-direction: column; }
.sheet__close { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); font-size: 1.4rem; line-height: 1; z-index: 2; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.chip { border: 1.5px solid var(--line); background: var(--card); border-radius: 12px; padding: 9px 14px; font-weight: 700; text-align: left; line-height: 1.25; }
.chip small { display: block; font-weight: 600; color: var(--muted); font-size: .78rem; }
.chip[aria-pressed="true"] { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, #fff); box-shadow: 0 0 0 1px var(--brand) inset; }
.chip:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.facts { font-size: .86rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 4px; }
.facts b { color: var(--ink); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 38px; height: 38px; border: 0; background: transparent; font-size: 1.2rem; font-weight: 700; }
.qty output { min-width: 28px; text-align: center; font-weight: 800; }
.sheet__foot { margin-top: auto; padding-top: 16px; display: flex; gap: 12px; align-items: center; }
.drawer { position: fixed; z-index: 61; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--bg); transform: translateX(100%); transition: transform .28s; display: flex; flex-direction: column; box-shadow: -20px 0 50px rgba(0,0,0,.2); }
.drawer.is-on { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.4rem; margin: 0; }
.drawer__x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--soft); font-size: 1.3rem; }
.drawer__body { flex: 1; overflow: auto; padding: 14px 20px; }
.drawer__foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); background: var(--card); }
.line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.line h4 { margin: 0; font-size: .96rem; line-height: 1.3; }
.line small { display: block; color: var(--muted); font-size: .8rem; }
.line .qty button { width: 30px; height: 30px; font-size: 1rem; }
.free { font-size: .84rem; margin: 0 0 12px; }
.free .bar { margin: 6px 0 0; }
.sum { display: grid; gap: 6px; font-size: .94rem; }
.sum div { display: flex; justify-content: space-between; gap: 10px; }
.sum .tot { font-weight: 800; font-size: 1.12rem; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.sum .disc { color: #1d7a45; font-weight: 700; }
.empty { text-align: center; padding: 40px 10px; color: var(--muted); }
.toast { visibility: hidden; position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: #151515; color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 90; font-weight: 700; transition: transform .25s; max-width: calc(100% - 32px); }
.toast.is-on { visibility: visible; transform: translate(-50%, 0); }

/* checkout */
.co { padding: 34px 0 70px; }
.co__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.co h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 18px; }
.prog { display: flex; gap: 8px; margin: 0 0 22px; list-style: none; padding: 0; flex-wrap: wrap; }
.prog li { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; color: var(--muted); }
.prog li b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--muted); font-size: .8rem; }
.prog li.is-on b, .prog li.is-done b { background: var(--brand); color: var(--on); }
.prog li.is-on { color: var(--ink); }
.prog li + li::before { content: ""; width: 26px; height: 2px; background: var(--line); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 18px; }
.panel h2 { font-size: 1.3rem; margin-bottom: 14px; }
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mode { border: 1.5px solid var(--line); background: var(--card); border-radius: 14px; padding: 14px; text-align: left; }
.mode b { display: block; }
.mode small { color: var(--muted); display: block; line-height: 1.35; margin-top: 4px; }
.mode[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; background: color-mix(in srgb, var(--brand) 6%, #fff); }
.days { display: flex; gap: 8px; flex-wrap: wrap; }
.day { width: 74px; padding: 9px 4px; border: 1.5px solid var(--line); background: var(--card); border-radius: 14px; text-align: center; line-height: 1.15; }
.day small { display: block; font-size: .72rem; font-weight: 800; color: var(--muted); text-transform: uppercase; }
.day b { display: block; font: 700 1.35rem/1.1 "Playfair Display", serif; }
.day[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on); }
.day[aria-pressed="true"] small { color: var(--on); opacity: .85; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.slot { border: 1.5px solid var(--line); background: var(--card); border-radius: 12px; padding: 10px 12px; text-align: left; font-weight: 800; }
.slot small { display: block; font-weight: 700; font-size: .76rem; color: #1d7a45; }
.slot small.low { color: var(--brand-2); }
.slot[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; background: color-mix(in srgb, var(--brand) 6%, #fff); }
.slot:disabled { opacity: .5; cursor: not-allowed; }
.slot:disabled small { color: var(--muted); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span, .field > label { font-weight: 800; font-size: .92rem; }
.field > span small, .field > label small { font-weight: 600; color: var(--muted); }
.input { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
textarea.input { min-height: 84px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; margin: 6px 0 12px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); }
.note { border-radius: 12px; padding: 10px 14px; font-size: .88rem; background: var(--soft); margin: 8px 0 0; }
.note--ok { background: #e7f6ec; color: #1b5e37; }
.note--bad { background: #fde8e6; color: #9b1c12; }
.pm { display: grid; gap: 10px; }
.pmo { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; background: var(--card); text-align: left; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; }
.pmo .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); margin-top: 2px; }
.pmo[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.pmo[aria-pressed="true"] .dot { border: 6px solid var(--brand); }
.pmo b { display: block; }
.pmo small { color: var(--muted); display: block; }
.logos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.logos span { border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; font-size: .74rem; font-weight: 800; background: #fff; }
.banks { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-top: 12px; }
.banks button { border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 9px; font-weight: 700; font-size: .84rem; }
.banks button[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.qr { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; align-items: center; margin-top: 12px; background: var(--soft); border-radius: 14px; padding: 14px; }
.qr svg { width: 160px; height: 160px; background: #fff; border-radius: 10px; padding: 8px; }
.summ { position: sticky; top: 86px; }
.summ .line { grid-template-columns: 52px minmax(0, 1fr) auto; }
.summ .line img { width: 52px; height: 52px; }
.co__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; }
.secure { display: flex; gap: 8px; align-items: center; font-size: .82rem; color: var(--muted); margin-top: 12px; }
.secure svg { width: 16px; height: 16px; flex: none; }
/* payment page (demo gateway) */
.pay { position: fixed; z-index: 62; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(420px, 100% - 28px); background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.pay__head { background: #0f2747; color: #fff; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; font-weight: 800; }
.pay__head small { font-weight: 600; opacity: .8; }
.pay__body { padding: 20px; }
.pay__amt { font: 800 2rem/1 var(--sans); margin: 4px 0 14px; color: #0f2747; }
.pay__body dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .9rem; margin: 0 0 16px; }
.pay__body dt { color: #667; }
.pay__body dd { margin: 0; font-weight: 700; text-align: right; }
.pay__btn { width: 100%; min-height: 48px; border-radius: 12px; border: 0; background: #0f6fde; color: #fff; font-weight: 800; }
.pay__cancel { width: 100%; background: none; border: 0; color: #667; font-weight: 700; margin-top: 10px; padding: 8px; }
.pay__note { font-size: .78rem; color: #667; text-align: center; margin: 12px 0 0; }

/* order confirmation + tracking */
.ok { text-align: center; padding: 26px 0 8px; }
.ok__ico { width: 72px; height: 72px; border-radius: 50%; background: #e7f6ec; color: #1d7a45; display: inline-grid; place-items: center; margin-bottom: 12px; }
.ok__ico svg { width: 38px; height: 38px; }
.ok__ico--wait { background: #fff4dd; color: #a86a00; }
.ord { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 26px; align-items: start; }
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { position: relative; padding: 0 0 18px 38px; }
.tl li::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 0; width: 2px; background: var(--line); }
.tl li:last-child::before { display: none; }
.tl li b { display: block; }
.tl li small { color: var(--muted); }
.tl i { position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); }
.tl li.is-done i { background: var(--brand); border-color: var(--brand); }
.tl li.is-now i { border-color: var(--brand); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 18%, transparent); }
.tl li.is-done::before { background: var(--brand); }
.mail { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.mail__head { background: #f4f4f6; padding: 12px 16px; font-size: .82rem; color: #555; border-bottom: 1px solid #e5e5ea; }
.mail__head b { color: #111; }
.mail__body { padding: 18px; font-size: .92rem; }
.mail__brand { background: var(--brand); color: var(--on); padding: 14px 18px; font: 700 1.1rem/1 "Playfair Display", serif; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .92rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; }

/* owner dashboard */
.own { padding: 28px 0 70px; }
.own__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.own__head h1 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.kpi small { color: var(--muted); font-weight: 700; display: block; font-size: .8rem; }
.kpi b { font: 800 1.6rem/1.2 var(--sans); color: var(--brand); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 800; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.olist { display: grid; gap: 10px; }
.orow { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; grid-template-columns: 136px minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.orow b { display: block; }
.orow small { color: var(--muted); display: block; line-height: 1.35; }
.st { display: inline-block; font-size: .74rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--soft); white-space: nowrap; }
.st--verify { background: #fff1d6; color: #8a5600; }
.st--paid { background: #e3efff; color: #134a8e; }
.st--baking { background: #f6e6ff; color: #6a2a8a; }
.st--ready { background: #e7f6ec; color: #1b5e37; }
.st--done { background: #ececec; color: #555; }
.orow__act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.prod { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 14px; overflow: hidden; }
.prod th, .prod td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.prod th { background: var(--soft); font-size: .84rem; }
.prod td:last-child, .prod th:last-child { text-align: right; }
.stk { display: grid; gap: 10px; }
.stk__row { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; }
.stk__row img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .86rem; cursor: pointer; }
.switch input { width: 40px; height: 22px; accent-color: var(--brand); }
.setgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.paused { background: #222; color: #fff; text-align: center; padding: 12px 16px; font-weight: 700; }

@media (max-width: 1040px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .co__grid, .ord { grid-template-columns: minmax(0, 1fr); }
  .summ { position: static; }
  .orow { grid-template-columns: 100px minmax(0, 1fr) auto; }
  .orow > :nth-child(3) { display: none; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .cartbtn { margin-left: auto; }
  .hero__in { min-height: 0; padding: 0 0 30px; }
  .hero__bg { position: relative; height: 300px; object-position: 50% 50%; }
  .hero::before { background: linear-gradient(180deg, rgba(var(--tint), 0) 0, rgba(var(--tint), 0) 170px, rgba(var(--tint), .97) 296px, rgb(var(--tint)) 100%); }
  .hero::after { -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent 280px, #000 340px); mask-image: linear-gradient(180deg, transparent 0, transparent 280px, #000 340px); }
  .hero__copy { margin-top: 0; padding-top: 6px; }
  .hero__in { position: static; }
  .hero__badge { top: 186px; bottom: auto; right: 16px; width: 104px; height: 104px; font-size: .72rem; }
  .season ul { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-right: -16px; scrollbar-width: none; }
  .season li { flex: none; }
  .hero__badge b { font-size: 1.2rem; }
  .orn { display: none; }
  .opts3 { grid-template-columns: minmax(0, 1fr); }
  .giftband { grid-template-columns: minmax(0, 1fr); }
  .sheet { grid-template-columns: minmax(0, 1fr); top: auto; bottom: 0; left: 0; right: 0; width: 100%; transform: translateY(100%); max-height: 92vh; border-radius: 24px 24px 0 0; }
  .sheet.is-on { transform: none; }
  .sheet__img img { min-height: 0; aspect-ratio: 16 / 10; }
  .modes { grid-template-columns: minmax(0, 1fr); }
  .ftr__in { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .setgrid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .dm-long { display: none; }
  .dm-short { display: inline; }
  .festbar > span { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card__body { padding: 12px 12px 14px; }
  .card__body h3 { font-size: 1rem; }
  .card__foot { flex-direction: column; align-items: stretch; }
  .card__foot .btn { width: 100%; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .count div { min-width: 64px; }
  .season li a { width: 70px; }
  .season img { width: 60px; height: 60px; }
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .qr { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .orow { grid-template-columns: minmax(0, 1fr) auto; }
  .orow > :first-child { grid-column: 1 / -1; }
  .stk__row { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .stk__row img { width: 44px; height: 44px; }
  .stk__row > :last-child { grid-column: 2 / -1; }
  .brand { font-size: 1.12rem; }
  .cartbtn span { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* 2026-11-16: owner order rows on phones: details on top, status and button underneath (they squeezed the name and items);
   festival switcher in one scrollable row */
@media (max-width: 600px) {
  .orow { grid-template-columns: minmax(0, 1fr) !important; gap: 8px; }
  .orow__act { justify-content: flex-start; align-items: center; }
  .festbar { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .festbar::-webkit-scrollbar { display: none; }
  .festbar > span { flex: none; }
  .festbar__btns { flex-wrap: nowrap; }
  .festbar button { flex: none; white-space: nowrap; }
}
