/* ============================================================
   Hairy Melon — shared site styles
   ============================================================ */
:root {
  --cream: #f5f0e8;
  --cream-warm: #efe7da;
  --cream-deep: #e8dfce;
  --ink: #0f0f0d;
  --ink-soft: #1a1a17;
  --coral: #C8454A;
  --coral-deep: #a83438;
  --coral-soft: #f3a4a8;
  --muted: #66604f;
  --muted-soft: #b5ad9f;
  --line: #d8cfc0;
  --p-peach: #f3d4c1;
  --p-melon: #f0b9a7;
  --p-butter: #ebd9a5;
  --p-sage: #c8d2b5;
  --p-mist: #d4d8cc;
  --p-clay: #d49b8c;
  /* Fruit Smoothie · Drop 1 colourways */
  --p-pistachio: #b9c6a1;   /* sage green */
  --p-berry:     #d7a8a3;   /* dusty rose */
  --p-choc:      #4d2a36;   /* deep plum */
  --p-cream-st:  #ece2cb;   /* cream shorts */
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--coral); color: var(--cream); }

/* type utilities */
.label    { font-family: 'Archivo', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; font-size: 11px; }
.label-sm { font-family: 'Archivo', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; font-size: 11px; }
.care     { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.serif-i  { font-family: 'Newsreader', 'Times New Roman', serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.serif    { font-family: 'Newsreader', 'Times New Roman', serif; font-weight: 500; }
.mono     { font-family: 'JetBrains Mono', ui-monospace, monospace; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.container { max-width: 1440px; margin: 0 auto; padding: 0 56px; }
@media (max-width: 720px) { .container { padding: 0 22px; } }

/* placeholder stripes */
.ph-stripes {
  background-image: repeating-linear-gradient(
    135deg,
    rgba(15,15,13,0.04) 0 1px,
    transparent 1px 14px
  );
}

/* ---------- NAV ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--cream); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 22px 0; gap: 24px; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links.right { justify-content: flex-end; }
.nav-link { color: var(--ink); position: relative; padding: 4px 0; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--coral); }
.nav-logo img { height: 28px; }
.bag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--ink); border-radius: 999px; transition: background .2s, color .2s; }
.bag:hover { background: var(--ink); color: var(--cream); }
.bag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); display: inline-block; }
@media (max-width: 720px) {
  .nav-inner { grid-template-columns: auto 1fr auto; }
  .nav-links.left { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-logo { justify-self: center; }
  .nav-logo img { height: 24px; }
}

/* ---------- MOBILE NAV TOGGLE + DRAWER ---------- */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: transparent; border: 0; cursor: pointer;
  border-radius: 12px;
}
@media (max-width: 720px) { .nav-toggle { display: flex; } } /* must follow the display:none above */
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
  background: var(--cream);
  padding: 8px 22px 20px;
}
.mobile-menu[hidden] { display: none; }
.mobile-link {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 52px; padding: 6px 4px;
  font-family: 'Archivo', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px;
  color: var(--ink); border-bottom: 1px solid var(--line);
}
.mobile-link:last-child { border-bottom: 0; }
.mobile-link[aria-current="page"] { color: var(--coral); }
@media (min-width: 721px) { .mobile-menu { display: none !important; } }

/* ---------- FOCUS VISIBILITY (a11y) ---------- */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible, .bag:focus-visible, .chip:focus-visible, .size:focus-visible, .colour:focus-visible, .thumb:focus-visible { outline-color: var(--coral); outline-offset: 3px; }

/* ---------- TOAST (add-to-bag feedback) ---------- */
.hm-toast-wrap { position: fixed; left: 0; right: 0; bottom: 28px; z-index: 400; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; }
.hm-toast {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--cream);
  padding: 14px 22px; border-radius: 999px;
  font-family: 'Archivo', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.22);
  transform: translateY(20px); opacity: 0;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .3s ease;
}
.hm-toast.show { transform: translateY(0); opacity: 1; }
.hm-toast .tick { width: 20px; height: 20px; border-radius: 50%; background: var(--coral); color: var(--cream); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.hm-toast a { color: var(--coral-soft); text-decoration: underline; text-underline-offset: 2px; pointer-events: auto; }

/* ---------- BUTTONS ---------- */
.btn { display: inline-flex; align-items: center; gap: 14px; background: var(--ink); color: var(--cream); padding: 16px 26px 16px 30px; border-radius: 999px; font-family: 'Archivo', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; font-size: 11px; transition: background .2s; cursor: pointer; border: none; }
.btn:hover { background: var(--coral); }
.btn-arrow { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; background: var(--cream); color: var(--ink); border-radius: 50%; font-size: 12px; transition: transform .2s; }
.btn:hover .btn-arrow { transform: translateX(2px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-ghost .btn-arrow { background: var(--ink); color: var(--cream); }
.btn-ghost:hover .btn-arrow { background: var(--cream); color: var(--ink); }

/* ---------- MARQUEE ---------- */
.marquee { background: var(--ink); color: var(--cream); padding: 28px 0; overflow: hidden; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scroll 48s linear infinite; align-items: center; }
.marquee-track > span { font-family: 'Newsreader', serif; font-weight: 400; font-size: 38px; letter-spacing: -0.01em; line-height: 1; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.marquee-track .it { font-style: italic; color: var(--coral-soft); }
.marquee-track .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); display: inline-block; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; transform: none; flex-wrap: wrap; white-space: normal; row-gap: 8px; }
}

/* ---------- PAGE HEADER (non-home pages) ---------- */
.page-head { padding: 72px 0 56px; }
.page-head .crumbs { display: flex; align-items: center; gap: 10px; color: var(--muted); margin-bottom: 32px; }
.page-head .crumbs .sep { color: var(--line); }
.page-head .crumbs a:hover { color: var(--coral); }
.page-head .row { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.page-head h1 { font-family: 'Newsreader', serif; font-weight: 400; font-size: clamp(56px, 8vw, 128px); line-height: 0.92; letter-spacing: -0.025em; margin: 0; }
.page-head h1 .it { font-style: italic; color: var(--coral); font-weight: 300; }
.page-head .meta { color: var(--muted); max-width: 30ch; padding-bottom: 14px; }
@media (max-width: 760px) {
  .page-head { padding: 48px 0 36px; }
  .page-head .row { grid-template-columns: 1fr; gap: 18px; }
}

/* ---------- FOOTER ---------- */
.foot-divider { border: 0; border-top: 1px solid var(--line); margin: 0; }
.foot { padding: 80px 0 36px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 56px; align-items: start; }
.foot-brand img { height: 44px; margin-bottom: 22px; }
.foot-tagline { font-family: 'Newsreader', serif; font-style: italic; font-weight: 400; font-size: 22px; line-height: 1.2; color: var(--ink); max-width: 24ch; margin: 0 0 22px 0; }
.foot-care { display: inline-flex; align-items: center; gap: 8px; }
.foot-col-h { font-family: 'Archivo', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; font-size: 11px; margin: 0 0 18px 0; color: var(--ink); }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { color: var(--muted); transition: color .2s; }
.foot-col a:hover { color: var(--coral); }
.foot-bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; color: var(--muted); font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
@media (max-width: 760px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-col a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ---------- MINI-CART DRAWER ---------- */
.hm-drawer-wrap { position: fixed; inset: 0; z-index: 300; }
.hm-drawer-wrap[hidden] { display: none; }
.hm-drawer-backdrop { position: absolute; inset: 0; background: rgba(15,15,13,0.38); opacity: 0; transition: opacity .3s ease; }
.hm-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--cream); border-left: 1.5px solid var(--ink); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .32s cubic-bezier(.22,.9,.24,1); outline: none; }
.hm-drawer-wrap.show .hm-drawer-backdrop { opacity: 1; }
.hm-drawer-wrap.show .hm-drawer { transform: none; }
body.hm-drawer-open { overflow: hidden; }
.hm-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 26px 28px 18px; }
.hm-drawer-title { font-family: var(--playful-display); text-transform: uppercase; font-size: 34px; line-height: .95; letter-spacing: -0.01em; margin: 0; }
.hm-drawer-title .hand { font-family: var(--hand); text-transform: none; color: var(--coral); font-weight: 700; letter-spacing: 0; }
.hm-drawer-close { width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; transition: background .2s, color .2s; }
.hm-drawer-close:hover { background: var(--ink); color: var(--cream); }
.hm-drawer-ship { padding: 0 28px; }
.hm-ship-bar { display: flex; align-items: center; gap: 12px; background: var(--ink); color: var(--cream); border-radius: 999px; padding: 12px 18px; }
.hm-ship-bar .label-sm { color: var(--cream); white-space: nowrap; }
.hm-ship-bar .track { flex: 1; height: 6px; border-radius: 999px; background: rgba(245,240,232,0.18); position: relative; overflow: hidden; }
.hm-ship-bar .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--coral); border-radius: 999px; transition: width .4s ease; }
.hm-ship-bar .away { color: var(--coral-soft); font-family: var(--hand); font-size: 18px; line-height: 1; white-space: nowrap; }
.hm-ship-hint { margin: 10px 4px 0; font-size: 12.5px; color: var(--muted); }
.hm-drawer-body { flex: 1; overflow-y: auto; padding: 18px 28px; }
.hm-drawer-items { list-style: none; margin: 0; padding: 0; }
.hm-drawer-item { display: grid; grid-template-columns: 84px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.hm-drawer-item .pic { display: block; aspect-ratio: 1; border-radius: 14px; background: #f3eee4; overflow: hidden; }
.hm-drawer-item .pic img { width: 100%; height: 100%; object-fit: cover; }
.hm-drawer-item .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.hm-drawer-item .name { font-family: var(--playful-display); text-transform: uppercase; font-size: 20px; letter-spacing: -0.005em; }
.hm-drawer-item .price { font-family: 'JetBrains Mono', monospace; font-size: 13px; }
.hm-drawer-item .sub { margin-top: 4px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.hm-drawer-item .ctl { margin-top: 12px; align-items: center; }
.hm-drawer-item .qty { display: inline-flex; align-items: center; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; }
.hm-drawer-item .qty button { width: 34px; height: 34px; border: 0; background: transparent; color: var(--ink); font-size: 16px; cursor: pointer; }
.hm-drawer-item .qty button:hover { background: var(--cream-warm); }
.hm-drawer-item .qty span { min-width: 26px; text-align: center; font-family: 'JetBrains Mono', monospace; font-size: 13px; }
.hm-drawer-item .rm { border: 0; background: none; padding: 6px 0; font-family: 'Archivo', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hm-drawer-item .rm:hover { color: var(--coral); }
.hm-drawer-empty { margin: 8px 0 24px; font-family: 'Newsreader', serif; font-size: 20px; color: var(--ink); }
.hm-drawer-empty .hand { font-family: var(--hand); color: var(--coral); font-size: 24px; }
.hm-drawer-more { margin-top: 24px; }
.hm-drawer-more h3 { margin: 0 0 12px; color: var(--muted); }
.hm-drawer-more .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.hm-drawer-more .card { display: block; padding: 10px; border: 1.5px solid var(--line); border-radius: 16px; transition: border-color .2s, transform .25s cubic-bezier(.34,1.56,.64,1); }
.hm-drawer-more .card:hover { border-color: var(--ink); transform: translateY(-2px); }
.hm-drawer-more .pic { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #f3eee4; }
.hm-drawer-more .pic img { width: 100%; height: 100%; object-fit: cover; }
.hm-drawer-more .name { display: block; margin-top: 10px; font-family: 'Newsreader', serif; font-style: italic; font-size: 16px; }
.hm-drawer-more .mono { display: block; margin-top: 2px; font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--muted); }
.hm-drawer-foot { padding: 18px 28px 28px; border-top: 1.5px solid var(--ink); background: var(--cream-warm); }
.hm-drawer-totals { display: flex; justify-content: space-between; align-items: baseline; font-family: 'Archivo', sans-serif; font-size: 13px; }
.hm-drawer-totals strong { font-family: var(--playful-display); font-size: 26px; letter-spacing: -0.01em; color: var(--coral); }
.hm-drawer-note { margin: 6px 0 14px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.hm-drawer-checkout { width: 100%; justify-content: center; padding: 20px 28px; font-size: 12px; }
.hm-drawer-viewbag { display: block; text-align: center; margin-top: 12px; font-family: 'Archivo', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.hm-drawer-viewbag:hover { color: var(--coral); }
@media (max-width: 480px) { .hm-drawer-head, .hm-drawer-ship, .hm-drawer-body, .hm-drawer-foot { padding-left: 20px; padding-right: 20px; } .hm-drawer-title { font-size: 28px; } }
@media (prefers-reduced-motion: reduce) { .hm-drawer, .hm-drawer-backdrop { transition: none; } }

.hm-drawer-more-hint { margin: -6px 0 12px; font-size: 12.5px; color: var(--muted); }
.hm-drawer-more .grid { grid-template-columns: 1fr; }
.hm-drawer-more .card { display: grid; grid-template-columns: 64px 1fr; gap: 12px 14px; align-items: start; transform: none; }
.hm-drawer-more .card:hover { transform: none; }
.hm-drawer-more .card .pic { grid-row: 1 / span 2; }
.hm-drawer-more .card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.hm-drawer-more .card .name { margin: 0; font-size: 17px; }
.hm-drawer-more .card .name:hover { color: var(--coral); }
.hm-drawer-more .card .mono { margin: 0; }
.hm-drawer-more .sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.hm-drawer-more .sizes button { min-width: 40px; height: 34px; padding: 0 8px; border-radius: 10px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 11.5px; letter-spacing: 0.04em; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.hm-drawer-more .sizes button:hover { background: var(--ink); color: var(--cream); }
.hm-drawer-more .sizes button.match { border-color: var(--coral); box-shadow: inset 0 0 0 1px var(--coral); color: var(--coral); }
.hm-drawer-more .sizes button.match:hover { background: var(--coral); color: var(--cream); }
.hm-drawer-more .sizes button:disabled { color: var(--muted); border-color: var(--line); text-decoration: line-through; cursor: not-allowed; }
.hm-drawer-more .sizes button:disabled:hover { background: transparent; }

/* ---------- SIZE GUIDE SLIDE-OVER + LOW STOCK ---------- */
.hm-guide-lead { margin: 4px 0 18px; font-family: 'Newsreader', serif; font-size: 18px; line-height: 1.45; }
.hm-guide-table { width: 100%; border-collapse: collapse; font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.hm-guide-table th, .hm-guide-table td { padding: 10px 6px; text-align: left; border-bottom: 1px solid var(--line); }
.hm-guide-table thead th { font-family: 'Archivo', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 10.5px; color: var(--muted); border-bottom: 1.5px solid var(--ink); }
.hm-guide-table tbody th { font-family: 'Archivo', sans-serif; font-weight: 700; }
.hm-guide-note { margin: 16px 0 0; font-size: 13px; line-height: 1.55; color: var(--muted); }
.hm-guide-note strong { color: var(--ink); }
.size.low { position: relative; }
.size.low::before, .hm-drawer-more .sizes button.low::before { content: ""; position: absolute; top: -4px; right: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); border: 1.5px solid var(--cream); }
.hm-drawer-more .sizes button.low { position: relative; }
.stock-note { display: none; margin: 10px 0 0; font-size: 13px; color: var(--ink); }
.stock-note.show { display: block; }
.stock-note .hand { font-family: var(--hand); color: var(--coral); font-size: 20px; line-height: 1; }
