@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Karla:ital,wght@0,400;0,500;0,700;1,400&display=swap');

:root {
  --water-deep: #0F3D3E;
  --water-mid: #2E86AB;
  --water-light: #DCEEF2;
  --bobber-yellow: #F5B942;
  --bobber-yellow-dark: #DE9E1F;
  --reed-green: #7FA650;
  --reed-green-dark: #5C7C39;
  --sand: #F6EFDD;
  --sand-white: #FFFDF7;
  --ink: #17231F;
  --ink-soft: #3E4C46;
  --line: rgba(23, 35, 31, 0.12);
  --radius-s: 10px;
  --radius-m: 16px;
  --shadow-soft: 0 4px 0 rgba(15, 61, 62, 0.15);
  --max-w: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Karla', sans-serif;
  color: var(--ink);
  background: var(--sand-white);
  line-height: 1.55;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--water-deep);
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; max-width: 68ch; }

a { color: var(--water-mid); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

:focus-visible {
  outline: 3px solid var(--bobber-yellow-dark);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Header ---------- */

.site-header {
  background: var(--water-deep);
  color: var(--sand-white);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--sand-white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo svg { width: 30px; height: 30px; }

nav.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

nav.main-nav a {
  color: var(--sand-white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  border-bottom-color: var(--bobber-yellow);
}

.cart-link {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.08);
  padding: 8px 14px;
  border-radius: 999px;
}

.cart-count {
  background: var(--bobber-yellow);
  color: var(--water-deep);
  font-weight: 700;
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  padding: 0 5px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--sand-white);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 760px) {
  .menu-toggle { display: block; }
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--water-deep);
    flex-direction: column;
    padding: 12px 24px 20px;
    gap: 14px;
  }
  nav.main-nav.open { display: flex; }
}

/* ---------- Wave divider ---------- */

.wave-divider {
  display: block;
  width: 100%;
  height: 48px;
  line-height: 0;
}

.wave-divider svg { width: 100%; height: 100%; display: block; }

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--water-deep) 0%, var(--water-mid) 100%);
  color: var(--sand-white);
  padding: 64px 0 0;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 820px) {
  .hero .container { grid-template-columns: 1fr; }
}

.hero h1 { color: var(--sand-white); }
.hero .lede { font-size: 1.15rem; color: var(--water-light); max-width: 50ch; }

.hero-art {
  position: relative;
  aspect-ratio: 4/3;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--bobber-yellow);
  color: var(--water-deep);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: #ffc65c; }

.btn-secondary {
  background: transparent;
  color: var(--sand-white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-secondary:hover { border-color: var(--sand-white); }

.btn-dark {
  background: var(--water-deep);
  color: var(--sand-white);
}
.btn-dark:hover { background: #123f40; }

.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------- Sections ---------- */

section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-sand { background: var(--sand); }

.section-head { max-width: 640px; margin-bottom: 36px; }

/* ---------- Cards / grids ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3 { grid-template-columns: 1fr; } }

.info-card {
  background: var(--sand-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 26px;
}

.info-card .icon-wrap {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--water-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}

/* ---------- Steps (genuinely sequential content) ---------- */

.steps { display: flex; flex-direction: column; gap: 0; counter-reset: step; }

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: none; }

.step-num {
  counter-increment: step;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--water-deep);
  color: var(--bobber-yellow);
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step-num::before { content: counter(step); }

/* ---------- Fish species cards ---------- */

.fish-card {
  background: var(--water-light);
  border-radius: var(--radius-m);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.fish-card .fish-emoji { font-size: 2rem; line-height: 1; }

/* ---------- Rules / callouts ---------- */

.callout {
  background: var(--water-deep);
  color: var(--sand-white);
  border-radius: var(--radius-m);
  padding: 28px 30px;
  margin: 28px 0;
}
.callout h3 { color: var(--bobber-yellow); }
.callout a { color: var(--sand-white); text-decoration: underline; }

.callout-warn {
  background: #FBEFD9;
  border: 1px solid var(--bobber-yellow-dark);
  color: var(--ink);
  border-radius: var(--radius-m);
  padding: 22px 26px;
  margin: 28px 0;
}
.callout-warn h3 { color: var(--ink); margin-bottom: 6px; }

.rules-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.96rem;
}
.rules-table th, .rules-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.rules-table th {
  font-family: 'Baloo 2', sans-serif;
  color: var(--water-deep);
  background: var(--water-light);
}
.rules-table tr:last-child td { border-bottom: none; }

/* ---------- Shop ---------- */

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-pill {
  border: 1px solid var(--line);
  background: var(--sand-white);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: 'Karla', sans-serif;
  font-weight: 500;
}
.filter-pill.active {
  background: var(--water-deep);
  color: var(--sand-white);
  border-color: var(--water-deep);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 900px) { .product-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--sand-white);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.product-card:hover { box-shadow: 0 10px 24px rgba(15,61,62,0.12); transform: translateY(-3px); }

.product-card .thumb {
  aspect-ratio: 1/1;
  background: var(--water-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
}

.product-card .body { padding: 16px 18px 20px; }
.product-card .age-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--reed-green-dark);
  background: #EAF2DE;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.product-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.product-card .price {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  color: var(--water-deep);
  font-size: 1.1rem;
  margin-top: 8px;
}

/* ---------- Product detail ---------- */

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 800px) { .product-detail { grid-template-columns: 1fr; } }

.product-detail .thumb-large {
  aspect-ratio: 1/1;
  background: var(--water-light);
  border-radius: var(--radius-m);
  display: flex; align-items: center; justify-content: center;
  font-size: 7rem;
}

.qty-row { display: flex; align-items: center; gap: 14px; margin: 20px 0; }
.qty-control {
  display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px;
}
.qty-control button {
  width: 38px; height: 38px; border: none; background: none; font-size: 1.2rem; cursor: pointer;
}
.qty-control input {
  width: 40px; text-align: center; border: none; font-family: 'Karla'; font-size: 1rem;
}

/* ---------- Cart / checkout ---------- */

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table td { padding: 16px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-item-info { display: flex; align-items: center; gap: 14px; }
.cart-item-thumb {
  width: 56px; height: 56px; border-radius: 10px; background: var(--water-light);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; flex-shrink: 0;
}
.remove-link { color: #B0442E; font-size: 0.85rem; text-decoration: none; cursor: pointer; background: none; border: none; padding: 0; font-family: 'Karla'; }

.cart-summary {
  background: var(--sand);
  border-radius: var(--radius-m);
  padding: 26px;
  position: sticky;
  top: 100px;
}
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; }
.summary-row.total { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 1.2rem; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; }

.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .emoji { font-size: 3.5rem; margin-bottom: 12px; }

/* ---------- Forms ---------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; color: var(--water-deep); }
input, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  font-family: 'Karla', sans-serif;
  font-size: 1rem;
  background: var(--sand-white);
}
input:focus, select:focus { border-color: var(--water-mid); }
.field { margin-bottom: 16px; }
.field-error { color: #B0442E; font-size: 0.85rem; margin-top: 4px; display: none; }
.field.invalid input { border-color: #B0442E; }
.field.invalid .field-error { display: block; }

.consent-field {
  background: var(--sand);
  border-radius: var(--radius-s);
  padding: 14px 16px;
  margin-bottom: 20px;
}
.consent-field.invalid { outline: 2px solid #B0442E; }
.consent-field input[type="checkbox"] { width: auto; }

/* ---------- Footer ---------- */

footer.site-footer {
  background: var(--water-deep);
  color: var(--water-light);
  padding: 48px 0 28px;
  margin-top: 40px;
}
footer.site-footer a { color: var(--sand-white); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--sand-white); font-size: 0.95rem; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  font-size: 0.85rem;
  color: rgba(220,238,242,0.7);
}

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge-safe {
  display: inline-flex; align-items: center; gap: 6px;
  background: #EAF2DE; color: var(--reed-green-dark);
  font-size: 0.82rem; font-weight: 700; padding: 6px 12px; border-radius: 999px;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--bobber-yellow); color: var(--water-deep);
  padding: 10px 16px; z-index: 100; font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; }
