/* 4uStore — colours taken from the logo */
:root {
  --red: #ef3b2d;
  --orange: #ff8a00;
  --purple: #5b2a96;
  --magenta: #d6248a;
  --navy: #1d2f5e;
  --ink: #1f2140;
  --muted: #5d6080;
  --bg: #fffaf3;
  --card: #ffffff;
  --line: #f0e4d6;
  --amazon: #ffd814;
  --amazon-hover: #f7ca00;
  --radius: 18px;
  --shadow: 0 6px 20px rgba(29, 47, 94, .08);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); }
h1, h2, h3 {
  font-family: "Baloo 2", system-ui, sans-serif;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 7vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px;
}
.brand img { width: 96px; height: auto; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  text-decoration: none; color: var(--navy); font-weight: 600;
  padding: 8px 12px; border-radius: 999px; font-size: .95rem;
}
.nav a:hover { background: #fdf0e3; }
.nav a[aria-current="page"] { background: var(--purple); color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 0; cursor: pointer;
  font-size: 1rem;
}
.btn-primary { background: linear-gradient(90deg, var(--red), var(--orange)); color: #fff; }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { background: #fff; color: var(--purple); box-shadow: inset 0 0 0 2px var(--purple); }
.btn-amazon { background: var(--amazon); color: #0f1111; width: 100%; }
.btn-amazon:hover { background: var(--amazon-hover); }
.btn[aria-disabled="true"] { background: #ececf2; color: #7a7c95; cursor: default; }

/* Hero */
.hero { padding: 40px 0 32px; text-align: center; }
.hero .logo-big { width: min(320px, 80%); margin: 0 auto 16px; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; margin: 0 auto 24px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.banner { margin: 8px 0 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

section { padding: 32px 0; }
.section-head { text-align: center; margin-bottom: 24px; }
.section-head p { color: var(--muted); }

/* Category tiles */
.cats { display: grid; gap: 16px; grid-template-columns: 1fr; }
.cat {
  display: flex; align-items: center; gap: 16px;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 12px; text-decoration: none; color: inherit;
}
.cat img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; flex: none; }
.cat h3 { margin: 0 0 4px; }
.cat p { margin: 0; color: var(--muted); font-size: .95rem; }
.cat:hover h3 { color: var(--magenta); }

/* Steps */
.steps { display: grid; gap: 12px; grid-template-columns: 1fr; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  background: #fff; border-radius: var(--radius); padding: 16px 16px 16px 64px;
  position: relative; box-shadow: var(--shadow);
}
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--purple); color: #fff; font-weight: 700;
  display: grid; place-items: center;
}
.steps strong { display: block; color: var(--navy); }

/* Product grid */
.cat-nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 8px; }
.cat-nav a {
  text-decoration: none; font-weight: 600; padding: 8px 14px; border-radius: 999px;
  background: #fff; box-shadow: inset 0 0 0 2px var(--line); color: var(--navy);
}
.cat-nav a:hover { box-shadow: inset 0 0 0 2px var(--purple); }
.group { scroll-margin-top: 90px; }
.group > h2 { display: flex; align-items: center; gap: 10px; }
.group > h2::before {
  content: ""; width: 10px; height: 28px; border-radius: 6px;
  background: linear-gradient(var(--red), var(--magenta));
}
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column;
}
.card .photo { background: #fff; aspect-ratio: 1 / 1; position: relative; }
.card .photo img { width: 100%; height: 100%; object-fit: contain; }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: .95rem; flex: 1; }
.badge {
  position: absolute; top: 10px; left: 10px; background: var(--navy); color: #fff;
  font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}

/* Text pages */
.page-head { padding-top: 32px; padding-bottom: 8px; text-align: center; }
.page-head p { color: var(--muted); max-width: 36em; margin: 0 auto; }
.prose { max-width: 42em; margin: 0 auto; }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.contact-card { text-align: center; max-width: 34em; margin: 0 auto; }
.contact-card .email { font-size: 1.15rem; font-weight: 700; word-break: break-all; }

/* Footer */
.site-footer {
  margin-top: 40px; background: var(--navy); color: #d9ddf0; font-size: .9rem;
  padding: 28px 0;
}
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; gap: 16px; grid-template-columns: 1fr; }
.site-footer nav a { display: inline-block; margin-right: 14px; padding: 4px 0; }
.site-footer small { display: block; color: #aab1d1; margin-top: 16px; }

@media (min-width: 640px) {
  .site-header { position: sticky; top: 0; z-index: 5; }
  .brand img { width: 120px; }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .cat { flex-direction: column; text-align: center; padding: 16px; }
  .cat img { width: 100%; height: auto; aspect-ratio: 1 / 1; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .site-footer .cols { grid-template-columns: 2fr 1fr; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
