/*
Theme Name: wsterV5
Theme URI: https://wster.com
Author: WSTER Development
Description: wsterV5 — Bright clean e-commerce theme for WSTER smart electronics. WooCommerce-ready, fully customizable.
Version: 2.6.6
Requires at least: 5.6
Tested up to: 6.7
Requires PHP: 7.0
License: GNU General Public License v2 or later
Text Domain: wster-theme
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Base */
  --white:       #ffffff;
  --gray-50:     #f9fafb;
  --gray-100:    #f3f4f6;
  --gray-200:    #e5e7eb;
  --gray-300:    #d1d5db;
  --gray-400:    #9ca3af;
  --gray-500:    #6b7280;
  --gray-600:    #4b5563;
  --gray-700:    #374151;
  --gray-800:    #1f2937;
  --gray-900:    #111827;

  /* Brand */
  --brand:       #0ea5e9;
  --brand-light: #e0f2fe;
  --brand-dark:  #0284c7;

  /* Pastels — product categories */
  --mint:        #d1fae5;
  --mint-mid:    #6ee7b7;
  --mint-dark:   #059669;
  --sky:         #e0f2fe;
  --sky-mid:     #7dd3fc;
  --sky-dark:    #0284c7;
  --lavender:    #ede9fe;
  --lavender-mid:#c4b5fd;
  --lavender-dark:#7c3aed;
  --peach:       #fef3c7;
  --peach-mid:   #fcd34d;
  --peach-dark:  #d97706;
  --rose:        #fce7f3;
  --rose-mid:    #f9a8d4;
  --rose-dark:   #db2777;
  --sage:        #f0fdf4;
  --sage-mid:    #86efac;
  --sage-dark:   #16a34a;
  --coral:       #fff1f2;
  --coral-mid:   #fda4af;
  --coral-dark:  #e11d48;

  /* Typography */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Layout */
  --header-h:    68px;
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.10), 0 4px 10px rgba(0,0,0,0.05);
  --shadow-xl:   0 20px 60px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.06);

  --transition: 0.22s ease;
  --transition-slow: 0.4s ease;
}

/* ============================================================
   RESET
   ============================================================ */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--gray-800);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul,ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input,textarea,select { font-family: inherit; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--sp-8); }
.section { padding: var(--sp-24) 0; }
.section--sm { padding: var(--sp-16) 0; }
.page-hero { padding: calc(var(--header-h) + var(--sp-16)) 0 var(--sp-16); }

/* ============================================================
   TYPOGRAPHY SCALE
   ============================================================ */
h1,h2,h3,h4,h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; color: var(--gray-900); }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.625rem); letter-spacing: -0.01em; }
h4 { font-size: 1.125rem; }
p { color: var(--gray-600); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.section-header { margin-bottom: var(--sp-12); }
.section-header h2 { margin-top: var(--sp-2); }
.section-header p { margin-top: var(--sp-4); font-size: 1.0625rem; max-width: 560px; color: var(--gray-500); }
.section-header--center { text-align: center; }
.section-header--center p { margin-left: auto; margin-right: auto; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: none;
  letter-spacing: -0.01em;
}
.btn svg { width: 16px; height: 16px; transition: transform var(--transition); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: var(--gray-900);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.btn--primary:hover {
  background: var(--gray-700);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.btn--brand {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(14,165,233,0.35);
}
.btn--brand:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(14,165,233,0.4);
}
.btn--outline {
  background: var(--white);
  color: var(--gray-800);
  border: 1.5px solid var(--gray-200);
  box-shadow: var(--shadow-xs);
}
.btn--outline:hover {
  border-color: var(--gray-400);
  background: var(--gray-50);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--brand-dark);
  padding-left: 0;
  padding-right: 0;
}
.btn--ghost:hover { color: var(--brand); }
.btn--sm { font-size: 0.8125rem; padding: 0.5rem 1.1rem; }
.btn--lg { font-size: 1rem; padding: 0.9rem 2rem; }

/* ============================================================
   TAGS / CHIPS / BADGES
   ============================================================ */
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.tag--new    { background: var(--mint);     color: var(--mint-dark); }
.tag--hot    { background: var(--rose);     color: var(--rose-dark); }
.tag--sale   { background: var(--peach);    color: var(--peach-dark); }
.tag--best   { background: var(--lavender); color: var(--lavender-dark); }

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-100);
  transition: box-shadow var(--transition-slow);
}
#site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  border-bottom-color: var(--gray-200);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}
.site-logo a {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
}
.logo-wordmark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--gray-900);
}
.logo-wordmark em {
  font-style: normal;
  color: var(--brand);
}
.logo-dot {
  width: 6px; height: 6px;
  background: var(--brand);
  border-radius: 50%;
  margin-bottom: 2px;
}

/* Primary nav */
#primary-nav { flex: 1; }
.primary-menu {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  height: var(--header-h);
}
.primary-menu > li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.primary-menu > li > a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 var(--sp-4);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color var(--transition);
  white-space: nowrap;
}
.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a { color: var(--gray-900); }
.primary-menu > li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 5px;
  opacity: 0.5;
}
.primary-menu .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: var(--sp-2) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  box-shadow: var(--shadow-xl);
}
.primary-menu > li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.primary-menu .sub-menu li a {
  display: block;
  padding: 0.5rem var(--sp-5);
  font-size: 0.875rem;
  color: var(--gray-600);
  transition: all var(--transition);
  border-radius: var(--radius-sm);
  margin: 1px var(--sp-2);
}
.primary-menu .sub-menu li a:hover { background: var(--gray-50); color: var(--gray-900); }

/* Mega menu */
.primary-menu > li > .mega-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: -180px;
  width: 680px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  box-shadow: var(--shadow-xl);
}
.primary-menu > li:hover > .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega-menu-col h4 {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--gray-100);
}
.mega-menu-col ul li a {
  display: block;
  font-size: 0.8125rem;
  color: var(--gray-600);
  padding: 0.3rem 0;
  transition: all var(--transition);
}
.mega-menu-col ul li a:hover { color: var(--brand-dark); padding-left: 4px; }
.mega-menu-featured {
  background: linear-gradient(135deg, var(--sky), var(--lavender));
  border-radius: var(--radius-md);
  padding: var(--sp-4);
}
.mega-menu-featured strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--sp-2);
}
.mega-menu-featured p { font-size: 0.8rem; color: var(--gray-600); line-height: 1.5; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: var(--sp-3); margin-left: auto; flex-shrink: 0; }
.header-search-btn {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--radius-full);
  color: var(--gray-500);
  background: var(--gray-100);
  transition: all var(--transition);
}
.header-search-btn:hover { background: var(--gray-200); color: var(--gray-900); }
.header-cart-btn {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--radius-full);
  color: var(--gray-500);
  background: var(--gray-100);
  transition: all var(--transition);
}
.header-cart-btn:hover { background: var(--gray-200); color: var(--gray-900); }
.cart-count {
  position: absolute;
  top: -2px; right: -2px;
  min-width: 16px; height: 16px;
  background: var(--brand);
  color: var(--white);
  font-size: 0.625rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
}
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 38px; height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--gray-100);
}
.mobile-menu-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all var(--transition);
}
.mobile-menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 899;
    cursor: pointer;
}
.mobile-menu.is-open ~ .mobile-menu-overlay,
body.menu-open .mobile-menu-overlay {
    display: block;
}
/* Show overlay when menu is open via JS */
.mobile-menu-overlay.is-open { display: block; }

.mobile-menu {
  position: fixed;
  top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 999;
  overflow-y: auto;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
  border-top: 1px solid var(--gray-100);
}
.mobile-menu.is-open { transform: translateY(0); opacity: 1; }
.mobile-menu-inner { padding: var(--sp-6) var(--sp-8) var(--sp-8); }
.mobile-nav-item { border-bottom: 1px solid var(--gray-100); }
.mobile-nav-link { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-4) 0; }
.mobile-nav-link a { font-size: 1.0625rem; font-weight: 600; color: var(--gray-800); flex: 1; }
.mobile-submenu-toggle { color: var(--gray-400); transition: transform var(--transition); }
.mobile-submenu-toggle.is-open { transform: rotate(180deg); }
.mobile-submenu { display: none; padding-bottom: var(--sp-3); }
.mobile-submenu.is-open { display: block; }
.mobile-submenu a { display: block; padding: 0.4rem var(--sp-4); font-size: 0.9rem; color: var(--gray-500); }
.mobile-submenu a:hover { color: var(--brand-dark); }

/* ============================================================
   SEARCH OVERLAY
   ============================================================ */
.search-overlay {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 15vh;
  opacity: 0; visibility: hidden;
  transition: all 0.25s ease;
}
.search-overlay.is-open { opacity: 1; visibility: visible; }
.search-overlay-close {
  position: absolute; top: var(--sp-8); right: var(--sp-8);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-100); border-radius: var(--radius-full);
  color: var(--gray-600); transition: all var(--transition);
}
.search-overlay-close:hover { background: var(--gray-200); color: var(--gray-900); }
.search-overlay-inner { width: 100%; max-width: 620px; padding: 0 var(--sp-8); }
.search-overlay-inner label {
  display: block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gray-400); margin-bottom: var(--sp-4);
}
.search-overlay-form {
  display: flex; align-items: center; gap: var(--sp-4);
  border: 2px solid var(--gray-200); border-radius: var(--radius-xl);
  padding: var(--sp-4) var(--sp-5); background: var(--white);
  box-shadow: var(--shadow-lg); transition: border-color var(--transition);
}
.search-overlay-form:focus-within { border-color: var(--brand); }
.search-overlay-input {
  flex: 1; background: none; border: none; outline: none;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600;
  color: var(--gray-900); caret-color: var(--brand);
}
.search-overlay-input::placeholder { color: var(--gray-300); }

/* ============================================================
   HERO — HOMEPAGE
   ============================================================ */
.hero {
  padding-top: calc(var(--header-h) + var(--sp-12));
  padding-bottom: var(--sp-16);
  background-color: var(--white);
  /* background-image/size/position injected by wster_hero_overlay_css()
     so Customizer image + opacity slider have full control */
  position: relative;
  overflow: hidden;
}
/* Task 7: Reduce section spacing site-wide */
.section { padding: var(--sp-16) 0; }
.section--sm { padding: var(--sp-10) 0; }

/* ============================================================
   PAGE HEADER (Task #6 Phase 3) — internal page breadcrumb band
   Background image + overlay injected by wster_page_header_css()
   ============================================================ */
.wster-page-header {
  background-color: var(--gray-50);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
/* .hero-bg kept for backwards compat but hidden */
.hero-bg { display: none; }
/* Keep inner content above bg */
.hero .container { position: relative; z-index: 1; }
/* Subtle radial accents layered on top of the overlay */
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(14,165,233,0.06) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(167,139,250,0.05) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content { max-width: 580px; }
.hero-content h1 { margin-bottom: var(--sp-5); font-size: clamp(2rem, 4vw, 3.25rem); }
.hero-content h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--brand), #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content p { font-size: 1.125rem; color: var(--gray-500); line-height: 1.7; margin-bottom: var(--sp-8); }
.hero-cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center; }
.hero-stats {
  display: flex;
  gap: var(--sp-8);
  margin-top: var(--sp-12);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--gray-100);
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.03em;
}
.hero-stat-label { font-size: 0.8125rem; color: var(--gray-500); margin-top: 1px; }

/* Hero image area */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-img-main {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 2;
}
.hero-img-main img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-float {
  position: absolute;
  width: 42%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  z-index: 3;
}
.hero-img-float--tl { top: -5%; left: -5%; }
.hero-img-float--br { bottom: -5%; right: -5%; }
.hero-img-float img { width: 100%; height: 100%; object-fit: cover; }
.hero-chip {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--sp-3) var(--sp-4);
  box-shadow: var(--shadow-lg);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-800);
  white-space: nowrap;
}
.hero-chip--1 { bottom: 16%; left: -8%; }
.hero-chip--2 { top: 12%; right: -8%; }
.hero-chip-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ============================================================
   CATEGORY GRID (special layout)
   ============================================================ */
.cat-grid-section { background: var(--gray-50); }
.cat-grid {
  display: grid;
  /* col 1: full hero | cols 2-4: 6 cells, 2 rows */
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: var(--sp-4);
}
/* First category card spans 2 rows in col 1 */
.cat-card:first-child {
  grid-column: 1;
  grid-row: 1 / span 2;
}
/* Remaining 6: cols 2-4, 2 rows */
.cat-card:nth-child(2) { grid-column: 2; grid-row: 1; }
.cat-card:nth-child(3) { grid-column: 3; grid-row: 1; }
.cat-card:nth-child(4) { grid-column: 4; grid-row: 1; }
.cat-card:nth-child(5) { grid-column: 2; grid-row: 2; }
.cat-card:nth-child(6) { grid-column: 3; grid-row: 2; }
.cat-card:nth-child(7) { grid-column: 4; grid-row: 2; }

.cat-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-xl); }
.cat-card-bg {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
}
.cat-card-bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.cat-card:hover .cat-card-bg img { transform: scale(1.05); }
.cat-card-overlay {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  transition: opacity var(--transition);
}
.cat-card:hover .cat-card-overlay { opacity: 0.9; }
.cat-card-body {
  position: relative;
  z-index: 2;
  padding: var(--sp-5) var(--sp-5) var(--sp-5);
}
.cat-card:first-child .cat-card-body { padding: var(--sp-8); }
/* Task 2: Category card labels — NO background, text directly on image */
.cat-card-tag { display: none; } /* tag pill removed entirely */
.cat-card-body {
  position: relative;
  z-index: 2;
  padding: var(--sp-4) var(--sp-5);
  /* No background — text sits directly on the photo */
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
}
.cat-card:first-child .cat-card-body { padding: var(--sp-6) var(--sp-8); border-radius: 0; }
.cat-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  text-shadow: 0 1px 6px rgba(0,0,0,0.55);
}
.cat-card:first-child .cat-card-title { font-size: 1.75rem; }
.cat-card:not(:first-child) .cat-card-title { font-size: 1.0625rem; }
.cat-card-count { font-size: 0.8125rem; color: rgba(255,255,255,0.85); text-shadow: 0 1px 4px rgba(0,0,0,0.45); margin-top: var(--sp-1); }
.cat-card:first-child .cat-card-count { margin-top: var(--sp-2); font-size: 0.9375rem; }
.cat-card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: var(--radius-full);
  color: var(--white);
  margin-top: var(--sp-4);
  transition: all var(--transition);
}
.cat-card:hover .cat-card-arrow { background: rgba(255,255,255,0.45); transform: translateX(3px); }

/* Category palette — overlays removed per request */
.cat-card .cat-card-overlay { background: none; }
.cat-card:hover .cat-card-overlay { opacity: 0; }

/* ============================================================
   FEATURED PRODUCTS STRIP
   ============================================================ */
.products-strip { background: var(--white); }
.product-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}
.product-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}
.product-card:hover {
  border-color: var(--gray-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.product-card-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--gray-50);
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-card-badges {
  position: absolute;
  top: var(--sp-3); left: var(--sp-3);
  display: flex; gap: var(--sp-1); flex-wrap: wrap;
}
.product-card-action {
  position: absolute;
  bottom: var(--sp-3); right: var(--sp-3);
  width: 36px; height: 36px;
  background: var(--white);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  color: var(--gray-600);
  opacity: 0;
  transform: translateY(6px);
  transition: all var(--transition);
}
.product-card:hover .product-card-action { opacity: 1; transform: translateY(0); }
.product-card-action:hover { background: var(--brand); color: var(--white); }
.product-card-body { padding: var(--sp-4) var(--sp-5) var(--sp-5); }
.product-card-cat { font-size: 0.75rem; font-weight: 600; color: var(--brand-dark); margin-bottom: var(--sp-1); letter-spacing: 0.04em; }
.product-card-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
  margin-bottom: var(--sp-2);
}
.product-card-name a { transition: color var(--transition); }
.product-card-name a:hover { color: var(--brand-dark); }
.product-card-desc { font-size: 0.8125rem; color: var(--gray-500); line-height: 1.55; margin-bottom: var(--sp-3); }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; }
.product-card-price { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 700; color: var(--gray-900); }
.product-card-link {
  font-size: 0.8125rem; font-weight: 600; color: var(--brand-dark);
  display: flex; align-items: center; gap: var(--sp-1);
  transition: gap var(--transition);
}
.product-card-link:hover { gap: var(--sp-2); }
.product-card-link svg { width: 14px; height: 14px; }

/* ============================================================
   PROMO BANNER
   ============================================================ */
.promo-banner {
  background: linear-gradient(135deg, var(--gray-900) 0%, #1e3a5f 100%);
  border-radius: var(--radius-xl);
  padding: var(--sp-16) var(--sp-12);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
  overflow: hidden;
  position: relative;
}
.promo-banner::before {
  content: '';
  position: absolute;
  top: -100px; right: 100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(14,165,233,0.15) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.promo-banner-text .eyebrow { color: var(--sky-mid); }
.promo-banner-text .eyebrow::before { background: var(--sky-mid); }
.promo-banner-text h2 { color: var(--white); margin-top: var(--sp-2); }
.promo-banner-text p { color: rgba(255,255,255,0.6); margin-top: var(--sp-4); font-size: 1.0625rem; line-height: 1.7; }
.promo-banner-text .btn--brand { margin-top: var(--sp-8); }
.promo-banner-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  box-shadow: var(--shadow-xl);
}
.promo-banner-img img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   FEATURES / USP STRIP
   ============================================================ */
.features-strip {
  background: var(--gray-50);
  padding: var(--sp-16) 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-8);
}
.feature-item { text-align: center; }
.feature-icon {
  width: 56px; height: 56px;
  margin: 0 auto var(--sp-4);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
}
.feature-item h4 { font-size: 1rem; color: var(--gray-900); margin-bottom: var(--sp-2); }
.feature-item p { font-size: 0.875rem; color: var(--gray-500); line-height: 1.6; }

/* ============================================================
   NEWS / BLOG CARDS
   ============================================================ */
.blog-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition);
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--gray-200); }
.blog-card-img { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--gray-100); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body { padding: var(--sp-5) var(--sp-6) var(--sp-6); }
.blog-card-meta { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.blog-card-cat {
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-dark); background: var(--sky); padding: 3px 10px; border-radius: var(--radius-full);
}
.blog-card-date { font-size: 0.8125rem; color: var(--gray-400); }
.blog-card-title { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 700; color: var(--gray-900); line-height: 1.35; margin-bottom: var(--sp-3); }
.blog-card-title a:hover { color: var(--brand-dark); }
.blog-card-excerpt { font-size: 0.875rem; color: var(--gray-500); line-height: 1.6; }

/* ============================================================
   PRODUCT ARCHIVE
   ============================================================ */
.archive-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--sp-10);
  align-items: start;
}
/* Task 2: No-sidebar layout for category pages */
.archive-layout-no-sidebar {
  display: block;
}
.archive-layout-no-sidebar .product-grid-3 {
  grid-template-columns: repeat(4, 1fr);
}
.filter-sidebar { position: sticky; top: calc(var(--header-h) + var(--sp-6)); }
.filter-panel {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  margin-bottom: var(--sp-4);
}
/* Sort By panel (second panel): horizontal single-line layout on desktop */
.filter-sidebar .filter-panel + .filter-panel {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
}
.filter-sidebar .filter-panel + .filter-panel .filter-panel-title {
  margin-bottom: 0;
  white-space: nowrap;
  flex-shrink: 0;
}
.filter-sidebar .filter-panel + .filter-panel .woocommerce-ordering {
  flex: 1;
}
.filter-sidebar .filter-panel + .filter-panel .woocommerce-ordering select {
  width: 100%;
}
.filter-panel-title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;   /* 10px gap between label and content */
  /* Sentence case — no all-caps, consistent with dropdown text */
  text-transform: none;
  letter-spacing: 0;
}

/* WooCommerce ordering (Sort By) dropdown — styled to match brand */
.woocommerce-ordering {
  margin: 0;
  padding: 0;
}
.woocommerce-ordering select,
.archive-sort select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 9px 36px 9px 12px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.woocommerce-ordering select:focus,
.archive-sort select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.12);
}
.woocommerce-ordering select:hover,
.archive-sort select:hover {
  border-color: var(--gray-400);
}
.filter-option { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) 0; cursor: pointer; }
.filter-option input[type="checkbox"] { accent-color: var(--brand); width: 16px; height: 16px; }
.filter-option label { font-size: 0.9rem; color: var(--gray-600); cursor: pointer; flex: 1; }
.filter-option span { font-size: 0.75rem; color: var(--gray-400); }
.archive-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--gray-100);
}
.archive-count { font-size: 0.9rem; color: var(--gray-500); }
.archive-sort {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: 0.875rem; color: var(--gray-600);
}
.archive-sort select {
  border: 1px solid var(--gray-200); border-radius: var(--radius-md);
  padding: var(--sp-2) var(--sp-3); font-size: 0.875rem;
  color: var(--gray-700); background: var(--white); outline: none;
}
.product-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

/* ============================================================
   PRODUCT SINGLE
   ============================================================ */
.product-single-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: start;
}
.product-gallery { position: sticky; top: calc(var(--header-h) + var(--sp-6)); }
.gallery-main {
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--gray-50);
  margin-bottom: var(--sp-3);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-2); }
.gallery-thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--gray-50);
  transition: border-color var(--transition);
}
.gallery-thumb.is-active { border-color: var(--brand); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info-panel { padding-top: 0; }
.product-info-cat { font-size: 0.8125rem; font-weight: 600; color: var(--brand-dark); letter-spacing: 0.04em; margin-bottom: var(--sp-2); }
.product-info-panel h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: var(--sp-4); }
.product-info-desc { color: var(--gray-600); line-height: 1.75; margin-bottom: var(--sp-6); }
.product-specs {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  margin-bottom: var(--sp-6);
}
.product-spec-row { display: flex; padding: var(--sp-2) 0; border-bottom: 1px solid var(--gray-200); font-size: 0.875rem; }
.product-spec-row:last-child { border-bottom: none; }
.product-spec-label { font-weight: 600; color: var(--gray-700); min-width: 140px; }
.product-spec-value { color: var(--gray-500); }
.product-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero {
  background: linear-gradient(135deg, var(--sky) 0%, var(--lavender) 100%);
  padding: calc(var(--header-h) + var(--sp-20)) 0 var(--sp-20);
}
.about-hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
.about-hero p { font-size: 1.25rem; color: var(--gray-700); max-width: 600px; margin-top: var(--sp-5); line-height: 1.7; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}
.about-grid img { border-radius: var(--radius-xl); width: 100%; aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow-xl); }
.about-grid--reverse { direction: rtl; }
.about-grid--reverse > * { direction: ltr; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}
.value-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
  transition: all var(--transition);
}
.value-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.value-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--sp-5);
}
.value-card h3 { font-size: 1.0625rem; color: var(--gray-900); margin-bottom: var(--sp-3); }
.value-card p { font-size: 0.875rem; color: var(--gray-500); line-height: 1.65; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}
.team-card { text-align: center; }
.team-card-img {
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--gray-100);
  margin-bottom: var(--sp-4);
}
.team-card-img img { width: 100%; height: 100%; object-fit: cover; }
.team-card h4 { font-size: 1.0625rem; color: var(--gray-900); margin-bottom: var(--sp-1); }
.team-card p { font-size: 0.875rem; color: var(--gray-500); }
.stats-band {
  background: var(--gray-900);
  padding: var(--sp-16) 0;
}
.stats-band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-8);
  text-align: center;
}
.stats-band-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
}
.stats-band-num span { color: var(--brand); }
.stats-band-label { font-size: 0.875rem; color: rgba(255,255,255,0.5); margin-top: var(--sp-2); }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--sp-12);
  align-items: start;
}
.contact-info-card {
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
}
.contact-info-item { display: flex; gap: var(--sp-4); padding: var(--sp-5) 0; border-bottom: 1px solid var(--gray-200); }
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--sky);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-dark);
}
.contact-info-item h4 { font-size: 0.875rem; color: var(--gray-900); margin-bottom: var(--sp-1); }
.contact-info-item p { font-size: 0.875rem; color: var(--gray-500); }
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.form-group { margin-bottom: var(--sp-5); }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--gray-700); margin-bottom: var(--sp-2); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem var(--sp-4);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  color: var(--gray-800);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.12);
}
.form-group textarea { resize: vertical; min-height: 140px; }

/* ============================================================
   BLOG ARCHIVE
   ============================================================ */
.blog-archive-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--sp-10);
  align-items: start;
}
.blog-list { display: flex; flex-direction: column; gap: var(--sp-6); }
.blog-list-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--sp-6);
  align-items: start;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition);
}
.blog-list-card:hover { box-shadow: var(--shadow-md); border-color: var(--gray-200); }
.blog-list-img { display: block; height: 100%; min-height: 150px; overflow: hidden; background: var(--gray-100); }
.blog-list-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-list-card:hover .blog-list-img img { transform: scale(1.05); }
.blog-list-body { padding: var(--sp-5) var(--sp-6) var(--sp-5) 0; }
.blog-sidebar-widget {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  margin-bottom: var(--sp-4);
}
.blog-sidebar-widget h4 { font-family: var(--font-display); font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-400); margin-bottom: var(--sp-4); }

/* ============================================================
   BLOG SINGLE
   ============================================================ */
.blog-single-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--sp-12);
  align-items: start;
}
.blog-content { max-width: 720px; }
.blog-content h2 { font-size: 1.625rem; margin: var(--sp-8) 0 var(--sp-4); }
.blog-content h3 { font-size: 1.25rem; margin: var(--sp-6) 0 var(--sp-3); }
.blog-content p { margin-bottom: var(--sp-5); line-height: 1.8; color: var(--gray-700); }
.blog-content ul,
.blog-content ol { padding-left: var(--sp-6); margin-bottom: var(--sp-5); }
.blog-content li { margin-bottom: var(--sp-2); color: var(--gray-700); line-height: 1.7; }
.blog-content blockquote {
  border-left: 3px solid var(--brand);
  padding: var(--sp-4) var(--sp-6);
  margin: var(--sp-8) 0;
  background: var(--sky);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 1.0625rem;
  color: var(--gray-700);
}
.blog-content img { border-radius: var(--radius-lg); margin: var(--sp-6) 0; }
.blog-hero-img { border-radius: var(--radius-xl); overflow: hidden; margin-bottom: var(--sp-10); aspect-ratio: 16/8; }
.blog-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-8) 0; }
.blog-tag {
  font-size: 0.8125rem; font-weight: 500;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
  background: var(--gray-100); color: var(--gray-600);
  transition: all var(--transition);
}
.blog-tag:hover { background: var(--sky); color: var(--brand-dark); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb { display: flex; align-items: center; gap: var(--sp-2); font-size: 0.8125rem; color: var(--gray-500); margin-bottom: var(--sp-6); flex-wrap: wrap; }
.breadcrumb a { color: var(--gray-500); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--brand-dark); }
.breadcrumb-sep { color: var(--gray-300); }

/* ============================================================
   PAGINATION — horizontal, brand-colored, accessible
   Spacing spec: 14px gap, 44px min-width, 10px/14px padding,
   32px vertical margin. Subtle container background.
   ============================================================ */

/* Generic wrapper for CPT / blog pagination */
.pagination {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-8);
  padding: var(--sp-4) var(--sp-5);
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}

/* WooCommerce pagination wrapper */
.woocommerce-pagination {
  width: 100%;
  margin-top: 2rem;
  margin-bottom: 2rem;
  clear: both;
  text-align: center;
}
/* The nav WC outputs inside .woocommerce-pagination */
.woocommerce-pagination nav {
  display: inline-block;
}
.woocommerce-pagination ul {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;         /* gap between <li> items */
  list-style: none !important;
  flex-wrap: wrap;
  padding: 12px 16px !important;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  margin: 0 !important;
}
/* Each list item — no extra margin, just flex container */
.woocommerce-pagination ul li {
  list-style: none !important;
  margin: 0 !important;         /* kill any WC default margin */
  padding: 0 !important;
  display: flex;
  align-items: center;
  border: none !important;       /* Bug fix: remove WC default border-right vertical line */
  border-right: none !important;
}
/* Bug fix: remove any ::after pseudo-element that creates a vertical line */
.woocommerce-pagination ul li::after,
.woocommerce-pagination ul li::before,
.woocommerce-pagination ul::after,
.woocommerce-pagination ul::before,
.woocommerce-pagination nav::after,
.woocommerce-pagination nav::before {
  display: none !important;
  content: none !important;
  border: none !important;
}
/* Bug fix: also kill any separator on the last button specifically */
.woocommerce-pagination ul li:last-child,
.woocommerce-pagination ul li:last-child a,
.woocommerce-pagination ul li:last-child span {
  border-right: none !important;
}

/* Reset WooCommerce's float-based pagination — our flex layout needs float:none */
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span,
.woocommerce-pagination .page-numbers {
  float: none !important;
}

/* Shared button styles — exclude the <ul> itself (it also has class page-numbers) */
.page-numbers:not(ul),
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
/* Use margin on li as fallback for gap spacing */
.woocommerce-pagination ul li { margin: 4px; }

/* Hover state — brand tint, consistent for all buttons including arrows */
.page-numbers:not(ul):hover,
.woocommerce-pagination ul li a:hover {
  background: var(--brand-light);
  color: var(--brand-dark);
  border-color: var(--brand);
  box-shadow: 0 1px 4px rgba(14,165,233,0.18);
}

/* Active / current page — solid brand, high contrast */
.page-numbers:not(ul).current,
.woocommerce-pagination ul li span.current {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
  box-shadow: 0 2px 8px rgba(14,165,233,0.35);
  cursor: default;
}

/* Prev / Next — unified style (same as number buttons, not dark) */
.page-numbers:not(ul).prev,
.page-numbers:not(ul).next,
.woocommerce-pagination ul li a.prev,
.woocommerce-pagination ul li a.next {
  background: var(--white);
  color: var(--gray-700);
  border-color: var(--gray-200);
  font-size: 1rem;
}
.page-numbers:not(ul).prev:hover,
.page-numbers:not(ul).next:hover,
.woocommerce-pagination ul li a.prev:hover,
.woocommerce-pagination ul li a.next:hover {
  background: var(--brand-light);
  color: var(--brand-dark);
  border-color: var(--brand);
}

/* Dots (ellipsis) — transparent, extra horizontal padding, no interaction */
.page-numbers:not(ul).dots,
.woocommerce-pagination ul li span.page-numbers:not(.current) {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--gray-400);
  cursor: default;
  pointer-events: none;
  padding-left: 18px;
  padding-right: 18px;
  min-width: auto;
}


/* Sort By panel — horizontal layout (label left, dropdown right) on desktop */
.filter-sidebar .filter-panel + .filter-panel {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
}
.filter-sidebar .filter-panel + .filter-panel .filter-panel-title {
  margin-bottom: 0;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 0.8125rem;
}
.filter-sidebar .filter-panel + .filter-panel .woocommerce-ordering {
  flex: 1;
}
.filter-sidebar .filter-panel + .filter-panel .woocommerce-ordering select {
  width: 100%;
}

/* ============================================================
   SERVICE BAR
   ============================================================ */
.service-bar { background: var(--gray-50); border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); padding: var(--sp-8) 0; }
.service-bar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--gray-200); }
.service-bar-item { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-5) var(--sp-6); background: var(--gray-50); transition: background var(--transition); }
.service-bar-item:hover { background: var(--white); }
.service-bar-icon { width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--sky); color: var(--brand-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.service-bar-text strong { display: block; font-size: 0.9rem; font-weight: 700; color: var(--gray-900); margin-bottom: 1px; }
.service-bar-text span { font-size: 0.8125rem; color: var(--gray-500); }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer { background: var(--gray-900); color: var(--white); padding: var(--sp-20) 0 0; }
.footer-main {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: var(--sp-12);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo-wordmark { font-size: 1.75rem; color: var(--white); }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.45); line-height: 1.75; margin-top: var(--sp-4); max-width: 320px; }
.footer-email { display: block; font-size: 0.875rem; color: rgba(255,255,255,0.4); margin-top: var(--sp-4); margin-bottom: var(--sp-5); transition: color var(--transition); }
.footer-email:hover { color: rgba(255,255,255,0.8); }
.social-links { display: flex; gap: var(--sp-2); }
.social-link { width: 36px; height: 36px; background: rgba(255,255,255,0.07); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.5); transition: all var(--transition); }
.social-link:hover { background: var(--brand); color: var(--white); }
.footer-col h4 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: var(--sp-5); }
.footer-col li { margin-bottom: var(--sp-3); }
.footer-col a { font-size: 0.875rem; color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-6) 0; }
.footer-bottom p { font-size: 0.8125rem; color: rgba(255,255,255,0.3); }
.footer-bottom a { color: rgba(255,255,255,0.4); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--white); }
.footer-bottom-links { display: flex; gap: var(--sp-6); }
.footer-bottom-links a { font-size: 0.8125rem; }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
[data-animate] { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
[data-animate].is-visible { opacity: 1; transform: translateY(0); }
[data-animate-delay="1"].is-visible { transition-delay: 0.06s; }
[data-animate-delay="2"].is-visible { transition-delay: 0.12s; }
[data-animate-delay="3"].is-visible { transition-delay: 0.18s; }
[data-animate-delay="4"].is-visible { transition-delay: 0.24s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  #primary-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .cat-grid { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 220px 220px 220px; }
  .cat-card:first-child { grid-column: 1 / span 3; grid-row: 1; }
  .cat-card:nth-child(2) { grid-column: 1; grid-row: 2; }
  .cat-card:nth-child(3) { grid-column: 2; grid-row: 2; }
  .cat-card:nth-child(4) { grid-column: 3; grid-row: 2; }
  .cat-card:nth-child(5) { grid-column: 1; grid-row: 3; }
  .cat-card:nth-child(6) { grid-column: 2; grid-row: 3; }
  .cat-card:nth-child(7) { grid-column: 3; grid-row: 3; }
  .product-grid-4 { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .promo-banner { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .archive-layout { grid-template-columns: 1fr; }
  /* Products appear first, filters below on stacked layout */
  .archive-layout > div { order: 1; }
  .archive-layout > aside.filter-sidebar { order: 2; }
  /* At 1100px: horizontal row of filter panels */
  .filter-sidebar { position: static; display: flex; flex-direction: row; gap: var(--sp-3); flex-wrap: wrap; }
  .filter-sidebar .filter-panel { flex: 1; min-width: 200px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .container { padding: 0 var(--sp-5); }
  .cat-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 160px 160px 160px; }
  .cat-card:first-child { grid-column: 1 / span 2; grid-row: 1; }
  .cat-card:nth-child(2) { grid-column: 1; grid-row: 2; }
  .cat-card:nth-child(3) { grid-column: 2; grid-row: 2; }
  .cat-card:nth-child(4) { grid-column: 1; grid-row: 3; }
  .cat-card:nth-child(5) { grid-column: 2; grid-row: 3; }
  .cat-card:nth-child(6) { grid-column: 1; grid-row: 4; }
  .cat-card:nth-child(7) { grid-column: 2; grid-row: 4; }
  .product-grid-4,.product-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .blog-grid-3 { grid-template-columns: 1fr; }
  .service-bar-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .product-single-layout { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .blog-archive-layout,.blog-single-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .stats-band-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-list-card { grid-template-columns: 1fr; }

  /* ── Task 4: Mobile category page — clean single-column layout ── */
  /* Stack sidebar below product grid on mobile */
  .archive-layout {
    grid-template-columns: 1fr !important;
  }
  .archive-layout > div.product-area { order: 1; }
  .archive-layout > aside.filter-sidebar { order: 2; }

  /* Category sidebar: full-width collapsible accordion */
  .filter-sidebar {
    position: static !important;
    width: 100%;
  }
  .filter-sidebar .filter-panel {
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    background: var(--white);
    padding: 0;
    /* No overflow:hidden — would clip the expanded accordion content */
    margin-bottom: var(--sp-2);
  }
  .filter-sidebar .filter-panel-title {
    padding: var(--sp-3) var(--sp-4);
    margin-bottom: 0;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
  }
  .filter-sidebar .filter-panel-title::after {
    content: '';
    display: inline-block;
    width: 0; height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--gray-400);
    transition: transform 0.2s ease;
    flex-shrink: 0;
  }
  .filter-sidebar .filter-panel-title.is-open::after {
    transform: rotate(180deg);
  }
  /* Category links body: collapsed by default on mobile */
  .filter-panel-cats-body {
    padding: var(--sp-3) var(--sp-4);
    display: none;
  }
  .filter-panel-cats-body.is-open {
    display: block;
  }
  /* 2-col product grid on mobile */
  .archive-layout .product-grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
  /* Bug 3: archive keeps 2-col grid on mobile; only single product falls to 1-col */
  .product-grid-4 { grid-template-columns: repeat(2, 1fr); }
  /* product-grid-3 stays 2 cols on mobile for archive pages */
  .product-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* Hide WooCommerce add-to-cart form and quantity input on product pages (client request) */
.single-product .cart,
.single-product form.cart,
.woocommerce-variation-add-to-cart,
.single_add_to_cart_button,
.quantity { display: none !important; }

/* ── Hide all prices site-wide (client request) ─────────────────
   Targets every WooCommerce price element across all page types.
   Using visibility:hidden as well as display:none covers cases
   where WC JS re-renders prices after page load.
   ──────────────────────────────────────────────────────────────── */
.price,
p.price,
span.price,
.woocommerce-Price-amount,
.woocommerce-Price-amount.amount,
bdi,
.woocommerce-Price-currencySymbol,
.product-card-price,
.woocommerce-variation-price,
.woocommerce-variation-price .price,
.woocommerce-grouped-product-list-item__price,
.product_meta .price,
span.amount,
ins span.amount,
del span.amount,
ins .amount,
del .amount,
.summary .price,
.summary p.price,
.entry-summary .price,
.wc-block-components-product-price,
.wc-block-grid__product-price,
.woocommerce-loop-product__price {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* ── Task 4: Reduced title sizes on category & detail pages ───── */
/* Category page h1 (shop / product-category) */
.wster-page-header h1 {
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  margin-top: var(--sp-2);
}
/* Product detail page h1 */
.product-info-panel h1 {
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  margin-bottom: var(--sp-3);
}
/* Category page SEO h2 subtitle */
.wster-cat-seo-section h2 {
  font-size: clamp(1.125rem, 2vw, 1.5rem) !important;
}

/* ── Task 5: 5-column product grid for homepage ─────────────── */
.product-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-4);
}
@media (max-width: 1100px) {
  .product-grid-5 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  .product-grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .product-grid-5 { grid-template-columns: repeat(2, 1fr); }
}

/* ── Category accordion — mobile ────────────────────────────── */
/* Desktop: links always visible */
#wster-cat-links { display: block; }

@media (max-width: 768px) {
    /* Hide links by default; JS adds display:block when open */
    #wster-cat-links {
        display: none;
        padding: var(--sp-3) var(--sp-4);
    }
    #wster-cat-links.is-open { display: block; }

    /* Toggle title row */
    #wster-cat-toggle {
        cursor: pointer;
        user-select: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: var(--sp-3) var(--sp-4);
        margin-bottom: 0;
        border-bottom: 1px solid var(--gray-100);
    }
    /* Chevron via ::after */
    #wster-cat-toggle::after {
        content: '';
        display: inline-block;
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 5px solid var(--gray-500);
        transition: transform 0.2s ease;
        flex-shrink: 0;
    }
    #wster-cat-toggle.is-open::after { transform: rotate(180deg); }
}


/* ═══════════════════════════════════════════════════════════════
   MOBILE OVERFLOW FIX — prevent horizontal scroll / swipe
   ═══════════════════════════════════════════════════════════════ */
html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

/* Ensure no child can escape the viewport horizontally */
@media (max-width: 1024px) {
    /* Constrain width only — do NOT set overflow on scroll containers */
    .container,
    .hero,
    .hero-inner,
    .hero-content,
    .hero-media,
    .hero-image-wrap,
    .hero-chip,
    .hero-chip--1,
    .hero-chip--2,
    .features-strip,
    .features-grid,
    .cat-grid,
    .cat-card,
    .product-grid-4,
    .product-grid-5,
    .product-grid-3,
    .service-bar,
    .service-bar-grid,
    .footer-main,
    .stats-band,
    .stats-band-grid,
    .promo-banner,
    .promo-inner,
    .about-grid,
    .wster-cat-faq-section,
    .faq-layout,
    .wster-page-header,
    .product-single-layout,
    .contact-layout,
    .blog-archive-layout,
    .blog-grid-3 {
        max-width: 100%;
    }
    /* archive-layout and product-area: width-constrained only, no overflow set
       so the page body remains the sole vertical scroll context on mobile */
    .archive-layout,
    .archive-layout .product-area {
        max-width: 100%;
    }

    /* Images and media never exceed container */
    img, video, iframe, svg {
        max-width: 100%;
    }

    /* Tables scroll within their container, not the page */
    table {
        display: block;
        overflow-x: auto;
        max-width: 100%;
    }
}

/* ── Fix 5: Category page mobile — min-height only, NO overflow-y on children ── */
/* overflow-y:auto on inner containers creates nested scroll contexts that trap     */
/* scroll gestures; the page body handles all vertical scrolling.                  */
@media (max-width: 768px) {
    .product-grid-4 {
        min-height: 300px;
    }
}

/* ── Footer contact info list ─────────────────────────────────── */
.footer-contact-list { list-style: none; padding: 0; margin: 0; }
.footer-contact-list li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: var(--sp-2) 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-contact-list li:last-child { border-bottom: none; }
.footer-contact-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-400);
}
.footer-contact-list a {
    font-size: 0.875rem;
    color: var(--gray-300);
    text-decoration: none;
    transition: color var(--transition);
    word-break: break-all;
}
.footer-contact-list a:hover { color: var(--white); }
