/**
Theme Name: Astra Child
Author: Alejandro Andreu (Angal)
Author URI: https://www.angal.es

Description: Tema Hijo para inretail  \_(º-º)_/
                                          |
                                        /  \
              
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

/* Quitar WP ARMOR DEV */
.wpa-test-msg {
  display: none;
}

/* FICHA PRODUCTO */
div#cat_principal_prod_cst a {
  font-size: 11px;
  text-transform: uppercase;
  color: black;
  font-weight: 600;
  letter-spacing: 1px;
  border: 1px solid black;
  padding: 4px;
}

.single-product table.variations {
  border: none !important;
}

.single-product .woocommerce-variation.single_variation {
  display: none !important;
}

span.bt-dynamic-price .woocommerce-Price-amount {
  color: #000000;
  font-family: "Roboto", Sans-serif;
  font-size: 30px;
  font-weight: 700;
}

.ficha-prod-anchors > p {
  margin: 0 !important;
}

.single-product span.variable-item-span.variable-item-span-button {
  font-size: 15px;
}

ul.variable-items-wrapper.button-variable-items-wrapper.wvs-style-squared > li {
  height: auto !important;
}

.reset_variations {
  display: none !important;
}

.single-product .woocommerce-variation-add-to-cart button,
.single-product .woocommerce-variation-add-to-cart .quantity {
  margin-bottom: 0 !important;
}

.anadir-carrito-cst .single_add_to_cart_button.button {
  padding: 10px 20px !important;
  border-radius: 0;
  margin-left: 10px !important;
  width: calc(100% - 131px) !important;
}

button.plus.qib-button,
button.minus.qib-button {
  margin: 0 !important;
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  color: #000000 !important;
  min-width: 30px !important;
  height: 30px !important;
  border-radius: 50%;
  font-size: 23px !important;
  font-weight: 400;
}

.mi-loop-cst a {
  font-weight: 400 !important;
}

button.plus.qib-button:hover,
button.minus.qib-button:hover {
  cursor: pointer !important;
}

.woocommerce div.product form.cart div.quantity .qty {
  max-width: 55px;
  min-width: 55px;
  width: 100%;
  border: none !important;
}

.qib-button-wrapper.qib-button-wrapper {
  border: 1px solid #d3d3d3;
  padding: 0px 2px;
  margin: 0 !important;
  min-width: fit-content;
}

.tabs-ficha-producto-cst .tabs > li {
  margin: 0 !important;
}

.tabs-ficha-producto-cst .tabs > li:not(:first-child) {
  margin-left: -3px !important;
}

.woocommerce-js div.product .woocommerce-tabs ul.tabs li.active::before {
  top: auto !important;
  bottom: 0 !important;
}

div.woocommerce-Tabs-panel {
  background: #f3f3f3;
  margin: 0 auto !important;
  box-shadow: none !important;
}

div.woocommerce-Tabs-panel > div {
  max-width: 1400px !important;
  margin: 0 auto;
}

.ast-container,
.ast-container-fluid {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.woocommerce-js div.product .woocommerce-tabs ul.tabs {
  margin: 0;
  max-width: 1400px !important;
  margin: 0 auto;
}

/* TEXTO DE DISPONIBILIDA */
.estado-envio-box {
  background: #f4ede550;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.4;
  margin: 10px 0;
  width: 100%;
  max-width: 100%;
}

.variations .woo-variation-items-wrapper ul li {
  border-radius: 0 !important;
}

.woo-variation-swatches
  .variable-items-wrapper
  .variable-item:not(.radio-variable-item).selected {
  box-shadow: var(--wvs-selected-item-box-shadow, 0 0 0 2px #978879);
}

.estado-envio-row {
  display: flex;
  align-items: center;
}

.estado-envio-header {
  justify-content: flex-start;
  margin-bottom: 6px;
  font-weight: 600;
}

.estado-envio-icon {
  margin-right: 8px;
  display: inline-flex;
}

.estado-envio-icon svg {
  width: 20px;
  height: 20px;
}

/* cuerpo */
.estado-envio-body {
  gap: 8px;
}

.estado-envio-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

/* Disponible = verde */
.estado-envio-box.disponible .estado-envio-dot {
  background: #2ecc71;
}
.estado-envio-box.disponible .estado-envio-texto {
  color: #1e7e34;
}

/* No disponible = rojo */
.estado-envio-box.no-disponible .estado-envio-dot {
  background: #e74c3c;
}
.estado-envio-box.no-disponible .estado-envio-texto {
  color: #c0392b;
}

/* TODO PROBLEMA */

/* Forzar relación de aspecto 16:9 SOLO en la primera imagen 
.galeria-contenedor-cst .elementor-gallery__container .e-gallery-item:first-child .e-gallery-image {
    --aspect-ratio: 56.25% !important; / 16:9 = 9/16 = 56.25% 
}



/* Primera imagen ocupa toda la fila 
.galeria-contenedor-cst .elementor-gallery__container .e-gallery-item:first-child {
    --column: 0 !important; /* empieza en la primera columna 
    --columns: 3 !important; /* en escritorio la galería tiene 3 columnas 
    grid-column: span 3 !important; /* ocupar las 3 
}



/* Adaptación tablet: 2 columnas 
@media (max-width: 1024px) {
    .galeria-contenedor-cst .elementor-gallery__container .e-gallery-item:first-child {
        grid-column: span 2 !important;
    }
}

/* TODO FIN PROBLEMA*/

/* NUEVOS TABS */
.single-product .e-n-tabs-heading {
  max-width: 1380px !important;
  margin: 0 auto;
  width: 100%;
}

@media screen and (max-width: 768px) {
  .swiper-slide-image {
    height: 300px !important;
    object-fit: cover;
  }
  .single-product .e-n-tabs-heading button.e-n-tab-title {
    padding: 15px !important;
  }
}

.single_add_to_cart_button span.bt-dynamic-price .woocommerce-Price-amount {
  color: white;
  font-family: "Roboto", Sans-serif;
  font-size: 14px;
  font-weight: 500;
}

span.icono-cesta {
  fill: white;
  vertical-align: bottom;
}

.variations th.label label[for="opciones-de-entrega"] {
  display: inline-flex;
  align-items: center;
}

/* Botón del icono (ahora también para <a>) */
.delivery-info-icon {
  width: 18px;
  height: 18px;
  padding: 0;
  box-shadow: none;
  margin-left: 0 !important;
  display: inline-flex;
  background: transparent !important;
}

/* Tamaño del svg */
.delivery-info-icon svg {
  width: 100%;
  height: 100%;
  fill: #b3b3b3;
}

/* Asegurar que el enlace no tenga estilos raros */
a.delivery-info-icon {
  text-decoration: none;
  display: inline-flex;
  vertical-align: sub;
}

button.single_add_to_cart_button.button.alt.dsfps-free-sample-btn {
  width: 100% !important;
  margin: 0 !important;
  text-align: left;
  padding: 15px 0 !important;
}

.woocommerce-variation-add-to-cart.variations_button {
  flex-wrap: wrap !important;
}

table.premium-table {
  font-size: 15px;
}

div#header-cst.elementor-sticky--active {
  z-index: var(--z-index, 100) !important;
}

.woocommerce-js a.remove:before {
  top: 1px !important;
  left: 0.5px !important;
  border: 1px solid red !important;
  background: red;
}

.woocommerce-js a.remove svg {
  fill: white !important;
}

.woocommerce-cart .qib-button-wrapper .quantity input.input-text.qty.text {
  height: 100% !important;
  max-height: fit-content;
  border: none;
}

.woocommerce-cart td[class="product-name"] a {
  color: black !important;
}

.woocommerce-cart .button.button.e-apply-coupon {
  border: 1px solid black !important;
}

table.premium-table .premium-table-text {
  padding: 8px;
}

.premium-table-body .premium-table-row td:nth-child(2) .premium-table-text {
  color: #636363 !important;
}

thead.premium-table-head .premium-table-row .premium-table-text {
  font-weight: 600 !important;
  font-size: 15px;
  text-transform: uppercase;
}

/* CATEGORIAS */

.titulo-producto-archive {
  min-height: 55px !important;
}

div#cat_principal_archive a {
  font-size: 11px;
  text-transform: uppercase;
  color: black;
  font-weight: 600;
  letter-spacing: 1px;
}

.texto-descripcion-extensa-cst {
  color: white;
}

span.icon.xs.undefined > svg {
  height: 15px;
  width: 15px;
}

/* === CONTENEDOR GLOBAL DEL ITEM === */
.e-loop-item {
  position: relative;
}

/* === IMAGEN PRINCIPAL DEL PRODUCTO === 
   Forzamos posición relativa para overlay */
.e-loop-item .elementor-widget-image a {
  display: block;
  position: relative;
  overflow: hidden;
}

/* Imagen interna */
.e-loop-item .elementor-widget-image img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.25s ease;
  object-fit: cover;
}

/* === OVERLAY OSCURO === */
.e-loop-item .elementor-widget-image a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

/* === TEXTO (categoría) === */
#cat_principal_archive a {
  color: #111;
  transition: color 0.25s ease;
  font-weight: 500;
}

/* (Opcional) Título del producto */
.titulo-producto-archive a {
  transition: color 0.25s ease;
}

/* === HOVER: aplica zoom + overlay + color al texto === */
.e-loop-item:hover .elementor-widget-image img {
  transform: scale(1.04);
}

.e-loop-item:hover .elementor-widget-image a::after {
  opacity: 1;
}

div#user-menu {
  height: 100% !important;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  top: 4px;
}

div#carrito-menu {
  width: fit-content !important;
}

div#carrito-menu a {
  padding: 8px;
}

#archive-precio-cst span {
  font-size: 16px !important;
  color: #1f1f1f;
}

/* Estilo base del “badge” */
#entrega-rapida-archive .badge-entrega {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  border-width: 1px;
  border-style: solid;
  padding: 1px 5px 0 5px;
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

/* CON STOCK: verde, como ahora */
#entrega-rapida-archive .badge-entrega--en-stock {
  color: green;
  border-color: green;
}

/* SIN STOCK: por ejemplo, naranja/ámbar */
#entrega-rapida-archive .badge-entrega--sin-stock {
  color: #a29587; /* cambia a lo que quieras */
  border-color: #a29587;
}

/* Para que el icono no sea gigante */
#entrega-rapida-archive .badge-entrega .icon svg {
  width: 14px;
  height: 14px;
}

.titulo-prod-ficha-cst > h1 {
  margin: 0 !important;
}

.producto-subtitulo-contenedor-cst {
  margin-bottom: 10px !important;
}

span.producto-subtitulo {
  font-size: 18px;
}

.sub-titulo-archive span {
  font-size: 16px;
}

/* ---------------------------------------------------
   BLOQUE DE TEXTO + ICONO (OVERLAY)
--------------------------------------------------- */
.box-card__content__inner__cst {
  background: linear-gradient(0deg, #111c, #1110);
  padding: 2.5rem 1.25rem 1rem;
  display: flex; /* Texto + iconos en fila */
}

.box-card__content__inner__cst p {
  margin: 0 !important;
}

/* Contenedor de los dos iconos con transición */
.cont-iconos-transicion {
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
  overflow: hidden; /* oculta lo que sale del marco */
}

/* Cada widget de icono ocupa la misma posición */
.cont-iconos-transicion .elementor-widget-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 1.5rem;
  height: 1.5rem;
}

/* Estado inicial */
.icono-inicio {
  transform: translateX(0);
}

.icono-fin {
  transform: translateX(1.5rem); /* oculto a la derecha */
}

/* Suavizado */
.cont-iconos-transicion .elementor-widget-icon,
.cont-iconos-transicion .elementor-icon svg {
  transition-property: transform, fill;
  transition-duration: 0.4s;
  transition-timing-function: ease;
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .cont-iconos-transicion .elementor-widget-icon,
  .cont-iconos-transicion .elementor-icon svg {
    transition: none;
  }
}

/* ---------------------------------------------------
   NUEVO → FLECHAS MUEVEN AL HACER HOVER SOBRE EL PADRE
   .caja-img-con-texto-cst
--------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  /* icono-inicio sale hacia la izquierda */
  .caja-img-con-texto-cst:hover .icono-inicio {
    transform: translateX(-1.5rem);
  }

  /* icono-fin entra desde la derecha */
  .caja-img-con-texto-cst:hover .icono-fin {
    transform: translateX(0);
  }
}

/* ---------------------------------------------------
   ZOOM DE LA IMAGEN AL HACER HOVER EN EL PADRE
--------------------------------------------------- */
.caja-img-con-texto-cst {
  position: relative;
  overflow: hidden; /* evita que el zoom se salga */
}

.caja-img-con-texto-cst::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0); /* estado inicial transparent */
  transition: background 0.25s ease;
  z-index: 1; /* capa encima de la imagen pero debajo del texto */
}

/* Al hacer hover, oscurecer */
.caja-img-con-texto-cst:hover::before {
  background: rgba(0, 0, 0, 0.25); /* oscurecido suave */
}

/* Estilo ligero tipo font-weight:300 para tus SVG */
.cont-iconos-transicion .elementor-icon svg,
.box-card__content__inner__cst .elementor-icon svg {
  fill: currentColor;
  fill-opacity: 0.7; /* suaviza visualmente → como un peso 300 */
  filter: brightness(1.15); /* aclara un poco para efecto light */
  transform: scaleY(0.92); /* los hace visualmente más “finos” */
  transition: all 0.3s ease;
}

/* En hover pueden verse ligeramente más fuertes si quieres */
.caja-img-con-texto-cst:hover .elementor-icon svg {
  fill-opacity: 0.9;
  filter: brightness(1);
}

.cst-tag-home {
  padding: 0px 10px;
  border: 1px solid #dbba7d;
  color: #dbba7d;
}

.caja-img-con-texto-cst
  .swiper-horizontal.swiper-pointer-events
  .elementor-swiper-button,
.carrusel-cst .elementor-swiper-button {
  visibility: hidden;
  background: #ffffff80;
  border-radius: 50%;
  padding: 5px;
  transform: scale(0.8) !important;
}

.caja-img-con-texto-cst:hover
  .swiper-horizontal.swiper-pointer-events
  .elementor-swiper-button,
.carrusel-cst:hover .elementor-swiper-button {
  visibility: visible;
}

.carrusel-cst .elementor-swiper-button > svg,
.cont-iconos-transicion svg {
  transform: scale(0.8) !important;
}

/* Contenedor del par de iconos: grid para superponerlos */
.svg-animado-cont-cst {
  display: inline-grid;
  position: relative;
  align-items: center; /* mantiene alineación vertical */
  justify-content: start; /* alineado a la izquierda */
}

/* Ambos iconos se apilan en la misma celda del grid */
.svg-animado-cont-cst .elementor-widget-icon {
  grid-row: 1;
  grid-column: 1;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

/* Estado inicial:
   - primer icono visible
   - segundo oculto y desplazado a la derecha */
.svg-animado-cont-cst .elementor-widget-icon:first-of-type {
  opacity: 1;
  transform: translateX(0);
}

.svg-animado-cont-cst .elementor-widget-icon:last-of-type {
  opacity: 0;
  transform: translateX(40%);
}

/* Accesibilidad: sin animaciones si el usuario lo pide */
@media (prefers-reduced-motion: reduce) {
  .svg-animado-cont-cst .elementor-widget-icon {
    transition: none;
  }
}

/* Al hacer hover sobre cualquier slide del carrusel */
@media (prefers-reduced-motion: no-preference) {
  .e-n-carousel
    .swiper-slide:hover
    .svg-animado-cont-cst
    .elementor-widget-icon:first-of-type {
    opacity: 0;
    transform: translateX(-40%);
  }

  .e-n-carousel
    .swiper-slide:hover
    .svg-animado-cont-cst
    .elementor-widget-icon:last-of-type {
    opacity: 1;
    transform: translateX(0);
  }
}

td[data-title="Subtotal"]:before,
tr.cart-subtotal th {
  color: black !important;
}

tr.woocommerce-shipping-totals.shipping th,
tr.woocommerce-shipping-totals.shipping td::before,
tr.order-total th,
tr.order-total td::before,
span.woocommerce-Price-amount.amount > bdi {
  color: black !important;
}

p.woocommerce-notice.woocommerce-notice--success.woocommerce-thankyou-order-received {
  font-size: 26px;
  text-align: center;
  margin-bottom: 26px;
  color: #9d8f80;
  font-weight: 500;
  text-transform: uppercase;
}

.woocommerce-page.woocommerce-checkout .woocommerce-order ul.order_details {
  margin-top: 1em;
}

ul.woocommerce-order-overview.woocommerce-thankyou-order-details.order_details {
  padding: 0;
  margin: 20px 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 15px;
  color: #000;
}

.woocommerce-order > p:not(.woocommerce-notice) {
  font-size: 16px;
  color: #000;
}

section.woocommerce-bacs-bank-details {
  display: flex;
  flex-direction: column;
  padding: 10px 0;
}

.elementor-widget-woocommerce-checkout-page .woocommerce .shop_table {
  font-size: 16px !important;
  margin-bottom: 0 !important;
  max-width: max-content;
  border: 1px solid red !important;
  border-radius: 15px;
  padding: 10px;
  border-collapse: separate;
  border-spacing: 30px 5px;
  color: black;
}

.elementor-widget-woocommerce-checkout-page
  .woocommerce
  .shop_table
  .woocommerce-Price-amount.amount {
  color: #000;
  font-weight: 600;
}

td.woocommerce-table__product-name.product-name {
  font-weight: 600;
}

.elementor-widget-woocommerce-checkout-page
  .woocommerce
  .shop_table
  tfoot
  tr
  th,
.elementor-widget-woocommerce-checkout-page
  .woocommerce
  .shop_table
  tfoot
  tr
  td {
  color: #000;
}

section.woocommerce-customer-details > section {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

p.texto-destacado-rojo {
  text-decoration: underline;
  text-decoration-color: red;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.titulo-cst-home span {
  font-size: 18px;
}

/* Slider especial home */
.contenedor-sliders-destacados-cst .elementor-swiper-button {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease,
    visibility 0s linear 0.35s;
}

.contenedor-sliders-destacados-cst:hover .elementor-swiper-button {
  opacity: 0.8;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0s;
}

.contenedor-sliders-destacados-cst .elementor-swiper-button-prev {
  transform: translateX(-10px) !important;
}

.contenedor-sliders-destacados-cst .elementor-swiper-button-next {
  transform: translateX(10px) !important;
}

.contenedor-sliders-destacados-cst:hover .elementor-swiper-button-prev,
.contenedor-sliders-destacados-cst:hover .elementor-swiper-button-next {
  transform: translateX(0) !important;
}

.subtexto-cst p {
  margin: 0;
}
