/*
Theme Name:  TonersUSA Child
Template:    storefront
Version:     2.0.1
Description: TonersUSA Precision Navy — WooCommerce child theme
Author:      TonersUSA
Text Domain: tonersusa-child
*/

/* ============================================================
   DESIGN TOKENS — Precision Navy
   ============================================================ */
:root {
  --navy:        #0B2A4A;
  --navy-dark:   #071D34;
  --navy-mid:    #0D3860;
  --blue:        #3B9EFF;
  --blue-light:  #EBF4FF;
  --blue-mid:    #C8DFFF;
  --white:       #FFFFFF;
  --off-white:   #F6F8FC;
  --gray-50:     #F2F5F9;
  --gray-100:    #E4EAF2;
  --gray-200:    #C8D5E5;
  --gray-400:    #8A9BB5;
  --gray-600:    #4E6180;
  --gray-800:    #1E2C3D;
  --success:     #1A8A4A;
  --success-bg:  #EBF7F0;
  --warning:     #B45309;
  --warning-bg:  #FEF3C7;
  --danger:      #CC2200;
  --danger-bg:   #FFF0EE;

  --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:   'JetBrains Mono', 'Fira Code', monospace;

  --radius-sm:   4px;
  --radius:      8px;
  --radius-lg:   12px;
  --radius-xl:   16px;

  --shadow-sm:   0 1px 3px rgba(11,42,74,.08), 0 1px 2px rgba(11,42,74,.05);
  --shadow-md:   0 4px 12px rgba(11,42,74,.10), 0 2px 4px rgba(11,42,74,.06);
  --shadow-lg:   0 10px 30px rgba(11,42,74,.12), 0 4px 8px rgba(11,42,74,.07);

  --transition:  .18s ease;
  --max-width:   1200px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--navy); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.875rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.0625rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5rem; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.text-muted   { color: var(--gray-400); }
.badge {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: .5px;
}
.badge-blue  { background: var(--blue-light); color: var(--navy); }
.badge-green { background: var(--success-bg); color: var(--success); }
.badge-warn  { background: var(--warning-bg); color: var(--warning); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  padding: 10px 22px; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer;
  transition: all var(--transition); line-height: 1; white-space: nowrap;
}
.btn-primary {
  background: var(--blue); color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover { background: #2a8ef0; border-color: #2a8ef0; color: var(--white); }

.btn-navy {
  background: var(--navy); color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: var(--white); }

.btn-outline {
  background: transparent; color: var(--navy);
  border-color: var(--gray-200);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }

.btn-sm { font-size: 12px; padding: 7px 14px; }
.btn-lg { font-size: 16px; padding: 13px 28px; }

/* WooCommerce button overrides */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--blue); color: var(--white);
  font-weight: 600; border-radius: var(--radius);
  border: 2px solid var(--blue); transition: all var(--transition);
  font-family: var(--font-sans);
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: #2a8ef0; border-color: #2a8ef0; color: var(--white);
}
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background: var(--navy); border-color: var(--navy);
}
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  background: var(--navy-dark); border-color: var(--navy-dark);
}

/* ============================================================
   FORMS
   ============================================================ */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="password"],
select,
textarea {
  width: 100%; padding: 10px 14px;
  font-family: var(--font-sans); font-size: 14px;
  color: var(--gray-800);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,158,255,.15);
}
label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--gray-600); margin-bottom: 5px;
}

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.site-announcement {
  background: var(--navy-dark);
  padding: 8px 24px;
  text-align: center;
}
.site-announcement p {
  font-size: 12.5px; color: rgba(255,255,255,.85);
  margin: 0; display: flex; align-items: center;
  justify-content: center; gap: 20px; flex-wrap: wrap;
}
.site-announcement strong { color: var(--blue); }
.site-announcement span { display: flex; align-items: center; gap: 5px; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  background: var(--navy);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 12px rgba(7,29,52,.25);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 16px;
}

.site-logo a { display: flex; align-items: center; }
.site-logo img { height: 46px !important; width: auto !important; }

.header-search {
  flex: 1;
  max-width: 380px;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 0 12px;
  transition: all var(--transition);
}
.header-search:focus-within {
  background: rgba(255,255,255,.18);
  border-color: var(--blue);
}
.header-search input {
  background: transparent; border: none; outline: none;
  color: white; font-size: 13px; padding: 9px 0;
  width: 100%; box-shadow: none;
}
.header-search input::placeholder { color: rgba(255,255,255,.5); }
.header-search svg { color: rgba(255,255,255,.5); flex-shrink: 0; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  list-style: none;
  padding: 0;
}
.primary-nav > li { position: relative; }
.primary-nav > li > a {
  display: flex; align-items: center; gap: 4px;
  color: rgba(255,255,255,.75);
  font-size: 13px; font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
.primary-nav > li > a:hover,
.primary-nav > li.current-menu-item > a {
  color: var(--white);
  background: rgba(255,255,255,.1);
}
.primary-nav > li.current-menu-item > a {
  border-bottom: 2px solid var(--blue);
  border-radius: 0;
}

/* Dropdown */
.primary-nav .sub-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); min-width: 240px;
  padding: 8px; list-style: none; z-index: 100;
  border: 1px solid var(--gray-100);
}
.primary-nav > li:hover .sub-menu { display: block; }
.primary-nav .sub-menu li a {
  display: block; padding: 8px 12px;
  color: var(--gray-800); font-size: 13px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.primary-nav .sub-menu li a:hover {
  background: var(--off-white); color: var(--navy);
}

.header-actions {
  display: flex; align-items: center; gap: 8px;
}
.header-cart-link {
  display: flex; align-items: center; gap: 7px;
  color: rgba(255,255,255,.8);
  font-size: 13px; font-weight: 500;
  padding: 8px 12px; border-radius: var(--radius);
  border: 1.5px solid rgba(255,255,255,.2);
  transition: all var(--transition);
}
.header-cart-link:hover { color: white; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.08); }
.cart-count {
  background: var(--blue); color: white;
  font-size: 11px; font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 100px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
.header-account-link {
  background: var(--blue); color: white;
  font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: var(--radius);
  transition: all var(--transition);
}
.header-account-link:hover { background: #2a8ef0; color: white; }

/* Mobile nav toggle */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  color: white; padding: 6px;
}

/* ============================================================
   PAGE HERO / BREADCRUMB AREA
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 40px 0 36px;
}
.page-hero h1 { color: white; margin-bottom: 6px; }
.page-hero .breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: rgba(255,255,255,.55);
  list-style: none; padding: 0; margin-bottom: 12px;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,.6); }
.page-hero .breadcrumb a:hover { color: white; }
.page-hero .breadcrumb .sep { color: rgba(255,255,255,.3); }
.page-hero-sub { color: rgba(255,255,255,.65); font-size: 14px; margin-top: 4px; }

/* ============================================================
   HOMEPAGE HERO
   ============================================================ */
.home-hero {
  background: var(--navy);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  content: '';
  position: absolute; right: -100px; top: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,158,255,.08) 0%, transparent 70%);
  pointer-events: none;
}
.home-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto; padding: 0 24px;
}
.home-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--blue); font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 16px;
}
.home-hero-eyebrow::before {
  content: ''; width: 24px; height: 2px; background: var(--blue);
}
.home-hero h1 {
  color: white; font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800; letter-spacing: -.5px;
  max-width: 600px; margin-bottom: 16px;
}
.home-hero-sub {
  color: rgba(255,255,255,.65); font-size: 16px;
  max-width: 480px; margin-bottom: 32px; line-height: 1.65;
}
.home-hero-search {
  display: flex; background: white; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden;
  max-width: 560px; margin-bottom: 28px;
}
.home-hero-search input {
  border: none; outline: none; padding: 14px 18px;
  font-size: 14px; flex: 1; background: transparent;
  color: var(--gray-800); box-shadow: none; width: auto;
}
.home-hero-search button {
  background: var(--blue); color: white; border: none;
  padding: 14px 24px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: background var(--transition);
  white-space: nowrap; font-family: var(--font-sans);
}
.home-hero-search button:hover { background: #2a8ef0; }
.home-hero-trust {
  display: flex; gap: 24px; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 7px;
  color: rgba(255,255,255,.6); font-size: 13px;
}
.trust-dot {
  width: 6px; height: 6px; background: var(--blue);
  border-radius: 50%; flex-shrink: 0;
}

/* ============================================================
   BRAND BAR (homepage)
   ============================================================ */
.brand-filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  padding: 14px 0;
}
.brand-filter-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.brand-filter-label {
  font-size: 11px; font-weight: 700; color: var(--gray-400);
  letter-spacing: 1px; text-transform: uppercase;
  white-space: nowrap; flex-shrink: 0;
}
.brand-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.brand-pill {
  background: var(--gray-50); color: var(--gray-800);
  font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: 100px;
  border: 1.5px solid var(--gray-100);
  transition: all var(--transition); cursor: pointer;
  text-decoration: none;
}
.brand-pill:hover, .brand-pill.active {
  background: var(--navy); color: white;
  border-color: var(--navy);
}

/* ============================================================
   HOMEPAGE FEATURED PRODUCTS
   ============================================================ */
.section {
  padding: 56px 0;
}
.section-alt { background: var(--off-white); }

.section-header {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px; gap: 16px;
}
.section-header h2 { margin-bottom: 4px; }
.section-header p { color: var(--gray-400); font-size: 14px; margin: 0; }

/* Product cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.product-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1.5px solid var(--gray-100);
  overflow: hidden; transition: all var(--transition);
  display: flex; flex-direction: column;
}
.product-card:hover {
  border-color: var(--blue-mid);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.product-card-img {
  height: 100px; background: var(--gray-50);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--gray-100); font-size: 36px;
}
.product-card-img img { max-height: 80px; max-width: 80%; object-fit: contain; }
.product-card-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; }
.product-card-brand {
  font-size: 10px; font-weight: 800; color: var(--blue);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px;
}
.product-card-name {
  font-size: 13.5px; font-weight: 600; color: var(--navy);
  line-height: 1.35; margin-bottom: 4px; flex: 1;
}
.product-card-sku { font-size: 11px; color: var(--gray-400); margin-bottom: 12px; }
.product-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--gray-50); padding-top: 10px; margin-top: auto;
}
.product-card-price { font-size: 16px; font-weight: 800; color: var(--navy); }
.product-card-atc {
  background: var(--navy); color: white;
  font-size: 11px; font-weight: 700;
  padding: 6px 12px; border-radius: var(--radius-sm);
  border: none; cursor: pointer; transition: background var(--transition);
  font-family: var(--font-sans);
}
.product-card-atc:hover { background: var(--blue); }

/* Stock indicators */
.stock-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 100px;
}
.stock-in    { background: var(--success-bg); color: var(--success); }
.stock-order { background: var(--warning-bg); color: var(--warning); }
.stock-out   { background: var(--gray-50); color: var(--gray-400); }

/* ============================================================
   BRANDS PAGE
   ============================================================ */
.brands-search-section {
  background: var(--off-white);
  border-bottom: 1px solid var(--gray-100);
  padding: 24px 0;
}
.brands-search-inner {
  max-width: 520px;
  margin: 0 auto; padding: 0 24px;
}
.brands-search-wrap {
  display: flex; background: white; border-radius: var(--radius);
  border: 1.5px solid var(--gray-200); overflow: hidden;
}
.brands-search-wrap input {
  border: none; outline: none; padding: 12px 16px;
  font-size: 14px; flex: 1; box-shadow: none;
  background: transparent;
}
.brands-search-wrap button {
  background: var(--navy); color: white; border: none;
  padding: 12px 20px; cursor: pointer; font-family: var(--font-sans);
  font-weight: 600; font-size: 13px; transition: background var(--transition);
}
.brands-search-wrap button:hover { background: var(--blue); }

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  padding: 40px 0;
}
.brand-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1.5px solid var(--gray-100);
  padding: 24px 20px; text-align: center;
  transition: all var(--transition);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 120px; text-decoration: none;
}
.brand-card:hover {
  border-color: var(--blue-mid);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.brand-card img {
  max-height: 48px; max-width: 120px;
  object-fit: contain; margin: 0 auto 10px;
  filter: grayscale(30%);
  transition: filter var(--transition);
}
.brand-card:hover img { filter: grayscale(0%); }
.brand-card-name {
  font-size: 12px; font-weight: 600; color: var(--gray-600);
  transition: color var(--transition);
}
.brand-card:hover .brand-card-name { color: var(--navy); }
.brand-card-count {
  font-size: 11px; color: var(--gray-400); margin-top: 3px;
}

/* ============================================================
   PRODUCT CATEGORY PAGE (Inventory Table)
   ============================================================ */
.category-header {
  background: var(--navy);
  padding: 36px 0 32px;
}
.category-header-inner {
  max-width: var(--max-width);
  margin: 0 auto; padding: 0 24px;
  display: flex; align-items: flex-start; gap: 20px;
}
.category-brand-logo {
  background: white; border-radius: var(--radius);
  padding: 12px 16px; flex-shrink: 0;
}
.category-brand-logo img { height: 44px; width: auto; object-fit: contain; }
.category-header h1 { color: white; margin-bottom: 6px; }
.category-header-meta { color: rgba(255,255,255,.6); font-size: 14px; }
.category-header-meta strong { color: var(--blue); }

.category-toolbar {
  background: var(--off-white);
  border-bottom: 1px solid var(--gray-100);
  padding: 12px 0;
}
.category-toolbar-inner {
  max-width: var(--max-width);
  margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.toolbar-search {
  display: flex; background: white;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius);
  overflow: hidden; flex: 1; max-width: 360px;
}
.toolbar-search input {
  border: none; outline: none; padding: 8px 12px;
  font-size: 13px; flex: 1; box-shadow: none; background: transparent;
}
.toolbar-search button {
  background: var(--navy); color: white; border: none;
  padding: 8px 14px; cursor: pointer; font-family: var(--font-sans);
  font-size: 12px; font-weight: 600;
}
.filter-pills { display: flex; gap: 6px; margin-left: auto; }
.filter-pill {
  font-size: 12px; font-weight: 600; padding: 5px 12px;
  border-radius: 100px; border: 1.5px solid var(--gray-200);
  background: white; color: var(--gray-600); cursor: pointer;
  transition: all var(--transition);
}
.filter-pill.active, .filter-pill:hover {
  background: var(--navy); color: white; border-color: var(--navy);
}
.result-count {
  font-size: 12px; color: var(--gray-400); margin-left: auto; white-space: nowrap;
}

/* Inventory table */
.inventory-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}
.inventory-table {
  width: 100%; border-collapse: collapse;
  font-size: 13.5px; background: white;
}
.inventory-table thead { background: var(--navy); }
.inventory-table thead th {
  padding: 13px 16px; text-align: left;
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,.8);
  letter-spacing: .8px; text-transform: uppercase;
  border: none;
}
.inventory-table thead th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.inventory-table thead th:last-child  { border-radius: 0 var(--radius-sm) 0 0; text-align: right; }
.inventory-table thead th.col-num { text-align: center; }

.inventory-table tbody tr {
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--transition);
}
.inventory-table tbody tr:last-child { border-bottom: none; }
.inventory-table tbody tr:hover { background: var(--blue-light); }

.inventory-table td {
  padding: 12px 16px; vertical-align: middle; border: none;
}
.inventory-table td.col-num { text-align: center; }
.inventory-table td:last-child { text-align: right; }

.inv-product-link {
  color: var(--navy); font-weight: 600;
  font-size: 13.5px; line-height: 1.35;
  transition: color var(--transition);
}
.inv-product-link:hover { color: var(--blue); }
.inv-sku {
  display: block; font-size: 11px; color: var(--gray-400);
  font-family: var(--font-mono); margin-top: 2px;
}

.stock-qty {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 24px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 700;
}
.stock-qty.has { background: var(--success-bg); color: var(--success); }
.stock-qty.none { background: var(--gray-50); color: var(--gray-400); }
.stock-qty.order { background: var(--warning-bg); color: var(--warning); }

.inv-price {
  font-size: 15px; font-weight: 800; color: var(--navy);
}

.inv-atc {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--navy); color: white;
  font-size: 11px; font-weight: 700;
  padding: 6px 12px; border-radius: var(--radius-sm);
  border: none; cursor: pointer;
  transition: all var(--transition); font-family: var(--font-sans);
}
.inv-atc:hover { background: var(--blue); }
.inv-atc-row { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }

.inventory-table-wrap + .woocommerce-pagination { margin-top: 24px; }

/* Pagination */
.woocommerce-pagination ul, .pagination { 
  display: flex; list-style: none; padding: 0; gap: 4px; margin-top: 24px;
}
.woocommerce-pagination li span,
.woocommerce-pagination li a,
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius);
  font-size: 13px; font-weight: 600; color: var(--gray-600);
  border: 1.5px solid var(--gray-200); transition: all var(--transition);
  text-decoration: none;
}
.woocommerce-pagination li span.current,
.woocommerce-pagination li a:hover,
.pagination .current, .pagination a:hover {
  background: var(--navy); color: white; border-color: var(--navy);
}

/* ============================================================
   SINGLE PRODUCT
   ============================================================ */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 48px 0;
}
.product-image-panel {
  background: var(--gray-50); border-radius: var(--radius-xl);
  display: flex; align-items: center; justify-content: center;
  min-height: 320px; border: 1.5px solid var(--gray-100); padding: 32px;
}
.product-image-panel img { max-height: 260px; object-fit: contain; }

.product-detail-panel {}
.product-detail-brand {
  font-size: 11px; font-weight: 800; color: var(--blue);
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px;
}
.product-detail-panel h1 {
  font-size: clamp(1.4rem, 3vw, 1.875rem); margin-bottom: 8px;
}
.product-detail-sku {
  font-size: 12px; color: var(--gray-400);
  font-family: var(--font-mono); margin-bottom: 16px;
}
.product-detail-price {
  font-size: 2rem; font-weight: 800; color: var(--navy); margin-bottom: 20px;
}
.product-stock-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.product-atc-row {
  display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap;
}
.product-qty-wrap {
  display: flex; align-items: center; gap: 0;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius);
  overflow: hidden;
}
.product-qty-wrap button {
  background: var(--gray-50); border: none; width: 36px; height: 44px;
  font-size: 18px; cursor: pointer; color: var(--gray-600);
  transition: background var(--transition); font-family: var(--font-sans);
}
.product-qty-wrap button:hover { background: var(--gray-100); }
.product-qty-wrap input {
  width: 56px; text-align: center; border: none; border-left: 1.5px solid var(--gray-200);
  border-right: 1.5px solid var(--gray-200); border-radius: 0; height: 44px;
  font-weight: 700; padding: 0; box-shadow: none;
}

.product-meta-table {
  width: 100%; border-collapse: collapse; margin-top: 24px;
  border: 1.5px solid var(--gray-100); border-radius: var(--radius); overflow: hidden;
}
.product-meta-table tr { border-bottom: 1px solid var(--gray-100); }
.product-meta-table tr:last-child { border-bottom: none; }
.product-meta-table td { padding: 10px 14px; font-size: 13px; }
.product-meta-table td:first-child {
  font-weight: 700; color: var(--gray-600); width: 40%;
  background: var(--gray-50);
}

/* ============================================================
   CART
   ============================================================ */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  padding: 40px 0;
  align-items: start;
}

.cart-table-wrap {
  background: white; border-radius: var(--radius-lg);
  border: 1.5px solid var(--gray-100); overflow: hidden;
}
.cart-table {
  width: 100%; border-collapse: collapse;
}
.cart-table thead { background: var(--navy); display: table-header-group; }
.cart-table thead th {
  padding: 12px 16px; text-align: left;
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,.75);
  letter-spacing: .8px; text-transform: uppercase; border: none;
}
.cart-table thead th:last-child { text-align: right; }
.cart-table tbody tr {
  border-bottom: 1px solid var(--gray-100); transition: background var(--transition);
}
.cart-table tbody tr:last-child { border-bottom: none; }
.cart-table tbody tr:hover { background: var(--blue-light); }
.cart-table td { padding: 14px 16px; border: none; vertical-align: middle; }
.cart-table td:last-child { text-align: right; }

.cart-product-cell { display: flex; align-items: center; gap: 14px; }
.cart-product-img {
  width: 60px; height: 60px; flex-shrink: 0;
  background: var(--gray-50); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gray-100);
}
.cart-product-img img { max-width: 48px; max-height: 48px; object-fit: contain; }
.cart-product-name { font-weight: 600; color: var(--navy); font-size: 13.5px; }
.cart-product-sku  { font-size: 11px; color: var(--gray-400); font-family: var(--font-mono); }

.cart-qty-wrap {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  overflow: hidden;
}
.cart-qty-wrap button {
  width: 28px; height: 28px; background: var(--gray-50);
  border: none; cursor: pointer; font-size: 15px; color: var(--gray-600);
  transition: background var(--transition); font-family: var(--font-sans);
}
.cart-qty-wrap button:hover { background: var(--gray-100); }
.cart-qty-wrap input {
  width: 40px; text-align: center; border: none;
  border-left: 1.5px solid var(--gray-200);
  border-right: 1.5px solid var(--gray-200);
  border-radius: 0; height: 28px; padding: 0;
  font-size: 13px; font-weight: 700; box-shadow: none;
}
.cart-remove {
  color: var(--gray-400); font-size: 18px; line-height: 1;
  transition: color var(--transition); cursor: pointer;
  background: none; border: none; padding: 4px;
}
.cart-remove:hover { color: var(--danger); }

.cart-row-price { font-weight: 700; font-size: 14px; color: var(--navy); }
.cart-row-subtotal { font-weight: 800; font-size: 15px; color: var(--navy); }

.cart-summary {
  background: white; border-radius: var(--radius-lg);
  border: 1.5px solid var(--gray-100); overflow: hidden;
  position: sticky; top: 88px;
}
.cart-summary-head {
  background: var(--navy); padding: 14px 20px;
}
.cart-summary-head h3 { color: white; font-size: 15px; margin: 0; }
.cart-summary-body { padding: 20px; }
.cart-summary-line {
  display: flex; justify-content: space-between;
  font-size: 14px; color: var(--gray-600);
  padding: 7px 0; border-bottom: 1px solid var(--gray-50);
}
.cart-summary-line:last-of-type { border-bottom: none; }
.cart-summary-total {
  display: flex; justify-content: space-between;
  padding: 14px 0 0; font-size: 18px; font-weight: 800; color: var(--navy);
  border-top: 2px solid var(--gray-100); margin-top: 4px;
}
.cart-checkout-btn {
  display: block; width: 100%; text-align: center;
  background: var(--navy); color: white; font-weight: 700; font-size: 15px;
  padding: 14px 20px; border-radius: var(--radius); border: none;
  cursor: pointer; margin-top: 16px; transition: background var(--transition);
  font-family: var(--font-sans);
}
.cart-checkout-btn:hover { background: var(--blue); }

.cart-empty-state {
  text-align: center; padding: 60px 24px;
}
.cart-empty-icon { font-size: 56px; margin-bottom: 16px; }
.cart-empty-state h2 { color: var(--navy); margin-bottom: 8px; }
.cart-empty-state p { color: var(--gray-400); margin-bottom: 24px; }

/* Coupon row */
.cart-coupon { 
  padding: 14px 20px; border-top: 1px solid var(--gray-100);
  display: flex; gap: 8px;
}
.cart-coupon input { flex: 1; font-size: 13px; padding: 8px 12px; }
.cart-coupon button {
  background: var(--gray-100); color: var(--gray-800);
  font-size: 12px; font-weight: 600;
  padding: 8px 14px; border: none; border-radius: var(--radius-sm);
  cursor: pointer; font-family: var(--font-sans);
}
.cart-coupon button:hover { background: var(--gray-200); }

/* ============================================================
   CHECKOUT
   ============================================================ */
.checkout-layout {
  display: grid; grid-template-columns: 1fr 360px;
  gap: 28px; padding: 40px 0; align-items: start;
}
.checkout-section {
  background: white; border-radius: var(--radius-lg);
  border: 1.5px solid var(--gray-100); overflow: hidden; margin-bottom: 20px;
}
.checkout-section-head {
  background: var(--navy); padding: 14px 20px;
  display: flex; align-items: center; gap: 10px;
}
.checkout-section-head h3 { color: white; font-size: 14px; margin: 0; font-weight: 600; }
.checkout-section-step {
  width: 24px; height: 24px; background: var(--blue);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: white; flex-shrink: 0;
}
.checkout-section-body { padding: 20px; }
.checkout-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.checkout-field { margin-bottom: 14px; }

.order-review-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.order-review-table td { padding: 10px 0; border-bottom: 1px solid var(--gray-100); font-size: 13px; }
.order-review-table td:last-child { text-align: right; font-weight: 600; }
.order-review-table tr:last-child td { border-bottom: none; }
.order-review-total td { font-size: 16px; font-weight: 800; color: var(--navy); padding-top: 14px; }

.place-order-btn {
  display: block; width: 100%; padding: 15px 20px;
  background: var(--navy); color: white; font-size: 16px; font-weight: 700;
  text-align: center; border: none; border-radius: var(--radius);
  cursor: pointer; transition: all var(--transition); font-family: var(--font-sans);
}
.place-order-btn:hover { background: var(--blue); }

/* ============================================================
   TRUST STRIP (below hero / above footer)
   ============================================================ */
.trust-strip {
  background: var(--navy-dark);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 20px 0;
}
.trust-strip-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.trust-strip-item {
  display: flex; align-items: center; gap: 12px;
}
.trust-strip-icon {
  width: 40px; height: 40px; border-radius: var(--radius);
  background: rgba(59,158,255,.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); flex-shrink: 0; font-size: 18px;
}
.trust-strip-text strong {
  display: block; font-size: 13px; font-weight: 700; color: white; line-height: 1.2;
}
.trust-strip-text span {
  font-size: 12px; color: rgba(255,255,255,.5);
}

/* ============================================================
   GENERIC PAGE (About, FAQ, Drop Ship, Contact)
   ============================================================ */
.page-content {
  max-width: 800px; margin: 0 auto; padding: 48px 24px;
}
.page-content h2 { margin: 32px 0 14px; }
.page-content h3 { margin: 24px 0 10px; color: var(--navy); }

.faq-item {
  border-bottom: 1px solid var(--gray-100); padding: 18px 0;
}
.faq-item:first-child { padding-top: 0; }
.faq-q {
  font-weight: 700; color: var(--navy); font-size: 15px;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; gap: 12px;
}
.faq-q svg { flex-shrink: 0; color: var(--blue); transition: transform var(--transition); }
.faq-a { font-size: 14px; color: var(--gray-600); margin-top: 10px; line-height: 1.7; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }

.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 32px;
}
.contact-card {
  background: var(--off-white); border-radius: var(--radius-lg);
  border: 1.5px solid var(--gray-100); padding: 24px;
}
.contact-card-icon { font-size: 28px; margin-bottom: 12px; }
.contact-card h3 { margin-bottom: 6px; }

/* Drop ship highlight boxes */
.highlight-box {
  background: var(--blue-light); border: 1.5px solid var(--blue-mid);
  border-radius: var(--radius-lg); padding: 24px; margin: 20px 0;
}
.highlight-box h3 { color: var(--navy); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-dark);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 48px 0 0;
}
.footer-grid {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand img { height: 32px; width: auto; margin-bottom: 14px; filter: brightness(0) invert(1) opacity(.8); }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,.45); line-height: 1.7; max-width: 260px; }
.footer-col h4 { color: rgba(255,255,255,.85); font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,.45); font-size: 13px; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--blue); }
.footer-bottom {
  max-width: var(--max-width); margin: 0 auto; padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(255,255,255,.06); margin-top: 40px;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,.3); margin: 0; }
.footer-bottom a { color: rgba(255,255,255,.4); font-size: 12px; }
.footer-bottom a:hover { color: var(--blue); }

/* ============================================================
   WOOCOMMERCE — GLOBAL OVERRIDES
   ============================================================ */
.woocommerce .woocommerce-error,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message {
  border-radius: var(--radius);
  border-top-width: 3px;
  font-size: 14px;
}
.woocommerce .woocommerce-message { border-top-color: var(--success); }
.woocommerce .woocommerce-error   { border-top-color: var(--danger); }
.woocommerce .woocommerce-info    { border-top-color: var(--blue); }

.woocommerce-notices-wrapper { margin-bottom: 20px; }

/* Account pages */
.woocommerce-account .woocommerce-MyAccount-navigation {
  background: var(--navy); border-radius: var(--radius-lg); padding: 12px; margin-bottom: 0;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: block; padding: 10px 14px; color: rgba(255,255,255,.7);
  font-size: 13px; border-radius: var(--radius-sm); transition: all var(--transition);
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
  background: rgba(255,255,255,.1); color: white;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-layout { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header-inner { gap: 10px; }
  .header-search { display: none; }
  .primary-nav { display: none; }
  .nav-toggle { display: block; }
  .trust-strip-inner { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .brands-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .section-header { flex-direction: column; align-items: flex-start; }
  .contact-grid { grid-template-columns: 1fr; }
  .checkout-row { grid-template-columns: 1fr; }
  .category-header-inner { flex-direction: column; }
}

@media (max-width: 480px) {
  .home-hero { padding: 44px 0 40px; }
  .trust-strip-inner { grid-template-columns: 1fr; }
  .filter-pills { display: none; }
  .inventory-table td, .inventory-table th { padding: 10px 10px; }
  .section { padding: 36px 0; }
}

/* ============================================================
   GOOGLE FONTS IMPORT
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');


/* ============================================================
   HEADER — REDESIGNED (replaces old header block)
   ============================================================ */
.site-header {
  background: var(--navy);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 16px rgba(7,29,52,.3);
}

/* Row 1 — Logo / Nav / Actions */
.header-row-1 { border-bottom: 1px solid rgba(255,255,255,.07); }
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  height: 68px;
  gap: 32px;
}

/* Logo */
.site-logo a { display: flex; align-items: center; }
.site-logo img { height: 46px; width: auto; }

/* Primary Nav */
.primary-nav-wrap { flex: 1; }
.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0; margin: 0;
}
.primary-nav li { position: relative; }
.primary-nav li a {
  display: flex; align-items: center;
  color: rgba(255,255,255,.72);
  font-size: 13.5px; font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: .1px;
}
.primary-nav li a:hover { color: white; background: rgba(255,255,255,.09); }
.primary-nav li.current-menu-item a {
  color: white; font-weight: 600;
  background: rgba(59,158,255,.15);
  border-bottom: 2px solid var(--blue);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

/* Dropdown */
.primary-nav .sub-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: white; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); min-width: 220px;
  padding: 6px; list-style: none; z-index: 100;
  border: 1px solid var(--gray-100);
}
.primary-nav li:hover .sub-menu { display: block; }
.primary-nav .sub-menu li a {
  display: block; padding: 8px 12px;
  color: var(--gray-800); font-size: 13px;
  border-radius: var(--radius-sm);
  background: none; border: none;
}
.primary-nav .sub-menu li a:hover { background: var(--off-white); color: var(--navy); }

/* Actions */
.header-actions {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.header-cart-link {
  display: flex; align-items: center; gap: 7px;
  color: rgba(255,255,255,.8);
  font-size: 13.5px; font-weight: 500;
  padding: 8px 14px; border-radius: var(--radius);
  border: 1.5px solid rgba(255,255,255,.18);
  transition: all var(--transition); text-decoration: none;
}
.header-cart-link:hover { color: white; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.07); }
.cart-count {
  background: var(--blue); color: white;
  font-size: 11px; font-weight: 700;
  min-width: 20px; height: 20px;
  border-radius: 100px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 5px;
}
.header-account-link {
  display: flex; align-items: center; gap: 7px;
  background: var(--blue); color: white;
  font-size: 13.5px; font-weight: 600;
  padding: 9px 18px; border-radius: var(--radius);
  transition: all var(--transition); text-decoration: none;
  border: 1.5px solid var(--blue);
}
.header-account-link:hover { background: #2a8ef0; border-color: #2a8ef0; color: white; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  color: white; padding: 6px;
}

/* Row 2 — Full-width Search */
.header-row-2 {
  background: var(--navy-dark);
  border-bottom: 1px solid rgba(255,255,255,.05);
  padding: 12px 0 10px;
}
.header-search-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}
.header-search-full { margin-bottom: 9px; }
.header-search-inner {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 0 0 0 14px;
  transition: all var(--transition);
}
.header-search-inner:focus-within {
  background: rgba(255,255,255,.13);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,158,255,.12);
}
.search-icon { color: rgba(255,255,255,.4); flex-shrink: 0; }
.header-search-inner input {
  flex: 1; border: none; outline: none; box-shadow: none;
  background: transparent; color: white;
  font-size: 14px; padding: 11px 12px;
  font-family: var(--font-sans);
}
.header-search-inner input::placeholder { color: rgba(255,255,255,.38); }
.search-submit {
  background: var(--blue); color: white;
  border: none; padding: 0 22px;
  font-size: 13.5px; font-weight: 600;
  height: 44px; cursor: pointer;
  border-radius: 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0;
  transition: background var(--transition);
  font-family: var(--font-sans);
  flex-shrink: 0;
}
.search-submit:hover { background: #2a8ef0; }

/* Quick brand links */
.header-brand-links {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.brand-links-label {
  font-size: 11.5px; color: rgba(255,255,255,.35);
  font-weight: 600; letter-spacing: .5px; margin-right: 4px;
  white-space: nowrap;
}
.header-brand-links a {
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,.5);
  padding: 3px 10px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,.1);
  transition: all var(--transition); text-decoration: none;
  white-space: nowrap;
}
.header-brand-links a:hover { color: white; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.07); }
.header-brand-links .brand-link-all { color: var(--blue); border-color: rgba(59,158,255,.3); }
.header-brand-links .brand-link-all:hover { background: rgba(59,158,255,.12); border-color: var(--blue); color: var(--blue); }

/* Mobile nav */
.mobile-nav { background: var(--navy-dark); border-top: 1px solid rgba(255,255,255,.06); }
.mobile-nav-list { list-style: none; padding: 10px 16px 14px; margin: 0; }
.mobile-nav-list li a {
  display: block; padding: 11px 14px;
  color: rgba(255,255,255,.75); font-size: 14px; font-weight: 500;
  border-radius: var(--radius-sm); text-decoration: none;
  transition: all var(--transition);
}
.mobile-nav-list li a:hover { color: white; background: rgba(255,255,255,.08); }

/* Responsive */
@media (max-width: 900px) {
  .primary-nav-wrap { display: none; }
  .nav-toggle { display: block; }
  .header-inner { gap: 16px; }
  .header-account-link span { display: none; }
}
@media (max-width: 600px) {
  .header-inner { padding: 0 16px; height: 58px; }
  .header-search-wrap { padding: 0 16px; }
  .header-brand-links { display: none; }
  .site-logo img { height: 32px; }
}

/* ── Gap & body fixes ── */
body { margin: 0 !important; padding-top: 0 !important; }
.site-header + * { margin-top: 0 !important; }
#page, .site, .storefront-full-width-content { padding-top: 0 !important; margin-top: 0 !important; }
.cart-table thead th { color: white !important; font-weight: 700; font-size: 12px; }
.site-logo img { height: 46px !important; }
