/* ================================================================
   FIDGET EMPORIUM — MAIN STYLESHEET
   Palette: Deep Plum, Wonder Gold, Magic Teal, Coral, Cream
   ================================================================ */

:root {
  --plum:       #2D1B69;
  --plum-dark:  #1A0F3D;
  --plum-mid:   #3D2680;
  --gold:       #FFD93D;
  --gold-dark:  #E6C22A;
  --teal:       #00BFA5;
  --teal-light: #B8F5EE;
  --coral:      #FF6B6B;
  --coral-light:#FFE0E0;
  --pink:       #FF9ECD;
  --mint:       #AAFADF;
  --lavender:   #C8B8FF;
  --cream:      #FFFDF5;
  --cream-dark: #FFF4E0;
  --ink:        #1A1A2E;
  --ink-soft:   #3D3D5C;
  --white:      #FFFFFF;

  --font-heading: 'Fredoka One', 'Comic Sans MS', cursive;
  --font-body:    'Nunito', 'Segoe UI', sans-serif;

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  28px;
  --radius-xl:  48px;

  --shadow-soft: 0 4px 20px rgba(45, 27, 105, 0.12);
  --shadow-glow: 0 0 24px rgba(255, 217, 61, 0.35);
  --shadow-card: 0 8px 32px rgba(45, 27, 105, 0.15);

  --transition: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--teal); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.15;
  color: var(--plum);
  font-weight: 400;
}

p { margin-bottom: 1rem; }
ul, ol { padding-left: 1.5rem; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* At ≥1380px the container's auto-margin (≥70px) already clears the 60px strip —
   no extra padding formula needed. Normal 24px padding applies everywhere. */

/* ── Side toy strips ──────────────────────────────── */
.side-strip {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 60px;
  background: var(--plum-dark);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 80px 0;
  border-top: none;
}

/* Decorative gradient edge lines */
.side-strip--left {
  left: 0;
  border-right: 2px solid transparent;
  border-image: linear-gradient(to bottom, var(--gold), var(--teal), var(--coral), var(--pink), var(--gold)) 1;
}

.side-strip--right {
  right: 0;
  border-left: 2px solid transparent;
  border-image: linear-gradient(to bottom, var(--teal), var(--gold), var(--pink), var(--coral), var(--teal)) 1;
}

/* Toy group: toy + label */
.toy-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  position: relative;
}

.toy-label {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  transition: color 0.2s;
}

.toy-group:hover .toy-label { color: rgba(255,255,255,0.6); }

/* Base toy button reset */
.toy {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: block;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* ── Squishy stress ball ──────────────────────────── */
.toy--ball {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #ffb3d1 0%, #FF9ECD 30%, #FF6B6B 70%, #cc3355 100%);
  box-shadow:
    0 5px 14px rgba(0,0,0,0.35),
    inset 0 -4px 8px rgba(0,0,0,0.2),
    inset 0 4px 8px rgba(255,255,255,0.25);
  position: relative;
  transition: transform 0.1s;
}

.ball-shine {
  position: absolute;
  top: 20%;
  left: 22%;
  width: 30%;
  height: 22%;
  background: rgba(255,255,255,0.45);
  border-radius: 50%;
  transform: rotate(-30deg);
  pointer-events: none;
}

.toy--ball:hover { transform: scale(1.06); }
.toy--ball:active { transform: scaleX(1.35) scaleY(0.68); }

.toy--ball.squeezing {
  animation: ball-squeeze 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes ball-squeeze {
  0%   { transform: scale(1); }
  25%  { transform: scaleX(1.38) scaleY(0.64); }
  55%  { transform: scaleX(0.88) scaleY(1.12); }
  75%  { transform: scaleX(1.06) scaleY(0.94); }
  100% { transform: scale(1); }
}

/* ── Fidget spinner ───────────────────────────────── */
.toy--spinner {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner-svg { width: 44px; height: 44px; display: block; }

.spinner-body { transform-origin: 0 0; }

.toy--spinner.spinning .spinner-body {
  animation: spin-toy var(--spin-dur, 1.8s) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes spin-toy {
  from { transform: rotate(0deg); }
  to   { transform: rotate(var(--spin-deg, 720deg)); }
}

/* ── Pop-it ───────────────────────────────────────── */
.toy--popit {
  display: grid;
  grid-template-columns: repeat(3, 15px);
  gap: 4px;
  cursor: default;
}

.popit-bubble {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--bubble-base, var(--lavender));
  box-shadow:
    inset -2px -3px 5px rgba(255,255,255,0.3),
    inset 2px 3px 5px rgba(0,0,0,0.15),
    0 2px 5px rgba(0,0,0,0.25);
  cursor: pointer;
  border: none;
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}

.popit-bubble:hover:not(.popped) {
  transform: scale(1.12);
  background: var(--pink);
}

.popit-bubble.popped {
  background: #5a4080;
  box-shadow:
    inset 2px 3px 6px rgba(0,0,0,0.45),
    inset -1px -2px 4px rgba(255,255,255,0.05);
  transform: scale(0.88);
}

/* ── Fidget cube ──────────────────────────────────── */
.toy--cube {
  width: 38px;
  height: 38px;
  background: var(--plum-mid);
  border-radius: 8px;
  border: 2px solid rgba(255,217,61,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, border-color 0.15s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.08);
}

.toy--cube:hover  { border-color: rgba(255,217,61,0.6); transform: scale(1.06); }
.toy--cube:active { transform: scale(0.93); }

.cube-face--front {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 4px;
  width: 100%;
  height: 100%;
}

.cube-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.7;
  transition: opacity 0.15s, background 0.15s;
  justify-self: center;
  align-self: center;
}

.toy--cube.clicked .cube-dot {
  background: var(--teal);
  opacity: 1;
  animation: dot-pop 0.35s ease-out;
}

@keyframes dot-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.5); }
  100% { transform: scale(1); }
}

/* ── Hide strips / collapse on small screens ──────── */
/* Below 1380px the container auto-margin < 60px so toys are hidden; thin decorative line stays */
@media (max-width: 1379px) {
  .side-strip {
    width: 6px;
  }
  .toy-group { display: none; }
}

/* ── Easter Egg: Ball Pop ─────────────────────────── */
.toy--ball.ball-popped {
  animation: ball-pop-burst 0.5s ease-in forwards;
}

@keyframes ball-pop-burst {
  0%   { transform: scale(1);   opacity: 1; filter: brightness(1); }
  35%  { transform: scale(1.7); opacity: 1; filter: brightness(1.6); }
  100% { transform: scale(0);   opacity: 0; filter: brightness(2); }
}

.toy--ball.ball-healing {
  animation: ball-heal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes ball-heal {
  0%   { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.ball-liquid {
  position: absolute;
  width: 7px;
  border-radius: 0 0 50% 50%;
  background: linear-gradient(to bottom, #FF9ECD, #FF6B6B 60%, transparent);
  top: 100%;
  pointer-events: none;
  animation: drip-fall var(--drip-dur, 2s) var(--drip-delay, 0s) ease-in both;
}

@keyframes drip-fall {
  0%   { height: 0;                      opacity: 1; transform: translateX(0); }
  55%  { height: var(--drip-len, 28px);  opacity: 1; }
  85%  { height: var(--drip-len, 28px);  opacity: 0.7; transform: translateX(var(--drip-x, 0)); }
  100% { height: var(--drip-len, 28px);  opacity: 0;   transform: translateX(var(--drip-x, 0)) translateY(10px); }
}

/* ── Easter Egg: Pop-it Completion ───────────────── */
.toy--popit.completed {
  animation: popit-flash 0.7s ease-out;
}

@keyframes popit-flash {
  0%   { filter: brightness(1); }
  35%  { filter: brightness(2.2) saturate(2); }
  100% { filter: brightness(1); }
}

/* ── Easter Egg: Cube Switch + Ball Faces ─────────── */
[hidden] { display: none !important; }

.cube-face--switch,
.cube-face--ball {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.cube-switch-track {
  width: 26px;
  height: 14px;
  border-radius: 7px;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,217,61,0.4);
  position: relative;
  transition: background 0.25s, border-color 0.25s;
}

.cube-switch-track.on {
  background: var(--teal);
  border-color: var(--teal);
}

.cube-switch-thumb {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #FFD93D;
  top: 1px;
  left: 1px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.35);
}

.cube-switch-track.on .cube-switch-thumb {
  transform: translateX(12px);
}

.cube-mini-ball {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #ffb3d1 0%, #FF9ECD 30%, #FF6B6B 70%, #cc3355 100%);
  box-shadow: 0 3px 7px rgba(0,0,0,0.3), inset 0 2px 4px rgba(255,255,255,0.2);
  position: relative;
  animation: mini-ball-pulse 1.5s ease-in-out infinite;
}

.cube-mini-ball-shine {
  position: absolute;
  top: 18%;
  left: 22%;
  width: 28%;
  height: 20%;
  background: rgba(255,255,255,0.45);
  border-radius: 50%;
  transform: rotate(-30deg);
}

@keyframes mini-ball-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.1); }
}

/* ── Particles Canvas ─────────────────────────────── */
#magic-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* ── Header ───────────────────────────────────────── */
.site-header {
  background: var(--plum);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1240px;
  margin: 0 auto;
  gap: 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-logo-svg {
  height: 40px;
  width: auto;
  display: block;
  transition: opacity 0.2s;
}

.site-logo:hover .site-logo-svg {
  opacity: 0.88;
}

/* ── Navigation ───────────────────────────────────── */
.site-nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  color: rgba(255,255,255,0.85);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: var(--radius-lg);
  transition: all 0.2s;
  display: block;
}

.site-nav a:hover,
.site-nav .current-menu-item > a {
  background: rgba(255,217,61,0.15);
  color: var(--gold);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-cart-link {
  position: relative;
  color: var(--white);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s;
}

.header-cart-link:hover { transform: scale(1.15); color: var(--gold); }

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--coral);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn-search {
  background: none;
  border: none;
  color: rgba(255,255,255,0.75);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: all 0.2s;
}

.btn-search:hover { background: rgba(255,255,255,0.1); color: white; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Hero Section ─────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--plum-dark) 0%, var(--plum) 45%, #4A2090 100%);
  position: relative;
  overflow: hidden;
  min-height: 580px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(0,191,165,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(255,107,107,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero-content { color: var(--white); }

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
  display: block;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero-title .highlight {
  color: var(--gold);
  display: block;
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  max-width: 460px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--gold);
  color: var(--plum-dark);
  box-shadow: 0 4px 20px rgba(255,217,61,0.4);
}

.btn-primary:hover {
  background: #ffe566;
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--shadow-glow);
  color: var(--plum-dark);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
}

.btn-teal {
  background: var(--teal);
  color: var(--plum-dark);
}

.btn-teal:hover {
  background: #00d9bc;
  transform: translateY(-2px);
  color: var(--plum-dark);
}

/* Hero visual — floating toy shapes */
.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  position: relative;
}

.hero-bubble {
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  aspect-ratio: 1;
  animation: float-bubble 4s ease-in-out infinite;
}

.hero-bubble:nth-child(1) { background: rgba(255,217,61,0.2);  animation-delay: 0s;    }
.hero-bubble:nth-child(2) { background: rgba(0,191,165,0.2);   animation-delay: 0.7s;  }
.hero-bubble:nth-child(3) { background: rgba(255,107,107,0.2); animation-delay: 1.4s;  }
.hero-bubble:nth-child(4) { background: rgba(200,184,255,0.2); animation-delay: 2.1s;  }

@keyframes float-bubble {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-12px) rotate(3deg); }
}

/* ── Category Cards ───────────────────────────────── */
.section-categories {
  padding: 80px 0;
  background: var(--cream);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--plum);
  margin-bottom: 10px;
}

.section-sub {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.category-card {
  border-radius: var(--radius-lg);
  padding: 32px 16px;
  text-align: center;
  text-decoration: none;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  background: rgba(255,255,255,0.15);
}

.category-card:hover { transform: translateY(-6px) scale(1.03); box-shadow: var(--shadow-card); }
.category-card:hover::before { opacity: 1; }

.category-card:nth-child(1) { background: linear-gradient(135deg, #FFD93D, #FF9E2C); }
.category-card:nth-child(2) { background: linear-gradient(135deg, #FF6B6B, #FF9ECD); }
.category-card:nth-child(3) { background: linear-gradient(135deg, #00BFA5, #00E5CC); }
.category-card:nth-child(4) { background: linear-gradient(135deg, #A855F7, #EC4899); }
.category-card:nth-child(5) { background: linear-gradient(135deg, #3B82F6, #06B6D4); }
.category-card:nth-child(6) { background: linear-gradient(135deg, #10B981, #84CC16); }

.category-icon { font-size: 2.8rem; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2)); }

.category-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--white);
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.category-count {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
  font-weight: 700;
}

/* ── Product Grid ─────────────────────────────────── */
.section-products {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

/* WooCommerce product loop override */
ul.products {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

ul.products li.product {
  margin: 0 !important;
  float: none !important;
  width: auto !important;
}

.product-card,
ul.products li.product .product-inner,
ul.products li.product {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

ul.products li.product:hover,
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
}

/* Product image */
ul.products li.product a img,
.product-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--cream-dark);
  transition: transform 0.4s ease;
}

ul.products li.product:hover a img { transform: scale(1.05); }

/* Coloured top bar per product (cycles through palette) */
ul.products li.product::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}

ul.products li.product:nth-child(6n+1)::before { background: var(--gold); }
ul.products li.product:nth-child(6n+2)::before { background: var(--teal); }
ul.products li.product:nth-child(6n+3)::before { background: var(--coral); }
ul.products li.product:nth-child(6n+4)::before { background: var(--pink); }
ul.products li.product:nth-child(6n+5)::before { background: var(--lavender); }
ul.products li.product:nth-child(6n+6)::before { background: var(--mint); }

/* Product info area */
ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--plum);
  padding: 16px 16px 4px;
  font-weight: 400;
}

ul.products li.product .price {
  padding: 4px 16px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--teal);
  display: block;
}

ul.products li.product .price del { color: #aaa; font-size: 0.85rem; margin-right: 6px; }
ul.products li.product .price ins { text-decoration: none; color: var(--coral); }

/* Add to cart button */
ul.products li.product .button,
ul.products li.product .add_to_cart_button,
ul.products li.product a.button {
  margin: 12px 16px 16px;
  padding: 10px 20px;
  background: var(--plum);
  color: var(--white);
  border: none;
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  display: block;
  width: calc(100% - 32px);
}

ul.products li.product .button:hover,
ul.products li.product .add_to_cart_button:hover {
  background: var(--teal);
  color: var(--plum-dark);
  transform: none;
}

ul.products li.product .added_to_cart {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.8rem;
  color: var(--teal);
}

/* Sale badge */
ul.products li.product .onsale {
  background: var(--coral);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-xl);
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(255,107,107,0.4);
}

/* ── Wonder Banner ────────────────────────────────── */
.wonder-banner {
  background: linear-gradient(135deg, var(--plum) 0%, #4A2090 50%, var(--plum-dark) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.wonder-banner::before {
  content: '✦ ✧ ✦ ✧ ✦ ✧ ✦ ✧ ✦ ✧ ✦ ✧ ✦ ✧ ✦ ✧';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,217,61,0.3);
  font-size: 0.9rem;
  white-space: nowrap;
  letter-spacing: 8px;
}

.wonder-banner .section-title { color: var(--white); }
.wonder-banner .section-sub   { color: rgba(255,255,255,0.7); margin-bottom: 32px; }

/* ── Info strip (static) ──────────────────────────── */
.info-strip {
  background: var(--gold);
  padding: 10px 0;
}

.info-strip-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--plum-dark);
}

.info-strip-inner .sep {
  color: var(--plum);
  opacity: 0.35;
}

@media (max-width: 600px) {
  .info-strip-inner .sep { display: none; }
  .info-strip-inner { justify-content: flex-start; }
}

/* ── USP strip ────────────────────────────────────── */
.usp-strip {
  background: var(--plum-dark);
  padding: 40px 0;
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}

.usp-item { color: var(--white); }
.usp-icon { font-size: 2.2rem; margin-bottom: 10px; }
.usp-title { font-family: var(--font-heading); font-size: 1.1rem; color: var(--gold); margin-bottom: 4px; }
.usp-desc  { font-size: 0.85rem; color: rgba(255,255,255,0.65); }

/* ── WooCommerce pages ────────────────────────────── */
.woocommerce-page .page-title,
.woocommerce-page h1.page-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--plum);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--gold);
  display: inline-block;
}

/* Shop sidebar */
.woocommerce-sidebar { padding-right: 32px; }
.woocommerce-sidebar .widget-title {
  font-family: var(--font-heading);
  color: var(--plum);
  font-size: 1.2rem;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--lavender);
}

/* Breadcrumbs */
.woocommerce-breadcrumb {
  background: var(--cream-dark);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 24px;
  color: var(--ink-soft);
}

.woocommerce-breadcrumb a { color: var(--plum); font-weight: 700; }

/* Cart & Checkout */
.woocommerce table.shop_table {
  border: none;
  border-collapse: collapse;
  width: 100%;
}

.woocommerce table.shop_table th {
  background: var(--plum);
  color: var(--white);
  font-family: var(--font-heading);
  padding: 12px 16px;
  font-weight: 400;
}

.woocommerce table.shop_table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(45,27,105,0.08);
}

/* Input fields */
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce input[type="password"],
.woocommerce textarea,
.woocommerce select {
  border: 2px solid rgba(45,27,105,0.15);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  width: 100%;
  transition: border-color 0.2s;
  background: var(--white);
}

.woocommerce input:focus,
.woocommerce textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,191,165,0.15);
}

/* Checkout button */
.woocommerce .checkout-button,
.woocommerce #place_order,
.woocommerce button[type="submit"].button {
  background: var(--gold) !important;
  color: var(--plum-dark) !important;
  border-radius: var(--radius-xl) !important;
  font-family: var(--font-body) !important;
  font-weight: 800 !important;
  font-size: 1.05rem !important;
  padding: 14px 32px !important;
  border: none !important;
  cursor: pointer;
  transition: all 0.2s !important;
  box-shadow: 0 4px 16px rgba(255,217,61,0.35) !important;
}

.woocommerce .checkout-button:hover,
.woocommerce #place_order:hover {
  background: #ffe566 !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow) !important;
}

/* ── Single Product ───────────────────────────────── */
.woocommerce div.product .product_title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--plum);
  margin-bottom: 12px;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--teal);
}

.woocommerce div.product .single_add_to_cart_button {
  background: var(--plum) !important;
  color: var(--white) !important;
  border-radius: var(--radius-xl) !important;
  font-family: var(--font-body) !important;
  font-weight: 800 !important;
  padding: 14px 32px !important;
  font-size: 1.1rem !important;
  border: none !important;
  transition: all 0.2s !important;
  cursor: pointer;
}

.woocommerce div.product .single_add_to_cart_button:hover {
  background: var(--teal) !important;
  transform: translateY(-2px) !important;
}

/* ── Standard Page Content ────────────────────────── */
.page-content {
  max-width: 860px;
  margin: 60px auto;
  padding: 0 24px;
}

.page-content h2 {
  font-size: 1.8rem;
  margin: 32px 0 12px;
  color: var(--plum);
}

.page-content h3 {
  font-size: 1.3rem;
  margin: 24px 0 8px;
  color: var(--plum-mid);
}

.page-content ul, .page-content ol {
  margin-bottom: 1rem;
}

.page-content li { margin-bottom: 6px; }

/* ── Footer ───────────────────────────────────────── */
.site-footer {
  background: var(--plum-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .footer-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.6);
}

.footer-col h4 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
  font-weight: 400;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col ul a:hover { color: var(--teal); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--gold); }

/* ── WooCommerce notices ──────────────────────────── */
.woocommerce-message,
.woocommerce-info {
  background: var(--teal-light);
  border-left: 4px solid var(--teal);
  padding: 14px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 20px;
}

.woocommerce-error {
  background: var(--coral-light);
  border-left: 4px solid var(--coral);
  padding: 14px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 20px;
  list-style: none;
}

/* ── Utility ──────────────────────────────────────── */
.text-center { text-align: center; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-visual { display: grid; grid-template-columns: repeat(4, 1fr); }
  .hero-bubble { aspect-ratio: 1; font-size: 2rem; }
  .hero-actions { justify-content: center; }
  .hero-desc { margin: 0 auto 36px; }

  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--plum-dark); padding: 16px; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .nav-toggle { display: flex; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .category-grid { grid-template-columns: repeat(2, 1fr); }
  ul.products { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  ul.products { grid-template-columns: 1fr; }
  .hero-visual { grid-template-columns: repeat(2, 1fr); }
}
