/* =============================================
   TIRES EASY TRUCK - Clone Styles
   ============================================= */

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

:root {
  --red: #e60000;
  --dark: #1a1a1a;
  --text: #333333;
  --gray: #666666;
  --light-gray: #f5f5f5;
  --border: #e0e0e0;
  --white: #ffffff;
  --font: 'Poppins', Arial, sans-serif;
}

body { font-family: var(--font); color: var(--text); background: #fff; font-size: 14px; line-height: 1.5; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
ul { list-style: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* =============================================
   TOP BAR
   ============================================= */
.top-bar {
  background: var(--dark);
  color: #ccc;
  font-size: 12px;
  padding: 6px 0;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a { color: #ccc; }
.top-bar a:hover { color: var(--white); }
.top-bar-links { display: flex; gap: 16px; }
.top-bar-links a { border-left: 1px solid #444; padding-left: 16px; }
.top-bar-links a:first-child { border-left: none; padding-left: 0; }

/* =============================================
   HEADER
   ============================================= */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 20px;
}
.logo { flex-shrink: 0; display: flex; align-items: center; }
.header-search {
  flex: 1;
  display: flex;
  border: 2px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.header-search:focus-within { border-color: var(--red); }
.search-input {
  flex: 1;
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font);
  border: none;
  outline: none;
}
.search-btn {
  background: var(--red);
  border: none;
  padding: 10px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.search-btn:hover { background: #cc0000; }
.header-actions { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.action-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--dark);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
}
.action-icon:hover { color: var(--red); }
.action-icon svg { transition: color 0.2s; }
.cart-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =============================================
   MAIN NAV
   ============================================= */
.main-nav {
  background: var(--dark);
  border-top: 3px solid var(--red);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-link {
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s, color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.nav-link:hover { background: var(--red); color: var(--white); }
.deals-link { color: #ffcc00; }
.deals-link:hover { color: var(--white); }
.nav-dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  z-index: 999;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
}
.dropdown-menu a:hover { background: var(--light-gray); color: var(--red); }

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #111 100%);
  color: var(--white);
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  border: 60px solid rgba(230,0,0,0.08);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -60px;
  width: 300px; height: 300px;
  border: 40px solid rgba(255,255,255,0.03);
  border-radius: 50%;
}
.hero-content { position: relative; z-index: 1; max-width: 820px; }
.hero-title {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 10px;
  line-height: 1.15;
}
.hero-title span { color: var(--red); }
.hero-subtitle {
  font-size: 16px;
  color: #aaa;
  margin-bottom: 36px;
}

/* Tire Selector */
.tire-selector {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  overflow: hidden;
}
.selector-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.selector-tab {
  flex: 1;
  padding: 14px 20px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: #aaa;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.selector-tab.active { background: var(--red); color: var(--white); }
.selector-tab:not(.active):hover { background: rgba(255,255,255,0.05); color: var(--white); }
.selector-panel { display: none; padding: 24px; }
.selector-panel.active { display: block; }

.size-inputs { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.size-group { display: flex; flex-direction: column; gap: 6px; }
.size-group label { font-size: 11px; color: #aaa; text-transform: uppercase; letter-spacing: 0.5px; }
.size-group select {
  padding: 10px 14px;
  font-size: 15px;
  font-family: var(--font);
  background: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  min-width: 110px;
}
.size-sep { color: #aaa; font-size: 22px; font-weight: 300; margin-bottom: 10px; }
.btn-search-size {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 11px 28px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 0;
  transition: background 0.2s;
}
.btn-search-size:hover { background: #cc0000; }

.brand-selector-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.brand-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 9px 18px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.brand-btn:hover { background: var(--red); border-color: var(--red); }
.see-all-brands { color: var(--red); font-size: 13px; font-weight: 600; }
.see-all-brands:hover { text-decoration: underline; }

/* =============================================
   FEATURES BAR
   ============================================= */
.features-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 24px;
  border-right: 1px solid var(--border);
}
.feature-item:last-child { border-right: none; }
.feature-icon { flex-shrink: 0; }
.feature-text { display: flex; flex-direction: column; }
.feature-text strong { font-size: 14px; font-weight: 700; color: var(--dark); }
.feature-text span { font-size: 12px; color: var(--gray); }

/* =============================================
   SECTIONS COMMON
   ============================================= */
.section { padding: 60px 0; }
.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  text-align: center;
}
.section-subtitle {
  text-align: center;
  color: var(--gray);
  font-size: 15px;
  margin-bottom: 36px;
}
.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--red);
  margin: 10px auto 36px;
}
.section-footer { text-align: center; margin-top: 36px; }

.btn-outline {
  display: inline-block;
  border: 2px solid var(--dark);
  color: var(--dark);
  padding: 11px 28px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-outline:hover { background: var(--dark); color: var(--white); }

/* =============================================
   CATEGORIES
   ============================================= */
.categories-section { background: var(--light-gray); }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 16px 20px;
  text-align: center;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.category-card:hover {
  border-color: var(--red);
  box-shadow: 0 4px 16px rgba(230,0,0,0.1);
  transform: translateY(-2px);
}
.category-img { margin-bottom: 4px; }
.category-card h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
}
.category-link {
  font-size: 12px;
  color: var(--red);
  font-weight: 600;
}

/* =============================================
   BRANDS
   ============================================= */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.brand-logo-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 70px;
  transition: all 0.2s;
  background: var(--white);
}
.brand-logo-card:hover {
  border-color: var(--red);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.brand-logo-card span {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =============================================
   PRODUCTS
   ============================================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.product-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  background: var(--white);
  position: relative;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
}
.product-card:hover {
  border-color: #c8d4dc;
  box-shadow: 0 10px 28px rgba(19, 45, 61, .12);
  transform: translateY(-2px);
}
.product-badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.product-card-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 188px;
  padding: 22px 18px 18px;
  background: linear-gradient(145deg, #f8fafb 0%, #eef3f5 100%);
  border-bottom: 1px solid #e7edef;
}
.product-img-link { display: flex; align-items: center; justify-content: center; width: 100%; }
.product-img {
  width: 156px;
  height: 156px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img img { max-width: 100%; max-height: 100%; filter: drop-shadow(0 8px 8px rgba(0,0,0,.12)); }
.availability-pill {
  position: absolute;
  right: 14px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e9f8ee;
  color: #24743a;
  font-size: 10px;
  font-weight: 700;
}
.availability-pill span { width: 6px; height: 6px; border-radius: 50%; background: #2faa50; }
.product-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.product-heading-copy { min-width: 0; }
.product-heading .product-brand-logo { flex: 0 0 auto; width: 80px; height: 24px; margin: 0; }
.product-info {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px 17px 17px;
}
.product-brand {
  font-size: 10px;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.product-name {
  margin-top: 3px;
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}
.product-category {
  font-size: 12px;
  color: var(--gray);
  background: var(--light-gray);
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  align-self: flex-start;
}
.product-fitment {
  color: var(--dark);
  font-size: 13px;
  line-height: 1.35;
  min-height: 18px;
}
.easy-test-score {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--dark);
  font-size: 12px;
  font-weight: 700;
}
.easy-test-score > span:first-child { text-transform: lowercase; }
.score-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  border: 1px solid #777;
  border-radius: 50%;
  color: #555;
  font-size: 9px;
  font-style: normal;
}
.easy-test-score strong {
  margin-left: 5px;
  padding: 4px 7px;
  border-radius: 3px 0 0 3px;
  background: #9b8d5e;
  color: #fff;
  font-size: 12px;
}
.easy-test-score em {
  margin-left: -5px;
  padding: 4px 7px;
  border-radius: 0 3px 3px 0;
  background: #8b7d50;
  color: #fff;
  font-size: 12px;
  font-style: normal;
}
.product-brand-logo {
  display: block;
  width: 92px;
  height: 26px;
  object-fit: contain;
  object-position: left center;
  margin: 2px 0 2px;
}
.product-stars { font-size: 14px; color: #f5a623; }
.review-count { color: var(--gray); font-size: 12px; }
.product-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
}
.price-label { font-size: 12px; color: var(--gray); }
.price-old {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
}
.price-current {
  font-size: 22px;
  font-weight: 700;
  color: var(--red);
}
.product-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
}
.product-qty-label { display: flex; min-width: 88px; }
.product-qty {
  width: 100%;
  padding: 9px 8px;
  border: 1px solid #cfcfcf;
  border-radius: 5px;
  background: #fff;
  color: var(--dark);
  font: 600 12px var(--font);
}
.btn-delivery {
  flex: 1;
  min-width: 0;
  border: none;
  border-radius: 5px;
  padding: 9px 10px;
  background: #0b83c5;
  color: #fff;
  font: 600 12px var(--font);
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
}
.btn-delivery:hover { background: #076b9f; }
.delivery-cart-icon { margin-right: 3px; font-size: 14px; }
.detail-delivery { width: 100%; margin: -4px 0 12px; padding: 12px; font-size: 13px; }
.product-add-button { width: auto; flex: 1; margin-top: 0; padding: 9px 10px; font-size: 12px; }
.btn-add-cart {
  margin-top: 12px;
  width: 100%;
  background: var(--dark);
  color: var(--white);
  border: none;
  padding: 12px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-add-cart:hover { background: var(--red); }

/* =============================================
   MEMBERSHIP BANNER
   ============================================= */
.membership-banner {
  background: linear-gradient(135deg, var(--red) 0%, #990000 100%);
  color: var(--white);
  padding: 50px 0;
}
.membership-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.membership-text h2 { font-size: 30px; font-weight: 700; margin-bottom: 12px; }
.membership-text p { font-size: 15px; color: rgba(255,255,255,0.85); max-width: 540px; margin-bottom: 24px; }
.btn-white {
  display: inline-block;
  background: var(--white);
  color: var(--red);
  padding: 12px 30px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  transition: all 0.2s;
}
.btn-white:hover { background: var(--dark); color: var(--white); }
.membership-graphic { flex-shrink: 0; opacity: 0.6; }

/* =============================================
   FINANCING
   ============================================= */
.financing-section { background: var(--light-gray); }
.financing-partners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}
.financing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
}
.financing-logo {
  font-size: 26px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.paypal-logo { color: #003087; }
.financing-card p { font-size: 14px; color: var(--gray); margin-bottom: 20px; line-height: 1.6; }

/* =============================================
   BLOG
   ============================================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  transition: all 0.2s;
}
.blog-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); transform: translateY(-2px); }
.blog-img { overflow: hidden; background: #222; }
.blog-content { padding: 20px; }
.blog-date { font-size: 12px; color: var(--gray); margin-bottom: 8px; display: block; }
.blog-title { font-size: 16px; font-weight: 700; color: var(--dark); line-height: 1.4; margin-bottom: 10px; }
.blog-excerpt { font-size: 13px; color: var(--gray); line-height: 1.6; margin-bottom: 16px; }
.blog-link { font-size: 13px; font-weight: 700; color: var(--red); }
.blog-link:hover { text-decoration: underline; }

/* =============================================
   FOOTER
   ============================================= */
.footer { background: #111; color: #aaa; }
.footer-top { padding: 60px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 40px;
}
.footer-logo { margin-bottom: 14px; }
.footer-desc { font-size: 13px; color: #888; line-height: 1.6; margin-bottom: 16px; }
.footer-contact { font-size: 13px; margin-bottom: 16px; line-height: 1.8; }
.footer-contact a { color: var(--red); }
.footer-contact a:hover { text-decoration: underline; }
.footer-heading { font-size: 13px; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 16px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 13px; color: #888; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.social-links { display: flex; gap: 10px; margin-top: 4px; }
.social-link {
  width: 36px; height: 36px;
  background: #222;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  transition: all 0.2s;
}
.social-link:hover { background: var(--red); color: var(--white); }

/* Newsletter */
.newsletter-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.newsletter-input {
  padding: 10px 14px;
  font-family: var(--font);
  font-size: 13px;
  background: #222;
  border: 1px solid #333;
  border-radius: 4px;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-input:focus { border-color: var(--red); }
.newsletter-input::placeholder { color: #666; }
.newsletter-btn {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 10px 14px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.newsletter-btn:hover { background: #cc0000; }

/* Payment Icons */
.payment-icons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.payment-icon {
  background: var(--white);
  color: var(--dark);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 3px;
  letter-spacing: 0.3px;
}

.payment-icons img.payment-icon {
  height: 28px;
  width: auto;
  max-width: 62px;
  object-fit: contain;
  padding: 2px 4px;
}

/* Footer Bottom */
.footer-bottom {
  background: #0a0a0a;
  border-top: 1px solid #222;
  padding: 16px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { font-size: 12px; color: #555; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 12px; color: #555; }
.footer-legal a:hover { color: #aaa; }

/* =============================================
   CART SIDEBAR
   ============================================= */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
}
.cart-overlay.open { display: block; }
.cart-sidebar {
  position: fixed;
  top: 0; right: -420px;
  width: 400px;
  height: 100%;
  background: var(--white);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
}
.cart-sidebar.open { right: 0; }
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.cart-header h3 { font-size: 18px; font-weight: 700; }
.cart-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--gray);
  line-height: 1;
}
.cart-close:hover { color: var(--red); }
.cart-body { flex: 1; overflow-y: auto; padding: 24px; }
.cart-empty { text-align: center; padding: 40px 0; }
.cart-empty svg { margin-bottom: 16px; }
.cart-empty p { font-size: 15px; color: var(--gray); margin-bottom: 20px; }
.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}
.cart-total {
  font-size: 18px;
  margin-bottom: 14px;
  text-align: right;
}
.btn-checkout {
  width: 100%;
  background: #28a745;
  color: var(--white);
  border: none;
  padding: 14px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-checkout:hover { background: #218838; }

/* Cart items */
.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-img {
  width: 60px; height: 60px;
  background: var(--light-gray);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cart-item-img img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  display: block;
}
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 13px; font-weight: 600; color: var(--dark); }
.cart-item-price { font-size: 12px; color: var(--gray); margin-top: 3px; }
.cart-item-qty { font-size: 12px; color: var(--dark); margin-top: 4px; }
.cart-item-total { font-size: 14px; font-weight: 700; color: var(--red); white-space: nowrap; }
.cart-item-remove {
  background: none;
  border: 1px solid var(--border);
  width: 28px; height: 28px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 16px;
  transition: all 0.2s;
  flex-shrink: 0;
}
.cart-item-remove:hover { background: var(--red); color: var(--white); border-color: var(--red); }

/* =============================================
   RESPONSIVE
   ============================================= */

/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 10;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* -- Tablet -- */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .brands-grid { grid-template-columns: repeat(4, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* -- Mobile -- */
@media (max-width: 768px) {
  /* Global spacing */
  .container { padding-left: 16px; padding-right: 16px; }
  .section { padding: 32px 0; }

  /* Top bar */
  .top-bar-inner { flex-direction: column; gap: 4px; text-align: center; font-size: 12px; }
  .top-bar-links { gap: 10px; }

  /* Header */
  .header-inner { flex-wrap: wrap; gap: 10px; padding: 10px 0; }
  .logo img { height: 36px; }
  .header-search { order: 3; width: 100%; }
  .search-input { padding: 10px 12px; font-size: 14px; }
  .header-actions { gap: 12px; }
  .action-icon span { display: none; }

  /* Hamburger visible */
  .hamburger { display: flex; }

  /* Nav collapse */
  .main-nav {
    display: none;
    border-top: 1px solid var(--border);
  }
  .main-nav.open { display: block; }
  .nav-inner {
    flex-direction: column;
    gap: 0;
    overflow: visible;
  }
  .nav-link {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
  }
  .nav-dropdown { position: static; }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 20px;
    display: none;
    background: #f9f9f9;
  }
  .nav-dropdown:hover .dropdown-menu,
  .nav-dropdown .dropdown-menu { display: block; }
  .dropdown-menu a { padding: 10px 16px; font-size: 13px; }

  /* Hero */
  .hero { padding: 40px 0; }
  .hero-title { font-size: 22px; line-height: 1.3; }
  .hero p { font-size: 13px; }
  .size-selector { padding: 20px 16px; }
  .selector-tabs { gap: 0; flex-wrap: wrap; }
  .selector-tab { font-size: 12px; padding: 10px 14px; }
  .size-inputs { gap: 6px; flex-wrap: wrap; }
  .size-group { min-width: 0; flex: 1 1 45%; }
  .size-group select { min-width: 0; width: 100%; font-size: 13px; }
  .btn-search { width: 100%; margin-top: 8px; }

  /* Category grid */
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .category-card { padding: 20px 12px; }
  .category-card h3 { font-size: 13px; }

  /* Brands */
  .brands-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .brand-card { padding: 16px 10px; }

  /* Products — horizontal card on mobile */
  .products-grid { grid-template-columns: 1fr; gap: 12px; }
  .product-card {
    flex-direction: row;
    align-items: stretch;
    overflow: hidden;
  }
  .product-badge { top: 8px; left: 8px; font-size: 9px; padding: 2px 6px; }
  .product-card-media {
    min-height: 0;
    width: 130px;
    min-width: 130px;
    padding: 12px;
    flex-shrink: 0;
    border-bottom: none;
    border-right: 1px solid #e7edef;
  }
  .product-img { width: 100px; height: 100px; }
  .product-img img { max-width: 100px; max-height: 100px; }
  .availability-pill { display: none; }
  .product-info {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    gap: 4px;
  }
  .product-heading { gap: 6px; }
  .product-heading .product-brand-logo { width: 56px; height: 18px; }
  .product-brand { font-size: 9px; }
  .product-name { font-size: 13px; }
  .product-category { font-size: 10px; padding: 2px 7px; }
  .product-fitment { font-size: 11px; }
  .easy-test-score { display: none; }
  .product-stars { font-size: 12px; }
  .review-count { font-size: 10px; }
  .product-price { margin-top: 2px; }
  .price-label { font-size: 10px; }
  .price-current { font-size: 19px; }
  .price-old { font-size: 12px; }
  .product-actions { margin-top: 6px; gap: 6px; }
  .product-qty-label { min-width: 70px; }
  .product-qty { padding: 6px 5px; font-size: 11px; }
  .product-actions .product-add-button { padding: 8px 8px; font-size: 11px; min-height: 38px; }

  /* Section titles */
  .section-title { font-size: 22px; margin-bottom: 20px; }
  .section-title::after { width: 40px; }

  /* Blog grid */
  .blog-grid { grid-template-columns: 1fr; }

  /* Features bar */
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-item { padding: 16px 10px; border-right: none; border-bottom: 1px solid var(--border); }
  .feature-item:nth-child(odd) { border-right: 1px solid var(--border); }
  .feature-item:nth-last-child(-n+2) { border-bottom: none; }
  .feature-icon { font-size: 24px; }
  .feature-item h4 { font-size: 12px; }
  .feature-item p { font-size: 10px; }

  /* Financing, membership */
  .financing-partners { grid-template-columns: 1fr; }
  .membership-content { flex-direction: column; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-col h4 { margin-bottom: 10px; }
  .footer-bottom-inner { flex-direction: column; gap: 10px; text-align: center; }

  /* Cart sidebar full width */
  .cart-sidebar { width: 100%; right: -100%; }

  /* Delivery modal */
  .delivery-modal { width: 95%; min-width: 0; }

  /* Touch targets */
  button, .btn-add-cart, .btn-delivery, .btn-outline, a.nav-link {
    min-height: 44px;
  }
  .carousel-arrow, .carousel-dot, .qty-ctrl button {
    min-height: auto;
  }
}

/* -- Small mobile -- */
@media (max-width: 480px) {
  .hero-title { font-size: 20px; }
  .hero p { font-size: 12px; }
  .categories-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .feature-item { border-right: none; }
  .section-title { font-size: 20px; }
  .size-group { flex: 1 1 100%; }
  .logo img { height: 32px; }
  .top-bar { font-size: 11px; padding: 6px 0; }
  .selector-tab { padding: 8px 10px; font-size: 11px; }
}

/* Delivery availability dialog */
.delivery-modal-backdrop {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,.55);
  z-index: 10000;
}
.delivery-modal {
  width: min(440px, 100%);
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.delivery-modal h3 { margin: 0 0 6px; font-size: 19px; }
.delivery-modal p { margin: 0 0 16px; color: #666; font-size: 13px; line-height: 1.5; }
.delivery-modal-form { display: flex; gap: 8px; }
.delivery-modal-form input {
  flex: 1;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font: 14px var(--font);
}
.delivery-modal-form button {
  padding: 11px 14px;
  border: none;
  border-radius: 4px;
  background: #0b83c5;
  color: #fff;
  font: 600 13px var(--font);
  cursor: pointer;
}
.delivery-result {
  display: none;
  margin-top: 16px;
  padding: 12px;
  border-radius: 5px;
  background: #edf9f0;
  color: #176b2b;
  font-size: 13px;
  line-height: 1.55;
}
.delivery-modal-close {
  float: right;
  border: none;
  background: transparent;
  color: #777;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

/* Floating Contact Buttons */
.floating-contact {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 9998;
}
.floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  color: #fff;
}
.floating-btn svg {
  flex-shrink: 0;
}
.floating-btn-whatsapp {
  background: #25D366;
}
.floating-btn-whatsapp:hover {
  background: #1ebe57;
}
.floating-btn-sms {
  background: #0b83c5;
}
.floating-btn-sms:hover {
  background: #0970ab;
}
@media (max-width: 768px) {
  .floating-contact {
    bottom: 16px;
    right: 16px;
    gap: 8px;
  }
  .floating-btn {
    width: 48px;
    height: 48px;
  }
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--dark);
  color: var(--white);
  padding: 14px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  z-index: 9999;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-left: 4px solid #28a745; }

/* Final narrow-screen pass for phones */
@media (max-width: 480px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  .container { width: 100%; padding-left: 12px; padding-right: 12px; }
  .top-bar-inner { font-size: 10px; }
  .top-bar-links { gap: 7px; font-size: 10px; }
  .header-inner { gap: 6px; }
  .logo { max-width: 150px; }
  .logo img { max-width: 150px; height: 30px; }
  .header-actions { gap: 6px; margin-left: auto; }
  .header-actions .action-icon { padding: 4px; }
  .header-search { width: 100%; }
  .search-input { font-size: 12px; padding: 9px 10px; }
  .product-card-media { width: 110px; min-width: 110px; padding: 10px; }
  .product-img { width: 85px; height: 85px; }
  .product-img img { max-width: 85px; max-height: 85px; }
  .product-info { padding: 10px 12px; gap: 3px; }
  .product-name { font-size: 12px; overflow-wrap: anywhere; }
  .product-category { font-size: 9px; padding: 2px 6px; }
  .product-fitment { font-size: 10px; }
  .product-stars { font-size: 11px; }
  .product-price { gap: 4px; flex-wrap: wrap; }
  .price-current { font-size: 17px; }
  .product-heading .product-brand-logo { width: 48px; height: 16px; }
  .product-actions { flex-direction: column; gap: 5px; }
  .product-qty-label { min-width: 0; width: 100%; }
  .product-qty { width: 100%; }
  .product-actions .product-add-button { width: 100%; font-size: 10px; min-height: 36px; }
  .cart-item { gap: 8px; }
  .cart-item-img { width: 50px; height: 50px; }
  .cart-item-img img { width: 46px; height: 46px; }
  .cart-item-name { font-size: 11px; }
  .cart-item-total { font-size: 12px; }
  .delivery-modal-form { flex-direction: column; }
  .delivery-modal-form button { width: 100%; }
  .table-wrap, .cart-table-wrap { max-width: 100%; overflow-x: auto; }
  .floating-contact { right: 8px; bottom: 10px; gap: 5px; }
  .floating-btn { width: 40px; height: 40px; }
  .floating-btn svg { width: 20px; height: 20px; }
}

/* Keep the compact mobile Add to Cart control readable and inside its row. */
.product-actions .product-add-button {
  width: auto;
  min-width: 0;
  flex: 1 1 auto;
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #fff;
  background: #1a1a1a;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-actions .product-add-button:hover { background: #e60000; }
.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; }
