/* ==========================================================================
   MOTOPARTS THEME FOR OPENCART
   Concepto visual: MotoParts
   Colores:
     - Azul marino principal: #101F2E
     - Rojo de acción: #FF394B
     - Fondo claro: #F1F5F9
   Tipografía: Inter
   ========================================================================== */

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

:root {
  --moto-navy: #101F2E;
  --moto-navy-dark: #0A141E;
  --moto-navy-light: #182C40;
  --moto-red: #FF394B;
  --moto-red-hover: #E0283B;
  --moto-bg: #F1F5F9;
  --moto-surface: #FFFFFF;
  --moto-border: #E2E8F0;
  --moto-text: #0F172A;
  --moto-text-muted: #64748B;
  --moto-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --bs-body-font-family: var(--moto-font);
  --bs-body-bg: var(--moto-bg);
  --bs-body-color: var(--moto-text);
  --bs-primary: var(--moto-red);
  --bs-primary-rgb: 255, 57, 75;
}

html,
body.motoparts-body {
  overflow-x: hidden;
  max-width: 100vw;
}

body.motoparts-body {
  background-color: var(--moto-bg);
  color: var(--moto-text);
  font-family: var(--moto-font);
  font-size: 0.875rem;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   HEADER SUPERIOR CON COLOR AZUL MARINO (#101F2E)
   ========================================================================== */
.motoparts-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  box-shadow: 0 2px 8px rgba(16, 31, 46, 0.08);
}

.header-top-bar {
  background-color: var(--moto-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.65rem 1.5rem;
}

.header-main-row {
  min-height: 56px;
}

.motoparts-logo-img {
  max-height: 44px;
  width: auto;
  display: block;
}

.logo-fallback-text {
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #FFFFFF;
}

.logo-fallback-text a {
  color: #FFFFFF;
  text-decoration: none;
}

.logo-fallback-text span {
  color: var(--moto-red);
}

/* Buscador en Header */
.search-col {
  max-width: 640px;
}

.search-wrapper {
  position: relative;
  width: 100%;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-icon {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748B;
  font-size: 0.95rem;
  pointer-events: none;
  z-index: 5;
}

.form-control-search {
  width: 100%;
  background-color: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 9999px;
  padding: 0.6rem 1.25rem 0.6rem 2.75rem;
  font-size: 0.85rem;
  font-family: var(--moto-font);
  color: var(--moto-navy);
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.form-control-search::placeholder {
  color: #64748B;
  font-size: 0.825rem;
}

.form-control-search:focus {
  background-color: #FFFFFF;
  border-color: var(--moto-red);
  box-shadow: 0 0 0 3px rgba(255, 57, 75, 0.25);
  outline: none;
}

/* Autocomplete Dropdown */
.search-autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border: 1px solid var(--moto-border);
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(16, 31, 46, 0.18), 0 8px 10px -6px rgba(16, 31, 46, 0.1);
  z-index: 1050;
  max-height: 420px;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.search-autocomplete-item {
  border-bottom: 1px solid #F1F5F9;
}

.search-autocomplete-item:last-child {
  border-bottom: none;
}

.search-autocomplete-link {
  display: flex;
  align-items: center;
  padding: 0.65rem 1rem;
  text-decoration: none;
  color: var(--moto-text);
  transition: background 0.15s ease;
}

.search-autocomplete-item:hover .search-autocomplete-link,
.search-autocomplete-item.active .search-autocomplete-link {
  background-color: #F8FAFC;
}

.search-autocomplete-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.85rem;
  background: #fff;
  flex-shrink: 0;
}

.search-autocomplete-thumb img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.search-autocomplete-info {
  flex-grow: 1;
}

.search-autocomplete-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--moto-navy);
}

.search-autocomplete-model {
  font-size: 0.75rem;
  color: var(--moto-text-muted);
}

.search-autocomplete-price {
  font-weight: 700;
  color: var(--moto-navy);
  font-size: 0.875rem;
}

.search-autocomplete-special {
  font-weight: 700;
  color: var(--moto-red);
  font-size: 0.875rem;
}

.search-autocomplete-footer {
  padding: 0.6rem 1rem;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  font-size: 0.8rem;
  text-align: center;
}

.search-autocomplete-footer a {
  color: var(--moto-red);
  font-weight: 600;
  text-decoration: none;
}

/* Acciones en Header (Mi cuenta, Favoritos, Carrito) - Texto blanco */
.header-actions-group {
  gap: 1.6rem;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #FFFFFF !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.action-btn:hover {
  color: var(--moto-red) !important;
}

.action-icon {
  font-size: 1.15rem;
  color: #FFFFFF;
  transition: color 0.15s ease;
}

.action-btn:hover .action-icon {
  color: var(--moto-red);
}

.cart-icon-wrapper {
  position: relative;
  display: inline-flex;
}

.header-cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.18rem 0.42rem;
  background-color: var(--moto-red) !important;
  color: #FFFFFF;
  border-radius: 9999px;
  line-height: 1;
  min-width: 17px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   SUBHEADER / MENÚ DE CATEGORÍAS (Fondo blanco, diseño limpio)
   ========================================================================== */
.motoparts-navbar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--moto-border);
  padding: 0.35rem 0;
}

.btn-all-categories {
  background: transparent;
  color: var(--moto-navy) !important;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 0.65rem;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.15s ease;
}

.btn-all-categories:hover,
.btn-all-categories:focus {
  color: var(--moto-red) !important;
}

.nav-links-list {
  gap: 0.25rem;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.nav-links-list::-webkit-scrollbar {
  display: none;
}

.nav-link-item {
  color: #334155;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.45rem 0.8rem;
  border-radius: 6px;
  position: relative;
  display: inline-block;
  transition: color 0.15s ease;
}

.nav-link-item:hover {
  color: var(--moto-red);
}

.nav-link-item.active {
  color: var(--moto-red);
  font-weight: 700;
}

.nav-link-item.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0.8rem;
  right: 0.8rem;
  height: 2.5px;
  background-color: var(--moto-red);
  border-radius: 2px;
}

/* ==========================================================================
   LAYOUT Y ESPACIADO COMPACTO
   ========================================================================== */
.motoparts-home-wrapper {
  background-color: var(--moto-bg);
  padding: 0.85rem 0 2rem 0;
  /* Espaciado reducido */
}

.content-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   1. HERO BANNER PRINCIPAL (Fondo azul marino con fade suave y moto en foco)
   ========================================================================== */
.hero-banner-section {
  margin-bottom: 1rem !important;
  /* Espaciado reducido */
}

.hero-banner-card {
  border-radius: 16px;
  min-height: 350px;
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--moto-navy);
  box-shadow: 0 8px 24px -4px rgba(16, 31, 46, 0.14);
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Gradiente suave que funde el texto sin cortar la imagen ni dejar barras grises */
  background: linear-gradient(90deg, #101F2E 0%, rgba(16, 31, 46, 0.95) 32%, rgba(16, 31, 46, 0.6) 55%, rgba(16, 31, 46, 0.05) 85%, transparent 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 2.25rem 2.75rem;
  max-width: 540px;
}

.hero-badge {
  display: inline-block;
  color: var(--moto-red);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 0.6rem;
}

.hero-title {
  color: #FFFFFF;
  font-size: 2.15rem;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.5px;
  margin-bottom: 0.85rem;
}

.hero-description {
  color: #CBD5E1;
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.btn-hero-cta {
  background-color: var(--moto-red);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.7rem 1.65rem;
  border-radius: 9999px;
  border: none;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 4px 14px rgba(255, 57, 75, 0.35);
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-hero-cta:hover {
  background-color: var(--moto-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 57, 75, 0.45);
}

.hero-title-highlight {
  color: var(--moto-red);
}

.hero-banner-carousel {
  border-radius: 16px;
  box-shadow: 0 8px 24px -4px rgba(16, 31, 46, 0.14);
}

.hero-dots {
  position: absolute;
  bottom: 1.25rem;
  right: 1.75rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.4);
  border: none;
  padding: 0;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: content-box;
}

.hero-dots .dot.active {
  background-color: var(--moto-red);
  width: 24px;
}

/* ==========================================================================
   2. CATEGORÍAS PRINCIPALES (Espaciado compacto y tarjetas limpias)
   ========================================================================== */
.categories-section {
  margin-bottom: 1.25rem !important;
  /* Espaciado reducido */
}

.section-heading {
  margin-bottom: 0.65rem !important;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--moto-navy);
  letter-spacing: -0.3px;
}

.section-more-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--moto-text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.section-more-link:hover {
  color: var(--moto-red);
}

.category-card {
  background: var(--moto-surface);
  border: 1px solid var(--moto-border);
  border-radius: 12px;
  padding: 1rem 0.65rem 0.85rem 0.65rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(16, 31, 46, 0.03);
}

.category-card:hover {
  transform: translateY(-2px);
  border-color: #CBD5E1;
  box-shadow: 0 6px 14px -3px rgba(16, 31, 46, 0.08);
}

.category-img-container {
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.65rem;
}

.category-img-container img {
  max-height: 80px;
  max-width: 80px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.category-card:hover .category-img-container img {
  transform: scale(1.05);
}

.category-title {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--moto-navy);
  margin-bottom: 0.15rem;
}

.category-link-text {
  font-size: 0.725rem;
  font-weight: 600;
  color: #2563EB;
}

.category-card:hover .category-link-text {
  color: var(--moto-red);
}

/* ==========================================================================
   3. PRODUCTOS DESTACADOS
   ========================================================================== */
.featured-products-section {
  margin-bottom: 1.25rem !important;
}

.motoparts-product-card {
  background: var(--moto-surface);
  border: 1px solid var(--moto-border);
  border-radius: 12px;
  padding: 0.85rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(16, 31, 46, 0.03);
  position: relative;
}

.motoparts-product-card:hover {
  transform: translateY(-3px);
  border-color: #CBD5E1;
  box-shadow: 0 8px 18px -4px rgba(16, 31, 46, 0.09);
}

.product-card-top {
  min-height: 24px;
  margin-bottom: 0.35rem;
}

.product-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.18rem 0.5rem;
  border-radius: 9999px;
  line-height: 1.2;
  display: inline-block;
}

.badge-bestseller {
  background-color: var(--moto-red);
  color: #FFFFFF;
}

.badge-new {
  background-color: #2563EB;
  color: #FFFFFF;
}

.badge-generic {
  background-color: #F1F5F9;
  color: #334155;
}

.btn-wishlist {
  background: transparent;
  border: none;
  color: #94A3B8;
  padding: 0;
  font-size: 0.95rem;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}

.btn-wishlist:hover {
  color: var(--moto-red);
  transform: scale(1.15);
}

.motoparts-product-card .image {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.65rem;
}

.motoparts-product-card .image img {
  max-height: 120px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.motoparts-product-card:hover .image img {
  transform: scale(1.04);
}

.motoparts-product-card .content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.product-title a {
  color: var(--moto-navy);
  text-decoration: none;
  transition: color 0.15s ease;
}

.product-title a:hover {
  color: var(--moto-red);
}

.product-compat {
  font-size: 0.75rem;
  color: var(--moto-text-muted);
  font-weight: 500;
  margin-bottom: 0.45rem;
}

.price-current {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--moto-navy);
}

.price-current.text-danger {
  color: #e52d27 !important;
  font-weight: 800;
}

.price-old {
  font-size: 0.85rem;
  color: #8c909a !important;
  text-decoration: line-through !important;
  font-weight: 500;
  display: inline-block;
}

.btn-navy-add-cart {
  background-color: var(--moto-navy);
  color: #FFFFFF !important;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-navy-add-cart:hover {
  background-color: var(--moto-red);
}

/* ==========================================================================
   SIDEBAR WIDGETS
   ========================================================================== */
.sidebar-sticky-wrap {
  position: sticky;
  top: 80px;
}

/* Widget 1: Tu Carrito */
.sidebar-cart-container {
  margin-bottom: 1rem !important;
  /* Espaciado reducido */
}

.cart-widget-card {
  background: var(--moto-surface);
  border: 1px solid var(--moto-border);
  border-radius: 12px;
  padding: 1.15rem;
  box-shadow: 0 1px 3px rgba(16, 31, 46, 0.04);
}

.cart-widget-header {
  border-bottom: 1px solid #F1F5F9;
  padding-bottom: 0.65rem;
  margin-bottom: 0.65rem;
}

.cart-icon {
  font-size: 1.1rem;
  color: var(--moto-navy);
}

.cart-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--moto-navy);
}

.cart-badge-count {
  font-size: 0.7rem;
  font-weight: 800;
  background-color: var(--moto-red) !important;
  color: #fff;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-entry {
  display: flex;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid #F8FAFC;
}

.cart-item-entry:last-child {
  border-bottom: none;
}

.cart-item-thumb {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  margin-right: 0.65rem;
}

.cart-item-thumb img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.cart-item-info {
  flex-grow: 1;
  min-width: 0;
}

.cart-item-title {
  font-size: 0.785rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-title a {
  color: var(--moto-navy);
  text-decoration: none;
}

.cart-item-title a:hover {
  color: var(--moto-red);
}

.cart-item-compat {
  font-size: 0.7rem;
  color: var(--moto-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-size: 0.825rem;
  font-weight: 800;
  color: var(--moto-navy);
  margin-top: 2px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.45rem;
  flex-shrink: 0;
}

.stepper-group {
  display: flex;
  align-items: center;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 1px;
}

.btn-stepper {
  background: transparent;
  border: none;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748B;
  width: 18px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.btn-stepper:hover {
  color: var(--moto-navy);
  background: #E2E8F0;
  border-radius: 4px;
}

.stepper-val {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--moto-navy);
  padding: 0 0.3rem;
  min-width: 15px;
  text-align: center;
}

.btn-trash {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 0.8rem;
  padding: 3px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.btn-trash:hover {
  color: #EF4444;
}

.cart-widget-footer {
  border-top: 1px solid #F1F5F9;
  padding-top: 0.75rem;
  margin-top: 0.4rem;
}

.subtotal-label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--moto-text-muted);
}

.subtotal-value {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--moto-navy);
}

.btn-navy-view-cart {
  background-color: var(--moto-navy);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.825rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.btn-navy-view-cart:hover {
  background-color: var(--moto-navy-dark);
}

/* Widget 2: Compra con Confianza */
.trust-features-card {
  background: var(--moto-surface);
  border: 1px solid var(--moto-border);
  border-radius: 12px;
  padding: 1.15rem;
  margin-bottom: 1rem !important;
  /* Espaciado reducido */
  box-shadow: 0 1px 3px rgba(16, 31, 46, 0.04);
}

.trust-feature-row {
  margin-bottom: 0.65rem !important;
  /* Espaciado reducido */
}

.trust-feature-row:last-child {
  margin-bottom: 0 !important;
}

.trust-icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #E0F2FE;
  color: #0284C7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.trust-headline {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--moto-navy);
  margin-bottom: 1px;
}

.trust-subline {
  font-size: 0.725rem;
  color: var(--moto-text-muted);
}

/* Widget 3: Sidebar Promo Carousel & Mini Banners */
.sidebar-promo-carousel {
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(16, 31, 46, 0.08);
  position: relative;
  background-color: var(--moto-navy);
}

.sidebar-promo-card {
  border-radius: 16px;
  min-height: 205px;
  background-color: var(--moto-navy);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.sidebar-promo-card .promo-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  z-index: 1;
  transition: transform 0.6s ease;
}

.sidebar-promo-card:hover .promo-bg-img {
  transform: scale(1.03);
}

.sidebar-promo-card .promo-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(16, 31, 46, 0.96) 0%, rgba(16, 31, 46, 0.84) 48%, rgba(16, 31, 46, 0.25) 75%, rgba(16, 31, 46, 0) 100%);
  z-index: 2;
  pointer-events: none;
}

.sidebar-promo-card .promo-card-body {
  position: relative;
  z-index: 3;
  padding: 1.35rem 1.25rem;
  width: 100%;
  max-width: 72%;
}

.promo-title {
  margin-bottom: 0.45rem;
  line-height: 1.2;
}

.promo-title-white {
  color: #FFFFFF !important;
  font-size: 1.175rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.promo-title-red {
  color: var(--moto-red) !important;
  font-size: 1.175rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.promo-description {
  color: #CBD5E1;
  font-size: 0.775rem;
  line-height: 1.35;
  margin-bottom: 0.95rem;
}

.btn-promo-cta {
  background: rgba(16, 31, 46, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #FFFFFF !important;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  font-size: 0.775rem;
  font-weight: 700;
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-promo-cta:hover {
  background: var(--moto-red);
  border-color: var(--moto-red);
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(255, 57, 75, 0.4);
  transform: translateY(-2px);
}

/* Indicators */
.promo-carousel-indicators {
  position: absolute;
  right: 14px;
  bottom: 12px;
  left: auto;
  margin: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
}

.promo-carousel-indicators [data-bs-target] {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.4);
  border: none;
  padding: 0;
  opacity: 0.7;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: content-box;
}

.promo-carousel-indicators .active {
  width: 20px;
  background-color: var(--moto-red);
  opacity: 1;
}


/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background-color: #FFFFFF;
  border-top: 1px solid var(--moto-border);
  padding: 2.5rem 0 1.25rem 0;
  margin-top: 1.5rem;
  color: #64748B;
}

footer h5 {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--moto-navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.85rem;
}

footer a {
  color: #64748B;
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.15s ease;
}

footer a:hover {
  color: var(--moto-red);
}

footer hr {
  border-color: #E2E8F0;
  margin: 1.5rem 0 1rem 0;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 991.98px) {

  /* Subnavegación: Ocultar enlaces individuales de categorías y dejar únicamente el botón 'Todas las categorías' */
  .motoparts-navbar .nav-links-wrapper {
    display: none !important;
  }

  .motoparts-navbar {
    padding: 0.45rem 0;
  }

  .motoparts-navbar .all-categories-dropdown {
    width: 100%;
    margin-right: 0 !important;
  }

  .motoparts-navbar .btn-all-categories {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #F8FAFC;
    border: 1px solid var(--moto-border);
    border-radius: 8px;
    padding: 0.55rem 0.95rem;
    font-size: 0.875rem;
    color: var(--moto-navy) !important;
  }

  .motoparts-navbar .btn-all-categories:hover,
  .motoparts-navbar .btn-all-categories:focus,
  .motoparts-navbar .btn-all-categories:active {
    background-color: #F1F5F9;
    color: var(--moto-red) !important;
  }

  .all-categories-dropdown .dropdown-menu {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--moto-border);
    margin-top: 0.4rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12);
  }

  .all-categories-dropdown .dropdown-item {
    padding: 0.65rem 1rem;
    font-weight: 500;
    font-size: 0.875rem;
    border-bottom: 1px solid #F1F5F9;
  }

  .all-categories-dropdown .dropdown-item:last-child {
    border-bottom: none;
  }

  .header-actions-group {
    gap: 1.15rem;
  }

  .hero-content {
    padding: 1.75rem 1.25rem;
    max-width: 100%;
  }

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

  .hero-description {
    font-size: 0.825rem;
  }

  .sidebar-sticky-wrap {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .header-top-bar {
    padding: 0.5rem 0 0.65rem 0;
  }

  .header-container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .content-container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .motoparts-logo-img {
    max-height: 36px;
  }

  .search-col {
    max-width: 100%;
  }

  .form-control-search {
    padding: 0.55rem 1rem 0.55rem 2.5rem;
    font-size: 0.825rem;
  }

  .search-input-icon {
    left: 0.95rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 575.98px) {
  .hero-banner-card {
    min-height: 290px;
  }

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

  .categories-grid .col,
  .products-grid .col {
    padding: 0.25rem;
  }

  .motoparts-product-card {
    padding: 0.65rem;
  }

  .motoparts-product-card .image {
    height: 100px;
  }

  .product-title {
    font-size: 0.775rem;
  }

  .price-current {
    font-size: 0.9rem;
  }

  .btn-navy-add-cart {
    font-size: 0.7rem;
    padding: 0.4rem 0.5rem;
  }
}

/* ==========================================================================
   PÁGINAS INTERNAS: CARRITO, FAVORITOS Y CUENTA (Concepto MotoParts)
   ========================================================================== */

.text-navy {
  color: var(--moto-navy) !important;
}

.bg-navy {
  background-color: var(--moto-navy) !important;
  color: #FFFFFF !important;
}

/* Breadcrumbs con diseño limpio */
.breadcrumb {
  background: transparent;
  padding: 0.5rem 0;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  align-items: center;
}

.breadcrumb-item a {
  color: var(--moto-text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.breadcrumb-item a:hover {
  color: var(--moto-red);
}

.breadcrumb-item.active {
  color: var(--moto-navy);
  font-weight: 600;
}

.breadcrumb-item+.breadcrumb-item::before {
  color: #CBD5E1;
  content: "/";
  padding: 0 0.5rem;
}

/* Encabezados de páginas */
.page-main-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--moto-navy);
  letter-spacing: -0.02em;
}

/* Tarjeta contenedora MotoParts */
.motoparts-card {
  background: #FFFFFF;
  border: 1px solid var(--moto-border);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(16, 31, 46, 0.04);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Global Overrides de Botones Bootstrap */
.btn-primary {
  background-color: var(--moto-red) !important;
  border-color: var(--moto-red) !important;
  color: #FFFFFF !important;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.55rem 1.25rem;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(255, 57, 75, 0.25);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--moto-red-hover) !important;
  border-color: var(--moto-red-hover) !important;
  box-shadow: 0 4px 12px rgba(255, 57, 75, 0.35);
  transform: translateY(-1px);
}

.btn-moto-outline {
  background: #FFFFFF;
  border: 1px solid var(--moto-border);
  color: var(--moto-navy) !important;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.55rem 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-moto-outline:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: var(--moto-red) !important;
}

.btn-navy-update {
  background-color: var(--moto-navy);
  border: 1px solid var(--moto-navy);
  color: #FFFFFF;
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  transition: all 0.15s ease;
}

.btn-navy-update:hover {
  background-color: var(--moto-navy-light);
  border-color: var(--moto-navy-light);
  color: #FFFFFF;
}

.btn-danger-remove {
  background-color: #FEE2E2;
  border: 1px solid #FECACA;
  color: #DC2626 !important;
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-danger-remove:hover {
  background-color: #DC2626;
  border-color: #DC2626;
  color: #FFFFFF !important;
}

/* Tablas MotoParts (Carrito y Favoritos) */
.motoparts-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.motoparts-table thead th {
  background-color: #F8FAFC;
  color: #64748B;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.85rem 1rem;
  border-top: none;
  border-bottom: 1px solid var(--moto-border);
}

.motoparts-table tbody td {
  padding: 1rem;
  border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
}

.motoparts-table tbody tr:hover td {
  background-color: #F8FAFC;
}

.cart-thumb-box {
  width: 64px;
  height: 64px;
  background: #FFFFFF;
  border: 1px solid var(--moto-border);
  border-radius: 8px;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-thumb-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cart-product-title {
  color: var(--moto-navy);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.cart-product-title:hover {
  color: var(--moto-red);
}

.cart-qty-group {
  max-width: 155px;
}

.cart-qty-group .form-control {
  border-color: var(--moto-border);
  text-align: center;
}

.cart-total-highlight {
  background-color: #F8FAFC;
  border-top: 2px solid var(--moto-border);
}

/* Acordeón de opciones (Cupón, Envío) */
.motoparts-accordion .accordion-item {
  border: 1px solid var(--moto-border);
  border-radius: 10px !important;
  margin-bottom: 0.65rem;
  overflow: hidden;
}

.motoparts-accordion .accordion-button {
  background-color: #F8FAFC;
  color: var(--moto-navy);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.85rem 1.15rem;
}

.motoparts-accordion .accordion-button:not(.collapsed) {
  background-color: #F1F5F9;
  color: var(--moto-red);
  box-shadow: none;
}

.motoparts-accordion .accordion-body {
  padding: 1.25rem;
  background: #FFFFFF;
}

/* Menú lateral de cuenta (Module Account) */
.list-group {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--moto-border);
  box-shadow: 0 2px 8px rgba(16, 31, 46, 0.04);
}

.list-group-item {
  border-color: #F1F5F9;
  color: var(--moto-navy);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.65rem 1rem;
  transition: all 0.15s ease;
}

.list-group-item:hover {
  background-color: #F8FAFC;
  color: var(--moto-red);
  padding-left: 1.25rem;
}

.list-group-item.active {
  background-color: var(--moto-navy) !important;
  border-color: var(--moto-navy) !important;
  color: #FFFFFF !important;
  font-weight: 600;
}

/* Form Controls */
.form-control:focus,
.form-select:focus {
  border-color: var(--moto-red);
  box-shadow: 0 0 0 3px rgba(255, 57, 75, 0.2);
}