/* Family Organiser – site styles
   Colours below are taken from the original site and logo. Change them here and they update everywhere. */
:root {
  --teal: #84b0b0;          /* headings, accents (original site teal) */
  --teal-logo: #9accc8;     /* logo teal */
  --teal-deep: #5f8f8e;     /* darker teal for small text on white */
  --teal-hero: #a6c4c4;     /* band behind the hero photo */
  --teal-pale: #d6e6e5;     /* intro band */
  --teal-mist: #c3d8d7;     /* testimonials band */
  --teal-foot: #87acab;     /* footer */
  --tint: #f3f8f7;          /* alternate product section */
  --gold: #ebba4d;          /* buttons, active menu item, ribbons */
  --gold-dark: #dcaa3c;  /* hover shade of the same gold */
  --ink: #363636;
  --text: #5c5a5a;
  --grey: #8a8a8a;
  --line: #e4e4e4;
  --white: #fff;
  --radius: 4px;
  --wrap: 1180px;
  --font-head: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Nunito Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-script: 'Allison', 'Brush Script MT', cursive;
  --header-h: 150px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--text); font: 400 16px/1.7 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); }
a:hover { color: var(--gold-dark); }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 600; }
p { margin: 0 0 1em; text-wrap: pretty; }
button { font: inherit; cursor: pointer; }
svg { width: 1em; height: 1em; flex: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.hp { position: absolute; left: -5000px; }
.small { font-size: 14px; color: var(--grey); }
.opt { font-weight: 400; color: var(--grey); font-size: .9em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 22px; border: 1px solid transparent; border-radius: var(--radius);
  font: 500 14px/1.2 var(--font-head); letter-spacing: .02em; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--gold); border-color: var(--gold); font-weight: 600; }
.btn-outline:hover { background: var(--gold); color: #fff; }
.btn-block { display: flex; width: 100%; }
.btn-lg { padding: 14px 22px; font-size: 15px; }
.btn[disabled], .btn.is-out { background: #c4c4c4; border-color: #c4c4c4; color: #fff; cursor: not-allowed; }
.btn.is-loading { opacity: .7; pointer-events: none; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 2px 14px rgba(0,0,0,.06); }
.header-inner { max-width: var(--wrap); margin: 0 auto; padding: 14px 24px 10px; display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: ". logo ." "nav nav cart"; align-items: center; }
.logo { grid-area: logo; display: block; width: 240px; transition: width .25s; }
.is-scrolled .logo { width: 170px; }
.main-nav { grid-area: nav; justify-self: center; grid-column: 1 / 4; }
.main-nav > ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; align-items: center; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item + .nav-item::before { content: ''; width: 1px; height: 16px; background: var(--ink); opacity: .7; }
.nav-item > a { display: block; padding: 6px 16px; font: 500 13px/1.2 var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.nav-item > a:hover, .nav-item.is-active > a { color: var(--gold); }
.sub-toggle { display: none; }
.nav-item .sub { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.1); border-top: 2px solid var(--gold);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.nav-item.has-sub:hover .sub, .nav-item.has-sub:focus-within .sub, .nav-item.has-sub.is-open .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 9px 18px; font: 400 14px/1.3 var(--font-head); color: var(--ink); text-decoration: none; }
.sub a:hover { background: var(--tint); color: var(--gold-dark); }
.cart-btn { grid-area: cart; justify-self: end; position: relative; background: none; border: 0; color: var(--gold); font-size: 26px; padding: 4px 6px; line-height: 0; }
.cart-btn svg { width: 24px; height: 28px; }
.cart-count { position: absolute; left: 50%; top: 60%; transform: translate(-50%, -50%); color: #fff; font: 600 11px/1 var(--font-head); }
.cart-btn.bump { animation: bump .5s; }
@keyframes bump { 30% { transform: scale(1.25); } 60% { transform: scale(.95); } }
.menu-btn { display: none; background: none; border: 0; color: var(--ink); font-size: 30px; padding: 4px; line-height: 0; }

.mobile-menu { position: fixed; inset: 0; z-index: 60; background: #fff; padding: 70px 32px 32px; overflow-y: auto; }
.mobile-menu > ul { list-style: none; padding: 0; margin: 0; }
.mobile-menu li a { display: block; padding: 12px 0; font: 500 18px/1.3 var(--font-head); color: var(--ink); text-decoration: none; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--line); }
.mobile-menu li ul { list-style: none; padding: 0 0 8px 14px; margin: 0; }
.mobile-menu li ul a { text-transform: none; font-size: 16px; font-weight: 400; border: 0; padding: 8px 0; color: var(--teal-deep); }
.menu-close { position: absolute; top: 18px; right: 18px; background: none; border: 0; font-size: 30px; color: var(--ink); line-height: 0; }

/* ---------- home ---------- */
.hero { background: var(--teal-hero); }
.hero picture { display: block; max-width: 1000px; margin: 0 auto; }
.hero img { width: 100%; aspect-ratio: 1960 / 1030; object-fit: cover; }
.intro { background: var(--teal-pale); padding: 26px 0 40px; text-align: center; }
.intro .wrap { max-width: 1180px; padding-left: max(28px, 3vw); padding-right: max(28px, 3vw); }
.intro h1 { font-size: 19px; color: #767a7a; font-weight: 700; letter-spacing: .02em; margin-bottom: 14px; }
.intro p { font-size: 16px; }
.intro .signoff { font-style: italic; font-weight: 700; color: var(--ink); margin-top: 1.4em; }

.cat-chips { background: #fff; border-bottom: 1px solid var(--line); }
.cat-chips .wrap { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
.cat-chips a { padding: 8px 18px; border: 1px solid var(--teal); border-radius: 999px; font: 500 13px/1.2 var(--font-head); color: var(--teal-deep); text-decoration: none; letter-spacing: .02em; white-space: nowrap; }
.cat-chips a:hover, .cat-chips a.is-current { background: var(--teal); color: #fff; }

/* Section heading – replaces the old jagged divider: a centred title with a small gold sprig */
.category { padding: 56px 0 52px; }
.category + .category, .category + .delivery-info { border-top: 1px solid var(--teal); }
.section-head { text-align: center; margin-bottom: 32px; }
.section-head h2, .page-head h1, .delivery-info h2 { font-size: 29px; font-weight: 700; color: var(--teal); letter-spacing: .01em; margin-bottom: 4px; }
.flourish-unused { display: block; width: 120px; height: 14px; margin: 0 auto 16px; background:
  linear-gradient(var(--gold), var(--gold)) left 50% / 46px 1px no-repeat,
  linear-gradient(var(--gold), var(--gold)) right 50% / 46px 1px no-repeat,
  radial-gradient(circle, var(--gold) 0 3.5px, transparent 4px) center / 14px 14px no-repeat; }
.section-intro { max-width: 1040px; margin: 0 auto; font-size: 17px; font-weight: 600; color: #4d4b4b; line-height: 1.65; }

.grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 40px 28px; }
.grid > .card { flex: 0 1 220px; min-width: 0; }
/* product sections use more of wide screens: 5 across on a laptop, 6 on a large monitor */
.category .wrap { max-width: 1560px; }
.related .grid > .card { flex-basis: 240px; }
.card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.card-link { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink); width: 100%; }
.card-img { position: relative; display: block; width: 100%; aspect-ratio: 1; overflow: hidden; background: #fff; }
.card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .45s ease; }
.card-link:hover .card-img img { transform: scale(1.04); }
.ribbon { position: absolute; top: 0; left: 0; z-index: 2; background: var(--gold); color: #fff; font: 600 11px/1 var(--font-head); letter-spacing: .06em; padding: 6px 10px; }
.card-name { margin-top: 12px; font: 600 14px/1.3 var(--font-head); color: var(--ink); }
.card-link:hover .card-name { color: var(--gold); }
.card-price { margin-top: 1px; font: 400 14px/1.3 var(--font-head); color: var(--text); }
.price-was { text-decoration: line-through; color: var(--grey); margin-right: 4px; }
.price-now { color: var(--ink); }
.price-was + .price-now { color: #b5523b; }
.btn-add { margin-top: 12px; background: #fff; color: var(--gold); border-color: var(--gold); padding: 8px 18px; font-size: 13px; font-weight: 600; }
.btn-add svg { font-size: 12px; }
.btn-add:hover { background: var(--gold); color: #fff; }
.btn-add.is-added { background: var(--teal); border-color: var(--teal); color: #fff; }

.delivery-info { padding: 64px 0; text-align: center; }
.rates { list-style: none; padding: 0; margin: 20px auto 22px; max-width: 520px; text-align: left; }
.rates li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed #d8d8d8; font-family: var(--font-head); font-size: 15px; color: var(--ink); }
.rates strong { font-weight: 600; white-space: nowrap; }
.logos { display: flex; justify-content: center; align-items: center; gap: 36px; flex-wrap: wrap; margin-top: 26px; }
.logos img { height: 56px; width: auto; }

.testimonials { background: var(--teal-mist); padding: 48px 0 40px; text-align: center; }
.script { font-family: var(--font-script); font-weight: 400; font-size: 64px; color: #8a8d8d; line-height: 1; margin-bottom: 12px; }
.slides { display: grid; }
.slide { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transition: opacity .6s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide blockquote { margin: 0 auto 12px; max-width: 600px; font-size: 17px; color: var(--ink); }
.slide figcaption { font-family: var(--font-head); font-size: 14px; color: var(--ink); }
.dots { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: rgba(54,54,54,.25); }
.dots button[aria-selected="true"] { background: var(--ink); }

/* ---------- footer ---------- */
.site-footer { background: var(--teal-foot); color: #fff; }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 56px 24px 36px; display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; }
.site-footer h2 { color: #fff; font-size: 24px; font-weight: 500; margin-bottom: 20px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.contact-person { margin-bottom: 18px; }
.contact-person p { margin: 0 0 4px; }
.contact-person a { display: inline-flex; align-items: center; gap: 10px; }
.contact-person svg { opacity: .9; }
.contact-name { font-family: var(--font-head); font-style: italic; letter-spacing: .08em; font-size: 15px; }
.contact-note { font-size: 14px; opacity: .92; margin-top: 18px; }
.query-form label, .checkout-main label { display: block; font: 500 13px/1.3 var(--font-head); margin-bottom: 14px; letter-spacing: .02em; }
.query-form input, .query-form textarea { margin-top: 6px; width: 100%; border: 1px solid rgba(255,255,255,.6); background: rgba(255,255,255,.95); color: var(--ink); border-radius: var(--radius); padding: 11px 12px; font: 400 15px/1.4 var(--font-body); }
.query-form textarea { resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.query-form .btn { min-width: 160px; }
.form-status { margin: 12px 0 0; font-size: 14px; min-height: 1.4em; }
.form-status.is-ok { font-weight: 700; }
.form-status.is-error { color: #fff3c9; font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.25); text-align: center; padding: 20px 24px 26px; font-size: 13px; letter-spacing: .05em; }
.policy-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 6px; }
.copy { margin: 0; font-size: 12px; opacity: .9; }

/* ---------- content pages ---------- */
.content-page { padding: 48px 24px 72px; }
.page-head { text-align: center; margin-bottom: 32px; }
.page-head p { max-width: 760px; margin: 0 auto; font-style: italic; }
.policy { max-width: 860px; }
.policy h1 { font-size: 30px; color: var(--teal); font-weight: 700; text-align: center; }
.policy h2 { font-size: 18px; margin-top: 1.8em; color: var(--ink); }
.policy .logos { justify-content: flex-start; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.about-person img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 22px; }
.about-person h2 { font-size: 22px; color: var(--teal); }
.stockists { max-width: 1000px; }
.region-chips { border: 0; margin: -6px 0 26px; }
.region-chips > div { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.pna-band { background: var(--teal); color: #fff; text-align: center; padding: 22px 20px; margin-bottom: 8px; border-radius: var(--radius); }
.pna-band h2 { color: #fff; font-size: 20px; margin-bottom: 2px; }
.pna-band p { margin: 0; font-weight: 600; }
.region { padding: 30px 0 10px; border-bottom: 1px solid var(--teal); }
.region:last-child { border-bottom: 0; }
.region > h2 { font-size: 19px; color: var(--teal); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; margin-bottom: 12px; }
.store-list { list-style: none; margin: 0; padding: 0; }
.store-row { display: grid; grid-template-columns: minmax(180px, 1.1fr) 2fr 120px; gap: 4px 24px; padding: 9px 0; border-top: 1px dotted #d9dede; font-size: 15px; color: var(--text); align-items: baseline; }
.store-row.is-branch { border-top: 0; padding-top: 0; }
.store-row:has(+ .is-branch) { padding-bottom: 2px; }
.store-name { font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.store-tel { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--text); text-align: right; }
.faq-tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.faq-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 16px; font: 500 14px/1.3 var(--font-head); color: var(--ink); margin-bottom: -1px; }
.faq-tabs button[aria-selected="true"] { border-color: var(--gold); color: var(--gold-dark); }
.faq-item, .accordion details { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; background: #fff; }
.faq-item summary, .accordion summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font: 500 16px/1.4 var(--font-head); color: var(--ink); }
.faq-item summary::-webkit-details-marker, .accordion summary::-webkit-details-marker { display: none; }
.acc-icon { position: relative; width: 14px; height: 14px; flex: none; }
.acc-icon::before, .acc-icon::after { content: ''; position: absolute; left: 0; top: 6.5px; width: 14px; height: 1.4px; background: currentColor; transition: transform .2s; }
.acc-icon::after { transform: rotate(90deg); }
details[open] > summary .acc-icon::after { transform: rotate(0); }
.acc-body { padding: 0 20px 6px; }
.faq-more { text-align: center; margin-top: 28px; }

/* ---------- product page ---------- */
.product-wrap { padding-top: 28px; padding-bottom: 40px; }
.crumbs { font: 400 13px/1.4 var(--font-head); color: var(--grey); margin-bottom: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--grey); text-decoration: none; }
.crumbs a:hover { color: var(--gold-dark); }
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.product > *, .cart-layout > *, .checkout-layout > * { min-width: 0; }
.gallery-main { position: relative; border: 1px solid var(--line); background: #fff; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; scroll-snap-align: center; border: 0; padding: 0; background: #fff; cursor: zoom-in; }
.gallery-slide img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.g-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: var(--ink); font-size: 18px; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.g-prev { left: 10px; } .g-prev svg { transform: rotate(90deg); }
.g-next { right: 10px; } .g-next svg { transform: rotate(-90deg); }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumbs button { width: 64px; height: 64px; padding: 2px; border: 1px solid var(--line); background: #fff; }
.gallery-thumbs button.is-active { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product-desc { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.product-desc p:last-child { margin-bottom: 0; }
.product-media { position: sticky; top: calc(var(--header-h) + 16px); }
.product-buy h1 { font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.product-price { font: 400 18px/1.3 var(--font-head); margin-bottom: 20px; }
.qty-label { font: 500 13px/1 var(--font-head); color: var(--ink); margin-bottom: 8px; }
.qty { display: inline-flex; align-items: stretch; border: 1px solid #bdbdbd; border-radius: var(--radius); margin-bottom: 22px; height: 40px; }
.qty button { width: 38px; border: 0; background: none; color: var(--ink); display: grid; place-items: center; }
.qty input { width: 44px; text-align: center; border: 0; font: 500 15px var(--font-head); color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty.sm { height: 32px; margin: 0; }
.qty.sm button { width: 30px; } .qty.sm input { width: 34px; font-size: 14px; }
.out-note { font-size: 15px; }
.accordion { margin-top: 22px; border-top: 1px solid var(--line); }
.accordion details { border-width: 0 0 1px; border-radius: 0; margin: 0; }
.accordion summary { padding: 16px 0; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.accordion .acc-body { padding: 0 0 8px; font-size: 15px; }
.accordion .acc-body p { margin-bottom: .4em; }
.related { padding: 0 0 64px; }
.related .wrap { border-top: 1px solid var(--teal); padding-top: 36px; }
.related-title { font: 500 22px/1.3 var(--font-head); text-transform: uppercase; letter-spacing: .1em; color: var(--teal); text-align: center; margin-bottom: 32px; }
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(255,255,255,.97); display: grid; place-items: center; padding: 40px 70px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: calc(100vh - 80px); width: auto; max-width: 100%; object-fit: contain; }
.lb-close { position: absolute; top: 14px; right: 16px; background: none; border: 0; font-size: 30px; color: var(--ink); line-height: 0; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; font-size: 34px; color: var(--ink); line-height: 0; padding: 10px; }
.lb-prev { left: 10px; } .lb-prev svg { transform: rotate(90deg); }
.lb-next { right: 10px; } .lb-next svg { transform: rotate(-90deg); }

/* ---------- basket drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 70; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; z-index: 71; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s ease; visibility: hidden; }
.cart-drawer.is-open { transform: none; visibility: visible; }
.drawer-head { background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; }
.drawer-head h2 { color: #fff; font-size: 24px; font-weight: 400; margin: 0; }
.drawer-head h2 span { font-size: 15px; }
.drawer-close { background: none; border: 0; color: #fff; font-size: 26px; line-height: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 24px 24px; display: grid; gap: 10px; }
.drawer-total { display: flex; justify-content: space-between; font: 400 18px var(--font-head); color: var(--ink); margin-bottom: 6px; }
.drawer-total strong { font-weight: 500; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line img { width: 76px; height: 76px; object-fit: contain; border: 1px solid var(--line); }
.line-name { font: 500 15px/1.35 var(--font-head); color: var(--ink); text-decoration: none; display: block; margin-bottom: 10px; }
.line-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.line-price { font: 400 15px var(--font-head); color: var(--ink); white-space: nowrap; }
.line-remove { background: none; border: 0; color: var(--grey); font-size: 20px; line-height: 0; padding: 2px; }
.line-remove:hover { color: #b5523b; }
.empty { text-align: center; padding: 40px 10px; color: var(--grey); }
.empty .btn { margin-top: 12px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font: 500 14px var(--font-head); z-index: 90; box-shadow: 0 6px 20px rgba(0,0,0,.2); }

/* ---------- cart & checkout ---------- */
.cart-page, .checkout-page { padding-top: 40px; padding-bottom: 72px; }
.cart-page h1, .checkout-page h1, .done-page h1 { font-size: 26px; font-weight: 500; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.cart-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 48px; align-items: start; }
.cart-lines .line { grid-template-columns: 100px 1fr auto; }
.cart-lines .line img { width: 100px; height: 100px; }
.summary { background: #fafafa; border: 1px solid var(--line); padding: 24px; border-radius: var(--radius); position: sticky; top: calc(var(--header-h) + 16px); }
.summary h2 { font-size: 18px; font-weight: 500; margin-bottom: 16px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 15px; color: var(--ink); }
.sum-row.muted { color: var(--grey); }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font: 600 18px var(--font-head); }
.summary .btn { margin-top: 18px; }
.secure { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 13px; color: var(--grey); margin: 12px 0 0; }
.continue { display: block; text-align: center; margin-top: 12px; font-size: 14px; }
.sum-items { border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.sum-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; font-size: 14px; color: var(--ink); }
.sum-item img { width: 52px; height: 52px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.sum-item .q { color: var(--grey); font-size: 13px; }
.checkout-main fieldset { border: 0; padding: 0; margin: 28px 0 8px; }
.checkout-main legend { font: 600 17px/1.3 var(--font-head); color: var(--ink); margin-bottom: 14px; padding: 0; }
.checkout-main input:not([type=radio]):not([type=checkbox]), .checkout-main select, .checkout-main textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid #c9c9c9; border-radius: var(--radius); font: 400 15px/1.4 var(--font-body); color: var(--ink); background: #fff; }
.checkout-main [aria-invalid="true"] { border-color: #b5523b; background: #fff7f5; }
.delivery-options { display: grid; gap: 10px; }
.radio-card { display: grid !important; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; border: 1px solid #d5d5d5; border-radius: var(--radius); padding: 14px 16px; margin: 0 !important; cursor: pointer; font-family: var(--font-body) !important; }
.radio-card:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); background: #fffaf0; }
.radio-card input { margin-top: 4px; accent-color: var(--gold-dark); }
.rc-title { display: block; font: 600 15px/1.3 var(--font-head); color: var(--ink); }
.rc-detail { display: block; font-size: 13px; color: var(--grey); font-weight: 400; margin-top: 2px; }
.rc-price { font: 600 15px var(--font-head); color: var(--ink); white-space: nowrap; }
.notice { background: #fff6e0; border: 1px solid var(--gold); padding: 14px 18px; border-radius: var(--radius); margin: 18px 0; color: var(--ink); }
.checkout-summary .form-status.is-error { color: #b5523b; font-weight: 600; }
.done-page { text-align: center; padding-top: 56px; padding-bottom: 72px; }
.done-page h1 { border: 0; font-size: 34px; color: var(--teal); font-weight: 700; }
.done-page .lead { font-size: 19px; color: var(--ink); }
.done-page .summary { position: static; text-align: left; max-width: 520px; margin: 24px auto; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .product { gap: 36px; }
}
@media (max-width: 860px) {
  :root { --header-h: 84px; }
  .header-inner { grid-template-columns: 1fr auto auto; grid-template-areas: "logo cart menu"; padding: 10px 16px; gap: 6px; }
  .logo, .is-scrolled .logo { width: 170px; }
  .main-nav { display: none; }
  .menu-btn { display: block; grid-area: menu; }
  .cart-btn { margin-right: 4px; }
  .product, .cart-layout, .checkout-layout { grid-template-columns: minmax(0, 1fr); }
  .product { row-gap: 0; }
  .product-buy { margin-top: 24px; }
  .product-media, .summary { position: static; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .about-grid { grid-template-columns: 1fr; }
  .store-row { grid-template-columns: 1fr 120px; }
  .store-name { grid-column: 1 / -1; }
  .store-row.is-branch .store-name { display: none; }
  .checkout-summary { order: 2; }
}
@media (max-width: 640px) {
  .wrap, .footer-inner { padding-left: 16px; padding-right: 16px; }
  .grid { gap: 32px 14px; }
  .grid > .card, .related .grid > .card { flex: 0 1 calc(50% - 7px); }
  .card-name { font-size: 13px; }
  .btn-add { padding: 8px 12px; font-size: 12px; }
  .hero img { aspect-ratio: 4 / 3; }
  .intro { padding: 20px 0 30px; }
  .category { padding: 44px 0 40px; }
  .section-head h2, .page-head h1, .delivery-info h2 { font-size: 23px; }
  .section-intro { font-size: 16px; }
  .intro .wrap { padding-left: 22px; padding-right: 22px; }
  .intro h1 { font-size: 17px; }
  .related-title { font-size: 18px; }
  .cat-chips .wrap { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-top: 12px; padding-bottom: 12px; }
  .cat-chips .wrap::-webkit-scrollbar { display: none; }
  .script { font-size: 52px; }
  .field-row { grid-template-columns: 1fr; }
  .region-chips > div { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .store-row { grid-template-columns: 1fr; gap: 0; }
  .content-page { padding: 32px 16px 56px; }
  .product-buy h1 { font-size: 20px; }
  .gallery-thumbs { flex-wrap: nowrap; overflow-x: auto; }
  .gallery-thumbs button { flex: none; width: 56px; height: 56px; }
  .lightbox { padding: 50px 10px; }
  .cart-lines .line { grid-template-columns: 76px 1fr auto; }
  .cart-lines .line img { width: 76px; height: 76px; }
  .faq-tabs { flex-wrap: nowrap; overflow-x: auto; }
  .faq-tabs button { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* product page: compact Add to Cart beside the quantity */
.buy-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.buy-row .qty { margin-bottom: 0; }
.buy-row .btn { width: auto; padding: 0 30px; height: 40px; font-size: 14px; }
.card-link { flex: 1 0 auto; } /* keeps the Add to Cart buttons in a row level when a name wraps */
