/* Storefront styles. */
:root {
  --cream: #FFF7F2; --surface: #FFFCF9; --cocoa: #573B36; --cocoa-dark: #3E2925; --muted: #765E58;
  --blush: #F7C9D4; --blush-soft: #FBE3E9; --butter: #FFE3A1; --lilac: #D9C9F2; --sage: #BFCDAE;
  --border: #DDCAC4; --line: #EADDD8; --img: #FBEFE9; --danger: #9C293E; --success: #326046; --info: #3B5A8A;
  --display: 'Fraunces', Georgia, serif; --body: 'DM Sans', Arial, sans-serif;
  --r-card: 20px; --r-panel: 32px; --r-input: 10px; --shadow: 0 8px 24px rgba(87, 59, 54, .07);
  --max: 1240px; --gutter: 20px;
  /* JoyFold: Punjabi warmth — phulkari marigold + deep rose */
  --marigold: #E9A23B; --marigold-soft: #FDEBC8; --rose: #A8325A; --rose-deep: #8E2A4C; --warm: #FBEFE6;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--cocoa); font: 16px/1.6 var(--body); }
img { max-width: 100%; display: block; }
a { color: var(--cocoa); text-underline-offset: 3px; }
a:hover { color: var(--cocoa-dark); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(38px, 6vw, 64px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 22px; line-height: 1.25; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--cocoa); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--cocoa); color: var(--surface); padding: 10px 16px; border-radius: 10px; z-index: 50; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.kicker { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.price { font-weight: 700; font-variant-numeric: tabular-nums; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.section { padding-top: 48px; padding-bottom: 48px; }
@media (min-width: 1024px) { .section { padding-top: 80px; padding-bottom: 80px; } }
[hidden] { display: none !important; }

/* dev banner */
.devbar { background: var(--butter); font-size: 13px; text-align: center; padding: 6px 12px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 247, 242, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.logo { font-family: var(--display); font-size: 28px; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo svg { width: 26px; height: 26px; }
.nav { display: flex; gap: 22px; margin-left: 12px; }
.nav a { text-decoration: none; font-weight: 500; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.icon-btn { min-width: 44px; height: 44px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; padding: 0 12px; font-weight: 500; }
.icon-btn:hover { background: var(--blush-soft); }
.icon-btn svg { width: 22px; height: 22px; }
.badge { background: var(--cocoa); color: var(--surface); border-radius: 999px; font-size: 12px; min-width: 20px; height: 20px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
@media (max-width: 760px) { .nav { display: none; } .nav-mobile { display: flex !important; } .icon-btn .label { display: none; } }
.nav-mobile { display: none; gap: 18px; overflow-x: auto; padding: 0 var(--gutter) 10px; }
.nav-mobile a { text-decoration: none; font-weight: 500; white-space: nowrap; }

/* buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1.5px solid var(--cocoa); background: var(--cocoa); color: var(--surface); font: 700 16px var(--body); text-decoration: none; cursor: pointer; transition: transform .18s, background .18s; }
.btn:hover { background: var(--cocoa-dark); color: var(--surface); transform: translateY(-1px); }
.btn.secondary { background: transparent; color: var(--cocoa); }
.btn.secondary:hover { background: var(--blush-soft); }
.btn.danger { background: var(--danger); border-color: var(--danger); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn.block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--cocoa); text-decoration: underline; cursor: pointer; min-height: 32px; }
label { font-weight: 500; font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field .hint { font-size: 13px; color: var(--muted); }
.field .error { font-size: 13px; color: var(--danger); }
input[type=text], input[type=tel], input[type=email], input[type=number], input[type=search], select, textarea {
  width: 100%; min-height: 48px; border: 1.5px solid #B9A29C; border-radius: var(--r-input); background: var(--surface); color: var(--cocoa); font: 16px var(--body); padding: 10px 14px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--cocoa); outline-offset: 1px; border-color: var(--cocoa); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--cocoa); }
.alert { border-radius: 14px; padding: 14px 16px; font-size: 15px; }
.alert.error { background: #F9E1E5; color: var(--danger); }
.alert.ok { background: #E3EDDC; color: var(--success); }
.alert.info { background: var(--blush-soft); }
.alert.warn { background: #FFF0CC; }

/* cards & grids */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 24px; }
@media (min-width: 768px) { .panel { padding: 32px; } }
.products { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 420px) { .products { gap: 14px; } }
.pcard { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.pcard .img { position: relative; aspect-ratio: 5 / 4; background: var(--img); border-radius: var(--r-card); overflow: hidden; }
.pcard .img img { width: 100%; height: 100%; object-fit: contain; transition: transform .22s; }
.pcard:hover .img img { transform: scale(1.03); }
.pcard .name { font-family: var(--display); font-size: 19px; line-height: 1.2; }
.pcard > .row.between { margin-top: auto; flex-wrap: wrap; row-gap: 4px; }
.pcard > .muted.small { margin-top: -4px; }
@media (max-width: 600px) { .pcard { gap: 8px; } .pcard .name { font-size: 16.5px; } .pcard .dots i { width: 11px; height: 11px; } .pcard .dots { gap: 3px; } }
.concept { position: absolute; left: 10px; top: 10px; background: rgba(255, 252, 249, .92); color: var(--muted); font-size: 11px; font-weight: 500; padding: 3px 9px; border-radius: 999px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface); display: inline-flex; align-items: center; text-decoration: none; font-weight: 500; font-size: 15px; cursor: pointer; }
.chip[aria-pressed="true"], .chip[aria-current="true"] { background: var(--cocoa); color: var(--surface); border-color: var(--cocoa); }

/* hero */
.hero { display: grid; gap: 32px; align-items: center; padding: 40px 0 56px; }
@media (min-width: 900px) { .hero { grid-template-columns: 48fr 52fr; padding: 64px 0 80px; } }
.hero .img { background: var(--img); border-radius: var(--r-panel); overflow: hidden; position: relative; aspect-ratio: 5 / 4; }
.hero .img img { width: 100%; height: 100%; object-fit: cover; }
.band { border-radius: var(--r-panel); padding: 32px; }
@media (min-width: 768px) { .band { padding: 48px; } }
.band.blush { background: var(--blush); } .band.butter { background: var(--butter); } .band.lilac { background: var(--lilac); } .band.sage { background: var(--sage); }
.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: s; }
.steps li { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { counter-increment: s; content: counter(s); width: 44px; height: 44px; border-radius: 999px; background: var(--cocoa); color: var(--surface); font: 22px var(--display); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.steps { padding: 0; margin: 0; }
.cats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.cats a { text-decoration: none; display: flex; flex-direction: column; gap: 8px; font-weight: 500; }
.cats img { border-radius: 16px; aspect-ratio: 500/420; object-fit: cover; }

/* product page */
.pdp { display: grid; gap: 32px; padding: 32px 0 64px; }
@media (min-width: 900px) { .pdp { grid-template-columns: 58fr 42fr; gap: 56px; } }
.pdp .gallery { position: relative; background: var(--img); border-radius: var(--r-panel); aspect-ratio: 5 / 4; overflow: hidden; }
.pdp .gallery img { width: 100%; height: 100%; object-fit: contain; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; border: 0; padding: 0; margin: 0; }
.swatches legend { font-weight: 500; font-size: 14px; margin-bottom: 8px; padding: 0; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.swatch span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 8px; border: 1.5px solid var(--border); border-radius: 999px; background: var(--surface); text-transform: capitalize; font-size: 15px; }
.swatch span i { width: 26px; height: 26px; border-radius: 999px; border: 1px solid rgba(0,0,0,.12); }
.swatch input:checked + span { border-color: var(--cocoa); box-shadow: inset 0 0 0 1.5px var(--cocoa); font-weight: 700; }
.swatch input:focus-visible + span { outline: 3px solid var(--cocoa); outline-offset: 3px; }
.swatch input:disabled + span { opacity: .45; text-decoration: line-through; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid #B9A29C; border-radius: 999px; background: var(--surface); }
.qty button { width: 44px; height: 44px; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--cocoa); border-radius: 999px; }
.qty output { min-width: 28px; text-align: center; font-weight: 700; }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; }

/* cart & checkout */
.two-col { display: grid; gap: 32px; padding: 32px 0 64px; align-items: start; }
@media (min-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr) 380px; } }
.line { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line img { width: 88px; height: 72px; object-fit: contain; background: var(--img); border-radius: 12px; }
.line .meta { display: flex; flex-direction: column; gap: 2px; }
.summary { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 14px; }
.summary .sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.summary .total { font-size: 20px; font-weight: 700; border-top: 1px solid var(--line); padding-top: 12px; }
.radio-card { display: flex; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 14px; background: var(--surface); cursor: pointer; font-weight: 400; }
.radio-card:has(input:checked) { border-color: var(--cocoa); box-shadow: inset 0 0 0 1px var(--cocoa); }
.radio-card input { width: 20px; height: 20px; accent-color: var(--cocoa); margin-top: 2px; }
.empty { text-align: center; padding: 64px 0; display: flex; flex-direction: column; gap: 16px; align-items: center; }

/* login */
.auth { max-width: 440px; margin: 48px auto 80px; }
.otp-input { font-size: 28px !important; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; }

/* orders */
.order-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; text-decoration: none; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--blush-soft); width: fit-content; }
.status.paid, .status.making { background: var(--butter); }
.status.shipped, .status.out_for_delivery { background: var(--lilac); }
.status.delivered { background: #DCE8D2; color: var(--success); }
.status.cancelled, .status.refunded, .status.pending_payment { background: #EEE4E1; }
.timeline { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }
.timeline li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding-bottom: 18px; position: relative; }
.timeline li::before { content: ''; width: 14px; height: 14px; border-radius: 999px; background: var(--border); margin-top: 5px; margin-left: 5px; }
.timeline li.done::before { background: var(--cocoa); }
.timeline li:not(:last-child)::after { content: ''; position: absolute; left: 11px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.code-box { font: 700 44px var(--body); letter-spacing: .3em; text-align: center; background: var(--butter); border-radius: 20px; padding: 18px; font-variant-numeric: tabular-nums; }

/* admin */
.admin-tabs { display: flex; gap: 8px; margin: 24px 0; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-weight: 700; background: #FBF3EF; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td input[type=number] { min-height: 40px; width: 96px; padding: 6px 10px; }
.thumb { width: 56px; height: 46px; object-fit: contain; background: var(--img); border-radius: 8px; }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat { padding: 16px; } .stat b { display: block; font-size: 24px; font-family: var(--display); font-weight: 400; }
dialog { border: 0; border-radius: 24px; padding: 0; max-width: min(720px, calc(100vw - 24px)); width: 100%; color: var(--cocoa); background: var(--surface); box-shadow: 0 24px 64px rgba(0,0,0,.2); }
dialog::backdrop { background: rgba(62, 41, 37, .45); }
dialog .dlg { padding: 24px; display: flex; flex-direction: column; gap: 16px; max-height: 85vh; overflow: auto; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--cocoa); color: var(--surface); padding: 12px 20px; border-radius: 999px; font-weight: 500; z-index: 60; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }

/* footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 48px; padding: 48px 0 32px; font-size: 15px; }
.site-footer .cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.site-footer ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; }
.prose { max-width: 760px; padding: 40px 0 64px; display: flex; flex-direction: column; gap: 14px; }
.prose h2 { font-size: 26px; margin-top: 16px; }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prose .todo { background: #FFF0CC; padding: 0 4px; border-radius: 4px; }
.spinner { width: 20px; height: 20px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 999px; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation-duration: 1.5s !important; } .btn:hover { transform: none; } }

/* bouquet designer */
.designer { display: grid; gap: 28px; padding: 28px 0 64px; align-items: start; }
@media (min-width: 960px) { .designer { grid-template-columns: 420px minmax(0, 1fr); gap: 48px; } .designer-preview { position: sticky; top: 88px; } }
.designer-preview { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.bq-svg { background: radial-gradient(circle at 50% 40%, #FFFCF9 0%, #FBEFE9 70%); border-radius: 24px; }
.bq-svg svg { width: 100%; height: auto; display: block; max-height: 420px; }
@media (max-width: 959px) { .designer-preview { position: sticky; top: 108px; z-index: 5; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 12px; box-shadow: var(--shadow); }
  .designer-preview .bq-svg { width: 84px; flex-shrink: 0; border-radius: 14px; } .designer-preview .bq-hint, #bq-summary, #bq-time, #bq-breakdown { display: none; }
  .designer-preview .bq-total { flex: 1; min-width: 0; border: 0; padding: 0; } .designer-preview .bq-total .sum-row { flex-direction: column; gap: 0; font-size: 18px; }
  .designer-preview #bq-add { width: auto; flex: 0 0 auto; padding: 0 18px; } #bq-msg { flex: 1 1 100%; } }
.bq-flower { cursor: pointer; }
.bq-flower:hover { opacity: .85; }
.step-h { font-size: 24px; display: flex; align-items: center; gap: 12px; }
.step-h > span:first-child { width: 34px; height: 34px; border-radius: 999px; background: var(--cocoa); color: var(--surface); font-size: 17px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chip[role=radio][aria-checked=true] { background: var(--cocoa); color: var(--surface); border-color: var(--cocoa); }
.slots { display: flex; gap: 8px; flex-wrap: wrap; }
.slot { width: 48px; height: 48px; border-radius: 999px; border: 2px solid var(--border); background: var(--surface); position: relative; cursor: pointer; padding: 0; }
.slot i { position: absolute; inset: 5px; border-radius: 999px; border: 1px solid rgba(0,0,0,.12); }
.slot span { position: relative; font-weight: 700; font-size: 13px; color: var(--cocoa); background: rgba(255,252,249,.85); border-radius: 999px; padding: 0 5px; }
.slot[aria-selected=true] { border-color: var(--cocoa); box-shadow: 0 0 0 2px var(--cocoa); }
.swatch-row { display: flex; gap: 8px; flex-wrap: wrap; }
.sw { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 6px; border: 1.5px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--cocoa); font: 500 15px var(--body); cursor: pointer; }
.sw i { width: 30px; height: 30px; border-radius: 999px; border: 1px solid rgba(0,0,0,.15); }
.sw[aria-checked=true] { border-color: var(--cocoa); box-shadow: inset 0 0 0 1.5px var(--cocoa); font-weight: 700; }
.mini-bq { width: 88px; height: 88px; background: var(--img); border-radius: 12px; overflow: hidden; }
.mini-bq svg { width: 100%; height: 100%; }
.whatsapp-fab { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 56px; height: 56px; border-radius: 999px; background: #1F7A4D; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.whatsapp-fab svg { width: 30px; height: 30px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { font-weight: 700; cursor: pointer; font-size: 17px; min-height: 32px; }
.faq details p { margin-top: 8px; color: var(--muted); }
.trust { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.trust div { display: flex; flex-direction: column; gap: 4px; }
.hero-badge { display: inline-flex; gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 500; width: fit-content; }

.hero-designer { display: flex; flex-direction: column; gap: 10px; padding: 16px; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.hero-designer:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.hero-designer .bq-svg svg { max-height: 380px; margin: 0 auto; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; }
@media (max-width: 600px) { .whatsapp-fab { width: 50px; height: 50px; right: 14px; bottom: 14px; } }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 14px; height: 14px; border-radius: 999px; border: 1px solid rgba(0,0,0,.15); }
.thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 2px; }
.thumb-btn { flex: 0 0 84px; height: 68px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--img); cursor: pointer; }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
.thumb-btn[aria-current=true] { border-color: var(--cocoa); }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 999px; border: 0; background: rgba(255,252,249,.9); color: var(--cocoa); font-size: 28px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.gal-nav.prev { left: 12px; } .gal-nav.next { right: 12px; }
.pdp .gallery img { object-fit: cover; }
.perks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.perks li::before { content: '✓'; font-weight: 700; margin-right: 8px; color: var(--success); }
.kind-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .kind-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kind { position: relative; display: block; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 5 / 4; text-decoration: none; background: var(--img); }
.kind img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.kind:hover img { transform: scale(1.04); }
.kind span { position: absolute; left: 10px; bottom: 10px; background: rgba(255,252,249,.94); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 15px; color: var(--cocoa); }
.kind small { font-weight: 400; color: var(--muted); }
.shop-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.bq-stage { position: relative; isolation: isolate; width: 100%; max-width: 380px; margin: 0 auto; aspect-ratio: 300 / 340; user-select: none; }
.bq-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.bq-front { pointer-events: none; z-index: 400; }
.bq-heads { position: absolute; inset: 0; z-index: 2; }
.bq-head { position: absolute; display: block; padding: 0; border: 0; background: none; cursor: default; filter: drop-shadow(0 2px 2px rgba(87,59,54,.22)); }
button.bq-head { cursor: pointer; }
.bq-head img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
button.bq-head:hover { filter: drop-shadow(0 2px 2px rgba(87,59,54,.22)) brightness(1.05); }
.bq-head.sel { filter: drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 2px var(--cocoa)) drop-shadow(0 0 2px var(--cocoa)); }
button.bq-head:focus-visible { outline: 3px solid var(--cocoa); outline-offset: 2px; border-radius: 999px; }
.mini-bq { display: flex; align-items: center; justify-content: center; }
.mini-bq .bq-stage { width: auto; height: 100%; }
.hero-designer .bq-stage { max-width: 360px; }
.bq-svg .bq-stage .bq-layer, .hero-designer .bq-stage .bq-layer { max-height: none; margin: 0; }
.pdp > *, .two-col > *, .designer > * { min-width: 0; }

/* hero: real photo with colour dots */
.hero-photo { padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.hero-photo-img { display: block; border-radius: 20px; overflow: hidden; aspect-ratio: 5 / 4; background: var(--img); }
.hero-photo-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .25s; }
.hero-photo-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 0 6px 4px; }
.hero-swatches { display: flex; gap: 8px; }
.hero-dot { width: 28px; height: 28px; border-radius: 999px; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.18); cursor: pointer; padding: 0; }
.hero-dot[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--cocoa); }

/* buying nudges */
.eta { background: #F1F6EC; color: #3F5A2C; border-radius: 12px; padding: 10px 14px; font-size: 15px; margin: -4px 0 0; }
.free-note { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--cocoa); }
.free-note.ok { color: #3F6B2C; }
.free-note .bar { display: block; height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.free-note .bar i { display: block; height: 100%; background: #6E9A4E; border-radius: 99px; }
.buy-bar { display: none; }
@media (max-width: 899px) {
  .buy-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(87,59,54,.08); transform: translateY(110%); transition: transform .2s; }
  .buy-bar.show { transform: none; }
  .buy-bar strong { font-size: 14px; } .buy-bar .btn { flex-shrink: 0; }
}

/* making story */
.making { padding: 28px; margin: 40px 0 8px; display: flex; flex-direction: column; gap: 22px; background: #FFF9F5; }
.making h2 { font-size: clamp(26px, 3vw, 34px); }
.mk-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mk-stats > div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.mk-stats strong { font-family: var(--display); font-size: clamp(22px, 3vw, 30px); color: var(--cocoa); line-height: 1.1; }
.mk-stats span { font-size: 13px; color: var(--muted, #8a716b); }
.mk-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.mk-steps li { display: grid; grid-template-columns: 92px 1fr; column-gap: 14px; padding: 12px 0 12px; border-left: 2px solid #E9D3CB; margin-left: 6px; padding-left: 18px; position: relative; }
.mk-steps li::before { content: ''; position: absolute; left: -7px; top: 16px; width: 12px; height: 12px; border-radius: 99px; background: #E7A3B4; border: 2px solid #fff; box-shadow: 0 0 0 1px #E7A3B4; }
.mk-steps .mk-day { grid-row: span 2; font-size: 13px; font-weight: 700; color: var(--rose); padding-top: 2px; }
.mk-price { background: #F6E7E1; border-radius: 14px; padding: 14px 16px; font-size: 15.5px; }
@media (max-width: 600px) { .making { padding: 20px; } .mk-steps li { grid-template-columns: 1fr; } .mk-steps .mk-day { grid-row: auto; } .mk-stats { gap: 8px; } .mk-stats > div { padding: 10px; } }

.band .mk-stats > div { background: rgba(255,255,255,.7); border-color: rgba(255,255,255,.9); }
.first-band { display: grid; gap: 24px; border: 1px solid var(--line); border-radius: var(--r-panel, 28px); padding: clamp(22px, 4vw, 44px); background: var(--surface); }
@media (min-width: 900px) { .first-band { grid-template-columns: 1fr 1.2fr; align-items: center; } }
.first-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.first-list li { padding-left: 34px; position: relative; }
.first-list li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 99px; background: #F1F6EC; color: #3F6B2C; font-weight: 700; display: grid; place-items: center; font-size: 14px; }
.first-list strong { display: block; }

/* founder */
.founder { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .founder { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.founder-img { border-radius: var(--r-panel, 28px); overflow: hidden; aspect-ratio: 5 / 4; background: var(--img); }
.founder-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.giving { background: #F6E7E1; border-radius: 14px; padding: 14px 16px; }
.giving strong { color: var(--rose); }

/* ---- JoyFold story layer ---- */
.story-hero { background: linear-gradient(180deg, var(--cream) 0%, #FDEBD6 100%); }
.story-hero .hero { padding-bottom: 48px; }
h1 em { color: var(--rose); font-style: italic; }
.lede { font-size: 19px; max-width: 520px; }
.dot-marigold { width: 10px; height: 10px; border-radius: 99px; background: var(--marigold); display: inline-block; }
/* phulkari-style border: marigold diamonds on deep rose */
.phulkari { height: 14px; background: var(--rose-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14'%3E%3Cpath d='M14 1 21 7 14 13 7 7Z' fill='%23E9A23B'/%3E%3Cpath d='M14 4.6 16.4 7 14 9.4 11.6 7Z' fill='%23FFF7F2'/%3E%3Cpath d='M0 3.5 3.5 7 0 10.5ZM28 3.5 24.5 7 28 10.5Z' fill='%23E9A23B'/%3E%3C/svg%3E") repeat-x center; }
.habits { display: grid; gap: 20px; }
@media (min-width: 900px) { .habits { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.habit { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--marigold); border-radius: var(--r-card); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.habit .phrase { font: 400 clamp(22px, 2.4vw, 27px)/1.2 var(--display); color: var(--rose); }
.habit h3 { font-size: 20px; }
.habit p:last-child { color: var(--muted); }
.maker-band { background: var(--warm); padding-top: 0; }
.maker-band .founder { padding-top: 48px; }
@media (min-width: 1024px) { .maker-band .founder { padding-top: 80px; } }
.band.marigold { background: var(--marigold-soft); }
.occasions { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .occasions { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.occ { display: flex; flex-direction: column; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.occ:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.occ img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.occ span { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 16px; }
.occ strong { font: 400 19px/1.2 var(--display); }
.occ small { color: var(--muted); font-size: 14px; }
.sign-off { font: italic 22px/1.4 var(--display); color: var(--rose); margin-top: 16px; }
.sign-off span { font: 15px var(--body); color: var(--muted); }
.site-footer { border-top: 0; padding-top: 0; }
.site-footer > .phulkari { margin-bottom: 48px; }
.status.soldout { background: #F9E1E5; color: var(--danger); }
.ready-badge { background: #E3EDDC; color: #2F5320; border-radius: 12px; padding: 10px 14px; font-size: 15px; font-weight: 600; margin: 0; }
.ready-tag { position: absolute; left: 10px; top: 10px; background: #2F5320; color: #fff; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.addon { background: var(--marigold-soft); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.addon-picks { display: flex; gap: 8px; flex-wrap: wrap; }
.addon-picks button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 12px 4px 4px; border: 1.5px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--cocoa); font: 500 14px var(--body); cursor: pointer; }
.addon-picks img { width: 36px; height: 36px; border-radius: 999px; object-fit: cover; }
.was { text-decoration: line-through; color: var(--muted); margin-right: 6px; }
.bq-hint { text-align: center; }
.bq-total { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); padding-top: 12px; }
.bq-total .sum-row { font-size: 20px; font-weight: 700; }
.bq-ideas { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
.idea { display: flex; flex-direction: column; gap: 4px; padding: 10px; text-align: left; border: 1.5px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--cocoa); font: inherit; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.idea:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.idea[aria-pressed="true"] { border-color: var(--cocoa); box-shadow: inset 0 0 0 1.5px var(--cocoa); }
.idea-pic { display: block; aspect-ratio: 300 / 340; border-radius: 12px; overflow: hidden; background: radial-gradient(circle at 50% 40%, #FFFCF9 0%, #FBEFE9 70%); margin-bottom: 4px; }
.idea-pic .bq-stage { max-width: 100%; }
.idea-dice { display: flex; align-items: center; justify-content: center; font-size: 56px; color: var(--rose); }
.size-chip { flex-direction: column; justify-content: center; min-height: 54px; line-height: 1.15; }
.size-chip small { font-size: 12px; font-weight: 500; opacity: .8; }
.slot-img { width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center; overflow: visible; }
.slot-img img { width: 78%; height: 78%; object-fit: contain; pointer-events: none; }
.slot-img span { position: absolute; right: -4px; bottom: -4px; font-size: 11px; background: var(--surface); border: 1px solid var(--line); min-width: 18px; text-align: center; }
.type-row { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.type-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px; border: 1.5px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--cocoa); font: 500 14px var(--body); cursor: pointer; }
.type-btn img { width: 52px; height: 42px; object-fit: contain; }
.type-btn small { color: var(--muted); font-size: 12px; }
.type-btn[aria-checked="true"] { border-color: var(--cocoa); box-shadow: inset 0 0 0 1.5px var(--cocoa); font-weight: 700; }
@media (max-width: 959px) {
  .designer-preview .bq-total .sum-row span:first-child { font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
  .bq-ideas { grid-auto-flow: column; grid-auto-columns: 124px; grid-template-columns: none; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x mandatory; }
  .idea { scroll-snap-align: start; }
}
.designer-preview .bq-total .sum-row span:first-child { overflow: hidden; text-overflow: ellipsis; }
