/*
Theme Name:  GTech Store V2
Theme URI:   https://gtech-store.com
Author:      GTech Store
Author URI:  https://gtech-store.com
Description: Thème e-commerce moderne pour GTech Store — Accessoires Tech & Gadgets, Yaoundé, Cameroun. Bleu, blanc et vert. WooCommerce compatible.
Version:     3.1.5
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
WC requires at least: 8.0
WC tested up to: 9.0
Text Domain: gtech-v2
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ============================================================
   DESIGN SYSTEM — CSS VARIABLES
   Blue #0057B8 | Green #00A651 | White #FFFFFF
   ============================================================ */
:root {
  /* Brand Colors */
  --blue:         #0057B8;
  --blue-dark:    #003D8A;
  --blue-light:   #1976D2;
  --blue-pale:    #E3F0FF;
  --green:        #00A651;
  --green-dark:   #007A3D;
  --green-light:  #4CAF50;
  --green-pale:   #E6F9F0;
  --white:        #FFFFFF;

  /* Semantic */
  --primary:      var(--blue);
  --primary-dark: var(--blue-dark);
  --secondary:    var(--green);
  --accent:       #FF6B00;

  /* Neutrals */
  --bg:           #F4F7FB;
  --bg-card:      #FFFFFF;
  --bg-dark:      #0A1628;
  --text:         #1A2744;
  --text-muted:   #5A6A8A;
  --text-light:   #8A9BBB;
  --border:       #D6E4F0;
  --border-light: #EBF2FA;

  /* Effects */
  --shadow-sm:    0 2px 8px rgba(0,87,184,.08);
  --shadow-md:    0 4px 20px rgba(0,87,184,.12);
  --shadow-lg:    0 12px 48px rgba(0,87,184,.16);
  --shadow-card:  0 2px 16px rgba(0,87,184,.10);
  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    20px;
  --radius-xl:    28px;

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

  /* Transitions */
  --tr:           0.22s cubic-bezier(.4,0,.2,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(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--tr); }
a:hover { color: var(--blue-dark); }
ul, ol { list-style: none; }
input, textarea, select, button { font-family: inherit; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}
h1 { font-size: clamp(28px, 5vw, 52px); }
h2 { font-size: clamp(22px, 3.5vw, 38px); }
h3 { font-size: clamp(18px, 2.5vw, 24px); }
h4 { font-size: 18px; }
p  { line-height: 1.75; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.gtech-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 48px 0; }

/* Grid */
.grid-2  { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Flex */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap { display: flex; align-items: center; gap: 12px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn, .gtech-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--tr);
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: .3px;
}
.btn-primary, .gtech-btn--primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(0,87,184,.3);
}
.btn-primary:hover { background: var(--blue-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,87,184,.35); }
.btn-green {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  box-shadow: 0 4px 16px rgba(0,166,81,.3);
}
.btn-green:hover { background: var(--green-dark); color: #fff; transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.btn-outline-white:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg { padding: 16px 40px; font-size: 17px; border-radius: var(--radius-lg); }
.btn-full { width: 100%; }
.btn-icon { padding: 10px; border-radius: 50%; width: 42px; height: 42px; }

/* WooCommerce buttons */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: var(--radius-md) !important;
  font-family: var(--font-head) !important;
  font-weight: 700 !important;
  padding: 12px 24px !important;
  border: none !important;
  transition: all var(--tr) !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover {
  background: var(--blue-dark) !important;
  color: #fff !important;
}
.woocommerce a.button.alt, .woocommerce button.button.alt {
  background: var(--green) !important;
}
.woocommerce a.button.alt:hover { background: var(--green-dark) !important; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,87,184,.08);
  transition: box-shadow var(--tr), transform var(--tr);
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(0,87,184,.14); }
.site-header.header-hidden { transform: translateY(-100%); }

/* Top bar */
.header-topbar {
  background: linear-gradient(90deg, var(--blue-dark) 0%, var(--blue) 60%, var(--green-dark) 100%);
  color: rgba(255,255,255,.9);
  font-size: 12.5px;
  padding: 6px 0;
}
.header-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.header-topbar-marquee { flex: 1; overflow: hidden; }
.marquee-track {
  display: inline-flex;
  gap: 48px;
  animation: marquee 35s linear infinite;
  white-space: nowrap;
}
.marquee-track span { opacity: .85; }
.marquee-track span strong { color: #fff; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.header-topbar-right { display: flex; gap: 16px; align-items: center; flex-shrink: 0; }
.header-topbar-right a { color: rgba(255,255,255,.85); font-size: 12px; }
.header-topbar-right a:hover { color: #fff; }

/* Main header */
.header-main {
  padding: 14px 0;
}
.header-main-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

/* Logo */
.site-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 22px;
  color: #fff;
  font-family: var(--font-head);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,87,184,.3);
}
.logo-text-wrap {}
.logo-name {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -.3px;
  line-height: 1.1;
}
.logo-name span { color: var(--green); }
.logo-tag { font-size: 10px; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; }

/* Search bar */
.header-search { position: relative; }
.header-search-form {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 50px;
  padding: 0 4px 0 20px;
  transition: border-color var(--tr), box-shadow var(--tr);
  overflow: hidden;
}
.header-search-form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0,87,184,.1);
}
.header-search-form input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text);
  outline: none;
  min-width: 0;
}
.header-search-form input::placeholder { color: var(--text-light); }
.header-search-form button {
  background: var(--primary);
  border: none;
  border-radius: 50px;
  padding: 8px 18px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background var(--tr);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-search-form button:hover { background: var(--blue-dark); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-action-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  transition: all var(--tr);
  text-decoration: none;
}
.header-action-btn:hover { background: var(--blue-pale); color: var(--primary); }
.header-action-btn svg { width: 22px; height: 22px; stroke: currentColor; }
.header-action-badge {
  position: absolute;
  top: 4px; right: 8px;
  min-width: 18px; height: 18px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
}
.cart-count, .wishlist-count {
  position: absolute;
  top: 4px; right: 8px;
  min-width: 18px; height: 18px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
}

/* Mobile toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px; height: 42px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .25s;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.header-nav { background: var(--white); border-top: 1px solid var(--border-light); }
.header-nav-inner { display: flex; align-items: center; gap: 0; }
#primary-menu { display: flex; align-items: center; gap: 0; margin: 0; padding: 0; }
#primary-menu > li { position: relative; }
#primary-menu > li > a {
  display: block;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: color var(--tr), background var(--tr);
  font-family: var(--font-head);
  white-space: nowrap;
}
#primary-menu > li > a:hover,
#primary-menu > li.current-menu-item > a { color: var(--primary); }
#primary-menu > li.current-menu-item > a { border-bottom: 2px solid var(--primary); }
/* Mega dropdown */
#primary-menu .sub-menu {
  position: absolute;
  top: 100%; left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 8px 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: all var(--tr);
  z-index: 100;
}
#primary-menu li:hover .sub-menu { opacity: 1; pointer-events: all; transform: translateY(0); }
#primary-menu .sub-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text);
}
#primary-menu .sub-menu a:hover { color: var(--primary); background: var(--blue-pale); }
/* Nav promo pill */
.nav-promo-pill {
  margin-left: auto;
  background: var(--green);
  color: #fff;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  animation: pulse-green 2.5s ease-in-out infinite;
}
@keyframes pulse-green {
  0%,100% { box-shadow: 0 0 0 0 rgba(0,166,81,.4); }
  50%      { box-shadow: 0 0 0 8px rgba(0,166,81,.0); }
}

/* GTech Solution CTA pill (sibling of .nav-promo-pill) */
.nav-solution-pill {
  margin-left: 8px;
  background: linear-gradient(135deg, #FF6B00, #E53935);
  color: #fff;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
  box-shadow: 0 2px 6px rgba(229,57,53,.25);
}
.nav-solution-pill:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
  color: #fff;
  box-shadow: 0 4px 12px rgba(229,57,53,.35);
}

/* ============================================================
   SEARCH OVERLAY
   ============================================================ */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,22,40,.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.search-overlay.active { opacity: 1; pointer-events: all; }
.search-overlay-box {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 32px;
  width: 90%;
  max-width: 680px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.search-overlay-box input {
  width: 100%;
  padding: 16px 20px;
  font-size: 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  color: var(--text);
}
.search-overlay-box input:focus { border-color: var(--primary); }
.search-overlay-box .search-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px; height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-muted);
}
.search-suggestions { margin-top: 16px; }
.search-suggestions-label { font-size: 12px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.search-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.search-tag {
  padding: 6px 14px;
  background: var(--blue-pale);
  color: var(--primary);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--tr);
}
.search-tag:hover { background: var(--primary); color: #fff; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 45%, #0076CC 70%, var(--green-dark) 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 0 70px;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,.08)'/%3E%3C/svg%3E");
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,.05));
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.15);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-badge-dot { width: 8px; height: 8px; background: #4ade80; border-radius: 50%; animation: ping-green 1.5s infinite; }
@keyframes ping-green {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,.6); }
  70%  { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(32px,5vw,56px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-title .highlight {
  background: linear-gradient(90deg, #4ade80, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc { font-size: 17px; color: rgba(255,255,255,.8); line-height: 1.7; margin-bottom: 32px; max-width: 480px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stat-value {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.hero-stat-label { font-size: 13px; color: rgba(255,255,255,.65); margin-top: 3px; }
.hero-visual { position: relative; }
.hero-product-showcase {
  background: rgba(255,255,255,.1);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hero-product-card {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  transition: transform var(--tr), background var(--tr);
  cursor: pointer;
}
.hero-product-card:hover { background: rgba(255,255,255,.2); transform: translateY(-3px); }
.hero-product-emoji { font-size: 32px; margin-bottom: 8px; }
.hero-product-name { font-size: 12px; color: rgba(255,255,255,.8); font-weight: 600; }
.hero-product-price { font-size: 14px; color: #4ade80; font-weight: 800; margin-top: 4px; }
.hero-badge-promo {
  position: absolute;
  top: -12px; right: -12px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 50px;
  transform: rotate(8deg);
  box-shadow: 0 4px 12px rgba(255,107,0,.4);
  animation: wobble 3s ease-in-out infinite;
}
@keyframes wobble {
  0%,100% { transform: rotate(8deg); }
  50%      { transform: rotate(4deg) scale(1.05); }
}

/* Trust strip */
.hero-trust {
  background: var(--white);
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}
.hero-trust-inner { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.trust-icon { font-size: 18px; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header { text-align: center; margin-bottom: 48px; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  width: 24px; height: 2px;
  background: var(--green);
  border-radius: 2px;
}
.section-title { color: var(--text); margin-bottom: 12px; }
.section-title .accent { color: var(--primary); }
.section-title .accent-green { color: var(--green); }
.section-desc { font-size: 16px; color: var(--text-muted); max-width: 560px; margin: 0 auto; }
.section-header-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }
.section-header-row .section-header { text-align: left; margin-bottom: 0; }

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--tr);
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transform: scaleX(0);
  transition: transform var(--tr);
}
.cat-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.cat-card:hover::before { transform: scaleX(1); }
.cat-icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  background: var(--blue-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: all var(--tr);
}
.cat-card:hover .cat-icon { background: var(--primary); transform: scale(1.1) rotate(-3deg); }
.cat-name {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.cat-count { font-size: 12px; color: var(--text-muted); }

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--tr);
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-4px); }

/* Product badges */
.product-badges {
  position: absolute;
  top: 12px; left: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
}
.badge-new    { background: var(--primary); color: #fff; }
.badge-sale   { background: var(--accent);  color: #fff; }
.badge-promo  { background: var(--green);   color: #fff; }
.badge-hot    { background: #E53935;        color: #fff; }
.badge-stock  { background: #FFF3CD;        color: #856404; border: 1px solid #FFE082; }

/* Product wishlist */
.product-wishlist-btn {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  width: 36px; height: 36px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all var(--tr);
  box-shadow: var(--shadow-sm);
}
.product-wishlist-btn:hover, .product-wishlist-btn.in-wishlist { border-color: #E53935; background: #FFF0F0; color: #E53935; }

/* Product image */
.product-img-wrap {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--bg);
  position: relative;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }

/* Quick view overlay */
.product-quickview {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,87,184,.9);
  color: #fff;
  text-align: center;
  padding: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transform: translateY(100%);
  transition: transform var(--tr);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.product-card:hover .product-quickview { transform: translateY(0); }

/* Product info */
.product-info { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-cat { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; margin-bottom: 6px; }
.product-name {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.product-name a { color: inherit; }
.product-name a:hover { color: var(--primary); }
.product-rating { display: flex; align-items: center; gap: 4px; margin-bottom: 10px; font-size: 12px; }
.stars { color: #FFA000; letter-spacing: -1px; }
.rating-count { color: var(--text-muted); }
.product-price-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; gap: 8px; }
.product-price {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
}
.product-price del { font-size: 13px; color: var(--text-muted); font-weight: 400; margin-left: 4px; }
.product-price .sale-price { color: var(--accent); }
.add-to-cart-mini {
  width: 38px; height: 38px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all var(--tr);
  flex-shrink: 0;
}
.add-to-cart-mini:hover { background: var(--blue-dark); transform: scale(1.08); }
.add-to-cart-mini.loading { opacity: .7; pointer-events: none; }
.add-to-cart-mini.added { background: var(--green); }

/* Stock indicator */
.product-stock-bar { height: 3px; background: var(--border-light); border-radius: 2px; margin: 8px 0 0; overflow: hidden; }
.product-stock-fill { height: 100%; border-radius: 2px; background: var(--green); }
.product-stock-text { font-size: 11px; color: var(--accent); font-weight: 600; margin-top: 4px; }

/* ============================================================
   PROMO BANNERS
   ============================================================ */
.promo-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px; }
.promo-banner {
  border-radius: var(--radius-xl);
  padding: 36px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 200px;
}
.promo-banner-1 { background: linear-gradient(135deg, var(--blue) 0%, #0099CC 100%); }
.promo-banner-2 { background: linear-gradient(135deg, var(--green) 0%, #00C853 100%); }
.promo-banner-3 { background: linear-gradient(135deg, #7B1FA2 0%, #CE93D8 100%); }
.promo-eyebrow { font-size: 11px; color: rgba(255,255,255,.75); text-transform: uppercase; letter-spacing: 2px; font-weight: 600; margin-bottom: 6px; }
.promo-title { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 8px; }
.promo-sub { font-size: 13px; color: rgba(255,255,255,.8); margin-bottom: 16px; }
.promo-banner::after { content: ''; position: absolute; top: -30px; right: -30px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.08); }
.promo-banner::before { content: ''; position: absolute; bottom: -60px; right: -20px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.05); }

/* ============================================================
   FEATURES / USP STRIP
   ============================================================ */
.features-strip { background: var(--white); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); padding: 32px 0; }
.features-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-item { display: flex; align-items: center; gap: 14px; }
.feature-icon-wrap {
  width: 48px; height: 48px;
  background: var(--blue-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.feature-title { font-weight: 700; font-size: 14px; color: var(--text); margin-bottom: 3px; }
.feature-desc { font-size: 12px; color: var(--text-muted); }

/* ============================================================
   BRAND LOGOS STRIP
   ============================================================ */
.brands-strip { padding: 40px 0; }
.brands-scroll {
  display: flex;
  gap: 40px;
  overflow: hidden;
}
.brands-track {
  display: flex;
  gap: 40px;
  align-items: center;
  animation: scroll-brands 25s linear infinite;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand-logo {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-muted);
  opacity: .4;
  transition: opacity var(--tr);
  padding: 8px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.brand-logo:hover { opacity: .8; }
@keyframes scroll-brands { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section { background: var(--blue-pale); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.testimonial-stars { color: #FFA000; font-size: 16px; margin-bottom: 12px; letter-spacing: -1px; }
.testimonial-text { font-size: 14px; color: var(--text-muted); line-height: 1.75; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--green));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: 14px; color: var(--text); }
.testimonial-loc  { font-size: 12px; color: var(--text-muted); }

/* ============================================================
   NEWSLETTER SECTION
   ============================================================ */
.newsletter-section {
  background: linear-gradient(135deg, var(--blue) 0%, var(--green-dark) 100%);
  padding: 72px 0;
}
.newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.newsletter-title { font-family: var(--font-head); font-size: 34px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.newsletter-desc { color: rgba(255,255,255,.8); font-size: 16px; }
.newsletter-form {
  display: flex;
  gap: 12px;
  background: rgba(255,255,255,.1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-lg);
  padding: 8px 8px 8px 20px;
}
#newsletter-form { display: flex; gap: 12px; flex: 1; }
.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 15px;
  outline: none;
  padding: 10px 0;
  min-width: 0;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.55); }
.newsletter-perks { display: flex; gap: 20px; margin-top: 16px; flex-wrap: wrap; }
.newsletter-perk { display: flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255,255,255,.75); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.7);
}
.footer-top { padding: 64px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr; gap: 40px; }
/* Intermediate breakpoint so the 5-column grid degrades gracefully:
   brand takes the full width, the 4 link columns fit in a 2x2 grid. */
@media (max-width: 1200px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
.footer-brand { }
.footer-logo-wrap { margin-bottom: 16px; }
.footer-logo-name {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}
.footer-logo-name span { color: #4ade80; }
.footer-desc { font-size: 14px; line-height: 1.75; margin-bottom: 20px; color: rgba(255,255,255,.6); }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: 16px;
  transition: all var(--tr);
}
.social-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.footer-heading { font-family: var(--font-head); font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 1px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,.55); transition: color var(--tr); }
.footer-links a:hover { color: #fff; }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 12px; font-size: 13px; color: rgba(255,255,255,.6); }
.footer-contact-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.footer-payment-logos { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.footer-payment-badge {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.15);
}
.footer-payment-badge.orange { background: rgba(255,107,0,.15); color: #FF6B00; border-color: rgba(255,107,0,.3); }
.footer-payment-badge.mtn    { background: rgba(255,204,0,.1); color: #FFCC00; border-color: rgba(255,204,0,.3); }
.footer-payment-badge.cash   { background: rgba(74,222,128,.1); color: #4ade80; border-color: rgba(74,222,128,.2); }
.footer-payment-badge.pickup { background: rgba(0,87,184,.12); color: #66a8ff; border-color: rgba(0,87,184,.35); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
}
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,.4); }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { font-size: 13px; color: rgba(255,255,255,.4); }
.footer-legal a:hover { color: rgba(255,255,255,.8); }

/* ============================================================
   WooCommerce - SHOP PAGE
   ============================================================ */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.shop-sidebar { position: sticky; top: 100px; }
.sidebar-widget {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}
.sidebar-widget-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.woocommerce ul.products { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin: 0; padding: 0; }
.woocommerce ul.products li.product { list-style: none; margin: 0; }
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.shop-results-count { font-size: 14px; color: var(--text-muted); }
.woocommerce-ordering select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  outline: none;
}

/* ============================================================
   WooCommerce - SINGLE PRODUCT
   ============================================================ */
.single-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.product-gallery-wrap { position: sticky; top: 100px; }
.woocommerce-product-gallery { border-radius: var(--radius-xl); overflow: hidden; }
.product-detail-price {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  margin: 20px 0;
}
.product-detail-price del { font-size: 18px; color: var(--text-muted); margin-right: 10px; font-weight: 400; }
.product-actions-wrap { display: flex; gap: 12px; align-items: center; margin: 24px 0; }
.product-actions-wrap .quantity { display: flex; align-items: center; border: 2px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.qty-btn { width: 40px; height: 48px; background: var(--bg); border: none; font-size: 18px; cursor: pointer; transition: background var(--tr); display: flex; align-items: center; justify-content: center; }
.qty-btn:hover { background: var(--blue-pale); color: var(--primary); }
.qty-input { width: 60px; height: 48px; text-align: center; border: none; font-size: 16px; font-weight: 700; color: var(--text); background: var(--white); }
.single_add_to_cart_button {
  flex: 1;
  padding: 14px 28px !important;
  font-size: 16px !important;
}
.product-meta-info { padding: 20px 0; border-top: 1px solid var(--border-light); font-size: 14px; color: var(--text-muted); }
.product-meta-info span { display: block; margin-bottom: 8px; }
.product-meta-info strong { color: var(--text); }
.product-tabs { border: 1.5px solid var(--border-light); border-radius: var(--radius-lg); overflow: hidden; }
.woocommerce-tabs ul.tabs { display: flex; gap: 0; background: var(--bg); padding: 0; }
.woocommerce-tabs ul.tabs li { flex: 1; }
.woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 14px 20px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
  border: none;
}
.woocommerce-tabs ul.tabs li.active a { color: var(--primary); background: var(--white); border-bottom: 2px solid var(--primary); }
.woocommerce-tabs .panel { padding: 24px; background: var(--white); }

/* ============================================================
   CART PAGE
   ============================================================ */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.cart-items-card {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cart-item-row {
  display: grid;
  grid-template-columns: 80px 1fr 120px 120px 48px;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
}
.cart-item-row:last-child { border-bottom: none; }
.cart-item-img { width: 80px; height: 80px; border-radius: var(--radius-sm); object-fit: cover; }
.cart-item-name { font-weight: 700; font-size: 14px; color: var(--text); }
.cart-item-sku { font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); margin-top: 4px; }
.cart-summary-card {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 100px;
}
.cart-summary-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; color: var(--text); }
.cart-summary-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border-light); font-size: 14px; }
.cart-summary-row:last-of-type { border-bottom: none; }
.cart-summary-total { font-size: 20px; font-weight: 800; color: var(--primary); }

/* Delivery notice */
.delivery-notice {
  background: var(--green-pale);
  border: 1px solid #86EFAC;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--green-dark);
  margin: 12px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.cod-notice {
  background: #FFF8E1;
  border: 1px solid #FFE082;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: #5D4037;
  margin: 12px 0;
}

/* ============================================================
   CHECKOUT PAGE
   ============================================================ */
.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 32px; align-items: start; }
.checkout-card {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
}
.checkout-card-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 10px;
}
.checkout-step-badge {
  width: 28px; height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}
/* Form fields */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color var(--tr), box-shadow var(--tr);
  font-family: var(--font-body);
}
.form-field input:focus,
.woocommerce form .form-row input.input-text:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0,87,184,.1);
}
.form-row-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Payment methods */
#payment ul.payment_methods { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
#payment ul.payment_methods li {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--tr);
}
#payment ul.payment_methods li:has(input:checked) { border-color: var(--primary); background: var(--blue-pale); }
#payment ul.payment_methods label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}
#payment ul.payment_methods input[type="radio"] { accent-color: var(--primary); width: 18px; height: 18px; flex-shrink: 0; }
#payment .payment_box { padding: 0 20px 16px; }
#place_order {
  width: 100%;
  padding: 18px;
  background: var(--green);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font-head);
  transition: all var(--tr);
  box-shadow: 0 6px 20px rgba(0,166,81,.3);
  letter-spacing: .3px;
}
#place_order:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,166,81,.35); }

/* Payment gateway boxes */
.gtech-payment-box {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.gtech-payment-steps { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.gtech-step { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text); }
.gtech-step-num {
  width: 22px; height: 22px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}
.gtech-step-num.orange { background: #FF6B00; }
.gtech-step-num.mtn    { background: #FFCC00; color: #000; }
.gtech-number { font-weight: 800; color: var(--primary); font-size: 16px; display: block; margin-top: 2px; letter-spacing: 1px; }
.gtech-ref-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 1px;
  outline: none;
  margin-top: 10px;
  transition: border-color var(--tr), box-shadow var(--tr);
}
.gtech-ref-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(0,87,184,.1); }
.cod-advance-notice {
  background: #FFF3E0;
  border: 2px solid #FFB74D;
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 13px;
  color: #E65100;
  line-height: 1.6;
}
.cod-advance-notice strong { color: #BF360C; }

/* ============================================================
   QUICK VIEW MODAL
   ============================================================ */
#quick-view-modal {
  position: fixed;
  inset: 0;
  background: rgba(10,22,40,.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
#quick-view-modal.active { opacity: 1; pointer-events: all; }
.qv-inner {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}
#quick-view-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  width: 36px; height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  z-index: 1;
  color: var(--text-muted);
}
.qv-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.qv-img { width: 100%; height: 380px; object-fit: cover; border-radius: var(--radius-xl) 0 0 var(--radius-xl); }
.qv-info { padding: 32px; }
.qv-cat { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; margin-bottom: 8px; }
.qv-name { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 12px; line-height: 1.3; }
.qv-price { font-family: var(--font-head); font-size: 26px; font-weight: 800; color: var(--primary); margin-bottom: 16px; }
.qv-stock-ok { color: var(--green); font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.qv-desc { font-size: 14px; color: var(--text-muted); line-height: 1.75; margin-bottom: 20px; }
.qv-actions { display: flex; gap: 10px; }
.qv-loading { display: flex; align-items: center; justify-content: center; min-height: 300px; }
.spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   AI CHAT WIDGET
   ============================================================ */
.ai-chat-btn {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 999;
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0,87,184,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  transition: all var(--tr);
  animation: float-chat 4s ease-in-out infinite;
}
.ai-chat-btn:hover { transform: scale(1.1); box-shadow: 0 12px 40px rgba(0,87,184,.45); }
@keyframes float-chat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.ai-chat-btn .chat-notif {
  position: absolute;
  top: 2px; right: 2px;
  width: 14px; height: 14px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid #fff;
  animation: ping 1.5s cubic-bezier(0,0,.2,1) infinite;
}
@keyframes ping {
  75%,100% { transform: scale(2); opacity: 0; }
}

.ai-chat-panel {
  position: fixed;
  bottom: 100px; right: 28px;
  z-index: 998;
  width: 380px;
  max-height: 560px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1.5px solid var(--border-light);
  display: flex;
  flex-direction: column;
  transform: scale(.9) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
.ai-chat-panel.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}
.chat-header {
  background: linear-gradient(135deg, var(--blue), var(--green));
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-avatar {
  width: 42px; height: 42px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.chat-header-info {}
.chat-bot-name { font-weight: 700; color: #fff; font-size: 15px; font-family: var(--font-head); }
.chat-status { font-size: 12px; color: rgba(255,255,255,.8); display: flex; align-items: center; gap: 5px; }
.chat-status-dot { width: 7px; height: 7px; background: #4ade80; border-radius: 50%; animation: ping-green 1.5s infinite; }
.chat-close-btn { margin-left: auto; background: rgba(255,255,255,.15); border: none; color: #fff; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.chat-close-btn:hover { background: rgba(255,255,255,.25); }
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}
.chat-msg { display: flex; gap: 8px; align-items: flex-end; }
.chat-msg--bot { flex-direction: row; }
.chat-msg--user { flex-direction: row-reverse; }
.chat-msg--system { justify-content: center; }
.msg-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}
.msg-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.55;
}
.chat-msg--bot .msg-bubble { background: var(--bg); color: var(--text); border-radius: 4px 16px 16px 16px; }
.chat-msg--user .msg-bubble { background: var(--primary); color: #fff; border-radius: 16px 16px 4px 16px; }
.chat-msg--system .msg-bubble {
  background: #FFF8E1;
  color: #5D4037;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-style: italic;
  text-align: center;
  border: 1px solid #FFE082;
}
.chat-typing span {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--text-light);
  border-radius: 50%;
  margin: 0 2px;
  animation: typing-dot .9s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .30s; }
@keyframes typing-dot {
  0%,60%,100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-6px); opacity: 1; }
}
/* Quick replies */
.chat-quick-replies { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 16px 8px; }
.quick-reply-btn {
  padding: 6px 12px;
  background: var(--blue-pale);
  color: var(--primary);
  border: 1px solid rgba(0,87,184,.2);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--tr);
  white-space: nowrap;
}
.quick-reply-btn:hover { background: var(--primary); color: #fff; }
/* Human agent banner */
.chat-agent-banner {
  background: #FFF3E0;
  border-top: 1px solid #FFB74D;
  padding: 10px 16px;
  font-size: 12px;
  color: #E65100;
  display: flex;
  align-items: center;
  gap: 8px;
  display: none;
}
.chat-agent-banner.visible { display: flex; }
.chat-input-area { padding: 12px 16px; border-top: 1px solid var(--border-light); display: flex; gap: 8px; }
#ai-chat-input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 14px;
  outline: none;
  transition: border-color var(--tr);
  font-family: var(--font-body);
}
#ai-chat-input:focus { border-color: var(--primary); }
#ai-chat-send {
  width: 40px; height: 40px;
  background: var(--primary);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--tr);
}
#ai-chat-send:hover { background: var(--blue-dark); }
.chat-human-connect-btn {
  width: 100%;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  margin-top: 4px;
  transition: all var(--tr);
}
.chat-human-connect-btn:hover { background: var(--bg); color: var(--text); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
#back-to-top {
  position: fixed;
  bottom: 100px; right: 100px;
  width: 44px; height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 900;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--tr);
  box-shadow: var(--shadow-md);
}
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover { background: var(--blue-dark); }

/* ============================================================
   TRANSLATEPRESS — switcher integrated in the top bar
   The TP switcher is rendered inline inside .header-topbar-right
   (see header.php). We HIDE the floating widget everywhere so there
   is no duplicate, and we restore the bottom-right slot for our own
   widgets (chat IA, WhatsApp, back-to-top).
   ============================================================ */

/* Hide TP's floating language switcher in all its incarnations */
body.gtech2-tp-active .trp-floater,
body.gtech2-tp-active #trp-floater-ls,
body.gtech2-tp-active .trp-language-switcher-container.trp-floater,
body.gtech2-tp-active .trp-floater-ls,
body.gtech2-tp-active div[id^="trp-floater"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Inline switcher styling inside the top bar */
.header-topbar-right .header-tp-switcher {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
}
.header-topbar-right .header-tp-switcher .trp-language-switcher,
.header-topbar-right .header-tp-switcher .trp-language-switcher-container {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.header-topbar-right .header-tp-switcher select,
.header-topbar-right .header-tp-switcher .trp-ls-shortcode-language,
.header-topbar-right .header-tp-switcher .trp-ls-shortcode-current-language {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  line-height: 1.4;
  appearance: auto;
}
.header-topbar-right .header-tp-switcher select:hover,
.header-topbar-right .header-tp-switcher .trp-ls-shortcode-current-language:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.5);
}
.header-topbar-right .header-tp-switcher select option {
  color: #1A2744;
  background: #fff;
}
/* Flag icons (TP renders <img class="trp-flag-image">) — keep them tight */
.header-topbar-right .header-tp-switcher img,
.header-topbar-right .header-tp-switcher .trp-flag-image {
  width: 16px;
  height: auto;
  vertical-align: middle;
  margin-right: 4px;
  border-radius: 2px;
}

/* Mobile : keep visible but compact (the topbar already collapses on
   very small viewports — see the @media rule near line 2033) */
@media (max-width: 768px) {
  .header-topbar-right .header-tp-switcher select,
  .header-topbar-right .header-tp-switcher .trp-ls-shortcode-current-language {
    font-size: 11px;
    padding: 2px 6px;
  }
  .header-topbar-right .header-tp-switcher img,
  .header-topbar-right .header-tp-switcher .trp-flag-image {
    width: 14px;
  }
}

/* GBot (AI chat), WhatsApp FAB and back-to-top stay at the bottom-RIGHT
   regardless of TP, because the language switcher is now inline in the
   top bar (no floating widget to avoid). No overrides needed. */

/* ============================================================
   COOKIE BANNER
   ============================================================ */
#gtech-cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-dark);
  border-top: 3px solid var(--primary);
  z-index: 9997;
  padding: 16px 24px;
  display: none;
  justify-content: center;
}
.cookie-inner { display: flex; align-items: center; gap: 20px; max-width: 1000px; width: 100%; flex-wrap: wrap; }
.cookie-text { flex: 1; font-size: 13px; color: rgba(255,255,255,.75); line-height: 1.6; min-width: 200px; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-accept { background: var(--green); color: #fff; border: none; padding: 9px 20px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 700; cursor: pointer; }
.cookie-decline { background: transparent; color: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.2); padding: 9px 20px; border-radius: var(--radius-sm); font-size: 13px; cursor: pointer; }

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 24px; left: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.gtech-toast {
  background: var(--white);
  color: var(--text);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  max-width: 340px;
  pointer-events: all;
  opacity: 0;
  transform: translateX(-20px);
  transition: all .25s;
}
.gtech-toast.visible { opacity: 1; transform: translateX(0); }
.gtech-toast.success { border-left-color: var(--green); }
.gtech-toast.error   { border-left-color: #E53935; }
.gtech-toast.warning { border-left-color: #FF6B00; }
.toast-close { background: none; border: none; cursor: pointer; color: var(--text-muted); margin-left: auto; font-size: 14px; }

/* ============================================================
   PASSWORD CHECKER
   ============================================================ */
.pw-checker { margin-top: 10px; }
.pw-rules { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.pw-rule { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.pw-rule::before { content: '✗'; color: #E53935; font-weight: 700; }
.pw-rule.valid { color: var(--green); }
.pw-rule.valid::before { content: '✓'; color: var(--green); }
.pw-bar { height: 4px; background: var(--border); border-radius: 2px; margin-bottom: 4px; overflow: hidden; }
.pw-fill { height: 100%; border-radius: 2px; transition: width .3s, background .3s; width: 0; }
.pw-label { font-size: 11px; font-weight: 700; }

/* ============================================================
   PAGES LÉGALES & INFORMATIVES
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  padding: 56px 0 48px;
}
.page-hero-title { font-size: clamp(24px,4vw,42px); color: #fff; font-weight: 800; margin-bottom: 10px; }
/* Breadcrumbs sit on a saturated blue gradient — raise opacity so the
   crumb labels meet WCAG AA (was rgba(...,.65) which dropped below 4.5:1
   on the lighter end of the gradient). */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.92); margin-bottom: 12px; font-weight: 500; }
.breadcrumb a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 3px; }
.breadcrumb a:hover { text-decoration-color: #fff; }
.breadcrumb-sep { opacity: .7; }
/* Legacy `.page-content-wrap` rule kept for single.php (blog posts) which
   benefits from a narrow, centered reading column. Pages that use the
   shortcode-renders-everything pattern use `.page-content-wrap--full`. */
.page-content-wrap { max-width: 860px; margin: 0 auto; }
.page-content-wrap--full { max-width: none; }
.page-content-wrap--full > .entry-content > * { max-width: none; }

/* ============================================================
   PAGE LAYOUTS
   - Sidebar right vertical → FAQ, Contact, GTech Solution
   - Bottom horizontal strip → À Propos
   - Full width only → all other pages
   ============================================================ */
.page-main { min-width: 0; }
.page-main--wide { width: 100%; max-width: none; }
.page-main .entry-content > :first-child { margin-top: 0; }

/* Right-sidebar layout (FAQ, Contact, GTech Solution) */
.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}
.page-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 14px; }

/* Bottom horizontal-cards layout (À Propos) */
.page-bottom-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border-light);
}

.page-sidebar-card {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.page-sidebar-card--trust { background: linear-gradient(135deg, #F0F7FF, #FFFFFF); }
.page-sidebar-title { font-size: 15px; font-weight: 800; color: var(--primary); margin: 0 0 12px; letter-spacing: .2px; }
.page-sidebar-list { list-style: none; padding: 0; margin: 0; }
.page-sidebar-list li { font-size: 14px; line-height: 1.7; color: var(--text); margin: 0; padding: 6px 0; border-bottom: 1px dashed var(--border-light); }
.page-sidebar-list li:last-child { border-bottom: none; }
.page-sidebar-list a { color: var(--text); text-decoration: none; transition: color var(--tr); }
.page-sidebar-list a:hover { color: var(--primary); }
.page-sidebar-nav li { padding: 7px 0; font-weight: 500; }
.page-sidebar-nav li.is-current { font-weight: 700; color: var(--primary); }
.page-sidebar-nav li.is-current span { background: var(--blue-pale); padding: 3px 10px; border-radius: 6px; display: inline-block; }
.page-bottom-info--solution .page-sidebar-nav li.is-current { color: #C62828; }
.page-bottom-info--solution .page-sidebar-nav li.is-current span { background: #FFF1E5; }
.page-sidebar-trust li { color: var(--text-muted); font-size: 13px; padding: 6px 0; border: none; }
.page-sidebar-meta { font-size: 12px; color: var(--text-muted); margin: 10px 0 0; line-height: 1.6; }
.page-sidebar-pill { display: inline-block; margin-left: 6px; padding: 2px 8px; background: #E3F0FF; color: var(--primary); border-radius: 50px; font-size: 11px; font-weight: 700; vertical-align: middle; }
.page-sidebar-pill--muted { background: #F4F7FB; color: var(--text-muted); }

/* GTech Solution page — adopt orange/red branding for the page-hero,
   hide the shortcode's internal hero (now redundant since page-hero
   + sidebar already provide the title + CTAs), and recolour cards. */
.page-hero--solution { background: linear-gradient(135deg, #E55A00 0%, #C62828 100%); }
.page-main--solution .gs-hero { display: none; }
.page-grid--solution .gs-services,
.page-grid--solution .gs-form-section,
.page-grid--solution .gs-trust { max-width: none; padding: 24px 0 16px; }
.page-grid--solution .gs-section-title { font-size: 22px; }
.page-grid--solution .gs-form-inner { padding: 22px; }
.page-grid--solution .page-sidebar-card--trust { background: linear-gradient(135deg, #FFF1E5, #FFFFFF); }
.page-grid--solution .page-sidebar-title { color: #C62828; }
.page-grid--solution .page-sidebar-nav li.is-current { color: #C62828; }
.page-grid--solution .page-sidebar-nav li.is-current span { background: #FFF1E5; }

/* Responsive — sidebar layout */
@media (max-width: 1024px) {
  .page-grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; }
  .page-sidebar { top: 88px; }
}
@media (max-width: 860px) {
  .page-grid { grid-template-columns: 1fr; gap: 24px; }
  .page-sidebar { position: static; }
}

/* Responsive — horizontal bottom-strip layout */
@media (max-width: 1024px) {
  .page-bottom-info { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 700px) {
  .page-bottom-info { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; padding-top: 28px; }
  .page-sidebar-card { padding: 18px 20px; }
}
.entry-content h2 { font-size: 22px; margin: 28px 0 12px; color: var(--primary); }
.entry-content h3 { font-size: 18px; margin: 22px 0 10px; }
.entry-content p, .entry-content li { font-size: 15px; line-height: 1.8; color: var(--text-muted); margin-bottom: 10px; }
.entry-content ul, .entry-content ol { padding-left: 20px; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.entry-content table th { background: var(--blue-pale); color: var(--primary); padding: 10px 14px; font-weight: 700; text-align: left; }
.entry-content table td { padding: 10px 14px; border-bottom: 1px solid var(--border-light); }
.entry-content a { color: var(--primary); text-decoration: underline; }

/* ============================================================
   CONTACT / INFO PAGES
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact-card { background: var(--white); border: 1.5px solid var(--border-light); border-radius: var(--radius-lg); padding: 20px 24px; margin-bottom: 16px; transition: box-shadow var(--tr); }
.contact-card:hover { box-shadow: var(--shadow-sm); }
.contact-card-icon { font-size: 32px; margin-bottom: 10px; }
.contact-card h3 { font-size: 16px; font-weight: 700; color: var(--primary); margin: 0 0 8px; }
.contact-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin: 4px 0; }
.contact-card a { color: var(--primary); text-decoration: none; transition: color var(--tr); }
.contact-card a:hover { color: var(--blue-dark); text-decoration: underline; }
.contact-card strong { color: var(--text); }

/* Google Maps embed on contact page — responsive height */
.contact-grid iframe[src*="google.com/maps"] {
    max-width: 100%;
    aspect-ratio: 4/3;
    height: auto;
    min-height: 280px;
}
@media (max-width: 768px) {
    .contact-grid iframe[src*="google.com/maps"] {
        min-height: 280px;
        max-height: 380px;
    }
}

/* ============================================================
   BLOG
   ============================================================ */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.blog-card { background: var(--white); border: 1.5px solid var(--border-light); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--tr); }
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.blog-card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--bg); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 20px; }
.blog-card-date { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.blog-card-title { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.blog-card-title a { color: var(--text); }
.blog-card-title a:hover { color: var(--primary); }
.blog-card-excerpt { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404 { text-align: center; padding: 100px 20px; }
.error-404-code {
  font-family: var(--font-head);
  font-size: clamp(80px,20vw,180px);
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}
.error-404-title { font-size: 28px; margin-bottom: 12px; }
.error-404-desc { font-size: 16px; color: var(--text-muted); max-width: 480px; margin: 0 auto 32px; }
.error-404-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination-wrap { display: flex; justify-content: center; margin-top: 48px; }
.woocommerce-pagination ul, .page-numbers {
  display: flex;
  gap: 6px;
  list-style: none;
  padding: 0;
}
.woocommerce-pagination ul li a, .woocommerce-pagination ul li span,
.page-numbers a, .page-numbers span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: all var(--tr);
}
.woocommerce-pagination ul li a:hover, .page-numbers a:hover { border-color: var(--primary); color: var(--primary); background: var(--blue-pale); }
.woocommerce-pagination ul li span.current, .page-numbers span.current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============================================================
   RESPONSIVE — TABLET (max-width: 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(3,1fr); }
  .products-grid   { grid-template-columns: repeat(3,1fr); }
  .features-inner  { grid-template-columns: repeat(2,1fr); }
  .promo-grid      { grid-template-columns: 1fr 1fr; }
  .footer-grid     { grid-template-columns: 1fr 1fr; gap: 32px; }
  .shop-layout     { grid-template-columns: 1fr; }
  .shop-sidebar    { position: static; }
  .hero-inner      { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual     { display: none; }
  .newsletter-inner { grid-template-columns: 1fr; gap: 32px; }
  .cart-layout      { grid-template-columns: 1fr; }
  .checkout-layout  { grid-template-columns: 1fr; }
  .single-product-grid { grid-template-columns: 1fr; }
  .contact-grid     { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE — MOBILE (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
  .header-main-inner { grid-template-columns: auto auto; }
  .header-search     { display: none; }
  .header-nav        { display: none; }
  .header-nav.open   { display: block; }
  .menu-toggle       { display: flex; }
  #primary-menu      { flex-direction: column; }
  #primary-menu > li > a { padding: 14px 24px; border-bottom: 1px solid var(--border-light); }
  .categories-grid   { grid-template-columns: repeat(2,1fr); }
  .products-grid     { grid-template-columns: repeat(2,1fr); }
  .promo-grid        { grid-template-columns: 1fr; }
  .hero-stats        { gap: 16px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid       { grid-template-columns: 1fr; }
  .section-pad       { padding: 48px 0; }
  .hero-section      { padding: 52px 0 44px; }
  .ai-chat-panel     { width: calc(100vw - 32px); right: 16px; }
  .hero-trust-inner  { gap: 20px; }
  .blog-grid         { grid-template-columns: 1fr; }
  .header-topbar-right { display: none; }
  .cart-item-row     { grid-template-columns: 60px 1fr 48px; gap: 10px; }
  .qv-layout         { grid-template-columns: 1fr; }
  .qv-img            { height: 220px; border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
  .form-row-two      { grid-template-columns: 1fr; }
  .woocommerce ul.products { grid-template-columns: repeat(2,1fr); }
  .grid-4, .grid-3   { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .products-grid    { grid-template-columns: 1fr; }
  .categories-grid  { grid-template-columns: 1fr 1fr; }
  .hero-ctas        { flex-direction: column; }
  .woocommerce ul.products { grid-template-columns: 1fr; }
}

/* ============================================================
   ORDER TRACKING — customer-facing timeline + lookup form
   Used by the [gtech_order_tracking] shortcode on /suivi-commande/
   and inside the my-account view-order screen.
   ============================================================ */
.gtech-track-wrap { max-width: 720px; margin: 0 auto; }
.gtech-track-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.gtech-track-head h2 { font-size: 22px; color: var(--primary); margin: 0 0 6px; }
.gtech-track-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.gtech-track-zone {
  background: var(--blue-pale);
  border-left: 3px solid var(--primary);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 10px;
}
.gtech-track-eta {
  background: #FFF6E5;
  border-left: 3px solid #FF6B00;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: #BF360C;
  margin-bottom: 18px;
}
.gtech-track-cancelled {
  background: #FFEBEE;
  border-left: 3px solid #E53935;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: #B71C1C;
  margin-bottom: 18px;
}
.gtech-timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.gtech-timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: var(--border);
}
.gtech-tl-step {
  position: relative;
  padding: 12px 0 12px 56px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.gtech-tl-icon {
  position: absolute;
  left: 0;
  top: 8px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 1;
}
.gtech-tl-step.is-reached .gtech-tl-icon {
  background: var(--green-pale);
  border-color: var(--green);
}
.gtech-tl-step.is-current .gtech-tl-icon {
  background: #FFE0B2;
  border-color: #FF6B00;
  animation: gtech-tl-pulse 1.6s infinite;
}
.gtech-tl-step.is-failed .gtech-tl-icon {
  background: #FFCDD2;
  border-color: #E53935;
}
@keyframes gtech-tl-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,0,.5); }
  60%      { box-shadow: 0 0 0 10px rgba(255,107,0,0); }
}
.gtech-tl-body { flex: 1; min-width: 0; padding-top: 8px; }
.gtech-tl-label { font-size: 15px; font-weight: 700; color: var(--text); }
.gtech-tl-step:not(.is-reached) .gtech-tl-label { color: var(--text-muted); font-weight: 500; }
.gtech-tl-when { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.gtech-tl-tag {
  display: inline-block;
  background: #FF6B00;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
  margin-top: 4px;
  letter-spacing: 0.5px;
}
.gtech-track-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}
.gtech-track-foot a {
  color: #25D366;
  text-decoration: none;
  font-weight: 600;
}
.gtech-track-foot a:hover { text-decoration: underline; }

/* Lookup form (used when no order is loaded) */
.gtech-track-form {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}
.gtech-track-form h2 { font-size: 22px; color: var(--primary); margin: 0 0 8px; }
.gtech-track-form p { font-size: 14px; color: var(--text-muted); margin: 0 0 18px; }
.gtech-track-row { margin-bottom: 14px; }
.gtech-track-row label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.gtech-track-row input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s ease;
}
.gtech-track-row input:focus { border-color: var(--primary); }
.gtech-track-btn {
  background: var(--green);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 24px;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 100%;
  margin-top: 8px;
}
.gtech-track-btn:hover { background: var(--green-dark); }
.gtech-track-help { font-size: 12px; color: var(--text-muted); text-align: center; margin: 14px 0 0 !important; }
.gtech-track-help a { color: var(--primary); }
.gtech-track-error {
  background: #FFEBEE;
  border: 1px solid #E53935;
  color: #B71C1C;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 14px;
}
@media (max-width: 640px) {
  .gtech-track-card, .gtech-track-form { padding: 18px; }
  .gtech-tl-step { padding-left: 50px; }
  .gtech-tl-icon { width: 36px; height: 36px; font-size: 16px; }
  .gtech-timeline::before { left: 17px; }
}

/* ============================================================
   WooCommerce misc overrides
   ============================================================ */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-info {
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}
.woocommerce-breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.woocommerce-breadcrumb a { color: var(--primary); }
.woocommerce .star-rating { color: #FFA000; }
.price { font-family: var(--font-head); color: var(--primary); font-weight: 800; }
.woocommerce form .form-row { margin-bottom: 16px; }
.woocommerce-page .woocommerce { padding: 40px 0; }

/* Related products */
.related.products h2, .upsells.products h2 {
  font-size: 24px;
  margin: 48px 0 24px;
}

/* ============================================================
   STOCK BADGES / URGENCY (added in v2.1)
   ============================================================ */
.stock-alert-badge,
.last-item-badge,
.stock-urgency {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: linear-gradient(135deg, #FFF8E1, #FFECB3);
  color: #BF360C;
  border: 1px solid #FFB74D;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  margin: 8px 0 12px;
  animation: pulse-stock 2s ease-in-out infinite;
}
.last-item-badge {
  background: linear-gradient(135deg, #FFE0E0, #FFB3B3);
  color: #B71C1C;
  border-color: #EF5350;
}
@keyframes pulse-stock {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.02); }
}

/* ============================================================
   QUICK-REPLY BUTTON ACTIVE STATE (filter pills)
   ============================================================ */
.quick-reply-btn.active {
  background: var(--primary);
  color: #fff;
}
.cat-filter-tabs .quick-reply-btn {
  background: var(--blue-pale);
  color: var(--primary);
  border: 1px solid rgba(0,87,184,.2);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--tr);
  text-decoration: none;
}
.cat-filter-tabs .quick-reply-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* ============================================================
   PICKUP-IN-STORE PAYMENT GATEWAY (new mode)
   ============================================================ */
.pickup-advance-notice {
  background: linear-gradient(135deg, #E3F0FF, #F0F7FF);
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--blue-dark);
  line-height: 1.6;
  margin-bottom: 16px;
}
.pickup-advance-notice strong { color: var(--blue-dark); font-weight: 800; }

.gtech-pickup-box { padding: 18px !important; }

.pickup-store-card {
  background: var(--white);
  border: 1.5px solid var(--blue-pale);
  border-radius: var(--radius-md);
  padding: 18px;
  margin: 14px 0 18px;
  box-shadow: 0 1px 4px rgba(0,87,184,.06);
}
.pickup-store-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--border-light);
}
.pickup-store-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.pickup-store-title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}
.pickup-store-sub { font-size: 12px; color: var(--text-muted); }

.pickup-store-row {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}
.pickup-store-row strong { color: var(--text); font-weight: 700; }
.pickup-row-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.pickup-maps-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}
.pickup-maps-link:hover { color: var(--blue-dark); text-decoration: underline; }

.pickup-steps-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 14px 0 10px;
}
.gtech-step-num.pickup { background: var(--primary); }

.pickup-date-field,
.pickup-notes-field { margin-top: 14px; }
.pickup-date-field label,
.pickup-notes-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.pickup-optional {
  font-weight: 400;
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-left: 4px;
}
.pickup-date-field input[type="date"],
.pickup-notes-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  outline: none;
  font-family: var(--font-body);
  transition: border-color var(--tr), box-shadow var(--tr);
}
.pickup-date-field input[type="date"]:focus,
.pickup-notes-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0,87,184,.1);
}
.pickup-help-text {
  font-size: 11.5px;
  color: var(--text-light);
  margin-top: 6px;
  line-height: 1.5;
}
.pickup-final-note {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 14px;
  line-height: 1.6;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}

/* Pickup confirmation (thank-you page) */
.pickup-confirmation {
  text-align: center;
  padding: 30px 0;
  max-width: 720px;
  margin: 0 auto;
}
.pickup-confirmation-icon {
  font-size: 56px;
  margin-bottom: 12px;
  animation: bounce-in .6s ease-out;
}
@keyframes bounce-in {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.pickup-confirmation-title {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}
.pickup-confirmation-sub {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 28px;
}
.pickup-confirmation-card {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}
.pickup-confirmation-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.pickup-confirmation-address {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.6;
}
.pickup-todo-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.pickup-todo-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}
.pickup-todo-list li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 8px;
  width: 20px; height: 20px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}
.pickup-confirmation-tip {
  background: var(--blue-pale);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--blue-dark);
  margin-top: 16px;
  line-height: 1.5;
}

.pickup-notice {
  background: #E3F0FF;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--blue-dark);
  margin: 12px 0;
  line-height: 1.5;
}

/* ============================================================
   CART REFINEMENTS
   ============================================================ */
.cart-items-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
  gap: 12px;
  flex-wrap: wrap;
}
.cart-items-card-title {
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-head);
  color: var(--text);
}
.cart-empty-link {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: underline;
}
.cart-empty-link:hover { color: #E53935; }

.cart-qty-wrap {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
}
.cart-qty-wrap .qty-btn {
  width: 36px; height: 36px;
  background: var(--bg);
  border: none;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: background var(--tr), color var(--tr);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-qty-wrap .qty-btn:hover { background: var(--blue-pale); color: var(--primary); }
.cart-qty-wrap input.qty,
.cart-qty-wrap input.qty-input {
  width: 44px;
  height: 36px;
  border: none;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  -moz-appearance: textfield;
  outline: none;
}
.cart-qty-wrap input.qty::-webkit-outer-spin-button,
.cart-qty-wrap input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-qty-fixed {
  width: 44px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.cart-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-top: 1px solid var(--border-light);
  gap: 12px;
  flex-wrap: wrap;
}

.cart-coupon-card {
  margin-top: 20px;
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
}
.cart-coupon-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
}

.cart-checkout-cta { margin-top: 20px; }
.cart-trust-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
}
.cart-trust-row .sep { opacity: .5; }

/* Cart remove link (replace inline styles) */
.cart-item-row .remove {
  width: 32px; height: 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
  transition: all var(--tr);
}
.cart-item-row .remove:hover { background: #FFEBEE; color: #E53935; border-color: #E53935; }

/* ============================================================
   CHECKOUT COUPON TOGGLE
   ============================================================ */
.checkout-coupon-wrap { margin-top: 16px; }
.checkout-coupon-toggle {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
}
.checkout-coupon-toggle:hover { color: var(--blue-dark); text-decoration: underline; }
.checkout-coupon-form { margin-top: 10px; }
.checkout-coupon-row { display: flex; gap: 8px; }
.checkout-coupon-row .input-text {
  flex: 1;
  padding: 9px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  outline: none;
  transition: border-color var(--tr);
}
.checkout-coupon-row .input-text:focus { border-color: var(--primary); }

/* ============================================================
   NEWSLETTER FORM (improved)
   ============================================================ */
.newsletter-form {
  display: flex;
  gap: 12px;
  background: rgba(255,255,255,.1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-lg);
  padding: 8px 8px 8px 20px;
  flex-wrap: wrap;
}
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 15px;
  outline: none;
  padding: 10px 0;
}
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,.55); }
.newsletter-form .btn { flex-shrink: 0; }

/* ============================================================
   PAYMENT BOX LIVE STATE (when picked)
   ============================================================ */
body.payment-pickup-store #payment ul.payment_methods li {
  border-color: var(--border);
}
body.payment-pickup-store #payment ul.payment_methods li:has(input[value="gtech_pickup_store"]:checked) {
  border-color: var(--primary);
  background: var(--blue-pale);
}

/* ============================================================
   IMPROVED PAYMENT METHOD BOX (graceful fallback for :has)
   ============================================================ */
#payment ul.payment_methods li.payment-checked,
#payment ul.payment_methods li input[type="radio"]:checked + label {
  background: var(--blue-pale);
}

/* ============================================================
   ACCESSIBILITY — Focus states
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible,
.gtech-btn:focus-visible,
button.search-tag:focus-visible {
  outline: 3px solid rgba(0,87,184,.4);
  outline-offset: 2px;
}
a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

/* ============================================================
   PRINT STYLES (invoice friendly)
   ============================================================ */
@media print {
  .site-header, .site-footer, .ai-chat-btn, .ai-chat-panel,
  #back-to-top, .toast-container, #gtech-cookie-banner,
  .header-topbar, .header-nav, .cookie-inner { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .gtech-container { max-width: 100%; padding: 0; }
}

/* ============================================================
   ENHANCED RESPONSIVE — Smaller breakpoint refinements
   ============================================================ */
@media (max-width: 1200px) {
  .header-main-inner { gap: 16px; }
  .header-search-form input { font-size: 13px; }
}

@media (max-width: 1024px) {
  .header-action-btn span:not(.cart-count):not(.wishlist-count):not(.header-action-badge) {
    display: none; /* hide labels, keep icons */
  }
  .header-action-btn svg { width: 24px; height: 24px; }
  .gtech-container { padding: 0 20px; }
}

@media (max-width: 768px) {
  .gtech-container { padding: 0 16px; }
  .cart-item-row {
    grid-template-columns: 64px 1fr;
    gap: 12px;
  }
  .cart-item-row > div:nth-child(3),
  .cart-item-row > div:nth-child(4),
  .cart-item-row > div:nth-child(5) {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px dashed var(--border-light);
  }
  .cart-actions-row {
    flex-direction: column;
    align-items: stretch;
  }
  .cart-actions-row .btn { width: 100%; }
  .footer-grid { gap: 24px; }
  .testimonials-grid { gap: 16px; }
  .features-inner { grid-template-columns: 1fr 1fr; }
  .newsletter-form {
    flex-direction: column;
    padding: 12px;
    border-radius: var(--radius-md);
  }
  .newsletter-form input[type="email"] {
    width: 100%;
    background: rgba(255,255,255,.15);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
  }
  .newsletter-form .btn { width: 100%; justify-content: center; }
  .pickup-store-row { flex-direction: column; gap: 4px; }
  .pickup-store-row .pickup-row-icon { display: none; }
  .checkout-coupon-row { flex-direction: column; }
  .checkout-coupon-row .btn { width: 100%; }
  .ai-chat-panel { max-height: 75vh; bottom: 90px; }
  .ai-chat-btn { width: 54px; height: 54px; bottom: 20px; right: 20px; font-size: 22px; }
  #back-to-top { bottom: 84px; right: 20px; }
  .header-actions { gap: 4px; }
  .header-action-btn { padding: 6px 8px; }
  .hero-stats { gap: 12px; }
  .hero-stat-value { font-size: 22px; }
  .hero-stat-label { font-size: 11px; }
  .page-hero { padding: 36px 0 28px; }
  .gtech-toast { max-width: calc(100vw - 32px); font-size: 13px; }
  .toast-container { bottom: 88px; left: 16px; right: 16px; }
}

@media (max-width: 480px) {
  body { font-size: 14px; }
  .btn, .gtech-btn { padding: 10px 18px; font-size: 14px; }
  .btn-lg { padding: 14px 24px; font-size: 15px; }
  .hero-section { padding: 36px 0 28px; }
  .hero-title { line-height: 1.2; }
  .hero-stats > div { flex: 1; min-width: 80px; }
  .section-pad { padding: 36px 0; }
  .section-header { margin-bottom: 28px; }
  .features-inner { grid-template-columns: 1fr; }
  .pickup-confirmation-card { padding: 18px; }
  .pickup-confirmation-icon { font-size: 44px; }
  .pickup-confirmation-title { font-size: 22px; }
  .product-card .product-info { padding: 12px; }
  .product-name { font-size: 13.5px; }
  .product-price { font-size: 16px; }
  .header-search-form { display: none; } /* mobile uses overlay */
  .header-search { display: none; }
}

/* ============================================================
   SMOOTHER ANIMATIONS — Respect reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   TOAST refinements (in case showToast.span used)
   ============================================================ */
.gtech-toast .toast-msg { flex: 1; }

/* ============================================================
   SINGLE PRODUCT — refinements (2.2)
   ============================================================ */
.single-product-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.single-product-rating-row .rating-stars { color: #FFA000; font-size: 16px; letter-spacing: -1px; }
.single-product-rating-row .rating-meta  { font-size: 14px; color: var(--text-muted); }
.single-product-rating-row .rating-link  { font-size: 13px; color: var(--primary); }

.single-stock-row { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.single-stock-dot { width: 9px; height: 9px; background: var(--green); border-radius: 50%; display: inline-block; }
.single-stock-text { font-size: 14px; font-weight: 600; color: var(--green); }
.single-stock-urgent { color: var(--accent); }
.single-stock-out { font-size: 14px; font-weight: 600; color: #E53935; margin-bottom: 16px; }

.product-share-row { display: flex; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-light); flex-wrap: wrap; }
.product-share-label { font-size: 13px; color: var(--text-muted); font-weight: 600; align-self: center; }
.product-share-wa { color: #25D366 !important; border-color: #25D366 !important; }
.product-share-fb { color: #1877F2 !important; border-color: #1877F2 !important; }

.single-product-tabs-wrap { margin-top: 60px; }
.related-products-section { margin-top: 60px; }
.related-products-title { font-size: 24px; font-family: var(--font-head); font-weight: 700; margin-bottom: 24px; }

/* ============================================================
   SINGLE PRODUCT WISHLIST BUTTON
   ============================================================ */
.single-wishlist-btn {
  width: 100%;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.single-wishlist-btn.in-wishlist {
  background: #FFF0F0;
  color: #E53935;
  border-color: #E53935;
}

/* ============================================================
   FOOTER NEWSLETTER FORM
   ============================================================ */
.footer-newsletter-wrap { margin-top: 24px; }
.footer-newsletter-desc {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  margin-bottom: 12px;
}
.footer-newsletter-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-newsletter-form input[type="email"] {
  flex: 1;
  min-width: 160px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: border-color var(--tr), background var(--tr);
}
.footer-newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,.4); }
.footer-newsletter-form input[type="email"]:focus {
  border-color: var(--green);
  background: rgba(255,255,255,.12);
}

/* ============================================================
   CART SUMMARY — totals link with pickup state
   ============================================================ */
body.payment-pickup-store .cart-summary-row#checkout-shipping-row,
body.payment-pickup-store #checkout-shipping-row { color: var(--green-dark); font-weight: 600; }

/* ============================================================
   IMPROVED PRODUCT CARD ACCESSIBILITY
   ============================================================ */
.product-card { position: relative; }
.product-card .product-quickview { font-size: 13px; font-weight: 700; }
.product-card a { color: inherit; }

/* ============================================================
   IMPROVED MOBILE NAV — Smooth dropdown
   ============================================================ */
@media (max-width: 768px) {
  .header-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s cubic-bezier(.4,0,.2,1);
    display: block !important;
    background: var(--white);
    border-top: 1px solid var(--border-light);
  }
  .header-nav.open {
    max-height: 70vh;
    overflow-y: auto;
  }
  #primary-menu .sub-menu {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 20px;
    border-left: 2px solid var(--blue-pale);
    margin: 4px 0 4px 20px;
  }
  .nav-promo-pill,
  .nav-solution-pill {
    margin: 8px 16px 12px;
    text-align: center;
    display: block;
  }
  .nav-solution-pill { margin-top: 0; }
}
