/* Pup Parcel — a parcel label for the dog in your life.
   Palette: night-walk navy, frost, kraft parcel paper, post-box red, holly. */
:root {
  --navy: #1E2A44;
  --navy-soft: #3A4766;
  --frost: #F5F8FB;
  --paper: #FFFFFF;
  --kraft: #C99A68;
  --kraft-light: #EAD7BF;
  --red: #B8312B;
  --red-dark: #962520;
  --holly: #2F5D50;
  --line: #D9E0E8;
  --muted: #5E6A80;
  --ok: #2F6B3F;
  --radius-label: 6px;
  --radius-btn: 999px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.563rem;
  --step-3: 1.953rem;
  --step-4: 2.441rem;
  --step-5: 3.2rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--frost);
  color: var(--navy);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--kraft);
  outline-offset: 2px;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(var(--step-3), 6vw, var(--step-5)); font-weight: 700; }
h2 { font-size: clamp(var(--step-2), 4vw, var(--step-3)); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0 0 1em; max-width: 68ch; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 99; }

/* Announcement strip: delivery facts only */
.strip { background: var(--navy); color: var(--frost); font-size: var(--step--1); text-align: center; padding: 8px 16px; }
.strip a { color: var(--kraft-light); }

/* Header */
.head { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { font-family: var(--display); font-weight: 800; font-size: var(--step-2); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo svg { width: 34px; height: 34px; }
.nav { display: flex; gap: 20px; align-items: center; }
.nav a { text-decoration: none; font-weight: 600; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.basket-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--navy); color: var(--paper); border: 0; border-radius: var(--radius-btn); padding: 8px 16px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.basket-btn .count { background: var(--red); border-radius: 999px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: 13px; padding: 0 6px; }
.nav .links { display: flex; gap: 20px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font: inherit; }
@media (max-width: 1040px) {
  .nav .links { display: none; }
  .nav .links.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--paper); padding: 16px; border-bottom: 1px solid var(--line); gap: 14px; }
  .menu-toggle { display: inline-block; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: var(--radius-btn); padding: 13px 24px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; transition: background .15s; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--paper); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-block { width: 100%; }

/* HERO: the parcel label */
.hero { padding: 40px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: var(--step-1); color: var(--navy-soft); }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 32px; } }

.label {
  background: var(--paper);
  border: 2px solid var(--navy);
  border-radius: var(--radius-label);
  padding: 22px 24px 20px;
  position: relative;
  transform: rotate(-1.6deg);
  box-shadow: 8px 8px 0 var(--kraft);
  max-width: 460px;
  justify-self: center;
  width: 100%;
}
.label .row { display: grid; grid-template-columns: 72px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1.5px dashed var(--line); }
.label .row:last-of-type { border-bottom: 0; }
.label .k { font-size: var(--step--1); color: var(--muted); font-weight: 700; }
.label .v { font-family: "Caveat", "Segoe Print", cursive; font-size: 1.6rem; line-height: 1.2; color: var(--navy); }
.label .barcode { height: 34px; margin-top: 12px; background: repeating-linear-gradient(90deg, var(--navy) 0 2px, transparent 2px 4px, var(--navy) 4px 7px, transparent 7px 9px, var(--navy) 9px 10px, transparent 10px 13px); opacity: .85; }
.stamp {
  position: absolute; top: -26px; right: -14px;
  width: 104px; height: 104px; border-radius: 50%;
  border: 3px solid var(--red); color: var(--red);
  display: grid; place-items: center; text-align: center;
  font-family: var(--display); font-weight: 800; font-size: 13px; line-height: 1.15;
  transform: rotate(12deg); background: rgba(255,255,255,.85);
}
@media (prefers-reduced-motion: no-preference) {
  .label { animation: drop .7s cubic-bezier(.2,.9,.3,1.2) both; }
  @keyframes drop { from { transform: translateY(-24px) rotate(-6deg); opacity: 0; } to { transform: rotate(-1.6deg); opacity: 1; } }
}

/* Sections */
section.block { padding: 48px 0; }
section.block.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head p { margin: 0; color: var(--muted); }

/* Recipient routes (shop by who it's for) */
.routes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.route { display: block; text-decoration: none; background: var(--paper); border: 1.5px solid var(--line); border-left: 8px solid var(--kraft); border-radius: 4px; padding: 20px; }
.route:hover { border-color: var(--navy); border-left-color: var(--red); }
.route h3 { margin-bottom: 6px; }
.route p { margin: 0; color: var(--muted); font-size: var(--step--1); }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px 20px; }
.tile { text-decoration: none; display: flex; flex-direction: column; }
.tile .img { aspect-ratio: 1; background: var(--kraft-light); border-radius: 4px; overflow: hidden; position: relative; }
.tile .img img { width: 100%; height: 100%; object-fit: cover; }
.tile .tag { position: absolute; left: 10px; top: 10px; background: var(--paper); border: 1.5px solid var(--navy); border-radius: 3px; font-size: 13px; font-weight: 700; padding: 2px 8px; }
.tile h3 { font-size: var(--step-0); font-family: var(--body); font-weight: 700; margin: 12px 0 4px; }
.tile .price { font-weight: 700; }
.price s { color: var(--muted); font-weight: 400; margin-left: 6px; }
.tile .stock { font-size: var(--step--1); color: var(--muted); }

/* Product page */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; padding: 32px 0 56px; }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; gap: 24px; } }
.gallery .main { aspect-ratio: 1; background: var(--kraft-light); border-radius: 4px; overflow: hidden; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.thumbs button { width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; cursor: pointer; background: none; }
.thumbs button[aria-current="true"] { border-color: var(--navy); }
.crumbs { font-size: var(--step--1); color: var(--muted); margin: 20px 0 0; }
.crumbs a { color: var(--muted); }
.pdp .price-lg { font-size: var(--step-2); font-weight: 700; font-family: var(--display); margin: 4px 0 16px; }
.field { margin: 16px 0; }
.field label, .field .legend { display: block; font-weight: 700; margin-bottom: 6px; }
.field .hint { font-size: var(--step--1); color: var(--muted); }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pills button { border: 1.5px solid var(--navy); background: var(--paper); border-radius: 999px; padding: 8px 14px; font: inherit; cursor: pointer; }
.pills button[aria-pressed="true"] { background: var(--navy); color: var(--paper); }
.pills button[disabled] { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
input[type=text], input[type=email], textarea, select { width: 100%; font: inherit; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--navy); }
textarea { min-height: 88px; resize: vertical; }
.qty { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--paper); }
.qty button { border: 0; background: none; width: 40px; height: 40px; font-size: 20px; cursor: pointer; color: var(--navy); }
.qty span { min-width: 36px; display: grid; place-items: center; font-weight: 700; }
.buy-row { display: flex; gap: 12px; align-items: center; margin: 20px 0; flex-wrap: wrap; }
.buy-row .btn { flex: 1; min-width: 200px; }
.facts { border-top: 1px solid var(--line); margin-top: 24px; }
.facts details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.facts summary { cursor: pointer; font-weight: 700; }
.facts details > div { margin-top: 10px; }
.desc ul { padding-left: 1.2em; }
.note-box { background: var(--paper); border: 1.5px dashed var(--kraft); border-radius: 6px; padding: 14px 16px; font-size: var(--step--1); }

/* Basket */
.basket { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; padding: 32px 0 56px; }
@media (max-width: 860px) { .basket { grid-template-columns: 1fr; } }
.line { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line img { width: 88px; height: 88px; object-fit: cover; border-radius: 4px; background: var(--kraft-light); }
.line .meta { font-size: var(--step--1); color: var(--muted); }
.line .remove { background: none; border: 0; color: var(--red); text-decoration: underline; cursor: pointer; font: inherit; font-size: var(--step--1); padding: 0; margin-top: 6px; }
.summary { background: var(--paper); border: 1.5px solid var(--navy); border-radius: var(--radius-label); padding: 20px; align-self: start; position: sticky; top: 84px; }
.summary .r { display: flex; justify-content: space-between; margin: 8px 0; }
.summary .total { font-weight: 800; font-size: var(--step-1); border-top: 1.5px dashed var(--line); padding-top: 12px; }
.coupon { display: flex; gap: 8px; margin: 12px 0; }
.coupon input { flex: 1; }
.coupon button { border: 1.5px solid var(--navy); background: var(--paper); border-radius: 6px; padding: 0 14px; font: inherit; font-weight: 700; cursor: pointer; }
.progress { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 6px 0 4px; }
.progress > i { display: block; height: 100%; background: var(--holly); }

/* Notices */
.msg { padding: 12px 14px; border-radius: 6px; margin: 12px 0; font-size: var(--step--1); }
.msg.err { background: #FBEAEA; color: var(--red-dark); border: 1px solid #F0C9C7; }
.msg.ok { background: #E8F3EA; color: var(--ok); border: 1px solid #C8E2CD; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--navy); color: var(--paper); padding: 12px 18px; border-radius: 999px; z-index: 50; font-weight: 700; display: flex; gap: 12px; align-items: center; }
.toast a { color: var(--kraft-light); }

/* Cut-off table */
.cutoffs { width: 100%; border-collapse: collapse; background: var(--paper); }
.cutoffs th, .cutoffs td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); }
.cutoffs th { font-family: var(--display); }

/* Prose pages */
.prose { max-width: 760px; padding: 32px 0 56px; }
.prose h2 { margin-top: 1.4em; font-size: var(--step-2); }
.prose li { margin-bottom: .4em; }
.placeholder { background: #FFF4D6; border-bottom: 2px dotted #C9A227; padding: 0 3px; }

/* Newsletter */
.signup { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 760px) { .signup { grid-template-columns: 1fr; } }
.signup form { display: flex; gap: 8px; flex-wrap: wrap; }
.signup input[type=email] { flex: 1; min-width: 220px; }
.small { font-size: var(--step--1); color: var(--muted); }

/* Footer */
.foot { background: var(--navy); color: var(--frost); padding: 40px 0 24px; margin-top: 0; }
.foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .foot .cols { grid-template-columns: 1fr; } }
.foot a { color: var(--frost); text-decoration: none; display: block; margin: 6px 0; }
.foot a:hover { text-decoration: underline; }
.foot .fine { border-top: 1px solid var(--navy-soft); margin-top: 28px; padding-top: 16px; font-size: var(--step--1); color: #B8C2D6; }

.loading { padding: 64px 0; text-align: center; color: var(--muted); }
.empty { padding: 48px 0; }
@media (max-width: 520px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .logo { font-size: var(--step-1); }
  .hero { padding-top: 24px; }
}

/* Black Friday */
.bf-hero { background: var(--navy); color: #fff; padding: 56px 0 48px; }
.bf-hero h1 { color: #fff; max-width: 22ch; }
.bf-hero .lead { color: #E3E8F1; max-width: 60ch; }
.bf-ghost { color: #fff; border-color: #fff; }
.bf-code { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; background: #fff; color: var(--navy); border: 2px dashed var(--red); border-radius: 10px; padding: 10px 12px 10px 18px; margin-top: 8px; }
.bf-code span { font-family: var(--display); font-weight: 800; font-size: var(--step-2); letter-spacing: .08em; }
.bf-code .btn { color: var(--navy); border-color: var(--navy); }
.bf-bar { display: block; background: var(--red); color: #fff; text-align: center; padding: 12px 16px; font-weight: 700; text-decoration: none; }
.bf-bar:hover { background: var(--red-dark); }
.set-title { margin: 28px 0 12px; font-size: var(--step-1); }
.bf-terms { color: var(--muted); }
.nav-bf { color: var(--red) !important; font-weight: 700; }
/* Keep the rotated postage stamp from causing sideways scroll on phones */
.hero { overflow-x: clip; }

/* Final-review fixes (25 Oct) */
[id] { scroll-margin-top: 84px; }
.line .qty { display: inline-flex; width: max-content; }
.line strong { display: block; }
.logo, .nav a, .basket-btn { white-space: nowrap; }
.nav .links { gap: 18px; }
.price, .price-lg, .basket-btn .count, .summary .r { font-family: var(--display); font-variant-numeric: tabular-nums lining-nums; }
.hero-facts { margin-top: 18px; font-size: var(--step--1); color: var(--navy-soft); font-weight: 600; }
.hero-set { position: relative; display: block; text-decoration: none; color: var(--navy); background: var(--paper); border: 2px solid var(--navy); border-radius: var(--radius-label); box-shadow: 8px 8px 0 var(--kraft); padding: 12px; transform: rotate(-1.2deg); max-width: 520px; justify-self: end; }
.hero-set .pics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hero-set img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; background: #F3EDE4; }
.hero-set .cap { padding: 10px 4px 2px; font-size: var(--step--1); }
.hero-set .stamp { position: absolute; top: -18px; right: -14px; transform: rotate(8deg); }
@media (max-width: 860px) { .hero .wrap > .hero-set { order: -1; justify-self: stretch; max-width: none; transform: none; } .hero-set .stamp { display: none; } }
.sets { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.set-card { display: block; text-decoration: none; color: inherit; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.set-card:hover { border-color: var(--navy); }
.set-card .pics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.set-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; background: #F3EDE4; }
.set-card h3 { margin: 0 0 4px; }
.set-card p { margin: 0; }
.trust { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 6px; font-size: var(--step--1); }
.trust li { padding-left: 22px; position: relative; }
.trust li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.thumbs .more-thumbs { font-weight: 700; color: var(--navy); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; min-height: 56px; cursor: pointer; }
@media (max-width: 520px) { .ctas .btn { flex: 1 1 100%; } }
