/*
Theme Name: Baahe Electronics Premier
Theme URI: https://baahe.org
Description: Premier Electronics Store for Ghana — Unified Ishtari-Style Design System
Author: Baahe
Version: 2.0.0
Text Domain: baahe-electronics
*/

/* ============================================================
   DESIGN TOKENS — Single source of truth for ALL pages
   ============================================================ */
:root {
  /* Brand Colors */
  --blue:          #0066CC;
  --blue-dark:     #0050A0;
  --blue-nav:      #0055AA;
  --orange:        #FF6B00;
  --orange-dark:   #E55A00;

  /* Neutrals */
  --dark:          #1a1a2e;
  --text:          #222222;
  --text-muted:    #666666;
  --border:        #e8e8e8;
  --bg-light:      #f5f7fa;
  --bg-sale:       #fff8f5;
  --white:         #ffffff;

  /* Product Card */
  --card-radius:   10px;
  --card-shadow:   0 2px 12px rgba(0,0,0,0.08);
  --card-shadow-h: 0 8px 28px rgba(0,0,0,0.14);

  /* Typography */
  --font:          -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-size-xs:  0.75rem;
  --font-size-sm:  0.85rem;
  --font-size-md:  0.95rem;
  --font-size-lg:  1.1rem;

  /* Spacing */
  --section-pad:   56px 0;
  --container-max: 1280px;
  --gap-grid:      16px;

  /* Transition */
  --t:             0.22s ease;
}

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

html { scroll-behavior: smooth; }

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

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.baahe-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.baahe-topbar {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  font-size: var(--font-size-xs);
  padding: 7px 0;
}
.baahe-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.baahe-topbar a {
  color: rgba(255,255,255,0.75);
  transition: color var(--t);
}
.baahe-topbar a:hover { color: var(--orange); }
.baahe-topbar-left, .baahe-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.baahe-topbar i { margin-right: 5px; color: var(--orange); }
.baahe-topbar-sep { opacity: 0.3; }

/* ============================================================
   HEADER — UNIFIED (same on every page)
   ============================================================ */
.baahe-site-header {
  background: var(--blue);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.baahe-header-main {
  padding: 14px 0;
}

.baahe-header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logo */
.baahe-logo a {
  display: block;
  flex-shrink: 0;
}
.baahe-logo img {
  height: 46px;
  width: auto;
}

/* Search Bar */
.baahe-header-search {
  flex: 1;
  max-width: 620px;
}
.baahe-header-search form {
  display: flex;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.baahe-header-search input[type="search"] {
  flex: 1;
  padding: 11px 16px;
  border: none;
  outline: none;
  font-size: var(--font-size-md);
  color: var(--text);
  background: transparent;
}
.baahe-search-btn {
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 11px 20px;
  font-size: 1rem;
  transition: background var(--t);
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.baahe-search-btn:hover { background: var(--orange-dark); }

/* Header Actions */
.baahe-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.baahe-header-action {
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background var(--t);
  font-size: var(--font-size-xs);
  position: relative;
  text-decoration: none;
}
.baahe-header-action i { font-size: 1.15rem; }
.baahe-header-action span { font-size: 0.7rem; font-weight: 500; }
.baahe-header-action:hover { background: rgba(255,255,255,0.12); color: var(--white); }

/* Cart Count Badge */
.baahe-cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

/* Category Navigation */
.baahe-cat-nav {
  background: var(--blue-nav);
  border-top: 1px solid rgba(255,255,255,0.08);
  position: relative;
}
.baahe-cat-nav-inner {
  display: flex;
  align-items: center;
}
.baahe-cat-menu {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
}
.baahe-cat-menu::-webkit-scrollbar { display: none; }
.baahe-cat-menu li a {
  display: block;
  padding: 11px 18px;
  color: rgba(255,255,255,0.88);
  font-size: var(--font-size-sm);
  font-weight: 500;
  white-space: nowrap;
  transition: all var(--t);
  border-bottom: 2px solid transparent;
}
.baahe-cat-menu li a:hover,
.baahe-cat-menu li.current-cat > a {
  color: var(--white);
  background: rgba(255,255,255,0.1);
  border-bottom-color: var(--orange);
}

/* Mobile Hamburger */
.baahe-hamburger {
  display: none;
  background: none;
  border: none;
  padding: 10px 14px 10px 0;
  color: var(--white);
  font-size: 1.3rem;
}

/* ============================================================
   BUTTONS — Shared across all pages
   ============================================================ */
.baahe-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: var(--font-size-md);
  transition: all var(--t);
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1;
  text-decoration: none;
}
.baahe-btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.baahe-btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
  transform: translateY(-1px);
}
.baahe-btn-orange {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.baahe-btn-orange:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  color: var(--white);
  transform: translateY(-1px);
}
.baahe-btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.baahe-btn-outline:hover {
  background: var(--blue);
  color: var(--white);
}
.baahe-btn-white {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}
.baahe-btn-white:hover {
  background: var(--bg-light);
  color: var(--blue-dark);
}
.baahe-btn-sm {
  padding: 8px 18px;
  font-size: var(--font-size-sm);
}

/* ============================================================
   SECTION HEADERS — Unified
   ============================================================ */
.baahe-section {
  padding: var(--section-pad);
}
.baahe-section-alt { background: var(--bg-light); }
.baahe-section-sale { background: var(--bg-sale); }

.baahe-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}
.baahe-section-head h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 10px;
}
.baahe-section-head h2::before {
  content: '';
  display: block;
  width: 4px;
  height: 22px;
  background: var(--orange);
  border-radius: 2px;
}
.baahe-view-all {
  color: var(--blue);
  font-size: var(--font-size-sm);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border: 1px solid var(--blue);
  border-radius: 20px;
  transition: all var(--t);
}
.baahe-view-all:hover {
  background: var(--blue);
  color: var(--white);
}

/* ============================================================
   PRODUCT CARD — UNIVERSAL STANDARD
   This is THE product card used everywhere.
   ============================================================ */
.baahe-products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--gap-grid);
}
.baahe-products-grid-4 { grid-template-columns: repeat(4, 1fr); }
.baahe-products-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* WooCommerce ul.products override — THE canonical grid */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: var(--gap-grid) !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  clear: both !important;
}

/* Archive page uses 4 columns */
.baahe-shop-page .woocommerce ul.products,
.baahe-shop-page .woocommerce-page ul.products {
  grid-template-columns: repeat(4, 1fr) !important;
}

/* Clearfix killers */
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none !important; content: none !important; }

/* THE product card */
.woocommerce ul.products li.product {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  clear: none !important;
  position: static !important;
  background: var(--white) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--card-radius) !important;
  overflow: hidden !important;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t) !important;
  display: flex !important;
  flex-direction: column !important;
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--card-shadow-h) !important;
  border-color: #d0d9e8 !important;
}

/* Product image — fixed aspect ratio */
.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product img {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  padding: 12px !important;
  background: #fafafa !important;
  display: block !important;
  margin: 0 !important;
  border-radius: 0 !important;
  transition: transform 0.35s ease !important;
}
.woocommerce ul.products li.product:hover img {
  transform: scale(1.04) !important;
}

/* Product title */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  padding: 10px 12px 4px !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  color: var(--text) !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 2.5em !important;
  flex: 1 !important;
}

/* Product price */
.woocommerce ul.products li.product .price {
  padding: 4px 12px 8px !important;
  margin: 0 !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: var(--orange) !important;
  display: block !important;
}
.woocommerce ul.products li.product .price del {
  color: #aaa !important;
  font-size: 0.78rem !important;
  font-weight: 400 !important;
  margin-right: 4px !important;
}

/* Add to Cart button */
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product button.button {
  display: block !important;
  margin: 0 12px 12px !important;
  padding: 9px 10px !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  background: var(--blue) !important;
  color: var(--white) !important;
  border-radius: 6px !important;
  text-align: center !important;
  border: none !important;
  box-shadow: none !important;
  letter-spacing: 0.02em !important;
  transition: background var(--t) !important;
  width: calc(100% - 24px) !important;
}
.woocommerce ul.products li.product a.button:hover,
.woocommerce ul.products li.product button.button:hover {
  background: var(--blue-dark) !important;
  color: var(--white) !important;
  transform: none !important;
}

/* Sale badge */
.woocommerce ul.products li.product .onsale {
  background: var(--orange) !important;
  color: var(--white) !important;
  border-radius: 4px !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  padding: 3px 8px !important;
  min-width: auto !important;
  min-height: auto !important;
  line-height: 1.4 !important;
  top: 8px !important;
  right: 8px !important;
  left: auto !important;
  margin: 0 !important;
}

/* Star rating */
.woocommerce ul.products li.product .star-rating {
  padding: 0 12px 4px !important;
  font-size: 0.7rem !important;
  margin: 0 !important;
}

/* ============================================================
   TRUST BADGES
   ============================================================ */
.baahe-trust {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.baahe-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.baahe-trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
  border-right: 1px solid var(--border);
}
.baahe-trust-item:last-child { border-right: none; }
.baahe-trust-icon {
  width: 42px;
  height: 42px;
  background: rgba(0,102,204,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.baahe-trust-icon i {
  font-size: 1.1rem;
  color: var(--blue);
}
.baahe-trust-text strong {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--dark);
}
.baahe-trust-text span {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

/* ============================================================
   HERO BANNER
   ============================================================ */
.baahe-hero {
  background: linear-gradient(135deg, #EEF4FB 0%, #dceeff 100%);
  padding: 0;
  overflow: hidden;
}
.baahe-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 380px;
}
.baahe-hero-content {
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.baahe-hero-eyebrow {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.baahe-hero-content h1 {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: 14px;
}
.baahe-hero-content h1 span { color: var(--blue); }
.baahe-hero-content p {
  font-size: var(--font-size-lg);
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}
.baahe-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.baahe-hero-image {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #dceeff 0%, #c8e0ff 100%);
}
.baahe-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.baahe-hero:hover .baahe-hero-image img { transform: scale(1.03); }

/* ============================================================
   BANNER STRIPS / PROMOTIONS
   ============================================================ */
.baahe-promo-strip {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  padding: 50px 0;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.baahe-promo-strip::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}
.baahe-promo-badge {
  display: inline-block;
  background: var(--orange);
  padding: 6px 20px;
  border-radius: 20px;
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.baahe-promo-strip h2 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.baahe-promo-strip p {
  opacity: 0.85;
  font-size: var(--font-size-lg);
  margin-bottom: 24px;
}

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.baahe-cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.baahe-cat-card {
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--bg-light);
  border: 1px solid var(--border);
  transition: all var(--t);
}
.baahe-cat-card:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-h); }
.baahe-cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.baahe-cat-card:hover img { transform: scale(1.06); }
.baahe-cat-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 12px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
  color: var(--white);
}
.baahe-cat-info h3 {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.baahe-cat-info span {
  font-size: var(--font-size-xs);
  opacity: 0.75;
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.baahe-newsletter {
  background: var(--dark);
  padding: 52px 0;
  text-align: center;
}
.baahe-newsletter h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.baahe-newsletter p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 28px;
  font-size: var(--font-size-md);
}
.baahe-newsletter-form {
  display: flex;
  max-width: 520px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.baahe-newsletter-form input[type="email"] {
  flex: 1;
  padding: 14px 20px;
  border: none;
  outline: none;
  font-size: var(--font-size-md);
}
.baahe-newsletter-form button {
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 14px 26px;
  font-weight: 700;
  font-size: var(--font-size-sm);
  letter-spacing: 0.03em;
  transition: background var(--t);
}
.baahe-newsletter-form button:hover { background: var(--orange-dark); }

/* ============================================================
   FOOTER
   ============================================================ */
.baahe-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 0;
}
.baahe-footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.3fr;
  gap: 40px;
  margin-bottom: 48px;
}
.baahe-footer-logo { height: 42px; margin-bottom: 16px; }
.baahe-footer-about p {
  font-size: var(--font-size-sm);
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
}
.baahe-footer-social { display: flex; gap: 10px; }
.baahe-footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  transition: all var(--t);
  text-decoration: none;
}
.baahe-footer-social a:hover { background: var(--orange); color: var(--white); }
.baahe-footer-col h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.baahe-footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.baahe-footer-col ul li a {
  color: rgba(255,255,255,0.55);
  font-size: var(--font-size-sm);
  transition: color var(--t);
}
.baahe-footer-col ul li a:hover { color: var(--orange); }
.baahe-footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.baahe-footer-contact-item i {
  color: var(--orange);
  font-size: 0.85rem;
  margin-top: 3px;
  flex-shrink: 0;
  width: 14px;
}
.baahe-footer-contact-item span {
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.55);
}
.baahe-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-xs);
  color: rgba(255,255,255,0.35);
}
.baahe-footer-payments { display: flex; gap: 8px; align-items: center; }
.baahe-footer-payments img { height: 22px; border-radius: 3px; }
.baahe-payment-icon {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.baahe-breadcrumb {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.woocommerce-breadcrumb,
.baahe-breadcrumb-inner {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}
.woocommerce-breadcrumb a { color: var(--text-muted); }
.woocommerce-breadcrumb a:hover { color: var(--blue); }
.woocommerce-breadcrumb .delimiter { margin: 0 6px; }

/* ============================================================
   SHOP PAGE (ARCHIVE)
   ============================================================ */
.baahe-shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  padding: 32px 0 56px;
}
.baahe-shop-sidebar {
  position: relative;
}
.baahe-sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 20px;
  margin-bottom: 16px;
}
.baahe-sidebar-widget h3 {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* Shop Toolbar */
.baahe-shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.baahe-result-count {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}
.woocommerce-ordering select {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: var(--font-size-sm);
  color: var(--text);
  outline: none;
  cursor: pointer;
  background: var(--white);
}
.woocommerce-ordering select:focus { border-color: var(--blue); }

/* Pagination */
.woocommerce-pagination {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}
.woocommerce-pagination ul {
  display: flex;
  gap: 6px;
  list-style: none;
}
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: var(--font-size-sm);
  color: var(--text);
  transition: all var(--t);
  font-weight: 500;
}
.woocommerce-pagination ul li a:hover { border-color: var(--blue); color: var(--blue); }
.woocommerce-pagination ul li span.current {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

/* ============================================================
   SINGLE PRODUCT PAGE
   ============================================================ */
.baahe-product-page {
  padding: 36px 0 56px;
}
.baahe-product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

/* Product Gallery */
.woocommerce-product-gallery {
  position: sticky;
  top: 90px;
}
.woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.woocommerce-product-gallery figure img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 16px;
  background: #fafafa;
}

/* Product Summary */
.baahe-product-summary .product_title {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.3;
}
.baahe-product-summary .woocommerce-review-link {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}
.baahe-product-summary .price {
  font-size: 2rem !important;
  font-weight: 800 !important;
  color: var(--orange) !important;
  margin: 16px 0 !important;
  display: block !important;
}
.baahe-product-summary .price del {
  font-size: 1.1rem !important;
  color: #aaa !important;
  font-weight: 400 !important;
  margin-right: 8px !important;
}
.baahe-product-summary .woocommerce-product-details__short-description {
  color: var(--text-muted);
  font-size: var(--font-size-md);
  line-height: 1.75;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

/* Qty + ATC */
.baahe-product-summary .cart {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.baahe-product-summary .qty {
  width: 80px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
}
.baahe-product-summary .single_add_to_cart_button {
  flex: 1;
  padding: 14px 24px !important;
  background: var(--orange) !important;
  color: var(--white) !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  transition: background var(--t) !important;
  box-shadow: 0 4px 14px rgba(255,107,0,0.3) !important;
}
.baahe-product-summary .single_add_to_cart_button:hover {
  background: var(--orange-dark) !important;
}

/* Stock status */
.baahe-product-summary .stock {
  font-size: var(--font-size-sm);
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 16px;
}
.baahe-product-summary .in-stock {
  color: #15803d;
  background: #dcfce7;
}
.baahe-product-summary .out-of-stock {
  color: #dc2626;
  background: #fee2e2;
}

/* Product Trust Row */
.baahe-product-trust {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 20px 0;
}
.baahe-product-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}
.baahe-product-trust-item i { color: var(--blue); font-size: 0.9rem; }

/* Product Meta */
.baahe-product-meta {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}
.baahe-product-meta p { margin-bottom: 6px; }
.baahe-product-meta strong { color: var(--text); }

/* Tabs */
.woocommerce-tabs ul.tabs {
  display: flex;
  gap: 0;
  list-style: none;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
}
.woocommerce-tabs ul.tabs li {
  margin: 0;
  padding: 0;
}
.woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 12px 24px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--t);
}
.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.woocommerce-tabs .panel { padding: 20px 0; }

/* ============================================================
   WooCommerce Notices
   ============================================================ */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: 8px !important;
  padding: 14px 20px !important;
  margin-bottom: 20px !important;
  font-size: var(--font-size-sm) !important;
}
.woocommerce-message { background: #dcfce7 !important; border-left: 4px solid #22c55e !important; color: #15803d !important; }
.woocommerce-info { background: #dbeafe !important; border-left: 4px solid var(--blue) !important; color: var(--blue) !important; }
.woocommerce-error { background: #fee2e2 !important; border-left: 4px solid #ef4444 !important; color: #dc2626 !important; }

/* ============================================================
   CART PAGE
   ============================================================ */
.baahe-cart-page {
  padding: 36px 0 56px;
}
.woocommerce-cart-form table.shop_table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}
.woocommerce-cart-form table.shop_table th {
  background: var(--bg-light);
  padding: 12px 16px;
  text-align: left;
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.woocommerce-cart-form table.shop_table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.cart-collaterals .cart_totals {
  background: var(--bg-light);
  border-radius: 10px;
  padding: 24px;
}
.cart-collaterals .cart_totals h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.cart-collaterals .cart_totals table {
  width: 100%;
  border-collapse: collapse;
}
.cart-collaterals .cart_totals td,
.cart-collaterals .cart_totals th {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--font-size-sm);
}
.wc-proceed-to-checkout .checkout-button {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--orange) !important;
  color: var(--white) !important;
  border-radius: 8px !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  text-align: center !important;
  margin-top: 16px;
  transition: background var(--t) !important;
}
.wc-proceed-to-checkout .checkout-button:hover {
  background: var(--orange-dark) !important;
}

/* ============================================================
   CHECKOUT PAGE
   ============================================================ */
.baahe-checkout-page {
  padding: 36px 0 56px;
}
.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--dark);
}
.woocommerce form .form-row label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
  display: block;
}
.woocommerce form .form-row input,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: var(--font-size-sm);
  color: var(--text);
  outline: none;
  transition: border-color var(--t);
  font-family: var(--font);
}
.woocommerce form .form-row input:focus,
.woocommerce form .form-row select:focus,
.woocommerce form .form-row textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,102,204,0.08);
}
#place_order {
  width: 100%;
  padding: 16px !important;
  background: var(--orange) !important;
  color: var(--white) !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background var(--t) !important;
  box-shadow: 0 4px 14px rgba(255,107,0,0.3) !important;
}
#place_order:hover { background: var(--orange-dark) !important; }

/* ============================================================
   SKELETON LOADERS
   ============================================================ */
@keyframes shimmer {
  0% { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}
.baahe-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 600px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
}
.baahe-product-skeleton {
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  overflow: hidden;
}
.baahe-product-skeleton .sk-img { width: 100%; aspect-ratio: 1; }
.baahe-product-skeleton .sk-title { height: 14px; margin: 14px 12px 8px; }
.baahe-product-skeleton .sk-title-2 { height: 14px; margin: 0 12px 12px; width: 60%; }
.baahe-product-skeleton .sk-price { height: 18px; margin: 0 12px 12px; width: 45%; }
.baahe-product-skeleton .sk-btn { height: 34px; margin: 0 12px 12px; border-radius: 6px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Large Tablet */
@media (max-width: 1100px) {
  .woocommerce ul.products { grid-template-columns: repeat(4, 1fr) !important; }
  .baahe-shop-page .woocommerce ul.products { grid-template-columns: repeat(3, 1fr) !important; }
  .baahe-cat-grid { grid-template-columns: repeat(4, 1fr); }
  .baahe-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .baahe-hero-content h1 { font-size: 2.1rem; }
}

/* Tablet */
@media (max-width: 900px) {
  :root { --section-pad: 40px 0; }
  .baahe-hero-inner { grid-template-columns: 1fr; }
  .baahe-hero-image { display: none; }
  .baahe-hero-content { padding: 40px 32px; text-align: center; }
  .baahe-hero-ctas { justify-content: center; }
  .baahe-trust-grid { grid-template-columns: repeat(2, 1fr); }
  .baahe-trust-item:nth-child(2) { border-right: none; }
  .baahe-trust-item:nth-child(1), .baahe-trust-item:nth-child(2) { border-bottom: 1px solid var(--border); }
  .baahe-shop-layout { grid-template-columns: 1fr; }
  .baahe-shop-sidebar { display: none; }
  .baahe-product-layout { grid-template-columns: 1fr; gap: 28px; }
  .woocommerce ul.products { grid-template-columns: repeat(3, 1fr) !important; }
  .baahe-shop-page .woocommerce ul.products { grid-template-columns: repeat(3, 1fr) !important; }
  .baahe-cat-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile */
@media (max-width: 640px) {
  .baahe-header-inner { flex-wrap: wrap; gap: 12px; }
  .baahe-header-search { order: 3; max-width: 100%; width: 100%; }
  .baahe-hamburger { display: block; }
  .baahe-cat-menu { display: none; }
  .baahe-cat-menu.is-open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--blue-nav); z-index: 999; }
  .baahe-cat-menu.is-open li a { border-bottom: 1px solid rgba(255,255,255,0.08); padding: 14px 20px; }
  .baahe-hero-content { padding: 32px 20px; }
  .baahe-hero-content h1 { font-size: 1.7rem; }
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .baahe-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .baahe-trust-grid { grid-template-columns: 1fr; }
  .baahe-trust-item { border-right: none; border-bottom: 1px solid var(--border); }
  .baahe-trust-item:last-child { border-bottom: none; }
  .baahe-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .baahe-footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .baahe-topbar-left { display: none; }
  .baahe-header-action span { display: none; }
  .baahe-header-action { padding: 6px 8px; }
  .baahe-section-head h2 { font-size: 1.15rem; }
  .baahe-promo-strip h2 { font-size: 1.7rem; }
  .baahe-cat-card { aspect-ratio: auto; height: 120px; }
  .baahe-product-trust { flex-wrap: wrap; gap: 12px; }
}

/* Very small */
@media (max-width: 400px) {
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ============================================================
   SEARCH DROPDOWN (AJAX autocomplete)
   ============================================================ */
.baahe-search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 999;
  display: none;
  max-height: 400px;
  overflow-y: auto;
}
.baahe-search-dropdown.active {
  display: block;
}
.baahe-search-results {
  list-style: none;
  margin: 0;
  padding: 0;
}
.baahe-search-results li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--bg-light);
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s;
}
.baahe-search-results li a:hover {
  background: var(--bg-light);
}
.baahe-search-results img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 4px;
}
.baahe-search-results span.price {
  margin-left: auto;
  font-weight: 600;
  color: var(--orange);
  font-size: 0.85rem;
}
.baahe-search-no-results {
  padding: 20px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.baahe-text-center { text-align: center; }
.baahe-mt-8 { margin-top: 8px; }
.baahe-mt-16 { margin-top: 16px; }
.baahe-mb-24 { margin-bottom: 24px; }
.baahe-hidden { display: none !important; }
