/*CATEGORIES*/

.tremus-featured-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  padding: 20px;
  text-align: center;
}

.tremus-category {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.tremus-category:hover {
  transform: scale(1.05);
}

.tremus-category-image {
  position: relative;
}

.tremus-category-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* 🔹 Nombre centrado con fondo blanco semitransparente */
.tremus-category-name {
  width: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.70);
  color: #192E41;
  font-weight: 700;
  padding: 6px 10px;
  pointer-events: none;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}





/* 🔴 Tooltip rojo visible encima sin pseudo-elementos */
.tremus-category-tooltip {
  position: absolute;
  bottom: 80%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background-color: red;
  color: #fff;
  padding: 4px 6px;
  border-radius: 20px;
  font-size: 0.9em;
  white-space: nowrap;
  z-index: 10;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Mostrar tooltip al hover */
.tremus-category:hover .tremus-category-tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(-15px);
}

/* ===== GRID DE PRODUCTOS ===== */
.tremus-featured-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  width: 100%;
  margin-top: 20px;
  padding: 20px;
}

/* ===== CONTENEDOR DE PRODUCTOS ===== */
.tremus-featured-products,
ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  align-items: stretch;
}

/* Opcionalmente, puedes simplificar el selector si solo necesitas el contexto del slider y la lista de productos */
.flickity-slider li.tremus-product {
    border: none !important;
    box-shadow: none !important;
}

/* ===== TARJETA ===== */
/* ===== CONTENEDOR GLOBAL - centra y limita ancho para que no se estiren las tarjetas ===== */
.products .container .row-small:not(.row-collapse), .row .row-small:not(.row-collapse){
  gap: 10px;
}
/* .tremus-featured-products,
ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: stretch;       
  margin: 0 auto 30px;         
  padding: 0 12px;
} */

.woopspro-product-slider .products li{
  padding: 12px !important;
}

/* ===== TARJETA ===== */
.tremus-product {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  text-align: left;
  padding: 15px;
  transition: transform .18s ease, box-shadow .18s ease;
  height: 442px;          /* todas las tarjetas tendrán la misma altura mínima */
  max-width: 280px;           /* evita tarjetas demasiado anchas */
  width: 100%;
  box-sizing: border-box;
  border: 1px #eeeeee solid;
}

del span.amount{
  margin-right: 0px !important;
}

/* Mantener separación entre tarjetas cuando hay varias columnas */
.tremus-product + .tremus-product { margin-top: 0; }

/* ===== IMAGEN (control de tamaño) ===== */
.tremus-product-link{
  display: flex !important;
  justify-content: center !important;
}

.tremus-product-image {
  width: 95%;
  aspect-ratio: 1 / 1;       
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  padding: 0;                /* elimina padding que achica la imagen */
}

/* Imagen ocupa más ancho, nunca se distorsiona */
.tremus-product-image img {
  width: 100%;               /* ocupa todo el ancho disponible */             /* ocupa toda la altura disponible */
  object-fit: cover;         /* hace el recorte estético sin deformar */
  display: block;
}
/* ===== CONTENIDO ===== */
.tremus-product-content {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.tremus-product-title {
  font-size: 13px !important;
  color: #6e6e6e !important;
  margin: 0;
  line-height: 1.25;
  min-height: 40px;
  text-align: left;
}

/* contenedor que agrupa descuento + precio */
.tremus-product-price-wrapper {
  min-height: 46px; /* ajusta según lo alto que ocupe el texto de oferta */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.tremus-product-price{
  color: #C4B6AB;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.tremus-discount-container{
  display: flex;
  align-items: center;
}

/* el texto de oferta tendrá altura reservada siempre */
.tremus-discount {
  min-height: 12px; 
  color: #e53935;
  margin-top: 4px;
  text-align: left;
  color: #E01A4F;
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

/* versión sin oferta: texto invisible pero mantiene su espacio */
.tremus-discount.empty {
  visibility: hidden;
}

.precio-unidad-individual{
  font-size: 0.75em !important;
}
/* ===== CONTADOR Y BOTÓN - juntos y compactos ===== */
/* usa un contenedor compacto para que input y botón estén pegados */
.tremus-product-qty-add {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 0px !important;
  justify-content: space-between; 
}

/* caja del contador: un poco más compacta */
.tremus-product-qty {
  display: flex;
  align-items: stretch;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  width: 30%;   /* ancho fijo más compacto */
  height: 40px;
  background: #fff;
}

/* input centrado */
.tremus-qty-input {
  width: 56px;
  border: none;
  text-align: center;
  font-size: 15px;
  outline: none;
  background: transparent;
  color: #7b6f68;
  padding: 0;
  margin: 0;
  height: 100% !important;
}

/* botones ▲ ▼ más pequeños para que no aumenten ancho */
.tremus-qty-buttons {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-left: 1px solid #ddd;
  background: #fafafa;
  width: 28px;
}

.tremus-qty-btn {
  all: unset;
  cursor: pointer;
  width: 100%;
  height: 50%;
  text-align: center;
  font-size: 11px;
  color: #b19a86;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ===== BOTÓN DE AGREGAR ===== */
/* botón más grande y alineado a la derecha del grupo */
.tremus-add-btn {
  margin-left: 6px;
  width: 70%;
}

.is-pack-layout{
  width: 100% !important;
}

.tremus-add-btn .add-to-cart-tremus {
  background-color: #63CCCA;
  color: white;
  text-decoration: none;
  padding: 10px 18px;   /* menos padding horizontal para que no ocupe tanto */
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  transition: background .18s;
  border: none;
  width: 100%;
}

.view-pack-text{
  background-color: #63CCCA;
  color: white;
  text-decoration: none;
  padding: 10px 18px;   /* menos padding horizontal para que no ocupe tanto */
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  transition: background .18s;
  border: none;
  width: 100%;
}

.add-to-cart-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

.add-to-cart-btn.added-success img {
    filter: hue-rotate(80deg); /* Efecto visual leve */
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* icon inside button */
.tremus-add-btn .add-to-cart-btn img.cart-icon-white {
  width: 20px;
  height: auto;
  margin: 0;
  display: block;
}

/* hover */
.tremus-add-btn .add-to-cart-btn:hover {
  background-color: #4FB7B5;
}

/* ===== Pequeños ajustes para evitar que elementos internos estiren la tarjeta ===== */
.tremus-product * {
  box-sizing: border-box;
}

.banner-tiendas-desktop{
  font-size: 2.5em !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px){
  .tremus-shop-header{
    padding: 5px 10px;
  }

  .products .container .row-small:not(.row-collapse), .row .row-small:not(.row-collapse){
    justify-content: center;
  }

  .tremus-product{
    max-width: 170px;
    height: 320px !important;
  }

  .tremus-product-image{
    max-width: 170px;
    max-height: 170px;
  }

  .tremus-product-image img{
    width: 100%;
    height: 100%;
  }

  .tremus-discount-container{
    height: 45px !important;
    flex-direction: column;
    align-items: flex-start !important;
  }

  .tremus-product-price-wrapper{
    max-height: 40px;
  }

  .tremus-product-title, .tremus-discount{
    font-size: 11px !important;
    margin: 0px;
  }

  .tremus-product-price{
    font-size: 12px !important;
  }

  .tremus-add-btn .add-to-cart-btn{
    margin: 0px;
    height: 36px;
  }

  .tremus-product-qty{
    width: 65%;
  }

  .tremus-add-btn .add-to-cart-btn img.cart-icon-white{
    width: 14px;
  }

  .tremus-product-content{
    margin: 0px;
  }

  .tremus-product-qty-add{
    margin-top: 0px !important;
  }

  .tremus-qty-input{
    width: 45px !important;
    font-size: 14px !important;
  }

  .newsletter{
    align-items: center;
  }

  .newsletter-shop-content{
    width: 85% !important;
  }

  .tremus-shop-header{
    border-bottom: none !important;
    height: 65px !important;
  }

  .tab a{
    font-size: 0.8em !important;
  }

  .banner-tiendas-mobile{
    font-size: 2em !important;
  }

  .recently-viewed-product{
    width: 50% !important;
  }

  .recently-viewed-product-title {
    font-size: 0.65em;
  }

  .product-content-row{
    align-items: flex-start !important;
    justify-content: space-between !important;
  }

  .product-price{
    margin: 0px !important;
    font-size: 1.4em !important;
  }

  .product-meta-icons{
    align-items: center !important;
    margin-top: 0px !important;
  }

  .product-meta-icons li{
    margin: 0px !important;
    font-size: 12px !important;
  }

  #available{
    display: none !important;
  }

  .custom-product-description{
    padding: 0px !important;
  }

  .tremus-ingredients-container{
    flex-direction: column;
  }

  .product-title{
    font-size: 1.4em !important;
  }

  .product-tags img.product-tag-image{
    max-width: 58px !important;
  }
}

/*FIN TARJETA*/

/*marcas*/
.brands-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  justify-items: center;
  align-items: center;
  padding-top: 60px;
}

.brands-grid img {
  width: 90px;
  height: auto;
  transition: all 0.3s ease;
  opacity: 0.8;
}

.brands-grid img:hover {
  opacity: 1;
  transform: scale(1.05);
}

@media (max-width: 900px) {
  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .brands-grid img {
    width: 75px;
  }
}

/*BUSCADOR*/

.custom-search-container {
  position: relative;
  margin: 20px auto;
}

.custom-search-box {
  display: flex;
  align-items: center;
  border-radius: 5px;
  overflow: hidden;
}

#custom-product-search {
  flex: 1;
  padding: 10px 12px;
  outline: none;
  font-size: 15px;
  width: 800px;
}

#custom-search-button {
  background-color: #e5e5e5; /* gris claro */
  border: none;
  padding: 11px 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#custom-search-button i {
  color: #333; /* gris oscuro tirando a negro */
  font-size: 16px;
}

#custom-search-button:hover {
  background-color: #dcdcdc;
}

#custom-search-results {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-right: 1px solid #e0e0e0;
  border-left: 1px solid #e0e0e0;
  max-height: 400px;
  overflow-y: auto;
  z-index: 9999;
}

#custom-search-results li {
  padding: 10px;
  border-bottom: 1px solid #f0f0f0;
}

#custom-search-results li a {
  text-decoration: none;
  color: #444;
  display: block;
}

#custom-search-results li a:hover {
  background: #f7f7f7;
  color: #000;
}

/*CART ICON*/

.tremus-cart-widget {
  background-color: #e9e3df;
  text-align: center;
  width: fit-content;
  font-family: "Inter", sans-serif;
  padding-top: 5px;
}

/* Animación al hacer hover */
.tremus-cart-widget:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  transition: transform 0.5s ease;
}

/* Icono del carrito animado */
.tremus-cart-widget:hover .cart-header-icon {
  transform: scale(1.1) rotate(-5deg);
  transition: transform 0.5s ease;
}

.tremus-cart-widget .cart-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 5px 0px;
  color: #192E41;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px; /* 166.667% */
}

.cart-icon-container {
  position: relative;
}

.cart-header-icon{
  width: 18px;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -8px;
  background-color: #e0245e;
  color: white;
  font-size: 11px;
  font-weight: bold;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tremus-cart-widget:hover .cart-count {
  transform: scale(1.15);
  transition: transform 0.5s ease;
}

.cart-total {
  margin: 0px 10px;
  color: #192E41;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.cart-bottom {
  margin-top: 6px;
  background-color: #d9d0ca;
  padding: 2px 8px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  color: #192E41;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.tremus-cart-widget .cart-bottom.free-shipping {
  background-color: #2fc5ca; 
  color: #fff;
}

.tremus-cart-widget.hide-shipping .cart-bottom {
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.tremus-cart-widget.hide-shipping .cart-top{
  padding-left: 5px; 
}

/*SUBMENU*/
.tremus-submenu-wrapper {
  position: relative;
  z-index: 9999;
}

/* Fondo semitransparente */
.submenu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(21, 38, 53, 0.6);
  display: none;
  z-index: 9998;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.submenu-overlay.active {
  display: block;
  opacity: 1;
}

/* Contenedor lateral del menú */
.submenu-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 380px;
  height: 100vh;
  background: #f8f7f6;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.3);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 9999;
  overflow-y: auto;
  padding-top: 60px;
}

.submenu-container.open {
  transform: translateX(0);
}

.submenu-list,
.submenu-children {
  list-style: none;
  margin: 0;
  padding: 0;
}

.submenu-item {
  border-bottom: 1px solid #e0dcd9;
  margin: 0;
  margin-left: 0 !important;
}

.submenu-link-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 0;
}

.submenu-item a {
  display: block;
  padding: 8px 20px;
  color: #152635;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s ease;
  flex: 1;
}

.submenu-item a:hover {
  background: #eae5e1;
}

/* Botón de despliegue */
.submenu-toggle {
  background: none;
  border: none;
  color: #152635;
  cursor: pointer;
  font-size: 14px;
  padding: 6px 20px;
  transition: transform 0.3s ease;
  margin: 0;
}

.submenu-toggle.rotate i {
  transform: rotate(180deg);
}

/* Submenús */
.submenu-children {
  display: none;
}

.submenu-children.open {
  display: block;
  margin: 0 !important;
}

.submenu-children.open li{
  border-bottom: 1px solid #a7a7a7;
  margin: 0 !important;
  background: #eae5e1;
}

.submenu-children.open li a{
  padding-left: 40px !important;
}

/* Cabecera de Tabs */
.submenu-tabs-header {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}

.tab-trigger {
    flex: 1; /* Ocupan 50% cada uno */
    padding: 15px;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    font-weight: bold;
    outline: none;
}

.tab-trigger.active {
    background: #fff;
    border-bottom: 2px solid #000; /* Color de acento */
}

/* Ocultar/Mostrar paneles */
.tab-pane {
    display: none; /* Ocultos por defecto */
}

.tab-pane.active {
    display: block; /* Solo se muestra el activo */
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 480px){
  .submenu-container{
    width: 340px !important;
  }
}

/*BANNER PROMO*/

.promo-banner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(21, 38, 53, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.promo-banner-modal {
  position: relative;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  max-width: 90%;
  max-height: 90%;
}

.promo-banner-modal img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.promo-banner-close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: white;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  width: 35px;
  height: 35px;
  padding: 0 !important;
}

/*Modal comprar hasta completar el envio*/

.envio-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(21, 38, 53, 0.6);
  display: flex; justify-content: center; align-items: center;
  z-index: 9999;
}
.envio-modal-content {
  background: #fff;
  padding: 40px 20px;
  max-width: 1180px;
  width: 90%;
  text-align: center;
  position: relative;
}
.envio-close {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 22px; cursor: pointer;
}
.envio-header {
  display: flex; 
  justify-content: center; 
  align-items: center;
  gap: 10px; margin-bottom: 10px;
  font-size: 1.2em;
  color: #152635;
}
.envio-productos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 20px;
}
.envio-producto {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
}
.envio-producto img {
  width: 100%; border-radius: 6px;
}
.envio-producto button {
  background: #00a8a8;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 6px;
}

.envio-header-description{
  font-size: 1.2em;
  color: #152635;
}

#faltante-envio{
  background: #d1d1d1;
  padding: 0px 5px;
}

/* === Productos vistos recientemente === */
.recently-viewed-products-row{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0px;
}

.recently-viewed-product{
  display: flex;
  align-items: center;
  background-color: #f1f1f1;
  width: 20%;
  height: 120px;
  padding: 10px;
  border-radius: 5px;
}

.recently-viewed-product-link{
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.recently-viewed-product-left{
  width: 25%;
}

.recently-viewed-product-right{
  width: 75%;
}

.recently-viewed-product-image img{
  max-width: 90%;
}

.recently-viewed-product-title{
  font-size: 0.7em;
}

.recently-viewed-product-price{
  font-size: 0.7em !important;
  color: #202020 !important;
}

/*Toast*/

#tremus-toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tremus-toast {
    background: #000;
    border-left: 4px solid #2ecc71; /* Color verde éxito */
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    min-width: 280px;
    max-width: 350px;
    transform: translateX(120%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tremus-toast.is-active {
    transform: translateX(0);
}

.tremus-toast.is-leaving {
    opacity: 0;
    transform: scale(0.9);
}

.toast-img img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 12px;
}

.toast-content {
    flex-grow: 1;
}

.toast-title {
    display: block;
    font-weight: bold;
    font-size: 14px;
    color: #dfdfdf;
}

.toast-product {
    margin: 0;
    font-size: 13px;
    color: #ffffff;
}

.toast-close {
    cursor: pointer;
    font-size: 20px;
    color: #ccc;
    padding-left: 10px;
}

.toast-close:hover { color: #333; }

.wmc-progress-sidebar-inner{
  background-color: #fafafa !important;
  border: 1px solid #e1e1e1 !important;
}

