/* ═══════════════════════════════════════════
   GEARSHIFT THEME — MAIN STYLESHEET
   Design: Apple minimal × RevZilla motorsport
   Colors: Black + Red
═══════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --red:         #E31836;
  --red-dark:    #B8102B;
  --red-light:   #FF2040;
  --bg:          #0A0A0A;
  --surface:     #141414;
  --surface-2:   #1C1C1C;
  --surface-3:   #242424;
  --border:      #2A2A2A;
  --border-light:#333333;
  --text:        #FFFFFF;
  --text-muted:  #888888;
  --text-light:  #BBBBBB;
  --white:       #FFFFFF;
  --nav-h:       72px;
  --container:   1380px;
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --r:           6px;
  --r-lg:        12px;
}

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

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ════════════════════════════════════════════
   HEADER
════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.scrolled {
  box-shadow: 0 4px 40px rgba(0,0,0,0.5);
}
.header-inner {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  gap: 32px;
}
.header-spacer { height: var(--nav-h); }

/* Logo */
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo img { height: 36px; width: auto; }
.logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--white);
}
.logo-text span { color: var(--red); }

/* Nav */
.primary-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  border-radius: var(--r);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--white); background: var(--surface-2); }
.nav-arrow { transition: transform 0.2s var(--ease); }
.nav-item:hover .nav-arrow { transform: rotate(180deg); }

/* Mega Menu */
.mega-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 600px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  transform: translateX(-50%) translateY(-8px);
}
.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; padding: 24px; }
.mega-col { padding: 0 16px; }
.mega-col + .mega-col { border-left: 1px solid var(--border); }
.mega-heading { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.mega-link {
  display: block;
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-light);
  transition: color 0.15s;
}
.mega-link:hover { color: var(--white); }
.mega-product {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 12px;
  color: var(--text-light);
  transition: color 0.15s;
}
.mega-product:hover { color: var(--white); }
.mega-product img { width: 36px; height: 36px; object-fit: cover; border-radius: 4px; background: var(--surface-2); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.action-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r);
  color: var(--text-light);
  transition: color 0.2s, background 0.2s;
}
.action-btn:hover { color: var(--white); background: var(--surface-2); }
.cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Search Bar */
.search-bar {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease), padding 0.3s var(--ease);
}
.search-bar.open { max-height: 80px; padding: 16px 0; }
.search-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-inner .search-field {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 10px 16px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.search-inner .search-field:focus { border-color: var(--red); }
.search-inner .search-submit {
  padding: 10px 20px;
  background: var(--red);
  color: var(--white);
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}
.search-inner .search-submit:hover { background: var(--red-dark); }
.search-close { color: var(--text-muted); padding: 8px; transition: color 0.2s; }
.search-close:hover { color: var(--white); }

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

/* ════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: var(--r);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-lg { padding: 16px 36px; font-size: 15px; }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ════════════════════════════════════════════
   HERO SECTION
════════════════════════════════════════════ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10,10,10,0.95) 0%,
    rgba(10,10,10,0.7) 50%,
    rgba(10,10,10,0.2) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 120px 0 120px 80px;
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -2px;
  margin-bottom: 24px;
}
.hero-title span { color: var(--red); }
.hero-sub {
  font-size: 18px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 1;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: scroll-pulse 2s infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ════════════════════════════════════════════
   TRUST BAR
════════════════════════════════════════════ */
.trust-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-light);
}
.trust-item svg { color: var(--red); flex-shrink: 0; }
.trust-item strong { display: block; font-size: 14px; font-weight: 600; color: var(--white); }
.trust-item span { font-size: 12px; color: var(--text-muted); }

/* ════════════════════════════════════════════
   SECTION SHARED
════════════════════════════════════════════ */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 16px;
}
.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.1;
}
.section-sub {
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 10px;
}
.section-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  white-space: nowrap;
  transition: gap 0.2s;
  flex-shrink: 0;
}
.section-link:hover { gap: 10px; }

/* ════════════════════════════════════════════
   BRANDS SECTION
════════════════════════════════════════════ */
.brands-section { padding: 80px 0; overflow: hidden; }
.brands-track-wrap { overflow: hidden; position: relative; }
.brands-track-wrap::before,
.brands-track-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 1;
}
.brands-track-wrap::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.brands-track-wrap::after  { right: 0; background: linear-gradient(to left, var(--bg), transparent); }

.brands-track {
  display: flex;
  gap: 60px;
  align-items: center;
  width: max-content;
  animation: brand-scroll 30s linear infinite;
}
.brands-track:hover { animation-play-state: paused; }
@keyframes brand-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.3s;
  filter: brightness(0) invert(1);
}
.brand-logo:hover { opacity: 1; }
.brand-logo img { height: 36px; width: auto; max-width: 120px; object-fit: contain; }

/* ════════════════════════════════════════════
   CATEGORIES SECTION
════════════════════════════════════════════ */
.categories-section { padding: 80px 0; }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cat-card {
  position: relative;
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--surface-2);
  transition: transform 0.3s var(--ease);
}
.cat-card:hover { transform: translateY(-4px); }
.cat-img-wrap { position: absolute; inset: 0; }
.cat-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.cat-card:hover .cat-img-wrap img { transform: scale(1.06); }
.cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}
.cat-img-placeholder { position: absolute; inset: 0; background: var(--surface-2); }
.cat-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 1;
}
.cat-name { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 4px; }
.cat-count { font-size: 12px; color: var(--text-muted); display: block; margin-bottom: 12px; }
.cat-arrow {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  background: var(--red);
  border-radius: 50%;
  transition: transform 0.2s var(--ease), background 0.2s;
}
.cat-card:hover .cat-arrow { transform: translateX(4px); background: var(--red-light); }

/* ════════════════════════════════════════════
   PRODUCTS SECTION
════════════════════════════════════════════ */
.products-section { padding: 80px 0; }
.products-section--alt { background: var(--surface); padding: 80px 0; }
.products-section--alt .container { position: relative; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Product Card */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.product-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.products-section--alt .product-card { background: var(--surface-2); }
.product-img-wrap {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface-2);
}
.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.product-card:hover .product-img { transform: scale(1.05); }
.product-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border-light);
}
.product-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.product-card:hover .product-hover { opacity: 1; }
.product-hover .button,
.product-hover .add_to_cart_button {
  width: 100%;
  padding: 12px;
  background: var(--red);
  color: var(--white) !important;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: background 0.2s;
  text-decoration: none;
}
.product-hover .button:hover,
.product-hover .add_to_cart_button:hover { background: var(--red-dark); }

.product-info { padding: 16px; }
.product-brand { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.product-title { font-size: 14px; font-weight: 600; line-height: 1.4; margin-bottom: 8px; }
.product-title a { color: var(--text); transition: color 0.2s; }
.product-title a:hover { color: var(--red); }
.product-price { font-size: 16px; font-weight: 700; color: var(--white); }
.product-price .woocommerce-Price-amount { color: var(--white); }
.product-price del { color: var(--text-muted); font-size: 13px; margin-right: 4px; }
.product-price ins { text-decoration: none; color: var(--red); }

/* Badges */
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 4px;
  z-index: 2;
}
.badge-sale { background: var(--red); color: var(--white); }
.badge-new { background: #00B341; color: var(--white); }
.badge-featured { background: #F59E0B; color: #000; }

/* ════════════════════════════════════════════
   PROMO BANNER
════════════════════════════════════════════ */
.promo-banner { padding: 80px 0; background: var(--surface); }
.promo-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.promo-text {
  padding: 60px;
}
.promo-text h2 { font-size: 36px; font-weight: 800; letter-spacing: -0.8px; margin-bottom: 14px; }
.promo-text p { color: var(--text-muted); font-size: 15px; line-height: 1.7; margin-bottom: 28px; }
.promo-img { overflow: hidden; height: 380px; }
.promo-img img { width: 100%; height: 100%; object-fit: cover; }

/* ════════════════════════════════════════════
   WHY SECTION
════════════════════════════════════════════ */
.why-section { padding: 100px 0; }
.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.why-text .section-title { margin-bottom: 16px; }
.why-text p { color: var(--text-muted); font-size: 16px; line-height: 1.8; margin-bottom: 28px; }
.why-list { margin-bottom: 36px; display: flex; flex-direction: column; gap: 12px; }
.why-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-light);
}
.why-list li svg { color: var(--red); flex-shrink: 0; }
.why-img { border-radius: var(--r-lg); overflow: hidden; }
.why-img img { width: 100%; height: 500px; object-fit: cover; }

/* ════════════════════════════════════════════
   SHOP PAGE
════════════════════════════════════════════ */
.shop-page { padding: 40px 0 80px; }
.shop-header { margin-bottom: 32px; }
.shop-title { font-size: 32px; font-weight: 700; letter-spacing: -0.5px; }
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }

/* Sidebar */
.shop-sidebar { position: sticky; top: calc(var(--nav-h) + 24px); }
.shop-sidebar .widget { margin-bottom: 32px; }
.shop-sidebar .widget-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.shop-sidebar ul { display: flex; flex-direction: column; gap: 6px; }
.shop-sidebar ul li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-light);
  padding: 6px 0;
  transition: color 0.15s;
}
.shop-sidebar ul li a:hover { color: var(--white); }

/* Shop Toolbar */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.woocommerce-result-count { font-size: 13px; color: var(--text-muted); }
.woocommerce-ordering select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: var(--r);
  font-size: 13px;
  outline: none;
}

/* WooCommerce Grid in Shop */
.woocommerce-products-grid ul.products,
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
ul.products li.product { margin: 0 !important; float: none !important; width: auto !important; }

/* Pagination */
.woocommerce-pagination { margin-top: 48px; }
.woocommerce-pagination ul {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  transition: all 0.2s;
}
.woocommerce-pagination ul li a:hover { border-color: var(--red); color: var(--red); }
.woocommerce-pagination ul li span.current { background: var(--red); border-color: var(--red); color: var(--white); }

/* ════════════════════════════════════════════
   SINGLE PRODUCT PAGE
════════════════════════════════════════════ */
.single-product-page { padding: 40px 0 80px; }
.gs-breadcrumb { margin-bottom: 32px; }
.woocommerce-breadcrumb { font-size: 13px; color: var(--text-muted); }
.woocommerce-breadcrumb a { color: var(--text-muted); transition: color 0.2s; }
.woocommerce-breadcrumb a:hover { color: var(--red); }

/* WC Product Layout */
.woocommerce div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.woocommerce div.product .woocommerce-product-gallery { position: sticky; top: calc(var(--nav-h) + 24px); }

/* Product gallery */
.woocommerce-product-gallery { border-radius: var(--r-lg); overflow: hidden; }
.woocommerce-product-gallery__wrapper img { border-radius: var(--r-lg); }
.flex-viewport { border-radius: var(--r-lg); overflow: hidden; }

/* Product summary */
.summary { padding-top: 8px; }
.product_title { font-size: 32px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 12px; }
.woocommerce-product-rating { margin-bottom: 16px; }
.price { font-size: 28px; font-weight: 700; color: var(--white); margin-bottom: 20px; display: block; }
.price del { color: var(--text-muted); font-size: 18px; margin-right: 8px; }
.price ins { color: var(--red); text-decoration: none; }

.woocommerce-product-details__short-description {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

/* Add to cart */
.cart { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 24px; flex-wrap: wrap; }
.quantity .qty {
  width: 80px;
  padding: 12px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text);
  font-size: 15px;
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
}
.quantity .qty:focus { border-color: var(--red); }
.single_add_to_cart_button {
  flex: 1;
  padding: 14px 28px;
  background: var(--red);
  color: var(--white) !important;
  border-radius: var(--r);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}
.single_add_to_cart_button:hover { background: var(--red-dark); transform: translateY(-1px); }

/* Product meta */
.product_meta { font-size: 12px; color: var(--text-muted); }
.product_meta span { display: block; margin-bottom: 4px; }
.product_meta a { color: var(--text-muted); transition: color 0.2s; }
.product_meta a:hover { color: var(--white); }

/* Tabs */
.woocommerce-tabs { margin-top: 48px; grid-column: 1 / -1; }
.woocommerce-tabs .tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  list-style: none;
}
.woocommerce-tabs .tabs li a {
  display: block;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}
.woocommerce-tabs .tabs li.active a { color: var(--white); border-bottom-color: var(--red); }
.woocommerce-tabs .tabs li a:hover { color: var(--white); }
.woocommerce-tabs .panel { font-size: 14px; color: var(--text-light); line-height: 1.8; }

/* Related products */
.related-section { margin-top: 60px; padding-top: 60px; border-top: 1px solid var(--border); }
.related.products h2,
.upsells.products h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 28px;
  letter-spacing: -0.3px;
}
.related.products ul.products { grid-template-columns: repeat(4, 1fr); }

/* ════════════════════════════════════════════
   CART PAGE
════════════════════════════════════════════ */
.gs-woo-wrap { padding: 40px 0 80px; }

.woocommerce-cart-form { width: 100%; }
table.cart { width: 100%; border-collapse: collapse; }
table.cart th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
table.cart td { padding: 20px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.cart .product-thumbnail img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--r); }
table.cart .product-name a { font-size: 14px; font-weight: 500; color: var(--text); transition: color 0.2s; }
table.cart .product-name a:hover { color: var(--red); }
.cart-collaterals { display: grid; grid-template-columns: 1fr 380px; gap: 40px; margin-top: 32px; align-items: start; }
.cart_totals { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; }
.cart_totals h2 { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.shop_table.shop_table_responsive { width: 100%; border-collapse: collapse; }
.shop_table.shop_table_responsive td { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.shop_table.shop_table_responsive th { font-size: 13px; color: var(--text-muted); padding: 10px 0; border-bottom: 1px solid var(--border); }
.wc-proceed-to-checkout { margin-top: 20px; }
.checkout-button {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--red);
  color: var(--white);
  text-align: center;
  border-radius: var(--r);
  font-size: 15px;
  font-weight: 700;
  transition: background 0.2s;
}
.checkout-button:hover { background: var(--red-dark); color: var(--white); }

/* ════════════════════════════════════════════
   CHECKOUT PAGE
════════════════════════════════════════════ */
.woocommerce-checkout .col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; }

.woocommerce-checkout .form-row label { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; display: block; }
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout select,
.woocommerce-checkout textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.woocommerce-checkout input:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus { border-color: var(--red); }

#order_review { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; }
#order_review h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
#place_order {
  width: 100%;
  padding: 16px;
  background: var(--red);
  color: var(--white);
  border-radius: var(--r);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
  margin-top: 20px;
}
#place_order:hover { background: var(--red-dark); }

/* bKash highlight */
.payment_method_bkash label,
.payment_method_nagad label { font-weight: 600; color: var(--white); }

/* ════════════════════════════════════════════
   PAGE HERO
════════════════════════════════════════════ */
.page-hero {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.page-title { font-size: 36px; font-weight: 700; letter-spacing: -0.5px; }

/* ════════════════════════════════════════════
   404
════════════════════════════════════════════ */
.error-404 { text-align: center; padding: 100px 24px; }
.error-code { font-size: 120px; font-weight: 900; color: var(--surface-2); line-height: 1; margin-bottom: 16px; letter-spacing: -4px; }
.error-title { font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.error-text { color: var(--text-muted); margin-bottom: 32px; }
.error-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 0; }
.footer-top { padding: 64px 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 280px repeat(4, 1fr);
  gap: 40px;
}
.footer-brand { }
.footer-logo {
  display: inline-block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: var(--white);
}
.footer-logo span { color: var(--red); }
.footer-tagline { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--surface-2);
  border-radius: var(--r);
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}
.footer-social a:hover { background: var(--red); color: var(--white); }

.footer-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links li a { font-size: 13px; color: var(--text-muted); transition: color 0.2s; }
.footer-links li a:hover { color: var(--white); }
.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-contact li svg { margin-top: 2px; flex-shrink: 0; }
.footer-contact li a { color: var(--text-muted); transition: color 0.2s; }
.footer-contact li a:hover { color: var(--white); }

.footer-payment { margin-top: 20px; }
.payment-label { display: block; font-size: 11px; color: var(--text-muted); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px; }
.payment-icons { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-tag { padding: 4px 12px; background: var(--surface-3); border: 1px solid var(--border); border-radius: 4px; font-size: 12px; font-weight: 600; color: var(--text-light); }

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.footer-bottom p { font-size: 12px; color: var(--text-muted); text-align: center; }

/* ════════════════════════════════════════════
   WC NOTICES
════════════════════════════════════════════ */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  border-radius: var(--r);
  padding: 14px 18px;
  font-size: 14px;
  margin-bottom: 20px;
  list-style: none;
}
.woocommerce-message { background: rgba(0,179,65,0.1); border: 1px solid rgba(0,179,65,0.3); color: #00B341; }
.woocommerce-error { background: rgba(227,24,54,0.1); border: 1px solid rgba(227,24,54,0.3); color: var(--red); }
.woocommerce-info { background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text-light); }

/* Stars */
.star-rating { color: #F59E0B; font-size: 13px; }
.star-rating span::before { color: #F59E0B; }

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .products-grid,
  .woocommerce-products-grid ul.products,
  .related.products ul.products { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-layout { grid-template-columns: 220px 1fr; }
}

@media (max-width: 992px) {
  .hero-content { padding: 100px 40px; }
  .why-inner, .promo-inner { grid-template-columns: 1fr; }
  .why-img { display: none; }
  .promo-img { display: none; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .woocommerce div.product { grid-template-columns: 1fr; }
  .woocommerce div.product .woocommerce-product-gallery { position: static; }
  .woocommerce-checkout .col2-set { grid-template-columns: 1fr; }
  .cart-collaterals { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .primary-nav { display: none; }
  .primary-nav.open {
    display: block;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    padding: 24px;
    overflow-y: auto;
    z-index: 999;
    border-top: 1px solid var(--border);
  }
  .primary-nav.open .nav-list { flex-direction: column; gap: 0; }
  .primary-nav.open .nav-link { padding: 14px 0; font-size: 18px; font-weight: 600; border-bottom: 1px solid var(--border); border-radius: 0; }
  .mega-menu { display: none !important; }
  .mobile-toggle { display: flex; }
  .mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mobile-toggle.open span:nth-child(2) { opacity: 0; }
  .mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-content { padding: 80px 24px; }
  .hero-title { font-size: 40px; }
  .hero-sub { font-size: 15px; }

  .products-grid,
  .woocommerce-products-grid ul.products,
  .related.products ul.products { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .promo-text { padding: 32px; }
  .section-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .products-grid,
  .woocommerce-products-grid ul.products,
  .related.products ul.products { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-actions { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr 1fr; }
}

/* ════════════════════════════════════════════
   WC OVERRIDES (misc)
════════════════════════════════════════════ */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--red);
  color: var(--white);
  border-radius: var(--r);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
  border: none;
  cursor: pointer;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover { background: var(--red-dark); color: var(--white); }
.woocommerce a.button.alt { background: var(--red); }
.woocommerce a.button.alt:hover { background: var(--red-dark); }

/* Remove WC default link colors */
.woocommerce-loop-product__link { color: inherit; }

/* Select2 dark mode */
.select2-container .select2-selection--single {
  background: var(--surface-2);
  border-color: var(--border);
  height: 44px;
  border-radius: var(--r);
}
.select2-container .select2-selection--single .select2-selection__rendered { color: var(--text); line-height: 44px; padding: 0 14px; }
.select2-dropdown { background: var(--surface); border-color: var(--border); }
.select2-results__option { color: var(--text-light); padding: 10px 14px; }
.select2-results__option--highlighted { background: var(--red) !important; color: var(--white) !important; }

/* ════════════════════════════════════════════
   HEL CUSTOM ORDER PAGE
════════════════════════════════════════════ */
.hel-order-page { padding: 40px 0 100px; }

/* Hero */
.hel-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 48px 0 64px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 56px;
}
.hel-hero-text {}
.hel-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin-bottom: 18px;
}
.hel-title span { color: var(--red); }
.hel-subtitle { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 24px; max-width: 480px; }
.hel-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.hel-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(227,24,54,0.1);
  border: 1px solid rgba(227,24,54,0.25);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
}
.hel-hero-img { border-radius: var(--r-lg); overflow: hidden; }
.hel-hero-img img { width: 100%; height: 400px; object-fit: cover; }

/* Layout */
.hel-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

/* Configurator */
.hel-configurator { }
.config-title { font-size: 22px; font-weight: 700; margin-bottom: 28px; }

/* Line Builder */
.line-builder {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  margin-bottom: 16px;
}
.line-builder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.line-builder-header h3 { font-size: 15px; font-weight: 600; }
.lines-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}
.lines-empty svg { margin: 0 auto 12px; opacity: 0.3; display: block; }
.lines-empty p { font-size: 14px; }

/* Line Item */
.line-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.line-item:hover { border-color: var(--border-light); }
.line-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.line-num { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--red); }
.line-remove {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  color: var(--text-muted);
  border-radius: var(--r);
  transition: color 0.2s, background 0.2s;
}
.line-remove:hover { color: var(--red); background: rgba(227,24,54,0.1); }
.line-fields {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 0.6fr;
  gap: 12px;
  margin-bottom: 16px;
}
.line-field { }
.line-field label { display: block; font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 6px; }
.line-field input,
.line-field select {
  width: 100%;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 9px 10px;
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.line-field input:focus,
.line-field select:focus { border-color: var(--red); }
.line-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px; }

/* Line Preview */
.line-preview {
  display: flex;
  gap: 8px;
  align-items: center;
}
.line-preview-hose,
.line-preview-fitting {
  flex: 1;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease);
}
.line-preview-fitting { max-width: 80px; }
.line-preview-label { font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.5px; }

/* Summary strip */
.order-summary-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(227,24,54,0.08);
  border: 1px solid rgba(227,24,54,0.2);
  border-radius: var(--r);
  margin-bottom: 32px;
  font-size: 13px;
}
.summary-count { font-weight: 700; color: var(--red); }
.summary-sep { color: var(--border-light); }
.summary-note { color: var(--text-muted); }

/* Order form */
.order-form { }
.form-section-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; padding-top: 8px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 8px; }
.req { color: var(--red); }
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--red); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.submit-btn { width: 100%; justify-content: center; margin-top: 8px; }
.submit-note { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 12px; }

.form-error-msg {
  background: rgba(227,24,54,0.1);
  border: 1px solid rgba(227,24,54,0.3);
  color: var(--red);
  padding: 12px 16px;
  border-radius: var(--r);
  font-size: 13px;
  margin-bottom: 20px;
}

/* Success */
.order-success {
  text-align: center;
  padding: 80px 24px;
  max-width: 480px;
  margin: 0 auto;
}
.order-success svg { color: #00B341; margin: 0 auto 20px; display: block; }
.order-success h2 { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.order-success p { color: var(--text-muted); font-size: 15px; line-height: 1.7; margin-bottom: 28px; }

/* Sidebar */
.hel-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--nav-h) + 24px); }
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
}
.info-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.info-card p { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.info-list { display: flex; flex-direction: column; gap: 8px; }
.info-list li { font-size: 13px; color: var(--text-light); padding-left: 14px; position: relative; }
.info-list li::before { content: '—'; position: absolute; left: 0; color: var(--red); font-size: 11px; }

/* Color ref grid */
.color-ref-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.color-ref { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); }
.color-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }

.info-card--cta { border-color: rgba(227,24,54,0.2); background: rgba(227,24,54,0.05); }
.info-card--cta p { margin-bottom: 16px; }
.info-card--cta .btn { width: 100%; justify-content: center; }

/* Responsive */
@media (max-width: 1024px) {
  .hel-layout { grid-template-columns: 1fr; }
  .hel-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .info-card { flex: 1; min-width: 260px; }
}
@media (max-width: 768px) {
  .hel-hero { grid-template-columns: 1fr; }
  .hel-hero-img { display: none; }
  .line-fields { grid-template-columns: 1fr 1fr; }
  .line-field--qty { grid-column: span 2; }
  .form-row-2 { grid-template-columns: 1fr; }
  .hel-sidebar { flex-direction: column; }
}
