/*
 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');

.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;
}

.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: #E30323;
  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(47, 123, 232, 0.08);
  --eyebrow-border: rgba(47, 123, 232, 0.16);
  --eyebrow-text: #608ecf;
  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;
}

/* Paleta pastel — color asignado por hash de la categoría raíz */
.card__eyebrow--c1 {
  --eyebrow-bg: rgba(47, 123, 232, 0.08);
  --eyebrow-border: rgba(47, 123, 232, 0.18);
  --eyebrow-text: #608ecf;
}
.card__eyebrow--c2 {
  --eyebrow-bg: rgba(34, 178, 145, 0.10);
  --eyebrow-border: rgba(34, 178, 145, 0.22);
  --eyebrow-text: #2f9d80;
}
.card__eyebrow--c3 {
  --eyebrow-bg: rgba(122, 161, 130, 0.14);
  --eyebrow-border: rgba(122, 161, 130, 0.26);
  --eyebrow-text: #6c8a73;
}
.card__eyebrow--c4 {
  --eyebrow-bg: rgba(235, 138, 95, 0.10);
  --eyebrow-border: rgba(235, 138, 95, 0.24);
  --eyebrow-text: #c96d40;
}
.card__eyebrow--c5 {
  --eyebrow-bg: rgba(230, 102, 112, 0.10);
  --eyebrow-border: rgba(230, 102, 112, 0.22);
  --eyebrow-text: #c64a59;
}
.card__eyebrow--c6 {
  --eyebrow-bg: rgba(220, 122, 162, 0.10);
  --eyebrow-border: rgba(220, 122, 162, 0.22);
  --eyebrow-text: #b85d83;
}
.card__eyebrow--c7 {
  --eyebrow-bg: rgba(135, 120, 220, 0.10);
  --eyebrow-border: rgba(135, 120, 220, 0.22);
  --eyebrow-text: #6e5bb5;
}
.card__eyebrow--c8 {
  --eyebrow-bg: rgba(175, 120, 210, 0.10);
  --eyebrow-border: rgba(175, 120, 210, 0.22);
  --eyebrow-text: #8e54a8;
}
.card__eyebrow--c9 {
  --eyebrow-bg: rgba(192, 154, 95, 0.14);
  --eyebrow-border: rgba(192, 154, 95, 0.28);
  --eyebrow-text: #8f6e30;
}
.card__eyebrow--c10 {
  --eyebrow-bg: rgba(78, 145, 100, 0.10);
  --eyebrow-border: rgba(78, 145, 100, 0.24);
  --eyebrow-text: #3f7551;
}

.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;
}

/* 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;
}

/* Cuotas */
.card__cuotas {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin: 2px 0 0 !important;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: #6b7280;
  white-space: normal;
}

/* 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__rating {
    margin-bottom: 8px;
  }

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

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

  .card__cuotas {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* 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;
}

/* Form del carrito — stepper a la izquierda + botón ocupando el resto */
.single-product form.cart:not(.variations_form) {
  margin: 0 0 28px;
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: nowrap;
}

/* Para productos variables el contenedor flex es .woocommerce-variation-add-to-cart */
.single-product .woocommerce-variation-add-to-cart {
  display: flex !important;
  align-items: stretch;
  gap: 12px;
  flex-wrap: nowrap;
  margin-top: 16px;
}

/* Stepper de cantidad (-/+) */
.single-product .qty-stepper {
  display: inline-flex;
  align-items: stretch;
  height: 56px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color 0.18s ease;
}

.single-product .qty-stepper:focus-within {
  border-color: #0264E2;
}

/* Botones +/- — alta specificity + !important para ganarle al widget de Elementor
   que pinta TODOS los <button> dentro del form con el color de acento. */
.single-product .qty-stepper button.qty-stepper__btn,
.single-product form.cart .qty-stepper__btn,
.single-product .qty-stepper__btn {
  width: 40px;
  padding: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: 'Manrope', sans-serif !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  color: #94a3b8 !important;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
  user-select: none;
  height: auto !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

.single-product .qty-stepper button.qty-stepper__btn:hover,
.single-product form.cart .qty-stepper__btn:hover,
.single-product .qty-stepper__btn:hover {
  background: transparent !important;
  background-color: transparent !important;
  color: #0f172a !important;
}

.single-product .qty-stepper button.qty-stepper__btn:active,
.single-product form.cart .qty-stepper__btn:active,
.single-product .qty-stepper__btn:active {
  background: #f8fafc !important;
}

.single-product .qty-stepper input.qty {
  width: 44px;
  padding: 0;
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  background: transparent;
  border: none;
  color: #0f172a;
  -moz-appearance: textfield;
}

.single-product .qty-stepper input.qty:focus {
  outline: none;
}

.single-product .qty-stepper input.qty::-webkit-outer-spin-button,
.single-product .qty-stepper input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Botón comprar — ocupa el resto del ancho, accent blue, ícono de carrito */
/* Botón "Comprar" en single product
 *
 * Solo definimos aquí lo que Elementor no puede setear desde su widget:
 *   - Layout (flex, alto fijo, ancho ocupando el resto del row)
 *   - Ícono de carrito (::before con SVG mask)
 *   - Hover/active sutiles
 *
 * El color, fuente, padding, border-radius y demás visuales se setean
 * en el widget de Elementor → tab Style. Esto evita pelear specificity
 * y deja el CSS como fallback para páginas sin Elementor (cart, checkout).
 */
.single-product .single_add_to_cart_button {
  flex: 1;
  min-width: 0;
  height: 56px;
  cursor: pointer;
  transition: box-shadow 0.18s ease, transform 0.12s ease;
  box-shadow: 0 1px 2px rgba(2, 100, 226, 0.08);
}

.single-product .single_add_to_cart_button::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  vertical-align: -5px;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='21' r='1.2'/><circle cx='19' cy='21' r='1.2'/><path d='M2.5 3h2.6l2.4 12.1a2 2 0 0 0 2 1.6h9a2 2 0 0 0 2-1.6L22 7H6.5'/></svg>");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='21' r='1.2'/><circle cx='19' cy='21' r='1.2'/><path d='M2.5 3h2.6l2.4 12.1a2 2 0 0 0 2 1.6h9a2 2 0 0 0 2-1.6L22 7H6.5'/></svg>");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  flex-shrink: 0;
}

.single-product .single_add_to_cart_button:hover {
  box-shadow: 0 6px 16px rgba(2, 100, 226, 0.28);
}

.single-product .single_add_to_cart_button:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(2, 100, 226, 0.15);
}

/* 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: #0264E2;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.single-product .product_meta a:hover {
  color: #0153bd;
  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 > .woocommerce-result-count,
.shop-layout > .woocommerce-ordering,
.shop-layout > ul.products,
.shop-layout > .woocommerce-pagination {
  grid-column: 2 !important;
}

/* Result count y ordering en la misma fila */
.shop-layout > .woocommerce-result-count {
  grid-row: 1;
  align-self: center;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  margin: 0;
}

.shop-layout > .woocommerce-ordering {
  grid-row: 1;
  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 desde fila 2 */
.shop-layout > ul.products {
  grid-row: 2;
}

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

.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;
}

/* --- 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: #0264E2;
}

/* 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: #0264E2;
  font-weight: 600;
}

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

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

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

/* --- 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;
  }

  .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: #374151 !important;
    background: #fff !important;
    border: 1px solid #d1d5db !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: #0264E2 !important;
    color: #0264E2 !important;
    background: #fff !important;
    outline: none !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 > .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;
  }
}
