/*
Theme Name: Nabubu
Description: Custom coded theme for Nabubu (nabububd.com). Built to the "Bold Bazaar" design system — clean DOM, no page-builder markup, hook-friendly for GTM/Facebook Pixel/Conversions API.
Author: Nabubu
Version: 1.0.0
Text Domain: nabubu
Requires PHP: 8.0
*/

/* ---------------------------------------------
   Design tokens (source: active Nabubu DESIGN.md)
--------------------------------------------- */
:root {
  --bg: #FFFFFF;
  --surface: #FAF8F5;
  --ink: #1C1917;
  --ink-60: rgba(28, 25, 23, 0.6);
  --ink-40: rgba(28, 25, 23, 0.4);
  --ink-10: rgba(28, 25, 23, 0.1);
  --accent: #FD6802;
  /* Accessible variant of the brand orange for TEXT and text-bearing fills.
     Same hue (24.4deg) and saturation, darkened until it clears WCAG AA 4.5:1
     on white. #FD6802 only reaches 2.93:1, so it stays a decorative fill. */
  --accent-text: #C85202;
  --accent-ink: #FFFFFF;
  --support: #2E2A26;

  --font-heading: 'Clash Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'General Sans', 'Segoe UI', system-ui, sans-serif;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
  --space-xl: 64px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-pill: 999px;

  --container: 1280px;
  --header-h: 108px;
  --header-h-scrolled: 72px;

  --shadow-sm: 0 2px 10px rgba(28, 25, 23, 0.08);
  --shadow-md: 0 8px 30px rgba(28, 25, 23, 0.12);
}

/* ---------------------------------------------
   Reset (scoped with :where so component rules always win)
--------------------------------------------- */
:where(*, *::before, *::after) { box-sizing: border-box; }
:where(html) { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
:where(body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol) { margin: 0; padding: 0; }
:where(ul, ol) { list-style: none; }
:where(img, picture, svg, video) { display: block; max-width: 100%; height: auto; }
:where(a) { color: inherit; text-decoration: none; }
:where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(button) { background: none; border: 0; cursor: pointer; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------
   Accessibility baseline
--------------------------------------------- */

/* Visible focus ring on every interactive element. Uses outline (not border or
   background) so it never shifts layout, and offset so it clears the element. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
/* Focus ring must stay visible against orange fills too. */
.category-nav a:focus-visible,
.btn-buy-now:focus-visible,
.mobile-cart-fab:focus-visible {
  outline-color: var(--ink);
}

/* Removes the 300ms tap delay on touch devices without disabling pinch-zoom. */
a, button, input, select, textarea, label, [role="button"] {
  touch-action: manipulation;
}

/* Minimum 44x44px touch target for controls, via a centred pseudo-element so the
   hit area grows without changing the visual size of small icon buttons. */
.touch-safe { position: relative; }
.touch-safe::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%; height: 100%;
  min-width: 44px; min-height: 44px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
}

h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.08;
  color: var(--ink);
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  white-space: nowrap;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { opacity: .92; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink-10);
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  z-index: 999;
}
.skip-link:focus { left: var(--space-md); top: var(--space-md); }
