/* Importación de tipografía legible tipo Retail */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Variables de diseño - Identidad AutoZone & San Martin */
:root {
  --az-orange: #FF5000;
  --az-orange-hover: #D84300;
  --az-black: #111111;
  --az-dark-grey: #222222;
  --az-light-grey: #F4F4F6;
  --az-border: #E1E1E6;
  
  --text-main: #222222;
  --text-muted: #666666;
  --text-light: #FFFFFF;
  
  --fit-green: #008A45;
  --fit-green-bg: rgba(0, 138, 69, 0.08);
  --error-red: #D32F2F;
  --error-red-bg: rgba(211, 47, 47, 0.08);
  
  --transition-fast: all 0.2s ease-in-out;
  --font-family: 'Inter', sans-serif;
  --max-width: 1300px;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--az-light-grey);
  color: var(--text-main);
  line-height: 1.5;
}

/* --- ENCABEZADO Y MENU SUPERIOR --- */
header {
  background-color: var(--az-black);
  color: var(--text-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Franja negra fina superior */
.top-strip {
  background-color: #000000;
  padding: 0.4rem 2rem;
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #222;
}
.top-strip a:hover {
  color: var(--az-orange);
}

.main-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Logotipo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  color: var(--text-light);
}
.logo span {
  color: var(--az-orange);
}
.logo i {
  color: var(--az-orange);
}

/* Buscador gigante central */
.header-search {
  flex-grow: 1;
  max-width: 650px;
  position: relative;
}
.header-search input {
  width: 100%;
  padding: 0.85rem 1.25rem 0.85rem 3rem;
  border-radius: 4px;
  border: 1px solid transparent;
  background-color: var(--text-light);
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  font-weight: 500;
}
.header-search input:focus {
  box-shadow: 0 0 0 2px var(--az-orange);
}
.header-search i {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Botones de acción derecha */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.header-btn {
  background: transparent;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  gap: 4px;
  position: relative;
  transition: var(--transition-fast);
}
.header-btn:hover {
  color: var(--az-orange);
}
.header-btn i {
  font-size: 1.3rem;
}
.cart-badge {
  position: absolute;
  top: -6px;
  right: 15px;
  background-color: var(--az-orange);
  color: var(--text-light);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
}

/* --- BARRA DEL VEHÍCULO ACTIVO --- */
.vehicle-bar {
  background-color: var(--az-dark-grey);
  border-bottom: 3px solid var(--az-orange);
  padding: 0.75rem 2rem;
}
.vehicle-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.vehicle-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
}
.vehicle-status i {
  font-size: 1.1rem;
}
.vehicle-status .car-icon-active {
  color: var(--az-orange);
}
.active-vehicle-tag {
  background-color: rgba(255, 80, 0, 0.15);
  border: 1px solid var(--az-orange);
  color: var(--text-light);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
}
.add-vehicle-btn {
  background-color: var(--az-orange);
  color: var(--text-light);
  border: none;
  padding: 0.5rem 1.25rem;
  font-weight: 700;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}
.add-vehicle-btn:hover {
  background-color: var(--az-orange-hover);
}
.remove-vehicle-btn {
  background: transparent;
  border: none;
  color: #aaa;
  cursor: pointer;
  font-size: 0.8rem;
  text-decoration: underline;
}
.remove-vehicle-btn:hover {
  color: var(--text-light);
}

/* --- SECCIÓN HERO / PROMOCIÓN --- */
.hero-banner-section {
  max-width: var(--max-width);
  margin: 1.5rem auto;
  padding: 0 2rem;
}
.hero-banner-box {
  background-color: var(--az-black);
  border-radius: 6px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  min-height: 320px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.hero-banner-content {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--text-light);
}
.hero-banner-content h1 {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.hero-banner-content h1 span {
  color: var(--az-orange);
}
.hero-banner-content p {
  color: #ccc;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  max-width: 500px;
}
.hero-banner-image {
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 250px;
}
.hero-banner-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--az-black) 0%, transparent 40%);
}

/* --- CATEGORÍAS RÁPIDAS --- */
.quick-categories {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 0 2rem;
}
.quick-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-transform: uppercase;
  border-left: 4px solid var(--az-orange);
  padding-left: 10px;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
}
.quick-card {
  background-color: var(--text-light);
  border: 1px solid var(--az-border);
  border-radius: 6px;
  padding: 1.25rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
}
.quick-card:hover, .quick-card.active {
  border-color: var(--az-orange);
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}
.quick-card.active {
  background-color: rgba(255, 80, 0, 0.04);
}
.quick-card i {
  font-size: 1.8rem;
  color: var(--az-orange);
  margin-bottom: 0.75rem;
}
.quick-card h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* --- MAIN LAYOUT: FILTROS + PRODUCTOS --- */
.main-store-container {
  max-width: var(--max-width);
  margin: 0 auto 4rem;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
}

/* Lateral de Filtros */
.sidebar-filters {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.filter-block {
  background-color: var(--text-light);
  border: 1px solid var(--az-border);
  border-radius: 6px;
  padding: 1.5rem;
}
.filter-block h3 {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--az-border);
  padding-bottom: 0.5rem;
}
.filter-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-main);
  cursor: pointer;
}
.filter-item:hover {
  color: var(--az-orange);
}
.filter-item.active {
  color: var(--az-orange);
  font-weight: 700;
}
.filter-item span.count {
  background-color: var(--az-light-grey);
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.vehicle-warning-box {
  background-color: var(--error-red-bg);
  border: 1px solid rgba(211, 47, 47, 0.2);
  color: var(--error-red);
  padding: 1rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  gap: 10px;
  margin-bottom: 1rem;
}

/* Grilla de productos */
.products-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--text-light);
  border: 1px solid var(--az-border);
  border-radius: 6px;
  padding: 1rem 1.5rem;
}
.results-count {
  font-size: 0.9rem;
  font-weight: 600;
}
.sort-select-box select {
  padding: 0.5rem 1rem;
  border: 1px solid var(--az-border);
  border-radius: 4px;
  outline: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Tarjeta de Producto */
.product-card {
  background-color: var(--text-light);
  border: 1px solid var(--az-border);
  border-radius: 6px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-fast);
  position: relative;
}
.product-card:hover {
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}
.product-brand {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--az-orange);
  margin-bottom: 4px;
}
.part-number {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.product-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  height: 40px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.75rem;
  cursor: pointer;
}
.product-title:hover {
  color: var(--az-orange);
}
.product-img-box {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  cursor: pointer;
  background-color: var(--az-light-grey);
  border-radius: 4px;
  padding: 0.5rem;
}
.product-img-box svg {
  max-height: 90%;
  max-width: 90%;
  color: var(--az-dark-grey);
}

/* Indicador de compatibilidad AutoZone */
.compatibility-badge {
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.compatibility-badge.fit {
  background-color: var(--fit-green-bg);
  color: var(--fit-green);
  border: 1px solid rgba(0, 138, 69, 0.15);
}
.compatibility-badge.not-fit {
  background-color: var(--error-red-bg);
  color: var(--error-red);
  border: 1px solid rgba(211, 47, 47, 0.15);
}
.compatibility-badge.unknown {
  background-color: #f0f0f2;
  color: var(--text-muted);
  border: 1px solid var(--az-border);
}

.product-price {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.product-price span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.add-btn-az {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--az-orange);
  color: var(--text-light);
  border: none;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}
.add-btn-az:hover {
  background-color: var(--az-orange-hover);
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background-color: var(--text-light);
  border: 1px solid var(--az-border);
  border-radius: 6px;
  color: var(--text-muted);
}
.no-results i {
  font-size: 3rem;
  color: var(--az-orange);
  margin-bottom: 1rem;
}

/* --- SUCURSALES Y PIE DE PÁGINA --- */
.store-info-bar {
  background-color: var(--text-light);
  border-top: 1px solid var(--az-border);
  border-bottom: 1px solid var(--az-border);
  padding: 3rem 2rem;
}
.store-info-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
}
.sucursal-details h2 {
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.sucursal-details p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.sucursal-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.sucursal-item {
  display: flex;
  gap: 15px;
}
.sucursal-item i {
  color: var(--az-orange);
  font-size: 1.1rem;
  margin-top: 3px;
}
.sucursal-text h4 {
  font-size: 0.9rem;
  font-weight: 700;
}
.sucursal-text p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* Formulario rápido */
.quick-contact-form {
  background-color: var(--az-light-grey);
  border: 1px solid var(--az-border);
  padding: 2rem;
  border-radius: 6px;
}
.quick-contact-form h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-weight: 800;
}
.quick-contact-form p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.contact-inputs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-inputs input, .contact-inputs textarea {
  padding: 0.75rem;
  border-radius: 4px;
  border: 1px solid var(--az-border);
  font-size: 0.85rem;
  outline: none;
  width: 100%;
}
.contact-inputs input:focus, .contact-inputs textarea:focus {
  border-color: var(--az-orange);
}
.contact-inputs button {
  background-color: var(--az-black);
  color: var(--text-light);
  border: none;
  padding: 0.85rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
}
.contact-inputs button:hover {
  background-color: #000;
}

/* Footer */
footer {
  background-color: var(--az-black);
  color: #ccc;
  padding: 4rem 2rem 2rem;
}
.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}
.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 1rem;
}
.footer-logo span {
  color: var(--az-orange);
}
.footer-about p {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.footer-links h3 {
  color: var(--text-light);
  font-size: 0.95rem;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid #222;
  padding-bottom: 6px;
}
.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-links ul a {
  color: #aaa;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}
.footer-links ul a:hover {
  color: var(--az-orange);
  padding-left: 4px;
}
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid #222;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #888;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --- MODAL WIDGET DE VEHICULO --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1099;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.vehicle-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background-color: var(--text-light);
  border-radius: 6px;
  width: 100%;
  max-width: 480px;
  z-index: 1100;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  border: 1px solid var(--az-border);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
}
.vehicle-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.vehicle-modal-header {
  background-color: var(--az-black);
  color: var(--text-light);
  padding: 1.25rem;
  border-radius: 5px 5px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.vehicle-modal-header h3 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
}
.close-modal-btn {
  background: transparent;
  border: none;
  color: #aaa;
  font-size: 1.2rem;
  cursor: pointer;
}
.close-modal-btn:hover {
  color: var(--text-light);
}
.vehicle-modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.dropdown-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dropdown-group label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}
.dropdown-group select {
  padding: 0.75rem;
  border-radius: 4px;
  border: 1px solid var(--az-border);
  outline: none;
  font-size: 0.9rem;
  width: 100%;
}
.dropdown-group select:disabled {
  background-color: var(--az-light-grey);
}
.save-vehicle-btn {
  background-color: var(--az-orange);
  color: var(--text-light);
  border: none;
  padding: 0.85rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  margin-top: 0.5rem;
}
.save-vehicle-btn:hover {
  background-color: var(--az-orange-hover);
}

/* --- CARRITO LATERAL (SIDEBAR) --- */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  height: 100%;
  background-color: var(--text-light);
  box-shadow: -5px 0 20px rgba(0,0,0,0.15);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease-in-out;
  border-left: 1px solid var(--az-border);
}
.cart-sidebar.open {
  right: 0;
}
.cart-header {
  background-color: var(--az-black);
  color: var(--text-light);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-header h3 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
}
.cart-close-btn {
  background: transparent;
  border: none;
  color: #aaa;
  font-size: 1.2rem;
  cursor: pointer;
}
.cart-close-btn:hover {
  color: var(--text-light);
}
.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cart-item {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid var(--az-border);
  padding-bottom: 1rem;
}
.cart-item-img {
  width: 60px;
  height: 60px;
  background-color: var(--az-light-grey);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cart-item-img svg {
  max-width: 80%;
  max-height: 80%;
}
.cart-item-info {
  flex-grow: 1;
}
.cart-item-title {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-item-part {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.cart-item-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}
.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.quantity-select {
  display: flex;
  align-items: center;
  border: 1px solid var(--az-border);
  border-radius: 4px;
  overflow: hidden;
}
.quantity-select button {
  background: transparent;
  border: none;
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-weight: 700;
}
.quantity-select button:hover {
  background-color: var(--az-light-grey);
}
.quantity-select span {
  width: 26px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
}
.cart-remove-btn {
  background: transparent;
  border: none;
  color: var(--error-red);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
}
.cart-remove-btn:hover {
  text-decoration: underline;
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--az-border);
  background-color: var(--az-light-grey);
}
.cart-totals {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}
.checkout-btn {
  width: 100%;
  padding: 0.9rem;
  background-color: var(--fit-green);
  color: var(--text-light);
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.checkout-btn:hover {
  filter: brightness(1.1);
}

/* --- PRODUCT DETAIL MODAL --- */
.detail-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background-color: var(--text-light);
  border-radius: 6px;
  width: 90%;
  max-width: 800px;
  z-index: 1100;
  box-shadow: 0 10px 35px rgba(0,0,0,0.3);
  border: 1px solid var(--az-border);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
  max-height: 90vh;
  overflow-y: auto;
}
.detail-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.detail-modal-body {
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
}
.detail-img-box {
  background-color: var(--az-light-grey);
  border-radius: 6px;
  border: 1px solid var(--az-border);
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.detail-img-box svg {
  max-height: 90%;
  max-width: 90%;
}
.detail-info {
  display: flex;
  flex-direction: column;
}
.detail-brand {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--az-orange);
  margin-bottom: 4px;
}
.detail-part {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.detail-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.25;
}
.detail-price {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}
.detail-price span {
  font-size: 1rem;
  color: var(--text-muted);
}
.detail-description {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}
.specs-table {
  background-color: var(--az-light-grey);
  border-radius: 4px;
  border: 1px solid var(--az-border);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 1.5rem;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  border-bottom: 1px solid #e1e1e6;
  padding-bottom: 4px;
}
.spec-row:last-child {
  border: none;
  padding-bottom: 0;
}
.spec-label {
  color: var(--text-muted);
  font-weight: 500;
}
.spec-val {
  font-weight: 700;
}

/* --- CHECKOUT MODAL --- */
.checkout-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background-color: var(--text-light);
  border-radius: 6px;
  width: 95%;
  max-width: 580px;
  z-index: 1100;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  border: 1px solid var(--az-border);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
}
.checkout-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.checkout-body {
  padding: 2rem;
}
.checkout-body h2 {
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.checkout-body > p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.checkout-form button[type="submit"] {
  background-color: var(--fit-green);
  color: var(--text-light);
  border: none;
  padding: 0.9rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 1rem;
}
.checkout-form button[type="submit"]:hover {
  filter: brightness(1.1);
}
.checkout-summary {
  background-color: var(--az-light-grey);
  border: 1px solid var(--az-border);
  border-radius: 4px;
  padding: 1rem;
  font-size: 0.85rem;
  max-height: 140px;
  overflow-y: auto;
}
.checkout-summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

/* --- RESPONSIVIDAD --- */
@media (max-width: 1024px) {
  .main-store-container {
    grid-template-columns: 1fr;
  }
  .sidebar-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .hero-banner-box {
    grid-template-columns: 1fr;
  }
  .hero-banner-image {
    display: none;
  }
}

@media (max-width: 768px) {
  .main-header {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .header-search {
    order: 3;
    max-width: 100%;
    width: 100%;
  }
  .sidebar-filters {
    grid-template-columns: 1fr;
  }
  .store-info-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .detail-modal-body {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
  .detail-img-box {
    height: 200px;
  }
  .cart-sidebar {
    width: 100%;
    right: -100%;
  }
}
