/* Sweet Summer Sprinkles
   Calm serif + sans layout (direction C) with the old site's pink/brown stripes and turquoise. */

:root {
  --ink: #1c2b2b;
  --muted: #55625f;
  --line: #e3e9e8;
  --bg: #ffffff;
  --teal: #2aa9ac;        /* brand turquoise: fills and borders */
  --teal-ink: #17797c;    /* readable turquoise for text and buttons */
  --teal-dark: #0f5557;
  --pink: #ff69b4;
  --brown: #6b4a3a;
  --blush: #fcebf3;
  --blush-deep: #f6d3e3;
  --butter: #fbeccb;
  --sage: #eef2ef;
  --sun: #f7d58a;
  --radius: 6px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 24px);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-ink); }
a:hover { color: var(--teal-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; margin: 0; overflow-wrap: break-word; }
h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.05; color: var(--teal-ink); text-wrap: balance; }
h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.1; color: var(--teal-ink); text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 10; }
.skip:focus { top: 8px; }

/* Stripes from the original site */
.stripes { height: 14px; background: repeating-linear-gradient(90deg, var(--pink) 0 22px, var(--brown) 22px 44px); }
.announce { background: var(--teal); color: #0f2b2c; text-align: center; font-size: 14px; font-weight: 500; padding: 8px var(--gutter); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand img { height: 54px; width: auto; flex: none; }
.brand span { font-family: var(--serif); font-size: clamp(20px, 3.2vw, 26px); font-weight: 500; line-height: 1.1; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal-ink); text-decoration: underline; text-underline-offset: 6px; }
.nav { margin-left: auto; }
.cart-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; padding: 10px 0; white-space: nowrap; }
.cart-link:hover { color: var(--teal-ink); }
.cart-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--pink); color: #fff; font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; }
.cart-count[data-count="0"] { background: var(--line); color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 26px; border-radius: var(--radius); border: 1px solid var(--teal-ink); background: var(--teal-ink); color: #fff; font: 600 15px/1.2 var(--sans); text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--teal-ink); }
.btn-outline:hover { background: var(--teal-ink); color: #fff; }
.btn[disabled] { background: var(--line); border-color: var(--line); color: var(--muted); cursor: not-allowed; }

/* Hero */
.hero { background: var(--blush); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: stretch; }
.hero-text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; padding-block: clamp(40px, 8vw, 88px); }
.hero-text p { font-size: 18px; color: #3b4a4a; max-width: 28em; }
.hero-art { position: relative; min-height: 460px; }
.hero-art img { position: absolute; inset: 24px 0; width: 100%; height: calc(100% - 48px); object-fit: cover; }
.hero-art .sun { position: absolute; right: 8%; top: 12%; width: clamp(120px, 18vw, 220px); aspect-ratio: 1; border-radius: 50%; background: var(--sun); }
.hero-art .ground { position: absolute; inset: auto 0 0; height: 26%; background: var(--blush-deep); }
.hero-art .shelf { position: absolute; left: 6%; right: 6%; bottom: 17%; display: flex; align-items: flex-end; justify-content: center; gap: clamp(12px, 3vw, 26px); }

/* Drawn product stand-ins, used until real photos are added */
.art { display: flex; flex-direction: column; align-items: center; }
.art .cap { background: var(--ink); border-radius: 4px 4px 2px 2px; }
.art .body { background: linear-gradient(90deg, #8a4a17, #c27a35 45%, #9b5520); display: grid; place-items: center; }
.art .label { background: #fff; width: 64%; height: 38%; }
/* Lip balm: slim white tube with a white cap and a wrap-around label */
.art-balm .cap { width: 40px; height: 30px; background: #fff; border-radius: 5px 5px 1px 1px; box-shadow: 0 0 0 1px #ddd8d2, inset 0 -3px 0 #efebe6; }
.art-balm .body { width: 40px; height: 104px; margin-top: 2px; border-radius: 1px 1px 3px 3px; background: linear-gradient(90deg, #ebe7e2, #fff 35%, #fff 60%, #e9e5e0); box-shadow: 0 0 0 1px #ddd8d2; }
.art-balm .label { display: grid; place-items: center; width: 100%; height: 58%; background: var(--art-accent, var(--blush-deep)); }
.art-balm .label::after { content: ""; width: 26px; height: 26px; border-radius: 50%; background: #fdeee6; outline: 2px dotted rgba(255, 255, 255, .9); outline-offset: 1px; }
/* Lotion stick: white twist-up tube, two-tone label band with a pink badge, ring at the base */
.art-stick .cap { width: 56px; height: 32px; background: #fff; border-radius: 9px 9px 2px 2px; box-shadow: 0 0 0 1px #ddd8d2, inset 0 -3px 0 #efebe6; }
.art-stick .body { position: relative; width: 56px; height: 128px; margin-top: 2px; background: #fff; border-radius: 2px; box-shadow: 0 0 0 1px #ddd8d2; display: flex; align-items: flex-start; justify-content: center; padding-top: 12px; }
.art-stick .body::after { content: ""; position: absolute; left: -3px; right: -3px; bottom: -10px; height: 12px; background: #fff; border-radius: 2px 2px 4px 4px; box-shadow: 0 0 0 1px #ddd8d2; }
.art-stick .label { display: grid; place-items: center; width: 100%; height: 68px; background: linear-gradient(90deg, #7fd0e3 0 50%, #f2ea9a 50%); }
.art-stick .label::after { content: ""; width: 32px; height: 28px; border-radius: 42%; background: #e9557f; outline: 2px dotted rgba(255, 255, 255, .85); outline-offset: -5px; }
/* Paw creme: squat silver round tin seen from slightly above, lid with a round label */
.art-tin .cap { position: relative; z-index: 1; width: 120px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 1px #9ea4a9;
  background: radial-gradient(ellipse 30% 32% at 50% 50%, var(--art-accent, var(--pink)) 96%, transparent 100%), radial-gradient(ellipse at 40% 35%, #fbfcfc, #d5d9dc 55%, #a6acb1); }
.art-tin .body { width: 120px; height: 44px; margin-top: -20px; border-radius: 0 0 60px 60px / 0 0 18px 18px; box-shadow: 0 0 0 1px #9ea4a9;
  background: linear-gradient(180deg, transparent 0 26px, rgba(0, 0, 0, .14) 26px 28px, transparent 28px), linear-gradient(90deg, #969ca1, #eceef0 28%, #bfc4c8 55%, #f6f7f8 76%, #a1a7ac); }
.art-tin .label { display: none; }
/* Bath bundt: little fluted bundt cake with an icing top and the center hole */
.art-bundt .cap { position: relative; z-index: 1; width: 98px; height: 34px; margin-bottom: -16px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
  background: radial-gradient(ellipse 17% 24% at 50% 46%, color-mix(in srgb, var(--art-accent, var(--pink)) 55%, #5a3a2e) 92%, transparent 100%), radial-gradient(ellipse at 45% 35%, #fff, #f6eef2); }
.art-bundt .body { width: 124px; height: 62px; border-radius: 34px 34px 12px 12px / 30px 30px 8px 8px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .38) 0 6px, transparent 6px 10px, rgba(0, 0, 0, .1) 10px 15px), color-mix(in srgb, var(--art-accent, var(--pink)) 50%, #fff); }
.art-bundt .label { display: none; }
.art-jar .cap { width: 100px; height: 22px; } .art-jar .body { width: 112px; height: 92px; border-radius: 8px 8px 18px 18px; }
/* Hand soap: bar wrapped in kraft paper with folded corners and a colored label band */
.art-soap .cap { display: none; }
.art-soap .body { width: 132px; height: 70px; border-radius: 3px; box-shadow: 0 0 0 1px #c3a982, inset 0 3px 0 rgba(255, 255, 255, .35);
  background: linear-gradient(135deg, rgba(90, 60, 30, .16) 0 9px, transparent 9px), linear-gradient(225deg, rgba(90, 60, 30, .16) 0 9px, transparent 9px),
    linear-gradient(45deg, rgba(90, 60, 30, .16) 0 9px, transparent 9px), linear-gradient(315deg, rgba(90, 60, 30, .16) 0 9px, transparent 9px),
    linear-gradient(180deg, #e8d6b6, #d5bc93); }
.art-soap .label { display: grid; place-items: center; width: 42%; height: 100%; background: var(--art-accent, var(--pink)); }
.art-soap .label::after { content: ""; width: 78%; height: 52%; border-radius: 50%; background: #fff; }
.art-cozy .cap { width: 34px; height: 34px; border-radius: 50%; background: transparent; border: 5px solid #b9bfbf; margin-bottom: -6px; }
.art-cozy .body { width: 74px; height: 120px; border-radius: 10px 10px 18px 18px; background: repeating-linear-gradient(135deg, var(--art-accent, var(--teal)) 0 12px, #fff 12px 18px, var(--pink) 18px 30px, #fff 30px 36px); }
.art-cozy .label { display: none; }
/* zoom (not transform) so the drawings take up their scaled space and never overlap */
.art-big { zoom: 1.2; }
.hero-art .art-big { zoom: 1.6; }
.gallery .art-big { zoom: 2.2; }
@media (max-width: 960px) { .art-big { zoom: 1; } .hero-art .art-big { zoom: 1.3; } .gallery .art-big { zoom: 1.8; } }

/* Category tiles */
.categories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-block: clamp(40px, 6vw, 72px) 0; }
.cat-tile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 340px; color: var(--ink); text-decoration: none; background: var(--butter); }
.cat-wrap:nth-child(2) .cat-tile { background: var(--blush); }
.cat-tile .text { padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.cat-tile .meta { font-size: 14px; color: var(--muted); }
.cat-tile h2 { font-size: clamp(26px, 3vw, 34px); }
.cat-tile .go { font-weight: 600; color: var(--teal-ink); }
.cat-tile .pic { display: flex; align-items: flex-end; justify-content: center; gap: 14px; padding: 24px; }
.cat-tile .pic img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile:hover h2 { text-decoration: underline; text-underline-offset: 5px; }
.cat-tile .meta span { white-space: nowrap; }
.cat-wrap { container-type: inline-size; display: flex; }
.cat-wrap > .cat-tile { flex: 1; }
/* A narrow tile (tablet, or two side by side on a small laptop) puts the picture on top */
@container (max-width: 540px) {
  .cat-tile { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .cat-tile .pic { order: -1; height: 210px; padding: 20px 20px 0; }
  .cat-tile .pic img { height: 190px; }
}

/* Product grid and cards */
.section { padding-block: clamp(40px, 6vw, 72px); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 24px; }
.section-head p { color: var(--muted); max-width: 40em; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
.card { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card .media { aspect-ratio: 1 / 1; background: var(--card-tint, var(--sage)); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 14%; overflow: hidden; }
.card .media img { width: 100%; height: 100%; object-fit: cover; }
.card .media:has(img) { padding: 0; }
.card .kind { font-size: 13px; color: var(--muted); }
.card .title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card h3 { font-size: 19px; font-weight: 500; line-height: 1.25; min-height: 2.5em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--teal-ink); text-decoration: underline; }
.card .price { font-weight: 600; white-space: nowrap; padding-top: 2px; }
.card .stock { font-size: 13px; color: #9a3d12; min-height: 1.4em; }
.card .btn { margin-top: auto; width: 100%; }
.badge-sold { font-size: 13px; color: var(--muted); }
.filter { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.filter input { font: 16px var(--sans); padding: 12px 14px; border: 1px solid #b9c4c2; border-radius: var(--radius); width: min(100%, 360px); }
.empty { color: var(--muted); padding: 24px 0; }

/* Promises and story */
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 8px clamp(40px, 6vw, 72px); }
.promises div { border-top: 3px solid var(--teal); padding-top: 16px; }
.promises h3 { font-size: 22px; color: var(--teal-ink); margin-bottom: 6px; }
.promises p { color: var(--muted); }
.story { background: var(--teal); color: #0f2b2c; }
.story .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 48px); align-items: center; padding-block: clamp(48px, 7vw, 80px); }
.story h2 { color: #0f2b2c; margin-bottom: 14px; }
.story p { font-size: 18px; margin-bottom: 16px; }
.story a { color: #0f2b2c; font-weight: 600; }
.story .photo { min-height: 320px; background: #8fd6d8; display: grid; place-items: center; }
.story .photo img { width: 100%; height: 100%; object-fit: cover; }

/* Product page */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 16px; }
.crumbs a { color: var(--muted); }
.product { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 56px); padding-block: 20px clamp(48px, 7vw, 80px); }
.gallery .main { aspect-ratio: 1 / 1; background: var(--card-tint, var(--blush)); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 18%; overflow: hidden; }
.gallery .main:has(img) { padding: 0; aspect-ratio: 4 / 5; background: #f4efe9; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.thumbs button { padding: 0; border: 2px solid transparent; background: none; cursor: pointer; aspect-ratio: 1; }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy { display: flex; flex-direction: column; gap: 16px; }
.buy h1 { font-size: clamp(32px, 5vw, 48px); }
.buy .price { font-size: 26px; font-weight: 600; }
.buy .lead { font-size: 18px; }
.buy-row { display: flex; flex-wrap: wrap; gap: 12px; }
.qty { display: inline-flex; align-items: center; border: 1px solid #b9c4c2; border-radius: var(--radius); height: 48px; }
.qty button { width: 46px; height: 46px; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--ink); }
.qty input { width: 44px; border: 0; text-align: center; font: 600 16px var(--sans); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-row .btn { flex: 1 1 200px; }
.rich { color: #33403f; }
.rich p { margin-bottom: 12px; }

/* Cart */
.cart { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 48px); align-items: start; padding-block: 24px clamp(48px, 7vw, 80px); }
.cart-line { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.cart-line .thumb { width: 88px; height: 88px; background: var(--card-tint, var(--sage)); overflow: hidden; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; }
.cart-line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line .thumb .art { zoom: 0.5; }
.cart-line .name { font-family: var(--serif); font-size: 18px; line-height: 1.25; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.cart-line .controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 8px; }
.cart-line .qty { height: 40px; } .cart-line .qty button { width: 38px; height: 38px; } .cart-line .qty input { width: 34px; }
.link-btn { border: 0; background: none; padding: 8px 0; color: var(--teal-ink); text-decoration: underline; font: 14px var(--sans); cursor: pointer; }
.cart-line .total { font-weight: 600; white-space: nowrap; }
.summary { background: #f3f9f9; padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 12px; }
.summary h2 { font-size: 26px; }
.summary .row { display: flex; justify-content: space-between; gap: 12px; }
.summary .row span:last-child { font-weight: 600; white-space: nowrap; }
.summary .total-row { border-top: 2px solid var(--ink); padding-top: 12px; font-size: 19px; }
.summary .note { font-size: 14px; color: var(--muted); }
.delivery { border: 0; padding: 0; margin: 0 0 4px; display: grid; gap: 8px; min-width: 0; }
.delivery legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.delivery label { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); cursor: pointer; }
.delivery label:has(input:checked) { border-color: var(--teal-ink); box-shadow: inset 0 0 0 1px var(--teal-ink); }
.delivery input { margin-top: 3px; accent-color: var(--teal-ink); flex: none; width: 18px; height: 18px; }
.delivery span { min-width: 0; }
.delivery strong { display: block; font-weight: 600; }
.delivery small { display: block; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.free-nudge { margin: 0; font-size: 14px; color: var(--teal-ink); font-weight: 600; }
.notice { padding: 14px 16px; border-radius: var(--radius); background: #fff4e5; color: #6b3a00; }
.notice.ok { background: #e7f6ef; color: #0e5132; }
#paypal-buttons { min-height: 50px; }

/* Content pages */
.page { max-width: 760px; padding-block: clamp(32px, 5vw, 56px) clamp(48px, 7vw, 80px); }
.page h1 { margin-bottom: 20px; }

/* Footer */
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 32px; padding-block: 40px; font-size: 15px; }
.site-footer .brand img { height: 40px; }
.site-footer .brand span { font-size: 21px; color: var(--teal-ink); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: center; }
.site-footer nav a { padding: 8px 0; }
.site-footer .contact { color: var(--muted); margin-top: 6px; overflow-wrap: anywhere; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--radius); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); z-index: 20; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.toast a { color: #fff; font-weight: 600; margin-left: 10px; }

/* Tablet */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .categories { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero-text { padding-bottom: 8px; }
  .hero-art { min-height: 300px; }
}

/* Phone */
@media (max-width: 680px) {
  .site-header .wrap { padding-block: 12px; }
  .brand img { height: 44px; }
  .nav { order: 3; width: 100%; margin-left: 0; justify-content: space-between; gap: 4px 16px; }
  .brand { flex: 1; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .card h3 { font-size: 16px; }
  .card .title-row { flex-direction: column; gap: 2px; }
  .card .btn { min-height: 44px; padding-inline: 8px; font-size: 14px; }
  .art-big, .cat-tile .pic .art-big { zoom: .8; }
  .hero-art .art-big { zoom: 1.05; }
  .gallery .art-big { zoom: 1.5; }
  .cat-tile { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .cat-tile .pic { order: -1; height: 200px; padding: 16px 16px 0; }
  .promises, .story .wrap, .product, .cart { grid-template-columns: minmax(0, 1fr); }
  .story .photo { min-height: 220px; }
  .cart-line { grid-template-columns: 64px minmax(0, 1fr); }
  .cart-line .thumb { width: 64px; height: 64px; }
  .cart-line .total { grid-column: 2; }
  .hero-art { min-height: 240px; }
}

@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
