/*
 Theme Name: Hello Elementor Child
 Template: hello-elementor
*/

/* =========================================
   ESTILOS DE PRODUCT CARD - TIENDA BORA
   ========================================= */

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

/* =========================================
   BUSCADOR INTELIGENTE DEL HEADER
   Shortcode: [fastercar_header_search]
   ========================================= */

.fastercar-header-search,
.fastercar-header-search *,
.fastercar-header-search__layer,
.fastercar-header-search__layer * {
  box-sizing: border-box;
}

.fastercar-header-search {
  width: 100%;
  font-family: 'Manrope', Arial, sans-serif;
}

.fastercar-header-search__form {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  height: 57px;
  margin: 0;
  padding: 0;
  border: 1px solid #d7d9e1;
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.fastercar-header-search__form:focus-within {
  border-color: #2c2d51;
  box-shadow: 0 0 0 3px rgba(44, 45, 81, 0.14);
}

.fastercar-header-search__field {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

.fastercar-header-search__input {
  width: 100% !important;
  min-width: 0;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 18px !important;
  color: #111827 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  font-family: 'Manrope', Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  -webkit-appearance: none;
  appearance: none;
}

.fastercar-header-search__input::placeholder {
  color: #6b7280;
  opacity: 1;
}

.fastercar-header-search__input::-webkit-search-cancel-button {
  cursor: pointer;
}

.fastercar-header-search__submit,
.fastercar-header-search__trigger,
.fastercar-header-search__close {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  cursor: pointer;
}

.fastercar-header-search__submit {
  flex: 0 0 60px;
  width: 60px;
  height: 100%;
  color: #fff !important;
  background: #2c2d51 !important;
  border-radius: 0 !important;
}

.fastercar-header-search__submit:hover,
.fastercar-header-search__submit:focus-visible {
  color: #fff !important;
  background: #242544 !important;
}

.fastercar-header-search__submit:focus-visible,
.fastercar-header-search__trigger:focus-visible,
.fastercar-header-search__close:focus-visible {
  outline: 3px solid rgba(44, 45, 81, 0.28) !important;
  outline-offset: 2px;
}

.fastercar-header-search__submit svg,
.fastercar-header-search__trigger svg,
.fastercar-header-search__close svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fastercar-header-search--mobile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
}

.fastercar-header-search__trigger {
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  color: #2c2d51 !important;
  background: transparent !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.fastercar-header-search__trigger:hover,
.fastercar-header-search__trigger:focus {
  color: #2c2d51 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.fastercar-header-search__trigger svg {
  display: block !important;
  fill: none !important;
  stroke: currentColor !important;
}

.fastercar-header-search__layer[hidden] {
  display: none !important;
}

.fastercar-header-search__layer {
  position: fixed;
  inset: 0;
  z-index: 2147483005;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  font-family: 'Manrope', Arial, sans-serif;
}

.fastercar-header-search__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(17, 24, 39, 0.2);
  cursor: default;
}

.fastercar-header-search__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100%;
  padding: max(10px, env(safe-area-inset-top)) 14px 24px;
  color: #111827;
  background: #fff;
}

.fastercar-header-search__mobile-bar {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

.fastercar-header-search__close {
  flex: 0 0 44px;
  width: 44px;
  height: 57px;
  color: #2c2d51 !important;
  background: #f7f8fa !important;
  border-radius: 7px !important;
}

.fastercar-header-search__form--mobile {
  flex: 1 1 auto;
}

.fastercar-header-search__form--mobile .fastercar-header-search__submit {
  flex-basis: 52px;
  width: 52px;
}

.fastercar-header-search__form--mobile .fastercar-header-search__input {
  padding-right: 10px !important;
  padding-left: 14px !important;
  font-size: 14px !important;
}

.fastercar-header-search__help {
  margin: 14px 0 0 52px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.45;
}

body.fastercar-search-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

@media (min-width: 993px) {
  .fastercar-header-search--mobile {
    display: none !important;
  }
}

@media (max-width: 992px) {
  .fastercar-header-search--desktop {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fastercar-header-search__form {
    transition: none;
  }
}

.tienda-bora-card {
  width: 100%;
  max-width: 260px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: none;
  overflow: hidden;
  transition: border-color 0.35s cubic-bezier(0.32, 0.72, 0, 1), transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  position: relative;
  margin: 0 auto 30px !important;
  list-style: none !important;
  display: block;
  font-family: 'Manrope', sans-serif;
}

/* =========================================
   SERVICIOS FASTERcar - BLOQUE PARA ELEMENTOR
   Shortcode: [fastercar_servicios]
   ========================================= */

.fastercar-services {
  --fc-services-ink: #292a55;
  --fc-services-accent: #bf281f;
  --fc-services-copy: #555762;
  --fc-services-line: #d9dbe3;
  --fc-services-surface: #f6f7f9;
  width: 100%;
  box-sizing: border-box;
  padding: clamp(64px, 8vw, 112px) clamp(20px, 4vw, 56px);
  background: var(--fc-services-surface);
  color: var(--fc-services-ink);
  font-family: 'Manrope', Arial, sans-serif;
}

.fastercar-services *,
.fastercar-services *::before,
.fastercar-services *::after {
  box-sizing: border-box;
}

.fastercar-services__inner {
  display: grid;
  grid-template-columns: minmax(270px, 0.82fr) minmax(0, 1.65fr);
  align-items: start;
  gap: clamp(56px, 8vw, 120px);
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}

.fastercar-services__intro {
  max-width: 460px;
}

.fastercar-services__title {
  max-width: 9ch;
  margin: 0;
  color: var(--fc-services-ink);
  font-family: 'Manrope', Arial, sans-serif;
  font-size: clamp(40px, 4.4vw, 68px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.fastercar-services__lead {
  max-width: 37ch;
  margin: 28px 0 0;
  color: var(--fc-services-copy);
  font-size: clamp(16px, 1.3vw, 18px);
  font-weight: 400;
  line-height: 1.65;
}

.fastercar-services__signature {
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 34px;
  background: var(--fc-services-accent);
}

.fastercar-services__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(36px, 5vw, 72px);
  row-gap: clamp(46px, 6vw, 76px);
}

.fastercar-services__item {
  position: relative;
  min-width: 0;
  padding: 30px 0 0;
  border-top: 1px solid var(--fc-services-line);
}

.fastercar-services__line {
  position: absolute;
  top: -1px;
  left: 0;
  width: 42px;
  height: 3px;
  background: var(--fc-services-accent);
  transform-origin: left center;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.fastercar-services__item:hover .fastercar-services__line {
  transform: scaleX(1.65);
}

.fastercar-services__item-title {
  max-width: 15ch;
  margin: 0;
  color: var(--fc-services-ink);
  font-family: 'Manrope', Arial, sans-serif;
  font-size: clamp(23px, 2vw, 31px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.fastercar-services__description {
  max-width: 42ch;
  margin: 18px 0 0;
  color: var(--fc-services-copy);
  font-size: clamp(15px, 1.25vw, 17px);
  font-weight: 400;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .fastercar-services__inner {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .fastercar-services__intro {
    max-width: 640px;
  }

  .fastercar-services__title {
    max-width: 12ch;
  }
}

@media (max-width: 640px) {
  .fastercar-services {
    padding: 64px 22px 72px;
  }

  .fastercar-services__inner {
    gap: 48px;
  }

  .fastercar-services__title {
    max-width: 10ch;
    font-size: clamp(38px, 11vw, 50px);
  }

  .fastercar-services__lead {
    margin-top: 22px;
    font-size: 16px;
  }

  .fastercar-services__signature {
    margin-top: 28px;
  }

  .fastercar-services__grid {
    grid-template-columns: 1fr;
    row-gap: 38px;
  }

  .fastercar-services__item {
    padding-top: 26px;
  }

  .fastercar-services__item-title {
    max-width: 18ch;
    font-size: 25px;
  }

  .fastercar-services__description {
    margin-top: 14px;
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fastercar-services__line {
    transition: none;
  }
}

.tienda-bora-card:hover {
  transform: translateY(-2px);
  border-color: #d1d5db;
}

.tienda-bora-card a {
  text-decoration: none;
  color: inherit;
}

.card__body > a:not(.card__eyebrow) {
  display: block;
}

/* Área de imagen */
.card__image-wrap {
  position: relative;
  background: #fff;
  height: 228px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 18px 4px;
}

.card__image-wrap a.image-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.card__image-wrap img.img-main,
.card__image-wrap img.img-hover {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px 10px 0;
  transition: opacity 0.45s cubic-bezier(0.32, 0.72, 0, 1), transform 0.45s cubic-bezier(0.32, 0.72, 0, 1);
  position: absolute;
  top: 0;
  left: 0;
  will-change: opacity, transform;
  backface-visibility: hidden;
}

.card__image-wrap img.img-hover {
  opacity: 0;
  z-index: 2;
  transform: scale(1.01);
}

.card__image-wrap img.img-main {
  z-index: 1;
  opacity: 1;
}

.tienda-bora-card:hover .card__image-wrap.has-hover-image img.img-main,
.card__image-wrap.has-hover-image .image-link:hover img.img-main {
  opacity: 0;
}

.tienda-bora-card:hover .card__image-wrap.has-hover-image img.img-hover,
.card__image-wrap.has-hover-image .image-link:hover img.img-hover {
  opacity: 1;
  transform: scale(1.02);
}

/* Badge de descuento */
.badge-off {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 5px;
  background: #2c2d51;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  z-index: 10;
  box-shadow: none;
}

/* Blindaje contra markup legado o inyectado por caché/plugins */
.tienda-bora-card .badge-category,
.tienda-bora-card .btn-wish,
.tienda-bora-card .yith-wcwl-add-to-wishlist,
.tienda-bora-card .compare,
.tienda-bora-card .product-cat,
.tienda-bora-card .posted_in {
  display: none !important;
}

/* Cuerpo de la tarjeta */
.card__body {
  padding: 6px 18px 20px;
  text-align: left;
}

.card__eyebrow {
  --eyebrow-bg: rgba(180, 41, 31, 0.08);
  --eyebrow-border: rgba(180, 41, 31, 0.22);
  --eyebrow-text: #b4291f;
  display: inline-flex !important;
  align-items: center;
  margin: 0 0 8px;
  padding: 4px 9px;
  border: 1px solid var(--eyebrow-border);
  border-radius: 4px;
  background: var(--eyebrow-bg);
  color: var(--eyebrow-text);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: auto !important;
  max-width: 90%;
}

.card__eyebrow:link,
.card__eyebrow:visited,
.card__eyebrow:hover,
.card__eyebrow:active {
  color: var(--eyebrow-text) !important;
}

/* Categorías y etiquetas: color secundario único */
.card__eyebrow--c1 {
  --eyebrow-bg: rgba(180, 41, 31, 0.08);
  --eyebrow-border: rgba(180, 41, 31, 0.22);
  --eyebrow-text: #b4291f;
}
.card__eyebrow--c2, .card__eyebrow--c3, .card__eyebrow--c4,
.card__eyebrow--c5, .card__eyebrow--c6, .card__eyebrow--c7,
.card__eyebrow--c8, .card__eyebrow--c9, .card__eyebrow--c10 {
  --eyebrow-bg: rgba(180, 41, 31, 0.08);
  --eyebrow-border: rgba(180, 41, 31, 0.22);
  --eyebrow-text: #b4291f;
}

.tienda-bora-card .card__title {
  margin: 0 0 12px;
  padding: 0 !important;
  font-size: 13px !important;
  font-weight: 500;
  color: #4b5563;
  line-height: 1.38 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  word-break: break-word;
  overflow-wrap: break-word;
  text-overflow: ellipsis;
}

.card__specs {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 26px;
  margin: 5px 0 11px;
  padding: 0;
  overflow: hidden;
}

.card__spec {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 5px 8px;
  border-radius: 5px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
}

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

.card__spec dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card__spec--measure {
  background: #eef5ff;
  color: #0257c5;
  font-variant-numeric: tabular-nums;
}

/* Precios */
.card__price-block {
  display: block !important;
  margin-top: 10px;
  margin-bottom: 10px;
}

.card__price-original {
  display: inline-block !important;
  font-size: 12px;
  font-weight: 500;
  color: #c2c8d2;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  white-space: nowrap;
  align-self: center;
  margin: 0 !important;
}

.card__price-row {
  display: flex !important;
  width: auto;
  align-items: center !important;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.card__price-sale {
  flex: 0 0 auto;
  font-size: 24px;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.03em;
  display: inline-flex !important;
  align-items: baseline;
}

.card__price-sale .cents {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  vertical-align: super;
}

/* Acciones de producto */
.tienda-bora-card .card__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.tienda-bora-card .card__action {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1.5px solid transparent;
  border-radius: 6px;
  font-family: 'Manrope', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 120ms ease;
}

.tienda-bora-card .card__action span {
  min-width: 0;
}

.tienda-bora-card .card__action-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tienda-bora-card .card__action-icon--whatsapp {
  fill: currentColor;
  stroke: none;
}

.tienda-bora-card .card__action--details {
  color: #0264e2 !important;
  background: #fff;
  border-color: #0264e2;
}

.tienda-bora-card .card__action--details:hover {
  color: #014fae !important;
  background: #f1f7ff;
  border-color: #014fae;
}

.tienda-bora-card .card__action--whatsapp {
  color: #fff !important;
  background: #25d366;
  border-color: #25d366;
  box-shadow: 0 2px 5px rgba(18, 140, 75, 0.18);
}

.tienda-bora-card .card__action--whatsapp:hover {
  color: #fff !important;
  background: #1fb95a;
  border-color: #1fb95a;
  box-shadow: 0 5px 12px rgba(18, 140, 75, 0.24);
}

.tienda-bora-card .card__action:active {
  transform: translateY(1px);
  box-shadow: none;
}

.tienda-bora-card .card__action:focus-visible {
  outline: 3px solid rgba(2, 100, 226, 0.24);
  outline-offset: 2px;
}

/* Estrellas (Rating) */
.card__rating {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  min-height: 20px;
}

.card__rating .rating-count {
  font-size: 13px;
  font-weight: 500;
  color: #9ca3af;
}

/* Estrellas SVG (reemplazan la fuente `star` de WooCommerce) */
.card__stars {
  position: relative;
  display: inline-block;
  width: 5.4em;
  height: 1em;
  line-height: 1;
  font-size: 14px;
  flex-shrink: 0;
}

.card__stars-bg,
.card__stars-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  align-items: center;
}

.card__stars-fill {
  overflow: hidden;
  white-space: nowrap;
}

.card__stars svg {
  width: 1.08em;
  height: 1em;
  flex: 0 0 auto;
  display: block;
}

.card__stars-bg svg { fill: #d3ced2; }
.card__stars-fill svg { fill: #f7a600; }

/* Botón Añadir al carrito */
.tienda-bora-card .add_to_cart_button,
.tienda-bora-card .btn-cart {
  display: none !important;
}

@media (max-width: 767px) {
  .tienda-bora-card {
    max-width: 100%;
  }

  .card__image-wrap {
    height: 180px;
    padding: 14px 16px 2px;
  }

  .card__image-wrap img.img-main,
  .card__image-wrap img.img-hover {
    padding: 4px 8px 0;
  }

  .card__body {
    padding: 4px 16px 16px;
  }

  .card__eyebrow {
    display: inline-block !important;
    max-width: 80%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .tienda-bora-card .card__title {
    margin: 0 0 6px;
  }

  .card__specs {
    gap: 5px;
    margin-bottom: 7px;
  }

  .card__spec {
    padding: 4px 6px;
    font-size: 9px;
  }

  .card__rating {
    margin-bottom: 8px;
  }

  .card__price-block {
    margin-top: 6px;
    margin-bottom: 6px;
  }

  .card__price-sale {
    font-size: 22px;
  }

  .tienda-bora-card .card__actions {
    gap: 7px;
    margin-top: 13px;
  }

  .tienda-bora-card .card__action {
    min-height: 50px;
    padding: 9px 8px;
    gap: 7px;
    font-size: 11px;
  }

  .tienda-bora-card .card__action-icon {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
  }
}

/* Ocultar el botón "Ver Carrito" que aparece luego de agregar un producto */
a.added_to_cart.wc-forward {
  display: none !important;
}

/* =========================================
   GALERÍA DE PRODUCTO - TIENDA BORA
   ========================================= */

/* Ensanchar el contenedor de la página de producto (override del max-width del theme) */
.single-product .site-main {
  max-width: 1320px !important;
}

/* Layout de 2 columnas: galería a la izquierda, summary a la derecha.
   Resto de bloques (tabs, related, upsells) ocupan el ancho completo abajo.
   Galería un poco más angosta que el summary para que el título respire. */
.single-product div.product {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  column-gap: 56px;
  row-gap: 40px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.single-product div.product > * {
  grid-column: 1 / -1;
  min-width: 0;
}

.single-product div.product > .tienda-bora-gallery {
  grid-column: 1;
  grid-row: 1;
  float: none;
  width: auto;
}

.single-product div.product > .summary,
.single-product div.product > .entry-summary {
  grid-column: 2;
  grid-row: 1;
  float: none !important;
  width: auto !important;
  max-width: none !important;
}

.tienda-bora-gallery {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-family: 'Manrope', sans-serif;
}

.tienda-bora-gallery__thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 88px;
  flex-shrink: 0;
}

.gallery-thumb,
.elementor-shortcode .gallery-thumb {
  position: relative;
  width: 88px;
  height: 88px;
  padding: 0 !important;
  background: #fff !important;
  background-color: #fff !important;
  border: 1.5px solid #e5e7eb !important;
  border-radius: 8px !important;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.18s ease;
  font-family: inherit;
  color: #475569 !important; /* override del color heredado del Kit de Elementor */
  box-shadow: none !important;
}

.gallery-thumb:hover:not(.is-active),
.elementor-shortcode .gallery-thumb:hover:not(.is-active) {
  border-color: #cbd5e1 !important;
  background: #fff !important;
  background-color: #fff !important;
}

.gallery-thumb.is-active,
.elementor-shortcode .gallery-thumb.is-active {
  border-color: #0264E2 !important;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  display: block;
}

.gallery-thumb--more {
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-thumb--more:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.gallery-thumb__overlay {
  font-size: 16px;
  font-weight: 700;
  color: #475569;
  letter-spacing: -0.02em;
}

.tienda-bora-gallery__main {
  position: relative;
  flex: 1;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 32px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tienda-bora-gallery__image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.18s ease;
}

.tienda-bora-gallery__zoom,
.elementor-shortcode .tienda-bora-gallery__zoom {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  padding: 0 !important;
  border: 1px solid #e5e7eb !important;
  background: #fff !important;
  background-color: #fff !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b !important;
  box-shadow: none !important;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.tienda-bora-gallery__zoom:hover,
.elementor-shortcode .tienda-bora-gallery__zoom:hover {
  color: #0264E2 !important;
  border-color: #0264E2 !important;
  background: #fff !important;
  background-color: #fff !important;
}

.tienda-bora-gallery__zoom svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* =========================================
   LIGHTBOX (zoom de la imagen principal)
   ========================================= */
.tienda-bora-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.tienda-bora-lightbox.is-open {
  opacity: 1;
}

.tienda-bora-lightbox__stage {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tienda-bora-lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 80px);
  object-fit: contain;
  cursor: default;
  user-select: none;
  transition: opacity 0.18s ease;
}

/* Botones de navegación prev/next */
.tienda-bora-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  flex: 0 0 auto !important;
  background: rgba(255, 255, 255, 0.12) !important;
  background-color: rgba(255, 255, 255, 0.12) !important;
  border: none !important;
  border-radius: 50% !important;
  color: #fff !important;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  box-shadow: none !important;
  transition: background 0.18s ease, transform 0.12s ease;
  z-index: 2;
}

.tienda-bora-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  transform: translateY(-50%) scale(1.05);
}

.tienda-bora-lightbox__nav--prev {
  left: 24px;
}

.tienda-bora-lightbox__nav--next {
  right: 24px;
}

.tienda-bora-lightbox__nav svg {
  display: block;
  pointer-events: none;
}

/* Contador de imágenes */
.tienda-bora-lightbox__counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.tienda-bora-lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  flex: 0 0 auto !important;
  background: #0264E2 !important;
  background-color: #0264E2 !important;
  border: none !important;
  border-radius: 50% !important;
  color: #fff !important;
  font-size: 24px !important;
  font-weight: 500;
  line-height: 1 !important;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  box-shadow: 0 4px 12px rgba(2, 100, 226, 0.35) !important;
  transition: background 0.18s ease, transform 0.12s ease;
}

.tienda-bora-lightbox__close:hover {
  background: #0153bd !important;
  background-color: #0153bd !important;
  color: #fff !important;
  transform: scale(1.05);
}

body.lightbox-open {
  overflow: hidden;
}

/* Badge de porcentaje en la galería del single product */
.badge-off--single {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 5;
}

/* Badge inline al lado del precio (single product) */
.badge-off--inline {
  position: static;
  display: inline-flex;
  align-items: center;
  min-height: 0;
  padding: 5px 9px;
  margin-left: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: middle;
  border-radius: 4px;
  order: 3; /* ir después del precio rebajado (ins) y el original (del) */
}

/* Ocultar el "¡Oferta!" default por si algún plugin/cache lo reinyecta */
.single-product .product > .onsale,
.single-product .woocommerce-product-gallery .onsale {
  display: none !important;
}

/* =========================================
   SUMMARY (info del producto a la derecha)
   ========================================= */

.single-product div.product .summary {
  font-family: 'Manrope', sans-serif;
  color: #0f172a;
}

.single-product .product_title.entry-title {
  font-family: 'Manrope', sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0 0 18px;
}

/* Precio */
.single-product > .price,
.single-product p.price {
  margin: 0 0 20px;
  font-size: 30px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
  letter-spacing: -0.01em;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}

.single-product .price del {
  order: 2;
  color: #94a3b8;
  font-size: 18px;
  font-weight: 500;
  text-decoration: line-through;
  opacity: 1;
}

.single-product .price ins {
  order: 1;
  color: #0f172a;
  background: transparent;
  text-decoration: none;
}

.single-product .price .woocommerce-Price-amount {
  font-weight: 700;
}

/* Stock */
.single-product p.stock {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 24px;
}

.single-product p.stock.in-stock {
  color: #16a34a;
}

.single-product p.stock.out-of-stock {
  color: #dc2626;
}

/* Variaciones de producto (Swatchly + WC default) — atributos lado a lado en lugar de apilados */
.single-product table.variations {
  display: block;
  width: auto;
  margin: 0 0 20px;
  border: none;
  background: transparent;
}

/* Título único arriba de los swatches en lugar de un label por atributo */
.single-product table.variations::before {
  content: 'Escogé tus opciones';
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.single-product table.variations tbody {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: flex-start;
}

.single-product table.variations tr {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  flex: 0 0 auto !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  grid-template-columns: none !important;
}

.single-product table.variations th,
.single-product table.variations td {
  display: block;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  text-align: left;
  width: auto;
}

/* Ocultar los labels per-atributo ("Color : Rosa", "Nombre del diseño : Liso") */
.single-product table.variations th.label {
  display: none !important;
}

/* CTA de consulta: reemplaza cantidad, variaciones de compra y botón Comprar */
.single-product .fastercar-product-consult {
  width: 100%;
  margin: 0 0 28px;
}

.single-product .fastercar-product-consult__button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  min-height: 56px;
  padding: 14px 22px;
  border: 1.5px solid #25d366;
  border-radius: 10px;
  background: #25d366;
  color: #fff !important;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 0 3px 8px rgba(18, 140, 75, 0.2);
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 120ms ease;
}

.single-product .fastercar-product-consult__button:hover {
  background: #1fb95a;
  border-color: #1fb95a;
  color: #fff !important;
  box-shadow: 0 7px 18px rgba(18, 140, 75, 0.28);
}

.single-product .fastercar-product-consult__button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 5px rgba(18, 140, 75, 0.2);
}

.single-product .fastercar-product-consult__button:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.28);
  outline-offset: 3px;
}

.single-product .fastercar-product-consult__icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: currentColor;
}

/* Product meta (SKU, categorías, marca) */
.single-product .product_meta {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  color: #64748b;
  line-height: 1.7;
  border-top: 1px solid #e5e7eb;
  padding-top: 18px;
}

.single-product .product_meta > span {
  display: block;
  margin-bottom: 4px;
}

.single-product .product_meta a {
  color: #b4291f;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.single-product .product_meta a:hover {
  color: #8f2119;
  text-decoration: underline;
}

.single-product .product_meta .sku {
  color: #0f172a;
  font-weight: 600;
}

@media (max-width: 767px) {
  .single-product div.product {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 24px;
  }

  .single-product div.product > .tienda-bora-gallery,
  .single-product div.product > .summary,
  .single-product div.product > .entry-summary {
    grid-column: 1;
  }

  .single-product div.product > .summary,
  .single-product div.product > .entry-summary {
    grid-row: auto;
  }

  .tienda-bora-gallery {
    flex-direction: column-reverse;
    gap: 12px;
  }

  .tienda-bora-gallery__thumbs {
    flex-direction: row;
    width: 100%;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .gallery-thumb {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
  }

  .tienda-bora-gallery__main {
    padding: 16px;
  }
}


/* =========================================
   PRODUCT PAGE – TABS & TABLE
   ========================================= */

/* --- Tabs navigation --- */
.woocommerce-tabs .wc-tabs {
  list-style: none !important;
  display: flex !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 2px solid #e5e7eb !important;
}

.woocommerce-tabs .wc-tabs li {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  border-radius: 0 !important;
}

.woocommerce-tabs .wc-tabs li a {
  display: block;
  padding: 12px 24px !important;
  font-family: 'Manrope', sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #6b7280 !important;
  text-decoration: none !important;
  border: none !important;
  background: none !important;
  position: relative;
  transition: color 0.15s ease;
}

.woocommerce-tabs .wc-tabs li a:hover {
  color: #111827 !important;
}

.woocommerce-tabs .wc-tabs li.active a {
  color: #2563eb !important;
  font-weight: 600 !important;
}

.woocommerce-tabs .wc-tabs li.active a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #2563eb;
}

/* --- Tab panel content --- */
.woocommerce-tabs .wc-tab {
  padding: 28px 0 !important;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #374151;
}

.woocommerce-tabs .wc-tab h2 {
  display: none !important;
}

/* --- Attributes table --- */
.woocommerce-product-attributes.shop_attributes {
  border: none !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100%;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
}

.woocommerce-product-attributes.shop_attributes tr {
  border-bottom: 1px solid #f0f0f0 !important;
}

.woocommerce-product-attributes.shop_attributes tr:last-child {
  border-bottom: none !important;
}

.woocommerce-product-attributes.shop_attributes th {
  background: none !important;
  border: none !important;
  border-right: 1px solid #f0f0f0 !important;
  border-bottom: 1px solid #f0f0f0 !important;
  padding: 12px 20px !important;
  font-weight: 600;
  color: #374151;
  text-align: left;
  width: 180px;
  vertical-align: top;
}

.woocommerce-product-attributes.shop_attributes td {
  background: none !important;
  border: none !important;
  border-bottom: 1px solid #f0f0f0 !important;
  padding: 12px 20px !important;
  color: #6b7280;
  font-style: normal !important;
}

.woocommerce-product-attributes.shop_attributes tr:last-child th,
.woocommerce-product-attributes.shop_attributes tr:last-child td {
  border-bottom: none !important;
}

.woocommerce-product-attributes.shop_attributes td p {
  margin: 0;
  padding: 0;
}

.woocommerce-product-attributes.shop_attributes a {
  color: #2563eb;
  text-decoration: none;
}

.woocommerce-product-attributes.shop_attributes a:hover {
  text-decoration: underline;
}

/* =========================================
   SHOP FILTERS SIDEBAR
   ========================================= */

/* --- Contenedor más ancho para la shop --- */
.post-type-archive-product .site-main,
.tax-product_cat .site-main {
  max-width: 1400px !important;
}

/* --- Layout grid: sidebar + productos --- */
.shop-layout {
  display: grid !important;
  grid-template-columns: 240px 1fr !important;
  gap: 0 32px !important;
  align-items: start !important;
}

/* --- Grilla de productos: CSS grid en lugar de floats --- */
.shop-layout > ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
  float: none !important;
}

/* Eliminar clearfix de WooCommerce que ocupa celdas del grid */
.shop-layout > ul.products::before,
.shop-layout > ul.products::after {
  display: none !important;
  content: none !important;
}

.shop-layout > ul.products > li.product {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* El botón toggle solo se ve en mobile */
.shop-layout > .shop-filters-toggle {
  display: none !important;
}

/* --- Sidebar desktop: ocupa toda la primera columna --- */
.shop-layout > .shop-filters-sidebar {
  grid-column: 1 !important;
  grid-row: 1 / 20 !important;
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 0 8px 24px 0;
}

.shop-layout > .shop-filters-sidebar > .shop-filters-sidebar__close {
  display: none !important;
}

/* Todo lo demás va en la segunda columna */
.shop-layout > .fastercar-tire-finder,
.shop-layout > .fastercar-active-filters,
.shop-layout > .woocommerce-result-count,
.shop-layout > .woocommerce-ordering,
.shop-layout > ul.products,
.shop-layout > .woocommerce-pagination {
  grid-column: 2 !important;
}

/* Buscador, chips, controles y productos en filas ordenadas */
.shop-layout > .fastercar-tire-finder {
  grid-row: 1;
}

.shop-layout > .fastercar-active-filters {
  grid-row: 2;
}

.shop-layout > .woocommerce-result-count {
  grid-row: 3;
  align-self: center;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  margin: 0;
}

.shop-layout > .woocommerce-ordering {
  grid-row: 3;
  justify-self: end;
  align-self: center;
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.shop-layout > .woocommerce-ordering::before {
  content: 'Ordenar por:';
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  white-space: nowrap;
}

.shop-layout > .woocommerce-ordering select.orderby {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  background: #fff;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px;
  padding: 7px 32px 7px 12px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.shop-layout > .woocommerce-ordering select.orderby:hover {
  border-color: #d1d5db !important;
}

.shop-layout > .woocommerce-ordering select.orderby:focus {
  border-color: #0264E2 !important;
  box-shadow: 0 0 0 2px rgba(2, 100, 226, 0.1);
}

/* Productos debajo del buscador y los controles */
.shop-layout > ul.products {
  grid-row: 4;
}

.shop-layout > .woocommerce-pagination {
  grid-row: 5;
}

.woocommerce-pagination {
  text-align: center;
  margin: 32px 0 16px;
}

.woocommerce-pagination ul.page-numbers {
  display: inline-flex !important;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  border: none !important;
}

.woocommerce-pagination ul.page-numbers li {
  border: none !important;
}

.woocommerce-pagination ul.page-numbers li a,
.woocommerce-pagination ul.page-numbers li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  background: transparent;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  transition: all 0.15s ease;
}

.woocommerce-pagination ul.page-numbers li a:hover {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #2563eb;
}

.woocommerce-pagination ul.page-numbers li span.current {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  font-weight: 600;
}

.woocommerce-pagination ul.page-numbers li a.prev,
.woocommerce-pagination ul.page-numbers li a.next {
  font-size: 16px;
}

/* --- Buscador principal por medida --- */
.fastercar-tire-finder {
  display: grid;
  grid-template-columns: minmax(210px, 0.72fr) minmax(0, 1.6fr);
  gap: 28px;
  align-items: end;
  margin: 0 0 22px;
  padding: 24px;
  border: 1px solid #dce6f4;
  border-radius: 12px;
  background: #f7faff;
  color: #172033;
  font-family: 'Manrope', sans-serif;
}

.fastercar-tire-finder__kicker {
  display: block;
  margin-bottom: 5px;
  color: #b4291f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fastercar-tire-finder h2 {
  margin: 0;
  color: #202247;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.fastercar-tire-finder__intro p {
  max-width: 38ch;
  margin: 9px 0 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.5;
}

.fastercar-tire-finder__intro strong {
  color: #202247;
  font-weight: 700;
}

/* El control de despliegue se reserva para la versión mobile. */
.fastercar-tire-finder__toggle {
  display: none !important;
}

.fastercar-tire-finder__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.fastercar-tire-finder__fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.fastercar-tire-finder__field {
  display: block;
  min-width: 0;
  margin: 0;
}

.fastercar-tire-finder__field > span {
  display: block;
  margin: 0 0 6px;
  color: #475467;
  font-size: 11px;
  font-weight: 700;
}

.fastercar-tire-finder__field > span b {
  color: #b4291f;
}

.fastercar-tire-finder select {
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 9px 30px 9px 11px;
  border: 1px solid #cfd9e8;
  border-radius: 7px;
  background-color: #fff;
  color: #273142;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 600;
  box-shadow: none;
}

.fastercar-tire-finder select:focus {
  border-color: #0264e2;
  outline: 3px solid rgba(2, 100, 226, 0.13);
  outline-offset: 1px;
}

.fastercar-tire-finder__submit,
.fastercar-facet-form__submit {
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid #2c2d51 !important;
  border-radius: 7px;
  background: #2c2d51 !important;
  color: #fff !important;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none !important;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.fastercar-tire-finder__submit:hover,
.fastercar-facet-form__submit:hover {
  border-color: #1f203f !important;
  background: #1f203f !important;
  color: #fff !important;
}

.fastercar-tire-finder__submit:focus-visible,
.fastercar-facet-form__submit:focus-visible {
  outline: 3px solid rgba(44, 45, 81, 0.24) !important;
  outline-offset: 2px !important;
}

/* --- Resumen de filtros activos --- */
.fastercar-active-filters {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  font-family: 'Manrope', sans-serif;
}

.fastercar-active-filters__label {
  margin-right: 2px;
  color: #667085;
  font-size: 11px;
  font-weight: 650;
}

.fastercar-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid #d8e0eb;
  border-radius: 999px;
  background: #fff;
  color: #344054 !important;
  font-size: 11px;
  font-weight: 650;
  text-decoration: none !important;
}

.fastercar-filter-chip:hover,
.fastercar-filter-chip:focus-visible {
  border-color: #b4291f;
  color: #b4291f !important;
}

.fastercar-active-filters__clear {
  margin-left: 3px;
  color: #b4291f !important;
  font-size: 11px;
  font-weight: 700;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

/* --- Widgets de filtro --- */
.shop-filter-widget {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.shop-filter-widget:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.shop-filter-widget__title {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #111827;
  margin: 0 0 12px;
}

/* Enlace para volver a todos los productos desde una categoría */
.shop-filter-all-link {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  margin-bottom: 12px;
}
.shop-filter-all-link:hover {
  color: #111827;
}

/* Listas de categorías / atributos */
.shop-filter-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.shop-filter-widget ul li {
  margin: 0;
  padding: 0;
}

.shop-filter-widget ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  color: #374151;
  text-decoration: none;
  transition: color 0.2s;
}

.shop-filter-widget ul li a:hover {
  color: #b4291f;
}

/* Contadores de productos entre paréntesis */
.shop-filter-widget .count {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 400;
}

/* Subcategorías (árbol) */
.shop-filter-tree__children {
  padding-left: 16px;
}

/* Categoría activa */
.shop-filter-widget li.is-active > a {
  color: #b4291f;
  font-weight: 600;
}

/* --- Filtro de precio (rangos) --- */
.shop-filter-price li.is-active a {
  color: #b4291f;
  font-weight: 600;
}

/* --- Filtro de atributos (checkmarks) --- */
.shop-filter-attr li.is-active a {
  color: #b4291f;
  font-weight: 600;
}

.shop-filter-check {
  color: #b4291f;
  font-weight: 700;
  margin-right: 4px;
  font-size: 13px;
}

/* --- Facetas secundarias curadas --- */
.fastercar-facet-form {
  margin: 0;
}

.shop-filter-search {
  display: block;
  margin: 0 0 9px;
}

.shop-filter-search input {
  width: 100%;
  min-height: 36px;
  margin: 0;
  padding: 7px 9px;
  border: 1px solid #d8dee8;
  border-radius: 6px;
  background: #fff;
  color: #344054;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  box-shadow: none;
}

.shop-filter-search input:focus {
  border-color: #0264e2;
  outline: 2px solid rgba(2, 100, 226, 0.12);
}

.shop-filter-options {
  max-height: 220px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.shop-filter-option {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  margin: 0;
  padding: 5px 2px;
  color: #374151;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  cursor: pointer;
}

.shop-filter-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.shop-filter-option__box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 1.5px solid #b9c1cd;
  border-radius: 4px;
  background: #fff;
  color: #fff;
}

.shop-filter-option input:checked + .shop-filter-option__box {
  border-color: #b4291f;
  background: #b4291f;
}

.shop-filter-option input:checked + .shop-filter-option__box::after {
  content: '✓';
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.shop-filter-option input:focus-visible + .shop-filter-option__box {
  outline: 3px solid rgba(2, 100, 226, 0.18);
  outline-offset: 2px;
}

.shop-filter-option__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-filter-option:hover .shop-filter-option__name {
  color: #b4291f;
}

.shop-filter-hint {
  margin: 0;
  color: #7a8494;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  line-height: 1.5;
}

.shop-filter-more {
  margin: 0 0 24px;
  padding: 0 0 24px;
  border-bottom: 1px solid #e5e7eb;
}

.shop-filter-more > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  color: #202247;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.shop-filter-more > summary::-webkit-details-marker {
  display: none;
}

.shop-filter-more > summary::after {
  content: '+';
  font-size: 19px;
  font-weight: 500;
}

.shop-filter-more[open] > summary::after {
  content: '−';
}

.shop-filter-more .shop-filter-widget {
  margin: 16px 0 0;
  padding: 0;
  border: 0;
}

.fastercar-facet-form__submit-wrap {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding: 10px 0 2px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 28%);
}

.fastercar-facet-form__submit {
  width: 100%;
}

.fastercar-facet-form.is-counting .fastercar-facet-form__submit {
  cursor: progress;
  opacity: 0.72;
}

/* --- Mobile: sidebar como drawer --- */
@media (max-width: 768px) {
  /* Breadcrumbs: scroll horizontal en una sola línea */
  .woocommerce-breadcrumb {
    display: block !important;
    white-space: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    font-size: 12px !important;
    scrollbar-width: none;
  }
  .woocommerce-breadcrumb::-webkit-scrollbar {
    display: none;
  }

  /* Título de categoría/tienda más pequeño en mobile */
  .tax-product_cat .woocommerce-products-header__title,
  .post-type-archive-product .woocommerce-products-header__title {
    font-size: 22px !important;
    line-height: 1.3 !important;
  }

  .shop-layout {
    display: block !important;
  }

  .fastercar-tire-finder {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 14px;
    padding: 19px 16px;
    border-radius: 10px;
  }

  .fastercar-tire-finder__intro {
    position: relative;
    padding-right: 44px;
  }

  .fastercar-tire-finder__toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    right: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #2c2d51 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 50%;
    cursor: pointer;
    transform: translateY(-50%);
  }

  .fastercar-tire-finder__toggle svg {
    transition: transform 180ms ease;
  }

  .fastercar-tire-finder:not(.is-collapsed) .fastercar-tire-finder__toggle svg {
    transform: rotate(180deg);
  }

  .fastercar-tire-finder__toggle:focus-visible {
    outline: 3px solid rgba(44, 45, 81, 0.24);
    outline-offset: 2px;
  }

  .fastercar-tire-finder.is-collapsed {
    gap: 0;
  }

  .fastercar-tire-finder.is-collapsed .fastercar-tire-finder__form {
    display: none;
  }

  .fastercar-tire-finder__form {
    grid-template-columns: 1fr;
  }

  .fastercar-tire-finder__fields {
    gap: 7px;
  }

  .fastercar-tire-finder__submit {
    width: 100%;
  }

  .fastercar-active-filters {
    margin: 4px 0 15px;
  }

  .shop-layout > .woocommerce-result-count,
  .shop-layout > .woocommerce-ordering {
    float: none !important;
    justify-content: flex-start !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    text-align: left !important;
  }

  .shop-layout > .woocommerce-result-count {
    margin-bottom: 8px !important;
  }

  .shop-layout > .woocommerce-ordering {
    margin-bottom: 18px !important;
  }

  .shop-layout > ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .shop-layout > .shop-filters-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    font-family: 'Manrope', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #fff !important;
    background: #2c2d51 !important;
    border: 1px solid #2c2d51 !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    cursor: pointer;
    margin-bottom: 16px !important;
    transition: border-color 0.2s, color 0.2s, background 0.2s !important;
    text-decoration: none !important;
    box-shadow: none !important;
  }

  .shop-layout > .shop-filters-toggle:hover,
  .shop-layout > .shop-filters-toggle:focus,
  .shop-layout > .shop-filters-toggle:active {
    border-color: #1f203f !important;
    color: #fff !important;
    background: #1f203f !important;
    outline: 3px solid rgba(44, 45, 81, 0.2) !important;
    outline-offset: 2px !important;
  }

  .shop-layout > .shop-filters-toggle svg {
    flex-shrink: 0;
    stroke: currentColor !important;
  }

  /* --- Sidebar fullscreen en mobile --- */
  .shop-filters-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    background: #fff !important;
    z-index: 10000 !important;
    padding: 64px 20px 100px 20px !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1) !important;
    box-shadow: none !important;
    overflow-y: auto !important;
  }

  .shop-filters-sidebar.is-open {
    transform: translateX(0) !important;
  }

  /* Header sticky con título */
  .shop-filters-sidebar::before {
    content: 'Filtros';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 56px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    padding-left: 20px;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    z-index: 1;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  }

  .shop-filters-sidebar.is-open::before {
    transform: translateX(0);
  }

  /* Botón cerrar — esquina superior derecha, gris */
  .shop-layout > .shop-filters-sidebar > .shop-filters-sidebar__close {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: fixed !important;
    top: 12px !important;
    right: 16px !important;
    width: 36px !important;
    height: 36px !important;
    border: none !important;
    background: #f3f4f6 !important;
    border-radius: 50% !important;
    font-size: 22px !important;
    font-weight: 400 !important;
    color: #374151 !important;
    cursor: pointer;
    line-height: 1 !important;
    padding: 0 !important;
    z-index: 10001 !important;
    transform: translateX(-200%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: none !important;
  }

  .shop-filters-sidebar.is-open > .shop-filters-sidebar__close {
    transform: translateX(0);
  }

  .shop-layout > .shop-filters-sidebar.is-open > .shop-filters-sidebar__close {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateX(0) !important;
  }

  .shop-layout > .shop-filters-sidebar > .shop-filters-sidebar__close:hover,
  .shop-layout > .shop-filters-sidebar > .shop-filters-sidebar__close:focus {
    background: #e5e7eb !important;
    color: #111827 !important;
    outline: none !important;
  }

  /* Sin overlay porque el modal ocupa toda la pantalla */
  body.filters-open::after {
    display: none;
  }

  /* Bloquear scroll del body mientras el modal está abierto */
  body.filters-open {
    overflow: hidden !important;
  }

  /* Más espacio entre widgets en mobile */
  .shop-filters-sidebar .shop-filter-widget {
    margin-bottom: 28px;
    padding-bottom: 28px;
  }

  .shop-filters-sidebar .shop-filter-widget__title {
    font-size: 14px;
  }

  .shop-filters-sidebar .shop-filter-widget ul li a {
    padding: 10px 0;
    font-size: 15px;
  }

  .shop-filter-option {
    min-height: 44px;
    padding: 8px 2px;
    font-size: 14px;
  }

  .shop-filter-option__box {
    width: 18px;
    height: 18px;
  }

  .fastercar-facet-form__submit-wrap {
    position: sticky !important;
    right: auto;
    bottom: 0;
    top: calc(var(--fc-mobile-viewport-height, 100dvh) - 82px - max(72px, env(safe-area-inset-bottom)));
    left: auto;
    z-index: 10002;
    width: 100%;
    margin-top: 16px;
    padding: 12px 0 max(12px, env(safe-area-inset-bottom));
    border-top: 1px solid #e5e7eb;
    background: #fff;
    transform: none !important;
    transition: none;
  }

  .shop-layout > .shop-filters-sidebar.is-open .fastercar-facet-form__submit-wrap {
    position: sticky !important;
    top: calc(var(--fc-mobile-viewport-height, 100dvh) - 82px - max(72px, env(safe-area-inset-bottom)));
    z-index: 10002 !important;
    transform: none !important;
  }
}

@media (max-width: 480px) {
  .fastercar-tire-finder__fields {
    grid-template-columns: 1fr;
  }
}
