/* ============================================================
   SOUTHERN AUTO PARTS CANADA — DESIGN TOKENS
   Display: Oswald (condensé, industriel)
   Corps: Inter
   Technique: JetBrains Mono
   Signature: motif "tôle larmée" (diamond plate) + ligne de route animée
   ============================================================ */
:root {
  --navy: #101826;
  --navy-2: #182338;
  --ink: #16202B;
  --steel: #55636F;
  --steel-light: #8A96A0;
  --line: #DDE3E8;
  --bg: #F1F3F5;
  --bg-card: #FFFFFF;
  --off: #F7F8F9;

  --orange: #E85D04;
  --orange-dark: #C24C02;
  --red: #B3122D;
  --forest: #1F7A4D;
  --amber: #C98A02;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(16, 24, 38, .06), 0 1px 1px rgba(16, 24, 38, .04);
  --shadow-md: 0 6px 20px -4px rgba(16, 24, 38, .14), 0 2px 6px rgba(16, 24, 38, .06);
  --shadow-lg: 0 20px 50px -12px rgba(16, 24, 38, .28);

  --ff-display: 'Oswald', sans-serif;
  --ff-body: 'Inter', sans-serif;
  --ff-mono: 'JetBrains Mono', monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--ff-display);
  margin: 0;
  letter-spacing: .01em;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.mono {
  font-family: var(--ff-mono);
}

/* ---------- Diamond plate texture (signature motif) ---------- */
.plate-texture {
  background-color: var(--navy);
  background-image:
    radial-gradient(circle at 4px 4px, rgba(255, 255, 255, .055) 1.4px, transparent 1.6px);
  background-size: 16px 16px;
}

.plate-strip {
  height: 10px;
  background-color: var(--orange);
  background-image: repeating-linear-gradient(135deg, rgba(0, 0, 0, .14) 0 6px, transparent 6px 12px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: .02em;
  text-transform: uppercase;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--orange-dark);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, .1);
}

.btn-outline-dark {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline-dark:hover {
  background: var(--navy);
  color: #fff;
}

.btn-ghost {
  background: var(--off);
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: #eceff1;
}

.btn-sm {
  padding: 9px 14px;
  font-size: 12.5px;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: .5;
  cursor: not-allowed;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(16, 24, 38, .86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: background .25s ease;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.brand-text {
  line-height: 1.05;
}

.brand-text .b1 {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.brand-text .b2 {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 11.5px;
  color: var(--orange);
  letter-spacing: .22em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: 30px;
}

.main-nav a {
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  position: relative;
  padding: 6px 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width .2s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav a.active {
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  position: relative;
  border: 1px solid transparent;
  transition: background .15s ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, .16);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--orange);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--navy);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  padding: 8px 14px;
  width: 280px;
}

.header-search input {
  background: transparent;
  border: 0;
  outline: 0;
  color: #fff;
  font-size: 13.5px;
  width: 100%;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, .5);
}

.header-search svg {
  color: rgba(255, 255, 255, .6);
  flex-shrink: 0;
}

.hamburger {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(100deg, rgba(16, 24, 38, .94) 0%, rgba(16, 24, 38, .78) 38%, rgba(16, 24, 38, .35) 65%, rgba(16, 24, 38, .15) 100%),
    url('images/img1.jpeg') center 62%/cover no-repeat;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--bg));
}

.hero-roadline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 64px;
  height: 4px;
  overflow: hidden;
  opacity: .55;
}

.hero-roadline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, var(--orange) 0 46px, transparent 46px 84px);
  animation: roadmove 2.6s linear infinite;
}

@keyframes roadmove {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-130px);
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 120px 0 90px;
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--orange);
}

.hero h1 {
  color: #fff;
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.05;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--orange);
}

.hero p.lead {
  color: rgba(255, 255, 255, .82);
  font-size: 16.5px;
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-badges {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.hero-badge svg {
  color: var(--orange);
  flex-shrink: 0;
}

.hero-badge span {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .85);
}

/* ---------- Advanced search panel ---------- */
.search-panel-wrap {
  position: relative;
  z-index: 20;
  margin-top: -58px;
  margin-bottom: 64px;
}

.search-panel {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  max-width: 920px;
  margin: 0 auto;
}

.search-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 8px 0;
}

.search-tab {
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--steel);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border: 0;
  background: transparent;
}

.search-tab.active {
  background: var(--off);
  color: var(--navy);
}

.search-body {
  background: var(--off);
  border-radius: 0 var(--radius-sm) var(--radius-sm) var(--radius-sm);
  padding: 20px;
}

.search-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.field label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 6px;
}

.field select,
.field input {
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
}

.field select:focus,
.field input:focus {
  border-color: var(--orange);
}

.search-view {
  display: none;
}

.search-view.active {
  display: block;
}

/* ---------- Section shells ---------- */
.section {
  padding: 76px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 38px;
  flex-wrap: wrap;
}

.section-eyebrow {
  color: var(--orange);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.section-head h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
}

.section-sub {
  color: var(--steel);
  font-size: 15px;
  margin-top: 8px;
  max-width: 520px;
}

.section.on-navy {
  background: var(--navy);
  color: #fff;
}

.section.on-navy .section-head h2 {
  color: #fff;
}

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

.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 220px;
  background: linear-gradient(160deg, var(--navy-2), var(--navy));
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  border: 1px solid rgba(16, 24, 38, .06);
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image: repeating-linear-gradient(45deg, #fff 0 2px, transparent 2px 14px);
}

.cat-card svg {
  color: var(--orange);
  margin-bottom: 14px;
  position: relative;
}

.cat-card h3 {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  position: relative;
  margin-bottom: 4px;
}

.cat-card .count {
  color: rgba(255, 255, 255, .62);
  font-size: 12.5px;
  position: relative;
  font-family: var(--ff-mono);
}

/* ---------- Why choose us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.why-card .ic {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #FDEDE0;
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--navy);
  text-transform: none;
  font-family: var(--ff-body);
}

.why-card p {
  font-size: 13.5px;
  color: var(--steel);
  line-height: 1.5;
}

/* ---------- Product cards ---------- */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.prod-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.prod-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}

.prod-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.prod-media {
  position: relative;
  aspect-ratio: 1/1;
  background: #F4F5F6;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.prod-media img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.prod-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #fff;
}

.badge-stock {
  background: var(--forest);
}

.badge-order {
  background: var(--amber);
}

.badge-sale {
  background: var(--red);
}

.prod-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--steel);
}

.prod-fav:hover {
  color: var(--red);
}

.prod-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.prod-brand {
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.prod-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
  cursor: pointer;
}

.prod-name:hover {
  color: var(--orange);
}

.prod-ref {
  font-family: var(--ff-mono);
  font-size: 11.5px;
  color: var(--steel);
}

.prod-compat {
  font-size: 12px;
  color: var(--steel-light);
  line-height: 1.4;
}

.prod-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--steel);
}

.prod-rating .stars {
  color: var(--amber);
  letter-spacing: 1px;
}

.prod-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  gap: 10px;
}

.prod-price {
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}

.prod-price .old {
  font-family: var(--ff-body);
  font-size: 12.5px;
  color: var(--steel-light);
  text-decoration: line-through;
  font-weight: 500;
  margin-right: 4px;
}

.add-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s ease, transform .15s ease;
}

.add-btn:hover {
  background: var(--orange);
}

.add-btn.flying {
  animation: pop .35s ease;
}

@keyframes pop {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.28);
  }

  100% {
    transform: scale(1);
  }
}

/* ---------- Brands ---------- */
.brand-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 36px;
  padding: 34px 0;
}

.brand-logo {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .02em;
  color: var(--steel-light);
  text-transform: uppercase;
  filter: grayscale(1);
  opacity: .8;
  transition: opacity .2s ease, color .2s ease;
}

.brand-logo:hover {
  opacity: 1;
  color: var(--navy);
}

/* ---------- Testimonials ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.testi-stars {
  color: var(--amber);
  font-size: 14px;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.testi-quote {
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 20px;
}

.testi-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--ff-display);
  flex-shrink: 0;
}

.testi-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
}

.testi-role {
  font-size: 12px;
  color: var(--steel);
}

/* ---------- Newsletter ---------- */
.newsletter {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 93, 4, .22), transparent 70%);
}

.newsletter h3 {
  color: #fff;
  font-size: 24px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.newsletter p {
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.newsletter-form input {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 14px;
  width: 260px;
  outline: 0;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, .5);
}

.newsletter-form input:focus {
  border-color: var(--orange);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, .7);
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 44px;
}

.footer-brand p {
  font-size: 13.5px;
  line-height: 1.6;
  margin-top: 14px;
  color: rgba(255, 255, 255, .55);
  max-width: 280px;
}

.footer-col h5 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 16px;
  font-family: var(--ff-body);
  font-weight: 700;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 13.5px;
  color: rgba(255, 255, 255, .62);
}

.footer-col a:hover {
  color: var(--orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .45);
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social a:hover {
  background: var(--orange);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 12.5px;
  color: var(--steel);
  padding: 20px 0 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--steel);
}

.breadcrumb a:hover {
  color: var(--orange);
}

.breadcrumb .sep {
  color: var(--line);
}

.breadcrumb .current {
  color: var(--navy);
  font-weight: 600;
}

/* ---------- Catalogue page ---------- */
.catalogue-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 28px;
  padding: 24px 0 76px;
  align-items: start;
}

.filters {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: 96px;
}

.filter-group {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.filter-group:first-child {
  padding-top: 0;
}

.filter-group:last-child {
  border-bottom: 0;
}

.filter-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .03em;
  cursor: pointer;
}

.filter-body {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--ink);
}

.check-row label {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}

.check-row input {
  accent-color: var(--orange);
  width: 15px;
  height: 15px;
}

.check-row .n {
  color: var(--steel-light);
  font-family: var(--ff-mono);
  font-size: 11.5px;
}

.range-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.range-row input[type=number] {
  width: 100%;
  padding: 8px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.stars-filter span {
  color: var(--amber);
}

.catalogue-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 22px;
}

.results-count {
  font-size: 13.5px;
  color: var(--steel);
}

.results-count b {
  color: var(--navy);
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sort-select {
  padding: 9px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: #fff;
}

.view-toggle {
  display: flex;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.view-toggle button {
  width: 36px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 0;
  color: var(--steel);
}

.view-toggle button.active {
  background: var(--navy);
  color: #fff;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.pagination button {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: #fff;
  font-weight: 700;
  font-size: 13px;
  color: var(--steel);
}

.pagination button.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* ---------- Product detail ---------- */
.pd-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  padding: 28px 0 40px;
}

.pd-gallery-main {
  aspect-ratio: 1/1;
  background: #F4F5F6;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 14px;
  cursor: zoom-in;
}

.pd-gallery-main img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  transition: transform .3s ease;
}

.pd-gallery-main:hover img {
  transform: scale(1.12);
}

.pd-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.pd-thumb {
  aspect-ratio: 1/1;
  background: #F4F5F6;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  cursor: pointer;
}

.pd-thumb.active {
  border-color: var(--orange);
}

.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pd-title {
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
  margin: 10px 0 10px;
  line-height: 1.2;
}

.pd-ref-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.pd-ref {
  font-family: var(--ff-mono);
  font-size: 13.5px;
  background: var(--off);
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.copy-btn {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .03em;
  border: 0;
  background: transparent;
}

.pd-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13.5px;
  color: var(--steel);
}

.pd-brand-row b {
  color: var(--navy);
}

.pd-rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 13.5px;
  color: var(--steel);
}

.pd-rating-row .stars {
  color: var(--amber);
  letter-spacing: 1px;
}

.pd-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}

.pd-price {
  font-family: var(--ff-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--navy);
}

.pd-price-old {
  font-size: 16px;
  color: var(--steel-light);
  text-decoration: line-through;
}

.pd-avail {
  margin-bottom: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
}

.pill-stock {
  background: var(--forest);
}

.pill-order {
  background: var(--amber);
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.qty-stepper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-stepper button {
  width: 38px;
  height: 40px;
  background: var(--off);
  border: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}

.qty-stepper input {
  width: 46px;
  text-align: center;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  height: 40px;
  font-size: 14px;
}

.pd-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.pd-actions .btn {
  flex: 1;
  min-width: 180px;
}

.pd-ship-note {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--steel);
  padding: 14px;
  background: var(--off);
  border-radius: var(--radius-sm);
}

.pd-ship-note svg {
  color: var(--forest);
  flex-shrink: 0;
}

.pd-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 2px solid var(--line);
  margin-top: 56px;
  overflow-x: auto;
}

.pd-tab-btn {
  padding: 14px 20px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--steel);
  border: 0;
  background: transparent;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
}

.pd-tab-btn.active {
  color: var(--navy);
  border-color: var(--orange);
}

.pd-tab-panel {
  display: none;
  padding: 32px 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink);
}

.pd-tab-panel.active {
  display: block;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.spec-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}

.spec-table td:first-child {
  color: var(--steel);
  width: 220px;
  font-weight: 600;
}

.compat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.compat-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--off);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--steel);
}

.compat-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}

.doc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.doc-row svg {
  color: var(--red);
  flex-shrink: 0;
}

.doc-row a {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--navy);
}

.review-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.review-row:last-child {
  border: 0;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.review-name {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--navy);
}

.review-verified {
  font-size: 11px;
  color: var(--forest);
  font-weight: 700;
  text-transform: uppercase;
}

/* ---------- Cart page ---------- */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
  padding: 28px 0 76px;
  align-items: start;
}

.cart-item {
  display: grid;
  grid-template-columns: 84px 1fr auto auto auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
}

.cart-item-img {
  width: 84px;
  height: 84px;
  background: #F4F5F6;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-img img {
  width: 76%;
  height: 76%;
  object-fit: contain;
}

.cart-item-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 4px;
}

.cart-item-ref {
  font-family: var(--ff-mono);
  font-size: 11.5px;
  color: var(--steel);
}

.cart-item-price {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
}

.cart-remove {
  color: var(--steel);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #fff;
}

.cart-remove:hover {
  color: var(--red);
  border-color: var(--red);
}

.cart-empty {
  text-align: center;
  padding: 70px 20px;
  background: var(--bg-card);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.cart-empty svg {
  color: var(--line);
  margin-bottom: 16px;
}

.summary-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 96px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--steel);
  padding: 9px 0;
}

.summary-row.total {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  border-top: 1.5px solid var(--line);
  margin-top: 8px;
  padding-top: 16px;
}

.promo-row {
  display: flex;
  gap: 8px;
  margin: 14px 0;
}

.promo-row input {
  flex: 1;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.checkout-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.checkout-note {
  font-size: 12px;
  color: var(--steel);
  text-align: center;
  margin-top: 10px;
  line-height: 1.5;
}

.secure-badges {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 18px;
  color: var(--steel-light);
}

/* ---------- Cart drawer ---------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 38, .55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 400;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  max-width: 92vw;
  background: #fff;
  z-index: 401;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0, 0, 0, .2);
}

.drawer.open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.drawer-head h3 {
  font-size: 16px;
  text-transform: uppercase;
  color: var(--navy);
}

.drawer-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--off);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--steel);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
}

.drawer-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.drawer-item-img {
  width: 60px;
  height: 60px;
  background: #F4F5F6;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-item-img img {
  width: 76%;
  height: 76%;
  object-fit: contain;
}

.drawer-item-info {
  flex: 1;
}

.drawer-item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 3px;
}

.drawer-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--steel);
}

.drawer-foot {
  padding: 20px 22px;
  border-top: 1px solid var(--line);
}

.drawer-foot .summary-row {
  padding: 6px 0;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 500;
  background: var(--navy);
  color: #fff;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: all .25s ease;
  box-shadow: var(--shadow-lg);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast svg {
  color: var(--forest);
}

/* ---------- Views ---------- */
.view {
  display: none;
}

.view.active {
  display: block;
}

/* ---------- Skeleton loader ---------- */
.skeleton {
  position: relative;
  overflow: hidden;
  background: #E9EBEE;
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent);
  animation: shimmer 1.3s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .prod-grid,
  .prod-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testi-grid {
    grid-template-columns: 1fr;
  }

  .catalogue-layout {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }

  .pd-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .summary-card {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {

  .main-nav,
  .header-search {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-inner {
    padding: 90px 0 60px;
  }

  .hero-badges {
    gap: 16px;
  }

  .cat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .prod-grid,
  .prod-grid.cols-4 {
    grid-template-columns: 1fr 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 52px 0;
  }

  .newsletter {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .search-fields {
    grid-template-columns: 1fr 1fr;
  }

  .pd-title {
    font-size: 21px;
  }

  .pd-price {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .cat-grid {
    grid-template-columns: 1fr;
  }

  .prod-grid,
  .prod-grid.cols-4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 60px 1fr;
    grid-template-areas: "img name" "img price" "img qty";
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}