/*
 Theme Name:   Matbombas
 Theme URI:    https://matbombas.com
 Description:  Tema personalizado Matbombas basado en Hello Elementor
 Author:       Matbombas
 Author URI:   https://matbombas.com
 Template:     hello-elementor
 Version:      1.0.0
 Text Domain:  matbombas
 License:      GNU General Public License v3 or later
 License URI:  https://www.gnu.org/licenses/gpl-3.0.html
*/

/* ==========================================================================
   Añade tus estilos personalizados debajo de esta línea
   ========================================================================== */

body {
  overflow-x: hidden;
}

.no-underline a,
button {
  text-decoration: none !important;
}

header .aws-container .aws-search-form {
}

header .aws-search-btn.aws-form-btn,
header .aws-container .aws-search-field {
  border-color: #002d5a !important;
}

header .aws-container .aws-search-form .aws-search-btn_icon {
  color: #002d5a;
}

.header__archive {
  color: white;
}

@media screen and (min-width: 768px) {
  .hero-blue,
  .hero-cajas {
    position: relative;
    overflow: hidden;
  }

  .hero-cajas::after {
    content: "";
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 1;
  }

  .hero-blue::after {
    content: "";
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: #9bcdff;
    z-index: 1;
  }
}

/* Producto */
.stock-status.in-stock {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  line-height: 1.56;
  color: #008236;
  white-space: nowrap;
}

.stock-status.in-stock::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 auto;

  background-image: url("/wp-content/themes/matbombas/assets/icons/check.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.stock-status.out-of-stock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c62828;
}

.stock-container {
  flex: 0 0 auto !important;
  width: auto !important;
}

/* Producto Precio */

/* Contenedor principal del precio: Usamos Flexbox para reordenar */
.single-product .elementor-widget-container .price {
  display: flex;
  flex-wrap: wrap;
  /* Permite que los elementos bajen a la siguiente línea */
  align-items: baseline;
  /* Alinea el precio grande con el texto pequeño */
  column-gap: 10px;
  /* Espacio entre el precio y el texto /unitat */
  margin: 0;
  line-height: 1;
}

/* 1. PRECIO ACTUAL (El grande naranja) */
.single-product .price ins {
  order: 1;
  /* Lo forzamos a aparecer primero */
  text-decoration: none;
  /* Quitamos el subrayado por defecto */
  background: transparent;
}

.single-product .price ins .amount,
.single-product .price > .woocommerce-Price-amount.amount {
  font-family: "Manrope", sans-serif;
  font-size: 3rem;
  /* Tamaño solicitado */
  font-weight: 600;
  color: var(--orange, #ffa500);
  /* Usa tu variable o un fallback */
  line-height: 1;
}

/* Texto "/unitat +IVA" usando pseudo-elemento */
.single-product .price ins::after {
  content: "/unitat +IVA";
  font-family: "Manrope", sans-serif;
  font-size: 1.5rem;
  /* Tamaño unitat solicitado */
  font-weight: 300;
  color: var(--primary, #003366);
  /* Usa tu variable */
  margin-left: 8px;
}

/* Texto "/unitat +IVA" para precio sin descuento */
.single-product .price > .woocommerce-Price-amount.amount::after {
  content: "/unitat +IVA";
  font-family: "Manrope", sans-serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--primary, #003366);
  margin-left: 8px;
}

/* Responsive: Precio naranja en mobile */
@media screen and (max-width: 767px) {
  .single-product .price ins .amount,
  .single-product .price > .woocommerce-Price-amount.amount {
    font-size: 2.188rem;
    line-height: 1.2;
  }
}

/* 2. PRECIO ANTERIOR (El pequeño PVP tachado) */
.single-product .price del {
  order: 2;
  /* Lo forzamos a aparecer segundo (abajo) */
  width: 100%;
  /* Forzamos que ocupe toda la línea para que baje */
  display: block;
  margin-top: 5px;
  /* Separación vertical */
  opacity: 0.6;
  /* Opacidad solicitada */
  font-size: 1rem;
}

.single-product .price del .amount {
  font-family: "Manrope", sans-serif;
  font-weight: 300;
  color: var(--primary, #003366);
}

/* Añadir el texto "PVP:" antes del precio tachado */
.single-product .price del::before {
  content: "PVP: ";
  font-family: "Manrope", sans-serif;
  font-weight: 300;
  color: var(--primary, #003366);
  text-decoration: none;
  /* Intentamos que el texto PVP no salga tachado */
  display: inline-block;
}

/* Ocultar los textos de lector de pantalla para limpieza visual si molestan */
.screen-reader-text {
  display: none;
}

/* 1. Alineación general con el botón de compra */
.elementor-add-to-cart form.cart {
  display: flex !important;
  gap: 0px;
  align-items: center;
  flex-wrap: nowrap;
}

/* 2. La Píldora (Contenedor) */
.elementor-add-to-cart form.cart .quantity:hover,
.elementor-add-to-cart form.cart .quantity {
  display: inline-flex;
  /* Mantiene todo en una línea */
  align-items: center;
  justify-content: space-between;
  width: 200px;

  /* Borde azul y fondo blanco */
  border-top: 1px solid var(--primary, #003366);
  border-bottom: 1px solid var(--primary, #003366);
  background-color: #ffffff;
  border-radius: 50px;

  /* Dimensiones */
  height: 46px;
  /* Ajusta según la altura de tu botón de añadir */
  min-width: 130px;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  /* Asegura que nada se salga de los bordes redondos */
}

/* 3. INPUT NÚMERO (Centro) */
.elementor-add-to-cart form.cart .quantity .qty {
  /* Sin 'order', se queda en el medio naturalmente */
  width: 40px !important;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;

  /* Texto */
  text-align: center;
  font-family: "Manrope", sans-serif;
  color: var(--primary, #003366);
  font-size: 1.2rem;
  font-weight: 400;

  /* Quitar flechas nativas */
  appearance: textfield;
  -moz-appearance: textfield;
}

.elementor-add-to-cart form.cart .quantity .qty::-webkit-outer-spin-button,
.elementor-add-to-cart form.cart .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.elementor-widget-woocommerce-product-price .price ins {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

/* 4. BOTONES + y - (Estilo limpio) */
.elementor-add-to-cart form.cart .quantity .plus,
.elementor-add-to-cart form.cart .quantity .minus {
  /* IMPORTANTE: Fondo transparente y texto azul */
  background: white !important;
  color: var(--primary, #003366) !important;
  border: 1px solid var(--primary, #003366);

  font-family: "Manrope", sans-serif;
  font-size: 1.8rem;
  /* Un poco más grandes los símbolos */
  font-weight: 300;
  line-height: 1;

  cursor: pointer;
  width: 45px;
  /* Zona de clic amplia */
  height: 100%;
  margin: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  /* Pequeño ajuste visual vertical si hace falta */
  transition: background-color 0.2s;
}

.elementor-add-to-cart form.cart .quantity .minus {
  padding: 0 0 4px 0;
  /* Pequeño ajuste visual vertical si hace falta */
}

/* Efecto hover suave (gris muy claro) */
.elementor-add-to-cart form.cart .quantity .plus:hover,
.elementor-add-to-cart form.cart .quantity .minus:hover {
  background-color: #f5f5f5 !important;
}

/* Asegurar altura del botón 'Añadir al carrito' */
.elementor-add-to-cart form.cart .single_add_to_cart_button {
  height: 46px !important;
}

.elementor-add-to-cart form.cart .single_add_to_cart_button {
  font-family: "Manrope", sans-serif !important;
  font-size: 1.125rem !important;
  font-weight: normal !important;
  line-height: 1 !important;
  color: white !important;

  border-radius: 50px;
  background-color: #002d5a !important;
}

.elementor-add-to-cart form.cart .single_add_to_cart_button:hover {
  background-color: #f48e05 !important;
}

/* Descuento */
.woocommerce span.onsale {
  min-height: 25px;
  font-size: 1rem;
  font-weight: 500;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.5;
  border-radius: 25px;
  padding: 0 10px !important;
  background-color: #f48e05;
  color: #002d5a;
  text-transform: uppercase;
}

/* Product card */

.product__card:hover {
  background-color: #9bcdff33;
}

.product__card .product__title a {
  text-decoration: none;
  font-weight: 600;
}

/* Alineación en línea y eliminar decoraciones */
.product__card .price {
  display: flex !important;
  flex-direction: row-reverse !important;
  /* Mueve el precio original a la derecha */
  justify-content: flex-end;
  /* Lo alinea a la derecha de la card */
  align-items: baseline;
  gap: 8px;
  /* Espacio entre los dos precios */
}

/* Estilo para el precio original (tachado) */
.product__card .price del {
  text-decoration: line-through !important;
  /* Quita el tachado por defecto */
  color: #002d5a !important;
  opacity: 0.5 !important;
  font-family: "Manrope", sans-serif !important;
  font-size: 1rem !important;
  font-weight: 300 !important;
  line-height: 1 !important;
}

/* Añadir el prefijo PVP al precio antiguo */
.product__card .price del .woocommerce-Price-amount::before {
  content: "PVP: " !important;
}

/* Estilo para el precio actual (naranja) */
.product__card .price ins {
  text-decoration: none !important;
  /* Quita el subrayado del precio naranja */
  color: #ff8500 !important;
  /* Tu color naranja corporativo */
  font-weight: 700;
}

/* Boton Arrow */

/* Estilo para insertar la flecha en widgets con la clase .boton-arrow */
.boton-arrow .elementor-button-content-wrapper::after {
  content: "";
  display: inline-block;
  width: 22px;
  /* Ancho ajustado para el icono .svg */
  height: 12px;
  background-image: url("/wp-content/themes/matbombas/assets/icons/arrow.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center right;
  margin-left: auto;
  /* Empuja la flecha al extremo derecho */
}

/* Forzar que el contenedor sea flex para separar el texto de la flecha */
.boton-arrow .elementor-button-content-wrapper {
  display: flex !important;
  align-items: center;
  width: 100%;
  gap: 20px;
}

/* Eliminar subrayados en el texto y el enlace */
.boton-arrow .elementor-button,
.boton-arrow .elementor-button-text {
  text-decoration: none !important;
}

/* Ajuste de espaciado interno para que no pegue al borde curvo */
.boton-arrow .elementor-button {
  padding-left: 20px !important;
  padding-right: 20px !important;
}

/* Pagination */
.elementor-pagination .page-numbers {
  text-decoration: none !important;
  padding: 8px 17px;
  min-height: 40px;
  min-width: 40px;
  border-radius: 30px;
}

.elementor-pagination .page-numbers.current {
  color: white;
  background-color: #002d5a;
}

.elementor-pagination .prev {
  padding-left: 0;
}

/* Filtros */

/* @media screen and (min-width: 768px) {
  .cont__filters  {
    position: relative !important;
    overflow: hidden !important;
    min-height: 200px !important;
  }

  .cont__filters::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: red !important;
    z-index: 999 !important;
    pointer-events: none !important;
    display: block !important;
  }

  .cont__filters > * {
    position: relative !important;
    z-index: 1000 !important;
  }

}
 */

/* Registro */
.woocommerce-form-login br,
.woocommerce-form-register br {
  display: none;
}

/* ===== Layout 2 columnas Login/Register ===== */
.u-columns.col2-set {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  border: none;
  padding: 0;
}

.u-columns .u-column1,
.u-columns .u-column2 {
  flex: 1;
  min-width: 300px;
  border: none;
  padding: 0;
}

/* Quitar estilos por defecto de WooCommerce en formularios */
.woocommerce form,
.woocommerce-page form,
.woocommerce .woocommerce-form,
.woocommerce-page .woocommerce-form {
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

@media screen and (max-width: 767px) {
  .u-columns.col2-set {
    flex-direction: column;
    gap: 40px;
  }
}

/* Títulos de sección */
.u-columns h2 {
  font-family: "Manrope", sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--primary, #002d5a);
  margin-bottom: 25px;
}

/* ===== Formulario WooCommerce Login/Register ===== */
.woocommerce-form {
  max-width: 100%;
  margin: 0 auto;
}

/* Filas del formulario */
.woocommerce-form .form-row {
  margin-bottom: 15px;
}

/* Ocultar labels - usamos placeholder */
.woocommerce-form label,
.afreg_extra_fields label,
.woocommerce .form-row label,
#customer_login label {
  display: none !important;
}

/* Campos extra del plugin de registro */
.afreg_extra_fields h3 {
  display: none;
}

/* Layout 2 columnas para formularios - DESHABILITADO TEMPORALMENTE */
/* .woocommerce-form-login,
.woocommerce-form-register {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.afreg_extra_fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
} */

/* ===== Inputs de texto, email y password ===== */
.woocommerce-form .input-text,
.woocommerce-form input[type="text"],
.woocommerce-form input[type="email"],
.woocommerce-form input[type="password"],
.woocommerce-form input[type="tel"],
.woocommerce-form select {
  width: 100%;
  height: 58px;
  padding: 0.5em 1em !important;
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  color: #002d5a;
  background-color: #ffffff;
  border: 1px solid #002d5a !important;
  border-radius: 8px;
  box-sizing: border-box;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}

/* Sobreescribir altura del plugin Advanced Form Registration */
.afreg_extra_fields .input-text,
.afreg_extra_fields input[type="text"],
.afreg_extra_fields input[type="email"],
.afreg_extra_fields input[type="password"],
.afreg_extra_fields .input-select,
.afreg_extra_fields select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
.input-text,
.input-select {
  min-height: 58px !important;
  max-height: none !important;
  height: 58px !important;
}

/* Placeholder */
.woocommerce-form .input-text::placeholder,
.woocommerce-form input::placeholder,
.afreg_extra_fields input::placeholder,
#customer_login input::placeholder {
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  font-weight: normal;
  font-stretch: normal;
  font-style: normal;
  line-height: normal;
  letter-spacing: normal;
  text-align: left;
  color: rgba(0, 0, 0, 0.5);
  opacity: 1;
}

/* Focus state */
.woocommerce-form .input-text:focus,
.woocommerce-form input[type="text"]:focus,
.woocommerce-form input[type="email"]:focus,
.woocommerce-form input[type="password"]:focus,
.woocommerce-form input[type="tel"]:focus,
.woocommerce-form select:focus {
  outline: none;
  border-color: var(--primary, #002d5a);
  box-shadow: 0 0 0 2px rgba(0, 45, 90, 0.15);
}

/* Estado de error - solo cuando WooCommerce detecta error */
.woocommerce-form .woocommerce-invalid input,
.woocommerce-form .form-row.woocommerce-invalid input,
.woocommerce-form .form-row.validate-required.woocommerce-invalid input {
  border-color: #c62828 !important;
}

.woocommerce-form .woocommerce-invalid input::placeholder,
.woocommerce-form .form-row.woocommerce-invalid input::placeholder {
  color: #c62828 !important;
}

/* Mensaje de error */
.woocommerce-form .woocommerce-error,
.woocommerce-form .form-row .error {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 0.813rem;
  color: #c62828;
  margin-top: 8px;
  padding-left: 10px;
}

/* ===== Select dropdown ===== */
.woocommerce-form select,
.afreg_extra_fields select,
#customer_login select,
select.input-select,
#afreg_select_user_role {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-color: #ffffff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23002d5a' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 20px center !important;
  width: 100% !important;
  height: 58px !important;
  padding: 0 45px 0 25px !important;
  font-family: "Manrope", sans-serif !important;
  font-size: 1rem !important;
  color: #002d5a !important;
  border: 1px solid #002d5a !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
  cursor: pointer;
  line-height: 58px !important;
}

/* Select focus */
.woocommerce-form select:focus,
.afreg_extra_fields select:focus,
#customer_login select:focus,
select.input-select:focus,
#afreg_select_user_role:focus {
  outline: none !important;
  border-color: var(--primary, #002d5a) !important;
  box-shadow: 0 0 0 2px rgba(0, 45, 90, 0.15) !important;
}

/* Select options */
.woocommerce-form select option,
.afreg_extra_fields select option,
select.input-select option {
  font-family: "Manrope", sans-serif;
  padding: 10px;
  color: var(--primary, #002d5a);
  background-color: #ffffff;
}

/* ===== Contenedor del campo password con botón mostrar ===== */
.woocommerce-form .password-input {
  position: relative;
  display: block;
}

.woocommerce-form .password-input input {
  padding-right: 55px;
}

.woocommerce-form .show-password-input {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--primary, #002d5a);
  cursor: pointer;
  padding: 5px;
  font-size: 1.1rem;
}

.woocommerce-form .show-password-input:hover {
  color: #f48e05;
}

/* ===== Checkbox Recuérdame ===== */
.woocommerce-form__label-for-checkbox {
  display: flex !important;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.woocommerce-form__input-checkbox {
  width: 20px;
  height: 20px;
  accent-color: var(--primary, #002d5a);
  cursor: pointer;
}

.woocommerce-form__label-for-checkbox span {
  font-family: "Manrope", sans-serif;
  font-size: 0.938rem;
  color: var(--primary, #002d5a);
}

/* ===== Texto de privacidad ===== */
.woocommerce-privacy-policy-text,
.woocommerce-privacy-policy-text p {
  font-family: "Manrope", sans-serif;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--primary, #002d5a);
  margin: 20px 0;
}

.woocommerce-privacy-policy-text a {
  color: var(--primary, #002d5a);
  text-decoration: underline;
  font-weight: 500;
}

.woocommerce-privacy-policy-text a:hover {
  color: #f48e05;
}

/* ===== Botón Submit con flecha (estilo .boton-arrow) ===== */
.elementor-field-type-submit button,
.woocommerce-form button[type="submit"],
.woocommerce-form .woocommerce-button,
.woocommerce-form .woocommerce-Button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: auto;
  min-width: 180px;
  height: 50px;
  padding: 12px 20px;
  margin-top: 15px;
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #002d5a;
  background-color: white;
  border: 1px solid #002d5a;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s;
  text-align: left;
  text-decoration: none !important;
}

/* Flecha en el botón (igual que .boton-arrow) */
.elementor-field-type-submit button::after,
.woocommerce-form button[type="submit"]::after,
.woocommerce-form .woocommerce-button::after,
.woocommerce-form .woocommerce-Button::after {
  content: "";
  display: inline-block;
  width: 22px;
  height: 12px;
  background-image: url("/wp-content/themes/matbombas/assets/icons/arrow.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center right;
  flex-shrink: 0;
}

.elementor-field-type-submit button:hover,
.woocommerce-form button[type="submit"]:hover,
.woocommerce-form .woocommerce-button:hover,
.woocommerce-form .woocommerce-Button:hover {
  background-color: #f48e05;
}

/* ===== Enlace ¿Olvidaste la contraseña? ===== */
.woocommerce-LostPassword {
  margin-top: 15px;
}

.woocommerce-LostPassword a {
  font-family: "Manrope", sans-serif;
  font-size: 0.938rem;
  color: var(--primary, #002d5a);
  text-decoration: none;
  transition: color 0.3s;
}

.woocommerce-LostPassword a:hover {
  color: #f48e05;
  text-decoration: underline;
}

/* ===== Texto informativo del formulario ===== */
.woocommerce-form-register > p:not(.form-row) {
  font-family: "Manrope", sans-serif;
  font-size: 0.875rem;
  color: var(--primary, #002d5a);
  margin: 10px 0;
}

.woocommerce-form-register .afreg_extra_fields {
  columns: 2;
}

@media screen and (max-width: 1024px) {
  .woocommerce-form-register .afreg_extra_fields {
    columns: 1;
  }
}

/* CART & CHECKOUT */
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles))
  #respond
  input#submit,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles))
  a.button,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles))
  button.button,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles))
  input.button,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(
    :not(.edit-post-visual-editor)
  )
  .woocommerce
  #respond
  input#submit,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(
    :not(.edit-post-visual-editor)
  )
  .woocommerce
  a.button,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(
    :not(.edit-post-visual-editor)
  )
  .woocommerce
  button.button,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(
    :not(.edit-post-visual-editor)
  )
  .woocommerce
  input.button {
  font-family: "Manrope", sans-serif !important;
  font-size: 1.125rem !important;
  font-weight: normal !important;
  line-height: 1 !important;

  border-radius: 50px;
  border: 1px solid #002d5a !important;
  background-color: transparent !important;
  color: #002d5a !important;
  transition: all 0.3s;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles))
  #respond
  input#submit:hover,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles))
  a.button:hover,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles))
  button.button:hover,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles))
  input.button:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(
    :not(.edit-post-visual-editor)
  )
  .woocommerce
  #respond
  input#submit:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(
    :not(.edit-post-visual-editor)
  )
  .woocommerce
  a.button:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(
    :not(.edit-post-visual-editor)
  )
  .woocommerce
  button.button:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(
    :not(.edit-post-visual-editor)
  )
  .woocommerce
  input.button:hover {
  background-color: #f48e05 !important;
}

:where(body:not(.woocommerce-block-theme-has-button-styles)):where(
    :not(.edit-post-visual-editor)
  )
  .woocommerce
  button.button:disabled:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(
    :not(.edit-post-visual-editor)
  )
  .woocommerce
  button.button:disabled[disabled]:hover {
  background-color: transparent !important;
}

:where(body:not(.woocommerce-block-theme-has-button-styles)):where(
    :not(.edit-post-visual-editor)
  )
  .woocommerce
  .wc-proceed-to-checkout
  a.button {
  color: white !important;
  background-color: #002d5a !important;
  border: none !important;
}
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(
    :not(.edit-post-visual-editor)
  )
  .woocommerce
  .wc-proceed-to-checkout
  br {
  display: none;
}

:where(body:not(.woocommerce-block-theme-has-button-styles)):where(
    :not(.edit-post-visual-editor)
  )
  .woocommerce
  .wc-proceed-to-checkout
  a.button:hover {
  background-color: #f48e05 !important;
}

.woocommerce table.cart td.actions .input-text,
.woocommerce-page #content table.cart td.actions .input-text,
.woocommerce-page table.cart td.actions .input-text {
  width: auto;
  height: 42px !important;
  min-height: 42px !important;
}

.woocommerce .shop_table .quantity {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 200px;
  border-top: 1px solid var(--primary, #003366);
  border-bottom: 1px solid var(--primary, #003366);
  background-color: #ffffff;
  border-radius: 50px;
  height: 46px;
  min-width: 130px;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.woocommerce .shop_table .quantity .qty::-webkit-outer-spin-button,
.woocommerce .shop_table .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.woocommerce .shop_table .quantity .qty {
  width: 40px !important;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: center;
  font-family: "Manrope", sans-serif;
  color: var(--primary, #003366);
  font-size: 1.2rem;
  font-weight: 400;
  appearance: textfield;
  -moz-appearance: textfield;
}

.woocommerce .shop_table .product-quantity button {
  font-family: "Exo 2", Sans-serif;
  font-size: 20px;
  transition: all 0.2s;
  background: white !important;
  color: var(--primary, #003366) !important;
  border: 1px solid var(--primary, #003366);
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  width: 45px;
  height: 100%;
  margin: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.woocommerce .shop_table .product-quantity button:hover {
  background-color: #f5f5f5 !important;
}

.woocommerce .shop_table .product-quantity button.minus {
  padding-bottom: 4px;
}

table.shop_table td,
table.shop_table th {
  border: none;
}

table.shop_table thead:first-child tr:first-child th {
  border: none;
}

.woocommerce-checkout #payment {
  background-color: transparent;
  border: 1px solid #002d5a33;
}

.woocommerce-checkout #customer_details .col-2 {
  margin-top: 25px;
}

#woocommerce-checkout-form-coupon br {
  display: none;
}

.woocommerce form.checkout .form-row .input-text,
.woocommerce form .form-row select {
  border-color: #69727d;
}

.woocommerce .woocommerce-order .woocommerce-customer-details address {
  border: none;
  padding: 0;
}

/* MINI CART */
.elementor-menu-cart__container
  .elementor-menu-cart__footer-buttons
  .elementor-button--view-cart,
.elementor-menu-cart__container
  .elementor-menu-cart__footer-buttons
  .elementor-button--checkout {
  font-family: "Manrope", sans-serif !important;
  font-size: 1.125rem !important;
  font-weight: normal !important;
  line-height: 1 !important;
  text-decoration: none !important;

  border-radius: 50px;
  border: 1px solid #002d5a !important;
  background-color: transparent !important;
  color: #002d5a !important;
  transition: all 0.3s;
}

.elementor-menu-cart__container
  .elementor-menu-cart__footer-buttons
  .elementor-button--view-cart:hover,
.elementor-menu-cart__container
  .elementor-menu-cart__footer-buttons
  .elementor-button--checkout:hover {
  background-color: #f48e05 !important;
}

.elementor-menu-cart__container .elementor-menu-cart__product-price {
  color: #69727d;
}

.elementor-menu-cart__container .elementor-menu-cart__product-remove {
  border-color: #002d5a;
  color: #002d5a;
}

.elementor-menu-cart__container .elementor-menu-cart__product-remove:before,
.elementor-menu-cart__container .elementor-menu-cart__product-remove:after {
  background-color: #002d5a;
}

.elementor-menu-cart__toggle_button {
  overflow: visible !important;
}

.elementor-menu-cart__toggle_button .elementor-button-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.elementor-menu-cart__toggle_button .elementor-button-icon-qty {
  position: absolute;
  top: -10px;
  right: -20px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background-color: #002d5a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  z-index: 2;
  text-decoration: none;
}

@media screen and (min-width: 768px) {
  .elementor-menu-cart__container .elementor-menu-cart__main {
    width: 430px;
  }
}

.facetwp-counter {
  display: none !important;
}

/* Producto logo OMP */
/* --- ESTILOS BASE (Mobile First - Menos de 600px) --- */
.cont__product--gallery {
  position: relative;
}

.cont__product--gallery .cont__omp {
  position: absolute;
  left: 0;
  width: 80px; /* Tamaño reducido para móvil */
  height: auto;
  z-index: 10;
}

/* Una sola imagen en móvil */
.single-image-only .cont__product--gallery .cont__omp {
  top: 60%;
}

/* Más de una imagen en móvil (Galería) */
.has-custom-gallery .cont__product--gallery .cont__omp {
  top: 40%;
}

/* --- TABLET / DESKTOP SMALL (601px en adelante) --- */
@media screen and (min-width: 601px) {
  .cont__product--gallery .cont__omp {
    width: 120px;
  }

  .single-image-only .cont__product--gallery .cont__omp {
    top: 70%;
  }

  .has-custom-gallery .cont__product--gallery .cont__omp {
    top: 50%;
  }
}

/* --- DESKTOP LARGE (1280px en adelante) --- */
@media screen and (min-width: 1280px) {
  .cont__product--gallery .cont__omp {
    width: 80px;
  }
  .single-image-only .cont__product--gallery .cont__omp {
    top: 60%;
  }

  /* Más de una imagen en móvil (Galería) */
  .has-custom-gallery .cont__product--gallery .cont__omp {
    top: 40%;
  }
}

@media screen and (min-width: 1400px) {
  .cont__product--gallery .cont__omp {
    width: 100px;
  }
  .single-image-only .cont__product--gallery .cont__omp {
    top: 70%;
  }

  /* Más de una imagen en móvil (Galería) */
  .has-custom-gallery .cont__product--gallery .cont__omp {
    top: 45%;
  }
}

@media screen and (min-width: 1400px) {
  .cont__product--gallery .cont__omp {
    width: 120px;
  }
  .single-image-only .cont__product--gallery .cont__omp {
    top: 70%;
  }

  /* Más de una imagen en móvil (Galería) */
  .has-custom-gallery .cont__product--gallery .cont__omp {
    top: 50%;
  }
}


/* 1. Ocultar el select nativo para que solo se vea el de FacetWP */
.facetwp-facet-marcas select.fs-hidden {
    display: none !important;
}

/* 2. Contenedor principal: Ocupar el 100% del ancho */
.facetwp-facet-marcas,
.facetwp-facet-marcas .fs-wrap {
    width: 100% !important;
    position: relative;
    box-sizing: border-box;
}

/* 3. La caja principal del selector ("Any") */
.facetwp-facet-marcas .fs-wrap .fs-label-wrap {
    width: 100%;
    border: 1px solid #1f2124; /* Color de borde solicitado */
    padding: 10px 15px;
    background-color: #ffffff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

/* Texto dentro del selector */
.facetwp-facet-marcas .fs-wrap .fs-label {
    color: #004b87; /* Azul similar al de tu imagen */
    font-size: 15px;
}

/* Flecha del selector */
.facetwp-facet-marcas .fs-wrap .fs-arrow {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #333; /* Triángulo hacia abajo */
}

/* 4. Caja del desplegable (Dropdown) */
.facetwp-facet-marcas .fs-wrap .fs-dropdown {
    width: 100%;
    border: 1px solid #1f2124; /* Color de borde solicitado */
    border-top: none; /* Para que se una con la caja superior sin doble línea */
    background-color: #fbfbfb;
    box-sizing: border-box;
    position: absolute;
    z-index: 999; /* Para que flote sobre otros elementos */
    left: 0;
}

/* 5. Buscador interno ("Buscar") */
.facetwp-facet-marcas .fs-search {
    padding: 0 15px;
    background: #f7f7f7;
    border-bottom: 1px solid #e1e1e1;
}

.facetwp-facet-marcas .fs-search input {
    width: 100%;
    padding: 8px 10px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #666;
    box-sizing: border-box;
    outline: none;
}

/* 6. Lista de opciones y barra de scroll */
.facetwp-facet-marcas .fs-options {
    max-height: 250px;
    overflow-y: auto;
    padding: 10px 15px;
    background: #ffffff;
}

/* Personalizar barra de scroll (opcional para que se vea como en la imagen) */
.facetwp-facet-marcas .fs-options::-webkit-scrollbar {
    width: 8px;
}
.facetwp-facet-marcas .fs-options::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
.facetwp-facet-marcas .fs-options::-webkit-scrollbar-thumb {
    background: #888; 
    border-radius: 4px;
}

/* 7. Opciones individuales (Checkbox + Texto) */
.facetwp-facet-marcas .fs-option {
    display: flex;
    align-items: center;
    padding: 6px 0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.facetwp-facet-marcas .fs-option:hover {
    background-color: #f5f5f5;
}

/* Checkbox cuadrado */
.facetwp-facet-marcas .fs-checkbox {
    width: 14px;
    height: 14px;
    border: 1px solid #b3b3b3;
    border-radius: 2px;
    margin-right: 10px;
    display: inline-block;
    position: relative;
    flex-shrink: 0; /* Evita que el checkbox se deforme */
}

/* Ocultar el 'i' de facetwp por defecto y mostrar si está marcado (si tiene la funcionalidad) */
.facetwp-facet-marcas .fs-option.selected .fs-checkbox {
    background-color: #004b87;
    border-color: #004b87;
}

/* Texto de la marca */
.facetwp-facet-marcas .fs-option-label {
    color: #004b87; /* Azul similar al de tu imagen */
    font-size: 14px;
}

/* 7. Opciones individuales y corrección del Checkbox */
.facetwp-facet-marcas .fs-option {
    display: flex;
    align-items: center;
    padding: 6px 10px; /* Añadido un poco de padding lateral para que respire */
    cursor: pointer;
    transition: background 0.2s ease;
}

.facetwp-facet-marcas .fs-option:hover {
    background-color: #f5f5f5;
}

/* Reseteamos el span contenedor para que no dibuje una segunda caja */
.facetwp-facet-marcas .fs-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    border: none !important; /* Forzamos quitar el borde del span */
    background: transparent !important;
    width: auto !important;
    height: auto !important;
}

/* Le damos el estilo de cuadradito únicamente a la etiqueta <i> interna */
.facetwp-facet-marcas .fs-checkbox i {
    width: 14px;
    height: 14px;
    border: 1px solid #b3b3b3;
    border-radius: 2px;
    display: inline-block;
    box-sizing: border-box;
    background-color: #fff;
}

/* Estilo cuando está seleccionado (FacetWP usa la clase .selected) */
.facetwp-facet-marcas .fs-option.selected .fs-checkbox i {
    background-color: #004b87;
    border-color: #004b87;
    /* Si FacetWP inyecta un SVG o check nativo, esto hará de fondo azul */
}

/* Texto de la marca */
.facetwp-facet-marcas .fs-option-label {
    color: #004b87; 
    font-size: 14px;
}


/* Separar la flecha del borde derecho */
.facetwp-facet-marcas .fs-wrap .fs-arrow {
    margin-right: 15px !important; /* Aumenta o disminuye este valor a tu gusto */
}

/* Corrección para que el buscador vuelva a funcionar */
.facetwp-facet-marcas .fs-wrap .fs-option.fs-hidden,
.facetwp-facet-marcas .fs-wrap .fs-option.hidden {
    display: none !important;
}