/*
  Light, casual theme. Mobile-first.
  Fonts: system stack for speed.
*/

:root{
  --bg: #fbfbfe;
  --surface: #ffffff;
  --surface-2: #f4f6ff;
  --text: #1e2330;
  --muted: #566074;
  --border: rgba(30, 35, 48, 0.12);
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);

  --primary: #3b82f6;
  --primary-ink: #0b1b3a;
  --primary-soft: rgba(59, 130, 246, 0.12);

  --accent: #a78bfa;
  --accent-soft: rgba(167, 139, 250, 0.16);

  --amazon: #111827;
  --radius: 16px;
  --radius-sm: 12px;

  --container: 1100px;
  --gutter: 16px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 500px at 20% 0%, var(--surface-2), transparent 60%),
              radial-gradient(900px 420px at 80% 10%, rgba(167,139,250,0.12), transparent 55%),
              var(--bg);
  color: var(--text);
  line-height: 1.55;
}

img{ max-width: 100%; height: auto; display: block; }

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link{
  position: absolute;
  left: -9999px;
  top: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: var(--shadow);
  z-index: 999;
}
.skip-link:focus{ left: 12px; }

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 251, 254, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand:hover{ text-decoration: none; }
.brand-avatar{
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.08);
}
.brand-name{
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav{ display: flex; align-items: center; gap: 10px; }
.nav-toggle{
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
}
.nav-toggle:focus{ outline: 3px solid var(--primary-soft); outline-offset: 2px; }

.nav-links{
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  position: absolute;
  right: var(--gutter);
  top: 60px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 220px;
}
.nav-links.open{ display: block; }
.nav-links li{ border-bottom: 1px solid var(--border); }
.nav-links li:last-child{ border-bottom: 0; }
.nav-links a{
  display: block;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}
.nav-links a[aria-current="page"]{
  background: var(--surface-2);
}

main{ padding: 18px 0 30px; }

.hero{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 18px;
  background: linear-gradient(180deg, var(--surface), rgba(255,255,255,0.6));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
}

.hero-title{
  font-size: 1.8rem;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.03em;
}
.hero-subtitle{ margin: 10px 0 0; color: var(--muted); }
.hero-badges{ display:flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hero-art{ justify-self: start; }

.grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}

.card{
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
  display: grid;
  grid-template-columns: 1fr;
}

.card-media img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--surface-2);
}

.card-body{ padding: 14px; }
.card-title{ margin: 0; font-size: 1.06rem; letter-spacing: -0.01em; }
.card-title a{ text-decoration: none; }
.card-title a:hover{ text-decoration: underline; }
.card-text{ margin: 8px 0 0; color: var(--muted); }

.card-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover{ filter: brightness(0.98); text-decoration: none; }
.btn:focus{ outline: 3px solid var(--primary-soft); outline-offset: 2px; }

.btn-ghost{
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.btn-amazon{
  background: #ffdb66;
  border-color: rgba(17,24,39,0.18);
  color: #1b1b1b;
}

.pill{
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
}
.pill-soft{ background: rgba(167,139,250,0.10); }

.pagination{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}
.pagination a{ justify-self: start; }
.pagination a:last-child{ justify-self: end; }

.note{
  margin-top: 18px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(59,130,246,0.08), rgba(167,139,250,0.06));
}
.note-title{ margin: 0; font-size: 1rem; }
.note-text{ margin: 8px 0 0; color: var(--muted); }

.site-footer{
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(8px);
}
.footer-inner{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 18px 0;
}
.footer-text{ margin: 8px 0 0; color: var(--muted); }
.footer-links{
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-links a{ color: var(--text); font-weight: 750; }
.fineprint{ margin: 10px 0 0; color: var(--muted); font-size: 0.9rem; }

/* Product */
.breadcrumbs{ color: var(--muted); font-weight: 650; font-size: 0.95rem; display:flex; gap: 8px; align-items:center; margin: 6px 0 12px; }
.breadcrumbs a{ color: var(--muted); }

.product{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-header{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(244,246,255,0.9), rgba(255,255,255,0.6));
}

.product-title{ margin: 0; font-size: 1.6rem; line-height: 1.1; letter-spacing: -0.03em; }
.product-tagline{ margin: 10px 0 0; color: var(--muted); }
.product-meta{ display:flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.product-cta{ margin-top: 14px; }

.gallery{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.7);
  overflow: hidden;
}
.gallery-main img{
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: var(--surface-2);
}
.gallery-thumbs{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(72px, 1fr);
  gap: 8px;
  padding: 10px;
  overflow-x: auto;
  border-top: 1px solid var(--border);
}
.thumb{
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  background: var(--surface);
  cursor: pointer;
}
.thumb img{ width: 100%; height: 56px; object-fit: cover; }
.thumb:focus{ outline: 3px solid var(--primary-soft); outline-offset: 2px; }

.product-body{ padding: 16px; }
.block{ margin-top: 10px; }
.block h2{ margin: 0 0 8px; font-size: 1.15rem; }
.block p{ margin: 10px 0; color: var(--text); }

.cols{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 10px;
}
.col{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px;
}
.h3{ font-size: 1.05rem; margin: 0 0 8px; }

.checklist, .xlist{ margin: 0; padding-left: 18px; color: var(--text); }
.checklist li, .xlist li{ margin: 8px 0; }

.callout{
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,219,102,0.22), rgba(59,130,246,0.06));
  padding: 14px;
}
.callout-inner{ display:flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.muted{ color: var(--muted); }

.related{ margin-top: 18px; }
.related h2{ margin: 0 0 10px; font-size: 1.2rem; }
.related-grid .card-media img{ height: 170px; }
.card-compact .card-body{ padding: 12px; }

/* Prose pages */
.prose .page-header{ padding: 10px 0 8px; }
.prose h1{ margin: 0; font-size: 1.7rem; letter-spacing: -0.03em; }
.lead{ color: var(--muted); margin: 10px 0 0; }

.panel{
  margin-top: 14px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.05);
}
.two-up{ display: grid; grid-template-columns: 1fr; gap: 12px; }
.address{ margin: 10px 0 0; font-style: normal; color: var(--text); }
.map-wrap{ margin-top: 12px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.map-wrap iframe{ width: 100%; height: 320px; border: 0; display: block; }
.mascot-row{ display:flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; align-items:center; }

/* Cookie banner */
.cookie-banner{
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 60;
}
.cookie-banner[hidden]{ display: none !important; }
.cookie-inner{
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
}
.cookie-text{ margin: 0; color: var(--muted); font-weight: 650; }

/* Larger screens */
@media (min-width: 720px){
  :root{ --gutter: 20px; }

  .nav-toggle{ display: none; }
  .nav-links{
    position: static;
    display: flex;
    background: transparent;
    border: 0;
    box-shadow: none;
    min-width: 0;
    gap: 10px;
  }
  .nav-links li{ border: 0; }
  .nav-links a{
    padding: 10px 12px;
    border-radius: 999px;
  }
  .nav-links a:hover{ background: var(--surface-2); text-decoration: none; }

  .hero{
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    padding: 22px;
  }
  .hero-title{ font-size: 2.2rem; }
  .hero-art{ justify-self: end; }

  .grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

  .product-header{ grid-template-columns: 1.05fr 0.95fr; align-items: start; }
  .gallery-main img{ height: 360px; }

  .cols{ grid-template-columns: 1fr 1fr; }

  .two-up{ grid-template-columns: 1fr 1fr; }

  .footer-inner{ grid-template-columns: 1fr 1fr; align-items: start; }
  .footer-right{ justify-self: end; text-align: right; }
  .footer-links{ justify-content: flex-end; }

  .cookie-inner{ flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 1024px){
  .grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-title{ font-size: 2.0rem; }
}
