/* ═══════════════════════════════════════════════════
   AUTO BROS — Main Stylesheet
   ═══════════════════════════════════════════════════ */

/* ─── CSS VARIABLES ────────────────────────────────── */
:root {
  --red:        #CC0000;
  --red-dark:   #990000;
  --black:      #1A1A1A;
  --slate:      #4A4A4A;
  --light:      #F5F5F5;
  --white:      #FFFFFF;
  --amber:      #FF6B00;
  --green:      #2D7A3A;
  --warn:       #F59E0B;
  --danger:     #EF4444;
  --border:     #E0E0E0;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.14);
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --transition: all .22s ease;
}

/* ─── RESET ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; overflow-x: clip; }
body  { font-family: 'Barlow', sans-serif; background: var(--light); color: var(--slate); line-height: 1.6; overflow-x: clip; }
a     { text-decoration: none; color: inherit; }
img   { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; }

/* ─── ICONS ─────────────────────────────────────────── */
.icon-img { width: 18px; height: 18px; object-fit: contain; display: inline-block; vertical-align: middle; }
.icon-inline { width: 1em; height: 1em; margin-right: 6px; }
.icon-btn { width: 20px; height: 20px; }
.icon-fa-inline { margin-right: 6px; font-size: .88em; vertical-align: middle; }
.icon-fa-btn { font-size: 1.05rem; line-height: 1; vertical-align: middle; }
.icon-fa-empty { font-size: 2.4rem; color: #b5b5b5; opacity: .7; }
.cat-icon-img { width: 44px; height: 44px; margin: 0 auto; }
.feature-icon-img { width: 22px; height: 22px; }
.empty-state-icon-img { width: 64px; height: 64px; opacity: .5; }
.no-img-icon { width: 62px; height: 62px; opacity: .45; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── TYPOGRAPHY ────────────────────────────────────── */
h1, h2, h3, h4, h5 { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; line-height: 1.1; color: var(--black); }
h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
h4 { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: .5px; }

/* ─── LAYOUT ─────────────────────────────────────────── */
.container { width: min(1280px, 100%); margin: 0 auto; padding: 0 24px; }
.section    { padding: 60px 0; }
.section-sm { padding: 36px 0; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-title      { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 2rem; color: var(--black); line-height: 1; }
.section-title span { color: var(--red); }
.section-sub        { color: #888; font-size: .88rem; margin-top: 4px; }

.see-all {
  color: var(--red);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap .2s;
}
.see-all:hover { gap: 9px; }

/* ─── BUTTONS ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--red);   color: var(--white);  border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(204,0,0,0.3); }
.btn-outline  { background: transparent; color: var(--red);    border-color: var(--red); }
.btn-outline:hover  { background: var(--red); color: var(--white); }
.btn-dark     { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-dark:hover { background: #2a2a2a; }
.btn-sm  { padding: 7px 16px; font-size: .82rem; }
.btn-lg  { padding: 14px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ─── BADGES ─────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: .7rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: var(--radius-sm);
}
.badge-amber  { background: var(--amber);  color: #fff; }
.badge-green  { background: var(--green);  color: #fff; }
.badge-warn   { background: var(--warn);   color: #fff; }
.badge-danger { background: var(--danger); color: #fff; }
.badge-dark   { background: var(--black);  color: #fff; }

/* ─── STOCK INDICATORS ───────────────────────────────── */
.stock-indicator { display: inline-flex; align-items: center; gap: 5px; font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .5px; }
.stock-dot  { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.in-stock   { color: var(--green); } .in-stock  .stock-dot { background: var(--green); }
.low-stock  { color: var(--warn);  } .low-stock .stock-dot { background: var(--warn); }
.out-stock  { color: var(--danger);} .out-stock .stock-dot { background: var(--danger); }

/* ─── FORMS ──────────────────────────────────────────── */
.form-group       { display: flex; flex-direction: column; gap: 5px; }
.form-label       { font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .5px; color: #888; }
.form-control     { border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 10px 14px; font-size: .9rem; color: var(--black); background: var(--white); transition: border-color .2s; width: 100%; }
.form-control:focus { outline: none; border-color: var(--red); }
.form-control-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234A4A4A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.form-error       { color: var(--danger); font-size: .8rem; }
.form-row         { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ─── CARDS ──────────────────────────────────────────── */
.card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); }
.card:hover { border-color: var(--red); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-body { padding: 18px; }

/* ─── PRODUCT CARD ───────────────────────────────────── */
.product-card { position: relative; cursor: pointer; }
.product-card-img { position: relative; width: 100%; height: 190px; background: linear-gradient(135deg, #f2f2f2, #e8e8e8); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card-img .no-img { font-size: 4rem; }
.product-card-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 65%, rgba(0,0,0,0.05)); pointer-events: none; }
.product-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 4px; z-index: 1; }
.wishlist-btn   { position: absolute; top: 10px; right: 10px; background: white; border: 1px solid var(--border); border-radius: 50%; width: 34px; height: 34px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); z-index: 1; }
.wishlist-btn:hover, .wishlist-btn.active { border-color: var(--red); color: var(--red); }
.wishlist-btn i { font-size: .95rem; }

.product-compat  { font-size: .72rem; color: #999; font-weight: 600; font-family: 'Rajdhani', sans-serif; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 4px; }
.product-name    { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.12rem; color: var(--black); line-height: 1.2; margin-bottom: 6px; }
.product-partnum { font-size: .72rem; color: #aaa; font-family: 'Rajdhani', sans-serif; letter-spacing: .5px; margin-bottom: 8px; }
.product-rating  { display: flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--warn); margin-bottom: 8px; }
.product-rating .review-count { color: #bbb; margin-left: 2px; }
.product-footer  { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 8px; }
.product-price   { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 1.45rem; color: var(--black); line-height: 1; }
.product-price .orig-price { font-size: .82rem; color: #ccc; text-decoration: line-through; font-weight: 400; display: block; }

/* ─── PRODUCTS GRID ──────────────────────────────────── */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }

/* ─── CATEGORY CARD ──────────────────────────────────── */
.cat-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 14px 18px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.cat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform .25s;
}
.cat-card:hover { border-color: var(--red); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(204,0,0,.12); }
.cat-card:hover::after { transform: scaleX(1); }
.cat-icon  { margin-bottom: 10px; display: block; }
.cat-name  { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: .9rem; color: var(--black); text-transform: uppercase; letter-spacing: .3px; }
.cat-count { font-size: .72rem; color: #aaa; margin-top: 3px; }
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 14px; }
.cat-card-wrap { display: flex; flex-direction: column; gap: 6px; }
.cat-subchips { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 4px; }
.cat-subchip {
  font-size: .68rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--slate);
  background: #fff;
  text-decoration: none;
}
.cat-subchip:hover { border-color: var(--red); color: var(--red); }
.filter-check.active { border-color: var(--red); background: rgba(204,0,0,.04); color: var(--red); font-weight: 700; }
.filter-check--child { opacity: .92; }
.search-loading { text-align: center; padding: 40px; color: #aaa; }

/* ─── ALERTS & FLASH ─────────────────────────────────── */
.alert { padding: 12px 18px; border-radius: var(--radius-md); font-size: .9rem; margin-bottom: 18px; border-left: 4px solid; display: flex; align-items: flex-start; gap: 10px; }
.alert-success { background: #f0fdf4; border-color: var(--green);  color: #166534; }
.alert-error   { background: #fef2f2; border-color: var(--danger); color: #991b1b; }
.alert-warn    { background: #fffbeb; border-color: var(--warn);   color: #92400e; }
.alert-info    { background: #eff6ff; border-color: #3b82f6;       color: #1e40af; }

/* ─── FLASH ERROR MODAL ─────────────────────────────── */
.flash-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1200;
}

.flash-modal.is-open {
  display: flex;
}

.flash-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.72);
  backdrop-filter: blur(4px);
}

.flash-modal__panel {
  position: relative;
  width: min(460px, 100%);
  background: linear-gradient(180deg, #ffffff 0%, #fff7f7 100%);
  border: 1px solid rgba(204, 0, 0, 0.16);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  padding: 32px 28px 26px;
  text-align: center;
  z-index: 1;
  animation: flashModalIn .22s ease-out;
}

.flash-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: rgba(26, 26, 26, 0.06);
  color: var(--black);
  cursor: pointer;
  transition: var(--transition);
}

.flash-modal__close:hover {
  background: rgba(204, 0, 0, 0.12);
  color: var(--red);
}

.flash-modal__icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, #ffb4b4 0%, #ef4444 45%, #b91c1c 100%);
  color: var(--white);
  font-size: 2rem;
  box-shadow: 0 14px 28px rgba(239, 68, 68, 0.28);
}

.flash-modal__eyebrow {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--danger);
  margin-bottom: 8px;
}

.flash-modal__title {
  margin-bottom: 10px;
  font-size: 2rem;
}

.flash-modal__message {
  color: #6b1d1d;
  font-size: .98rem;
  line-height: 1.7;
  margin-bottom: 22px;
}

.flash-modal__action {
  justify-content: center;
  min-width: 160px;
}

body.modal-open {
  overflow: hidden;
}

@keyframes flashModalIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ─── APP CONFIRM / ALERT (storefront) ─────────────────────── */
.app-dialog {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.app-dialog.is-open {
  display: flex;
}
.app-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.72);
  backdrop-filter: blur(3px);
}
.app-dialog__panel {
  position: relative;
  width: min(440px, 100%);
  background: #fff;
  border: 1px solid rgba(204, 0, 0, 0.14);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  padding: 24px 22px 20px;
  z-index: 1;
  animation: flashModalIn 0.2s ease-out;
}
.app-dialog__panel--narrow {
  max-width: 400px;
}
.app-dialog__x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 999px;
  background: rgba(26, 26, 26, 0.06);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--black);
  transition: var(--transition, 0.2s ease);
}
.app-dialog__x:hover {
  background: rgba(204, 0, 0, 0.1);
  color: var(--red);
}
.app-dialog__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0 0 12px;
  padding-right: 28px;
  color: var(--black);
}
.app-dialog__text {
  margin: 0 0 20px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #444;
  white-space: pre-line;
}
.app-dialog__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.app-dialog__actions--single {
  justify-content: center;
}
.app-dialog .app-dialog-btn-danger {
  background: transparent;
  color: #b91c1c;
  border: 1.5px solid #fecaca;
}
.app-dialog .app-dialog-btn-danger:hover {
  background: #fef2f2;
}

@media (max-width: 640px) {
  .flash-modal {
    padding: 16px;
  }

  .flash-modal__panel {
    padding: 28px 18px 20px;
    border-radius: 16px;
  }

  .flash-modal__title {
    font-size: 1.7rem;
  }
}

/* ─── BREADCRUMB ─────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: #aaa; padding: 14px 0; flex-wrap: wrap; }
.breadcrumb a { color: #aaa; transition: color .2s; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep  { color: #ddd; }
.breadcrumb .current { color: var(--slate); font-weight: 600; }

/* ─── PAGINATOR ──────────────────────────────────────── */
.paginator { display: flex; gap: 6px; justify-content: center; align-items: center; margin-top: 40px; flex-wrap: wrap; }
.pg-btn     { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1.5px solid var(--border); border-radius: var(--radius-md); font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: .88rem; color: var(--slate); transition: var(--transition); cursor: pointer; }
.pg-btn:hover, .pg-active { background: var(--red); border-color: var(--red); color: white; }

/* ─── HOME HERO CAROUSEL ────────────────────────────── */
.hero-carousel {
  position: relative;
  min-height: 560px;
  background: #0f0f0f;
  overflow: hidden;
}

.hero-carousel::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--amber), var(--red));
  z-index: 3;
}

.hero-carousel-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .7s ease, transform 5.8s ease;
  background:
    radial-gradient(circle at 86% 0%, rgba(204, 0, 0, .2) 0%, transparent 58%),
    linear-gradient(120deg, rgba(26, 26, 26, .25) 0%, rgba(26, 26, 26, .55) 52%, rgba(26, 26, 26, .72) 100%),
    var(--hero-slide-image) center / cover no-repeat;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(-45deg, transparent, transparent 46px, rgba(255, 255, 255, .03) 46px, rgba(255, 255, 255, .03) 48px),
    linear-gradient(90deg, rgba(10, 10, 10, .74) 0%, rgba(20, 20, 20, .36) 48%, rgba(18, 18, 18, .65) 100%);
}

.hero-carousel-chrome {
  position: relative;
  z-index: 2;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 54px 0 64px;
}

.hero-carousel-content-wrap {
  position: relative;
}

.hero-content {
  max-width: 660px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
  position: absolute;
}

.hero-content.is-active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(204, 0, 0, .2);
  border: 1px solid rgba(204, 0, 0, .35);
  color: #ff7474;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 1.6s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(2rem, 5.7vw, 3.7rem);
  color: var(--white);
  letter-spacing: -.6px;
  margin-bottom: 12px;
}

.hero-desc {
  color: #d0d0d0;
  font-size: clamp(.95rem, 2.2vw, 1.06rem);
  max-width: 560px;
  font-weight: 400;
}

.hero-cta-row {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 240px));
  gap: 14px;
}

.hero-cta-btn {
  justify-content: center;
  width: 100%;
}

.hero-stats-row {
  display: flex;
  gap: 32px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--white);
  line-height: 1;
}

.hero-stat-lbl {
  font-size: .72rem;
  color: #8d8d8d;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.hero-arrow {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: rgba(20, 20, 20, .64);
  color: #f8f8f8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.hero-arrow:hover {
  background: rgba(204, 0, 0, .8);
  border-color: rgba(204, 0, 0, .8);
}

.hero-dots {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.hero-dot {
  width: 24px;
  height: 5px;
  border: none;
  border-radius: 99px;
  background: rgba(255, 255, 255, .28);
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}

.hero-dot.is-active {
  width: 42px;
  background: var(--red);
}

@keyframes pulse {
  0%,
  100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}

/* ─── SEARCH SECTION ─────────────────────────────────── */
.search-section { background: var(--white); border-bottom: 3px solid var(--red); box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.search-section-inner { padding: 28px 24px; max-width: 1280px; margin: auto; }
.search-heading { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; color: var(--black); display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.search-heading::before { content: ''; width: 4px; height: 18px; background: var(--red); border-radius: 2px; display: block; }
.search-tabs { display: flex; gap: 3px; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.search-tab  { font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: .88rem; letter-spacing: .5px; text-transform: uppercase; padding: 9px 18px; border: none; background: none; color: var(--slate); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .2s; }
.search-tab.active, .search-tab:hover { color: var(--red); border-color: var(--red); }
.search-panel { display: none; }
.search-panel.active { display: block; }
.filter-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 12px; margin-bottom: 16px; }
.search-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.quick-search-wrap { position: relative; }
.quick-search-input { width: 100%; border: 2px solid var(--border); border-radius: var(--radius-md); padding: 13px 52px 13px 16px; font-size: .95rem; transition: border-color .2s; }
.quick-search-input:focus { outline: none; border-color: var(--red); }
.quick-search-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: var(--red); border: none; color: white; width: 38px; height: 38px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.quick-search-btn:hover { background: var(--red-dark); }
.popular-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.popular-tag { background: var(--light); border: 1px solid var(--border); border-radius: 20px; padding: 4px 14px; font-size: .76rem; cursor: pointer; font-family: 'Rajdhani', sans-serif; font-weight: 600; color: var(--slate); transition: var(--transition); }
.popular-tag:hover { border-color: var(--red); color: var(--red); }

/* ─── RESULTS ────────────────────────────────────────── */
.results-box { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-top: 16px; }
.results-header { background: var(--light); padding: 13px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.results-count  { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: .88rem; text-transform: uppercase; letter-spacing: .5px; color: var(--slate); }
.results-count strong { color: var(--red); }
.result-row { display: flex; gap: 16px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 10px; transition: var(--transition); cursor: pointer; align-items: center; }
.result-row:last-child { margin-bottom: 0; }
.result-row:hover { border-color: var(--red); box-shadow: 0 4px 16px rgba(204,0,0,.08); }
.result-img  { width: 80px; height: 80px; background: var(--light); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 2.4rem; flex-shrink: 0; border: 1px solid var(--border); overflow: hidden; }
.result-img img { width: 100%; height: 100%; object-fit: cover; }
.result-info { flex: 1; min-width: 0; }
.result-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--black); margin-bottom: 4px; }
.result-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 5px; }
.result-tag  { font-size: .72rem; font-family: 'Rajdhani', sans-serif; font-weight: 600; color: #aaa; letter-spacing: .5px; text-transform: uppercase; }
.result-tag strong { color: var(--slate); }
.result-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.result-price { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 1.55rem; color: var(--black); line-height: 1; text-align: right; }
.result-price .orig { font-size: .82rem; color: #ccc; text-decoration: line-through; font-weight: 400; display: block; }

/* ─── CART ────────────────────────────────────────────── */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: .78rem; letter-spacing: 1px; text-transform: uppercase; color: #aaa; padding: 10px 14px; border-bottom: 2px solid var(--border); text-align: left; }
.cart-table td { padding: 16px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-table tr:last-child td { border-bottom: none; }
.cart-item-img  { width: 64px; height: 64px; background: var(--light); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 2rem; border: 1px solid var(--border); overflow: hidden; flex-shrink: 0; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1rem; color: var(--black); }
.cart-item-meta { font-size: .75rem; color: #aaa; font-family: 'Rajdhani', sans-serif; letter-spacing: .5px; }
.qty-ctrl { display: inline-flex; align-items: center; gap: 6px; }
.qty-btn  { width: 30px; height: 30px; background: var(--light); border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; font-size: 1rem; font-weight: 700; color: var(--slate); transition: var(--transition); display: flex; align-items: center; justify-content: center; }
.qty-btn:hover { background: var(--red); color: white; border-color: var(--red); }
.qty-input { width: 46px; height: 30px; text-align: center; border: 1px solid var(--border); border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem; }
.cart-remove { background: none; border: none; color: #ccc; cursor: pointer; padding: 4px; font-size: .78rem; font-family: 'Rajdhani', sans-serif; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; transition: color .2s; }
.cart-remove:hover { color: var(--danger); }
.cart-summary { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.cart-summary-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.cart-summary-row:last-child { border: none; }
.cart-summary-total { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 1.6rem; color: var(--black); }

/* ─── PART DETAIL ────────────────────────────────────── */
.part-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.part-detail-grid > * { min-width: 0; }
.part-gallery-main { width: 100%; aspect-ratio: 1; background: linear-gradient(135deg, #f2f2f2, #e8e8e8); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; font-size: 8rem; border: 1.5px solid var(--border); overflow: hidden; }
.part-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.part-meta-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.part-meta-table tr td:first-child { font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .5px; color: #aaa; padding: 8px 0; width: 40%; }
.part-meta-table tr td:last-child  { font-weight: 600; color: var(--black); padding: 8px 0; }
.part-meta-table tr { border-bottom: 1px solid var(--border); }
.part-meta-table tr:last-child { border: none; }
.part-price-block { display: flex; align-items: flex-end; gap: 12px; margin: 16px 0; }
.part-price-main  { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 2.6rem; color: var(--black); line-height: 1; }
.part-price-orig  { font-size: 1.1rem; color: #ccc; text-decoration: line-through; font-weight: 400; }
.part-price-save  { background: var(--amber); color: white; font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: .78rem; padding: 4px 10px; border-radius: var(--radius-sm); letter-spacing: .5px; }
.compat-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.compat-table th { background: var(--light); font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .5px; padding: 10px 14px; border: 1px solid var(--border); color: #888; text-align: left; }
.compat-table td { padding: 10px 14px; border: 1px solid var(--border); }
.compat-table tr:nth-child(even) td { background: var(--light); }
.review-card { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 12px; }
.review-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.review-author { font-weight: 700; font-size: .9rem; color: var(--black); }
.review-date   { font-size: .75rem; color: #bbb; }
.review-stars  { color: var(--warn); letter-spacing: 1px; margin-bottom: 6px; }
.review-body   { font-size: .88rem; color: var(--slate); }

/* ─── AUTH FORMS ─────────────────────────────────────── */
.auth-card { max-width: 440px; margin: 60px auto; background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 40px; }
.auth-card h2 { font-size: 1.8rem; margin-bottom: 6px; }
.auth-card p  { color: #888; font-size: .9rem; margin-bottom: 28px; }
.auth-card .form-group { margin-bottom: 16px; }
.auth-divider { text-align: center; color: #bbb; font-size: .82rem; margin: 20px 0; position: relative; }
.auth-divider::before, .auth-divider::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--border); }
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

/* ─── PROMO BANNER ───────────────────────────────────── */
.promo-banner { background: linear-gradient(135deg, var(--black), #2a0000 50%, var(--black)); padding: 60px 0; position: relative; overflow: hidden; }
.promo-banner::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(204,0,0,.04) 80px, rgba(204,0,0,.04) 82px); }
.promo-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; position: relative; z-index: 1; }
.promo-tag   { font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: .78rem; letter-spacing: 3px; text-transform: uppercase; color: var(--amber); margin-bottom: 10px; }
.promo-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 3rem; color: white; line-height: 1; margin-bottom: 12px; }
.promo-title .red { color: var(--red); }
.promo-desc  { color: #888; margin-bottom: 24px; }
.promo-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.promo-stat  { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-md); padding: 18px; text-align: center; }
.promo-stat-num { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 2.2rem; color: var(--red); line-height: 1; }
.promo-stat-lbl { font-size: .72rem; color: #666; text-transform: uppercase; letter-spacing: 1px; margin-top: 3px; }

/* ─── BRANDS STRIP ───────────────────────────────────── */
.brands-strip { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 34px 0; }
.brands-label { text-align: center; font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: .76rem; letter-spacing: 3px; text-transform: uppercase; color: #ccc; margin-bottom: 22px; }
.brands-row   { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; }
.brand-logo   { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 1.2rem; color: #ccc; letter-spacing: 1px; text-transform: uppercase; transition: color .2s, opacity .2s; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.brand-logo:hover { color: var(--red); }
.brand-logo--image { font-size: 0; letter-spacing: 0; text-transform: none; opacity: .88; }
.brand-logo--image img { max-height: 36px; max-width: 132px; width: auto; object-fit: contain; vertical-align: middle; filter: grayscale(.25); transition: filter .2s, opacity .2s; }
.brand-logo--image:hover { opacity: 1; color: inherit; }
.brand-logo--image:hover img { filter: grayscale(0); }

/* ─── FEATURES STRIP ─────────────────────────────────── */
.features-strip { background: var(--white); border-top: 1px solid var(--border); padding: 40px 0; }
.features-row   { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px; }
.feature-item   { display: flex; align-items: flex-start; gap: 14px; }
.feature-icon   { width: 44px; height: 44px; background: rgba(204,0,0,.08); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature-title  { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: .92rem; color: var(--black); text-transform: uppercase; letter-spacing: .3px; margin-bottom: 2px; }
.feature-desc   { font-size: .78rem; color: #aaa; }

/* ─── SIDEBAR ────────────────────────────────────────── */
.sidebar-widget { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 20px; }
.sidebar-widget-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--red); color: var(--black); }
.filter-check  { display: flex; align-items: center; gap: 8px; padding: 6px 0; cursor: pointer; font-size: .88rem; color: var(--slate); transition: color .2s; border-bottom: 1px solid var(--border); }
.filter-check:last-child { border-bottom: none; }
.filter-check:hover { color: var(--red); }
.filter-check input[type=checkbox] { accent-color: var(--red); width: 15px; height: 15px; }
.filter-count  { margin-left: auto; font-size: .72rem; color: #bbb; background: var(--light); padding: 1px 7px; border-radius: 10px; }

/* ─── PAGE HERO ──────────────────────────────────────── */
.page-hero { background: var(--black); padding: 40px 0; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--red), var(--amber), var(--red)); }
.page-hero h1 { color: var(--white); font-size: 2.4rem; }
.page-hero h1 span { color: var(--red); }
.page-hero p  { color: #888; margin-top: 6px; }

/* ─── EMPTY STATE ────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state-icon { margin-bottom: 16px; }
.empty-state h3   { font-size: 1.4rem; color: var(--black); margin-bottom: 8px; }
.empty-state p    { color: #aaa; font-size: .9rem; }

/* ─── TOAST ──────────────────────────────────────────── */
#toast {
  position: fixed;
  bottom: 28px; right: 28px;
  background: var(--black);
  color: white;
  padding: 13px 20px;
  letter-spacing: .3px;
  z-index: 9999;
  padding: 20px;
  transform: translateY(80px);
  opacity: 0;
  transition: all .3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 340px;
  pointer-events: none;
}
#toast.show { transform: translateY(0); opacity: 1; }

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-carousel,
  .hero-carousel-chrome { min-height: 520px; }

  .hero-cta-row {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    max-width: 500px;
  }

  .part-detail-grid { grid-template-columns: 1fr; }
  .promo-inner { grid-template-columns: 1fr; }
  .promo-stats { display: none; }

  /* Prevent iOS zoom on focus; keeps inputs readable on phones/tablets */
  input.form-control,
  select.form-control,
  textarea.form-control,
  .quick-search-input,
  .qty-input {
    font-size: 16px;
  }
}
@media (max-width: 768px) {
  .hero-carousel,
  .hero-carousel-chrome {
    min-height: 640px;
  }

  .hero-carousel-chrome {
    padding: 44px 0 60px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-cta-row {
    grid-template-columns: 1fr;
    max-width: 330px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-stats-row {
    justify-content: center;
    gap: 24px;
    margin-top: 30px;
    text-align: center;
  }

  .hero-controls {
    bottom: 10px;
  }

  .container { padding: 0 16px; }
  h1 { font-size: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .result-row { flex-wrap: wrap; }
  .result-actions { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; }
  .search-section-inner { padding: 20px 16px; }
  #toast { right: 16px; left: 16px; bottom: 16px; max-width: none; }
}
@media (max-width: 600px) {
  .hero-carousel,
  .hero-carousel-chrome {
    min-height: 620px;
  }

  .hero-badge {
    letter-spacing: 1px;
    font-size: .72rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-desc {
    font-size: .92rem;
  }

  .hero-arrow {
    width: 34px;
    height: 34px;
  }

  .hero-dot {
    width: 18px;
  }

  .hero-dot.is-active {
    width: 32px;
  }

  .filter-grid { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: 1fr; }
  .part-price-block { flex-wrap: wrap; }
  .part-price-main { font-size: 2.1rem; }
}

/* ═══════════════════════════════════════════════════
   BLOG
   ═══════════════════════════════════════════════════ */
.blog-hero {
  background: linear-gradient(135deg, var(--black) 0%, #2a0000 55%, var(--red-dark) 100%);
  color: var(--white);
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(204,0,0,.35), transparent 45%);
  pointer-events: none;
}
.blog-hero-inner { position: relative; max-width: 760px; }
.blog-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  margin-bottom: 14px;
}
.blog-hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 12px;
  color: var(--white);
}
.blog-hero-desc { font-size: 1.02rem; color: rgba(255,255,255,.82); max-width: 620px; line-height: 1.6; }
.blog-hero-count {
  margin-top: 14px;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.blog-listing { padding: 40px 0 72px; }

/* ── Featured lead story ── */
.blog-lead {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 40px;
  transition: var(--transition);
}
.blog-lead:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(204,0,0,.2);
}
.blog-lead-link {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  color: inherit;
  min-height: 0;
}
.blog-lead-media {
  position: relative;
  aspect-ratio: 16 / 10;
  max-height: 340px;
  background: #ececec;
  overflow: hidden;
}
.blog-lead-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.blog-lead:hover .blog-lead-media img { transform: scale(1.03); }
.blog-lead-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--red);
  color: var(--white);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
}
.blog-lead-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 32px;
}
.blog-lead-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 12px;
}
.blog-lead-excerpt {
  font-size: .96rem;
  color: var(--slate);
  line-height: 1.65;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Article feed list ── */
.blog-feed-header {
  border-bottom: 2px solid var(--black);
  margin-bottom: 0;
  padding-bottom: 10px;
}
.blog-feed-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--black);
}
.blog-feed {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
}
.blog-feed--standalone {
  border-top: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.blog-feed-item {
  border-bottom: 1px solid var(--border);
}
.blog-feed-item:last-child { border-bottom: none; }
.blog-feed-link {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 22px 24px;
  color: inherit;
  transition: background .2s ease;
}
.blog-feed-link:hover { background: #fafafa; }
.blog-feed-thumb {
  width: 200px;
  height: 130px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ececec;
  flex-shrink: 0;
}
.blog-feed-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.blog-feed-link:hover .blog-feed-thumb img { transform: scale(1.04); }
.blog-feed-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.blog-feed-item-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--black);
  margin-bottom: 8px;
  transition: color .2s;
}
.blog-feed-link:hover .blog-feed-item-title { color: var(--red); }
.blog-feed-excerpt {
  font-size: .9rem;
  color: var(--slate);
  line-height: 1.6;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-feed-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--red);
}
.blog-feed-read i { font-size: .7rem; transition: transform .2s; }
.blog-feed-link:hover .blog-feed-read i { transform: translateX(3px); }

/* ── Shared card bits ── */
.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 10px;
}
.blog-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--red);
  margin-top: auto;
}
.blog-card-cta i { transition: transform .2s ease; }
.blog-lead:hover .blog-card-cta i { transform: translateX(4px); }
.blog-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #f0f0f0, #e4e4e4);
}

.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.blog-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--white);
  font-weight: 600;
  font-size: .88rem;
  transition: var(--transition);
}
.blog-page-btn:hover:not(.is-disabled) {
  border-color: var(--red);
  color: var(--red);
}
.blog-page-btn.is-disabled { opacity: .45; pointer-events: none; }
.blog-page-info { font-size: .88rem; color: #888; }

.blog-empty {
  text-align: center;
  padding: 64px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
}
.blog-empty-icon { font-size: 3rem; color: #ccc; margin-bottom: 16px; }
.blog-empty h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: var(--black);
}
.blog-empty p { color: #777; margin-bottom: 20px; }

/* ── Article detail page ── */
.blog-article-top {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 0 0;
}
.blog-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: #888;
  margin-bottom: 12px;
}
.blog-breadcrumb a { color: #888; transition: color .2s; }
.blog-breadcrumb a:hover { color: var(--red); }
.blog-breadcrumb-current {
  color: var(--slate);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 280px;
}
.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 20px;
  transition: gap .2s;
}
.blog-back-link:hover { gap: 10px; }

.blog-article-header {
  background: var(--white);
  padding: 8px 0 28px;
  border-bottom: 1px solid var(--border);
}
.blog-article-header-inner { max-width: 820px; }
.blog-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 14px;
}
.blog-article-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.blog-article-author i { font-size: .72rem; opacity: .8; }
.blog-article-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--black);
  max-width: 820px;
}
.blog-article-lead {
  margin-top: 16px;
  font-size: 1.12rem;
  color: var(--slate);
  max-width: 720px;
  line-height: 1.65;
  font-weight: 400;
}

.blog-article-featured {
  padding: 28px 0 0;
  background: var(--light);
}
.blog-article-featured-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  max-height: 420px;
}
.blog-article-featured-img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.blog-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
  padding: 36px 0 64px;
}
.blog-article-main { min-width: 0; }
.blog-article-content {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  font-size: 1.05rem;
  line-height: 1.85;
  color: #333;
  box-shadow: var(--shadow-sm);
}
.blog-article-content > *:first-child { margin-top: 0; }
.blog-article-content > *:last-child { margin-bottom: 0; }
.blog-article-content h1,
.blog-article-content h2,
.blog-article-content h3,
.blog-article-content h4 {
  font-family: 'Barlow Condensed', sans-serif;
  color: var(--black);
  margin: 1.6em 0 .6em;
  line-height: 1.2;
}
.blog-article-content h2 {
  font-size: 1.65rem;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--light);
}
.blog-article-content h3 { font-size: 1.3rem; }
.blog-article-content p { margin-bottom: 1.15em; }
.blog-article-content img {
  max-width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  border-radius: var(--radius-md);
  margin: 1.5em auto;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.blog-article-content ul,
.blog-article-content ol {
  margin: 0 0 1.15em;
  padding-left: 1.4em;
  list-style: disc;
}
.blog-article-content ol { list-style: decimal; }
.blog-article-content li { margin-bottom: .45em; }
.blog-article-content blockquote {
  border-left: 4px solid var(--red);
  background: #fafafa;
  padding: 16px 20px;
  margin: 1.5em 0;
  color: #555;
  font-style: italic;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.blog-article-content pre {
  background: #f5f5f5;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  overflow: auto;
  margin: 1.2em 0;
  font-size: .92rem;
  border: 1px solid var(--border);
}
.blog-article-content a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.blog-article-content a:hover { color: var(--red-dark); }
.blog-article-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2em 0;
}
.blog-article-footer {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.blog-article-back-btn { display: inline-flex; align-items: center; gap: 8px; }

/* ── Sidebar related (desktop) ── */
.blog-article-sidebar {
  position: sticky;
  top: 88px;
}
.blog-sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
}
.blog-sidebar-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--black);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
}
.blog-related-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.blog-related-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: start;
  color: inherit;
  padding: 8px;
  margin: -8px;
  border-radius: var(--radius-md);
  transition: background .2s;
}
.blog-related-item:hover { background: #fafafa; }
.blog-related-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #ececec;
  flex-shrink: 0;
}
.blog-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-related-info { min-width: 0; }
.blog-related-date {
  display: block;
  font-size: .68rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: .3px;
  margin-bottom: 4px;
}
.blog-related-name {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--black);
  transition: color .2s;
}
.blog-related-item:hover .blog-related-name { color: var(--red); }

/* ── Mobile related strip ── */
.blog-related-mobile { display: none; }
.blog-related-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--black);
}
.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.blog-related-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.blog-related-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(204,0,0,.2);
}
.blog-related-card-link { display: block; color: inherit; }
.blog-related-card-media {
  aspect-ratio: 16 / 10;
  max-height: 140px;
  overflow: hidden;
  background: #ececec;
}
.blog-related-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.blog-related-card:hover .blog-related-card-media img { transform: scale(1.04); }
.blog-related-card-body { padding: 14px 16px 16px; }
.blog-related-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--black);
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 960px) {
  .blog-lead-link { grid-template-columns: 1fr; }
  .blog-lead-media { max-height: 260px; }
  .blog-lead-body { padding: 22px 24px 26px; }
  .blog-feed-link { grid-template-columns: 160px 1fr; gap: 18px; }
  .blog-feed-thumb { width: 160px; height: 110px; }
  .blog-article-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: 0;
  }
  .blog-article-sidebar { display: none; }
  .blog-related-mobile {
    display: block;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 36px 0 56px;
  }
  .blog-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .blog-hero { padding: 44px 0 36px; }
  .blog-listing { padding: 28px 0 56px; }
  .blog-lead { margin-bottom: 28px; }
  .blog-lead-media { max-height: 200px; aspect-ratio: 16 / 9; }
  .blog-lead-body { padding: 18px 16px 22px; }
  .blog-lead-excerpt { -webkit-line-clamp: 3; }
  .blog-feed-link {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 16px;
  }
  .blog-feed-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 180px;
  }
  .blog-feed-item-title { font-size: 1.15rem; }
  .blog-breadcrumb-current { max-width: 160px; }
  .blog-article-content { padding: 22px 18px; font-size: 1rem; }
  .blog-article-featured-figure { max-height: 240px; }
  .blog-article-featured-img { max-height: 240px; }
  .blog-related-grid { grid-template-columns: 1fr; }
  .blog-related-card-media { max-height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-content,
  .hero-dot,
  .hero-arrow,
  .hero-badge-dot,
  .blog-lead,
  .blog-lead-media img,
  .blog-feed-thumb img,
  .blog-related-card-media img {
    transition: none;
    animation: none;
  }
}
