/* MamaGaga - public site
   Palette comes from the product photos: garments laid on dark navy boards,
   the poppy red of the old shop, and eucalyptus green for the oils. */
:root {
  --ink: #000;
  --text: #1f1f1f;
  --muted: #5c5c5c;
  --board: #111;
  --board-2: #1c1c1c;
  --poppy: #000;
  --poppy-dark: #333;
  --sun: #fff;
  --leaf: #000;
  --leaf-dark: #000;
  --leaf-soft: #f0f0f0;
  --leaf-mid: #8a8a8a;
  --paper: #fff;
  --chalk: #f3f3f3;
  --line: #d9d9d9;
  --display: "Bricolage Grotesque", "Poppins", system-ui, sans-serif;
  --body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --r: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.015em; font-weight: 800; }
h1, .h1 { font-size: clamp(2.1rem, 4.2vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: 0; line-height: 1.25; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid #000; outline-offset: 3px; box-shadow: 0 0 0 5px #fff; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  font: 600 1rem/1.2 var(--body); text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: var(--r); cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-poppy { background: var(--poppy); color: #fff; }
.btn-poppy:hover { background: var(--poppy-dark); }
.btn-leaf { background: var(--leaf); color: #fff; }
.btn-leaf:hover { background: var(--leaf-dark); }
.btn-ink { background: var(--board); color: #fff; }
.btn-ink:hover { background: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--board); border-color: #fff; }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0 0; }
.more { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.more:hover { text-decoration-thickness: 3px; }

/* ---------- woven label (the little sewn-in tag on every garment) ---------- */
.tag {
  display: inline-block; padding: 5px 12px;
  font: 600 .78rem/1.3 var(--body); letter-spacing: .02em;
  color: #fff; background: var(--ink);
  border-left: 2px dashed rgba(255,255,255,.55); border-right: 2px dashed rgba(255,255,255,.55);
}
.tag-pre, .tag-light { background: #fff; color: var(--ink); border-color: rgba(0,0,0,.45); }
.tag-sold { background: #e6e6e6; color: var(--ink); border-color: rgba(0,0,0,.35); }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.logo img { width: 185px; height: auto; }
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a { font-weight: 500; text-decoration: none; padding: 8px 0; border-bottom: 3px solid transparent; }
.site-nav a:hover { border-color: var(--line); }
.site-nav a[aria-current="page"] { border-color: var(--ink); color: var(--ink); }
.cart-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; padding: 10px 14px; border: 2px solid var(--ink); border-radius: var(--r); }
.cart-link:hover { background: var(--ink); color: #fff; }
.cart-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; background: var(--ink); color: #fff; border-radius: 11px; font-size: .78rem; }
.cart-link:hover .cart-count { background: #fff; color: var(--ink); }
.nav-toggle { display: none; margin-left: auto; min-height: 44px; padding: 8px 14px; font: 600 1rem var(--body); background: none; border: 2px solid var(--ink); border-radius: var(--r); cursor: pointer; }

.flash-wrap { padding-top: 16px; }
.flash { margin: 0 0 8px; padding: 12px 16px; border-radius: var(--r); border-left: 5px solid var(--ink); background: var(--chalk); font-weight: 500; }
.flash-err { background: #fff; border: 2px solid var(--ink); border-left-width: 6px; }

/* ---------- hero: two shops joined by a seam ---------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; position: relative; }
.hero-half { position: relative; display: flex; flex-direction: column; gap: 32px; padding: 64px clamp(24px, 5vw, 72px) 56px; min-height: 560px; overflow: hidden; }
.hero-boutique { background: #000; color: #e8e8e8; }
.hero-boutique h1 { color: #fff; }
.hero-oils { background: #fff; }
.hero-oils .h1 { color: var(--ink); }
.hero-text { max-width: 30rem; position: relative; z-index: 2; }
.hero-text p { font-size: 1.05rem; }
.shop-name { margin-bottom: 1.2em; }
.shop-name .tag { font-size: .9rem; padding: 6px 14px; }
/* the seam: one row of running stitch on each side of the join */
.hero-boutique::after, .hero-oils::before {
  content: ""; position: absolute; top: 0; bottom: 0; width: 3px; z-index: 3;
}
.hero-boutique::after { right: 9px; background: repeating-linear-gradient(to bottom, #fff 0 13px, transparent 13px 22px); }
.hero-oils::before { left: 9px; background: repeating-linear-gradient(to bottom, #000 0 13px, transparent 13px 22px); }

.patchwork { display: grid; gap: 0; margin-top: auto; max-width: 560px; border: 3px dashed #fff; padding: 8px; }
.patchwork-light { border-color: #000; }
.patchwork-light img { border-color: #fff; }
.hero-photo { margin-top: auto; max-width: 560px; border: 3px dashed #000; padding: 8px; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.patchwork-3 { grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; }
.patchwork-3 img:first-child { grid-row: 1 / 3; }
.patchwork-2 { grid-template-columns: 1fr 1fr; }
.patchwork img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border: 4px solid #000; }

/* ---------- bands ---------- */
.band { padding: clamp(48px, 7vw, 88px) 0; }
.band-tight { padding: 40px 0 56px; border-top: 1px solid var(--line); }
.band-leaf { background: var(--chalk); }
.band-board { background: #000; color: #e0e0e0; }
.band-board h2 { color: #fff; }
.band-chalk { background: var(--chalk); }
.band-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 28px; }
.band-head h1, .band-head h2 { margin: 0; }
.page-head { padding: clamp(36px, 5vw, 64px) 0 8px; }
.page-head p { max-width: 42rem; font-size: 1.05rem; color: var(--muted); }
.page-head.is-leaf { background: var(--chalk); padding-bottom: 28px; }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; }
.card-link { display: block; text-decoration: none; }
.card-photo { position: relative; aspect-ratio: 1; background: var(--chalk); border-radius: var(--r); overflow: hidden; margin-bottom: 12px; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.card-link:hover .card-photo img { transform: scale(1.03); }
.card-photo .tag { position: absolute; left: 0; top: 14px; }
.band-leaf .card-photo, .is-oils .card-photo { background: #fff; border: 1px solid var(--line); }
.no-photo { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .9rem; }
.card h3 { font: 500 1rem/1.35 var(--body); color: var(--text); margin: 0 0 4px; }
.card-link:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.card-meta { display: flex; justify-content: space-between; gap: 10px; margin: 0; font-size: .9rem; color: var(--muted); }
.price { font-weight: 600; color: var(--ink); font-size: 1rem; }
.card.is-sold .card-photo img { opacity: .55; }
.empty { padding: 48px 24px; text-align: center; background: var(--chalk); border-radius: var(--r); }
.empty p { max-width: 30rem; margin-inline: auto; }

/* filter chips */
.filters { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin: 0 0 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips b { font-weight: 600; font-size: .9rem; margin-right: 2px; }
.chip { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 14px; font-size: .92rem; font-weight: 500; text-decoration: none; border: 1.5px solid var(--line); border-radius: 19px; background: #fff; }
.chip:hover { border-color: var(--ink); }
.chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.search { display: flex; gap: 8px; margin-left: auto; }
.search input { min-height: 40px; }

/* ---------- custom-made ---------- */
.custom-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.custom-copy p { max-width: 32rem; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; padding: 18px 0; border-top: 2px dashed rgba(255,255,255,.35); }
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps li::before { content: counter(step); grid-row: 1 / 3; font: 800 2.2rem/1 var(--display); color: #fff; }
.steps b { font-weight: 600; color: #fff; }
.steps span { font-size: .95rem; }
.steps-light li { border-top-color: var(--line); }
.steps-light li::before { color: var(--ink); }
.steps-light b { color: var(--ink); }

.soon { background: #fff; border: 2px dashed var(--ink); padding: 32px; max-width: 620px; }
.soon h3 { font-size: 1.4rem; font-family: var(--display); }
.soon p:last-child { margin: 0; }

.story-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.story-split img { border-radius: var(--r); width: 100%; }

.promises { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.promises h3 { margin-bottom: 4px; }
.promises p { margin: 0; font-size: .93rem; color: var(--muted); }

/* ---------- product page ---------- */
.crumbs { font-size: .9rem; color: var(--muted); padding: 22px 0 0; }
.crumbs a { text-underline-offset: 3px; }
.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); padding: 24px 0 72px; align-items: start; }
.gallery-main { position: relative; aspect-ratio: 1; background: var(--chalk); border-radius: var(--r); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .tag { position: absolute; left: 0; top: 18px; font-size: .88rem; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.thumbs button { width: 76px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: var(--r); overflow: hidden; background: none; cursor: pointer; }
.thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.product-price { font: 800 1.9rem/1 var(--display); color: var(--ink); margin: 0 0 18px; }
.facts { list-style: none; margin: 0 0 22px; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.facts b { flex: 0 0 110px; font-weight: 600; }
.buy { display: flex; gap: 12px; align-items: stretch; margin: 0 0 18px; }
.qty { display: inline-flex; border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.qty button { width: 44px; border: 0; background: #fff; font: 600 1.2rem var(--body); cursor: pointer; }
.qty button:hover { background: var(--chalk); }
.qty input { width: 52px; border: 0; text-align: center; font: 600 1rem var(--body); -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.note { padding: 14px 16px; background: var(--chalk); border-left: 4px solid var(--ink); font-size: .95rem; }
.note p:last-child { margin: 0; }
.prose { max-width: 44rem; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }

/* ---------- forms ---------- */
label { display: block; font-weight: 500; font-size: .95rem; margin-bottom: 6px; }
label small, .hint { font-weight: 400; color: var(--muted); font-size: .88rem; }
span.hint { display: block; margin-top: 6px; }
input[type=file] { font: inherit; font-size: .92rem; max-width: 100%; padding: 10px 0; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=search], input[type=password], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  font: 400 1rem/1.4 var(--body); color: var(--text);
  background: #fff; border: 1.5px solid #b9beba; border-radius: var(--r);
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); box-shadow: none; }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 32px); }
.errors { padding: 14px 16px; margin: 0 0 20px; background: #fff; border: 2px solid var(--ink); border-left-width: 6px; }
.errors ul { margin: 0; padding-left: 1.1em; }
.radio { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r); margin-bottom: 10px; cursor: pointer; font-weight: 400; }
.radio:has(input:checked) { border-color: var(--ink); background: var(--chalk); }
.radio input { margin-top: 4px; width: 18px; height: 18px; accent-color: #000; }
.radio span { flex: 1; }
.radio b { font-weight: 600; float: right; }

/* ---------- cart + checkout ---------- */
.two-col { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; padding-bottom: 72px; }
.lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line-photo { width: 88px; height: 88px; border-radius: var(--r); overflow: hidden; background: var(--chalk); }
.line-photo img { width: 100%; height: 100%; object-fit: cover; }
.line h3 { font: 500 1rem/1.3 var(--body); margin: 0 0 2px; }
.line h3 a { text-decoration: none; }
.line h3 a:hover { text-decoration: underline; }
.line small { color: var(--muted); }
.line-end { text-align: right; display: grid; gap: 8px; justify-items: end; }
.line-end form { display: flex; gap: 8px; align-items: center; }
.linkish { background: none; border: 0; padding: 0; font: inherit; font-size: .88rem; color: var(--muted); text-decoration: underline; cursor: pointer; }
.linkish:hover { color: var(--ink); }
.summary { background: var(--chalk); border-radius: var(--r); padding: 24px; position: sticky; top: 100px; }
.summary h2 { font-size: 1.3rem; }
.sum-row { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; }
.sum-row span:last-child, .sum-items li span:last-child, .price { white-space: nowrap; }
.sum-row.total { margin-top: 10px; padding-top: 14px; border-top: 2px solid var(--board); font-weight: 600; font-size: 1.15rem; color: var(--ink); }
.sum-items { list-style: none; margin: 0 0 12px; padding: 0 0 12px; border-bottom: 1px solid var(--line); font-size: .93rem; }
.sum-items li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.status-pill { display: inline-block; padding: 5px 12px; border-radius: 14px; font-weight: 600; font-size: .88rem; background: #fff; color: var(--ink); border: 2px solid var(--ink); }
.status-pill.is-good { background: var(--ink); color: #fff; }
.status-pill.is-off { background: #e6e6e6; border-color: #e6e6e6; }
.paying { text-align: center; padding: 96px 24px; }

/* ---------- story ---------- */
.story-hero { position: relative; }
.story-hero img { width: 100%; max-height: 420px; object-fit: cover; }
.chapter { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(36px, 5vw, 64px) 0; border-bottom: 2px dashed var(--line); }
.chapter:last-of-type { border-bottom: 0; }
.chapter:nth-of-type(even) .chapter-photo { order: 2; }
.chapter-photo img { width: 100%; border-radius: var(--r); }
.chapter p { max-width: 36rem; }
.contact-split { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(28px, 5vw, 72px); align-items: start; padding-bottom: 72px; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list b { display: block; font-weight: 600; color: var(--ink); }

/* ---------- footer ---------- */
.site-foot { background: #000; color: #c9c9c9; padding: 56px 0 0; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.foot-brand img { width: 185px; margin-bottom: 16px; }
.foot-brand p { max-width: 20rem; }
.site-foot h2 { font: 600 1rem/1.3 var(--body); color: #fff; letter-spacing: 0; margin: 0 0 12px; }
.site-foot nav a { display: block; padding: 4px 0; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.site-foot a { text-decoration: none; }
.foot-social { display: flex; gap: 16px; }
.foot-social a { text-decoration: underline; text-underline-offset: 4px; color: #fff; }
.foot-base { position: relative; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 18px; padding-bottom: 22px; font-size: .88rem; }
.foot-base::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; border-top: 2px dashed rgba(255,255,255,.2); }
.foot-base p { margin: 0; }
.credit { display: inline-flex; align-items: center; gap: 6px; }
.credit a { text-decoration: underline; text-underline-offset: 3px; }
.credit .gear { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-left: 4px; color: #8a8a8a; border-radius: 50%; }
.credit .gear:hover { color: #fff; background: rgba(255,255,255,.1); }

/* ---------- small screens ---------- */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .hero-half { min-height: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .promises { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 16px; box-shadow: 0 12px 20px rgba(22,32,43,.12); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { border-color: var(--line); font-weight: 600; }
  .head-row { gap: 12px; min-height: 68px; }
  .logo img { width: 150px; }
  .cart-link span { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-half { padding: 44px 24px 40px; }
  /* stacked: the seam runs across instead of down */
  .hero-boutique::after { top: auto; bottom: 9px; left: 0; right: 0; width: auto; height: 3px; background: repeating-linear-gradient(to right, #fff 0 13px, transparent 13px 22px); }
  .hero-oils::before { bottom: auto; top: 9px; left: 0; right: 0; width: auto; height: 3px; background: repeating-linear-gradient(to right, #000 0 13px, transparent 13px 22px); }
  .custom-split, .story-split, .product, .two-col, .chapter, .contact-split { grid-template-columns: 1fr; }
  .chapter:nth-of-type(even) .chapter-photo { order: 0; }
  .summary { position: static; }
  .search { margin-left: 0; width: 100%; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 24px 14px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .soon { padding: 24px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .promises { grid-template-columns: 1fr; gap: 16px; }
  .line { grid-template-columns: 64px 1fr; }
  .line-photo { width: 64px; height: 64px; }
  .line-end { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
  .card-meta { flex-direction: column; gap: 0; }
  .buy { flex-wrap: wrap; }
  .buy .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* black-on-black: the main button inverts on dark panels */
.hero-boutique .btn-poppy, .band-board .btn-poppy, .site-foot .btn-poppy { background: #fff; color: #000; border-color: #fff; }
.hero-boutique .btn-poppy:hover, .band-board .btn-poppy:hover { background: #e6e6e6; border-color: #e6e6e6; }
.hero-boutique .tag-light { background: #fff; color: #000; }
