/* =========================================================
   Number One Parts — design tokens
   Industrial / warehouse-signage system: stenciled display type,
   bin-tag part labels, hazard-stripe accents.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  --asphalt: #17181A;
  --steel: #2B2E33;
  --steel-light: #3A3E45;
  --chalk: #FAF9F7;
  --chalk-dim: #C9C6BE;
  --ledger: #74787E;
  --line: #E7E4DE;
  --panel: #F1EFEA;
  --safety-orange: #5e9bd2;
  --safety-orange-dark: #386b96;
  --safety-yellow: #FFC730;
  --signal-green: #4C9A6A;
  --signal-red: #5e9bd2;

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  --container: 1240px;
  --radius: 3px;
  --shadow-card: 0 1px 0 rgba(0, 0, 0, .04), 0 8px 20px -12px rgba(20, 20, 20, .25);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--chalk);
  color: var(--asphalt);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.5;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: 1rem;
}

:focus-visible {
  outline: 3px solid var(--safety-orange);
  outline-offset: 2px;
}

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-fill {
  fill: currentColor;
  stroke: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 5%;
  /* Increased for more breathing space */
}

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--safety-orange-dark);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .01em;
  margin: 0;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0;
}

.section {
  padding: 80px 0;
  /* Increased for breathing space */
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.section-head .kicker {
  margin-bottom: 8px;
  display: block;
}

/* ---------- hazard rule (signature motif) ---------- */
.hazard-rule {
  height: 8px;
  background: repeating-linear-gradient(-45deg, var(--safety-orange) 0 14px, var(--asphalt) 14px 28px);
}

.hazard-rule.thin {
  height: 4px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .92rem;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--safety-orange);
  color: #fff;
}

.btn-primary:hover {
  background: var(--safety-orange-dark);
}

.btn-dark {
  background: var(--asphalt);
  color: var(--chalk);
}

.btn-dark:hover {
  background: #000;
}

.btn-outline {
  background: transparent;
  border-color: var(--asphalt);
  color: var(--asphalt);
}

.btn-outline:hover {
  background: var(--asphalt);
  color: var(--chalk);
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(243, 241, 236, .5);
  color: var(--chalk);
}

.btn-outline-light:hover {
  border-color: var(--chalk);
  background: rgba(243, 241, 236, .08);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 9px 16px;
  font-size: .8rem;
}

.btn[disabled] {
  opacity: .45;
  cursor: not-allowed;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--chalk);
}

.btn-icon:hover {
  background: var(--steel-light);
}

/* =========================================================
   TOP UTILITY BAR + HEADER
   ========================================================= */
.top-strip {
  background: var(--asphalt);
  color: var(--chalk-dim);
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .03em;
  overflow: hidden;
  height: 32px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ticker-wrapper {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-content {
  display: inline-block;
  white-space: nowrap;
  animation: ticker-scroll 45s linear infinite;
}

.ticker-wrapper:hover .ticker-content {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.ticker-item {
  color: #FAF9F7;
  text-decoration: none;
  font-weight: 500;
  padding: 0 10px;
  transition: color 0.15s ease;
}

.ticker-item:hover {
  color: var(--safety-yellow);
  text-decoration: underline;
}

.ticker-code {
  color: var(--safety-orange);
  font-weight: 700;
  margin-right: 4px;
}

.ticker-sep {
  color: var(--safety-yellow);
  margin: 0 6px;
  font-size: 0.7rem;
}

header.site-header {
  background: #ffffff;
  color: var(--asphalt);
  border-bottom: 1px solid var(--line);
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-img {
  height: 3.6rem;
  width: auto;
  object-fit: contain;
}

.logo .mark {
  width: 38px;
  height: 38px;
  background: var(--safety-orange);
  color: var(--asphalt);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.logo .word {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
}

.logo .word small {
  display: block;
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .16em;
  color: var(--safety-orange);
  font-weight: 600;
  margin-top: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex: 1;
}

.main-nav a {
  font-family: var(--font-display);
  font-size: .92rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--asphalt);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--safety-orange-dark);
  border-color: var(--safety-orange);
}

.header-search {
  flex: 1;
  max-width: 360px;
  position: relative;
}

.header-search input {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--asphalt);
  padding: 11px 42px 11px 14px;
  border-radius: var(--radius);
  font-size: .9rem;
}

.header-search input::placeholder {
  color: var(--ledger);
}

.header-search button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--ledger);
  padding: 6px;
}

.header-search button:hover {
  color: var(--safety-orange);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions .btn-icon {
  position: relative;
  border-color: var(--line);
  color: var(--asphalt);
}

.header-actions .btn-icon svg {
  pointer-events: none;
}

.header-actions .btn-icon:hover {
  background: var(--panel);
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--safety-orange);
  color: var(--asphalt);
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.nav-toggle {
  display: none;
}

/* ---------- breadcrumb (aisle-sign style) ---------- */
.breadcrumb-strip {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--ledger);
  flex-wrap: wrap;
}

.breadcrumb a:hover {
  color: var(--safety-orange);
}

.breadcrumb .sep {
  color: var(--ledger);
}

.breadcrumb .current {
  color: var(--asphalt);
}

/* =========================================================
   FOOTER (loading-dock signage board)
   ========================================================= */
footer.site-footer {
  background: #fff;
  color: var(--ledger);
  border-top: 1px solid var(--line);
  padding: 2rem;
}

.footer-top {
  padding: 56px 0 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 32px;
}

.footer-col h4 {
  color: var(--asphalt);
  font-size: .86rem;
  letter-spacing: .08em;
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--ledger);
  font-size: .88rem;
}

.footer-col a:hover {
  color: var(--safety-orange);
}

.footer-about p {
  font-size: .88rem;
  color: var(--ledger);
  margin-bottom: 18px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social .btn-icon {
  border-color: var(--line);
  color: var(--asphalt);
}

.footer-newsletter input {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--asphalt);
  padding: 11px 12px;
  border-radius: var(--radius);
  font-size: .85rem;
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--ledger);
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom .legal-links {
  display: flex;
  gap: 18px;
}

.footer-payment {
  display: flex;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .7rem;
}

.footer-payment span {
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 2px;
  color: var(--ledger);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background: var(--chalk);
  color: var(--asphalt);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 48px;
  align-items: center;
  padding: 60px 0 0;
}

.hero .eyebrow {
  color: var(--safety-orange-dark);
}

.hero h1 {
  margin: 14px 0 18px;
}

.hero h1 .stroke {
  color: var(--safety-orange);
}

.hero p.lede {
  font-size: 1.05rem;
  color: var(--ledger);
  max-width: 480px;
  margin-bottom: 28px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-stats {
  display: flex;
  gap: 32px;
}

.hero-stats div {
  font-family: var(--font-mono);
}

.hero-stats strong {
  display: block;
  font-size: 1.5rem;
  color: var(--safety-orange);
}

.hero-stats span {
  font-size: .72rem;
  color: var(--ledger);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 20px 0;
}

.hero-art .plate {
  width: 100%;
  aspect-ratio: 4/3.6;
  background: var(--safety-orange);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-art .plate .icon {
  width: 38%;
  height: 38%;
  stroke: #fff;
  stroke-width: 1.3;
}

.hero-art .tag {
  position: absolute;
  bottom: -16px;
  left: 24px;
  background: var(--asphalt);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .72rem;
  padding: 7px 16px;
  border-radius: 2px;
  letter-spacing: .06em;
  white-space: nowrap;
}

/* ---------- fitment finder (hero signature interaction) ---------- */
.fitment {
  background: #fff;
  color: var(--asphalt);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px;
  margin: 34px 0 0;
  box-shadow: var(--shadow-card);
}

.fitment-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: .95rem;
  margin-bottom: 14px;
}

.fitment-head .icon {
  width: 18px;
  height: 18px;
  color: var(--safety-orange-dark);
}

.fitment-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 10px;
}

.fitment-fields select {
  padding: 11px 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
}

.fitment-fields button {
  padding: 0 20px;
}

.hero-bottom-hazard {
  margin-top: 56px;
}

/* =========================================================
   CATEGORY GRID (bin-tag cards)
   ========================================================= */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cat-card {
  background: #fff;
  border: 1px solid #E4E1D9;
  border-radius: var(--radius);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .15s ease, transform .15s ease;
}

.cat-card:hover {
  border-color: var(--safety-orange);
  transform: translateY(-3px);
}

.cat-card .icon-wrap {
  width: 52px;
  height: 52px;
  background: var(--safety-orange);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-card .icon-wrap .icon {
  color: #fff;
  width: 28px;
  height: 28px;
}

.cat-card h3 {
  font-size: 1rem;
}

.cat-card .count {
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--ledger);
}

/* =========================================================
   PRODUCT CARDS SYSTEM — EXECUTIVE DESIGN
   ========================================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}
@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

.product-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.product-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09) !important;
  transform: translateY(-4px) !important;
  border-color: #cbd5e1 !important;
}

.product-media {
  position: relative !important;
  display: flex !important;
  aspect-ratio: 1 / 1;
  background: #f8fafc !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  width: 100% !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

.product-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  padding: 16px !important;
  transition: transform 0.35s ease !important;
}

.product-card:hover .product-media img {
  transform: scale(1.07) !important;
}

.product-hot-badge {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  color: #ffffff !important;
  font-family: var(--font-mono, monospace) !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  padding: 4px 10px !important;
  border-radius: 20px !important;
  letter-spacing: 0.06em !important;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3) !important;
  z-index: 5 !important;
  text-transform: uppercase !important;
  line-height: 1.2 !important;
}

.product-body {
  padding: 16px 18px 14px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  flex: 1 !important;
}

.product-code-main {
  font-family: var(--font-mono, monospace) !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  letter-spacing: 0.05em !important;
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  display: inline-block !important;
  width: fit-content !important;
  margin-bottom: 6px !important;
}

.product-body h3 {
  font-family: var(--font-display, sans-serif) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  font-size: 1.05rem !important;
  letter-spacing: 0.01em !important;
  color: #0f172a !important;
  line-height: 1.3 !important;
  margin: 2px 0 6px !important;
  min-height: 2.7rem !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.product-body h3 a {
  color: #0f172a !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.product-body h3 a:hover {
  color: var(--safety-orange, #5e9bd2) !important;
}

.product-brand-sub {
  font-family: var(--font-mono, monospace) !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  color: #386b96 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 4px !important;
}

.product-foot {
  padding: 14px 16px 16px !important;
  background: #ffffff !important;
  border-top: 1px solid #f1f5f9 !important;
  margin-top: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
}

.product-foot .btn {
  flex: 1 1 0% !important;
  width: 50% !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  font-size: 0.82rem !important;
  padding: 10px 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  margin-top: 0 !important;
  transition: all 0.2s ease !important;
}

.product-foot .btn-primary {
  background: var(--safety-orange, #5e9bd2) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(94, 155, 210, 0.25) !important;
}

.product-foot .btn-primary:hover {
  background: var(--safety-orange-dark, #386b96) !important;
  transform: translateY(-1px) !important;
}

.product-foot .btn-dark {
  background: #17181a !important;
  color: #ffffff !important;
  border: none !important;
}

.product-foot .btn-dark:hover {
  background: #000000 !important;
  transform: translateY(-1px) !important;
}

.stars {
  display: flex;
  align-items: center;
  gap: 5px;
}

.stars .icon {
  width: 13px;
  height: 13px;
  color: var(--safety-yellow);
}

.stars span {
  font-size: .74rem;
  color: var(--ledger);
  font-family: var(--font-mono);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
}

.price {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.15rem;
}

.price-old {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--ledger);
  text-decoration: line-through;
}

.stock {
  font-size: .74rem;
  font-family: var(--font-mono);
}

.stock.in {
  color: var(--signal-green);
}

.stock.low {
  color: var(--safety-orange-dark);
}

.product-foot {
  padding: 0 16px 16px;
}

/* =========================================================
   FEATURE / WHY-US STRIP
   ========================================================= */
.feature-strip {
  background: var(--panel);
  color: var(--asphalt);
  padding: 10px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 1000px;
  margin: 0 auto;
}

.feature-item {
  padding: 30px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature-item:last-child {
  border-right: none;
}

.feature-item .icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--safety-orange);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(94, 155, 210, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-item:nth-child(even) .icon-wrap {
  background: var(--asphalt);
  box-shadow: 0 4px 12px rgba(23, 24, 26, 0.25);
}

.feature-item:hover .icon-wrap {
  transform: translateY(-2px);
}

.feature-item .icon-wrap .icon,
.feature-item>.icon {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  fill: currentColor;
  stroke: currentColor;
}

.feature-item h4 {
  font-size: .92rem;
  margin-bottom: 6px;
}

.feature-item p {
  font-size: .82rem;
  color: var(--ledger);
}

/* ---------- brand badge grid (Matching User's Own Brands & Big Logos) ---------- */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid #D1D5DB;
  background: #D1D5DB;
  gap: 1px;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 24px;
}

.brand-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  aspect-ratio: 2 / 1;
  background: #ffffff;
  padding: 20px 24px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
}

.brand-badge:hover {
  background: #F9FAFB;
  z-index: 2;
}

.brand-badge img {
  max-height: 80px;
  max-width: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.brand-badge:hover img {
  transform: scale(1.08);
}

.brand-badge span.brand-text-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: #1F2937;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

.brand-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.brand-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px;
  text-align: center;
}

.brand-card .badge-mark {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: .04em;
  color: var(--asphalt);
  margin-bottom: 10px;
}

.brand-card .badge-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--safety-orange-dark);
  background: var(--panel);
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.brand-card p {
  font-size: .85rem;
  color: var(--ledger);
}

/* ---------- newsletter ---------- */
.newsletter {
  background: var(--safety-orange);
  color: #fff;
  padding: 80px 0;
}

.newsletter .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 40px 24px;
  flex-wrap: wrap;
}

.newsletter h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.newsletter p {
  font-size: .9rem;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  width: 260px;
  padding: 12px 14px;
  border: 2px solid var(--asphalt);
  border-radius: 3px;
  background: var(--chalk);
}

/* =========================================================
   SHOP PAGE
   ========================================================= */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

.filters {
  background: #fff;
  border: 1px solid #E4E1D9;
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 150px;
}

.filters h4 {
  font-family: var(--font-display);
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--asphalt);
}

.filter-group {
  margin-bottom: 22px;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
  font-size: .87rem;
}

.filter-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--safety-orange);
}

.filter-row label {
  flex: 1;
  cursor: pointer;
}

.filter-row .n {
  color: var(--ledger);
  font-family: var(--font-mono);
  font-size: .76rem;
}

.price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-inputs input {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: .85rem;
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.shop-toolbar .result-count {
  font-size: .88rem;
  color: var(--ledger);
}

.shop-toolbar .sort select {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  font-size: .85rem;
}

.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: .78rem;
}

.chip button {
  background: none;
  border: none;
  color: var(--ledger);
  display: flex;
}

/* =========================================================
   PAGINATION SYSTEM — EXECUTIVE & FLEXIBLE
   ========================================================= */
.pagination {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 40px !important;
  flex-wrap: wrap !important;
}

.pagination .btn,
.pagination button,
.pagination a {
  min-width: 40px !important;
  height: 40px !important;
  padding: 0 14px !important;
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
  color: #1e293b !important;
  border-radius: 8px !important;
  font-family: var(--font-mono, monospace) !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
}

.pagination .btn:hover:not(.disabled):not(:disabled),
.pagination button:hover:not(.disabled):not(:disabled) {
  border-color: var(--safety-orange, #5e9bd2) !important;
  color: var(--safety-orange, #5e9bd2) !important;
  background: #f8fafc !important;
  transform: translateY(-1px) !important;
}

.pagination .btn-dark,
.pagination button.active,
.pagination .active {
  background: #17181a !important;
  color: #ffffff !important;
  border-color: #17181a !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2) !important;
}

.pagination .disabled,
.pagination button:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  border-color: #e2e8f0 !important;
  background: #f8fafc !important;
  transform: none !important;
}

/* =========================================================
   PRODUCT DETAIL PAGE
   ========================================================= */
.pd-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.pd-gallery-main {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 12px;
}

.pd-gallery-main .icon {
  width: 38%;
  height: 38%;
  color: var(--safety-orange);
  stroke-width: 1.3;
}

.pd-gallery-thumbs {
  display: flex;
  gap: 10px;
}

.pd-gallery-thumbs .thumb {
  width: 70px;
  height: 70px;
  background: var(--panel);
  border-radius: 4px;
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-gallery-thumbs .thumb.active {
  border-color: var(--safety-orange);
}

.pd-gallery-thumbs .thumb .icon {
  width: 55%;
  height: 55%;
  color: var(--ledger);
}

.pd-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.pd-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.pd-info .sku-row {
  display: flex;
  gap: 16px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--ledger);
  margin: 10px 0 16px;
}

.pd-info h1 {
  font-family: var(--font-body);
  text-transform: none;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0;
}

.pd-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 18px 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pd-price-row .price {
  font-size: 2rem;
}

.pd-info .stock {
  font-size: .85rem;
}

.pd-fit-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #E4E1D9;
  border-left: 3px solid var(--safety-orange);
  padding: 12px 14px;
  border-radius: 3px;
  font-size: .85rem;
  margin: 16px 0;
}

.pd-fit-note .icon {
  width: 18px;
  height: 18px;
  color: var(--safety-orange-dark);
  flex-shrink: 0;
  margin-top: 2px;
}

.qty-add-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
  margin: 20px 0;
}

.qty-stepper {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  height: 48px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.qty-stepper:focus-within {
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.05);
}

.qty-stepper button {
  width: 48px;
  height: 100%;
  background: #f8fafc;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qty-stepper button:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.qty-stepper button:active {
  background: #cbd5e1;
}

.qty-stepper input {
  width: 56px;
  height: 100%;
  text-align: center;
  border: none;
  background: #ffffff;
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  font-size: 1.05rem;
  color: #0f172a;
  outline: none;
}

.qty-stepper input[type=number]::-webkit-inner-spin-button, 
.qty-stepper input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}
.qty-stepper input[type=number] {
  -moz-appearance: textfield;
}

/* Product Perks UI */
.pd-perks {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
  padding: 24px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.perk-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
}

.perk-icon.bg-green {
  background: #f0fdf4;
  color: #16a34a;
}

.perk-icon.bg-blue {
  background: #eff6ff;
  color: #2563eb;
}

.perk-icon svg {
  width: 24px;
  height: 24px;
}

.perk-text {
  display: flex;
  flex-direction: column;
}

.perk-text strong {
  font-size: 1.05rem;
  color: #0f172a;
  font-weight: 700;
  margin-bottom: 2px;
}

.perk-text span {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.4;
}

.pd-meta-list {
  font-size: .85rem;
  color: var(--ledger);
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 18px;
}

.pd-meta-list b {
  color: var(--asphalt);
  font-weight: 600;
}

.pd-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 2px solid var(--line);
  margin: 56px 0 0;
}

.pd-tab-btn {
  background: none;
  border: none;
  padding: 12px 20px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: .85rem;
  color: var(--ledger);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.pd-tab-btn.active {
  color: var(--asphalt);
  border-color: var(--safety-orange);
}

.pd-tab-panel {
  display: none;
  padding: 28px 0;
  max-width: 760px;
}

.pd-tab-panel.active {
  display: block;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

.spec-table tr {
  border-bottom: 1px solid #E4E1D9;
}

.spec-table td {
  padding: 11px 4px;
}

.spec-table td:first-child {
  color: var(--ledger);
  width: 40%;
  font-family: var(--font-mono);
  font-size: .82rem;
}

.review {
  padding: 18px 0;
  border-bottom: 1px solid #E4E1D9;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.review-head b {
  font-size: .9rem;
}

.review-head .date {
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--ledger);
}

.review p {
  font-size: .9rem;
  color: #3c3c3c;
}

.related-heading {
  margin: 56px 0 20px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

/* =========================================================
   CART PAGE
   ========================================================= */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 36px;
  align-items: start;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table thead th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ledger);
  padding-bottom: 14px;
  border-bottom: 2px solid var(--asphalt);
}

.cart-row td {
  padding: 18px 8px;
  border-bottom: 1px solid #E4E1D9;
  vertical-align: middle;
}

.cart-item {
  display: flex;
  gap: 14px;
  align-items: center;
}

.cart-item .thumb {
  width: 64px;
  height: 64px;
  background: var(--panel);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-item .thumb .icon {
  width: 55%;
  height: 55%;
  color: var(--safety-orange);
}

.cart-item .name {
  font-weight: 600;
  font-size: .92rem;
  margin-bottom: 4px;
}

.cart-item .sku {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--ledger);
}

.remove-link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  color: var(--signal-red);
  margin-top: 6px;
  background: none;
  border: none;
}

.remove-link .icon {
  width: 13px;
  height: 13px;
}

.line-total {
  font-family: var(--font-mono);
  font-weight: 600;
}

.summary-card {
  background: #fff;
  border: 1px solid #E4E1D9;
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: 150px;
}

.summary-card h3 {
  font-size: .95rem;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--asphalt);
  margin-bottom: 16px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: .9rem;
  margin-bottom: 12px;
  color: #3c3c3c;
}

.summary-line.total {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--asphalt);
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
}

.promo-row {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}

.promo-row input {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: .85rem;
}

.empty-cart {
  text-align: center;
  padding: 80px 20px;
}

.empty-cart .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  color: var(--ledger);
}

/* =========================================================
   CHECKOUT
   ========================================================= */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 44px;
  align-items: start;
}

.checkout-steps {
  display: flex;
  gap: 22px;
  margin-bottom: 32px;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--ledger);
}

.checkout-steps .step.active {
  color: var(--asphalt);
  font-weight: 600;
}

.checkout-steps .step.active span {
  background: var(--safety-orange);
  color: var(--asphalt);
}

.checkout-steps .step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--line);
  color: #fff;
  margin-right: 6px;
  font-size: .7rem;
}

.form-block {
  background: #fff;
  border: 1px solid #E4E1D9;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}

.form-block h3 {
  font-size: .95rem;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #E4E1D9;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: .78rem;
  color: var(--ledger);
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: .9rem;
}

.pay-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pay-option {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 12px 14px;
  font-size: .9rem;
}

.pay-option input {
  accent-color: var(--safety-orange);
}

/* =========================================================
   ABOUT PAGE
   ========================================================= */
.about-hero {
  background: var(--chalk);
  color: var(--asphalt);
  text-align: center;
  padding: 70px 0;
}

.about-hero p {
  max-width: 600px;
  margin: 16px auto 0;
  color: var(--ledger);
}

.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid #E4E1D9;
  border-radius: 6px;
  overflow: hidden;
  margin-top: -46px;
  position: relative;
  box-shadow: var(--shadow-card);
}

.stat-band div {
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid #E4E1D9;
}

.stat-band div:last-child {
  border-right: none;
}

.stat-band strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--safety-orange-dark);
}

.stat-band span {
  font-size: .78rem;
  color: var(--ledger);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-split .art {
  background: var(--panel);
  border-radius: 6px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-split .art .icon {
  width: 36%;
  height: 36%;
  color: var(--safety-orange);
}

.about-split p {
  color: #3c3c3c;
  margin-bottom: 14px;
}

.timeline {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  display: flex;
  gap: 20px;
  padding-bottom: 30px;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 29px;
  top: 38px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-year {
  font-family: var(--font-mono);
  font-weight: 700;
  background: var(--safety-orange);
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  flex-shrink: 0;
}

.timeline-body h4 {
  font-family: var(--font-body);
  text-transform: none;
  font-size: 1rem;
  margin-bottom: 6px;
}

.timeline-body p {
  font-size: .88rem;
  color: var(--ledger);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

.team-card {
  text-align: center;
  background: #ffffff;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.team-card .avatar {
  width: 130px;
  height: 130px;
  margin: 0 auto 14px auto;
  border-radius: 50%;
  overflow: hidden;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.team-card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card .avatar .icon {
  width: 50%;
  height: 50%;
  color: var(--ledger);
}

.team-card h4 {
  font-family: var(--font-body);
  text-transform: none;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--asphalt);
}

.team-card span {
  font-size: 0.85rem;
  color: var(--ledger);
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 44px;
}

.contact-card-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.contact-info-card {
  display: flex;
  gap: 14px;
  background: #fff;
  border: 1px solid #E4E1D9;
  border-radius: var(--radius);
  padding: 18px;
}

.contact-info-card .icon-wrap {
  width: 42px;
  height: 42px;
  background: var(--safety-orange);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-card .icon-wrap .icon {
  width: 20px;
  height: 20px;
  color: #fff;
}

.contact-info-card h4 {
  font-family: var(--font-body);
  text-transform: none;
  font-size: .9rem;
  margin-bottom: 4px;
}

.contact-info-card p {
  font-size: .85rem;
  color: var(--ledger);
}

.map-plate {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: var(--ledger);
}

.map-plate .icon {
  width: 34px;
  height: 34px;
  color: var(--safety-orange);
}

.faq-item {
  border-bottom: 1px solid #E4E1D9;
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 4px;
  background: none;
  border: none;
  text-align: left;
  font-weight: 600;
  font-size: .92rem;
}

.faq-q .icon {
  width: 16px;
  height: 16px;
  transition: transform .2s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-q .icon {
  transform: rotate(90deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  font-size: .88rem;
  color: var(--ledger);
}

.faq-item.open .faq-a {
  max-height: 200px;
  padding-bottom: 16px;
}

/* =========================================================
   ACCOUNT / LOGIN
   ========================================================= */
.auth-wrap {
  max-width: 420px;
  margin: 0 auto;
}

.auth-tabs {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 26px;
}

.auth-tabs button {
  flex: 1;
  padding: 13px;
  background: #fff;
  border: none;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: .85rem;
  color: var(--ledger);
}

.auth-tabs button.active {
  background: var(--asphalt);
  color: #fff;
}

.auth-panel {
  display: none;
}

.auth-panel.active {
  display: block;
}

.field-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
}

.field-check input {
  accent-color: var(--safety-orange);
}

.auth-foot {
  text-align: center;
  font-size: .85rem;
  color: var(--ledger);
  margin-top: 18px;
}

/* =========================================================
   MISC / GENERIC PAGE BLOCKS
   ========================================================= */
.page-head {
  background: var(--chalk);
  color: var(--asphalt);
  padding: 46px 0;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.bg-steel {
  background: var(--panel);
}

.bg-white {
  background: #fff;
}

.text-center {
  text-align: center;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--asphalt);
  color: #fff;
  padding: 14px 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .4);
  transform: translateY(120%);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
  z-index: 200;
  border-left: 3px solid var(--safety-orange);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-item {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .pd-layout {
    grid-template-columns: 1fr;
  }

  .cart-layout,
  .checkout-layout,
  .contact-layout,
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }

  .about-split {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .utility-bar .marquee span:nth-child(n+2) {
    display: none;
  }

  .site-header {
    position: relative;
  }

  .main-nav,
  .header-search {
    display: none;
  }
  
  .main-nav.mobile-open {
    display: flex !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    border-top: 1px solid var(--line);
    gap: 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: -1;
  }

  .fitment-fields {
    grid-template-columns: 1fr 1fr;
  }

  .fitment-fields button {
    grid-column: 1 / -1;
  }

  .cat-grid,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-band div:nth-child(2) {
    border-right: none;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-item {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  
  .feature-item:last-child {
    border-bottom: none;
  }

  .brand-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .brand-badge {
    min-height: 90px;
    padding: 12px;
  }
  
  .brand-badge img {
    max-height: 50px;
  }
  
  .brand-badge span.brand-text-logo {
    font-size: 1rem;
  }
}

/* =========================================================
   PRELOADER
   ========================================================= */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--chalk);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-overlay img {
  width: 25rem;
  height: auto;
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  opacity: 0;
}

.animate.in-view.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.animate.in-view.slide-up {
  animation: slideUp 0.8s ease forwards;
}

/* ============ BLOG ============ */
.blog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.blog-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  font-size: 0.85rem;
  color: var(--ledger);
  margin-bottom: 8px;
  display: flex;
  gap: 12px;
}

.blog-card h3 {
  margin: 0 0 12px 0;
  font-size: 1.25rem;
  line-height: 1.3;
}

.blog-card p {
  color: var(--ledger);
  margin: 0 0 20px 0;
  flex-grow: 1;
  font-size: 0.95rem;
  line-height: 1.5;
}

.blog-card .read-more {
  color: var(--safety-orange);
  font-weight: 600;
  font-size: 0.9rem;
}

.blog-detail-content h2 {
  margin-top: 32px;
  margin-bottom: 16px;
}

.blog-detail-content h3 {
  margin-top: 24px;
  margin-bottom: 12px;
}

.blog-detail-content ul {
  margin-bottom: 24px;
  padding-left: 20px;
}

.blog-detail-content li {
  margin-bottom: 8px;
}

/* --- Blog Enhancement Overrides --- */
.blog-card {
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
  border-color: var(--safety-orange);
}

.blog-card-meta {
  color: var(--safety-orange);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
}

.blog-card h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.blog-card p {
  color: var(--asphalt);
  font-size: 1rem;
  opacity: 0.8;
}

.blog-card .read-more {
  display: inline-block;
  margin-top: auto;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.blog-card:hover .read-more {
  border-color: var(--safety-orange);
}

/* --- Mobile Menu Fix --- */
@media (max-width: 720px) {
  .site-header {
    position: sticky;
    /* Keep it sticky */
  }

  .header-row {
    position: static;
    /* Let absolute children position relative to site-header */
  }

  .main-nav.mobile-open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 10px 20px 20px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    align-items: flex-start;
    border-top: 1px solid var(--line);
    border-bottom: 3px solid var(--safety-orange);
  }

  .main-nav.mobile-open a {
    width: 100%;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.1rem;
  }

  .main-nav.mobile-open a:last-child {
    border-bottom: none;
  }
}

/* --- Additional Responsive Fixes --- */

/* 1. Marquee Top Strip */
.top-strip {
  overflow: hidden;
  white-space: nowrap;
}

.top-strip .container {
  max-width: none !important;
  width: max-content;
  padding-left: 100vw !important;
  justify-content: flex-start !important;
  animation: marquee 25s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* 2. Responsive Grids */
@media (max-width: 900px) {
  .brand-page-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 720px) {
  .brand-page-grid {
    grid-template-columns: 1fr !important;
  }

  .form-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 720px) {
  .brand-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ============ WHATSAPP BUTTON ============ */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.05);
  background-color: #1ebe57;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.whatsapp-icon {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

@media (max-width: 720px) {
  .whatsapp-float {
    width: 54px;
    height: 54px;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-icon {
    width: 28px;
    height: 28px;
  }
}

/* =========================================================
   EXTRA SMALL MOBILE FIXES (< 480px)
   ========================================================= */
@media (max-width: 480px) {
  /* Prevent any horizontal scrolling/zooming out */
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  /* Prevent content from touching corners */
  .container {
    padding: 0 16px !important;
  }
  
  .header-row {
    gap: 8px !important;
    padding: 8px 0 !important;
  }

  /* Make logo smaller to fit */
  .logo-img {
    height: 2.2rem !important;
  }
  .logo .word {
    font-size: 1rem !important;
  }
  .logo .word small {
    font-size: 0.5rem !important;
  }

  /* Adjust header actions to keep hamburger menu visible */
  .header-actions {
    gap: 4px !important;
  }
  
  /* Hide the Inquiry Now button on extra small screens to make room for the hamburger menu */
  .header-actions .btn-primary {
    display: none !important;
  }

  /* Slightly shrink the icon buttons (cart, user, hamburger) */
  .header-actions .btn-icon {
    width: 36px !important;
    height: 36px !important;
  }
  
  /* Responsive typography */
  h1 {
    font-size: 1.6rem !important;
  }
  h2 {
    font-size: 1.3rem !important;
  }
  
  /* Fix cascade issue where 720px rule overrode 480px rule */
  .cat-grid,
  .product-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Fix hero buttons overflowing */
  .hero-ctas {
    flex-direction: column;
    gap: 10px !important;
  }
  .hero-ctas .btn {
    width: 100%;
  }
  
  /* Fix Fitment Search overflowing */
  .fitment-fields {
    grid-template-columns: 1fr !important;
  }
  .fitment-fields button {
    grid-column: 1 / -1 !important;
  }

  /* Adjust product foot buttons if they stay in grid somehow */
  .product-foot {
    flex-wrap: wrap !important;
  }
}