/* =========================================================================
   ecommbase — Ficha de producto
   -------------------------------------------------------------------------
   Ámbito: product
   theme.css sigue siendo la base global; aquí van SOLO las customizaciones
   específicas de esta página/sección (sobrescribe la base por especificidad
   y orden de carga definidos en config/theme.yml).
   ========================================================================= */

/* ===== Extraido automaticamente de theme.css (reglas 100% de esta pagina) ===== */

#product #content {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}
#product-description-short ol,
#product-description-short ul {
  padding-left: 0;
  list-style-position: inside;
}
#product-modal .modal-content {
  padding: 0;
  background: 0 0;
  border: 0;
}
#product-modal .modal-content .modal-body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin-left: -35%;
}
#product-modal .modal-content .modal-body .image-caption {
  width: 100%;
  padding: 0.625rem 1.25rem;
  background: #fff;
  border-top: #f6f6f6 1px solid;
}
#product-modal .modal-content .modal-body .mask {
  position: relative;
  z-index: 1;
  max-height: 49.38rem;
  margin-top: 2.188rem;
  overflow: hidden;
}
#product-modal .modal-content .modal-body .mask.nomargin {
  margin-top: 0;
}
#product-modal .modal-content .modal-body .product-images img {
  width: 9.25rem;
  cursor: pointer;
  background: #fff;
}
#product-modal .modal-content .modal-body .product-images img:hover {
  border: #24b9d7 3px solid;
}
#product-modal .modal-content .modal-body .arrows {
  position: absolute;
  top: 0;
  right: 1.875rem;
  z-index: 0;
  width: 100%;
  height: 100%;
  color: #fff;
  text-align: center;
  cursor: pointer;
}
#product-modal .modal-content .modal-body .arrows .arrow-up {
  position: absolute;
  top: -2rem;
  opacity: 0.2;
}
#product-modal .modal-content .modal-body .arrows .arrow-down {
  position: absolute;
  bottom: -2rem;
}
#product-modal .modal-content .modal-body .arrows i {
  display: inline;
  font-size: 6.25rem;
}
#product-availability {
  display: inline;
  margin-top: 0.625rem;
  font-weight: 700;
}
#product-availability .alert {
  font-size: 1rem;
}
#product-availability .alert-content-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 0.75rem;
}
#product-availability .alert-warning .material-icons {
  padding-top: 0;
  margin-right: 0;
  font-size: 24px;
}
#product-details .label {
  font-size: 1rem;
  font-weight: 500;
  color: #232323;
}

.manufacturer-reference {
  display: flex;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgb(90, 69, 53);
  text-transform: uppercase;
  margin: 0px 0px 8px;
  gap: 8px;
}

#product h1 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 900;
  color: var(--color3);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0px 0px 12px;
}
.product-prices span.current-price-value {
  font-size: 36px;
  font-weight: 900;
  color: var(--color3);
  letter-spacing: -0.04em;
}

.tax-shipping-delivery-label {
  display: inline-block;
  padding-left: 10px;
}

/* =========================================================================
   Barra de acción de producto (cantidad + añadir al carrito + wishlist)
   ========================================================================= */
.product-add-to-cart-bar {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 0.75rem;
    padding: 0px;
    margin-top: 0px;
    background-color: #f5f5f5;
    border-radius: 1rem;
}

/* Selector de cantidad */
.qty-selector {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 0.75rem;
  overflow: hidden;
}

.qty-selector .qty-btn {
  width: 2.5rem;
  height: 3rem;
  padding: 0;
  border: none;
  background-color: transparent;
  color: #232323;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-transition: background-color 0.2s;
  -o-transition: background-color 0.2s;
  transition: background-color 0.2s;
}

.qty-selector .qty-btn:hover {
  background-color: #f0f0f0;
}

.qty-selector #quantity_wanted {
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: none;
  border-left: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color3);
  background-color: transparent;
  -moz-appearance: textfield;
}

.qty-selector #quantity_wanted::-webkit-outer-spin-button,
.qty-selector #quantity_wanted::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Oculta los botones verticales que genera TouchSpin por defecto */
.qty-selector .input-group-btn-vertical {
  display: none !important;
}

/* Botón añadir al carrito */
.product-add-to-cart-bar .add {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
}

.product-add-to-cart-bar .add-to-cart {
  width: 100%;
  height: 3rem;
  padding: 0 1rem;
  background-color: var(--color3);
  border-color: var(--color3);
  color: #fff;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 0.5rem;
  -webkit-transition: background-color 0.2s, border-color 0.2s;
  -o-transition: background-color 0.2s, border-color 0.2s;
  transition: background-color 0.2s, border-color 0.2s;
}

.product-add-to-cart-bar .add-to-cart:hover {
  background-color: #1a2d52;
  border-color: #1a2d52;
}

.product-add-to-cart-bar .add-to-cart:disabled {
  background-color: #b0b0b0;
  border-color: #b0b0b0;
  cursor: not-allowed;
}

.product-add-to-cart-bar .add-to-cart .add-to-cart-separator {
  opacity: 0.6;
}

/* Wishlist */
.product-actions-wishlist {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
}

.product-actions-wishlist .mwl-product-action {
  margin-left: 0 !important;
}

.product-actions-wishlist .mwl-product-action .mwl-btn {
  width: 3rem;
  height: 3rem;
  padding: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 0.75rem;
  color: var(--color3);
  cursor: pointer;
  -webkit-transition: background-color 0.2s, border-color 0.2s;
  -o-transition: background-color 0.2s, border-color 0.2s;
  transition: background-color 0.2s, border-color 0.2s;
}

.product-actions-wishlist .mwl-product-action .mwl-btn:hover {
  background-color: #f5f5f5;
  border-color: #c0c0c0;
}

/* =========================================================================
   Acordeón de combinaciones / atributos del producto
   ========================================================================= */
.product-variants {
  margin-bottom: 1.5rem;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 1rem;
  overflow: hidden;
}

.product-variants-item {
  border-bottom: 1px solid #e0e0e0;
}

.product-variants-item:last-child {
  border-bottom: none;
}

.variant-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 1.25rem;
  border: none;
  background-color: #fff;
  color: #232323;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  -webkit-transition: background-color 0.2s;
  -o-transition: background-color 0.2s;
  transition: background-color 0.2s;
}

.variant-header:hover {
  background-color: #fafafa;
}

.variant-header .variant-icon {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  color: var(--color3);
  font-size: 1.25rem;
  display: none;
}

.variant-header .variant-title {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  font-weight: 700;
  color: var(--color3);
}

.variant-header .variant-selected {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
  margin-left: 0.5rem;
  color: #7a7a7a;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  -o-text-overflow: ellipsis;
     text-overflow: ellipsis;
}

.variant-header .variant-toggle {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  color: var(--color3);
  -webkit-transition: -webkit-transform 0.2s;
  transition: -webkit-transform 0.2s;
  -o-transition: transform 0.2s;
  transition: transform 0.2s;
  transition: transform 0.2s, -webkit-transform 0.2s;
}

.product-variants-item.is-open .variant-toggle {
  -webkit-transform: rotate(180deg);
      -ms-transform: rotate(180deg);
          transform: rotate(180deg);
}

.variant-body {
  display: none;
  padding: 0 1.25rem 1.25rem;
}

.product-variants-item.is-open .variant-body {
  display: block;
}

/* Círculos de color dentro del acordeón */
.product-variants .input-color + .color,
.product-variants .input-color + .texture {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 2px solid #e0e0e0;
  -webkit-box-shadow: inset 0 0 0 2px #fff;
          box-shadow: inset 0 0 0 2px #fff;
  -webkit-transition: border-color 0.2s, -webkit-box-shadow 0.2s;
  transition: border-color 0.2s, -webkit-box-shadow 0.2s;
  -o-transition: border-color 0.2s, box-shadow 0.2s;
  transition: border-color 0.2s, box-shadow 0.2s;
  transition: border-color 0.2s, box-shadow 0.2s, -webkit-box-shadow 0.2s;
}

.product-variants .input-color:checked + .color,
.product-variants .input-color:checked + .texture {
  border-color: var(--color3);
  -webkit-box-shadow: inset 0 0 0 3px #fff;
          box-shadow: inset 0 0 0 3px #fff;
}

.product-variants .input-container {
  margin-right: 0.75rem;
  margin-bottom: 0.5rem;
}

/* Nota informativa bajo los colores */
.product-variants .color-note {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: #7a7a7a;
}

/* Responsive */
@media (max-width: 575px) {
  .product-add-to-cart-bar {
    gap: 0.5rem;
    padding: 0.375rem;
  }

  .qty-selector .qty-btn {
    width: 2.25rem;
    height: 2.75rem;
  }

  .qty-selector #quantity_wanted {
    width: 2.75rem;
    height: 2.75rem;
  }

  .product-add-to-cart-bar .add-to-cart {
    height: 2.75rem;
    font-size: 0.9rem;
  }

  .product-actions-wishlist .mwl-product-action .mwl-btn {
    width: 2.75rem;
    height: 2.75rem;
  }
}

/* =========================================================================
   Disponibilidad / entrega
   ========================================================================= */
.available-now-content {
  margin-bottom: 22px;
}

.available-now-content span {
  font-size: 12px;
  color: rgb(61, 138, 90);
  font-weight: 600;
  margin: 0px;
  display: inline-block;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 4px;
  vertical-align: middle;
  position: relative;
  top: -2px;
}
.product-customization .product-customization-item, .product-variants > .product-variants-item {
  margin: 4px 0px 4px;
}
.tabs {
  border-radius: 30px;
}
section.featured-products.clearfix.mt-3 {
  margin: 55px 0px;
}
.titlesubsection{
  margin-bottom: 30px;
  font-size: 25px;
}
@media(max-width: 767px){
  .tabs .nav-tabs .nav-item {
    float: none;
    text-align: center;
    border-bottom: 1px solid var(--color3);
  }
  .featured-products {
    margin-top: 43px;
  }
}
h2.mfuyi-gallery__title {
  margin-bottom: 30px;
  font-size: 25px;
  font-weight: normal;
}
body.product-id-22 .product-prices.js-product-prices, body.product-id-22 .product-informationx, body.product-id-22 .product-add-to-cart.js-product-add-to-cart,body.product-id-22  .social-sharing {
  display: none;
}

/* Slider de accesorios (owl-carousel, ecommowlslider), debajo de "Compartir" en la ficha de producto */
.product-accessories-slider {
  margin-top: 24px;
  position: relative;
}
.product-accessories-slider .h5 {
  margin-bottom: 12px;
  padding-right: 84px;
}
.product-accessories-carousel.owl-carousel .owl-nav [class*="owl-"] {
  top: -40px;
  margin-top: 0;
  width: 32px;
  height: 32px;
  line-height: 28px;
  font-size: 22px;
  border-radius: 50%;
  border: 1px solid #e5ddd2;
  background: #fff;
}
.product-accessories-carousel.owl-carousel .owl-nav [class*="owl-"]:hover {
  background: #fff;
  border-color: #9a744f;
}
.product-accessories-carousel.owl-carousel .owl-nav .owl-prev {
  left: initial;
  right: 40px;
}
.product-accessories-carousel.owl-carousel .owl-nav .owl-next {
  right: 0;
}
.product-accessories-carousel .accessory-item {
  padding: 0 6px;
}
.accessory-item-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
}
.accessory-item-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #eee;
  background: #fff;
}
.accessory-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.accessory-item-name {
  display: block;
  margin-top: 8px;
  font-size: .8rem;
  color: var(--color3);
  line-height: 1.2;
}
.accessory-item-price {
  display: block;
  margin-top: 2px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--color3);
}

/* Icono "Compartir por WhatsApp" (ps_sharebuttons), mismo patrón gris/color-al-hover que facebook/twitter/pinterest */
.whatsapp {
  background-image: url(../img/whatsapp-icon-color.svg);
}
.whatsapp.icon-gray {
  background-image: url(../img/whatsapp-icon-gray.svg);
}
.whatsapp.icon-gray:hover,
.whatsapp::before {
  background-image: url(../img/whatsapp-icon-color.svg);
}
.alert-info {
  background-color: #cba97a;
  border-color: transparent;
  border-radius: 8px;
  color: white;
}

/* =========================================================================
   Pestana "Detalles del producto"
   -------------------------------------------------------------------------
   Tres secciones en tarjetas: Dimensiones, Caracteristicas y Consejos de
   limpieza. El reparto lo hace por ID de caracteristica
   templates/catalog/_partials/product-details.tpl.

   Iconos: --section-icon para la cabecera de cada seccion (data-section) y
   --feature-icon para cada caracteristica (data-feature, que lleva el ID).
   Lo que no tenga icono propio usa el generico.
   ========================================================================= */

.product-feature-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.product-feature-section {
  --section-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a744f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E");
  padding: 20px;
  background: #fff;
  border: 1px solid #f2ede6;
  border-radius: 8px;
}

.product-feature-section__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color3);
}

.product-feature-section__title::before {
  content: "";
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  background-color: #f4efe8;
  background-image: var(--section-icon);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
  border-radius: 8px;
}

.product-feature-section[data-section="dimensiones"] {
  --section-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a744f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.41 2.41 0 0 1 0-3.4l2.6-2.6a2.41 2.41 0 0 1 3.4 0Z'/%3E%3Cpath d='m14.5 12.5 2-2'/%3E%3Cpath d='m11.5 9.5 2-2'/%3E%3Cpath d='m8.5 6.5 2-2'/%3E%3Cpath d='m17.5 15.5 2-2'/%3E%3C/svg%3E");
}

.product-feature-section[data-section="caracteristicas"] {
  --section-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a744f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z'/%3E%3Cpath d='m6.08 9.5-3.5 1.6a1 1 0 0 0 0 1.81l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9a1 1 0 0 0 0-1.83l-3.5-1.59'/%3E%3C/svg%3E");
}

.product-feature-section[data-section="limpieza"] {
  --section-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a744f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.94 15.5A2 2 0 0 0 8.5 14.06l-6.14-1.58a.5.5 0 0 1 0-.96L8.5 9.94A2 2 0 0 0 9.94 8.5l1.58-6.14a.5.5 0 0 1 .96 0L14.06 8.5A2 2 0 0 0 15.5 9.94l6.14 1.58a.5.5 0 0 1 0 .96L15.5 14.06a2 2 0 0 0-1.44 1.44l-1.58 6.14a.5.5 0 0 1-.96 0Z'/%3E%3C/svg%3E");
}

/* --- Caracteristicas dentro de una seccion --- */

.product-feature-list {
  margin: 0;
}

.product-feature {
  --feature-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E");
  display: grid;
  grid-template-columns: 20px 1fr;
  grid-template-areas:
    "icon name"
    "icon value";
  align-items: start;
  column-gap: 10px;
  padding: 11px 0;
  border-top: 1px solid #f6f2ec;
}

.product-feature:first-child {
  padding-top: 0;
  border-top: 0;
}

.product-feature:last-child {
  padding-bottom: 0;
}

.product-feature::before {
  content: "";
  grid-area: icon;
  align-self: center;
  width: 18px;
  height: 18px;
  background-color: #9a744f;
  -webkit-mask: var(--feature-icon) no-repeat center / contain;
  mask: var(--feature-icon) no-repeat center / contain;
}

.product-feature-name {
  grid-area: name;
  margin: 0 0 2px;
  font-size: 0.75rem;
  font-weight: 400;
  color: #7a7a7a;
}

.product-feature-name::after {
  content: ":";
}

.product-feature-value {
  grid-area: value;
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color3);
}

/* --- Consejos de limpieza: lista de vinietas --- */

.product-feature-tips,
.product-feature-tips-html ul,
.product-feature-tips-html ol {
  margin: 0;
  padding-left: 20px;
}

.product-feature-tips,
.product-feature-tips-html ul {
  list-style: disc outside;
}

.product-feature-tips li,
.product-feature-tips-html li {
  margin-bottom: 9px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color3);
}

.product-feature-tips li:last-child,
.product-feature-tips-html li:last-child {
  margin-bottom: 0;
}

/* La descripcion corta que alimenta el fallback puede venir en <p> en vez de en
   lista: mismo cuerpo de texto para que la tarjeta no cambie de aspecto segun
   como este escrita en el back-office. */
.product-feature-tips-html p {
  margin: 0 0 9px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color3);
}

.product-feature-tips-html > :last-child {
  margin-bottom: 0;
}

/* Iconos por ID de caracteristica. Los nombres entre comentarios son los del
   back-office a fecha de 2026-09-02; el ID es lo que manda. */

/* 9 Ancho */
.product-feature[data-feature="9"] {
  --feature-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m18 8 4 4-4 4'/%3E%3Cpath d='M2 12h20'/%3E%3Cpath d='m6 8-4 4 4 4'/%3E%3C/svg%3E");
}

/* 11 Alto */
.product-feature[data-feature="11"] {
  --feature-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 18 4 4 4-4'/%3E%3Cpath d='M12 2v20'/%3E%3Cpath d='m8 6 4-4 4 4'/%3E%3C/svg%3E");
}

/* 12 Profundidad */
.product-feature[data-feature="12"] {
  --feature-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 19H5v-6'/%3E%3Cpath d='M13 5h6v6'/%3E%3Cpath d='M19 5 5 19'/%3E%3C/svg%3E");
}

/* 10 Bultos */
.product-feature[data-feature="10"] {
  --feature-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7.5 4.27 9 5.15'/%3E%3Cpath d='M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z'/%3E%3Cpath d='m3.3 7 8.7 5 8.7-5'/%3E%3Cpath d='M12 22V12'/%3E%3C/svg%3E");
}

/* 1 y 13 Material (hay dos caracteristicas con el mismo nombre) */
.product-feature[data-feature="1"],
.product-feature[data-feature="13"] {
  --feature-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z'/%3E%3Cpath d='m6.08 9.5-3.5 1.6a1 1 0 0 0 0 1.81l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9a1 1 0 0 0 0-1.83l-3.5-1.59'/%3E%3C/svg%3E");
}

/* 14 Certificaciones */
.product-feature[data-feature="14"] {
  --feature-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
}

/* 2 Propiedad */
.product-feature[data-feature="2"] {
  --feature-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z'/%3E%3Ccircle cx='7.5' cy='7.5' r='.5' fill='%23000'/%3E%3C/svg%3E");
}

/* =========================================================================
   Pestana "Archivos" (adjuntos del producto)
   -------------------------------------------------------------------------
   Un enlace por archivo, con icono de libro. El nombre visible sale del
   adjunto (back-office: Catalogo > Archivos), no del nombre del producto.
   ========================================================================= */

.product-attachments .attachment + .attachment {
  margin-top: 10px;
}

.product-attachments .attachment-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #f2ede6;
  border-radius: 8px;
  color: var(--color3);
  font-weight: 600;
  text-decoration: none;
}

.product-attachments .attachment-link:hover {
  border-color: #9a744f;
  color: #9a744f;
  text-decoration: none;
}

.product-attachments .attachment-icon {
  flex: 0 0 auto;
}

.product-attachments .attachment-size {
  font-weight: 400;
  color: #7a7a7a;
}

.product-attachments .attachment-description {
  margin: 6px 0 0;
  font-size: 0.875rem;
  color: #5d4f43;
}

/* Variantes sin efecto acordeon/tabs: se ven todas las opciones a la vez.
   El tema las plegaba (variant-header + variant-body con .is-open y un chevron),
   que venia del diseno de herdasa. Aqui se muestran siempre abiertas y se quita
   el chevron y el comportamiento de clic en la cabecera. */
.product-variants .variant-body,
.product-variants-item .variant-body {
    display: block !important;
    padding: 0 1.25rem 1.25rem;
}
.product-variants .variant-toggle {
    display: none !important;
}
.product-variants .variant-header {
    cursor: default;
    pointer-events: none;
}


/* === Variantes: colores en circulo y tallas en pildora ===================
   PrestaShop solo pone <span class="color" style="background:#xxx"> cuando el
   atributo TIENE color definido; si no, escupe un <span> pelado y se veia como
   una rayita. Aqui se estiliza cualquier span que siga a .input-color, con un
   relleno neutro de reserva, y se saca el nombre del atributo (que venia como
   sr-only) debajo del circulo para poder distinguirlos.
   ======================================================================== */

/* el radio de verdad no se ve: se pincha la etiqueta */
.product-variants .input-color,
.product-variants .input-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.product-variants .variant-body ul {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 14px 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.product-variants .input-container {
    float: none !important;
    margin: 0;
}
.product-variants .input-container label {
    display: block;
    cursor: pointer;
    margin: 0;
}

/* --- Colores: siempre un circulo, haya hex o no --- */
.product-variants .input-container:has(.input-color) {
    margin-bottom: 30px;   /* hueco para el nombre bajo el circulo (hasta 2 lineas) */
    width: 4.75rem;        /* ancho fijo por color: el nombre no invade al vecino */
}
.product-variants .input-container:has(.input-color) label {
    display: flex;
    justify-content: center;
}
.product-variants .input-color + span {
    position: relative;
    display: block;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background-color: #efeae3;        /* reserva cuando el atributo no trae color */
    background-size: cover;
    background-position: center;
    border: 2px solid #e0e0e0;
    box-shadow: inset 0 0 0 2px #fff;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.product-variants .input-container label:hover .input-color + span {
    transform: scale(1.06);
}
.product-variants .input-color:checked + span {
    border-color: var(--color3);
    box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--color3);
}
/* el nombre del color, visible bajo el circulo (venia oculto como sr-only) */
.product-variants .input-color + span .attribute-name {
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    height: auto;
    clip: auto;
    clip-path: none;
    overflow: visible;
    width: 4.75rem;
    white-space: normal;
    overflow-wrap: break-word;
    text-align: center;
    font-size: 0.6875rem;
    line-height: 1.15;
    font-weight: 600;
    color: #7a7a7a;
    margin: 0;
}
.product-variants .input-color:checked + span .attribute-name {
    color: var(--color3);
}

/* --- Tallas y demas: pildoras --- */
.product-variants .input-radio + span {
    display: inline-block;
    min-width: 2.75rem;
    padding: 0.5rem 0.9rem;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.1;
    color: #5d4f43;
    transition: all .2s ease;
}
.product-variants .input-container label:hover .input-radio + span {
    border-color: var(--color3);
    color: var(--color3);
}
.product-variants .input-radio:checked + span {
    background: var(--color3);
    border-color: var(--color3);
    color: #ffffff;
}

/* Pestaña "Detalles del producto" oculta (25-sep-2026, petición de Alfonso).
   Solo se oculta: el bloque #product-details tiene que seguir en el HTML porque
   core.js lee de él los datos del producto al cambiar de talla/color. */
.product-container .tabs .nav-tabs .nav-item:has(> a[href="#product-details"]),
.tabs .nav-tabs a[href="#product-details"] {
    display: none !important;
}
.tabs #product-details.tab-pane {
    display: none !important;
}

/* "Últimas unidades en stock" más discreto (25-sep-2026): sin caja de fondo, solo texto naranja. */
#product-availability .alert.alert-warning {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 6px 0 0 !important;
    color: #e07b39 !important;
    font-size: 14px;
    font-weight: 500;
}
#product-availability .alert-warning .alert-content-wrapper { gap: 6px; align-items: center; }
#product-availability .alert-warning .material-icons,
#product-availability .alert-warning svg {
    color: #e07b39 !important;
    fill: currentColor;
    font-size: 18px;
}

/* "Sin stock" con la misma filosofía (25-sep-2026): sin caja, solo texto (rojo suave). */
#product-availability .alert.alert-danger {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 6px 0 0 !important;
    color: #c65a4a !important;
    font-size: 14px;
    font-weight: 500;
}
#product-availability .alert-danger .alert-content-wrapper { gap: 6px; align-items: center; }
#product-availability .alert-danger .material-icons,
#product-availability .alert-danger svg {
    color: #c65a4a !important;
    fill: currentColor;
    font-size: 18px;
    padding-top: 0;
    margin-right: 0;
}
