/* =========================================================
   By Amber Bracelets — design tokens
   Color:
     --cream:        #FFF8F0  (base background, warm off-white)
     --pink:         #FF6FA0  (primary — bracelets/CTAs)
     --yellow:       #FFC93C  (secondary — highlights)
     --mint:         #4ECDC4  (tertiary — accents)
     --grape:        #9B5DE5  (accent — links/small details)
     --plum:         #362447  (text, deep warm near-black)
   Type:
     Display/headings: 'Baloo 2' (rounded, bouncy, kid-friendly brand voice)
     Body:              'Quicksand' (rounded sans, calmer, legible at small sizes)
   ========================================================= */

:root {
  --cream: #FFF8F0;
  --cream-deep: #FFF0E0;
  --pink: #FF6FA0;
  --pink-deep: #E8548C;
  --yellow: #FFC93C;
  --mint: #4ECDC4;
  --grape: #9B5DE5;
  --plum: #362447;
  --plum-soft: #6B5C7E;
  --white: #FFFFFF;

  --font-display: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Quicksand', system-ui, sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;

  --max-width: 1100px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--plum);
  font-size: 17px;
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--plum);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--plum-soft); max-width: 62ch; }

a { color: var(--grape); }

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

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--pink);
  color: var(--white);
  box-shadow: 0 6px 0 var(--pink-deep);
}
.btn-primary:hover { box-shadow: 0 8px 0 var(--pink-deep); }
.btn-primary:active { box-shadow: 0 3px 0 var(--pink-deep); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 248, 240, 0.9);
  backdrop-filter: blur(6px);
  z-index: 50;
  border-bottom: 3px solid var(--cream-deep);
}

.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--plum);
  text-decoration: none;
}
.logo img { display: block; width: 42px; height: 42px; }
.logo-text span { color: var(--pink); }

.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--plum);
  text-decoration: none;
  font-size: 1.02rem;
}
.nav-links a:hover { color: var(--pink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 3px;
  border-radius: 3px;
  background: var(--plum);
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero-text p { font-size: 1.08rem; }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 220px;
}

/* Bead strand: a literal, decorative representation of a beaded bracelet.
   Reused as the site's recurring structural motif (hero + section dividers). */
.bead-strand {
  display: flex;
  align-items: center;
  gap: 4px;
}
.bead-strand .bead {
  border-radius: 50%;
  flex-shrink: 0;
}

#heroStrand {
  transform: rotate(-8deg);
}
#heroStrand .bead {
  width: 34px;
  height: 34px;
  box-shadow: inset -3px -4px 0 rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.12);
  animation: sway 2.4s ease-in-out 1;
}
#heroStrand .bead:nth-child(odd) { animation-delay: 0.05s; }

@keyframes sway {
  0% { transform: translateY(0); }
  30% { transform: translateY(-10px); }
  60% { transform: translateY(4px); }
  100% { transform: translateY(0); }
}

.bead-divider {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 10px;
  overflow: hidden;
}
.bead-divider .bead {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border-radius: 50%;
}

/* ---------- USPs ---------- */
.usps {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.usp-dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-bottom: 0.6rem;
}
.usp h3 { margin-bottom: 0.3rem; }
.usp p { font-size: 0.95rem; margin-bottom: 0; }

/* ---------- Shop ---------- */
.shop {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.section-intro { max-width: 58ch; }

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0 2rem;
}
.chip {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5em 1.1em;
  border-radius: 999px;
  border: 2px solid var(--cream-deep);
  background: var(--white);
  color: var(--plum-soft);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.chip.active,
.chip:hover {
  border-color: var(--pink);
  color: var(--pink-deep);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.6rem;
}

.product-card {
  background: var(--cream-deep);
  border-radius: var(--radius-md);
  padding: 0.8rem 0.8rem 1.4rem;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 3px solid var(--cream-deep);
  box-shadow: 0 6px 0 rgba(54, 36, 71, 0.05);
}
.product-card:nth-child(3n+1) { transform: rotate(-1deg); }
.product-card:nth-child(3n+2) { transform: rotate(0.6deg); }
.product-card:nth-child(3n)   { transform: rotate(-0.4deg); }

/* Witte fototegel: vierkant en puur wit, zodat foto's met een witte
   achtergrond naadloos aansluiten. 'multiply' laat een bijna-witte
   (grijzige) fotoachtergrond opgaan in het wit van de tegel. */
.product-tile {
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: inset 0 0 0 1px rgba(54, 36, 71, 0.06);
}
.product-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.product-tile .bead-strand {
  justify-content: center;
  margin: 0;
}
.product-tile .bead-strand .bead {
  width: 22px;
  height: 22px;
  box-shadow: inset -2px -3px 0 rgba(0,0,0,0.08);
}

.product-card h3,
.product-card .product-price,
.product-card p,
.product-card .btn { margin-left: 0.5rem; margin-right: 0.5rem; }

.product-card h3 { margin-bottom: 0.15rem; font-size: 1.05rem; }
.product-price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--pink-deep);
  margin-bottom: 0.4rem;
}
.product-card p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.product-card .btn {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.88rem;
  padding: 0.6em 1.2em;
  background: var(--white);
  color: var(--plum);
  box-shadow: none;
  border: 2px solid var(--white);
}
.product-card .btn:hover {
  border-color: var(--pink);
  color: var(--pink-deep);
  transform: none;
}

.product-grid[data-empty="true"]::after {
  content: "Geen armbandjes gevonden met deze filters. Probeer er een paar uit te zetten.";
  grid-column: 1 / -1;
  color: var(--plum-soft);
  font-style: italic;
}

/* ---------- About ---------- */
.about {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: 0.4fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.about-photo {
  background: var(--yellow);
  border-radius: 50%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  border: 4px solid var(--white);
  box-shadow: 0 8px 0 rgba(0,0,0,0.05);
}

/* ---------- Contact ---------- */
.contact {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  text-align: center;
}
.contact h2, .contact p { margin-left: auto; margin-right: auto; }
.contact-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.8rem 0 1.2rem;
}
.btn-contact { color: var(--white); box-shadow: 0 6px 0 rgba(0,0,0,0.15); }
.btn-whatsapp { background: #3FBF63; }
.btn-insta { background: linear-gradient(135deg, #9B5DE5, #FF6FA0 60%, #FFC93C); }
.btn-mail { background: var(--grape); }

.contact-note {
  font-size: 0.82rem;
  color: var(--plum-soft);
  opacity: 0.8;
  max-width: 60ch;
  margin: 0 auto;
}
.contact-note code {
  background: var(--cream-deep);
  padding: 0.1em 0.4em;
  border-radius: 4px;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-bottom: 2rem;
  text-align: center;
}
.site-footer .bead-divider { justify-content: center; margin-bottom: 1.2rem; }
.site-footer p {
  font-size: 0.9rem;
  color: var(--plum-soft);
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 2.5rem; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-visual { order: -1; }
  .usps { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .about-photo { width: 130px; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    gap: 1rem;
    border-bottom: 3px solid var(--cream-deep);
    display: none;
  }
  .nav-links.open { display: flex; }
}


/* =========================================================
   Meerdere pagina's: categorieën, tags, filters, productpagina
   ========================================================= */

.nav-links a.active { color: var(--pink); }

.page-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 0;
}
.page-header h1 { margin-bottom: 0.3em; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.section-head h2 { margin: 0; }
.more-link {
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
}
.more-link:hover { text-decoration: underline; }

/* Categorie-tegels op de homepage */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.4rem;
}
.category-card {
  display: block;
  background: var(--white);
  border: 3px solid var(--cream-deep);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  text-decoration: none;
  color: var(--plum);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.category-card:hover { border-color: var(--pink); transform: translateY(-3px); }
.category-card .bead-strand { margin-bottom: 1rem; }
.category-card .bead {
  width: 20px;
  height: 20px;
  box-shadow: inset -2px -3px 0 rgba(0,0,0,0.08);
}
.category-card h3 { margin-bottom: 0.2rem; }
.category-card p { font-size: 0.9rem; margin-bottom: 0.6rem; }
.category-count {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--pink-deep);
}

/* Filters op de shop-pagina */
.filter-block { margin-bottom: 1.2rem; }
.filter-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--plum-soft);
}
.filter-block .filter-chips { margin: 0.5rem 0 0; }
.category-info { font-size: 0.92rem; margin: 0.6rem 0 0; }
.result-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0 1.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--plum-soft);
}

/* Categorie en tags op de kaarten */
.product-tile-link { display: block; }
.product-category {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--grape);
  text-decoration: none;
  margin: 0 0.5rem 0.1rem;
}
.product-category:hover { text-decoration: underline; }
.product-card h3 a { color: inherit; text-decoration: none; }
.product-card h3 a:hover { color: var(--pink-deep); }
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0.5rem 1rem;
}
.tag-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2em 0.7em;
  border-radius: 999px;
  background: var(--white);
  color: var(--plum-soft);
  text-decoration: none;
}
.tag-pill:hover { color: var(--pink-deep); }

/* Productpagina */
.product-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2rem;
}
.breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  color: var(--plum-soft);
}
.breadcrumb a { color: var(--plum-soft); }
.breadcrumb span { margin: 0 0.4rem; }
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.detail-tile {
  border-radius: var(--radius-md);
  margin-bottom: 0;
  box-shadow: inset 0 0 0 1px rgba(54, 36, 71, 0.08), 0 8px 0 rgba(54, 36, 71, 0.05);
}
.detail-tile .bead-strand .bead { width: 34px; height: 34px; }
.detail-info .product-category { margin: 0; }
.detail-info h1 { margin: 0.2rem 0 0.3rem; }
.detail-info .product-price { font-size: 1.6rem; margin: 0 0 1rem; }
.detail-info .tag-list { margin: 0 0 1.5rem; }
.detail-info .tag-pill { border: 1px solid var(--cream-deep); }
.detail-note { font-size: 0.88rem; margin-top: 1rem; }

/* Bestelpagina en footer */
.steps {
  text-align: left;
  max-width: 46ch;
  margin: 1.5rem auto 0;
  padding-left: 1.2rem;
  color: var(--plum-soft);
}
.steps li { margin-bottom: 0.4rem; }
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 0.8rem;
}
.footer-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--plum);
  text-decoration: none;
}
.footer-links a:hover { color: var(--pink); }

@media (max-width: 800px) {
  .product-detail { grid-template-columns: 1fr; gap: 1.5rem; }
  .page-header { text-align: left; }
}

/* Armband-samensteller */
.builder {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
.builder-stage {
  position: sticky;
  top: 5.5rem;
  background: var(--white);
  border: 2px solid var(--cream-deep);
  border-radius: var(--radius-lg);
  padding: 1rem;
  text-align: center;
}
.bracelet-svg { width: 100%; max-width: 420px; height: auto; touch-action: manipulation; }
.bracelet-svg g[role="button"]:focus { outline: none; }
.bracelet-svg g[role="button"]:focus-visible circle:last-child { stroke: var(--pink); stroke-width: 3; }
.builder-status { font-family: var(--font-display); font-weight: 600; margin: 0.4rem 0 0; }
.builder-input {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5em 1em;
  margin-top: 0.5rem;
  width: 100%;
  max-width: 18rem;
  border: 2px solid var(--cream-deep);
  border-radius: 999px;
  background: var(--white);
  color: var(--plum);
}
.builder-input:focus { outline: none; border-color: var(--pink); }
.swatches { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--cream-deep);
  cursor: pointer;
  padding: 0;
}
.swatch.active { box-shadow: 0 0 0 3px var(--pink); transform: scale(1.12); }
.swatch:focus-visible { outline: 3px solid var(--plum); outline-offset: 2px; }
.brush-name { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--pink-deep); }
.builder-order { margin-top: 1.8rem; }
.builder-price { font-size: 1.2rem; margin-bottom: 0.8rem; }
.btn.disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; transform: none; }
.builder-hint { font-size: 0.9rem; color: var(--plum-soft); margin-top: 0.8rem; }

@media (max-width: 800px) {
  .builder { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .builder-stage { top: 4.6rem; z-index: 5; padding: 0.5rem; }
  .bracelet-svg { max-height: 36vh; }
  .builder-status { font-size: 0.9rem; margin: 0; }
}

.builder-notice { font-size: 0.88rem; color: var(--pink-deep); margin: 0.2rem 0 0; min-height: 1.2em; }
.swatch.sold-out { opacity: 0.35; cursor: not-allowed; position: relative; transform: none; }
.swatch.sold-out::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 120%; height: 3px;
  background: var(--plum);
  transform: translate(-50%, -50%) rotate(-45deg);
  border-radius: 2px;
}
