/*
 * SURTICAUCHOS — Paleta Naranja Quemado
 * Naranja #D4500A · Negro #1A1A1A · Blanco puro
 * Diseñado para llantas negras + aros cromados
 */

/* ============================================
   VARIABLES
   ============================================ */
:root {
  --naranja:        #D4500A;
  --naranja-oscuro: #A33D08;
  --naranja-suave:  #FFF4EE;
  --negro:          #1A1A1A;
  --negro-oscuro:   #111111;
  --negro-medio:    #2C2C2C;
  --crema:          #F5F0EB;
  --blanco:         #FFFFFF;
  --texto:          #1A1A1A;
  --texto-suave:    #555555;

  /* Bootstrap overrides */
  --bs-primary:          #D4500A;
  --bs-primary-rgb:      212, 80, 10;
  --bs-link-color:       #D4500A;
  --bs-link-hover-color: #A33D08;
  --bs-body-bg:          #FFFFFF;
  --bs-body-color:       #1A1A1A;
  --bs-focus-ring-color: rgba(212, 80, 10, 0.25);
  --bs-border-radius:    6px;

  /* Header */
  --header-bg:                   #1A1A1A;
  --header-top-bg:               #111111;
  --header-color:                #ffffff;
  --header-top-color:            #888888;
  --header-top-border-bottom:    none;
  --header-bottom-border-bottom: none;

  /* Footer */
  --footer-background-color: #1A1A1A;
  --footer-heading-color:    #ffffff;
  --footer-text-color:       #888888;
  --footer-hover-color:      #D4500A;
}

/* ============================================
   BODY — blanco puro
   ============================================ */
body {
  background-color: #FFFFFF !important;
  color: #1A1A1A;
  font-size: 0.9375rem;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  color: #1A1A1A;
  font-weight: 700;
}

a { color: #D4500A; transition: color 0.2s ease; }
a:hover { color: #A33D08; }

/* ============================================
   HEADER — negro con franja naranja
   ============================================ */
#header {
  background: #1A1A1A !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  border-bottom: none !important;
}

.header-top {
  background-color: #111111 !important;
  border-bottom: 1px solid #2C2C2C !important;
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
}
.header-top a,
.header-top a:not(.dropdown-item) {
  color: #888888 !important;
  font-size: 0.8125rem;
}
.header-top a:hover,
.header-top a:not(.dropdown-item):hover {
  color: #D4500A !important;
}

.header-bottom {
  background-color: #1A1A1A !important;
  border-bottom: 3px solid #D4500A !important;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Logo blanco */
img.logo, img.logo.img-fluid,
#_desktop_logo img, .logo img {
  filter: brightness(0) invert(1) !important;
}

/* Links menú */
#header .header a:not(.dropdown-item):not(.btn) {
  color: #dddddd !important;
  font-weight: 600;
}
#header .header a:not(.dropdown-item):not(.btn):hover {
  color: #D4500A !important;
}

.header-block__action-btn,
.header-block__action-btn:focus,
.header-block__action-btn i {
  color: #dddddd !important;
}
.header-block__action-btn:hover { color: #D4500A !important; }

/* Badge carrito — naranja */
.header-block__badge {
  background: #D4500A !important;
  color: #ffffff !important;
  font-weight: 700;
}

/* Menú desktop */
.top-menu .nav-link {
  color: #dddddd !important;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1rem !important;
}
.top-menu .nav-link:hover { color: #D4500A !important; }

/* Dropdown */
.top-menu .dropdown-menu {
  background: #1A1A1A;
  border: none;
  border-top: 3px solid #D4500A;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.top-menu .dropdown-item {
  color: #cccccc !important;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  border-bottom: 1px solid #2C2C2C;
  transition: all 0.2s ease;
}
.top-menu .dropdown-item:hover {
  color: #D4500A !important;
  background-color: #2C2C2C !important;
  padding-left: 1.5rem;
}

/* Búsqueda desktop */
#_desktop_search_widget .search-widget .form-control,
#search_widget input[type="text"],
#search_widget input[type="search"] {
  background: #2C2C2C !important;
  border: 1px solid #3C3C3C !important;
  color: #ffffff !important;
  border-radius: 6px 0 0 6px !important;
  border-right: none !important;
}
#_desktop_search_widget .search-widget .form-control::placeholder,
#search_widget input::placeholder { color: #777777 !important; }
#_desktop_search_widget .search-widget .form-control:focus,
#search_widget input:focus { border-color: #D4500A !important; box-shadow: none; }
#_desktop_search_widget .search-widget button,
#search_widget button {
  background: #D4500A !important;
  border: 1px solid #D4500A !important;
  color: #ffffff !important;
  border-radius: 0 6px 6px 0 !important;
  font-weight: 700;
}
#_desktop_search_widget .search-widget button:hover,
#search_widget button:hover { background: #A33D08 !important; border-color: #A33D08 !important; }

/* ============================================
   MENÚ MÓVIL — negro
   ============================================ */
.main-menu__offcanvas { background-color: #1A1A1A !important; }
.main-menu__offcanvas .offcanvas-header {
  background-color: #111111 !important;
  border-bottom: 2px solid #D4500A !important;
}
.main-menu__offcanvas .btn-close { filter: invert(1) !important; }
.main-menu__offcanvas .main-menu__mobile,
.main-menu__offcanvas .menu--mobile { background-color: #1A1A1A !important; }
.main-menu__offcanvas .menu__list { padding: 0 !important; margin: 0 !important; }
.main-menu__offcanvas .menu__list li {
  background-color: transparent !important;
  border-bottom: 1px solid #2C2C2C !important;
}
.main-menu__offcanvas .menu__link {
  color: #dddddd !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  padding: 0.9rem 1.25rem !important;
  display: block !important;
  background-color: transparent !important;
}
.main-menu__offcanvas .menu__link:hover {
  background-color: #2C2C2C !important;
  color: #D4500A !important;
}
.main-menu__offcanvas .main-menu__toggle-child .material-icons { color: #D4500A !important; }
.main-menu__offcanvas .menu--child {
  background-color: #2C2C2C !important;
  border-left: 3px solid #D4500A !important;
}
.main-menu__offcanvas .menu--child .menu__link {
  color: #aaaaaa !important;
  font-size: 0.875rem !important;
  text-transform: none !important;
  padding: 0.75rem 1.5rem !important;
}
.main-menu__offcanvas .menu--child .menu__link:hover {
  background-color: #111111 !important;
  color: #D4500A !important;
}
.main-menu__offcanvas .main-menu__title {
  color: #ffffff !important;
  background: #111111 !important;
  padding: 0.75rem 1.25rem !important;
  font-size: 0.8rem !important;
  text-transform: uppercase !important;
  border-bottom: 2px solid #D4500A !important;
  margin: 0 !important;
}
.main-menu__offcanvas .main-menu__back-button .btn { color: #D4500A !important; }
.main-menu__offcanvas .main-menu__additionnals { background-color: #111111 !important; }
.main-menu__offcanvas .main-menu__additionnals a { color: #888888 !important; }
.main-menu__offcanvas .main-menu__additionnals a:hover { color: #D4500A !important; }

.search__offcanvas {
  background-color: #111111 !important;
  border-bottom: 2px solid #D4500A !important;
}
.search__offcanvas .form-control {
  background: #2C2C2C !important;
  border-color: #3C3C3C !important;
  color: #ffffff !important;
}
.search__offcanvas .btn-close { filter: invert(1) !important; }

/* ============================================
   BREADCRUMB
   ============================================ */
nav[aria-label="breadcrumb"] {
  background: #FFF4EE;
  border-bottom: 1px solid #f0d8c8;
}
.breadcrumb-item a { color: #D4500A; font-size: 0.8125rem; }
.breadcrumb-item a:hover { color: #A33D08; }
.breadcrumb-item.active { color: #666666; font-size: 0.8125rem; }

/* ============================================
   CARDS PRODUCTO — blanco puro
   ============================================ */
.card,
.product-miniature .card {
  background: #ffffff !important;
  border: 1px solid #EEEEEE !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}
.card:hover,
.product-miniature:hover .card {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-color: #D4500A !important;
}

/* Título — negro */
.product-miniature .product-title a,
.product-miniature__infos .product-title a,
.product-miniature__title,
.product-title a {
  color: #1A1A1A !important;
  font-weight: 600;
  font-size: 0.9rem;
}
.product-miniature .product-title a:hover,
.product-title a:hover { color: #D4500A !important; }

/* Precio actual — negro */
.product-miniature .price,
.product-miniature__price,
span.product-miniature__price {
  color: #1A1A1A !important;
  font-weight: 700;
  font-size: 1.05rem;
}

/* Precio tachado — naranja */
.product-miniature__regular-price,
.regular-price,
span.product-miniature__regular-price {
  color: #D4500A !important;
  text-decoration: line-through !important;
  font-size: 0.875rem;
}

/* Badge descuento — naranja */
.product-flag.discount,
.badge.discount {
  background: #D4500A !important;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.75rem;
  border-radius: 4px;
}

/* Badge nuevo — negro */
.product-flag.new,
.badge.new {
  background: #1A1A1A !important;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.75rem;
  border-radius: 4px;
}

/* 5 productos en desktop */
@media (min-width: 1200px) {
  .container { max-width: 1400px; }
  .product-miniature.col-xl-3 {
    width: 20% !important;
    flex: 0 0 20% !important;
    max-width: 20% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  .product-miniature__image-container { height: 190px; overflow: hidden; }
  .product-miniature__image-container img { width: 100%; height: 100%; object-fit: cover; }
  .product-miniature__infos { padding: 0.65rem !important; }
  .product-miniature__infos .product-title a { font-size: 0.8rem !important; }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
  .product-miniature.col-xl-3,
  .products .col-xl-3,
  .products .col-lg-3 {
    width: 33.333% !important;
    flex: 0 0 33.333% !important;
    max-width: 33.333% !important;
  }
}

/* ============================================
   BOTONES
   ============================================ */
.btn {
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  border-radius: 6px;
}

/* Comprar = naranja */
.btn-primary {
  --bs-btn-bg:              #D4500A;
  --bs-btn-border-color:    #D4500A;
  --bs-btn-color:           #ffffff;
  --bs-btn-hover-bg:        #A33D08;
  --bs-btn-hover-border-color: #A33D08;
  --bs-btn-hover-color:     #ffffff;
  --bs-btn-active-bg:       #7A2E06;
  --bs-btn-disabled-bg:     #D4500A;
  --bs-btn-focus-shadow-rgb: 212, 80, 10;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8125rem;
}
.btn-primary:hover { box-shadow: 0 4px 12px rgba(212, 80, 10, 0.4); }

/* Outline = negro */
.btn-outline-primary {
  --bs-btn-color:           #1A1A1A;
  --bs-btn-border-color:    #1A1A1A;
  --bs-btn-hover-bg:        #1A1A1A;
  --bs-btn-hover-border-color: #1A1A1A;
  --bs-btn-hover-color:     #ffffff;
  --bs-btn-active-bg:       #111111;
  --bs-btn-disabled-color:  #1A1A1A;
}

.btn-secondary {
  --bs-btn-bg:           #2C2C2C;
  --bs-btn-border-color: #2C2C2C;
  --bs-btn-color:        #ffffff;
  --bs-btn-hover-bg:     #111111;
}

/* ============================================
   FORMULARIOS
   ============================================ */
.form-control, .form-select {
  border-color: #dddddd;
  border-radius: 6px;
  background-color: #ffffff;
}
.form-control:focus, .form-select:focus {
  border-color: #D4500A;
  box-shadow: 0 0 0 0.2rem rgba(212, 80, 10, 0.15);
}
.form-check-input:checked { background-color: #D4500A; border-color: #D4500A; }
input[type="range"]::-webkit-slider-thumb { background-color: #D4500A; }
input[type="range"]::-moz-range-thumb     { background-color: #D4500A; }

/* ============================================
   PAGINACIÓN
   ============================================ */
.page-link { color: #D4500A; border-color: #e5e5e5; border-radius: 6px !important; margin: 0 2px; }
.page-link:hover { background-color: #FFF4EE; border-color: #D4500A; color: #A33D08; }
.page-item.active .page-link {
  background-color: #D4500A;
  border-color: #D4500A;
  color: #ffffff;
  font-weight: 700;
}

/* ============================================
   FILTROS
   ============================================ */
.facet__title {
  font-weight: 700;
  color: #1A1A1A;
  text-transform: uppercase;
  font-size: 0.8125rem;
  border-bottom: 2px solid #D4500A;
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}
.facet-label a { color: #444444; }
.facet-label a:hover { color: #D4500A; }

/* ============================================
   TABS
   ============================================ */
.nav-tabs .nav-link { color: #555555; font-weight: 600; }
.nav-tabs .nav-link.active { color: #D4500A; border-bottom: 2px solid #D4500A; font-weight: 700; }
.nav-tabs .nav-link:hover { color: #D4500A; }
.nav-pills .nav-link.active { background-color: #D4500A; color: #ffffff; }
.dropdown-item.active, .dropdown-item:active { background-color: #D4500A; color: #ffffff; }

/* ============================================
   PÁGINA PRODUCTO
   ============================================ */
.page-product .product__name { font-size: 1.6rem; font-weight: 800; color: #1A1A1A; }
.page-product .product__current-price { color: #1A1A1A !important; font-size: 1.75rem; font-weight: 800; }
.page-product .product__price-regular { color: #D4500A !important; text-decoration: line-through; }
.thumbnails__container .thumbnail.active img { border: 2px solid #D4500A; }
.page-product .product__infos .accordion-button:not(.collapsed) { color: #D4500A; box-shadow: none; }

/* ============================================
   NEWSLETTER — negro
   ============================================ */
.email-subscription {
  background: #1A1A1A !important;
  border-top: 3px solid #D4500A !important;
  padding: 2.5rem 1rem !important;
  text-align: center;
}
.email-subscription__label { color: #ffffff !important; font-weight: 700 !important; font-size: 1.1rem !important; }
.email-subscription__content__right p,
.email-subscription .form-text { color: #888888 !important; font-size: 0.8125rem !important; }
.email-subscription .input-wrapper,
.email-subscription .input-group { max-width: 480px; margin: 1rem auto 0; }
.email-subscription input[type="email"],
.email-subscription .form-control {
  background: #2C2C2C !important;
  border: 1px solid #3C3C3C !important;
  color: #ffffff !important;
  border-radius: 6px 0 0 6px !important;
}
.email-subscription input[type="email"]::placeholder { color: #777777 !important; }
.email-subscription input[type="email"]:focus { border-color: #D4500A !important; box-shadow: none !important; }
.email-subscription button[type="submit"],
.email-subscription input[type="submit"],
.email-subscription .btn {
  background: #D4500A !important;
  border-color: #D4500A !important;
  color: #ffffff !important;
  border-radius: 0 6px 6px 0 !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
}
.email-subscription button[type="submit"]:hover { background: #A33D08 !important; border-color: #A33D08 !important; }

/* ============================================
   FOOTER — negro
   ============================================ */
.footer {
  --footer-background-color: #1A1A1A;
  --footer-heading-color:    #ffffff;
  --footer-text-color:       #888888;
  --footer-hover-color:      #D4500A;
}
.footer__main {
  background: #1A1A1A !important;
  border-top: 3px solid #D4500A;
  padding-top: 3rem;
}
.footer__block__title { display: block; }
.footer__block__title,
.footer__block__title a {
  color: #ffffff !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
}
.footer__block__title::after {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: #D4500A;
  margin-top: 0.6rem;
  margin-bottom: 1.1rem;
  clear: both;
}
.footer__block__content-list a { color: #888888 !important; font-size: 0.875rem; transition: all 0.2s ease; }
.footer__block__content-list a:hover { color: #D4500A !important; padding-left: 4px; }
.footer__block__content-contact a { color: #888888 !important; }
.footer__block__content-contact a:hover { color: #D4500A !important; }
.footer__after {
  background: #111111 !important;
  border-top: 1px solid #2C2C2C;
  padding: 1rem 0;
}
.footer__after a, .footer__after p, .footer__after span { color: #555555 !important; font-size: 0.8125rem; }
.footer__after a:hover { color: #D4500A !important; }

/* ============================================
   CAROUSEL
   ============================================ */
.carousel-control-prev,
.carousel-control-next {
  background: #ffffff;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  opacity: 1;
}
.carousel-control-prev:hover,
.carousel-control-next:hover { background: #D4500A; }
.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon { filter: brightness(0) invert(1) !important; }
.carousel-indicators [data-bs-target] {
  background-color: #D4500A;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* ============================================
   VER TODOS
   ============================================ */
.all-product-link.btn {
  background: transparent;
  border: 2px solid #D4500A;
  color: #D4500A !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.6rem 1.75rem;
  border-radius: 6px;
  transition: all 0.25s ease;
}
.all-product-link.btn:hover { background: #D4500A; color: #ffffff !important; }
.all-product-link.btn i { color: #D4500A; }
.all-product-link.btn:hover i { color: #ffffff !important; }

/* ============================================
   TÍTULOS SECCIONES
   ============================================ */
.products-section-title, .section-title, section > h2 {
  font-weight: 800;
  color: #1A1A1A;
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 1.75rem;
}
.products-section-title::after, .section-title::after, section > h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: #D4500A;
  border-radius: 2px;
}

/* ============================================
   MISC
   ============================================ */
.category-tree__item__link:hover { color: #D4500A !important; }
.progress-bar { background-color: #D4500A; }
:focus-visible { outline-color: #D4500A; }
.ps-social-follow { background: transparent !important; }
.ps-social-follow a { color: #888888 !important; }
.ps-social-follow a:hover { color: #D4500A !important; }
.checkout__steps .nav-link.active { color: #D4500A; border-bottom-color: #D4500A; }
.step .address.selected { border: 2px solid #D4500A; }

/* ============================================
   SECCIONES HOME — fondo crema alternado
   ============================================ */
.featured-products,
.new-products {
  background: #FFFFFF;
  padding: 2rem 0;
}

/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 767.98px) {
  .header-bottom { padding: 0.75rem 0; }
  .page-product .product__current-price { font-size: 1.4rem; }
}
