/* Evergreen Stitch and Heron Clothing: shared look for every page. Cream, teal, mint and peach; Bodoni Moda headings. */
:root {
  --cream: #FFFCED;
  --teal: #11737A;
  --teal-bright: #1CAAAD;
  --mint: #C6E8DD;
  --peach: #F9C5B4;
  --peach-deep: #F3A78F;
  --evergreen: #0F3D2E;
  --ink: #2b3a37;
  --line: rgba(17, 115, 122, .18);
  --danger: #9b2c1f;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; font-weight: 300; font-size: 18px; line-height: 1.65; }
a { color: var(--teal); }
h1, h2, h3 { font-family: 'Bodoni Moda', Georgia, 'Times New Roman', serif; font-weight: 400; color: var(--teal); margin: 0; }
img { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header and footer */
header.site { background: var(--cream); padding: 14px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
header.site .brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
header.site .brand img { height: 64px; width: auto; display: block; }
header.site .brand span { font-family: 'Bodoni Moda', Georgia, serif; font-size: 26px; letter-spacing: -0.01em; color: var(--teal); }
header.site nav { display: flex; gap: 8px 26px; font-size: 16px; flex-wrap: wrap; align-items: center; }
header.site nav a { text-decoration: none; color: var(--teal); }
header.site nav a:hover { text-decoration: underline; }
header.site nav a.cart { font-weight: 600; }
.badge { display: inline-block; min-width: 1.5em; padding: 0 .45em; margin-left: .35em; background: var(--teal); color: var(--cream); border-radius: 999px; font-size: 13px; line-height: 1.6; text-align: center; }
.badge:empty, .badge[data-n="0"] { display: none; }

footer.site { background: var(--teal); color: var(--cream); text-align: center; padding: 34px 24px 40px; font-size: 15px; margin-top: 40px; }
footer.site a { color: var(--cream); }
footer.site .links { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; }
footer.site .fine { margin-top: 14px; opacity: .85; font-size: 14px; }

/* hero */
.hero { position: relative; background: linear-gradient(160deg, var(--peach) 0%, #f7d6c8 55%, var(--cream) 100%); padding: 70px 24px 120px; text-align: center; overflow: hidden; }
.hero.tall { padding: 96px 24px 150px; }
.hero h1 { font-size: clamp(40px, 8vw, 80px); letter-spacing: -0.03em; line-height: 1.02; color: var(--cream); text-shadow: 0 2px 24px rgba(79, 29, 14, .25); }
.hero.tall h1 { font-size: clamp(46px, 9vw, 92px); }
.hero p.sub { font-family: 'Bodoni Moda', Georgia, serif; font-size: clamp(18px, 3vw, 24px); color: var(--cream); margin: 16px auto 0; max-width: 620px; text-shadow: 0 1px 14px rgba(79, 29, 14, .25); }
.hero .where { margin-top: 12px; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--cream); opacity: .95; }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 100px; display: block; }

/* layout */
main { max-width: 1040px; margin: 0 auto; padding: 8px 24px 40px; }
main.narrow { max-width: 760px; }
.intro { text-align: center; max-width: 640px; margin: 34px auto 36px; }
.intro h2 { font-size: clamp(28px, 5vw, 42px); letter-spacing: -0.02em; }
.intro p { margin: 12px 0 0; }
.note { font-size: 15px; color: #52645f; }
.center { text-align: center; }

/* buttons */
.btn { display: inline-block; background: var(--teal); color: var(--cream); text-decoration: none; padding: 12px 30px; font: inherit; font-size: 16px; letter-spacing: .03em; border: 1px solid var(--teal); border-radius: 2px; cursor: pointer; }
.btn:hover { background: var(--evergreen); border-color: var(--evergreen); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.alt { background: transparent; color: var(--teal); }
.btn.alt:hover { background: var(--teal); color: var(--cream); }
.btn.small { padding: 8px 18px; font-size: 14px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: 15px; color: var(--teal); text-decoration: underline; cursor: pointer; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; }
.cards.big { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 0 0 22px; display: flex; flex-direction: column; text-align: center; overflow: hidden; }
.card.pad { padding: 34px 30px 32px; align-items: center; }
.card.pad img { height: 130px; width: auto; margin-bottom: 18px; }
.card.heron { background: var(--mint); border-color: transparent; }
.card h3 { font-size: 26px; letter-spacing: -0.02em; margin-top: 14px; padding: 0 16px; }
.card p { margin: 8px 0 18px; padding: 0 18px; flex: 1; font-size: 16px; }
.card .photo { aspect-ratio: 1 / 1; background: #f3efe2; width: 100%; object-fit: cover; display: block; }
.card .price { color: var(--teal); font-weight: 600; margin: 4px 0 0; }
.card .actions { padding: 0 18px; }
.tag { display: inline-block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; background: var(--mint); color: var(--evergreen); padding: 1px 10px; border-radius: 999px; margin-top: 12px; }
.empty { text-align: center; padding: 40px 12px; color: #52645f; }
.loading { text-align: center; padding: 40px 12px; color: #52645f; }

/* product dialog */
dialog.product { border: 0; border-radius: 8px; padding: 0; width: min(760px, 94vw); max-height: 92vh; background: var(--cream); color: var(--ink); }
dialog.product::backdrop { background: rgba(15, 61, 46, .55); }
dialog.product .inner { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
dialog.product .photo { width: 100%; height: 100%; min-height: 280px; object-fit: cover; background: #f3efe2; }
dialog.product .body { padding: 24px 26px 26px; overflow: auto; max-height: 92vh; }
dialog.product h2 { font-size: 30px; letter-spacing: -0.02em; }
dialog.product .close { position: absolute; top: 8px; right: 10px; background: rgba(255, 252, 237, .92); border: 0; font-size: 26px; line-height: 1; width: 36px; height: 36px; border-radius: 999px; cursor: pointer; color: var(--teal); }
@media (max-width: 640px) { dialog.product .inner { grid-template-columns: 1fr; } dialog.product .photo { min-height: 200px; max-height: 260px; } }

/* forms */
.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.formgrid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .formgrid { grid-template-columns: 1fr; } }
label.f { display: block; font-weight: 600; font-size: 15px; margin-bottom: 4px; }
label.f small { font-weight: 300; color: #52645f; }
input[type=text], input[type=tel], input[type=email], input[type=number], select, textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #b9c7c2; border-radius: 4px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 1px; }
textarea { min-height: 120px; resize: vertical; }
fieldset { border: 1px solid var(--line); border-radius: 6px; padding: 12px 16px 14px; margin: 0; background: #fff; }
legend { font-weight: 600; font-size: 15px; padding: 0 6px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 16px; }
.choice input { margin-top: 6px; width: 18px; height: 18px; flex: none; }
.choice small { display: block; color: #52645f; font-weight: 300; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -5000px; height: 0; overflow: hidden; }
.msg { border-radius: 6px; padding: 10px 14px; margin: 14px 0; font-size: 16px; }
.msg.err { background: #fdecea; border: 1px solid #f0b4ae; color: var(--danger); }
.msg.ok { background: #e3f3e8; border: 1px solid #a9d6b6; }
.msg.info { background: #fff; border: 1px solid var(--line); }
.hidden { display: none !important; }

/* cart */
.cartlist { background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.cartrow { display: grid; grid-template-columns: 72px 1fr auto auto; gap: 14px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.cartrow:last-child { border-bottom: 0; }
.cartrow img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; background: #f3efe2; }
.cartrow .what { font-size: 16px; line-height: 1.4; }
.cartrow .what small { display: block; color: #52645f; }
.cartrow select { width: 5em; padding: 6px 8px; }
.cartrow .line { font-weight: 600; min-width: 5em; text-align: right; }
@media (max-width: 560px) { .cartrow { grid-template-columns: 56px 1fr; } .cartrow img { width: 56px; height: 56px; } .cartrow .line { text-align: left; } }
.totals { margin: 18px 0 0 auto; max-width: 320px; font-size: 17px; }
.totals div { display: flex; justify-content: space-between; padding: 3px 0; }
.totals .grand { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; font-weight: 600; font-size: 20px; color: var(--teal); }
.stack > * + * { margin-top: 20px; }
.status { display: flex; gap: 10px; align-items: center; }
.spin { width: 18px; height: 18px; border: 3px solid var(--mint); border-top-color: var(--teal); border-radius: 50%; animation: spin 1s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 3s; } html { scroll-behavior: auto; } }
