/* OnePlaceTrader — Tarjeta de producto (cargado directamente por el plugin) */
/* ============================================================
   TEMA CLARO — reemplazo completo, oct. 2026
   Paper #f5f3ee (fondo) · Surface White #ffffff (tarjetas/paneles)
   Grid Line Claro #e3e0d8 (bordes) · Texto #0b0e13 / #6b6558 (secundario)
   Verde #3ecf8e (fondos de botón/badge) · Verde Deep #0c6a3d (texto/ícono)
   ============================================================ */

.optjup-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  list-style: none;
}

.optjup-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  perspective: 800px;
  background: #f5f3ee;
}

.woocommerce ul.products li.optjup-card .optjup-media img,
ul.products li.optjup-card .optjup-media img,
.optjup-media img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 !important;
  transition: transform 0.3s ease;
}

.optjup-card:hover .optjup-media img {
  transform: scale(1.05);
}

.optjup-badge-sale {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #0c6a3d;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  z-index: 3;
  text-transform: uppercase;
  box-shadow: 0 1px 4px rgba(11, 14, 19, 0.12);
}

.optjup-media .stock {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #6b6558;
  font-size: 10.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  margin: 0;
  z-index: 3;
  box-shadow: 0 1px 4px rgba(11, 14, 19, 0.12);
}

.optjup-full-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.optjup-hover-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46px;
  display: flex;
  background: rgba(0, 0, 0, 0.86);
  border-top: 1px solid rgba(11, 14, 19, 0.08);
  z-index: 2;
  transform-origin: bottom center;
  transform: perspective(600px) rotateX(-90deg);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.25s ease;
  margin: 0;
  padding: 0;
}

.optjup-card:hover .optjup-hover-bar {
  transform: perspective(600px) rotateX(0deg);
  opacity: 1;
}

.optjup-hover-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  position: relative;
}

.optjup-hover-btn:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 1);
}

.optjup-hover-btn:hover,
.optjup-hover-bar .optjup-hover-view:hover {
  color: #0c6a3d !important;
}

.optjup-wishlist-slot {
  min-width: 0;
  overflow: visible;
}

.optjup-wishlist-slot a.button,
.optjup-wishlist-slot,
.optjup-wishlist-slot a.add_to_wishlist,
.optjup-wishlist-slot .yith-wcwl-add-to-wishlist a,
.optjup-wishlist-slot a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: #0b0e13 !important;
  background: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  width: auto !important;
  height: auto !important;
  font-size: 0 !important; /* oculta el texto */
  line-height: 0 !important;
}

.optjup-wishlist-slot:hover a.button,
.optjup-wishlist-slot:hover a.add_to_wishlist,
.optjup-wishlist-slot:hover a {
  color: #0c6a3d !important;
}


/* Ícono por defecto: corazón (cubre wishlist, sin importar el nombre exacto de clase) */
.optjup-wishlist-slot a::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  background-color: #0b0e13 !important;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 21s-6.7-4.3-9.3-8.1C.7 9.9 1.6 6.4 4.6 5c2.3-1 4.7-.1 6 1.7l1.4 1.9 1.4-1.9c1.3-1.8 3.7-2.7 6-1.7 3 1.4 3.9 4.9 1.9 7.9C18.7 16.7 12 21 12 21z'/></svg>") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 21s-6.7-4.3-9.3-8.1C.7 9.9 1.6 6.4 4.6 5c2.3-1 4.7-.1 6 1.7l1.4 1.9 1.4-1.9c1.3-1.8 3.7-2.7 6-1.7 3 1.4 3.9 4.9 1.9 7.9C18.7 16.7 12 21 12 21z'/></svg>") no-repeat center / contain;
}

/* Se sobreescribe a carrito SOLO cuando es el botón real de WooCommerce */
.optjup-wishlist-slot ::before {
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='21' r='1'/><circle cx='20' cy='21' r='1'/><path d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/></svg>") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='21' r='1'/><circle cx='20' cy='21' r='1'/><path d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/></svg>") no-repeat center / contain;
}

/* Color al pasar el mouse sobre el botón */
.optjup-wishlist-slot:hover a::before {
  background-color: #0c6a3d !important;
}

.optjup-wishlist-fallback {
  color: #6b6558;
  font-size: 0;
}

.optjup-info {
  padding: 14px 16px 16px;
}

.optjup-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  color: #424750;
  margin: 0 0 6px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  min-height: calc(1.35em * 2);
}

.woocommerce ul.products li.product h3 {
padding: 0px !important;

}

.optjup-title a {
  color: inherit;
  text-decoration: none;
}

.optjup-info .price {
  color: #0c6a3d;
  font-weight: 700;
  font-size: 14px;
}

.optjup-info .price del {
  color: #6b6558;
  font-weight: 400;
  font-size: 12px;
  opacity: 0.7;
  margin-right: 6px;
}

/* Mostrar el bloque de YITH dentro de nuestra barra */
.optjup-wishlist-slot .yith-add-to-wishlist-button-block {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

/* El botón real: sin fondo ni borde nativo, centrado */
.optjup-wishlist-slot .yith-wcwl-add-to-wishlist-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer;
}

/* Ocultar el texto "Añadir a la lista de deseos", solo icono */
.optjup-wishlist-slot .yith-wcwl-add-to-wishlist-button__label {
  display: none !important;
}

/* Estilo del corazón: oscuro normal, verde en hover, mismo tamaño que el carrito */
.optjup-wishlist-slot .yith-wcwl-icon-svg__wrapper,
.optjup-wishlist-slot .yith-wcwl-add-to-wishlist-button-icon {
  width: 18px !important;
  height: 18px !important;
  color: #fff !important;
  stroke: currentColor !important;
  transition: color 0.2s ease;
}

.optjup-wishlist-slot:hover .yith-wcwl-add-to-wishlist-button-icon {
  color: #0c6a3d !important;
}


/* Botón de carrito: solo icono, sin texto ni iconos nativos de Kadence */
.optjup-hover-action a.add_to_cart_button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 18px !important;
  height: 18px !important;
  overflow: hidden !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  position: relative;
}

/* Oculta los iconos SVG propios de Kadence (flecha, spinner, check) */
.optjup-hover-action a.add_to_cart_button .kadence-svg-iconset {
  display: none !important;
}

/* Nuestro icono de carrito, dibujado con máscara CSS */
.optjup-hover-action a.add_to_cart_button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  background-color: #0b0e13 !important;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12L8.1 13h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z'/></svg>") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12L8.1 13h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z'/></svg>") no-repeat center / contain;
}

.optjup-hover-action:hover a.add_to_cart_button::before {
  background-color: #0c6a3d !important;
}

/* Oculta el link "Ver carrito" que WooCommerce agrega después de añadir el producto,
   para que no rompa el diseño de la barra */
.optjup-hover-action a.added_to_cart.wc-forward {
  display: none !important;
}

/* Una vez agregado, el ícono del carrito se queda verde (igual que wishlist) */
.optjup-hover-action a.add_to_cart_button.added::before {
  background-color: #0c6a3d !important;
}

.optjup-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: rgba(255, 255, 255, 0.97);
  color: #0b0e13;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 14px 22px;
  border-radius: 10px;
  border: 1px solid rgba(11, 14, 19, 0.08);
  box-shadow: 0 8px 24px rgba(11, 14, 19, 0.12);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.optjup-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Ícono de wishlist en el header */
.optjup-header-wishlist {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  position: relative;
  text-decoration: none;
}

.optjup-header-wishlist-icon {
  display: block;
  width: 20px;
  height: 20px;
  background-color: #0b0e13;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 21s-6.7-4.3-9.3-8.1C.7 9.9 1.6 6.4 4.6 5c2.3-1 4.7-.1 6 1.7l1.4 1.9 1.4-1.9c1.3-1.8 3.7-2.7 6-1.7 3 1.4 3.9 4.9 1.9 7.9C18.7 16.7 12 21 12 21z'/></svg>") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 21s-6.7-4.3-9.3-8.1C.7 9.9 1.6 6.4 4.6 5c2.3-1 4.7-.1 6 1.7l1.4 1.9 1.4-1.9c1.3-1.8 3.7-2.7 6-1.7 3 1.4 3.9 4.9 1.9 7.9C18.7 16.7 12 21 12 21z'/></svg>") no-repeat center / contain;
  transition: background-color 0.2s ease;
}

.optjup-header-wishlist:hover .optjup-header-wishlist-icon {
  background-color: #0c6a3d;
}

.optjup-header-extra {
  display: flex;
  align-items: center;
  gap: 14px;
}

.optjup-wishlist-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.optjup-wishlist-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.optjup-wishlist-drawer {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(380px, 90vw);
  background: #ffffff;
  color: #0b0e13;
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  box-sizing: border-box;
  box-shadow: -8px 0 24px rgba(11, 14, 19, 0.1);
}

.optjup-wishlist-overlay.is-open .optjup-wishlist-drawer {
  transform: translateX(0);
}

.optjup-wishlist-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  margin-top: 35px;
}

.optjup-wishlist-drawer-header h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  margin: 0;
  color: #0b0e13;
}

.optjup-wishlist-close {
  background: none;
  border: none;
  color: #0b0e13;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.optjup-wishlist-loading {
  color: #6b6558;
  font-size: 13px;
}

body.optjup-drawer-open {
  overflow: hidden;
}

/* ===== Tabla de "Mi lista de deseos" (página y panel lateral) ===== */

.wishlist-title-container {
  padding-top: 50px;
}

.wishlist-title h2 {
  color: #0b0e13;
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  margin: 0 0 6px;
}

.wishlist-title .show-title-form {
  color: #6b6558 !important;
  font-size: 12px !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.wishlist-title .show-title-form:hover {
  color: #0c6a3d !important;
}

.wishlist-title .yith-wcwl-icon-svg {
  width: 14px;
  height: 14px;
}

.hidden-title-form input[type="text"] {
  background: #ffffff;
  border: 1px solid #e3e0d8;
  color: #0b0e13;
  padding: 6px 10px;
  border-radius: 6px;
}

table.wishlist_table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
}

table.wishlist_table thead {
  background: #f5f3ee;
}

table.wishlist_table thead th {
  color: #6b6558;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 12px 14px;
  text-align: left;
  border: none;
}

table.wishlist_table tbody tr {
  border-top: 1px solid #e3e0d8;
}

table.wishlist_table tbody td {
  padding: 14px;
  vertical-align: middle;
  border: none;
  color: #0b0e13;
}

table.wishlist_table .product-thumbnail img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

table.wishlist_table .product-name a {
  color: #0b0e13;
  text-decoration: none;
  font-weight: 500;
  font-size: 13.5px;
}

table.wishlist_table .product-name a:hover {
  color: #0c6a3d;
}

table.wishlist_table .product-price .amount {
  color: #0b0e13;
  font-weight: 600;
}

table.wishlist_table .product-price ins {
  text-decoration: none;
}

table.wishlist_table .product-price ins .amount {
  color: #0c6a3d;
}

table.wishlist_table .product-price del {
  opacity: 0.6;
}

table.wishlist_table .product-price del .amount {
  color: #6b6558;
  font-weight: 400;
  font-size: 12px;
}

table.wishlist_table .wishlist-in-stock {
  color: #0c6a3d;
  font-size: 12.5px;
  font-weight: 600;
}

table.wishlist_table .remove_from_wishlist.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #3ecf8e !important;
  color: #0b0e13 !important;
  font-weight: 700;
  font-size: 12.5px;
  padding: 7px 16px;
  border-radius: 999px;
  text-decoration: none !important;
  border: none;
  white-space: nowrap;
}

table.wishlist_table .remove_from_wishlist.button:hover {
  background: #35b57c !important;
}

.yith_wcwl_wishlist_footer {
  margin-top: 14px;
}

.optjup-wishlist-drawer-content table.wishlist_table,
.optjup-wishlist-drawer-content table.wishlist_table thead,
.optjup-wishlist-drawer-content table.wishlist_table tbody,
.optjup-wishlist-drawer-content table.wishlist_table tr {
  display: block;
  width: 100%;
}

.optjup-wishlist-drawer-content table.wishlist_table thead {
  display: none;
}

.optjup-wishlist-drawer-content table.wishlist_table tbody tr {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 3px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid #e3e0d8;
}

.optjup-wishlist-drawer-content table.wishlist_table tbody tr:first-child {
  border-top: none;
}

.optjup-wishlist-drawer-content table.wishlist_table td {
  padding: 0;
  border: none;
}

.optjup-wishlist-drawer-content table.wishlist_table .product-thumbnail {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.optjup-wishlist-drawer-content table.wishlist_table .product-thumbnail img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.optjup-wishlist-drawer-content table.wishlist_table .product-name {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  min-width: 0;
}

.optjup-wishlist-drawer-content table.wishlist_table .product-name a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
}

.optjup-wishlist-drawer-content table.wishlist_table .product-price {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  justify-self: start;
  text-align: left;
  font-size: 12.5px;
}

.optjup-wishlist-drawer-content table.wishlist_table .product-stock-status {
  display: none;
}

.optjup-wishlist-drawer-content table.wishlist_table .product-add-to-cart {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  display: flex;
  align-items: center;
  gap: 10px;
}

.woocommerce table.shop_table.wishlist_table tr td {
  background: #ffffff !important;
}

.optjup-wishlist-drawer-content .wishlist-title-container {
  display: none;
}

.optjup-wishlist-drawer {
  display: flex;
  flex-direction: column;
}

.optjup-wishlist-drawer-content {
  flex: 1;
}

.optjup-wishlist-drawer-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e3e0d8;
}

.optjup-wishlist-viewall {
  display: block;
  width: 100%;
  text-align: center;
  background: #3ecf8e;
  color: #0b0e13 !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 12px;
  border-radius: 999px;
  text-decoration: none !important;
  box-sizing: border-box;
}

.optjup-wishlist-viewall:hover {
  background: #35b57c;
}

.optjup-wishlist-drawer-content table.wishlist_table .remove_from_wishlist.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  background: transparent !important;
  color: transparent !important;
  font-size: 0 !important;
  font-weight: 400 !important;
  position: relative;
}

.optjup-wishlist-drawer-content table.wishlist_table .remove_from_wishlist.button::before {
  content: "×";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  font-size: 20px;
  line-height: 1;
  color: #c23b32;
}

.optjup-wishlist-drawer-content table.wishlist_table .remove_from_wishlist.button:hover::before {
  color: #e5584f;
}

.optjup-wishlist-drawer-content table.wishlist_table td.wishlist-empty {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  text-align: left !important;
  color: #0b0e13 !important;
  line-height: 1.6;
  padding: 0px 10px !important;
  margin: 0px !important;
}

table.wishlist_table thead {
  display: none !important;
}

.woocommerce table.shop_table {
  border-collapse: unset !important;
}

.optjup-wishlist-drawer-content table.wishlist_table .add_to_cart_button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 18px !important;
  height: 18px !important;
  overflow: hidden !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  position: relative;
}

.optjup-wishlist-drawer-content table.wishlist_table .add_to_cart_button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  background-color: #0b0e13 !important;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12L8.1 13h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z'/></svg>") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12L8.1 13h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z'/></svg>") no-repeat center / contain;
}

.optjup-wishlist-drawer-content table.wishlist_table .add_to_cart_button:hover::before {
  background-color: #0c6a3d !important;
}

.optjup-wishlist-drawer-content .woocommerce-notices-wrapper {
  display: none !important;
}

body.single-product #main {
  padding-top: 120px;
}

body.woocommerce-cart #main {
  padding-top: 80px;
}

body.woocommerce-checkout #main {
  padding-top: 80px;
}



.kadence-breadcrumbs {
  color: #0c6a3d !important;
}

.woocommerce div.product .product_meta > span {
  color: #6b6558 !important;
}

.wc-block-components-order-summary .wc-block-components-order-summary-item__quantity span {

  color: #000 !important;
}

.optjup-htb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 14, 19, 0.45);
  backdrop-filter: blur(2px);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  padding: 20px;
}

.optjup-htb-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.optjup-htb-modal {
  background: #ffffff;
  border: 1px solid #e3e0d8;
  border-radius: 16px;
  padding: 28px;
  max-width: 460px;
  width: 100%;
  color: #0b0e13;
  transform: scale(0.96);
  transition: transform 0.25s ease;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 12px 32px rgba(11, 14, 19, 0.15);
}

.optjup-htb-overlay.is-open .optjup-htb-modal {
  transform: scale(1);
}

.optjup-htb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.optjup-htb-head h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  margin: 0;
  color: #0b0e13;
}

.optjup-htb-close {
  background: none;
  border: none;
  color: #0b0e13;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.optjup-htb-intro {
  font-size: 13.5px;
  color: #6b6558;
  margin: 0 0 20px;
  line-height: 1.5;
}

.optjup-htb-item {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}

.optjup-htb-item strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  margin-bottom: 4px;
  color: #0b0e13;
}

.optjup-htb-item span {
  display: block;
  font-size: 13px;
  color: #6b6558;
  line-height: 1.5;
}

.optjup-htb-icon {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(62, 207, 142, 0.16);
  border: 1px solid rgba(62, 207, 142, 0.35);
  position: relative;
}

.optjup-htb-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
  background-color: #0c6a3d;
  -webkit-mask: no-repeat center / contain;
  mask: no-repeat center / contain;
}

.optjup-htb-icon-cart::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12L8.1 13h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12L8.1 13h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z'/></svg>");
}

.optjup-htb-icon-heart::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 21s-6.7-4.3-9.3-8.1C.7 9.9 1.6 6.4 4.6 5c2.3-1 4.7-.1 6 1.7l1.4 1.9 1.4-1.9c1.3-1.8 3.7-2.7 6-1.7 3 1.4 3.9 4.9 1.9 7.9C18.7 16.7 12 21 12 21z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 21s-6.7-4.3-9.3-8.1C.7 9.9 1.6 6.4 4.6 5c2.3-1 4.7-.1 6 1.7l1.4 1.9 1.4-1.9c1.3-1.8 3.7-2.7 6-1.7 3 1.4 3.9 4.9 1.9 7.9C18.7 16.7 12 21 12 21z'/></svg>");
}

.optjup-htb-icon-box::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 8L12 3 3 8l9 5 9-5z'/><path d='M3 8v8l9 5 9-5V8'/><path d='M12 13v8'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 8L12 3 3 8l9 5 9-5z'/><path d='M3 8v8l9 5 9-5V8'/><path d='M12 13v8'/></svg>");
}

.optjup-htb-ok {
  display: block;
  width: 100%;
  margin-top: 4px;
  background: #3ecf8e;
  color: #0b0e13;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 12px;
  border-radius: 999px;
  cursor: pointer;
}

.optjup-htb-ok:hover {
  background: #35b57c;
}

.optjup-products-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px 0;
    color: #0b0e13;
    opacity: 0.85;
    font-size: 14px;
}

.optjup-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(11, 14, 19, 0.15);
    border-top-color: #0c6a3d;
    border-radius: 50%;
    animation: optjup-spin 0.7s linear infinite;
}

@keyframes optjup-spin {
    to { transform: rotate(360deg); }
}

.optjup-no-products {
  text-align: center;
  color: #0b0e13;
}

.header-cart-button .kadence-svg-iconset {
  padding-right: 5px;
}
.trp-language-switcher img,
.trp-flag-image,
.trp-ls-shortcode-current-language img {
  width: 28px !important;
  height: auto !important;
  padding-top:2px;
}
/* Texto del submenú desplegable en oscuro (header ahora es claro) */
.main-navigation ul ul li a,
.site-header-menu .sub-menu li a {
  color: #0b0e13 !important;
}

/* Opcional: color al pasar el mouse por encima */
.header-navigation .header-menu-container ul ul li.menu-item > a {
  color: #0b0e13 !important;
}
.main-navigation ul ul li a:hover,
.site-header-menu .sub-menu li a:hover {
  color: #0c6a3d !important;
}

/* Barra de título más estrecha y con tus colores */
.entry-hero-container-inner {
  min-height: 30px !important;
  padding-top: 5px !important;
  padding-bottom: 5px !important;
  background-color: #78ba8f !important;
}

.entry-hero-container-inner .entry-title,
.entry-hero-container-inner h1 {
  color: #0b0e13 !important;
  font-size: 26px !important;
  margin: 0 !important;
  padding-top:10px;
}
.archive-description p {
  color: #0b0e13 !important;
  margin-top:0px;
}
.entry-hero-container-inner .entry-header {
  min-height: 100px !important;
}

.body {
  line-height: 2; !important
}

/* --- Filtros y encabezado de la sección --- */
.opt-featured-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 60px auto 40px;
  padding: 0 24px;
}

.opt-pill {
  background: #ffffff;
  color: #6b6558;
  border: 1px solid #e3e0d8;
  border-radius: 999px;
  padding: 10px 22px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.opt-pill:hover {
  border-color: #3ecf8e;
  color: #0b0e13;
}

.opt-pill.is-active {
  background: #3ecf8e;
  color: #0b0e13;
  border-color: #3ecf8e;
}

.opt-featured-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto 20px;
  padding: 0 24px;
  text-align:center;
}

.opt-featured-heading h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #0b0e13;
  margin: 0;

}

.opt-featured-nav button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #e3e0d8;
  background: #ffffff;
  color: #0b0e13;
  font-size: 16px;
  cursor: pointer;
  margin-left: 8px;
  transition: all 0.15s ease;
}

.opt-featured-nav button:hover {
  border-color: #3ecf8e;
  color: #0c6a3d;
}

/* --- Carrusel (sobreescribe el grid nativo de WooCommerce) --- */
ul.products.opt-carousel-track {
  display: flex !important;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 20px;
  padding: 0 24px 30px;
  max-width: 1400px;
  margin: 0 auto;
  list-style: none;
  scrollbar-width: none;

}

ul.products.opt-carousel-track::-webkit-scrollbar {
  display: none;
}

ul.products.opt-carousel-track li.product {
  scroll-snap-align: start;
  flex: 0 0 260px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  padding: 0 !important;
  margin: 0 !important;
  transition: transform 0.2s ease;
  background: #ffffff;
}

ul.products.opt-carousel-track li.product:hover {
  transform: translateY(-4px);
}

ul.products.opt-carousel-track li.product img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

ul.products.opt-carousel-track li.product a {
  text-decoration: none !important;
  box-shadow: none !important;
}

ul.products.opt-carousel-track li.product .woocommerce-loop-product__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #0b0e13;
  padding: 14px 16px 4px;
  margin: 0;
}

ul.products.opt-carousel-track li.product .price {
  display: block;
  color: #000;
  font-weight: 600;
  font-size: 14px;
  margin-top: 5px;
}

ul.products.opt-carousel-track li.product .button {
  display: block;
  margin: 0 16px 16px;
  text-align: center;
  background: linear-gradient(135deg, #3ecf8e, #2a9d6f);
  color: #0b0e13 !important;
  font-weight: 600;
  font-size: 13px;
  padding: 10px;
  border-radius: 999px;
  text-decoration: none;
}

ul.products.opt-grid-track {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 60px;
  list-style: none;
}

@media (max-width: 1024px) {
  ul.products.opt-grid-track { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  ul.products.opt-grid-track { grid-template-columns: 1fr; }
}

ul.products.opt-grid-track li.product {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  padding: 0 !important;
  margin: 0 !important;
  transition: transform 0.2s ease;
  background: #ffffff;
}

ul.products.opt-grid-track li.product:hover { transform: translateY(-4px); }

ul.products.opt-grid-track li.product img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

ul.products.opt-grid-track li.product a {
  text-decoration: none !important;
  box-shadow: none !important;
}

ul.products.opt-grid-track li.product .woocommerce-loop-product__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #0b0e13;
  padding: 14px 16px 4px;
  margin: 0;
}


ul.products.opt-grid-track li.product .button {
  display: block;
  margin: 0 16px 16px;
  text-align: center;
  background: linear-gradient(135deg, #3ecf8e, #2a9d6f);
  color: #0b0e13 !important;
  font-weight: 600;
  font-size: 13px;
  padding: 10px;
  border-radius: 999px;
  text-decoration: none;
}

.opt-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.opt-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.opt-featured-item {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: transparent !important;
  width: 100%;
  flex: none;
}

.opt-featured-link {
  display: block;
  position: relative;
  text-decoration: none !important;
  box-shadow: none !important;
  border-radius: 18px;
  overflow: hidden;
  background: transparent !important;
}

/* Este bloque mantiene un degradado oscuro sobre la FOTO del carrusel (no sobre
   la página) para que el texto blanco del título siga siendo legible encima de
   cualquier imagen — es intencional y no cambia con el tema del sitio. */
.opt-featured-img-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: #f5f3ee;
  aspect-ratio: 2 / 3.5;
}

.opt-featured-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 18px;
  transition: transform 0.3s ease;
}

.opt-featured-item:hover .opt-featured-img-wrap img {
  transform: scale(1.05);
}

.opt-featured-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 110px 18px 18px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(11,14,19,0.05) 25%,
    rgba(11,14,19,0.35) 55%,
    rgba(11,14,19,0.75) 80%,
    rgba(11,14,19,0.95) 100%
  );
  text-align: left;
}

.opt-featured-cat {
  display: inline-block;
  background: rgba(62,207,142,0.18);
  color: #3ecf8e;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 10.5px;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.opt-featured-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #eef1f6;
  margin: 0;
  line-height: 1.3;
  min-height: 42px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.opt-featured-title {
  margin: 0 !important;
  margin-top: 0 !important;
}

.opt-featured-cat {
  margin-bottom: 4px;
}
.owl-item {
  padding: 0 5px;
  box-sizing: border-box;
}

.wpb_area_title {
  font-size: 16px;
  padding-bottom:10px;
  color: #6b6558;
}

/* Flechas prev/next — mismo lenguaje visual que la etiqueta de categoría, en círculo.
   Siguen usando blanco translúcido porque se apoyan sobre la FOTO del carrusel, no
   sobre el fondo de la página. */
.owl-nav .owl-prev,
.owl-nav .owl-next {
  border-radius: 25px !important;
  background: #ffffff36 !important;
  color: #3ecf8e !important;
  border: 1px solid #303030  !important;
  display: flex !important;

}

.owl-nav .owl-prev:hover,
.owl-nav .owl-next:hover {
  background: #3cca8b !important;
  color: #0b0e13 !important;
  border-color: #3ecf8e !important;
}

.wpb_slider_area .owl-theme .owl-nav [class*="owl-"] i {
  color: #303030 !important;
}

/* Paginación — puntos redondos en vez de cuadrados */
.owl-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.owl-dots .owl-dot span {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50% !important;
  background: rgba(62,207,142,0.25) !important;
  margin: 0 !important;
  transition: all 0.2s ease;
}

.owl-dots .owl-dot.active span,
.owl-dots .owl-dot:hover span {
  background: #3ecf8e !important;
  width: 22px !important; /* el punto activo se alarga un poco, efecto común y elegante */
  border-radius: 5px !important;
}

.opt-hero-subtitle {
  max-width: 1024px !important;
  color: #5d5d5d !important;
}

.opt-hero-title {
  font-size: clamp(32px, 8vw, 80px) !important;
}

.kadence-sticky-header.item-is-fixed:not(.item-at-start):not(.site-header-row-container):not(.item-hidden-above):not(.site-main-header-wrap), #masthead .kadence-sticky-header.item-is-fixed:not(.item-at-start):not(.item-hidden-above) > .site-header-row-container-inner 
{
  box-shadow: 0 2px 8px rgba(11, 14, 19, 0.12);
}

.site-bottom-header-wrap {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.3s ease, opacity 0.3s ease;
  opacity: 1;
}

.site-bottom-header-wrap > .site-header-row-container-inner {
  min-height: 0;
}

.site-bottom-header-wrap.optjup-row-hidden > .site-header-row-container-inner {
  overflow: hidden;
}

.site-bottom-header-wrap.optjup-row-hidden {
  grid-template-rows: 0fr;
  opacity: 0;
}

.optjup-footer-fixed {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 500;
  max-height: 60vh;
  overflow-y: auto;
  background: #ffffff;
  box-shadow: 0 -4px 20px rgba(11, 14, 19, 0.18);
}

.optjup-footer-close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: auto;
  height: auto;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid #e3e0d8;
  background: #ffffff;
  color: #0b0e13;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
}

.optjup-footer-close:hover {
  border-color: #3ecf8e;
  color: #0c6a3d;
}


.optjup-card {
  background: #ffffff;
  border: 1px solid transparent;
  border-radius: 16px;
  overflow: hidden;
  list-style: none;
  transition: border-color 0.2s ease;
  box-shadow: none !important;
}

.optjup-card:hover {
  border-color: #e3e0d8;
}

.single-product .kadence-breadcrumbs {
  display: none !important;
}

.single-product .product_meta {
  display: none !important;
}
.product_meta_mio {
  display: none !important;
}

/* Galería del producto: cuadro fijo de 520x520, la imagen se ve COMPLETA (sin recorte) */
.single-product .woocommerce-product-gallery {
  width: 520px !important;
  max-width: 100%;
}

.single-product .woocommerce-product-gallery .flex-viewport {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 520px !important;
  min-height: 0 !important;
  max-height: 520px !important;
  background: #ffffff;
}

.single-product .woocommerce-product-gallery__image {
  height: 520px;
  background: #ffffff;
}

.single-product .woocommerce-product-gallery__image > a {
  display: block;
  height: 520px;
}

.single-product .woocommerce-product-gallery__image img:not(.zoomImg) {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: contain !important;
  object-position: center;
  display: block;
}
.header-cart-button .header-cart-total {
  font-size: .85em !important;
}

/* ===== Producto agrupado (setups): lista de piezas con aspecto de tarjeta ===== */
.single-product table.woocommerce-grouped-product-list,
.single-product table.woocommerce-grouped-product-list tbody {
  display: block;
  width: 100%;
  border: 0;
}

.single-product tr.woocommerce-grouped-product-list-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: #ffffff;
  border: 1px solid #e3e0d8;
  border-radius: 14px;
  transition: border-color 0.2s ease;
}

.single-product tr.woocommerce-grouped-product-list-item:hover {
  border-color: #3ecf8e;
}

.single-product tr.woocommerce-grouped-product-list-item td {
  display: block;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
}

/* Orden visual: foto + nombre | precio | botón */
.single-product .woocommerce-grouped-product-list-item__label    { order: 1; }
.single-product .woocommerce-grouped-product-list-item__price    { order: 2; }
.single-product .woocommerce-grouped-product-list-item__quantity { order: 3; }

.optjup-grouped-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.optjup-grouped-thumb {
  width: 64px !important;
  height: 64px !important;
  flex: none;
  object-fit: cover;
  border-radius: 10px;
  background: #f5f3ee;
  display: block;
}

.optjup-grouped-name,
.optjup-grouped-name a {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.35;
  color: #0b0e13;
  text-decoration: none;
}

.optjup-grouped-name a:hover {
  color: #0c6a3d;
}

.single-product .woocommerce-grouped-product-list-item__price {
  font-weight: 700;
  font-size: 14.5px;
  color: #0c6a3d;
  white-space: nowrap;
}
/* Botón compacto, casi cuadrado, en dos líneas */
.single-product .woocommerce-grouped-product-list-item__quantity .button {
  display: inline-block !important;
  width: min-content !important;
  min-width: 76px;
  padding: 8px 12px !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 12px !important;
  line-height: 1.25;
  text-align: center;
  white-space: normal !important;
  border-radius: 10px !important;
  background: #414141 !important;
  
  border: none !important;
  box-shadow: none !important;
}

.single-product .woocommerce-grouped-product-list-item__quantity .button:hover {
  background: #35b57c !important;
   color: #0b0e13 !important;
}

@media (max-width: 600px) {
  .single-product tr.woocommerce-grouped-product-list-item {
    grid-template-columns: 1fr auto;
  }
  .single-product .woocommerce-grouped-product-list-item__quantity {
    grid-column: 1 / -1;
    order: 3;
  }
  .single-product .woocommerce-grouped-product-list-item__quantity .button {
    width: 100% !important;
  }
}

/* Corrige el desborde del botón en la lista de piezas del producto agrupado */
.single-product tr.woocommerce-grouped-product-list-item {
  grid-template-columns: minmax(0, 1fr) auto auto;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.single-product tr.woocommerce-grouped-product-list-item td {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  box-sizing: border-box;
}

.single-product .woocommerce-grouped-product-list-item__quantity {
  white-space: nowrap;
}

.single-product .woocommerce-grouped-product-list-item__quantity .button {
  max-width: none !important;
  margin: 0 !important;
}

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
  margin-top: 30px !important;
}

.woocommerce div.product div.summary p {
  margin: 0 !important;
}

.optjup-grouped-item > a {
  display: block;
  flex: none;
}

/* Miniaturas de la galería: debajo del cuadro principal, sin montarse encima */
.single-product .woocommerce-product-gallery .flex-control-thumbs {
  position: relative !important;
  clear: both;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0 !important;
  padding: 0 !important;
  list-style: none;
  background: none !important;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li {
  width: 64px !important;
  height: 64px;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  cursor: pointer;
}

.header-navigation .header-menu-container ul ul li.menu-item.current-menu-item > a {

  background: #d7d7d8 !important;
  
}