body {
  background-color: #fcfcfc !important;
}

body.home {
  background-color: #fff !important;
}

@media (max-width: 1024px) {
  .header-1 .site-branding img {
    width: 186px !important;
  }
}

@media (min-width: 1024px) {
  .header-1 .site-branding img {
    width: 226px !important;
  }
}

header.entry-header .entry-title {
  margin-top: 1em !important;
  margin-bottom: 1em !important;
  font-family: "Inter", sans-serif !important;
}

.ns-button .elementor-button {
  border-radius: 999px !important;
  background: #35c2e7 !important;
  color: #ffffff !important;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  will-change: transform !important;
  padding: 14px 32px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  font-family: "Inter" sans-serif !important;
}

.ns-button .elementor-button:hover {
  transform: scale(1.03) !important;
}

.ns-box {
  background-color: #ffffff;
  border-radius: 24px;
  border: 0 !important;
  overflow: hidden;

  /* sombra moderna suave */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);

  transition: box-shadow 0.35s ease;
}

.ns-box:hover {
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12), 0 6px 14px rgba(0, 0, 0, 0.06);
}

@media (max-width: 767px) {
  .ns-box {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07), 0 1px 6px rgba(0, 0, 0, 0.04);
  }

  .ns-box:hover {
    transform: none;
  }
}

/* -------------------------- LOOP DE PRODUCTOS --------------------------------*/
/* Contenedor de cada producto en el loop */
.woocommerce ul.products li.product {
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin: 0;
  flex: 0 0 calc(25% - 1rem);
  box-sizing: border-box;
  font-family: "Inter", sans-serif !important;
}

/* Hover: levanta y resalta suavemente */
.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Imagen del producto */
.woocommerce ul.products li.product img {
  border-radius: 16px 16px 0 0;
}

/* Título, precio y botón */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .button {
  padding: 0 1rem;
}

.woocommerce-loop-product__title {
  text-wrap: balance;
  min-height: 3.6em;
}
.woocommerce-loop-product__title a:hover {
  color: #35c2e7 !important;
}

/* Botón de añadir al carrito */
.woocommerce ul.products li.product .button {
  padding: 8px;
  width: 100%;
  border-radius: 8px;
  background: #35c2e7;
  color: white;
  transition: background 0.2s ease, transform 0.2s ease;
  font-family: "Inter", sans-serif !important;
}

.woocommerce ul.products li.product .button:hover {
  background: #49c9e9;
  transform: scale(1.02) !important;
}

.woocommerce ul.products {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1rem; /* más limpio y moderno que usar margin individual */
  padding: 0 1rem; /* espacio interno para no pegarse a los bordes */
  box-sizing: border-box;
}

.woocommerce ul.products.columns-3,
.woocommerce ul.products.columns-4 {
  display: flex !important;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .woocommerce ul.products li.product {
    flex: 1 0 calc(50% - 1rem); /* 2 por fila en tablets/móviles */
  }
}

@media (max-width: 480px) {
  .woocommerce ul.products li.product {
    flex: 1 0 100%; /* 1 por fila en móviles chicos */
  }
}

@media (min-width: 1024px) {
  /* Ampliar el contenedor principal del shop */
  .woocommerce-page .site-main,
  .woocommerce-page .content-area,
  .woocommerce-page .container {
    max-width: 100%;
    width: 100%;
    padding: 0 0.35rem; /* margen interno opcional */
  }
}

.smartic-sorting {
  display: none !important;
}

.woocommerce ul.products[class*="columns-"] {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.75rem; /* gap un poco más pequeño */
  padding: 0 1rem;
  box-sizing: border-box;
}

.woocommerce ul.products[class*="columns-"] li.product {
  flex: 1 1 calc(25% - 0.75rem); /* que pueda crecer y encoger */
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .woocommerce ul.products[class*="columns-"] li.product {
    flex: 1 1 calc(50% - 0.5rem);
    max-width: calc(50% - 0.5rem);
  }
}

@media (max-width: 480px) {
  .woocommerce ul.products[class*="columns-"] li.product {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

.pagination,
.woocommerce-pagination {
  margin-top: 4em !important;
  font-family: "Inter", san-serif;
}

.woocommerce-pagination .page-numbers li .page-numbers.current {
  background-color: #35c2e7 !important;
  color: #fff;
}

.woocommerce-pagination .page-numbers {
  border-radius: 10px !important;
}

/* Botón en la página de producto */
.single_add_to_cart_button.button,
.single_add_to_cart_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  background-color: #35c2e7;
  color: #fff;
  border: none;
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: background-color 0.2s ease, transform 0.1s ease;
}

/* Botón en la grilla de productos (loop) */
.add_to_cart_button,
.woocommerce a.button.add_to_cart_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  background-color: #35c2e7 !important;
  color: #fff;
  border: none;
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.06);
  transition: background-color 0.2s ease, transform 0.1s ease;
}

/* Hover para ambos */
.single_add_to_cart_button.button:hover,
.add_to_cart_button:hover {
  background-color: #29b3d7;
  transform: translateY(-1px);
}

/* ----------------------------- DYNAMICFILTERS --------------------------------------*/

/* Contenedor tipo tarjeta, centrado, con ancho dinámico */
#barra-filtros-categorias.dynamicFilters-barra {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  background: #f3f3f300;
  width: fit-content;
  max-width: 90vw;
  margin: 0 auto 2rem auto;
}

@media (min-width: 1024px) {
  #barra-filtros-categorias.dynamicFilters-barra {
    max-width: 800px;
  }
}

/* Botones estilo menú */
#barra-filtros-categorias .btn-cat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  height: 37px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  line-height: 2.2;
  color: #333;
  text-decoration: none;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.1s ease;
  transform-origin: center center;
  background: linear-gradient(
    180deg,
    #ffffff,
    #f3f3f3
  ); /* degradado blanco a gris claro */
  box-shadow: 0 0px 12px rgba(0, 0, 0, 0.201);
  user-select: none;
}

/* Hover */
#barra-filtros-categorias .btn-cat:hover {
  color: #000;
  transform: scale(1.03);
}

/* Activo */
#barra-filtros-categorias .btn-cat.active {
  background: #35c2e7;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

/* ---------------------------------- TABS --------------------------------------- */

/* -----------------------------------------
   CONTENEDOR PRINCIPAL DE TABS
----------------------------------------- */
.e-n-tabs-heading {
  display: flex !important;
  gap: 6px !important;
  padding: 0px !important;
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 9999px !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
  width: fit-content !important;
  margin: 0 auto 1.5em auto !important;
  font-family: "Inter", sans-serif !important;
  position: relative !important;
}

/* -----------------------------------------
   PASTILLA DESLIZANTE (movida por JS)
----------------------------------------- */
.moving-pill {
  position: absolute;
  z-index: 1;
  background: #ffffff;
  border-radius: 9999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transition: all 0.35s ease;
  height: calc(100% - 0px); /* igual que antes */
  top: 0px;
  left: 0px; /* valor inicial, JS lo actualizará */
  width: 0px; /* el JS le asignará el ancho */
}

/* -----------------------------------------
   BOTONES DE TABS
----------------------------------------- */
.e-n-tabs-heading .e-n-tab-title {
  all: unset !important;
  display: inline-block !important;
  padding: 8px 14px !important;
  border-radius: 9999px !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  color: #333 !important;
  cursor: pointer !important;
  background: transparent !important;
  transition: all 0.25s ease !important;
  position: relative !important;
  z-index: 2 !important; /* por encima de la cápsula */
  user-select: none !important;
}

/* Hover */
.e-n-tabs-heading .e-n-tab-title:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  color: #000 !important;
}

/* Activo (el fondo lo pone la cápsula) */
.e-n-tabs-heading .e-n-tab-title[aria-selected="true"] {
  color: #000 !important;
}

/* --- Fade suave + leve slide para que sea perceptible --- */
.e-n-tabs-content > [role="tabpanel"] {
  opacity: 0;
  transform: translateY(6px); /* leve desplazamiento */
  transition: opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
  visibility: hidden;
  pointer-events: none;
}

.e-n-tabs-content > [role="tabpanel"].fade-active {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

/* Contenedor que envuelve el contenido de tabs */
.e-n-tabs-content {
  overflow: hidden;
  transition: height 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ----------------------------------SINGLE PRODUCT PAGE --------------------------------------------------*/

.single_add_to_cart_button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 24px;
  font-size: 16px !important;
  font-weight: 600;
  background-color: #35c2e7 !important;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: "Inter", sans-serif;
  text-align: center;
  text-decoration: none;
  margin-right: 0 !important;
  margin-top: 40px !important;
  box-sizing: border-box;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.single_add_to_cart_button.button:hover {
  background-color: #29b3d7;
  transform: scale(1.02);
}

@media (min-width: 768px) {
  .single-product div.product .summary {
    float: right;
    width: 50% !important;
  }
}

section.related {
  margin-top: 60px !important;
}

section.related h2 {
  font-family: "Inter", sans-serif !important;
  font-size: 1.3em !important;
  margin-bottom: 40px !important;
}

.smartic-sticky-add-to-cart,
.smartic-sticky-add-to-cart--slideOutUp {
  display: none !important;
}
/* ---------------------- IMAGEN DE PRODUCTO EN SINGLE PRODUCT PAGE ------------------------------------- */

/* Contenedor general de la galería */

.woocommerce-product-gallery {
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  background: #fff;
  padding: 1rem;
  position: relative;
}

@media (min-width: 768px) {
  .single-product div.product .woocommerce-product-gallery {
    width: calc(50% - 30px) !important;
    max-width: 690px;
    margin-right: 0;
    float: left;
    margin-bottom: 3.706325903em;
  }
}

/* Imagen del producto principal */
.woocommerce-product-gallery__image img,
.woocommerce-product-gallery__image .zoomImg {
  border-radius: 12px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  box-shadow: none;
}

/* Imagen de zoom (inicialmente oculta) */
.zoomImg {
  border-radius: 12px !important;
  max-width: 100% !important;
  max-height: 100% !important;
  top: 0 !important;
  left: 0 !important;
  transform: none !important;
  object-fit: contain;
  z-index: 1;
  pointer-events: none;
}

/* Evitar desbordes del zoom en pantallas pequeñas o layout ajustado */
.woocommerce-product-gallery__wrapper {
  position: relative;
  overflow: hidden;
}

/* Evitar que el icono de zoom se salga */
.woocommerce-product-gallery__trigger {
  top: 10px;
  right: 10px;
  border-radius: 100%;
  background: rgba(0, 0, 0, 0.1);
  padding: 0.4rem;
  transition: background 0.2s;
  position: absolute;
  z-index: 200; /* mayor que la imagen de zoom */
  pointer-events: auto;
}

.woocommerce-product-gallery__trigger:hover {
  background: rgba(0, 0, 0, 0.2);
}

.flex-control-thumbs {
  height: auto !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

.flex-control-thumbs .slick-list,
.flex-control-thumbs .slick-track,
.flex-control-thumbs .slick-slide {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  display: flex !important;
  align-items: center !important;
}

.flex-control-thumbs .slick-slide > div {
  display: flex !important;
  align-items: center !important;
}

.flex-control-thumbs li {
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
}

.flex-control-thumbs img {
  max-height: 100px !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 8px;
}

ol.flex-control-nav.slick-slider {
  width: 100%;
  max-width: max-content !important;
}

.flex-control-thumbs .slick-slide {
  width: 100px !important;
}

/* Botones Next y Prev */
/* Estilo base para ambos botones */
.flex-control-thumbs .slick-arrow {
  background: rgba(0, 0, 0, 0.6) !important;
  color: #fff !important;
  border-radius: 50% !important;
  width: 36px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  border: none !important;
  z-index: 50 !important;
  position: absolute;
}
ol.flex-control-thumbs {
  position: relative; /* necesario para posicionar los botones respecto a este contenedor */
}
/* Botón anterior (Prev) a la izquierda */
.flex-control-thumbs .slick-prev {
  left: 0; /* pegado a la izquierda del contenedor */
}

/* Botón siguiente (Next) a la derecha */
.flex-control-thumbs .slick-next {
  right: 0; /* pegado a la derecha del contenedor */
}

/* Hover: más visible */
.flex-control-thumbs .slick-arrow:hover {
  background: rgba(0, 0, 0, 0.85);
}

/* Botón anterior a la izquierda */
.flex-control-thumbs .slick-prev {
  left: 5px;
}

/* Botón siguiente a la derecha */
.flex-control-thumbs .slick-next {
  right: 5px;
}

/* Opcional: ocultar cuando está deshabilitado */
.flex-control-thumbs .slick-arrow.slick-disabled {
  visibility: hidden;
  cursor: default;
}

ol.flex-control-thumbs {
  position: relative; /* referencia para los botones */
}

ol.flex-control-thumbs .slick-prev {
  left: 0 !important;
}

ol.flex-control-thumbs .slick-next {
  right: 0 !important;
}

ol.flex-control-thumbs .slick-arrow {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 50 !important;
}

/* ---------------------- FIN DE IMAGEN DE PRODUCTO EN SINGLE PRODUCT PAGE ------------------------------------- */

/*------------------------- CARRITO --------------------------------------------- */

.cart_totals {
  background-color: #ffffff; /* fondo blanco */
  border-radius: 16px; /* bordes redondeados */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); /* sombra suave y difusa */
  padding: 24px 32px; /* padding interno */
  max-width: 480px; /* ancho máximo para que no sea muy ancho */
  margin: 24px auto; /* centrado horizontal y margen arriba/abajo */
  border: none !important;
}

.woocommerce-cart-form {
  background-color: #ffffff; /* fondo blanco */
  border-radius: 16px; /* bordes redondeados */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); /* sombra suave */
  padding: 24px 32px; /* padding interno */
  max-width: 100%; /* máximo ancho, ocupa todo el contenedor padre */
  margin-bottom: 24px; /* espacio abajo */
  box-sizing: border-box;
}

.woocommerce-cart-form {
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 24px 32px;
  max-width: 100%;
  margin-bottom: 24px;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  color: #333333;
}

/* Estilo para la tabla */
.woocommerce-cart-form table.shop_table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px; /* espacio entre filas */
  font-family: "Inter", sans-serif;
}

/* Estilo para las filas: fondo alternado */
.woocommerce-cart-form table.shop_table tbody tr {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* Quitar borde predeterminado y hacer que celdas se vean como "tarjetas" redondeadas */
.woocommerce-cart-form table.shop_table tbody tr td {
  border: none !important;
  padding: 12px 16px;
  vertical-align: middle;
}

/* Opcional: al pasar el mouse resaltar fila */
.woocommerce-cart-form table.shop_table tbody tr:hover {
  background-color: #ffffff;
  box-shadow: 0 4px 10px rgba(197, 197, 197, 0.15);
  border-radius: 12px !important;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Encabezado de tabla más limpio */
.woocommerce-cart-form table.shop_table thead tr th {
  font-weight: 600;
  font-size: 14px;
  padding: 10px 16px;
  color: #555555;
  border-bottom: 2px solid #ddd;
  text-align: left;
}

/* Ajustes para que los botones de cantidad y eliminar queden bien alineados */
.woocommerce-cart-form .product-remove a.remove {
  color: #999;
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  padding: 4px 8px;
  transition: color 0.2s ease;
}

.woocommerce-cart-form .product-remove a.remove:hover {
  color: #35c2e7;
  text-decoration: none;
  cursor: pointer;
}
