:root {
  --blush: #FCE4EA;
  --rose: #EE93A9;
  --peach: #FFE3D1;
  --apricot: #F9A979;
  --cream: #FFFAF6;
  --berry: #6E2E48;
  --berry-dark: #4A1D30;
  --muted: #7A4A5C;
  --line: #F3D3DC;
  --white: #FFFFFF;
  --radius: 22px;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--berry);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--berry); }
a:hover { color: var(--berry-dark); }
:focus-visible { outline: 3px solid var(--apricot); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.section { padding: 48px 20px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--berry); color: var(--cream); padding: 10px 16px; z-index: 50; }
.skip:focus { left: 12px; top: 12px; }

/* Header */
.announce { background: var(--berry); color: var(--cream); text-align: center; font-size: 14px; font-weight: 700; padding: 9px 16px; }
.site-header { background: var(--cream); border-bottom: 1.5px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--berry); }
.logo-name { font-family: var(--serif); font-weight: 600; font-size: 22px; letter-spacing: .14em; line-height: 1; white-space: nowrap; }
.logo-co { font-family: var(--serif); font-weight: 500; font-size: 13px; letter-spacing: .3em; }
.bow path, .bow rect { fill: var(--rose); stroke: var(--berry); stroke-width: 1.8; stroke-linejoin: round; }
.logo-bow { width: 38px; height: 26px; flex-shrink: 0; }
.main-nav { display: flex; flex-wrap: wrap; gap: 2px 20px; font-weight: 800; font-size: 15px; }
.main-nav a { text-decoration: none; padding: 10px 0; }
.main-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cart-link { text-decoration: none; font-weight: 800; border: 2px solid var(--berry); border-radius: 999px; padding: 9px 18px; display: inline-flex; align-items: center; gap: 8px; }
.cart-count { background: var(--berry); color: var(--cream); border-radius: 999px; min-width: 24px; height: 24px; display: inline-grid; place-items: center; font-size: 13px; padding: 0 6px; }
@media (max-width: 860px) {
  .site-header { position: static; }
  .header-row { column-gap: 12px; }
  .cart-link { padding: 8px 14px; }
  .main-nav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; gap: 18px; padding-bottom: 2px; }
  .main-nav a { white-space: nowrap; }
  .logo-name { font-size: 18px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 28px; border-radius: 999px; border: 2px solid var(--berry); background: var(--berry); color: var(--cream); font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--berry-dark); border-color: var(--berry-dark); color: var(--cream); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-outline { background: transparent; color: var(--berry); }
.btn-outline:hover { background: var(--berry); color: var(--cream); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn-row.center { justify-content: center; }
.text-link { font-weight: 800; }

/* Home */
.hero { background: var(--blush); }
.hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding-top: 56px; padding-bottom: 56px; }
.hero-copy { flex: 1 1 420px; }
.hero-copy h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: 18px; }
.eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.lede { font-size: 18px; max-width: 34em; margin: 0; }
.center .lede { margin: 0 auto; }
.hero-art { flex: 1 1 340px; }
.hero-card { background: var(--peach); border-radius: 32px; min-height: 340px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 32px; text-align: center; }
.hero-card span { font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: .14em; }
.hero-card small { font-family: var(--serif); font-size: 18px; letter-spacing: .5em; }
.hero-bow { width: 130px; height: 90px; }
.section-title { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.age-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 18px; }
.age-tile { border-radius: var(--radius); padding: 26px; min-height: 150px; text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; transition: transform .15s ease; }
.age-tile:hover { transform: translateY(-3px); }
.tile-blush { background: var(--blush); }
.tile-peach { background: var(--peach); }
.age-range { font-family: var(--serif); font-weight: 600; font-size: 34px; }
.age-label { font-weight: 800; font-size: 17px; }
.story-band { background: var(--peach); margin-top: 24px; }
.story-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; padding-top: 48px; padding-bottom: 48px; }
.story-grid > div { flex: 1 1 360px; max-width: 640px; }
.story-bow { width: 110px; height: 76px; }

/* Product grid */
.page-title { font-size: clamp(2rem, 4vw, 2.8rem); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 28px; }
.filters a { text-decoration: none; font-weight: 800; border: 2px solid var(--line); background: var(--white); border-radius: 999px; padding: 9px 18px; min-height: 44px; display: inline-flex; align-items: center; }
.filters a[aria-current="true"] { background: var(--berry); color: var(--cream); border-color: var(--berry); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 28px 20px; margin-top: 20px; }
.card { text-decoration: none; display: flex; flex-direction: column; gap: 10px; }
.card-img { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--blush); display: grid; place-items: center; }
.card:nth-child(even) .card-img { background: var(--peach); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card:hover .card-img img { transform: scale(1.03); }
.card-title { font-weight: 700; line-height: 1.35; }
.card-price { font-weight: 800; }
.placeholder-art { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); text-align: center; padding: 16px; }
.placeholder-art .bow { width: 80px; height: 55px; }
.loading, .empty { color: var(--muted); font-weight: 700; }
.notice { background: var(--peach); border-radius: 16px; padding: 12px 16px; font-weight: 700; font-size: 15px; margin: 0 0 20px; }
.placeholder-note { background: var(--peach); border: 2px dashed var(--apricot); border-radius: 16px; padding: 16px; }

/* Product page */
.product-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.gallery { flex: 1 1 420px; min-width: 0; }
.gallery-main { aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: var(--blush); display: grid; place-items: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: 0 0 72px; height: 88px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--blush); cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--berry); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy { flex: 1 1 360px; min-width: 0; }
.buy h1 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.price { font-size: 24px; font-weight: 800; margin: 0 0 20px; }
.opt { border: 0; padding: 0; margin: 0 0 20px; }
.opt legend { font-weight: 800; margin-bottom: 10px; padding: 0; }
.opt legend span { font-weight: 600; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { min-height: 44px; min-width: 52px; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--white); color: var(--berry); font: inherit; font-weight: 700; cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--berry); background: var(--berry); color: var(--cream); }
.chip.unavailable { text-decoration: line-through; opacity: .55; }
.swatch { width: 44px; height: 44px; min-width: 44px; padding: 0; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; position: relative; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--berry); }
.swatch.unavailable::after { content: ''; position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; background: var(--berry); transform: rotate(-45deg); }
.qty-row { display: flex; align-items: center; gap: 14px; margin: 4px 0 20px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 999px; background: var(--white); }
.qty button { width: 44px; height: 44px; border: 0; background: transparent; font: inherit; font-size: 20px; font-weight: 800; color: var(--berry); cursor: pointer; border-radius: 999px; }
.qty output { min-width: 32px; text-align: center; font-weight: 800; }
.desc { white-space: pre-line; color: var(--muted); margin-top: 28px; border-top: 1.5px solid var(--line); padding-top: 20px; }
.added { font-weight: 800; margin-top: 12px; min-height: 1.5em; }

/* Cart */
.cart-lines { list-style: none; padding: 0; margin: 0 0 24px; }
.cart-line { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1.5px solid var(--line); }
.cart-thumb { width: 88px; height: 104px; border-radius: 14px; overflow: hidden; background: var(--blush); display: grid; place-items: center; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .bow { width: 48px; height: 33px; }
.cart-info a { font-weight: 800; text-decoration: none; }
.cart-info p { margin: 2px 0 8px; color: var(--muted); font-size: 15px; }
.cart-side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.link-btn { background: none; border: 0; padding: 6px 0; font: inherit; font-size: 14px; font-weight: 700; color: var(--muted); text-decoration: underline; cursor: pointer; min-height: 44px; }
.summary { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 22px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.summary-row.total { font-weight: 800; font-size: 19px; border-top: 1.5px solid var(--line); padding-top: 12px; margin-top: 12px; }
.small { font-size: 14px; color: var(--muted); }
.error { color: #9B1C3B; font-weight: 700; }
@media (max-width: 560px) {
  .cart-line { grid-template-columns: 72px 1fr; }
  .cart-thumb { width: 72px; height: 88px; }
  .cart-side { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
}

/* Thanks, prose, forms */
.thanks-bow { width: 120px; height: 83px; margin: 0 auto 16px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose p { margin: 0 0 1em; }
.signoff { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; line-height: 1.3; }
.form { display: flex; flex-direction: column; gap: 6px; margin-top: 24px; }
.form label { font-weight: 800; margin-top: 10px; }
.form input, .form textarea, .form select { font: inherit; color: var(--berry); padding: 12px 16px; border: 2px solid var(--line); border-radius: 14px; background: var(--white); }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--berry); outline: none; }
.form input[type="file"] { padding: 10px 12px; }
.form .optional { font-weight: 400; color: var(--muted); }
.form .small { margin: 2px 0 0; }
.choice-group { border: 0; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 8px; }
.choice-group legend { font-weight: 800; margin-bottom: 6px; padding: 0; }
.form .choice { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; margin-top: 0; cursor: pointer; }
.form .choice input { margin-top: 4px; padding: 0; accent-color: var(--berry); }
.custom-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.custom-cta > div { flex: 1 1 320px; }
.form .btn { margin-top: 18px; align-self: flex-start; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: var(--berry); color: var(--cream); margin-top: 48px; }
.site-footer a { color: var(--cream); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 28px; padding-top: 44px; padding-bottom: 28px; }
.footer-brand p { margin: 14px 0 0; max-width: 26em; }
.logo-light { color: var(--cream); }
.logo-light .bow path, .logo-light .bow rect { stroke: var(--cream); }
.footer-col { display: flex; flex-direction: column; gap: 4px; }
.footer-col h2 { font-family: var(--sans); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 6px; }
.footer-col a { text-decoration: none; padding: 6px 0; font-weight: 600; }
.footer-col a:hover { text-decoration: underline; }
.footer-base { border-top: 1px solid rgba(255, 250, 246, .25); padding-top: 18px; padding-bottom: 24px; font-size: 14px; }
