/* =========================================================
   Brand colours — Persian turquoise, saffron & rose
   ========================================================= */
:root {
  --turq: #1B8A8F;
  --turq-dark: #11666B;
  --turq-deep: #0C4F53;
  --turq-tint: #DDF0EE;

  --saffron: #E8A317;
  --saffron-dark: #B97F0A;
  --saffron-tint: #FBEFD0;

  --rose: #8C2F63;
  --rose-dark: #6E2150;
  --rose-tint: #F6E3EC;

  --cream: #FAF4E8;
  --paper: #FFFCF6;
  --ink: #2B1E2A;
  --muted: #6B5B66;
  --line: #E7D9BF;

  --serif: "Libre Baskerville", Baskerville, Georgia, "Times New Roman", serif;
  --sans: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1140px;
  --gutter: 16px;

  /* Eight-point star, the same octagram as the tile pattern and logo */
  --star: polygon(50% 0, 64.6% 14.6%, 85.4% 14.6%, 85.4% 35.4%, 100% 50%, 85.4% 64.6%, 85.4% 85.4%, 64.6% 85.4%, 50% 100%, 35.4% 85.4%, 14.6% 85.4%, 14.6% 64.6%, 0 50%, 14.6% 35.4%, 14.6% 14.6%, 35.4% 14.6%);
}

@media (min-width: 768px) { :root { --gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--turq-dark); }
a:hover { color: var(--rose); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 .45em;
  color: var(--ink);
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 5.6vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 3.8vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 56px 0; }
@media (min-width: 768px) { .section { padding: 80px 0; } }
.center { text-align: center; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: .8em;
}
.lede { font-size: 1.1rem; color: var(--muted); max-width: 38em; }
.center .lede, .page-head .lede { margin-left: auto; margin-right: auto; }

/* =========================================================
   Star geometry — shared shapes used across the site
   Every box uses the star's 45° angles instead of round corners.
   ========================================================= */

/* Octagon: a box with the corners cut at 45°, like the square at the heart of the star.
   Set --cut per element for the size of the corner. */
.card-media, .product-media, .line-thumb, .panel, .info-card, .pillars li, .custom-card,
.size-option label, .pay-option label, .note, .sold-out, .warn, .form-status, .bank-box, .toast {
  --cut: 14px;
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
}

/* Octagon outline: a thin frame drawn on top of an octagon (set --ring colour and --bw width) */
.panel::after, .size-option label::after, .pay-option label::after, .custom-card::after, .custom-card::before {
  --k: calc(var(--cut) + var(--bw) * .414);
  content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--ring);
  clip-path: polygon(evenodd,
    var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut), var(--cut) 0,
    var(--k) var(--bw), var(--bw) var(--k), var(--bw) calc(100% - var(--k)), var(--k) calc(100% - var(--bw)),
    calc(100% - var(--k)) calc(100% - var(--bw)), calc(100% - var(--bw)) calc(100% - var(--k)),
    calc(100% - var(--bw)) var(--k), calc(100% - var(--k)) var(--bw), var(--k) var(--bw));
}
.panel, .size-option label, .pay-option label, .custom-card { position: relative; --ring: var(--line); --bw: 1.5px; }

/* Lozenge: long shape with pointed ends, like one arm of the star. Set --pt for point depth. */
.btn, .card-tag, .tabs, .tabs button, .nav a, .stepper, .order-no, .pay-badge {
  --pt: 14px;
  clip-path: polygon(var(--pt) 0, calc(100% - var(--pt)) 0, 100% 50%, calc(100% - var(--pt)) 100%, var(--pt) 100%, 0 50%);
}
/* Lozenge outline */
.btn-outline::after, .stepper::after, .tabs::after {
  --hx: calc(var(--pt) + var(--bw) * .55);
  --ha: calc(var(--bw) * 1.25);
  content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--ring);
  clip-path: polygon(evenodd,
    var(--pt) 0, calc(100% - var(--pt)) 0, 100% 50%, calc(100% - var(--pt)) 100%, var(--pt) 100%, 0 50%, var(--pt) 0,
    var(--hx) var(--bw), var(--ha) 50%, var(--hx) calc(100% - var(--bw)), calc(100% - var(--hx)) calc(100% - var(--bw)),
    calc(100% - var(--ha)) 50%, calc(100% - var(--hx)) var(--bw), var(--hx) var(--bw));
}
.btn-outline, .stepper, .tabs { position: relative; --bw: 2px; }

/* Small star used as a bullet or marker */
.star-dot { display: inline-block; width: 12px; height: 12px; background: var(--saffron); clip-path: var(--star); }

/* ---------- Persian tile band (from the menu) ---------- */
.tile-band {
  height: 40px;
  background: url("../images/tile.svg") repeat-x center / 40px 40px;
  border-top: 3px solid var(--rose);
  border-bottom: 3px solid var(--rose);
}
.tile-band--thin { height: 14px; background-size: 14px 14px; border-width: 0 0 2px; }

/* Divider: line · star · line */
.ornament {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 22px auto; color: var(--saffron);
}
.ornament::before, .ornament::after { content: ""; height: 1px; width: 56px; background: var(--saffron); }
.ornament span { width: 16px; height: 16px; background: var(--saffron); clip-path: var(--star); }

/* Numbered star badge (I, II, III) */
.star-badge {
  position: relative; isolation: isolate;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1rem;
  color: var(--rose);
  margin: 0 auto 14px;
}
.star-badge::before, .star-badge::after { content: ""; position: absolute; clip-path: var(--star); }
.star-badge::before { inset: 0; background: var(--saffron); }
.star-badge::after { inset: 2px; background: var(--paper); }
.star-badge span { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn {
  --pt: 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 32px;
  border: 0;
  font: 700 1rem/1.2 var(--sans); letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--turq-dark); color: #fff; }
.btn-primary:hover { background: var(--turq-deep); color: #fff; }
.btn-rose { background: var(--rose); color: #fff; }
.btn-rose:hover { background: var(--rose-dark); color: #fff; }
.btn-outline { --ring: var(--turq-dark); color: var(--turq-dark); background: transparent; }
.btn-outline:hover { background: var(--turq-dark); color: #fff; }
/* The pointed shape hides the normal focus outline, so focus fills the button with saffron instead */
.btn:focus-visible { outline: none; background: var(--saffron); color: var(--ink); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); box-shadow: 0 1px 0 var(--line); }
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-weight: 400; font-size: 1.4rem; line-height: 1;
  color: var(--ink); text-decoration: none;
}
.logo:hover { color: var(--ink); }
.logo-text { display: flex; flex-direction: column; }
.logo-text small, .footer-brand small {
  font-family: var(--sans); font-weight: 700; font-size: .6rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--rose); margin-top: 3px;
}
.footer-brand small { display: block; font-size: .68rem; color: var(--saffron); margin-top: 6px; }
.logo-mark { width: 40px; height: 40px; flex: none; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  --pt: 10px;
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: .95rem;
  padding: 10px 18px;
}
.nav a:hover, .nav a:focus-visible { background: var(--turq-tint); color: var(--turq-deep); outline: none; }
.nav a[aria-current="page"] { color: var(--rose); }

.header-actions { display: flex; align-items: center; gap: 6px; }
.basket-link, .menu-toggle {
  position: relative; isolation: isolate; display: inline-grid; place-items: center;
  width: 46px; height: 46px; color: var(--ink); text-decoration: none;
}
/* Star-shaped hover behind the basket and menu icons */
.basket-link::before, .menu-toggle::before {
  content: ""; position: absolute; inset: 0; z-index: -1; clip-path: var(--star); background: transparent; transition: background .15s;
}
.basket-link:hover::before, .menu-toggle:hover::before { background: var(--turq-tint); }
.basket-link:hover { color: var(--turq-deep); }
.basket-link svg { width: 24px; height: 24px; }
/* Item count sits in a little rose star */
.basket-count {
  position: absolute; top: -2px; right: -4px;
  width: 24px; height: 24px; clip-path: var(--star);
  background: var(--rose); color: #fff; font-size: .68rem; font-weight: 700;
  display: grid; place-items: center;
}
.basket-count[hidden] { display: none; }
.menu-toggle { display: none; border: 0; background: transparent; cursor: pointer; }
.menu-toggle svg { width: 26px; height: 26px; }

@media (max-width: 767px) {
  .menu-toggle { display: inline-grid; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 3px solid var(--rose);
    padding: 8px var(--gutter) 16px;
    box-shadow: 0 12px 20px rgba(43, 30, 42, .08);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { clip-path: none; padding: 14px 8px; border-bottom: 1px solid var(--line); font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
  .nav a::before { content: ""; width: 10px; height: 10px; background: var(--line); clip-path: var(--star); }
  .nav a[aria-current="page"]::before { background: var(--saffron); }
  .nav a:last-child { border-bottom: 0; }
  .logo { font-size: 1.2rem; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--turq-deep); color: #E9F4F2; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--saffron); }
.footer-grid { display: grid; gap: 28px; padding: 40px 0 28px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h3 { color: #fff; font-size: 1.1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.site-footer li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--saffron); clip-path: var(--star); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); padding: 16px 0 24px; font-size: .88rem; color: #BFDCD9; }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 56px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1.5fr 1fr; gap: 48px; }
  /* Sized so "Artisan Gelato & Ice Cream," just fits on one line of the text column */
  .hero h1 { font-size: calc((min(100vw, 1140px) - 104px) * .041); }
  .hero .h1-line { white-space: nowrap; } .hero { padding: 72px 0 88px; } }
.hero h1 em { font-style: normal; color: var(--turq-dark); }
.hero .h1-line { display: block; }
/* Hero picture sits in a big framed eight-point star: saffron, cream ring, then a tiled turquoise centre */
.hero-art {
  aspect-ratio: 1 / 1; max-width: 480px; width: 100%; margin: 0 auto;
  clip-path: var(--star); background: var(--saffron); padding: 2.4%;
}
.hero-art-ring { width: 100%; height: 100%; clip-path: var(--star); background: var(--cream); padding: 2.4%; }
.hero-art-core {
  position: relative; width: 100%; height: 100%; clip-path: var(--star); background: var(--turq-tint);
  display: grid; place-items: center;
}
.hero-art-core::before { content: ""; position: absolute; inset: 0; background: url("../images/tile.svg") center / 56px 56px; opacity: .13; }
.hero-art .scoops { position: relative; width: 82%; height: 82%; margin-top: 8%; }
.hero-art .scoops svg { position: absolute; width: 58%; height: auto; }
.hero-art .scoops svg:nth-child(1) { left: 0; top: 22%; transform: rotate(-8deg); }
.hero-art .scoops svg:nth-child(2) { right: 0; top: 22%; transform: rotate(8deg); }
.hero-art .scoops svg:nth-child(3) { left: 21%; top: 6%; z-index: 1; width: 60%; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 28px; margin-top: 36px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { text-align: center; padding: 8px 12px; }
.step p { color: var(--muted); max-width: 22em; margin: 0 auto; }

/* ---------- Philosophy ---------- */
.philosophy { background: var(--paper); }
.philosophy-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 880px) { .philosophy-grid { grid-template-columns: 1.15fr 1fr; gap: 64px; } }
.philosophy .lede { color: var(--ink); font-family: var(--serif); font-size: 1.2rem; line-height: 1.6; }
.philosophy p { color: var(--muted); }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pillars li { display: flex; gap: 16px; align-items: flex-start; background: var(--cream); padding: 18px 20px; }
.pillars li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; background: var(--saffron); clip-path: var(--star); }
.pillars h3 { margin-bottom: .25em; }
.pillars p { margin: 0; font-size: .95rem; }

/* ---------- Custom flavour call-out: double saffron frame with cut corners ---------- */
.custom-card {
  --cut: 30px; --ring: var(--saffron); --bw: 2px;
  max-width: 780px; margin: 0 auto; text-align: center;
  background: var(--paper); padding: 48px 28px;
}
.custom-card::before { --cut: 26px; --bw: 1px; inset: 10px; }
@media (min-width: 768px) { .custom-card { padding: 60px 72px; } }
.custom-card p { color: var(--muted); max-width: 34em; margin-left: auto; margin-right: auto; }
.custom-card .small { font-size: .9rem; }
.custom-mark { width: 64px; height: 64px; margin: 0 auto 16px; }

/* ---------- Flavour grid (Salt & Straw style) ---------- */
.grid-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.flavour-grid {
  display: grid; gap: 22px 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 768px) { .flavour-grid { grid-template-columns: repeat(3, 1fr); gap: 36px 24px; } }
@media (min-width: 1100px) { .flavour-grid { grid-template-columns: repeat(4, 1fr); } }

.card { display: block; text-decoration: none; color: var(--ink); }
.card:hover { color: var(--ink); }
.card-media {
  --cut: 16px;
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  display: grid; place-items: center;
  transition: transform .2s ease;
}
@media (min-width: 768px) { .card-media { --cut: 22px; } }
.card:hover .card-media { transform: translateY(-3px); }
.card-media svg { width: 78%; height: auto; transition: transform .25s ease; }
.card:hover .card-media svg { transform: scale(1.04) rotate(-2deg); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-tag {
  --pt: 9px;
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--paper); color: var(--rose); font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; padding: 5px 14px;
}
.card-tag::before { content: ""; width: 9px; height: 9px; background: var(--saffron); clip-path: var(--star); }
.card-body { padding: 12px 2px 0; }
.card-body h3 { font-size: 1.02rem; margin-bottom: .3em; line-height: 1.3; }
@media (min-width: 768px) { .card-body h3 { font-size: 1.15rem; } }
.card-body p { font-size: .92rem; color: var(--muted); margin-bottom: .4em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-price { font-weight: 700; color: var(--turq-dark); font-size: .95rem; }

/* "Ice Cream" / "Gelato" subtitle under a flavour name: rose for ice cream, turquoise for gelato */
.flavour-type {
  display: block; margin: -.1em 0 .5em;
  font-family: var(--sans); font-weight: 700; font-size: .68rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--rose);
}
.flavour-type[data-type="Gelato"] { color: var(--turq-dark); }
.flavour-type--lg { font-size: .82rem; margin: -.2em 0 .9em; }
.line-name + .flavour-type { margin: 2px 0 2px; font-size: .62rem; }

/* ---------- Page header ---------- */
.page-head { padding: 40px 0 8px; text-align: center; }
@media (min-width: 768px) { .page-head { padding: 64px 0 16px; } }

/* ---------- Flavour detail ---------- */
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; padding: 20px 0 8px; min-height: 44px; }
.product { display: grid; gap: 28px; padding-bottom: 48px; }
@media (min-width: 880px) {
  .product { grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
  .product-media { position: sticky; top: 96px; }
}
.product-media { --cut: 30px; aspect-ratio: 1 / 1; overflow: hidden; display: grid; place-items: center; }
.product-media svg { width: 72%; height: auto; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); }
.product-short { font-size: 1.12rem; color: var(--rose); line-height: 1.5; }
.price-now { font-size: 1.6rem; font-weight: 700; color: var(--turq-dark); margin: 8px 0 20px; }

.field-label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 8px; letter-spacing: .02em; }
.size-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; border: 0; padding: 0; }
.size-option input { position: absolute; opacity: 0; pointer-events: none; }
.size-option label {
  --cut: 12px; --bw: 2px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 72px; padding: 10px;
  background: var(--paper); cursor: pointer; text-align: center; transition: background .15s;
}
.size-option label strong { font-size: 1.1rem; }
.size-option label span { font-size: .9rem; color: var(--muted); }
.size-option input:checked + label { --ring: var(--turq-dark); --bw: 2.5px; background: var(--turq-tint); }
.size-option input:focus-visible + label { --ring: var(--saffron); --bw: 3.5px; }

.buy-row { display: flex; gap: 12px; align-items: stretch; margin-bottom: 24px; }
.buy-row .btn { flex: 1; }
.stepper { --pt: 12px; --ring: var(--line); display: inline-flex; align-items: center; background: var(--paper); padding: 2px 8px; }
.stepper button {
  position: relative; z-index: 1;
  width: 40px; height: 44px; border: 0; background: transparent; cursor: pointer;
  font-size: 1.3rem; color: var(--ink);
}
.stepper button:hover, .stepper button:focus-visible { color: var(--rose); outline: none; }
.stepper output, .stepper span { min-width: 24px; text-align: center; font-weight: 700; }
.stepper--sm { --pt: 10px; padding: 1px 6px; }
.stepper--sm button { width: 32px; height: 36px; font-size: 1.1rem; }

.details { border-top: 1px solid var(--line); }
.details details { border-bottom: 1px solid var(--line); }
.details summary {
  list-style: none; cursor: pointer; padding: 16px 0; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center; min-height: 44px;
}
.details summary::-webkit-details-marker { display: none; }
.details summary::after { content: ""; width: 14px; height: 14px; background: var(--line); clip-path: var(--star); transition: background .15s, transform .2s; }
.details details[open] summary::after { background: var(--saffron); transform: rotate(22.5deg); }
.details details p { color: var(--muted); }
.note { --cut: 10px; font-size: .9rem; color: var(--muted); background: var(--saffron-tint); padding: 12px 16px; }
.sold-out { --cut: 10px; background: var(--rose-tint); color: var(--rose-dark); font-weight: 700; padding: 12px 16px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 140%);
  width: calc(100% - 2 * var(--gutter)); max-width: 420px;
  background: var(--ink); color: #fff; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  z-index: 100;
  transition: transform .25s ease;
}
.toast.show { transform: translate(-50%, 0); }
.toast a { color: var(--saffron); font-weight: 700; white-space: nowrap; }

/* ---------- Info band ---------- */
.info-band { background: var(--rose-tint); }
.info-grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }
.info-card {
  --cut: 18px;
  background: linear-gradient(var(--saffron) 0 5px, var(--paper) 5px); padding: 26px 26px 24px;
}
.info-card h3 { margin-bottom: .6em; display: flex; align-items: center; gap: 10px; }
.info-card h3::before { content: ""; flex: none; width: 16px; height: 16px; background: var(--saffron); clip-path: var(--star); }
.info-card ul { margin: 0; padding: 0; list-style: none; }
.info-card li { margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.info-card li::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--turq); transform: rotate(45deg); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 16px; }
@media (min-width: 600px) { .form-grid.two { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: 16px/1.4 var(--sans); color: var(--ink);
  background: var(--paper); border: 1.5px solid #D8C7A8; border-radius: 2px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--turq); box-shadow: 0 0 0 3px rgba(27, 138, 143, .2); }
.field .hint { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.hp { display: none !important; }

.panel { --cut: 20px; background: var(--paper); padding: 24px; }
@media (min-width: 768px) { .panel { padding: 32px; } }
.panel + .panel { margin-top: 20px; }
.panel h2 { font-size: 1.45rem; }

.form-status { --cut: 10px; margin-top: 14px; padding: 12px 16px; font-weight: 700; }
.form-status.ok { background: var(--turq-tint); color: var(--turq-deep); }
.form-status.err { background: var(--rose-tint); color: var(--rose-dark); }

/* Payment choice cards: the radio button is a little star that fills in when chosen */
.pay-options { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; }
.pay-option { position: relative; }
.pay-option input { position: absolute; opacity: 0; }
.pay-option label {
  --cut: 12px; --bw: 2px;
  display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; min-height: 56px;
  background: var(--paper); cursor: pointer;
}
.pay-option label::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px;
  clip-path: var(--star); background: var(--line); transition: background .15s, transform .2s;
}
.pay-option input:checked + label { --ring: var(--turq-dark); --bw: 2.5px; background: var(--turq-tint); }
.pay-option input:checked + label::before { background: var(--turq-dark); transform: rotate(22.5deg); }
.pay-option input:focus-visible + label { --ring: var(--saffron); --bw: 3.5px; }
.pay-option strong { display: block; }
.pay-option small { color: var(--muted); font-size: .88rem; }
.pay-badge { --pt: 6px; display: inline-block; margin-left: 6px; background: var(--saffron); color: var(--ink); font-size: .72rem; font-weight: 700; padding: 2px 12px; vertical-align: 2px; }

/* ---------- Basket / checkout ---------- */
.checkout { display: grid; gap: 20px; padding-bottom: 40px; }
@media (min-width: 960px) {
  .checkout { grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
  .checkout-summary { position: sticky; top: 96px; }
}
.line-items { list-style: none; margin: 0; padding: 0; }
.line-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line-item:first-child { padding-top: 0; }
.line-thumb { --cut: 10px; width: 72px; height: 72px; display: grid; place-items: center; overflow: hidden; }
.line-thumb svg { width: 80%; height: auto; }
.line-thumb img { width: 100%; height: 100%; object-fit: cover; }
.line-name { font-family: var(--serif); font-size: 1rem; line-height: 1.3; text-decoration: none; color: var(--ink); }
.line-meta { font-size: .88rem; color: var(--muted); }
.line-controls { display: flex; align-items: center; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.link-btn { background: none; border: 0; padding: 6px 2px; color: var(--rose); text-decoration: underline; cursor: pointer; font: inherit; font-size: .88rem; min-height: 36px; }
.line-total { font-weight: 700; align-self: start; }

.totals { margin: 0; }
.totals div { display: flex; justify-content: space-between; padding: 6px 0; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-weight: 700; }
.totals .grand { border-top: 2px solid var(--ink); margin-top: 8px; padding-top: 12px; font-size: 1.2rem; }
.totals .grand dt { color: var(--ink); font-weight: 700; }
.totals .discount dd { color: var(--turq-dark); }
.warn { --cut: 10px; background: var(--saffron-tint); padding: 10px 16px; font-size: .92rem; margin: 12px 0; }

.empty-state { text-align: center; padding: 48px 0 72px; }

/* Confirmation */
.confirm { max-width: 640px; margin: 0 auto; text-align: center; padding: 20px 0 56px; }
.confirm .panel { text-align: left; margin-top: 20px; }
.order-no { --pt: 10px; display: inline-block; font-weight: 700; background: var(--saffron-tint); padding: 4px 18px; letter-spacing: .05em; }
.bank-box { --cut: 12px; background: var(--turq-tint); padding: 16px 20px; margin-top: 12px; }
.bank-box dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 8px 0 0; }
.bank-box dt { color: var(--muted); }
.bank-box dd { margin: 0; font-weight: 700; }
.btn-whatsapp { background: #1FAF55; color: #fff; }
.btn-whatsapp:hover { background: #178C43; color: #fff; }

/* ---------- Contact ---------- */
#custom { scroll-margin-top: 96px; }
.contact-grid { display: grid; gap: 20px; padding-bottom: 40px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; } }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list > li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact-list > li:last-child { border-bottom: 0; }
.contact-list svg { width: 22px; height: 22px; color: var(--turq-dark); flex: none; margin-top: 2px; }
.contact-list a { font-weight: 700; }
.contact-list ul { list-style: none; padding: 0 !important; margin-top: 2px !important; }
.contact-list ul li { display: flex; align-items: center; gap: 10px; }
.contact-list ul li::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--turq); transform: rotate(45deg); }

.tabs { --pt: 20px; --ring: var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--cream); padding: 4px 10px; margin-bottom: 20px; }
.tabs button {
  --pt: 14px; position: relative; z-index: 1;
  min-height: 44px; border: 0; background: transparent; cursor: pointer;
  font: 700 .95rem var(--sans); color: var(--muted);
}
.tabs button[aria-selected="true"] { background: var(--rose); color: #fff; }
.tabs button:focus-visible { outline: none; background: var(--saffron); color: var(--ink); }
