/* Les Bouillottes de Jamila: sun patchwork. Yellow + cream quilt, cobalt ink, a touch of rose. */
:root {
  --sun: #f4b21b;
  --sun-soft: #fbd66b;
  --cream: #faefd2;
  --paper: #fff9ea;
  --ink: #1d2f7a;
  --ink-soft: #4b5b9c;
  --rose: #f08ba8;
  --line: #ecd79d;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.6 "Figtree", system-ui, sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: "Caprasimo", Georgia, serif; font-weight: 400; line-height: 1.1; margin: 0 0 .45em; letter-spacing: .005em; }
h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header + patchwork bands */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(16px, 4vw, 48px); background: var(--paper); }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Caprasimo", Georgia, serif; font-size: 1.35rem; text-decoration: none; }
.nav { display: flex; gap: 22px; font-weight: 600; font-size: .95rem; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.patch-band { height: 56px; background: url(/img/patch.svg) 0 0 / 112px 112px repeat-x var(--cream); }

main > section { padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 48px); }
main > section > * { max-width: 1160px; margin-left: auto; margin-right: auto; }

/* product: gallery + buy box */
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); align-items: start; max-width: 1256px; margin: 0 auto; padding-top: clamp(24px, 4vw, 48px) !important; }
.product > * { max-width: none; margin: 0; }
.quilt { background: url(/img/patch.svg) 0 0 / 96px 96px var(--cream); padding: clamp(14px, 2.4vw, 26px); border-radius: var(--radius); }
.quilt img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; box-shadow: 0 10px 28px rgba(29, 47, 122, .18); }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 14px; }
.thumb { padding: 0; border: 3px solid transparent; border-radius: 10px; background: none; cursor: pointer; overflow: hidden; }
.thumb img { aspect-ratio: 1; object-fit: cover; }
.thumb[aria-pressed="true"] { border-color: var(--ink); }

.buy { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 34px); position: sticky; top: 16px; }
.unique { display: inline-flex; align-items: center; gap: 8px; background: var(--rose); color: #fff; font-weight: 700; font-size: .9rem; padding: 5px 14px 5px 8px; border-radius: 999px; margin-bottom: 14px; }
.unique img { background: #fff; border-radius: 50%; padding: 2px; }
.price { font-family: "Caprasimo", Georgia, serif; font-size: 2.3rem; margin: 0 0 .4em; }
.lede { color: var(--ink-soft); }
.label { font-weight: 700; margin: 0 0 8px; }
.row { display: flex; align-items: center; gap: 14px; margin: 18px 0; }
.row .label { margin: 0; }
select, .relay-row input { font: inherit; color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: 12px; padding: 9px 12px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; margin-bottom: 8px; background: var(--paper); }
.choice:has(input:checked) { border-color: var(--ink); background: #fff; }
.choice input { accent-color: var(--ink); width: 20px; height: 20px; margin-top: 2px; flex: none; }
.choice strong { display: block; }
.hint { display: block; color: var(--ink-soft); font-size: .92rem; margin: 0; }
.gift { background: var(--cream); }
.zone { border: 0; padding: 0; margin: 20px 0 0; }
.relay { margin-top: 16px; }
.relay-row { display: flex; gap: 10px; flex-wrap: wrap; }
.relay-row input { width: 9em; border-radius: 999px; }
#relay-chosen { margin-top: 10px; }
.abroad { background: var(--cream); border-left: 5px solid var(--sun); border-radius: 10px; padding: 12px 14px; margin: 16px 0 0; font-size: .95rem; }
.total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.2rem; border-top: 2px dashed var(--line); padding-top: 16px; margin: 22px 0 16px; }
.btn { display: inline-block; font: 700 1rem "Figtree", sans-serif; border-radius: 999px; padding: 13px 24px; cursor: pointer; text-decoration: none; border: 2px solid var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--sun-soft); }
.btn.pay { width: 100%; background: var(--ink); color: var(--cream); font-size: 1.1rem; padding: 16px; }
.btn.pay:hover { background: #283f9e; }
.btn.pay:disabled { opacity: .6; cursor: not-allowed; }
.form-msg { min-height: 1.4em; color: #b3261e; font-weight: 600; margin: 10px 0 0; }
.secure { color: var(--ink-soft); font-size: .85rem; margin: 6px 0 0; }

/* story: a sun rises behind the text */
.story { background: var(--sun); position: relative; overflow: hidden; }
.story::before { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -120px; background: url(/img/sun.svg) center / contain no-repeat; filter: brightness(1.12) saturate(.8); opacity: .55; }
.story-inner { position: relative; max-width: 720px !important; background: var(--paper); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); box-shadow: 0 12px 0 var(--ink); }
.story-inner p { font-size: 1.08rem; }
.sign { font-family: "Caprasimo", Georgia, serif; font-size: 1.4rem; margin: 0; color: var(--ink); }

/* how to use */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--cream); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 12px; background: url(/img/sun.svg) center / contain no-repeat; font-family: "Caprasimo", Georgia, serif; font-size: 1.2rem; color: var(--ink); }
.steps p { margin: 0; }

/* delivery */
.ship { background: var(--cream); }
.ship-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ship-card { background: #fff; border-radius: var(--radius); padding: 24px; border-top: 8px solid var(--sun); }
.ship-card:nth-child(2) { border-top-color: var(--rose); }
.ship-card p { margin: 0; }

/* faq */
.faq details { border-bottom: 2px dashed var(--line); padding: 14px 0; }
.faq summary { font-weight: 700; cursor: pointer; font-size: 1.05rem; list-style-position: inside; }
.faq details p { margin: 10px 0 0; color: var(--ink-soft); }

.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 24px clamp(16px, 4vw, 48px) 36px; background: var(--cream); }
.foot p { margin: 0; }
.brand-foot { display: flex; align-items: center; gap: 8px; font-family: "Caprasimo", Georgia, serif; font-size: 1.15rem; }
.links { display: flex; gap: 20px; }

/* legal + thank-you pages */
.legal { max-width: 720px; margin: 0 auto; padding: 40px 16px 80px; }

/* Sendcloud relay picker: centred pop-up instead of full screen */
div:has(> #sendcloudshipping_service_point_map) {
  inset: 0 !important; display: flex !important; align-items: center; justify-content: center;
  background: rgba(29, 47, 122, .45) !important;
}
#sendcloudshipping_service_point_map {
  width: min(880px, 94vw) !important; height: min(620px, 82vh) !important;
  border: 0 !important; border-radius: 16px; box-shadow: 0 18px 50px rgba(29, 47, 122, .35); background: #fff;
}

@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; }
  .buy { position: static; }
  .steps, .ship-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .patch-band { height: 40px; background-size: 80px 80px; }
  .story::before { width: 320px; height: 320px; right: -110px; top: -90px; }
}
@media (max-width: 420px) {
  .brand { font-size: 1.1rem; }
  .thumbs { gap: 6px; }
}

.top-link { font-weight: 600; text-decoration: none; }
