/* ================================================================
   ALTRA BUY — Main Stylesheet
   Design: Industrial precision meets modern commerce
   Fonts: Inter (headings and body)
================================================================ */

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

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  /* Brand */
  --ab-red:       #f48121;
  --ab-red-dark:  #d46e1b;
  --ab-red-light: #fce7d1;
  --ab-navy:      #0f1e2e;
  --ab-navy-mid:  #1b2f45;
  --ab-navy-soft: #253a52;
  --ab-slate:     #3d5166;
  --ab-steel:     #6b8297;
  --ab-silver:    #c8d4de;
  --ab-ice:       #f0f4f7;
  --ab-white:     #ffffff;

  /* Semantic */
  --ab-success:   #1a7a4a;
  --ab-warning:   #b87a00;
  --ab-danger:    #c62828;
  --ab-info:      #0d6efd;

  /* Text */
  --ab-text:      #1a2633;
  --ab-text-mid:  #4b5563;
  --ab-text-soft: #758295;
  --ab-text-hint: #9aacba;

  /* Surfaces */
  --ab-bg:        #f7fafc;
  --ab-surface:   #ffffff;
  --ab-border:    #dde4ea;
  --ab-border-mid:#c8d4de;

  /* Typography */
  --font-display: 'Inter', Arial, sans-serif;
  --font-body:    'Inter', Arial, sans-serif;

  /* Spacing */
  --ab-radius:    8px;
  --ab-radius-lg: 12px;
  --ab-radius-xl: 20px;

  /* Shadows */
  --ab-shadow-sm: 0 1px 3px rgba(15,30,46,.06), 0 1px 2px rgba(15,30,46,.04);
  --ab-shadow:    0 4px 12px rgba(15,30,46,.08), 0 2px 4px rgba(15,30,46,.05);
  --ab-shadow-lg: 0 12px 32px rgba(15,30,46,.12), 0 4px 8px rgba(15,30,46,.06);

  /* Transitions */
  --ab-t:         150ms ease;
  --ab-t-med:     250ms ease;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ab-text);
  background: var(--ab-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--ab-navy);
  line-height: 1.2;
}

a { color: var(--ab-red); text-decoration: none; transition: color var(--ab-t); }
a:hover { color: var(--ab-red-dark); }

img { max-width: 100%; height: auto; }
input, select, textarea, button { font-family: var(--font-body); }

/* ── Top bar ────────────────────────────────────────────────── */
.ab-topbar {
  background: var(--ab-navy);
  font-size: 12px;
  color: var(--ab-silver);
  padding: 6px 0;
  letter-spacing: .02em;
}
.ab-topbar a { color: var(--ab-silver); }
.ab-topbar a:hover { color: #fff; }
.ab-topbar .topbar-trust { display: flex; align-items: center; gap: 18px; }
.ab-topbar .topbar-trust span { display: flex; align-items: center; gap: 5px; }
.ab-topbar .topbar-links { display: flex; align-items: center; gap: 16px; }

/* ── Header ─────────────────────────────────────────────────── */
.ab-header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1040;
  box-shadow: 0 2px 16px rgba(15,23,42,.08);
  border-bottom: 1px solid var(--ab-border);
}
.ab-header-inner {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}

/* Logo */
.ab-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.ab-logo-mark {
  width: auto;
  height: auto;
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ab-logo-mark img {
  display: block;
  max-width: 180px;
  /* max-height: 42px; */
  object-fit: contain;
}
.ab-logo-text { display: flex; flex-direction: column; line-height: 1; }
.ab-logo-text .brand { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--ab-text); letter-spacing: .04em; }
.ab-logo-text .tagline { font-size: 10px; color: var(--ab-text-soft); letter-spacing: .08em; text-transform: uppercase; margin-top: 1px; }

/* Search bar */
.ab-search-bar { position: relative; }
.ab-search-bar form {
  display: flex;
  background: #fff;
  border: 1px solid var(--ab-border);
  border-radius: var(--ab-radius);
  overflow: hidden;
  transition: border-color var(--ab-t), background var(--ab-t);
}
.ab-search-bar form:focus-within {
  background: #fff;
  border-color: var(--ab-red);
}
.ab-search-select {
  background: #fff;
  border: none;
  border-right: 1px solid var(--ab-border);
  color: var(--ab-text);
  font-size: 13px;
  padding: 0 12px;
  cursor: pointer;
  outline: none;
  min-width: 130px;
}
.ab-search-select option { background: #fff; color: var(--ab-text); }
.ab-search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--ab-text);
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  min-width: 0;
}
.ab-search-input::placeholder { color: var(--ab-text-soft); }
.ab-search-btn {
  background: var(--ab-red);
  border: none;
  color: #fff;
  padding: 0 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background var(--ab-t);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .03em;
  white-space: nowrap;
}
.ab-search-btn:hover { background: var(--ab-red-dark); }

/* Predictive dropdown */
.ab-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--ab-border);
  border-radius: var(--ab-radius);
  box-shadow: var(--ab-shadow-lg);
  z-index: 1050;
  display: none;
  overflow: hidden;
}
.ab-search-dropdown.show { display: block; }
.ab-search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--ab-text);
  border-bottom: 1px solid var(--ab-border);
  transition: background var(--ab-t);
}
.ab-search-result-item:last-child { border-bottom: none; }
.ab-search-result-item:hover { background: var(--ab-ice); }
.ab-search-result-img { width: 40px; height: 40px; object-fit: contain; border-radius: 4px; border: 1px solid var(--ab-border); flex-shrink: 0; }
.ab-search-result-info .part-num { font-size: 11px; color: var(--ab-text-soft); }
.ab-search-result-info .prod-name { font-size: 13px; font-weight: 500; color: var(--ab-navy); }
.ab-search-result-price { margin-left: auto; font-weight: 600; color: var(--ab-red); font-family: var(--font-display); font-size: 15px; }
.ab-search-view-all { display: block; padding: 10px; text-align: center; font-size: 13px; color: var(--ab-red); font-weight: 500; border-top: 1px solid var(--ab-border); }

/* Header actions */
.ab-header-actions { display: flex; align-items: center; gap: 6px; }
.ab-header-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  color: var(--ab-text-mid);
  text-decoration: none;
  border-radius: var(--ab-radius);
  transition: all var(--ab-t);
  position: relative;
  font-size: 11px;
  white-space: nowrap;
  background: transparent;
  border: none;
  cursor: pointer;
}
.ab-header-btn:hover { color: var(--ab-text); background: var(--ab-ice); }
.ab-header-btn i { font-size: 20px; }
.ab-cart-badge {
  position: absolute;
  top: 4px;
  right: 8px;
  background: var(--ab-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ── Mega Menu ───────────────────────────────────────────────── */
.ab-nav {
  background: var(--ab-navy);
  border-top: 1px solid rgba(255,255,255,.07);
}
.ab-nav-inner {
  display: flex;
  align-items: stretch;
}
.ab-nav-item {
  position: relative;
}
.ab-nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 16px;
  color: rgba(255,255,255,.82);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  transition: all var(--ab-t);
  white-space: nowrap;
  height: 100%;
}
.ab-nav-link:hover, .ab-nav-item:hover .ab-nav-link {
  color: #fff;
  background: rgba(255,255,255,.06);
}
.ab-nav-link.active { color: #fff; border-bottom: 2px solid var(--ab-red); }
.ab-nav-link i.chevron { font-size: 12px; opacity: .6; transition: transform var(--ab-t); }
.ab-nav-item:hover .ab-nav-link i.chevron { transform: rotate(180deg); }

/* Mega menu panel */
.ab-mega {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 680px;
  background: #fff;
  border: 1px solid var(--ab-border);
  border-top: 3px solid var(--ab-red);
  border-radius: 0 0 var(--ab-radius-lg) var(--ab-radius-lg);
  box-shadow: var(--ab-shadow-lg);
  z-index: 1030;
  display: none;
  padding: 8px;
}
.ab-nav-item:hover .ab-mega { display: flex; }
.ab-mega-col { flex: 1; min-width: 140px; }
.ab-mega-col + .ab-mega-col { border-left: 1px solid var(--ab-border); padding-left: 24px; margin-left: 24px; }
.ab-mega-heading {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ab-text-soft);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ab-border);
}
.ab-mega-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  color: var(--ab-text);
  font-size: 13px;
  text-decoration: none;
  transition: color var(--ab-t);
}
.ab-mega-link:hover { color: var(--ab-red); }
.ab-mega-link i { font-size: 14px; color: var(--ab-steel); width: 16px; }
.ab-mega-promo {
  background: var(--ab-ice);
  border-radius: var(--ab-radius);
  padding: 16px;
  min-width: 200px;
}
.ab-mega-promo .promo-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ab-red); font-weight: 600; margin-bottom: 4px; }
.ab-mega-promo .promo-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--ab-navy); margin-bottom: 8px; }
.ab-mega-promo .promo-sub { font-size: 12px; color: var(--ab-text-soft); margin-bottom: 12px; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-ab-primary {
  background: var(--ab-red);
  color: #fff;
  border: none;
  padding: 11px 24px;
  border-radius: var(--ab-radius);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--ab-t);
  line-height: 1;
}
.btn-ab-primary:hover { background: var(--ab-red-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(214,48,39,.35); }
.btn-ab-primary:active { transform: translateY(0); }

.btn-ab-secondary {
  background: transparent;
  color: var(--ab-red);
  border: 2px solid var(--ab-red);
  padding: 9px 22px;
  border-radius: var(--ab-radius);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--ab-t);
  line-height: 1;
}
.btn-ab-secondary:hover { background: var(--ab-red); color: #fff; }

.btn-ab-navy {
  background: var(--ab-navy);
  color: #fff;
  border: none;
  padding: 11px 24px;
  border-radius: var(--ab-radius);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--ab-t);
  line-height: 1;
}
.btn-ab-navy:hover { background: var(--ab-navy-soft); color: #fff; }

.btn-ab-ghost {
  background: transparent;
  color: var(--ab-text-mid);
  border: 1.5px solid var(--ab-border-mid);
  padding: 9px 18px;
  border-radius: var(--ab-radius);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--ab-t);
}
.btn-ab-ghost:hover { border-color: var(--ab-red); color: var(--ab-red); }

/* ── Badges ──────────────────────────────────────────────────── */
.ab-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ab-badge-sale    { background: var(--ab-red);     color: #fff; }
.ab-badge-new     { background: var(--ab-navy);    color: #fff; }
.ab-badge-stock   { background: #e8f5ee;           color: var(--ab-success); }
.ab-badge-low     { background: #fff8e1;           color: #b87a00; }
.ab-badge-out     { background: #fce8e8;           color: var(--ab-danger); }
.ab-badge-brand   { background: var(--ab-ice);     color: var(--ab-slate); border: 1px solid var(--ab-border); }

/* ── Product Card ────────────────────────────────────────────── */
.ab-product-card {
  background: #fff;
  border: 1px solid var(--ab-border);
  border-radius: var(--ab-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--ab-t-med), transform var(--ab-t-med), border-color var(--ab-t-med);
  position: relative;
  height: 100%;
}
.ab-product-card:hover {
  box-shadow: var(--ab-shadow-lg);
  transform: translateY(-3px);
  border-color: var(--ab-silver);
}
.ab-product-card .card-img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  width: 100%;
  background: var(--ab-ice);
  overflow: hidden;
}
.ab-product-card .card-img-wrap a {
  display: block;
  width: 100%;
  height: 100%;
}
.ab-product-card .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
 
  transition: transform var(--ab-t-med);
}
.ab-product-card:hover .card-img-wrap img { transform: scale(1.05); }
.ab-product-card .card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ab-product-card .card-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transition: opacity var(--ab-t);
}
.ab-product-card:hover .card-actions { opacity: 1; }
.ab-product-card .card-action-btn {
  width: 32px;
  height: 32px;
  background: #fff;
  border: 1px solid var(--ab-border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ab-text-mid);
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--ab-t);
  box-shadow: var(--ab-shadow-sm);
}
.ab-product-card .card-action-btn:hover { background: var(--ab-red); color: #fff; border-color: var(--ab-red); }

.ab-product-card .card-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ab-product-card .card-brand {
  font-size: 11px;
  font-weight: 600;
  color: var(--ab-text-soft);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}
.ab-product-card .card-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ab-text);
  margin-bottom: 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ab-product-card .card-title a { color: inherit; text-decoration: none; }
.ab-product-card .card-title a:hover { color: var(--ab-red); }
.ab-product-card .card-part {
  font-size: 11px;
  color: var(--ab-text-hint);
  margin-bottom: 8px;
  font-family: var(--font-display);
  letter-spacing: .04em;
}
.ab-product-card .card-price {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ab-red);
  margin-top: auto;
  margin-bottom: 10px;
}
.ab-product-card .card-footer-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ab-product-card .btn-add-cart {
  flex: 1;
  background: var(--ab-navy);
  color: #fff;
  border: none;
  padding: 9px 12px;
  border-radius: var(--ab-radius);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--ab-t);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.ab-product-card .btn-add-cart:hover { background: var(--ab-red); }

/* List view */
.ab-product-list-item {
  background: #fff;
  border: 1px solid var(--ab-border);
  border-radius: var(--ab-radius-lg);
  display: flex;
  gap: 20px;
  padding: 16px;
  transition: box-shadow var(--ab-t-med);
}
.ab-product-list-item:hover { box-shadow: var(--ab-shadow); }
.ab-product-list-item .list-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: var(--ab-radius);
  border: 1px solid var(--ab-border);
  background: var(--ab-ice);
  padding: 6px;
  flex-shrink: 0;
}
.ab-product-list-item .list-body { flex: 1; min-width: 0; }
.ab-product-list-item .list-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; min-width: 160px; }
.ab-product-list-item .list-price { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--ab-red); }

/* ── Section headers ─────────────────────────────────────────── */
.ab-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}
.ab-section-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  color: var(--ab-navy);
  letter-spacing: .01em;
  margin: 0;
  line-height: 1;
}
.ab-section-title span { color: var(--ab-red); }
.ab-section-sub {
  font-size: 14px;
  color: var(--ab-text-soft);
  margin: 4px 0 0;
}

/* ── Hero ─────────────────────────────────────────────────────── */
.ab-hero {
  background: linear-gradient(135deg, var(--ab-navy) 0%, #152438 55%, #0a1520 100%);
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
}
.ab-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.015) 0px, rgba(255,255,255,.015) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.015) 0px, rgba(255,255,255,.015) 1px, transparent 1px, transparent 40px);
  pointer-events: none;
}
.ab-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(214,48,39,.18);
  border: 1px solid rgba(214,48,39,.35);
  color: #ff8a84;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.ab-hero-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 800;
  color: #fff;
  letter-spacing: .01em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.ab-hero-title .accent { color: var(--ab-red); }
.ab-hero-sub { color: rgba(255,255,255,.6); font-size: 16px; margin-bottom: 36px; max-width: 480px; }

/* Hero search */
.ab-hero-search {
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: var(--ab-radius-lg);
  padding: 4px;
  display: flex;
  gap: 4px;
  max-width: 640px;
  backdrop-filter: blur(6px);
}
.ab-hero-search-inner {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  overflow: hidden;
}
.ab-hero-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 15px;
  padding: 13px 16px;
}
.ab-hero-search input::placeholder { color: rgba(255,255,255,.4); }
.ab-hero-search-btn {
  background: var(--ab-red);
  color: #fff;
  border: none;
  padding: 13px 28px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--ab-t);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.ab-hero-search-btn:hover { background: var(--ab-red-dark); }
.ab-hero-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.ab-hero-tab {
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.6);
  transition: all var(--ab-t);
  background: transparent;
}
.ab-hero-tab.active, .ab-hero-tab:hover { background: var(--ab-red); border-color: var(--ab-red); color: #fff; }
.ab-hero-stats { display: flex; gap: 32px; margin-top: 32px; }
.ab-hero-stat .num { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: #fff; }
.ab-hero-stat .label { font-size: 12px; color: rgba(255,255,255,.5); }

/* ── Trust bar ───────────────────────────────────────────────── */
.ab-trust-bar {
  background: var(--ab-navy-mid);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 16px 0;
}
.ab-trust-items { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.ab-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.75);
  font-size: 13px;
}
.ab-trust-item i { font-size: 20px; color: var(--ab-red); }
.ab-trust-item strong { font-weight: 600; color: #fff; }

/* ── Category cards ──────────────────────────────────────────── */
.ab-cat-card {
  background: #fff;
  border: 1px solid var(--ab-border);
  border-radius: var(--ab-radius-lg);
  padding: 20px 16px;
  text-align: center;
  text-decoration: none;
  color: var(--ab-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: all var(--ab-t-med);
  position: relative;
  overflow: hidden;
}
.ab-cat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ab-red);
  transform: scaleX(0);
  transition: transform var(--ab-t-med);
}
.ab-cat-card:hover {
  box-shadow: var(--ab-shadow);
  border-color: var(--ab-silver);
  transform: translateY(-2px);
  color: var(--ab-navy);
}
.ab-cat-card:hover::after { transform: scaleX(1); }
.ab-cat-icon {
  width: 56px;
  height: 56px;
  background: var(--ab-ice);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--ab-navy);
  transition: background var(--ab-t);
}
.ab-cat-card:hover .ab-cat-icon { background: var(--ab-red-light); color: var(--ab-red); }
.ab-cat-card .cat-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.2;
}
.ab-cat-card .cat-count { font-size: 11px; color: var(--ab-text-soft); }

/* ── Brand logos ─────────────────────────────────────────────── */
.ab-brand-logo-card {
  background: #fff;
  border: 1px solid var(--ab-border);
  border-radius: var(--ab-radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  text-decoration: none;
  transition: all var(--ab-t);
  filter: grayscale(60%);
  opacity: .75;
}
.ab-brand-logo-card:hover { filter: grayscale(0); opacity: 1; box-shadow: var(--ab-shadow); border-color: var(--ab-silver); }
.ab-brand-logo-card img { max-height: 36px; max-width: 100%; object-fit: contain; }

/* ── Filter sidebar ──────────────────────────────────────────── */
.ab-filter-sidebar {
  background: #fff;
  border: 1px solid var(--ab-border);
  border-radius: var(--ab-radius-lg);
  overflow: hidden;
  position: sticky;
  top: 100px;
}
.ab-filter-header {
  padding: 14px 16px;
  background: var(--ab-ice);
  border-bottom: 1px solid var(--ab-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ab-filter-header h6 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0;
  color: var(--ab-navy);
}
.ab-filter-group { border-bottom: 1px solid var(--ab-border); }
.ab-filter-group:last-child { border-bottom: none; }
.ab-filter-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 500;
  font-size: 13px;
  color: var(--ab-navy);
  user-select: none;
}
.ab-filter-group-header i { transition: transform var(--ab-t); font-size: 14px; }
.ab-filter-group-header.collapsed i { transform: rotate(-90deg); }
.ab-filter-body { padding: 0 16px 12px; }
.ab-filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  cursor: pointer;
  font-size: 13px;
  color: var(--ab-text);
}
.ab-filter-check input { cursor: pointer; accent-color: var(--ab-red); }
.ab-filter-check .count { margin-left: auto; font-size: 11px; color: var(--ab-text-soft); }

/* ── Breadcrumb ──────────────────────────────────────────────── */
.ab-breadcrumb {
  background: #fff;
  border-bottom: 1px solid var(--ab-border);
  padding: 10px 0;
}
.ab-breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  font-size: 13px;
}
.ab-breadcrumb li { display: flex; align-items: center; gap: 6px; }
.ab-breadcrumb li a { color: var(--ab-text-soft); }
.ab-breadcrumb li a:hover { color: var(--ab-red); }
.ab-breadcrumb li.active { color: var(--ab-text); font-weight: 500; }
.ab-breadcrumb li + li::before { content: '/'; color: var(--ab-border-mid); }

/* ── Product Detail ──────────────────────────────────────────── */
.ab-pdp-gallery { position: sticky; top: 100px; }
.ab-gallery-main {
  border: 1px solid var(--ab-border);
  border-radius: var(--ab-radius-lg);
  background: var(--ab-ice);
  aspect-ratio: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
  margin-bottom: 12px;
}
.ab-gallery-main img { width: 100%; height: 100%;  transition: transform var(--ab-t-med); }
.ab-gallery-main:hover img { transform: scale(1.08); }
.ab-gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.ab-gallery-thumb {
  width: 72px;
  height: 72px;
  border: 1px solid var(--ab-border);
  border-radius: var(--ab-radius-lg);
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--ab-t);
  padding: 6px;
}
.ab-gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.ab-gallery-thumb.active { border-color: var(--ab-red); box-shadow: 0 4px 16px rgba(244,129,33,.12); }
.ab-gallery-thumb:hover { border-color: var(--ab-navy); }

.ab-pdp-info {
  background: #fff;
  border: 1px solid var(--ab-border);
  border-radius: var(--ab-radius-lg);
  box-shadow: var(--ab-shadow-sm);
  padding: 32px;
}
.ab-pdp-title { font-family: var(--font-display); font-size: 32px; font-weight: 800; color: var(--ab-navy); margin-bottom: 12px; }
.ab-pdp-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.ab-pdp-price { font-family: var(--font-display); font-size: 38px; font-weight: 800; color: var(--ab-red); }
.ab-pdp-stock { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; }
.ab-pdp-stock.in-stock { color: var(--ab-success); }
.ab-pdp-stock.out-stock { color: var(--ab-danger); }
.ab-pdp-stock i { font-size: 16px; }

.ab-pdp-qty {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--ab-border-mid);
  border-radius: var(--ab-radius);
  overflow: hidden;
  width: fit-content;
}
.ab-pdp-qty button {
  width: 40px;
  height: 44px;
  background: var(--ab-ice);
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--ab-navy);
  transition: background var(--ab-t);
}
.ab-pdp-qty button:hover { background: var(--ab-border); }
.ab-pdp-qty input {
  width: 56px;
  height: 44px;
  text-align: center;
  border: none;
  border-left: 1.5px solid var(--ab-border-mid);
  border-right: 1.5px solid var(--ab-border-mid);
  font-size: 16px;
  font-weight: 600;
  color: var(--ab-navy);
  outline: none;
}

.ab-pdp-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}
.ab-pdp-actions .btn-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  border: none;
  border-radius: 14px;
  background: var(--ab-red);
  color: #fff;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--ab-t), transform var(--ab-t);
}
.ab-pdp-actions .btn-cart:hover { background: var(--ab-red-dark); transform: translateY(-1px); }
}

/* Specs table */
.ab-specs-table { width: 100%; border-collapse: collapse; }
.ab-specs-table tr:nth-child(even) td { background: var(--ab-ice); }
.ab-specs-table td { padding: 10px 14px; font-size: 14px; border-bottom: 1px solid var(--ab-border); }
.ab-specs-table td:first-child { font-weight: 500; color: var(--ab-text-mid); width: 40%; }

/* ── Cart ─────────────────────────────────────────────────────── */
.ab-cart-item {
  background: #fff;
  border: 1px solid var(--ab-border);
  border-radius: var(--ab-radius-lg);
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.ab-cart-item img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border: 1px solid var(--ab-border);
  border-radius: var(--ab-radius);
  background: var(--ab-ice);
  padding: 6px;
  flex-shrink: 0;
}

.ab-order-summary {
  background: #fff;
  border: 1px solid var(--ab-border);
  border-radius: var(--ab-radius-lg);
  overflow: hidden;
  position: sticky;
  top: 100px;
}
.ab-order-summary-header {
  background: var(--ab-navy);
  color: #fff;
  padding: 14px 20px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ab-order-summary-body { padding: 20px; }
.ab-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--ab-border);
}
.ab-summary-row:last-child { border-bottom: none; }
.ab-summary-total {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--ab-red);
}

/* ── Forms ───────────────────────────────────────────────────── */
.ab-form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ab-text-mid);
  margin-bottom: 6px;
  display: block;
}
.ab-form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--ab-border);
  border-radius: var(--ab-radius);
  font-size: 14px;
  color: var(--ab-text);
  background: #fff;
  transition: border-color var(--ab-t), box-shadow var(--ab-t);
  outline: none;
  font-family: var(--font-body);
}
.ab-form-control:focus { border-color: var(--ab-navy); box-shadow: 0 0 0 3px rgba(15,30,46,.08); }
.ab-form-control::placeholder { color: var(--ab-text-hint); }

/* ── Footer ──────────────────────────────────────────────────── */
.ab-footer {
  background: var(--ab-navy);
  color: rgba(255,255,255,.7);
  padding: 60px 0 0;
}
.ab-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.ab-footer-brand .footer-logo { margin-bottom: 16px; }
.ab-footer-brand p { font-size: 13px; line-height: 1.7; max-width: 260px; }
.ab-footer-heading {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 16px;
}
.ab-footer-links { list-style: none; padding: 0; margin: 0; }
.ab-footer-links li { margin-bottom: 10px; }
.ab-footer-links a { color: rgba(255,255,255,.65); font-size: 13px; text-decoration: none; transition: color var(--ab-t); display: flex; align-items: center; gap: 6px; }
.ab-footer-links a:hover { color: #fff; }
.ab-footer-contact li { display: flex; align-items: flex-start; gap: 10px; color: rgba(255,255,255,.65); font-size: 13px; margin-bottom: 10px; }
.ab-footer-contact li i { font-size: 16px; color: var(--ab-red); flex-shrink: 0; margin-top: 2px; }

.ab-newsletter-form { display: flex; gap: 0; overflow: hidden; border-radius: var(--ab-radius); }
.ab-newsletter-form input {
  flex: 1;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.12);
  border-right: none;
  color: #fff;
  padding: 10px 14px;
  font-size: 13px;
  outline: none;
  border-radius: var(--ab-radius) 0 0 var(--ab-radius);
}
.ab-newsletter-form input::placeholder { color: rgba(255,255,255,.35); }
.ab-newsletter-form button {
  background: var(--ab-red);
  border: none;
  color: #fff;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0 var(--ab-radius) var(--ab-radius) 0;
  transition: background var(--ab-t);
  white-space: nowrap;
}
.ab-newsletter-form button:hover { background: var(--ab-red-dark); }

.ab-footer-social { display: flex; gap: 10px; margin-top: 16px; }
.ab-social-btn {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: var(--ab-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: 16px;
  text-decoration: none;
  transition: all var(--ab-t);
}
.ab-social-btn:hover { background: var(--ab-red); color: #fff; }

.ab-footer-bottom {
  margin-top: 48px;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,.35);
  flex-wrap: wrap;
  gap: 12px;
}
.ab-footer-bottom a { color: rgba(255,255,255,.35); }
.ab-footer-bottom a:hover { color: rgba(255,255,255,.7); }
.ab-pay-icons { display: flex; gap: 8px; align-items: center; }
.ab-pay-icons img { height: 20px; opacity: .6; }

/* ── Utility ─────────────────────────────────────────────────── */
.section-gap  { padding: 64px 0; }
.section-gap-sm { padding: 40px 0; }
.bg-ab-ice  { background: var(--ab-ice); }
.bg-ab-navy { background: var(--ab-navy); }
.text-ab-red { color: var(--ab-red) !important; }
.text-ab-navy { color: var(--ab-navy) !important; }

.ab-divider { border: none; border-top: 1px solid var(--ab-border); margin: 0; }

/* Star rating */
.star-rating { display: inline-flex; gap: 2px; font-size: 13px; }

/* Scroll to top */
#scrollTop {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--ab-navy);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--ab-shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ab-t), background var(--ab-t);
  z-index: 999;
}
#scrollTop.show { opacity: 1; pointer-events: auto; }
#scrollTop:hover { background: var(--ab-red); }

/* Toast */
.ab-toast-container { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.ab-toast {
  background: var(--ab-navy);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--ab-radius-lg);
  font-size: 14px;
  box-shadow: var(--ab-shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn .2s ease;
  max-width: 400px;
}
.ab-toast.success i { color: #4ade80; }
.ab-toast.error i { color: #f87171; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ── Tabs ────────────────────────────────────────────────────── */
.ab-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--ab-border); margin-bottom: 24px; overflow-x: auto; }
.ab-tab-btn {
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ab-text-soft);
  cursor: pointer;
  transition: all var(--ab-t);
  white-space: nowrap;
  margin-bottom: -2px;
}
.ab-tab-btn.active, .ab-tab-btn:hover { color: var(--ab-navy); border-bottom-color: var(--ab-red); }
.ab-tab-content { display: none; }
.ab-tab-content.active { display: block; }

/* ── Accordion ───────────────────────────────────────────────── */
.ab-accordion-item { border-bottom: 1px solid var(--ab-border); }
.ab-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
  color: var(--ab-navy);
  user-select: none;
}
.ab-accordion-header i { transition: transform var(--ab-t); font-size: 16px; color: var(--ab-steel); }
.ab-accordion-header.active i { transform: rotate(45deg); color: var(--ab-red); }
.ab-accordion-body { font-size: 14px; color: var(--ab-text-mid); padding: 0 0 16px; line-height: 1.7; display: none; }
.ab-accordion-body.show { display: block; }

/* ── Alert/notice ────────────────────────────────────────────── */
.ab-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--ab-radius);
  font-size: 14px;
  margin-bottom: 16px;
}
.ab-alert i { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.ab-alert-success { background: #e8f5ee; color: #145c30; border-left: 4px solid var(--ab-success); }
.ab-alert-warning { background: #fff8e1; color: #7c5600; border-left: 4px solid #c9940a; }
.ab-alert-danger  { background: #fce8e8; color: #8c1a1a; border-left: 4px solid var(--ab-danger); }
.ab-alert-info    { background: #e8f0ff; color: #1a3a7c; border-left: 4px solid var(--ab-info); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .ab-header-inner { grid-template-columns: auto 1fr auto; gap: 12px; }
  .ab-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ab-hero-stats { gap: 20px; flex-wrap: wrap; }
  .ab-trust-items { gap: 24px; }
}

@media (max-width: 767.98px) {
  .ab-topbar .topbar-trust { display: none; }
  .ab-header-inner { grid-template-columns: auto 1fr; padding: 10px 0; }
  .ab-search-select { display: none; }
  .ab-header-actions { gap: 2px; }
  .ab-header-btn span.d-label { display: none; }
  .ab-hero { padding: 40px 0; }
  .ab-hero-title { font-size: 32px; }
  .ab-hero-sub { display: none; }
  .ab-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .ab-footer-brand p { max-width: none; }
  .section-gap { padding: 40px 0; }
  .ab-product-list-item { flex-direction: column; }
  .ab-product-list-item .list-right { flex-direction: row; align-items: center; width: 100%; }
}

@media (max-width: 575.98px) {
  .ab-mega { min-width: calc(100vw - 32px); }
  .ab-hero-stats { gap: 16px; }
  .ab-hero-stat .num { font-size: 22px; }
}
