/* =========================================================
   HUGSY — core stylesheet (v2: professional e-commerce redesign)
   Clean white-background retail layout, bold logo-forward header,
   real cart + checkout. Inspired by The Souled Store / The Comfy.
   Type: Poppins (display/UI) / Inter (body)
   ========================================================= */

:root {
  --ink: #141414;
  --ink-soft: #5C5C5C;
  --ink-faint: #8A8A8A;
  --white: #FFFFFF;
  --paper: #DEEDF3;
  --paper-deep: #DDE6EC;
  --canvas: #EAF4F8;
  --tint-warm: #EDF2F5;
  --tint-cool: #E2EFF5;
  --line: #BFD5E0;
  --berry: #6C1830;
  --berry-deep: #4A0F20;
  --berry-tint: #F4DEE2;
  --frost: #2E8B99;
  --frost-tint: #DCEEEE;
  --success: #1F8A4C;
  --success-tint: #DEF3E5;

  --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 24px 48px -24px rgba(20, 20, 20, 0.28);
  --shadow-card: 0 10px 24px -16px rgba(20, 20, 20, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { position: relative; }
.section-pad { padding: 80px 0; }
@media (max-width: 720px) { .section-pad { padding: 56px 0; } }
.section--paper {
  background:
    radial-gradient(circle at 90% 10%, rgba(46,139,153,0.26) 0%, transparent 50%),
    radial-gradient(circle at 6% 88%, rgba(226,160,60,0.28) 0%, transparent 48%),
    #DDEEF4;
}
.section--dark { background: var(--ink); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }

/* ---- Typography utilities ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700; color: var(--berry); margin-bottom: 14px;
}
.section--dark .eyebrow { color: var(--frost); }
/* decorative dash removed */

h2.headline { font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.12; max-width: 20ch; }
.section-head { margin-bottom: 40px; }
.section-head .lede { margin-top: 14px; max-width: 58ch; font-size: 1.04rem; color: var(--ink-soft); }
.section--dark .section-head .lede { color: #C9C9C9; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 100px; font-weight: 600; font-size: 0.95rem;
  font-family: var(--font-display);
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--frost); outline-offset: 2px; }
.btn--primary { background: var(--ink); color: var(--white); }
.btn--primary:hover { background: var(--berry); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--on-dark { background: var(--white); color: var(--ink); }
.btn--on-dark:hover { background: var(--frost-tint); }
.btn--ghost-on-dark { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn--ghost-on-dark:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn--sm { padding: 9px 16px; font-size: 0.82rem; }
.btn--disabled, .btn:disabled { opacity: 0.45; pointer-events: none; }

.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 600;
  padding: 8px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 100px; color: var(--ink);
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ---- Announcement bar ---- */
.announce {
  background: var(--ink); color: var(--white); text-align: center;
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.02em;
  padding: 10px 16px;
}
.announce strong { color: var(--frost); font-weight: 700; }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background:
    linear-gradient(90deg,
      #DFF3F6 0%,
      #EAF6F2 22%,
      #FBF3E4 46%,
      #FCE9EC 70%,
      #E6EFFA 100%);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, #2E8B99 0%, #D6A94A 50%, #6C1830 100%) 1;
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__mascot {
  width: 58px; height: 58px; border-radius: 50%; flex-shrink: 0;
  background: radial-gradient(circle at 50% 35%, #FFFFFF 0%, #F2FAFB 100%);
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 8px -3px rgba(20,20,20,0.25); padding: 5px;
  display: flex; align-items: center; justify-content: center;
}
.brand__mascot img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 640px) { .brand__mascot { width: 46px; height: 46px; } }
.brand img { height: 46px; width: auto; }
@media (max-width: 640px) { .brand img { height: 36px; } }

.nav-links { display: flex; align-items: center; gap: 30px; font-family: var(--font-display); font-size: 0.94rem; font-weight: 600; }
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: linear-gradient(90deg, var(--frost), var(--berry));
  transition: right 0.2s ease;
}
.nav-links a:hover::after { right: 0; }

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ink); color: var(--white);
  transition: background 0.18s ease, transform 0.18s ease;
  position: relative; border: none;
}
.icon-btn:hover { background: var(--berry); transform: translateY(-1px); }
.icon-btn svg { width: 19px; height: 19px; }
.cart-count {
  position: absolute; top: -6px; right: -6px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 100px; background: var(--berry); color: var(--white);
  font-family: var(--font-display); font-size: 0.68rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--white);
}
.cart-count[hidden] { display: none; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid var(--ink); background: transparent; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 940px) {
  .nav-links {
    position: fixed; inset: 78px 0 0 0;
    background: linear-gradient(160deg, #EAF6F8 0%, #FBF3E6 100%);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 32px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease; overflow-y: auto;
  }
  .nav-links.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a { width: 100%; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-toggle { display: inline-flex; }
  .icon-only-desktop { display: none; }
}

/* ---- Hero ---- */
.hero {
  padding: 40px 0 60px; overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(46,139,153,0.38) 0%, transparent 48%),
    radial-gradient(circle at 88% 12%, rgba(226,160,60,0.34) 0%, transparent 46%),
    radial-gradient(circle at 72% 92%, rgba(108,24,48,0.24) 0%, transparent 52%),
    linear-gradient(160deg, #DFF1F6 0%, #C9E4EE 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }

.hero-copy .eyebrow { margin-bottom: 16px; }
.hero-copy h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.06; margin: 0 0 18px;
}
.hero-copy h1 em { color: var(--berry); font-style: normal; }
.hero-copy .lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 46ch; margin-bottom: 26px; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 0.82rem; color: var(--ink-soft); font-weight: 500; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 15px; height: 15px; color: var(--berry); flex-shrink: 0; }

.hero-media { position: relative; display: flex; justify-content: center; align-items: center; min-height: 420px; }
.hero-media::before {
  content: ''; position: absolute; inset: 6% 2%; z-index: 0; border-radius: 50%;
  background: radial-gradient(circle at 55% 45%, rgba(46,139,153,0.16) 0%, rgba(108,24,48,0.08) 45%, transparent 72%);
  filter: blur(8px);
}
.hero-photo {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-soft); background: #F0F8FB;
  border: 2px solid #CFDCE5;
}
.hero-photo--back { width: 54%; aspect-ratio: 3/4.2; position: absolute; top: 6%; left: 0; z-index: 1; }
.hero-photo--front { width: 58%; aspect-ratio: 3/4.2; margin-left: 38%; margin-top: 12%; z-index: 2; }
.hero-photo img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.hero-badge {
  position: absolute; z-index: 3; bottom: -5%; left: 2%;
  background: var(--ink); color: var(--white); border-radius: 50%;
  width: 108px; height: 108px; display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--font-display); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.02em; line-height: 1.3;
  padding: 10px; box-shadow: var(--shadow-card);
}
@media (max-width: 980px) { .hero-media { min-height: 340px; margin-top: 4px; } .hero-badge { width: 92px; height: 92px; font-size: 0.6rem; } }

/* ---- USP strip ---- */
.usp-strip { padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.usp-row { display: flex; flex-wrap: wrap; gap: 10px 14px; justify-content: center; }

/* ---------------------------------------------------------
   Product grid (Souled Store style — white card, image
   centered & fully visible, no name text, price + Add to Cart)
   --------------------------------------------------------- */
.color-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .color-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 560px) { .color-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.color-card {
  background: var(--white); border: 2px solid #D3DFE8; border-radius: var(--radius-md);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.color-card:hover { box-shadow: var(--shadow-card); border-color: var(--frost); }
.color-card__photo {
  position: relative; aspect-ratio: 1/1;
  background: #DCEAF3;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  cursor: zoom-in; padding: 14px;
}
.color-card__photo img { width: 100%; height: 100%; object-fit: contain; object-position: center; transition: transform 0.35s ease; }
.color-card:hover .color-card__photo img { transform: scale(1.035); }
.color-card__body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.color-card__name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.3; }
.color-card__colour { font-size: 0.85rem; color: var(--ink-soft); }
.color-card__stock { font-size: 0.78rem; font-weight: 600; margin-bottom: 4px; min-height: 1.1em; }
.color-card__stock.in-stock { color: var(--success); }
.color-card__stock.low-stock { color: #C25E00; }
.color-card__stock.out-stock { color: var(--berry); }
.color-card.is-sold-out .color-card__photo { opacity: 0.55; }
.color-card.is-sold-out .color-card__add { background: var(--ink-faint); pointer-events: none; }
.color-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.color-card__price { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.color-card__add {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.82rem;
  background: var(--ink); color: var(--white); border: none; border-radius: 100px;
  padding: 9px 16px; transition: background 0.15s ease, transform 0.15s ease;
}
.color-card__add:hover { background: var(--berry); transform: translateY(-1px); }
.color-card__add svg { width: 15px; height: 15px; }
.color-card__add.is-added { background: var(--success); }

/* ---------------------------------------------------------
   Feature grid (Why Hugsy — dark section)
   --------------------------------------------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-md); overflow: hidden; }
.feature-card__photo { aspect-ratio: 1/1; overflow: hidden; }
.feature-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.feature-card__body { padding: 20px; }
.feature-card__body h3 { font-size: 1.06rem; color: var(--white); margin-bottom: 8px; }
.feature-card__body p { color: #C9C9C9; font-size: 0.92rem; }

/* ---------------------------------------------------------
   About / brand story
   --------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 36px; } }
.about-mascot { background: var(--paper); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; padding: 36px; aspect-ratio: 1/1; }
.about-mascot img { width: 62%; }
.about-copy p { margin-bottom: 16px; color: var(--ink-soft); font-size: 1.02rem; }
.about-copy p:last-child { margin-bottom: 0; }
.about-copy .signoff { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--berry); margin-top: 20px; }

/* ---------------------------------------------------------
   Size & fit
   --------------------------------------------------------- */
.fit-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .fit-grid { grid-template-columns: 1fr; gap: 32px; } }
.fit-list { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.fit-list li { display: flex; gap: 14px; }
.fit-num {
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
  width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--white);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.fit-list strong { display: block; margin-bottom: 3px; font-family: var(--font-display); }
.fit-list p { color: var(--ink-soft); font-size: 0.94rem; }
.fit-card { background: var(--paper); border-radius: var(--radius-md); padding: 30px; }
.fit-card h3 { font-size: 1.15rem; margin-bottom: 14px; }
.fit-card p { color: var(--ink-soft); font-size: 0.94rem; margin-bottom: 16px; }

/* ---------------------------------------------------------
   Kids note callout
   --------------------------------------------------------- */
.kids-note { max-width: 68ch; background: var(--frost-tint); border-radius: var(--radius-md); padding: 18px 22px; font-size: 0.94rem; color: var(--ink-soft); margin-top: 28px; }
.kids-note strong { color: var(--ink); }

/* ---------------------------------------------------------
   Gallery
   --------------------------------------------------------- */
.gallery-group { margin-bottom: 40px; }
.gallery-group:last-child { margin-bottom: 0; }
.gallery-group__title {
  display: flex; align-items: baseline; gap: 10px; font-family: var(--font-display);
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--berry); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.gallery-group__title span { color: var(--ink-faint); font-weight: 400; text-transform: none; letter-spacing: 0; }
.gallery-grid-full { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.gthumb {
  display: block; aspect-ratio: 3/4; border-radius: var(--radius-sm); overflow: hidden;
  cursor: zoom-in; background: var(--paper); border: none; padding: 0;
}
.gthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gthumb:hover img { transform: scale(1.05); }

/* ---------------------------------------------------------
   FAQ accordion
   --------------------------------------------------------- */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; background: transparent; border: none; text-align: left;
  font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; color: var(--ink);
}
.faq-q .plus { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--berry); position: relative; }
.faq-q .plus::before, .faq-q .plus::after { content:''; position: absolute; background: var(--berry); top: 50%; left: 50%; transform: translate(-50%,-50%); }
.faq-q .plus::before { width: 10px; height: 2px; }
.faq-q .plus::after { width: 2px; height: 10px; transition: transform 0.2s ease, opacity 0.2s ease; }
.faq-item.is-open .plus::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.28s ease; }
.faq-a-inner { padding: 0 24px 22px; color: var(--ink-soft); font-size: 0.96rem; max-width: 62ch; }
.faq-item.is-open .faq-a { max-height: 400px; }

/* ---------------------------------------------------------
   Contact
   --------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius-md); padding: 30px; }
.contact-card .icon-btn { margin-bottom: 16px; }
.contact-card h3 { color: var(--white); font-size: 1.12rem; margin-bottom: 8px; }
.contact-card p { color: #C9C9C9; font-size: 0.94rem; margin-bottom: 16px; }
.contact-card a.value { font-family: var(--font-display); font-size: 0.98rem; color: var(--frost); font-weight: 700; word-break: break-word; }
.contact-card a.value:hover { text-decoration: underline; }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--white); padding: 64px 0 0; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; padding-bottom: 48px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand img { height: 46px; margin-bottom: 14px; background: var(--white); padding: 10px 16px; border-radius: 10px; }
.footer-brand p { color: #B0B0B0; font-size: 0.9rem; max-width: 34ch; margin-bottom: 18px; }
.footer-col h4 { color: var(--white); font-family: var(--font-display); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: #B0B0B0; font-size: 0.94rem; transition: color 0.18s ease; }
.footer-col a:hover { color: var(--frost); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14); padding: 20px 0 26px;
  display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: space-between;
  font-size: 0.84rem; color: #8A8A8A;
}
.footer-bottom a { color: #8A8A8A; }
.footer-bottom a:hover { color: var(--frost); }

/* ---------------------------------------------------------
   Legal / policy pages
   --------------------------------------------------------- */
.legal-hero { padding: 48px 0 36px; border-bottom: 1px solid var(--line); }
.legal-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); }
.legal-hero .updated { font-family: var(--font-display); font-size: 0.8rem; color: var(--ink-soft); margin-top: 12px; }
.legal-body { padding: 48px 0 90px; }
.legal-layout { display: grid; grid-template-columns: 250px 1fr; gap: 52px; align-items: start; }
@media (max-width: 860px) { .legal-layout { grid-template-columns: 1fr; gap: 28px; } }
.legal-toc { position: sticky; top: 90px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px; }
.legal-toc h4 { font-family: var(--font-display); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); margin-bottom: 12px; }
.legal-toc ul { display: flex; flex-direction: column; gap: 9px; }
.legal-toc a { font-size: 0.88rem; color: var(--ink-soft); }
.legal-toc a:hover { color: var(--berry); }
@media (max-width: 860px) { .legal-toc { position: static; } }
.legal-content { max-width: 74ch; }
.legal-content h2 { font-size: 1.4rem; margin: 40px 0 14px; scroll-margin-top: 100px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1.1rem; margin: 24px 0 10px; }
.legal-content p { color: var(--ink-soft); margin-bottom: 15px; font-size: 1rem; }
.legal-content ul, .legal-content ol { margin: 0 0 15px; padding-left: 22px; color: var(--ink-soft); }
.legal-content li { margin-bottom: 8px; }
.legal-content strong { color: var(--ink); }
.legal-content a { color: var(--berry); text-decoration: underline; text-underline-offset: 2px; }
.legal-note { background: var(--frost-tint); border-radius: var(--radius-sm); padding: 16px 20px; font-size: 0.9rem; color: var(--ink-soft); margin: 22px 0; }
.legal-note strong { color: var(--frost); }

/* ---------------------------------------------------------
   Lightbox
   --------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; background: rgba(20,20,20,0.92);
  display: flex; align-items: center; justify-content: center; padding: 48px 24px;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__img { max-width: min(90vw, 640px); max-height: 86vh; width: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-soft); background: var(--paper); }
.lightbox__close {
  position: absolute; top: 20px; right: 20px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--white); color: var(--ink); border: none; font-size: 1.6rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.lightbox__close:hover { background: var(--frost-tint); }

/* ---------------------------------------------------------
   Cart drawer
   --------------------------------------------------------- */
.cart-overlay {
  position: fixed; inset: 0; z-index: 1200; background: rgba(20,20,20,0.5);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.cart-overlay.is-open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1201;
  width: min(420px, 100vw); background: var(--white);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.3s ease;
  box-shadow: -18px 0 40px -20px rgba(20,20,20,0.35);
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.cart-drawer__head h3 { font-size: 1.15rem; }
.cart-drawer__close { width: 38px; height: 38px; border-radius: 50%; border: none; background: var(--paper); font-size: 1.3rem; cursor: pointer; }
.cart-drawer__items { flex: 1; overflow-y: auto; padding: 12px 24px; }
.cart-empty { padding: 60px 0; text-align: center; color: var(--ink-soft); }
.cart-empty svg { width: 44px; height: 44px; color: var(--line); margin-bottom: 14px; }
.cart-line { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line__photo { width: 68px; height: 68px; border-radius: var(--radius-sm); background: #DCEAF3; flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cart-line__photo img { width: 100%; height: 100%; object-fit: contain; }
.cart-line__body { flex: 1; min-width: 0; }
.cart-line__name { font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; margin-bottom: 2px; }
.cart-line__price { font-size: 0.86rem; color: var(--ink-soft); margin-bottom: 8px; }
.cart-line__qty { display: flex; align-items: center; gap: 10px; }
.cart-line__qty button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); font-size: 0.95rem; line-height: 1; cursor: pointer; }
.cart-line__qty span { font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; min-width: 16px; text-align: center; }
.cart-line__remove { margin-left: auto; font-size: 0.78rem; color: var(--ink-faint); text-decoration: underline; background: none; border: none; cursor: pointer; }
.cart-drawer__foot { padding: 20px 24px 26px; border-top: 1px solid var(--line); }
.cart-subtotal { display: flex; justify-content: space-between; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-bottom: 14px; }
.cart-drawer__foot .btn { width: 100%; }

/* ---------------------------------------------------------
   Checkout modal (info step + payment step)
   --------------------------------------------------------- */
.checkout-modal {
  position: fixed; inset: 0; z-index: 1300; background: rgba(20,20,20,0.55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.checkout-modal.is-open { opacity: 1; pointer-events: auto; }
.checkout-card {
  position: relative; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft);
  padding: 34px 30px 28px; max-width: 400px; width: 100%; max-height: 90vh; overflow-y: auto;
}
.checkout-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; background: var(--paper); border: none; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.checkout-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.checkout-card .step-note { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 22px; }
.checkout-summary { background: var(--paper); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 20px; font-size: 0.88rem; color: var(--ink-soft); }
.checkout-summary div { display: flex; justify-content: space-between; padding: 3px 0; }
.checkout-summary .total { font-family: var(--font-display); font-weight: 700; color: var(--ink); border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-family: var(--font-display); font-size: 0.82rem; font-weight: 600; margin-bottom: 6px; }
.field input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-size: 0.95rem; font-family: var(--font-body); background: var(--white);
}
.field input:focus { outline: none; border-color: var(--ink); }
.field-error { color: var(--berry); font-size: 0.78rem; margin-top: 5px; display: none; }
.field.has-error input { border-color: var(--berry); }
.field.has-error .field-error { display: block; }
.checkout-card .btn { width: 100%; margin-top: 6px; }

.upi-modal__amount { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--berry); margin: 4px 0 18px; text-align: center; }
.upi-modal__qr {
  display: flex; align-items: center; justify-content: center; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px;
  width: 190px; height: 190px; margin: 0 auto 18px;
}
.upi-modal__qr img, .upi-modal__qr canvas { width: 100%; height: 100%; }
.upi-modal__id-row {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin: 16px 0 6px;
  font-size: 0.85rem; background: var(--paper); border-radius: 100px; padding: 8px 8px 8px 18px;
}
.upi-modal__id-row span { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upi-modal__copy {
  font-family: var(--font-display); font-size: 0.74rem; font-weight: 700; background: var(--ink); color: var(--white);
  border: none; border-radius: 100px; padding: 8px 14px; cursor: pointer;
}
.upi-modal__copy:hover { background: var(--berry); }
.upi-modal__note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 16px; line-height: 1.55; text-align: center; }
.upi-modal__note a { color: var(--berry); font-weight: 700; }
.checkout-card .btn + .btn { margin-top: 10px; }

/* ---------------------------------------------------------
   Product detail modal (multi-photo view, opened from a card)
   --------------------------------------------------------- */
.product-modal {
  position: fixed; inset: 0; z-index: 1250; background: rgba(20,20,20,0.6);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.product-modal.is-open { opacity: 1; pointer-events: auto; }
.product-modal__card {
  position: relative; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft);
  max-width: 420px; width: 100%; max-height: 92vh; overflow-y: auto; padding: 20px 20px 26px;
}
.product-modal__close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; background: var(--paper); border: none; font-size: 1.4rem; line-height: 1; cursor: pointer; z-index: 2; }
.product-modal__main {
  aspect-ratio: 1/1; background: #EBF4F9;
  border: 2px solid #D3DFE8; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 12px;
}
.product-modal__main img { width: 100%; height: 100%; object-fit: contain; }
.product-modal__thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; }
.product-modal__thumbs button {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: var(--radius-sm); overflow: hidden;
  border: 2px solid var(--line); padding: 0; background: var(--white); cursor: pointer;
}
.product-modal__thumbs button.is-active { border-color: var(--ink); }
.product-modal__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-modal__name { font-size: 1.1rem; margin-bottom: 6px; }
.product-modal__price { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--ink); margin-bottom: 16px; }
.product-modal__card .btn { width: 100%; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--white); padding: 14px 24px; border-radius: 100px;
  font-family: var(--font-display); font-size: 0.88rem; font-weight: 600; z-index: 1400;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease;
  display: flex; align-items: center; gap: 10px;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; }

/* ---------------------------------------------------------
   Scroll reveal
   --------------------------------------------------------- */
.reveal { transition: opacity 0.5s ease, transform 0.5s ease; }
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------------------------------------------------------
   Misc
   --------------------------------------------------------- */
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
::selection { background: var(--berry); color: var(--white); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--frost); outline-offset: 2px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--berry); color: var(--white); padding: 12px 20px; z-index: 999; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------
   Product modal additions: colour swatches, size chart, gift
   --------------------------------------------------------- */
.pm-section { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.pm-section__label {
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); margin-bottom: 10px;
}
.pm-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.pm-swatch {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line);
  padding: 0; cursor: pointer; overflow: hidden; background: var(--white);
  transition: border-color 0.15s ease, transform 0.15s ease; position: relative;
}
.pm-swatch img { width: 100%; height: 100%; object-fit: cover; }
.pm-swatch:hover { transform: translateY(-2px); }
.pm-swatch.is-active { border-color: var(--ink); box-shadow: 0 0 0 2px var(--white) inset; }
.pm-swatch.is-sold-out::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top left, transparent 46%, var(--berry) 46%, var(--berry) 54%, transparent 54%);
}

.pm-link {
  background: none; border: none; padding: 0; font-family: var(--font-body);
  font-size: 0.9rem; color: var(--ink); text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer;
}
.pm-link:hover { color: var(--berry); }

.pm-gift { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; }
.pm-gift input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; cursor: pointer; }
.pm-gift label { font-size: 0.9rem; cursor: pointer; }
.pm-gift label span { display: block; font-size: 0.8rem; color: var(--ink-soft); font-weight: 400; }

/* Size chart modal */
.chart-modal {
  position: fixed; inset: 0; z-index: 1350; background: rgba(20,20,20,0.6);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.chart-modal.is-open { opacity: 1; pointer-events: auto; }
.chart-card {
  position: relative; background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft); max-width: 460px; width: 100%; max-height: 90vh;
  overflow-y: auto; padding: 30px 26px 26px;
}
.chart-card h3 { font-size: 1.15rem; margin-bottom: 4px; text-align: center; }
.chart-card .step-note { text-align: center; margin-bottom: 18px; }
.chart-diagram { background: var(--tint-cool); border-radius: var(--radius-md); padding: 18px; margin-bottom: 18px; }
.chart-diagram svg { width: 100%; height: auto; }
table.size-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
table.size-table th {
  background: var(--ink); color: var(--white); font-family: var(--font-display);
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; padding: 10px 12px; text-align: left;
}
table.size-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--ink); }
table.size-table tr:last-child td { border-bottom: none; }
table.size-table td.measure { font-weight: 600; }
.chart-note { font-size: 0.84rem; color: var(--ink-soft); margin-top: 14px; text-align: center; }

/* Gift wrap modal */
.gift-modal {
  position: fixed; inset: 0; z-index: 1350; background: rgba(20,20,20,0.6);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.gift-modal.is-open { opacity: 1; pointer-events: auto; }
.gift-card {
  position: relative; background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft); max-width: 380px; width: 100%; padding: 30px 26px 26px; text-align: center;
}
.gift-card h3 { font-size: 1.15rem; margin-bottom: 18px; }
.gift-box {
  border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 22px 18px; margin-bottom: 18px;
}
.gift-box svg { width: 110px; height: 110px; margin: 0 auto 14px; display: block; }
.gift-box__row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.gift-box__name { font-family: var(--font-display); font-weight: 600; }
.gift-box__price { font-family: var(--font-display); font-weight: 700; }
.gift-msg { margin-bottom: 16px; text-align: left; }
.gift-msg label { display: block; font-family: var(--font-display); font-size: 0.82rem; font-weight: 600; margin-bottom: 6px; }
.gift-msg textarea {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-size: 0.9rem; font-family: var(--font-body); resize: vertical; min-height: 70px;
}
.gift-msg textarea:focus { outline: none; border-color: var(--ink); }
.gift-card .btn { width: 100%; }

/* Cart line: gift note badge */
.cart-line__gift {
  display: inline-block; font-size: 0.72rem; font-weight: 600; color: var(--berry);
  background: var(--berry-tint); border-radius: 100px; padding: 2px 9px; margin-top: 4px;
}

/* Hero mascot: the penguin peeking in beside the product photos */
.hero-mascot {
  position: absolute; z-index: 4;
  top: auto; bottom: 4%; right: -10px;
  width: 104px; height: 104px;
  background: radial-gradient(circle at 50% 35%, #FFFFFF 0%, #E4F2F5 100%);
  border: 3px solid #FFFFFF;
  border-radius: 50%;
  box-shadow: var(--shadow-card);
  display: flex; align-items: center; justify-content: center;
  padding: 10px;
  transform: rotate(6deg);
}
.hero-mascot img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 980px) {
  .hero-mascot { width: 74px; height: 74px; bottom: 2%; right: 0; padding: 6px; }
}

/* Mascot watermark sitting behind the hero headline */
.hero-copy { position: relative; }
.hero-watermark {
  position: absolute;
  top: 50%; left: 8%;
  transform: translateY(-52%);
  width: min(420px, 72%);
  opacity: 0.07;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.hero-copy > *:not(.hero-watermark) { position: relative; z-index: 1; }
@media (max-width: 980px) {
  .hero-watermark { width: min(300px, 64%); opacity: 0.06; left: 4%; }
}
