/*
Theme Name: Crescendo Namibia
Theme URI: https://www.crescendona.com
Author: Crescendo Namibia
Author URI: https://www.crescendona.com
Description: Custom FSE block theme for Crescendo Namibia — a 1:1 replica of the flagship design. Pentagram simplicity, Siegel+Gale clarity, COLLINS muscularity. Built for WooCommerce catalog + WhatsApp enquiry commerce.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.0
License: Proprietary
Text Domain: crescendo
Tags: e-commerce, block-styles, full-site-editing, music, dark-footer
*/

/* ============================================================
   CRESCENDO NAMIBIA — BRAND SYSTEM (1:1 replica)
   Colors converted from OKLCH source of truth.
   ============================================================ */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/geist-var-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/geistmono-var-latin.woff2') format('woff2');
}

:root {
  /* Brand */
  --brand: #181b1f;            /* Deep charcoal — authority */
  --brand-light: #373b40;
  --brand-dark: #040609;       /* Near-black — footer */
  --brand-accent: #29aeec;     /* Cyan-blue — logo energy */
  --brand-accent-dark: #1d97d2;
  --brand-warm: #ecf3f8;

  /* Core */
  --background: #fdfbfa;       /* Warm off-white */
  --foreground: #090b0f;
  --card: #ffffff;
  --secondary: #f4f1ee;        /* Warm light gray */
  --muted-fg: #606369;
  --border: #e3e1de;
  --accent-bg: #e2f1fa;
  --wa-green: #25D366;
  --wa-green-dark: #20BD5A;
  --destructive: #dc2626;

  --radius: 10px;
  --radius-lg: 16px;           /* rounded-2xl */
  --radius-xl: 20px;

  --container: 1280px;
  --container-wide: 1400px;
  --header-h: 76px;
  --header-h-sm: 68px;

  --shadow-card-hover: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --shadow-header: 0 4px 24px -8px rgba(0,0,0,.12);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -5px rgba(0,0,0,.1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--container); margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px) { .container, .container-wide { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .container, .container-wide { padding-left: 2rem; padding-right: 2rem; } }

.font-mono { font-family: 'Geist Mono', ui-monospace, monospace; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 40;
  width: 100%;
  background: rgba(253, 251, 250, .95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-header); }

.site-header__bar { display: flex; align-items: center; justify-content: space-between; height: var(--header-h-sm); }
@media (min-width: 640px) { .site-header__bar { height: var(--header-h); } }

.site-logo { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.site-logo img { height: 40px; width: auto; }
@media (min-width: 640px) { .site-logo img { height: 44px; } }

.site-nav { display: none; align-items: center; gap: .25rem; }
@media (min-width: 1024px) { .site-nav { display: flex; } }

.site-nav__item { position: relative; }
.site-nav__link {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .5rem .875rem;
  font-size: .875rem; font-weight: 500;
  color: var(--foreground);
  border-radius: var(--radius);
  transition: color .2s ease, background .2s ease;
}
.site-nav__link:hover, .site-nav__link.is-active { color: var(--brand-accent); background: var(--brand-warm); }
.site-nav__caret { width: 14px; height: 14px; transition: transform .2s ease; }
.site-nav__item:hover .site-nav__caret { transform: rotate(180deg); }

.site-nav__dropdown {
  position: absolute; top: 100%; left: 0;
  min-width: 240px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card-hover);
  padding: .5rem;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .18s ease;
}
.site-nav__item:hover .site-nav__dropdown,
.site-nav__item:focus-within .site-nav__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.site-nav__dropdown a {
  display: flex; align-items: center; justify-content: space-between;
  padding: .5rem .75rem;
  font-size: .875rem; font-weight: 500;
  border-radius: var(--radius);
  transition: background .15s ease, color .15s ease;
}
.site-nav__dropdown a:hover { background: var(--brand-warm); color: var(--brand-accent); }
.site-nav__dropdown a span.count { font-size: .7rem; color: var(--muted-fg); }

.site-header__actions { display: flex; align-items: center; gap: .25rem; }

.icon-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 0; background: transparent;
  border-radius: var(--radius);
  color: var(--foreground);
  transition: background .2s ease, color .2s ease;
}
.icon-btn:hover { background: var(--brand-warm); color: var(--brand-accent); }
.icon-btn svg { width: 20px; height: 20px; }

.icon-btn__badge {
  position: absolute; top: 4px; right: 2px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  background: var(--brand-accent); color: var(--brand-dark);
  font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
  border-radius: 999px;
}

.hamburger { display: inline-flex; }
@media (min-width: 1024px) { .hamburger { display: none; } }

/* Mobile drawer */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--background);
  padding: 1.5rem;
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.32,.72,0,1);
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.mobile-menu__link {
  display: block; padding: .875rem 0;
  font-size: 1.125rem; font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.mobile-menu__sub { padding: .5rem 0 1rem; }
.mobile-menu__sub a { display: block; padding: .5rem 0 .5rem 1rem; font-size: .9375rem; color: var(--muted-fg); }
.mobile-menu__sub a:hover { color: var(--brand-accent); }

/* Search dialog */
.search-overlay {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(4, 6, 9, .6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: none; align-items: flex-start; justify-content: center;
  padding: 12vh 1rem 0;
}
.search-overlay.open { display: flex; }
.search-panel {
  width: 100%; max-width: 560px;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.search-panel__input {
  display: flex; align-items: center; gap: .75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.search-panel__input svg { width: 20px; height: 20px; color: var(--muted-fg); flex-shrink: 0; }
.search-panel__input input {
  flex: 1; border: 0; outline: none;
  font-family: inherit; font-size: 1rem;
  color: var(--foreground); background: transparent;
}
.search-panel__input kbd {
  font-family: 'Geist Mono', monospace; font-size: .65rem;
  color: var(--muted-fg);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 2px 6px;
}
.search-panel__results { max-height: 380px; overflow-y: auto; padding: .5rem; }
.search-panel__results a {
  display: flex; align-items: center; gap: .75rem;
  padding: .625rem .75rem;
  border-radius: var(--radius);
  transition: background .15s ease;
}
.search-panel__results a:hover { background: var(--brand-warm); }
.search-panel__results img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; background: var(--secondary); }
.search-panel__results .name { font-size: .875rem; font-weight: 500; }
.search-panel__results .price { margin-left: auto; font-family: 'Geist Mono', monospace; font-size: .8125rem; font-weight: 700; color: var(--brand-accent); }
.search-panel__empty { padding: 2rem 1rem; text-align: center; color: var(--muted-fg); font-size: .875rem; }

/* ============================================================
   HERO — 90vh, Namibian dunes, gradient overlays
   ============================================================ */
.hero {
  position: relative;
  height: 90vh; min-height: 600px;
  width: 100%;
  overflow: hidden;
}
.hero__img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__img--desktop { display: none; }
.hero__img--tablet { display: none; }
@media (min-width: 1280px) { .hero__img--tablet { display: block; } .hero__img--mobile { display: none; } }
@media (min-width: 1024px) and (max-width: 1279px) { .hero__img--desktop { display: block; } .hero__img--mobile { display: none; } }

.hero__overlay-r {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to right, rgba(0,0,0,.6), rgba(0,0,0,.25) 50%, transparent);
}
.hero__overlay-t {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,.5), transparent 40%, rgba(0,0,0,.2));
}
.hero__content {
  position: relative; z-index: 2;
  display: flex; align-items: center;
  height: 100%;
  padding-top: 5rem; padding-bottom: 5rem;
}
.hero__inner { max-width: 42rem; }
.hero__eyebrow {
  color: var(--brand-accent);
  font-size: 11px; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase;
  margin: 0 0 1.125rem;
}
@media (min-width: 640px) { .hero__eyebrow { font-size: .875rem; margin-bottom: 1.25rem; } }
.hero__title {
  margin: 0;
  color: #fff;
  font-size: 2.5rem; font-weight: 900;
  letter-spacing: -.025em;
  line-height: .95;
  text-shadow: 0 10px 15px -3px rgba(0,0,0,.3), 0 4px 6px -4px rgba(0,0,0,.3);
}
@media (min-width: 640px) { .hero__title { font-size: 3.75rem; } }
@media (min-width: 768px) { .hero__title { font-size: 4.5rem; } }
@media (min-width: 1024px) { .hero__title { font-size: 6rem; } }
.hero__title em { font-style: normal; color: var(--brand-accent); }
.hero__text {
  margin: 1.25rem 0 0;
  color: rgba(255,255,255,.85);
  font-size: 1rem; line-height: 1.625;
  max-width: 28rem;
  text-shadow: 0 4px 6px -1px rgba(0,0,0,.25);
}
@media (min-width: 640px) { .hero__text { margin-top: 1.75rem; font-size: 1.25rem; } }
.hero__ctas { margin-top: 2rem; display: flex; flex-direction: column; gap: .75rem; }
@media (min-width: 640px) { .hero__ctas { margin-top: 2.5rem; flex-direction: row; } }

.hero__scroll {
  position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,.6);
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  animation: hero-bob 2s ease-in-out infinite;
}
@keyframes hero-bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 3rem; padding: 0 1.5rem;
  font-size: .9375rem; font-weight: 600;
  border: 0; border-radius: var(--radius);
  transition: background .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease;
  text-align: center;
}
@media (min-width: 640px) { .btn { height: 3.5rem; padding: 0 2rem; font-size: 1rem; } }
.btn:active { transform: translateY(1px); }

.btn--accent {
  background: var(--brand-accent); color: var(--brand-dark);
  box-shadow: var(--shadow-xl);
}
.btn--accent:hover { background: var(--brand-accent-dark); }
.btn--outline-white {
  background: rgba(255,255,255,.1); color: #fff;
  border: 1px solid rgba(255,255,255,.4);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn--outline-white:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.7); }
.btn--dark { background: var(--brand); color: #fff; }
.btn--dark:hover { background: var(--brand-light); }
.btn--outline { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.btn--outline:hover { background: var(--brand); color: #fff; }
.btn--block { width: 100%; }

.btn--wa {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%; height: 2.25rem;
  margin-top: .75rem;
  background: var(--wa-green); color: #fff;
  font-size: .75rem; font-weight: 500;
  border: 0; border-radius: 999px;
  transition: background .2s ease;
}
@media (min-width: 640px) { .btn--wa { height: 2.5rem; font-size: .875rem; } }
.btn--wa:hover { background: var(--wa-green-dark); }
.btn--wa svg { width: 14px; height: 14px; }
@media (min-width: 640px) { .btn--wa svg { width: 16px; height: 16px; } }

.btn--wa-lg {
  height: 3rem; font-size: .9375rem; font-weight: 600;
}
.btn--wa-lg svg { width: 18px; height: 18px; }

.btn--enquiry {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%; height: 3rem;
  margin-top: .625rem;
  background: var(--brand-warm); color: var(--brand);
  font-size: .9375rem; font-weight: 600;
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: all .2s ease;
}
.btn--enquiry:hover { border-color: var(--brand-accent); color: var(--brand-accent); }
.btn--enquiry.is-added { background: var(--accent-bg); border-color: var(--brand-accent); color: var(--brand-accent-dark); }
.btn--enquiry svg { width: 16px; height: 16px; }

/* ============================================================
   SECTION RHYTHM + HEADINGS
   ============================================================ */
.section { padding: 3rem 0; }
@media (min-width: 640px) { .section { padding: 4rem 0; } }
@media (min-width: 1024px) { .section { padding: 5rem 0; } }

.section--tinted { background: #f8f6f4; }

.section-head { text-align: center; margin-bottom: 2rem; }
@media (min-width: 640px) { .section-head { margin-bottom: 3rem; } }
.eyebrow {
  color: var(--brand-accent);
  font-size: 11px; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase;
  margin: 0 0 .5rem;
}
.section-head h2 {
  margin: 0;
  font-size: 1.5rem; font-weight: 900; letter-spacing: -.025em;
}
@media (min-width: 640px) { .section-head h2 { font-size: 1.875rem; } }
@media (min-width: 1024px) { .section-head h2 { font-size: 2.25rem; } }

/* ============================================================
   CATEGORY GRID
   ============================================================ */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 640px) { .cat-grid { gap: 1rem; } }
@media (min-width: 768px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }

.cat-card { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 640px) { .cat-card { aspect-ratio: 3 / 2; } }
.cat-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.cat-card:hover img { transform: scale(1.05); }
.cat-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8), rgba(0,0,0,.4) 50%, rgba(0,0,0,.1));
  transition: background .3s ease;
}
.cat-card:hover .cat-card__overlay { background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,.4) 50%, rgba(0,0,0,.1)); }
.cat-card__text { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: .75rem; }
@media (min-width: 640px) { .cat-card__text { padding: 1.25rem; } }
.cat-card__name {
  margin: 0;
  color: #fff;
  font-size: .875rem; font-weight: 700;
  letter-spacing: .025em; text-transform: uppercase;
  line-height: 1.25;
}
@media (min-width: 640px) { .cat-card__name { font-size: 1.125rem; } }
.cat-card__count { margin: 2px 0 0; color: rgba(255,255,255,.7); font-size: 11px; }
@media (min-width: 640px) { .cat-card__count { font-size: .75rem; } }
.cat-card__line {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--brand-accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.cat-card:hover .cat-card__line { transform: scaleX(1); }

/* ============================================================
   PRODUCT GRID + CARD
   ============================================================ */
.prod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (min-width: 640px) { .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
@media (min-width: 1024px) { .prod-grid { grid-template-columns: repeat(4, 1fr); } }

.prod-grid--scroll-mobile {
  display: flex; gap: .75rem; overflow-x: auto;
  margin: 0 -1rem; padding: 0 1rem 2px;
  scrollbar-width: none;
}
.prod-grid--scroll-mobile::-webkit-scrollbar { display: none; }
.prod-grid--scroll-mobile .prod-card { flex: 0 0 200px; }
@media (min-width: 640px) {
  .prod-grid--scroll-mobile { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin: 0; padding: 0; }
  .prod-grid--scroll-mobile .prod-card { flex: auto; }
}
@media (min-width: 1024px) { .prod-grid--scroll-mobile { grid-template-columns: repeat(4, 1fr); } }

.prod-card { transition: opacity .4s ease, transform .4s ease; }
.prod-card__inner {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .3s ease;
  height: 100%;
  display: flex; flex-direction: column;
}
.prod-card:hover .prod-card__inner { box-shadow: var(--shadow-card-hover); }
.prod-card__imglink { display: block; }
.prod-card__imgwrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: rgba(244, 241, 238, .3);
  padding: 1rem;
  overflow: hidden;
}
@media (min-width: 640px) { .prod-card__imgwrap { padding: 1.5rem; } }
.prod-card__imgwrap img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: .75rem;
  transition: transform .5s ease;
}
.prod-card:hover .prod-card__imgwrap img { transform: scale(1.05); }
.prod-card__oos {
  position: absolute; inset: 0;
  background: rgba(253, 251, 250, .7);
  display: flex; align-items: center; justify-content: center;
}
.prod-card__oos span {
  padding: .25rem .75rem;
  background: var(--destructive); color: #fff;
  font-size: .75rem; font-weight: 600;
  border-radius: 999px;
}
.prod-card__body { padding: .75rem; display: flex; flex-direction: column; flex: 1; }
@media (min-width: 640px) { .prod-card__body { padding: 1rem; } }
.prod-card__brand {
  margin: 0 0 .25rem;
  font-size: 10px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted-fg);
}
@media (min-width: 640px) { .prod-card__brand { font-size: .75rem; } }
.prod-card__name {
  margin: 0;
  font-size: .875rem; font-weight: 600;
  line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5rem;
  transition: color .2s ease;
}
@media (min-width: 640px) { .prod-card__name { font-size: 1rem; } }
.prod-card:hover .prod-card__name { color: var(--brand-accent); }
.prod-card__price {
  margin: .5rem 0 0;
  font-family: 'Geist Mono', monospace;
  font-size: 1rem; font-weight: 700;
  color: var(--brand-accent);
}
@media (min-width: 640px) { .prod-card__price { font-size: 1.125rem; margin-top: .75rem; } }
.prod-card__price small { font-size: .75em; font-weight: 500; color: var(--muted-fg); margin-left: .25rem; }

/* ============================================================
   SHOP / CATEGORY ARCHIVE
   ============================================================ */
.archive-head { padding: 2.5rem 0 1.5rem; }
@media (min-width: 640px) { .archive-head { padding: 3.5rem 0 2rem; } }
.archive-head__crumbs { font-size: .8125rem; color: var(--muted-fg); margin: 0 0 1rem; }
.archive-head__crumbs a:hover { color: var(--brand-accent); }
.archive-head__crumbs .sep { margin: 0 .4rem; color: var(--border); }
.archive-head h1 { margin: 0 0 .5rem; font-size: 1.875rem; font-weight: 900; letter-spacing: -.025em; }
@media (min-width: 640px) { .archive-head h1 { font-size: 2.5rem; } }
.archive-head__desc { margin: 0; color: var(--muted-fg); max-width: 44rem; font-size: .9375rem; line-height: 1.6; }

.archive-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.archive-toolbar__count { font-size: .875rem; color: var(--muted-fg); }
.archive-toolbar__count strong { color: var(--foreground); }
.archive-toolbar select {
  font-family: inherit; font-size: .875rem;
  padding: .5rem .75rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); color: var(--foreground);
  outline: none;
}
.archive-toolbar select:focus { border-color: var(--brand-accent); }

.cat-chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.cat-chips a {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .375rem .875rem;
  font-size: .8125rem; font-weight: 500;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--card);
  transition: all .2s ease;
}
.cat-chips a:hover, .cat-chips a.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }
.cat-chips a span { font-size: .6875rem; opacity: .6; }

/* Pagination */
.crumbs-nav { display: flex; justify-content: center; gap: .375rem; padding: 2.5rem 0; }
.crumbs-nav a, .crumbs-nav span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 .75rem;
  font-size: .875rem; font-weight: 500;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card);
  transition: all .2s ease;
}
.crumbs-nav a:hover { border-color: var(--brand-accent); color: var(--brand-accent); }
.crumbs-nav .current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ============================================================
   SINGLE PRODUCT
   ============================================================ */
.single-product-wrap { display: grid; grid-template-columns: 1fr; gap: 2rem; padding: 1.5rem 0 3rem; }
@media (min-width: 1024px) { .single-product-wrap { grid-template-columns: 1fr 1fr; gap: 3rem; padding: 2.5rem 0 4rem; } }

.sp-gallery { position: relative; }
.sp-gallery__main {
  position: relative;
  aspect-ratio: 1 / 1;
  background: rgba(244, 241, 238, .3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.sp-gallery__main img { max-height: 100%; object-fit: contain; }
.sp-gallery__badge { position: absolute; top: 1rem; left: 1rem; z-index: 2; }

.badge { display: inline-flex; align-items: center; padding: .25rem .75rem; font-size: .75rem; font-weight: 600; border-radius: 999px; }
.badge--in { background: var(--accent-bg); color: #1d6f9c; }
.badge--low { background: #fdf3e0; color: #a16207; }
.badge--out { background: var(--destructive); color: #fff; }

.sp-info__brand {
  margin: 0 0 .5rem;
  font-size: .75rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted-fg);
}
.sp-info h1 { margin: 0 0 1rem; font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
@media (min-width: 640px) { .sp-info h1 { font-size: 2.25rem; } }
.sp-info__price {
  margin: 0 0 .5rem;
  font-family: 'Geist Mono', monospace;
  font-size: 1.75rem; font-weight: 700;
  color: var(--brand-accent);
}
.sp-info__stockrow { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.5rem; }
.sp-info__stockrow .cat { font-size: .8125rem; color: var(--muted-fg); }

.sp-actions { margin: 1.5rem 0; }
.sp-qty {
  display: flex; align-items: center; gap: .75rem; margin-bottom: .875rem;
  font-size: .875rem; font-weight: 500;
}
.sp-qty input {
  width: 64px; height: 2.5rem; text-align: center;
  font-family: 'Geist Mono', monospace; font-size: .9375rem; font-weight: 600;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); color: var(--foreground);
  outline: none;
}
.sp-qty input:focus { border-color: var(--brand-accent); }

.sp-meta {
  margin-top: 1.75rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}
.sp-meta h3 { margin: 0 0 .75rem; font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-fg); }
.sp-meta table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.sp-meta td { padding: .5rem 0; border-bottom: 1px solid var(--border); }
.sp-meta td:first-child { color: var(--muted-fg); width: 40%; }
.sp-meta td:last-child { font-weight: 500; }

/* Related */
.related { border-top: 1px solid var(--border); padding: 3rem 0 4rem; }
.related h2 { margin: 0 0 1.5rem; font-size: 1.5rem; font-weight: 900; letter-spacing: -.02em; }

/* ============================================================
   PAGE (book-an-artist, legal, standard pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-light));
  color: #fff;
  padding: 4.5rem 0 4rem;
  text-align: center;
}
@media (min-width: 640px) { .page-hero { padding: 6rem 0 5rem; } }
.page-hero .eyebrow { color: var(--brand-accent); }
.page-hero h1 { margin: 0 0 1rem; font-size: 2.5rem; font-weight: 900; letter-spacing: -.02em; line-height: 1.05; }
@media (min-width: 640px) { .page-hero h1 { font-size: 3.75rem; } }
.page-hero h1 em { font-style: normal; color: var(--brand-accent); }
.page-hero p { margin: 0 auto; max-width: 40rem; color: rgba(255,255,255,.8); font-size: 1.0625rem; line-height: 1.6; }

.page-content { padding: 3rem 0 4.5rem; }
.page-content h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin: 2.25rem 0 1rem; }
.page-content h3 { font-size: 1.125rem; font-weight: 700; margin: 1.75rem 0 .75rem; }
.page-content p { line-height: 1.7; color: #2a2d33; margin: 0 0 1rem; }
.page-content ul, .page-content ol { line-height: 1.7; color: #2a2d33; padding-left: 1.25rem; margin: 0 0 1.25rem; }
.page-content li { margin-bottom: .4rem; }
.page-content a { color: var(--brand-accent-dark); font-weight: 500; }
.page-content a:hover { text-decoration: underline; }

.value-cards { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 2.5rem 0; }
@media (min-width: 640px) { .value-cards { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.value-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: box-shadow .3s ease, transform .3s ease;
}
.value-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.value-card__icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-warm); color: var(--brand-accent);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.value-card__icon svg { width: 22px; height: 22px; }
.value-card h3 { margin: 0 0 .5rem; font-size: 1rem; font-weight: 700; }
.value-card p { margin: 0; font-size: .875rem; color: var(--muted-fg); line-height: 1.6; }

.contact-card {
  max-width: 640px; margin: 2.5rem auto 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.contact-card h3 { margin: 0 0 1.25rem; font-size: 1.125rem; font-weight: 800; }
.form-row { margin-bottom: 1rem; }
.form-row label { display: block; font-size: .8125rem; font-weight: 600; margin-bottom: .375rem; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  font-family: inherit; font-size: .9375rem;
  padding: .625rem .875rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); color: var(--foreground);
  outline: none;
  transition: border-color .2s ease;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { border-color: var(--brand-accent); }
.form-note { font-size: .75rem; color: var(--muted-fg); margin-top: .5rem; }
.form-status { margin-top: 1rem; font-size: .875rem; font-weight: 500; display: none; padding: .75rem 1rem; border-radius: var(--radius); }
.form-status.ok { display: block; background: #e7f7ee; color: #15803d; }
.form-status.err { display: block; background: #fdecec; color: var(--destructive); }

/* ============================================================
   ENQUIRY DRAWER (replaces cart)
   ============================================================ */
.drawer-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(4,6,9,.5); opacity: 0; visibility: hidden; transition: all .3s ease; }
.drawer-overlay.open { opacity: 1; visibility: visible; }
.enquiry-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90;
  width: 100%; max-width: 420px;
  background: var(--background);
  box-shadow: -10px 0 40px rgba(0,0,0,.15);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.32,.72,0,1);
  display: flex; flex-direction: column;
}
.enquiry-drawer.open { transform: translateX(0); }
.enquiry-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.enquiry-drawer__head h3 { margin: 0; font-size: 1.0625rem; font-weight: 800; display: flex; align-items: center; gap: .5rem; }
.enquiry-drawer__head h3 span.count {
  background: var(--brand-accent); color: var(--brand-dark);
  font-size: .75rem; font-weight: 700;
  min-width: 22px; height: 22px; line-height: 22px; text-align: center;
  border-radius: 999px;
}
.enquiry-drawer__body { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.enquiry-item { display: flex; gap: .875rem; padding: .875rem 0; border-bottom: 1px solid var(--border); }
.enquiry-item img { width: 56px; height: 56px; object-fit: contain; background: var(--secondary); border-radius: 10px; padding: 4px; flex-shrink: 0; }
.enquiry-item__name { font-size: .875rem; font-weight: 600; line-height: 1.3; }
.enquiry-item__price { font-family: 'Geist Mono', monospace; font-size: .8125rem; font-weight: 700; color: var(--brand-accent); margin-top: .25rem; }
.enquiry-item__qty { display: flex; align-items: center; gap: .5rem; margin-top: .5rem; }
.enquiry-item__qty button {
  width: 24px; height: 24px;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--card); font-size: .875rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.enquiry-item__qty button:hover { border-color: var(--brand-accent); color: var(--brand-accent); }
.enquiry-item__qty input { width: 40px; height: 24px; text-align: center; border: 1px solid var(--border); border-radius: 6px; font-family: 'Geist Mono', monospace; font-size: .8125rem; }
.enquiry-item__remove { margin-left: auto; background: none; border: 0; color: var(--muted-fg); font-size: .75rem; padding: .25rem; }
.enquiry-item__remove:hover { color: var(--destructive); }
.enquiry-empty { text-align: center; padding: 4rem 1rem; color: var(--muted-fg); }
.enquiry-empty svg { width: 48px; height: 48px; margin: 0 auto 1rem; opacity: .4; }
.enquiry-drawer__foot { padding: 1.25rem 1.5rem; border-top: 1px solid var(--border); }
.enquiry-drawer__total { display: flex; justify-content: space-between; font-size: .875rem; margin-bottom: .875rem; }
.enquiry-drawer__total strong { font-family: 'Geist Mono', monospace; font-size: 1rem; color: var(--brand-accent); }
.enquiry-drawer__note { font-size: .75rem; color: var(--muted-fg); text-align: center; margin-top: .625rem; }

/* Toast */
.toast {
  position: fixed; bottom: 1.5rem; left: 50%;
  transform: translate(-50%, 150%);
  z-index: 100;
  background: var(--brand-dark); color: #fff;
  font-size: .875rem; font-weight: 500;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  box-shadow: var(--shadow-xl);
  transition: transform .3s cubic-bezier(.32,.72,0,1);
  display: flex; align-items: center; gap: .5rem;
  max-width: calc(100vw - 2rem);
}
.toast.show { transform: translate(-50%, 0); }
.toast svg { width: 16px; height: 16px; color: var(--wa-green); flex-shrink: 0; }

/* Floating WhatsApp (mobile convenience) */
.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 50;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--wa-green); color: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow-xl);
  transition: transform .2s ease, background .2s ease;
}
.wa-float:hover { background: var(--wa-green-dark); transform: scale(1.06); }
.wa-float svg { width: 26px; height: 26px; }

/* ============================================================
   FOOTER — brand-dark band
   ============================================================ */
.site-footer { background: var(--brand-dark); color: #fff; margin-top: auto; }
.footer-cta { padding: 3.5rem 0 0; }
.footer-cta__row { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 640px) { .footer-cta__row { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer-cta .eyebrow { font-size: 10px; margin-bottom: .25rem; }
.footer-cta h3 { margin: 0; font-size: 1rem; font-weight: 700; letter-spacing: -.01em; }
@media (min-width: 640px) { .footer-cta h3 { font-size: 1.25rem; } }
.footer-cta a.shoplink {
  flex-shrink: 0;
  font-size: 10px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase;
  color: rgba(255,255,255,.6);
  transition: color .2s ease;
}
@media (min-width: 640px) { .footer-cta a.shoplink { font-size: .75rem; } }
.footer-cta a.shoplink:hover { color: var(--brand-accent); }

.footer-cats {
  display: flex; gap: .625rem; overflow-x: auto;
  padding: 1.5rem 0;
  scrollbar-width: none;
}
.footer-cats::-webkit-scrollbar { display: none; }
.footer-cats a {
  flex-shrink: 0;
  padding: .625rem 1rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  transition: all .2s ease;
}
.footer-cats a:hover { border-color: var(--brand-accent); background: rgba(41,174,236,.08); }
.footer-cats p { margin: 0; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; line-height: 1.25; }
@media (min-width: 640px) { .footer-cats p { font-size: .75rem; } }
.footer-cats span { display: block; font-size: 9px; color: rgba(255,255,255,.5); margin-top: 2px; }
@media (min-width: 640px) { .footer-cats span { font-size: .5625rem; } }

.footer-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2rem; } }
.footer-brand img { height: 40px; width: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: .875rem; color: rgba(255,255,255,.55); line-height: 1.65; margin: 0 0 1.25rem; max-width: 24rem; }
.footer-social { display: flex; gap: .5rem; }
.footer-social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.05);
  border-radius: 999px;
  transition: all .2s ease;
}
.footer-social a svg { width: 16px; height: 16px; }
.footer-social a:hover { transform: translateY(-2px); }
.footer-social a.fg-fb:hover { background: rgba(24,119,242,.2); color: #1877F2; }
.footer-social a.fg-ig:hover { background: rgba(228,64,95,.2); color: #E4405F; }
.footer-social a.fg-tt:hover { background: rgba(255,255,255,.12); color: #fff; }
.footer-social a.fg-yt:hover { background: rgba(255,0,0,.2); color: #FF0000; }

.footer-col h4 {
  margin: 0 0 1rem;
  font-size: 11px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.4);
}
.footer-col a { display: block; padding: .25rem 0; font-size: .875rem; color: rgba(255,255,255,.7); transition: color .2s ease; }
.footer-col a:hover { color: var(--brand-accent); }

.footer-contact p.label {
  margin: 0 0 .25rem;
  font-size: .75rem; text-transform: uppercase; letter-spacing: .05em;
  color: rgba(255,255,255,.4);
}
.footer-contact p.val { margin: 0 0 .875rem; font-size: .875rem; color: rgba(255,255,255,.7); line-height: 1.6; }
.footer-contact a { color: rgba(255,255,255,.7); transition: color .2s ease; }
.footer-contact a:hover { color: var(--brand-accent); }

.footer-bottom {
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .75rem; color: rgba(255,255,255,.4);
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-bottom nav { display: flex; align-items: center; gap: 1rem; }
.footer-bottom a { color: rgba(255,255,255,.4); transition: color .2s ease; }
.footer-bottom a:hover { color: rgba(255,255,255,.8); }

/* ============================================================
   UTILITY
   ============================================================ */
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* Fix for block theme alignment */
body .wp-site-blocks { padding: 0; }
body .is-layout-constrained > .alignwide { max-width: var(--container); }
.entry-content > * { max-width: none; }

/* WooCommerce admin-bar safe */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

/* Print */
@media print {
  .site-header, .site-footer, .wa-float, .toast, .enquiry-drawer, .drawer-overlay { display: none !important; }
}
