:root {
  --paper: #FAF6EE;
  --paper-2: #F3ECDF;
  --card: #FFFDF8;
  --ink: #1F1D1B;
  --text-2: #4A4743;
  --graphite: #6B6863;
  --line: #E7DFCF;
  --brick: #B4472F;
  --brick-dark: #8E3622;
  --blush: #F2B8B5;
  --gold: #E8A33D;
  --sage-bg: #E4EBDC;
  --teal: #2F5D62;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hand: 'Caveat', cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.5; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--brick); }
a:hover { color: var(--brick-dark); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; color: var(--paper); }
.hand { font-family: var(--hand); font-weight: 700; font-size: 28px; color: var(--brick); line-height: 1; }
.hand.gold { color: var(--gold); }
.hand.blush { color: var(--blush); }
.muted { color: var(--text-2); }
.tiny { font-size: 13px; color: var(--graphite); }
.nm { font-family: var(--hand); font-weight: 700; fill: var(--ink); }
.ph { font-family: var(--sans); font-size: 12px; fill: var(--graphite); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 999px; font-family: var(--sans); font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer; border: 2px solid transparent; }
.btn-accent { background: var(--brick); color: var(--paper); }
.btn-accent:hover { background: var(--brick-dark); color: var(--paper); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #3a3633; color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn-ghost { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; font-family: var(--sans); font-weight: 700; font-size: 14px; cursor: pointer; color: var(--ink); }

/* Announcement + header */
.announce { background: var(--ink); color: var(--paper); text-align: center; font-size: 14px; padding: 8px 16px; }
.announce a { color: var(--blush); font-weight: 700; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-top { display: flex; align-items: center; gap: 24px; padding-top: 12px; padding-bottom: 12px; }
.logo-link { display: flex; align-items: center; min-height: 44px; flex: none; }
.logo-link img { height: 36px; width: auto; display: block; }
.search { flex: 1 1 auto; max-width: 620px; margin: 0 auto; display: flex; align-items: center; border: 2px solid var(--ink); border-radius: 999px; background: #fff; padding: 4px 4px 4px 18px; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font-family: var(--sans); font-size: 16px; color: var(--ink); min-height: 40px; }
.search input:focus { outline: none; }
.search:focus-within { outline: 3px solid var(--teal); outline-offset: 2px; }
.search button { flex: none; width: 44px; height: 40px; border: 0; border-radius: 999px; background: var(--brick); color: var(--paper); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; }
.icon-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; justify-content: center; padding: 0 8px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; position: relative; }
.icon-link:hover { color: var(--brick); }
.basket .count { position: absolute; top: 4px; right: 2px; background: var(--brick); color: var(--paper); font-size: 11px; font-weight: 800; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.cat-nav { border-top: 1px solid var(--line); }
.cat-scroll { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 6px; padding-bottom: 6px; }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-scroll a { flex: none; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; padding: 10px 14px; border-radius: 999px; white-space: nowrap; }
.cat-scroll a:hover { background: var(--paper-2); color: var(--ink); }
.cat-scroll a.cat-hot { background: var(--teal); color: var(--paper); }
@media (min-width: 1100px) { .cat-scroll { justify-content: center; } }
@media (max-width: 760px) {
  html { scroll-padding-top: 20px; }
  .site-header { position: static; }
  .header-top { flex-wrap: wrap; gap: 8px 12px; }
  .logo-link img { height: 32px; }
  .header-actions { margin-left: auto; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .icon-link span:not(.count) { display: none; }
}

/* Hero slideshow */
.hero-wrap { position: relative; margin-top: 20px; }
.slides { border-radius: 28px; overflow: hidden; }
.slide { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; min-height: 400px; padding: 48px 72px; }
.slide-copy { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.slide h1, .slide-title { font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.05; letter-spacing: -0.01em; }
.slide-copy > p:not(.hand) { font-size: 1.1rem; line-height: 1.6; max-width: 32rem; }
.slide-art { flex: 1 1 340px; min-width: 0; display: flex; justify-content: center; }
.slide-art svg { width: 100%; max-width: 440px; }
.slide-xmas { background: var(--teal); color: var(--paper); }
.slide-xmas .nm { fill: var(--ink); }
.slide-pets { background: #F6E3E1; }
.slide-preview { background: #F8E7C9; }
.slide-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(31,29,27,.18); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.slide-btn.prev { left: 36px; }
.slide-btn.next { right: 36px; }
.dots { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 4px; }
.dots button { width: 28px; height: 28px; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.dots button::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: rgba(31,29,27,.3); }
.dots button[aria-current="true"]::after { background: var(--brick); width: 24px; border-radius: 5px; }
@media (max-width: 760px) {
  .hero-wrap { padding-left: 12px; padding-right: 12px; margin-top: 12px; }
  .slide { padding: 32px 24px 56px; min-height: 0; }
  .slide-btn { display: none; }
}

/* Section heads */
.section { padding-top: 56px; padding-bottom: 8px; }
.center-head { text-align: center; display: flex; flex-direction: column; gap: 6px; margin-bottom: 24px; }
.center-head h2, .row-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.15; }
.center-head p { color: var(--text-2); }
.row-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 20px; }
.row-head > div:first-child { display: flex; flex-direction: column; gap: 4px; }

/* Gift tiles */
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); font-weight: 700; }
.tile-img { width: 100%; aspect-ratio: 1 / 1; border-radius: 18px; display: flex; align-items: center; justify-content: center; padding: 14px; transition: transform .15s; }
.tile:hover .tile-img { transform: translateY(-3px); }
.tile-img svg { width: 100%; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Product cards */
.grid.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 16px; }
.grid.row6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
@media (max-width: 1000px) { .grid.row6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid.products, .grid.row6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pcard { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pcard-img { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; border-radius: 16px; padding: 16px; transition: transform .15s; }
.pcard-img:hover { transform: translateY(-3px); }
.pcard-img svg { width: 100%; }
.badge { position: absolute; top: 10px; left: 10px; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.pcard h3 { font-family: var(--sans); font-weight: 700; font-size: 15px; line-height: 1.35; margin-top: 4px; }
.pcard h3 a { color: var(--ink); text-decoration: none; }
.pcard h3 a:hover { color: var(--brick); text-decoration: underline; }
.pmeta { font-size: 13px; color: var(--graphite); }
.price { font-weight: 800; font-size: 15px; color: var(--brick); }
.empty { padding: 24px 0; }

/* Seasonal rows */
.season { padding-top: 56px; }
.season-banner { display: flex; flex-wrap: wrap; align-items: stretch; border-radius: 24px; overflow: hidden; }
.season-art { flex: 1 1 320px; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 16px; }
.season-art svg { width: 100%; max-width: 380px; }
.season-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 32px 24px; }
.season-copy h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.season-banner.xmas .season-art { background: var(--teal); }
.season-banner.xmas .season-copy { background: #F8E7C9; }
.season-banner.pets .season-art { background: #F6E3E1; }
.season-banner.pets .season-copy { background: var(--sage-bg); }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.tabs button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font-family: var(--sans); font-weight: 700; font-size: 14px; cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.tabs.left { justify-content: flex-start; margin-top: 0; }
.pdesc { font-size: 13px; color: var(--text-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dt { font-family: var(--hand); font-weight: 700; }
.ds { font-family: var(--sans); font-weight: 700; }

/* Who pills */
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pills a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 20px; border: 1.5px solid var(--ink); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 700; }
.pills a:hover { background: var(--ink); color: var(--paper); }

/* Occasions */
.occasions { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .occasions { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.occ { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; }
.occ-img { width: 100%; max-width: 170px; aspect-ratio: 1 / 1; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform .15s; }
.occ:hover .occ-img { transform: scale(1.04); }
.occ-img svg { width: 62%; }

/* Try it */
.band { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 64px; }
.try-wrap { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.try-copy { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.try-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.1; }
.try-copy .muted { line-height: 1.6; max-width: 32rem; }
.mini-steps { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-weight: 700; }
.mini-steps li { display: flex; align-items: center; gap: 12px; }
.mini-steps span { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 900; flex: none; }
.card { background: var(--card); border: 2px solid var(--ink); border-radius: 24px; }
.try { flex: 1 1 380px; min-width: 0; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.preview { background: var(--paper); border-radius: 16px; padding: 12px; display: flex; justify-content: center; }
.preview svg { width: 100%; max-width: 320px; display: block; }
.field { display: flex; flex-direction: column; gap: 8px; border: 0; margin: 0; padding: 0; }
.field label, .field legend { font-weight: 800; font-size: 15px; padding: 0; }
.field legend { margin-bottom: 8px; }
.field input { min-height: 48px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; font-family: var(--sans); font-size: 17px; color: var(--ink); width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; color: var(--ink); font-family: var(--sans); font-weight: 800; font-size: 15px; cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* Trust */
.trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .trust { grid-template-columns: 1fr; } }
.trust li { border: 1.5px solid var(--line); background: var(--card); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.trust svg { color: var(--brick); }
.trust h3 { font-family: var(--sans); font-weight: 800; font-size: 16px; }
.trust p { font-size: 14px; color: var(--text-2); line-height: 1.5; }

/* Made */
.teal-band { background: var(--teal); color: var(--paper); margin-top: 64px; }
.made { padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.made > div:first-child { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.made h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.1; }
.made-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; font-size: 1.05rem; line-height: 1.65; }

/* Footer */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); }
.signup-band { background: #EADFCC; }
.signup { max-width: 720px; padding-top: 48px; padding-bottom: 44px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.signup h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.signup > p:not(.tiny):not(.signup-msg) { color: var(--text-2); line-height: 1.6; }
.signup-form { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; max-width: 520px; justify-content: center; margin-top: 4px; }
.signup-form input[type="email"] { flex: 1 1 260px; min-width: 0; min-height: 50px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font-family: var(--sans); font-size: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup-msg { min-height: 1.5em; font-weight: 700; }
.signup-msg.ok { color: var(--teal); }
.signup-msg.err { color: var(--brick-dark); }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-top: 44px; padding-bottom: 32px; }
.footer-brand { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-brand img { width: 180px; height: auto; display: block; }
.footer-brand .hand { color: var(--ink); font-size: 26px; }
.footer-nav { flex: 2 1 480px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; }
.footer-nav div { display: flex; flex-direction: column; gap: 4px; }
.footer-nav h2 { font-family: var(--sans); margin: 0 0 6px; font-size: 15px; font-weight: 800; }
.footer-nav a { color: var(--ink); padding: 5px 0; text-decoration: none; overflow-wrap: anywhere; }
.footer-nav a:hover { color: var(--brick); text-decoration: underline; }
.copyright { border-top: 1px solid #DDD3C1; padding-top: 18px; padding-bottom: 28px; font-size: 13px; color: var(--graphite); }

/* Add to basket */
.buy { display: flex; gap: 8px; margin-top: 6px; }
.buy select.variant { min-height: 44px; min-width: 64px; padding: 0 8px; border: 1.5px solid var(--ink); border-radius: 10px; background: #fff; font-family: var(--sans); font-weight: 700; font-size: 14px; color: var(--ink); }
.add-btn { flex: 1; min-height: 44px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font-family: var(--sans); font-weight: 800; font-size: 14px; cursor: pointer; padding: 0 14px; }
.add-btn:hover { background: var(--brick); }

/* Pop-up message */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--ink); color: var(--paper); padding: 14px 20px; border-radius: 14px; font-size: 15px; box-shadow: 0 8px 24px rgba(31,29,27,.25); z-index: 50; max-width: calc(100% - 32px); transition: transform .25s ease; }
.toast.show { transform: translate(-50%, 0); }
.toast a { color: var(--blush); font-weight: 800; margin-left: 6px; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* Basket page */
.basket-page { padding-top: 40px; padding-bottom: 72px; min-height: 60vh; }
.basket-page > h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 28px; }
.basket-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.basket-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
@media (max-width: 860px) { .basket-layout { grid-template-columns: 1fr; } }
.lines { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; }
.line { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line:first-child { border-top: 1px solid var(--line); }
.line-img { width: 110px; aspect-ratio: 1 / 1; border-radius: 14px; display: flex; align-items: center; justify-content: center; padding: 8px; }
.line-img svg { width: 100%; }
.line-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.line-info h2 { font-family: var(--sans); font-weight: 800; font-size: 17px; }
.line-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.line-actions select { min-height: 44px; min-width: 70px; padding: 0 10px; border: 1.5px solid var(--ink); border-radius: 10px; background: #fff; font-family: var(--sans); font-weight: 700; font-size: 15px; }
.link-btn { background: none; border: 0; padding: 8px 0; min-height: 44px; color: var(--brick); font-family: var(--sans); font-weight: 700; font-size: 14px; text-decoration: underline; cursor: pointer; }
@media (max-width: 520px) {
  .line { grid-template-columns: 84px minmax(0, 1fr); }
  .line-img { width: 84px; }
  .line-actions { grid-column: 2; flex-direction: row; align-items: center; justify-content: flex-start; gap: 16px; }
}
.continue { font-weight: 700; display: inline-flex; min-height: 44px; align-items: center; }
.summary { padding: 24px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 140px; }
.summary h2 { font-size: 22px; }
.summary dl { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.summary dl div { display: flex; justify-content: space-between; gap: 12px; }
.summary dt { color: var(--text-2); }
.summary dd { margin: 0; font-weight: 800; text-align: right; }
.checkout { width: 100%; }
.checkout[disabled] { opacity: .45; cursor: not-allowed; }
.basket-page + .site-footer .copyright { border-top: 0; padding-top: 24px; }
