/* === /wp-content/plugins/woocommerce/assets/css/photoswipe/photoswipe.min.css === */
.woocommerce img.pswp__img,.woocommerce-page img.pswp__img{max-width:none}button.pswp__button{box-shadow:none!important;background-image:url("/wp-content/plugins/woocommerce/assets/css/photoswipe/default-skin/default-skin.png")!important}button.pswp__button,button.pswp__button--arrow--left::before,button.pswp__button--arrow--right::before,button.pswp__button:hover{background-color:transparent!important}button.pswp__button--arrow--left,button.pswp__button--arrow--left:hover,button.pswp__button--arrow--right,button.pswp__button--arrow--right:hover{background-image:none!important}button.pswp__button--close:hover{background-position:0 -44px}button.pswp__button--zoom:hover{background-position:-88px 0}/*! PhotoSwipe main CSS by Dmitry Semenov | photoswipe.com | MIT license */.pswp{display:none;position:absolute;width:100%;height:100%;left:0;top:0;overflow:hidden;-ms-touch-action:none;touch-action:none;z-index:1500;-webkit-text-size-adjust:100%;-webkit-backface-visibility:hidden;outline:0}.pswp *{-webkit-box-sizing:border-box;box-sizing:border-box}.pswp img{max-width:none}.admin-bar .pswp{height:calc(100% - var(--wp-admin--admin-bar--height,0px));top:var(--wp-admin--admin-bar--height,0)}.pswp--animate_opacity{opacity:.001;will-change:opacity;-webkit-transition:opacity 333ms cubic-bezier(.4,0,.22,1);transition:opacity 333ms cubic-bezier(.4,0,.22,1)}.pswp--open{display:block}.pswp--zoom-allowed .pswp__img{cursor:-webkit-zoom-in;cursor:-moz-zoom-in;cursor:zoom-in}.pswp--zoomed-in .pswp__img{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.pswp--dragging .pswp__img{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.pswp__bg{position:absolute;left:0;top:0;width:100%;height:100%;background:#000;opacity:0;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;will-change:opacity}.pswp__scroll-wrap{position:absolute;left:0;top:0;width:100%;height:100%;overflow:hidden}.pswp__container,.pswp__zoom-wrap{-ms-touch-action:none;touch-action:none;position:absolute;left:0;right:0;top:0;bottom:0}.pswp__container,.pswp__img{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none}.pswp__zoom-wrap{position:absolute;width:100%;-webkit-transform-origin:left top;-ms-transform-origin:left top;transform-origin:left top;-webkit-transition:-webkit-transform 333ms cubic-bezier(.4,0,.22,1);transition:transform 333ms cubic-bezier(.4,0,.22,1)}.pswp__bg{will-change:opacity;-webkit-transition:opacity 333ms cubic-bezier(.4,0,.22,1);transition:opacity 333ms cubic-bezier(.4,0,.22,1)}.pswp--animated-in .pswp__bg,.pswp--animated-in .pswp__zoom-wrap{-webkit-transition:none;transition:none}.pswp__container,.pswp__zoom-wrap{-webkit-backface-visibility:hidden}.pswp__item{position:absolute;left:0;right:0;top:0;bottom:0;overflow:hidden}.pswp__img{position:absolute;width:auto;height:auto;top:0;left:0}.pswp__img--placeholder{-webkit-backface-visibility:hidden}.pswp__img--placeholder--blank{background:#222}.pswp--ie .pswp__img{width:100%!important;height:auto!important;left:0;top:0}.pswp__error-msg{position:absolute;left:0;top:50%;width:100%;text-align:center;font-size:14px;line-height:16px;margin-top:-8px;color:#ccc}.pswp__error-msg a{color:#ccc;text-decoration:underline}
/* === /wp-content/plugins/woocommerce/assets/css/photoswipe/default-skin/default-skin.min.css === */
/*! PhotoSwipe Default UI CSS by Dmitry Semenov | photoswipe.com | MIT license */.pswp__button{width:44px;height:44px;position:relative;background:0 0;cursor:pointer;overflow:visible;-webkit-appearance:none;display:block;border:0;padding:0;margin:0;float:left;opacity:.75;-webkit-transition:opacity .2s;transition:opacity .2s;-webkit-box-shadow:none;box-shadow:none}.pswp__button:focus,.pswp__button:hover{opacity:1}.pswp__button:active{outline:0;opacity:.9}.pswp__button::-moz-focus-inner{padding:0;border:0}.pswp__ui--over-close .pswp__button--close{opacity:1}.pswp__button,.pswp__button--arrow--left:before,.pswp__button--arrow--right:before{background:url("/wp-content/plugins/woocommerce/assets/css/photoswipe/default-skin/default-skin.png") 0 0 no-repeat;background-size:264px 88px;width:44px;height:44px}@media (-webkit-min-device-pixel-ratio:1.1),(-webkit-min-device-pixel-ratio:1.09375),(min-resolution:105dpi),(min-resolution:1.1dppx){.pswp--svg .pswp__button,.pswp--svg .pswp__button--arrow--left:before,.pswp--svg .pswp__button--arrow--right:before{background-image:url("/wp-content/plugins/woocommerce/assets/css/photoswipe/default-skin/default-skin.svg")}.pswp--svg .pswp__button--arrow--left,.pswp--svg .pswp__button--arrow--right{background:0 0}}.pswp__button--close{background-position:0 -44px}.pswp__button--share{background-position:-44px -44px}.pswp__button--fs{display:none}.pswp--supports-fs .pswp__button--fs{display:block}.pswp--fs .pswp__button--fs{background-position:-44px 0}.pswp__button--zoom{display:none;background-position:-88px 0}.pswp--zoom-allowed .pswp__button--zoom{display:block}.pswp--zoomed-in .pswp__button--zoom{background-position:-132px 0}.pswp--touch .pswp__button--arrow--left,.pswp--touch .pswp__button--arrow--right{visibility:hidden}.pswp__button--arrow--left,.pswp__button--arrow--right{background:0 0;top:50%;margin-top:-50px;width:70px;height:100px;position:absolute}.pswp__button--arrow--left{left:0}.pswp__button--arrow--right{right:0}.pswp__button--arrow--left:before,.pswp__button--arrow--right:before{content:'';top:35px;background-color:rgba(0,0,0,.3);height:30px;width:32px;position:absolute}.pswp__button--arrow--left:before{left:6px;background-position:-138px -44px}.pswp__button--arrow--right:before{right:6px;background-position:-94px -44px}.pswp__counter,.pswp__share-modal{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.pswp__share-modal{display:block;background:rgba(0,0,0,.5);width:100%;height:100%;top:0;left:0;padding:10px;position:absolute;z-index:1600;opacity:0;-webkit-transition:opacity .25s ease-out;transition:opacity .25s ease-out;-webkit-backface-visibility:hidden;will-change:opacity}.pswp__share-modal--hidden{display:none}.pswp__share-tooltip{z-index:1620;position:absolute;background:#fff;top:56px;border-radius:2px;display:block;width:auto;right:44px;-webkit-box-shadow:0 2px 5px rgba(0,0,0,.25);box-shadow:0 2px 5px rgba(0,0,0,.25);-webkit-transform:translateY(6px);-ms-transform:translateY(6px);transform:translateY(6px);-webkit-transition:-webkit-transform .25s;transition:transform .25s;-webkit-backface-visibility:hidden;will-change:transform}.pswp__share-tooltip a{display:block;padding:8px 12px;color:#000;text-decoration:none;font-size:14px;line-height:18px}.pswp__share-tooltip a:hover{text-decoration:none;color:#000}.pswp__share-tooltip a:first-child{border-radius:2px 2px 0 0}.pswp__share-tooltip a:last-child{border-radius:0 0 2px 2px}.pswp__share-modal--fade-in{opacity:1}.pswp__share-modal--fade-in .pswp__share-tooltip{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0)}.pswp--touch .pswp__share-tooltip a{padding:16px 12px}a.pswp__share--facebook:before{content:'';display:block;width:0;height:0;position:absolute;top:-12px;right:15px;border:6px solid transparent;border-bottom-color:#fff;-webkit-pointer-events:none;-moz-pointer-events:none;pointer-events:none}a.pswp__share--facebook:hover{background:#3e5c9a;color:#fff}a.pswp__share--facebook:hover:before{border-bottom-color:#3e5c9a}a.pswp__share--twitter:hover{background:#55acee;color:#fff}a.pswp__share--pinterest:hover{background:#ccc;color:#ce272d}a.pswp__share--download:hover{background:#ddd}.pswp__counter{position:relative;left:0;top:0;height:44px;font-size:13px;line-height:44px;color:#fff;opacity:.75;padding:0 10px;margin-inline-end:auto}.pswp__caption{position:absolute;left:0;bottom:0;width:100%;min-height:44px}.pswp__caption small{font-size:11px;color:#bbb}.pswp__caption__center{text-align:left;max-width:420px;margin:0 auto;font-size:13px;padding:10px;line-height:20px;color:#ccc}.pswp__caption--empty{display:none}.pswp__caption--fake{visibility:hidden}.pswp__preloader{width:44px;height:44px;position:absolute;top:0;left:50%;margin-left:-22px;opacity:0;-webkit-transition:opacity .25s ease-out;transition:opacity .25s ease-out;will-change:opacity;direction:ltr}.pswp__preloader__icn{width:20px;height:20px;margin:12px}.pswp__preloader--active{opacity:1}.pswp__preloader--active .pswp__preloader__icn{background:url("/wp-content/plugins/woocommerce/assets/css/photoswipe/default-skin/preloader.gif") 0 0 no-repeat}.pswp--css_animation .pswp__preloader--active{opacity:1}.pswp--css_animation .pswp__preloader--active .pswp__preloader__icn{-webkit-animation:clockwise .5s linear infinite;animation:clockwise .5s linear infinite}.pswp--css_animation .pswp__preloader--active .pswp__preloader__donut{-webkit-animation:donut-rotate 1s cubic-bezier(.4,0,.22,1) infinite;animation:donut-rotate 1s cubic-bezier(.4,0,.22,1) infinite}.pswp--css_animation .pswp__preloader__icn{background:0 0;opacity:.75;width:14px;height:14px;position:absolute;left:15px;top:15px;margin:0}.pswp--css_animation .pswp__preloader__cut{position:relative;width:7px;height:14px;overflow:hidden}.pswp--css_animation .pswp__preloader__donut{-webkit-box-sizing:border-box;box-sizing:border-box;width:14px;height:14px;border:2px solid #fff;border-radius:50%;border-left-color:transparent;border-bottom-color:transparent;position:absolute;top:0;left:0;background:0 0;margin:0}@media screen and (max-width:1024px){.pswp__preloader{position:relative;left:auto;top:auto;margin:0;float:right}}@-webkit-keyframes clockwise{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes clockwise{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes donut-rotate{0%{-webkit-transform:rotate(0);transform:rotate(0)}50%{-webkit-transform:rotate(-140deg);transform:rotate(-140deg)}100%{-webkit-transform:rotate(0);transform:rotate(0)}}@keyframes donut-rotate{0%{-webkit-transform:rotate(0);transform:rotate(0)}50%{-webkit-transform:rotate(-140deg);transform:rotate(-140deg)}100%{-webkit-transform:rotate(0);transform:rotate(0)}}.pswp__ui{-webkit-font-smoothing:auto;visibility:visible;opacity:1;z-index:1550}.pswp__top-bar{position:absolute;left:0;top:0;height:44px;width:100%;display:flex;justify-content:flex-end}.pswp--has_mouse .pswp__button--arrow--left,.pswp--has_mouse .pswp__button--arrow--right,.pswp__caption,.pswp__top-bar{-webkit-backface-visibility:hidden;will-change:opacity;-webkit-transition:opacity 333ms cubic-bezier(.4,0,.22,1);transition:opacity 333ms cubic-bezier(.4,0,.22,1)}.pswp--has_mouse .pswp__button--arrow--left,.pswp--has_mouse .pswp__button--arrow--right{visibility:visible}.pswp__caption,.pswp__top-bar{background-color:rgba(0,0,0,.5)}.pswp__ui--fit .pswp__caption,.pswp__ui--fit .pswp__top-bar{background-color:rgba(0,0,0,.3)}.pswp__ui--idle .pswp__top-bar{opacity:0}.pswp__ui--idle .pswp__button--arrow--left,.pswp__ui--idle .pswp__button--arrow--right{opacity:0}.pswp__ui--hidden .pswp__button--arrow--left,.pswp__ui--hidden .pswp__button--arrow--right,.pswp__ui--hidden .pswp__caption,.pswp__ui--hidden .pswp__top-bar{opacity:.001}.pswp__ui--one-slide .pswp__button--arrow--left,.pswp__ui--one-slide .pswp__button--arrow--right,.pswp__ui--one-slide .pswp__counter{display:none}.pswp__element--disabled{display:none!important}.pswp--minimal--dark .pswp__top-bar{background:0 0}
/* === /wp-content/themes/tictac/assets/style/single-product.css === */

  /* Oculta el texto original y pone FORMATO mediante contenido generado */
  .clase-fija-formato {
    visibility: hidden;
    /* Oculta el texto "LITROS" */
    position: relative;
  }

  .clase-fija-formato::after {
    content: "FORMATO:";
    /* Inyecta el texto deseado */
    visibility: visible;
    position: absolute;
    left: 0;
    top: 0;
    white-space: nowrap;
  }

  /* === DISEÑO Relacionados COMPRADOS JUNTOS === */
  /* LIMPIEZA DE PRECIOS NATIVOS (WOOCOMMERCE) */
  .summary .price,
  .woocommerce-variation-price,
  .entry-summary .price {
    display: none !important;
    visibility: hidden !important;
  }

  /* CONTENEDOR PRINCIPAL (CENTRADO Y ANCHO OPTIMIZADO) */
  .fbt-relacion-container {
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 15px;
    border: 1px solid #eee;
    max-width: 900px;
    width: 95%;
    box-sizing: border-box;
    text-align: center;
  }

  .fbt-header-title {
    font-size: 22px;
    font-weight: 700;
    margin-top: 10px;
    margin-bottom: 30px;
    color: #1a4a2e;
    text-transform: uppercase;
    line-height: 1.3;
  }


  /* LAYOUT DE PRODUCTOS (CENTRADO) */
  .fbt-flex-layout {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    flex-wrap: nowrap;
  }

  .fbt-media {
    accent-color: #57994e;
    position: relative;
  }

  /* TARJETAS DE PRODUCTO */
  .fbt-card {
    flex: 0 1 170px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    margin-bottom: 10px;
  }


  .fbt-card:hover {
    transform: translateY(-5px);
    border-color: #f9b132 !important;
  }

  .fbt-card.selected {
    border: 1px solid #7272723b;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  }

  .fbt-card:not(.selected) {
    opacity: 0.5;
    filter: grayscale(0.5);
  }

  .fbt-img-wrapper img {
    width: 100%;
    max-width: 140px;
    aspect-ratio: 1/1;
    object-fit: contain;
    margin-bottom: 10px;
  }

  .fbt-product-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #1a4a2e;
    margin: 10px 0;
    height: 34px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  /* PRECIO SIMPLE */
  .fbt-price {
    font-size: 25px !important;
    font-weight: 800;
    color: #ffffff !important;
    padding: 8px 12px;
    border-color: #60A956 !important;
    border-bottom-right-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
    background: #60a956 !important;
  }

  .fbt-plus {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #7c7c7c;
    font-weight: 300;
  }

  /* 5. RESUMEN Y BOTÓN (TOTALMENTE CENTRADO) */
  .fbt-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-width: 200px;
  }

  .fbt-total-text {
    font-size: 20px;
    color: #777;
    margin-bottom: 5px;
    font-weight: 600;
  }

  #fbt-total-val {
    font-size: 26px;
    font-weight: 800;
    color: #1A4A2E;
    margin-bottom: 20px;
  }

  #fbt-submit-btn {
    background: #f9b132 !important;
    color: #1a4d2e !important;
    border: none;
    padding: 12px 45px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 16px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
  }

  #fbt-submit-btn:hover {
    background: #1a4d2e !important;
    color: #f9b132 !important;
  }

  /* 6. RESPONSIVE (MÓVIL Y TABLET) */
  @media (max-width: 768px) {
    .fbt-flex-layout {
      flex-wrap: wrap;
      gap: 15px;
    }

    .fbt-card {
      flex: 1 1 calc(50% - 15px);
      max-width: calc(50% - 15px);
    }

    .fbt-plus {
      display: none;
    }

    .fbt-summary {
      width: 100%;
      margin-top: 20px;
      padding: 15px;
      border-top: 1px dashed #eee;
    }
  }

  @media (max-width: 480px) {
    .fbt-relacion-container {
      padding: 20px 10px;
      width: 98%;
    }

    .fbt-header-title {
      font-size: 15px !important;
      margin-bottom: 15px;
    }

    .fbt-card {
      padding: 10px 5px;
      min-height: auto;
    }

    .fbt-img-wrapper img {
      max-width: 100px;
    }

    .fbt-product-name {
      font-size: 12px;
      height: 32px;
      margin: 5px 0;
    }

    .fbt-price {
      font-size: 15px;
      padding: 4px 10px;
    }

    .fbt-total-text {
      font-size: 16px;
    }

    #fbt-total-val {
      font-size: 22px;
      margin-bottom: 15px;
    }

    #fbt-submit-btn {
      width: 100%;
      padding: 14px 20px;
      font-size: 15px;
    }
  }

  /* === DISEÑO Productos Recomendados === */
  /* PRODUCTOS RECOMENDADOS */
  .fbt-Recomendados-container {
    margin: 40px 0;
    border-top: 1px solid #eee;
    padding-top: 25px;
    clear: both;
  }

  .fbt-Recomendados-header {
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    color: #1a4d2e;
    margin-bottom: 25px;
    text-transform: uppercase;
  }

  .fbt-Recomendados-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
  }

  .fbt-Recomendados-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    top: 0;
    box-sizing: border-box;
  }

  .fbt-Recomendados-card:hover .fbt-Recomendados-box {
    top: -8px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
    border-color: #f9b132;
  }

  .fbt-Recomendados-img {
    width: 100%;
    aspect-ratio: 1/1;
    margin-bottom: 15px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
  }

  .fbt-Recomendados-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
  }

  .fbt-Recomendados-name {
    font-size: 18px;
    text-align: center;
    color: #1a4d2e;
    font-weight: 700;
    margin: 10px 0;
    line-height: 1.3;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* CAJÓN DEL PRECIO (MANTENIDO FIJO) */
  .fbt-Recomendados-price {
    text-align: center;
    font-weight: 800;
    font-size: 20px;
    color: white !important;
    background: #60A956;
    padding: 5px 12px;
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
    margin: 10px auto 12px;
    display: table;
    flex-shrink: 0;
  }

  /* BOTÓN VER PRODUCTO */
  .fbt-Recomendados-action {
    width: 100%;
    flex-shrink: 0;
  }

  .fbt-btn-view {
    background: #f9b132 !important;
    color: #1a4d2e !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 0;
    border-radius: 6px;
    font-weight: 800;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.3s ease;
  }

  .fbt-btn-view:hover {
    background: #2A4D31 !important;
    color: #f9b132 !important;
  }

  /* RESPONSIVE */
  @media screen and (max-width: 768px) {
    .attribute-button {
      flex: 1 1 calc(50% - 10px);
      max-width: calc(50% - 10px);
    }

    .fbt-Recomendados-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
    }

    .main-image {
      height: 400px;
    }

    .fbt-Recomendados-box {
      padding: 12px;
    }

    .fbt-btn-view {
      font-size: 12px;
      padding: 10px 0;
    }
  }


  /* === ESTILOS PARA CONTROL DE STOCK === */
  .main-image {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
  }

  .main-image img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 700px;
    object-fit: cover;
    display: block;
  }

  .main-image:hover img {
    transform: scale(1.5);
  }

  .main-image.zoom-active {
    cursor: zoom-out;
  }

  /* Estilos para botones deshabilitados */
  .btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }

  .price-placeholder {
    color: #888;
    font-style: italic;
  }

  /* Estilos para opciones deshabilitadas */
  .variation-select option:disabled {
    color: #ccc !important;
    font-style: italic !important;
    background-color: #f8f8f8 !important;
  }

  /* Estilos para miniaturas dinámicas */
  .thumbnail-item {
    cursor: pointer;
    transition: opacity 0.3s ease;
  }

  .thumbnail-item:hover {
    opacity: 0.8;
  }

  .thumbnail-item.active {
    border: 2px solid #007cba;
    opacity: 1;
  }

  /* Etiqueta de sin stock en la imagen */
  .product-badge.out-of-stock {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }

  /* Mensaje de estado de stock */
  .stock-status {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 15px 0;
    font-size: 14px;
    font-weight: 500;
  }

  .stock-status .stock-icon {
    margin-right: 8px;
    font-size: 16px;
  }

  .stock-status.out-of-stock-message {
    background-color: #fff5f5;
    border: 1px solid #fed7d7;
    color: #c53030;
  }

  .stock-status.low-stock-message {
    background-color: #fffaf0;
    border: 1px solid #fbd38d;
    color: #dd6b20;
  }

  /* Botones deshabilitados por falta de stock */
  .btn.disabled,
  .btn.out-of-stock {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: white !important;
  }

  .single_add_to_cart_button {
    pointer-events: none !important;
    opacity: 0 !important;
  }

  .btn.disabled:hover,
  .btn.out-of-stock:hover {
    opacity: 0.5 !important;
    transform: none !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
  }

  /* Controles de cantidad deshabilitados ===*/
  .quantity-controls.disabled {
    opacity: 0.5;
    pointer-events: none;
  }

  .quantity-controls.disabled button,
  .quantity-controls.disabled input {
    cursor: not-allowed;
    background-color: #f8f9fa;
    color: #6c757d;
  }

  /* Animación para botones cargando */
  .button-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
  }

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

  /*=== Estilos para efecto Lupa ===*/
  .main-image {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
    width: 100%;
    height: 700px;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .main-image img {
    transition: transform 0.2s ease-out;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transform-origin: center center;
  }

  .main-image:hover img {
    transform: scale(2);
  }

  .main-image.zoom-active {
    cursor: zoom-out;
  }

  /*=== Estilos para botones deshabilitados ===*/
  .btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }

  .price-placeholder {
    color: #888;
    font-style: italic;
  }

  /*=== Estilos para opciones deshabilitadas ===*/
  .variation-select option:disabled {
    color: #ccc !important;
    font-style: italic !important;
    background-color: #f8f8f8 !important;
  }

  /*=== Estilos para miniaturas dinámicas ===*/
  .thumbnail-item {
    cursor: pointer;
    transition: opacity 0.3s ease;
  }

  .thumbnail-item:hover {
    opacity: 0.8;
  }

  .thumbnail-item.active {
    border: 2px solid #007cba;
    opacity: 1;
  }

  /*=== Estilos para usos y aplicaciones === */
  .usos-aplicaciones-container {
    width: 100%;
    margin: 20px 0;
    border-radius: 4px;
    overflow: hidden;
  }

  .usos-header {
    display: flex;
    background-color: #60a956;
    color: white;
    font-weight: bold;
  }

  .usos-header-tipo,
  .usos-header-uso {
    padding: 10px 15px;
    flex: 1;
  }

  .usos-aplicaciones-row {
    display: flex;
    border-bottom: 1px solid #eee;
  }

  .usos-aplicaciones-row:last-child {
    border-bottom: none;
  }

  /*=== Estilos para labels === */
  .quantity-label,
  .attribute-label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
    text-transform: uppercase;
  }

  .quantity-wrapper {
    margin-right: 20px;
  }

  .attribute-row {
    margin-bottom: 0;
  }
	
	/* ============================= */
/* ESTIMACIÓN DE ENTREGA - NEXUM */
/* ============================= */

.nexum-delivery-estimate {
  width: 100%;
  margin: 18px 0 22px;
  padding: 0;
  box-sizing: border-box;
}

/* Contenedor generado por el plugin */
.nexum-delivery-estimate .wpced {
  width: 100%;
  margin: 0;
}

/* Caja visual principal */
.nexum-delivery-estimate .wpced-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 14px 18px 14px 52px;

  background: #f7fbf4;
  border: 1px solid rgba(96, 169, 86, 0.35);
  border-left: 5px solid #60A956;
  border-radius: 14px;

  color: #1A4D2E;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;

  box-shadow: 0 6px 18px rgba(26, 77, 46, 0.06);
}

/* Icono decorativo */
.nexum-delivery-estimate .wpced-inner::before {
  content: "🚚";
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);

  width: 24px;
  height: 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
}

/* Resalta visualmente la fecha si el plugin la pinta dentro */
.nexum-delivery-estimate .wpced-inner strong,
.nexum-delivery-estimate .wpced-inner b {
  color: #60A956;
  font-weight: 800;
}

/* Página de producto */
.nexum-delivery-estimate-product {
  margin-top: 0;
  margin-bottom: 20px;
}

/* Checkout */
.nexum-delivery-estimate-checkout {
  margin: 20px 0 24px;
}

.nexum-delivery-estimate-checkout .wpced-inner {
  background: #ffffff;
  border: 1px solid rgba(26, 77, 46, 0.16);
  border-left: 5px solid #F9B132;
  color: #1A4D2E;
}

/* Variante compacta en móvil */
@media screen and (max-width: 768px) {
  .nexum-delivery-estimate {
    margin: 15px 0 18px;
  }

  .nexum-delivery-estimate .wpced-inner {
    padding: 13px 14px 13px 48px;
    font-size: 14px;
    border-radius: 12px;
  }

  .nexum-delivery-estimate .wpced-inner::before {
    left: 15px;
    font-size: 17px;
  }
}

  /* Contenedor del scroll */
  .fbt-slider-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Suavidad en iPhone */
  }

  #fbt-slider {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: hidden !important;
    /* O 'auto' si quieres que el usuario use el dedo */
    scroll-behavior: smooth;
    /* Refuerza la suavidad */
    -webkit-overflow-scrolling: touch;
  }

  /* Ajuste del Grid para que sea una línea infinita */
  .fbt-Recomendados-grid.carrusel-activo {
    display: flex !important;
    /* Cambiamos grid por flex para el carrusel */
    flex-wrap: nowrap !important;
    gap: 20px;
  }

  /* Tamaño fijo de las tarjetas en el carrusel */
  .fbt-Recomendados-card {
    flex: 0 0 280px;
    /* Cada tarjeta medirá 280px y no se encogerá */
    min-width: 280px;
  }

  /* Ocultar la barra de scroll (opcional, queda más limpio) */
  .fbt-slider-wrapper::-webkit-scrollbar {
    height: 6px;
  }

  .fbt-slider-wrapper::-webkit-scrollbar-thumb {
    background: #F9B233;
    /* Tu amarillo */
    border-radius: 10px;
  }

  .fbt-slider-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
  }




  /*=== Estilos para el deslizador de los Productos que te pueden interesar === */
  /* === CONTENEDOR DE LAS FLECHAS === */
  .fbt-slider-main {
    position: relative;
    padding: 0 50px;
    display: flex;
    align-items: center;
  }

  /* === ESTILO GENERAL DE LAS FLECHAS === */
  .fbt-arrow {
    background-color: #F9B233 !important;
    color: #2a4e31 !important;
    border: none !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 25% !important;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px !important;
    line-height: 1;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  }

  /* Efecto Hover */
  .fbt-arrow:hover {
    background-color: #2a4e31 !important;
    color: #F9B233 !important;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  }

  /* Posición exacta de cada flecha */
  .fbt-prev {
    left: 0;
  }

  .fbt-next {
    right: 0;
  }

  /* Ajuste de los símbolos para que no se vean "raros" */
  .fbt-prev::before,
  .fbt-next::before {
    content: none !important;
  }

  /* Bloqueo técnico y visual del botón */
  .fbt-disabled {
    pointer-events: none !important;
    opacity: 0.7 !important;
    cursor: default !important;
    filter: white !important;
    color: black !important;
  }

  /* Opcional: Evita que el efecto hover funcione mientras está bloqueado */
  .fbt-arrow.fbt-disabled:hover {
    transform: translateY(-50%) scale(1) !important;
    background-color: #F9B233 !important;
    color: #2a4e31 !important;
  }

  /* === RESPONSIVE === */
  @media (max-width: 768px) {
    .fbt-slider-main {
      padding: 0;
    }

    .fbt-arrow {
      width: 35px !important;
      height: 35px !important;
      font-size: 16px !important;
    }
  }


  /*=== Controles de cantidad Habilitados ===*/
  /* 1. Evitamos que lo que sobre se vea */
  .fbt-slider-wrapper {
    overflow: hidden !important;
    /* Esconde los productos 5, 6, 7... */
    width: 100%;
    display: block;
  }

  /* 2. Configuramos la fila infinita */
  .fbt-Recomendados-grid.carrusel-activo {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    /* Obliga a todos a estar en una sola línea */
    gap: 20px;
    /* Espacio entre cada producto */
    width: 100%;
    margin: 0;
    padding: 10px 0;
  }

  /* 3. Forzamos que cada tarjeta ocupe exactamente 1/4 del contenedor */
  .fbt-Recomendados-card {
    /* 25% es 1/4 del ancho. Restamos 15px para compensar el espacio (gap) */
    flex: 0 0 calc(25% - 15px) !important;
    min-width: calc(25% - 15px) !important;
    max-width: calc(25% - 15px) !important;
    box-sizing: border-box;
  }

  /* 4. Aseguramos que las imágenes no deformen la tarjeta */
  .fbt-Recomendados-img img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
  }

  /* Contenedor del scroll */
  .fbt-slider-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }

  /* === AJUSTE RESPONSIVE === */

  /* En Tablets mostramos solo 2 productos */
  @media (max-width: 1024px) {
    .fbt-Recomendados-card {
      flex: 0 0 calc(50% - 10px) !important;
      min-width: calc(50% - 10px) !important;
    }
  }

  /* En Móvil mostramos solo 1 producto para que se vea bien */
  @media (max-width: 600px) {
    .fbt-Recomendados-card {
      flex: 0 0 100% !important;
      min-width: 100% !important;
    }
  }

  /* === BOTONES DE ATRIBUTOS OPTIMIZADOS === */
  /* CONTENEDOR DE BOTONES */
  .attribute-buttons-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    margin: 20px 0;
  }

  /* ETIQUETA DEL NOMBRE */
  .fbt-option-label {
    width: 100%;
    display: block;
    word-wrap: break-word;
    /* Rompe palabras si son muy largas */
    font-size: 14px !important;
    /* Ajustado para consistencia */
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
  }

  /* Ajuste del Grid para que sea una línea infinita */
  .fbt-Recomendados-grid.carrusel-activo {
    display: flex !important;
    /* Cambiamos grid por flex para el carrusel */
    flex-wrap: nowrap !important;
    gap: 20px;
  }

  /* Tamaño fijo de las tarjetas en el carrusel */
  .fbt-Recomendados-card {
    flex: 0 0 280px;
    /* Cada tarjeta medirá 280px y no se encogerá */
    min-width: 280px;
  }

  /* Ocultar la barra de scroll (opcional, queda más limpio) */
  .fbt-slider-wrapper::-webkit-scrollbar {
    height: 6px;
  }

  .fbt-slider-wrapper::-webkit-scrollbar-thumb {
    background: #F9B233;
    /* Tu amarillo */
    border-radius: 10px;
  }

  .fbt-slider-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
  }

  /* BASE DEL BOTÓN (FILAS VERTICALES Y CENTRADO) */
  .attribute-button {
    margin-top: 4px !important;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 5px;
    min-height: 85px;
    gap: 6px;
    max-width: calc(33.33% - 10px);
    border: 2px solid #e2e8f0;
    background-color: #ffffff;
    color: #2A4E31;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.1s cubic-bezier(0.23, 1, 0.32, 1);
    box-sizing: border-box;
    text-align: center;
    overflow: hidden;
  }

  /* Forzar números en blanco (WooCommerce ins/del) */
  .fbt-option-price ins,
  .fbt-option-price del,
  .fbt-option-price span,
  .fbt-option-price .woocommerce-Price-amount {
    background: transparent !important;
    background-color: transparent !important;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    display: inline-block !important;
    text-align: center;
  }

  /* Precio antiguo (tachado) */
  .fbt-option-price del .woocommerce-Price-amount {
    color: #E15729 !important;
    text-decoration: line-through !important;
    font-size: 15px;
    margin-right: 4px;
  }

  /* Hover: Amarillo */
  .attribute-button:hover:not(:disabled):not(.active) {
    transform: translateY(1px);
    border-color: #f9b132 !important;
    background-color: transparent;
  }

  /* Activo: Verde Seleccionado */
  .attribute-button.active {
    color: white !important;
    background-color: #60a9567a !important;
    border-color: #60a956;
    box-shadow: 0 4px 12px rgba(96, 169, 86, 0.3);
  }

  .attribute-button.active .fbt-option-price {
    border-top-color: rgba(255, 255, 255, 0.3) !important;
  }

  /* RESPONSIVE (2 COLUMNAS EN MÓVIL) */
  @media screen and (max-width: 600px) {
    .attribute-button {
      flex: 1 1 calc(50% - 10px);
      max-width: calc(50% - 10px);

      min-height: 80px;
      padding: 12px 4px;
    }

    .fbt-option-label {
      font-size: 11.5px;
    }

    .fbt-option-price ins,
    .fbt-option-price .woocommerce-Price-amount {
      font-size: 9.5px !important;
      white-space: nowrap;
    }

    .fbt-option-label {
      width: 100%;
      display: block;
      word-wrap: break-word;
      font-size: 9.5px !important;
      font-weight: 700;
      text-transform: uppercase;
      line-height: 1.1;
    }
  }


  /* 6. ESTADO DESHABILITADO */
  .attribute-button:disabled {
    opacity: 0.5;
    color: #E15729 !important;
    background-color: #fcf8f8;
    border-style: dashed;
    cursor: not-allowed;
  }


  /* === VALORACIÓN de clientres === */
  /* 1. CONTENEDOR PRINCIPAL (ANCHO Y VERDE) */
  .product-reviews-section {
    margin: 40px auto;
    width: 80%;
    max-width: 1900px;
    padding: 50px;
    background-color: #5EAA4D !important;
    border-radius: 20px;
    color: #ffffff !important;
    box-sizing: border-box;
    text-align: center;
  }

  /* Título y Subtítulo */
  .reviews-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
  }

  .reviews-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.9;
  }

  /* 2. SISTEMA DE ESTRELLAS Y RECUADROS */
  .review-rating-stars {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
  }

  .review-rating-stars span {
    font-size: 45px;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 8px;
    transition: 0.3s;
  }

  .review-rating-stars span.active,
  .review-rating-stars span:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.2);
  }

  /* FILAS Y CAMPOS BLANCOS */
  .formularioopinionesfila {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
  }

  .product-reviews-section input[type="text"],
  .product-reviews-section input[type="email"],
  .product-reviews-section textarea {
    flex: 1;
    background-color: #F2F2F2 !important;
    /* Blanco suave */
    border: none !important;
    border-radius: 12px !important;
    padding: 18px 25px !important;
    color: #333 !important;
    /* Texto oscuro para leer bien */
    font-size: 15px !important;
    box-sizing: border-box !important;
  }

  .product-reviews-section ::placeholder {
    color: #999 !important;
  }

  /* 3. PIE: POLÍTICA Y BOTÓN NARANJA */
  .form-row-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
  }

  .legal-checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
  }

  .legal-checkbox-container input {
    accent-color: #f9b132;
    transform: scale(1.3);
  }

  /* BOTÓN NARANJA */
  .submit-review-button {
    background-color: #F9B132 !important;
    color: #1A4D2E !important;
    border: none;
    padding: 18px 80px !important;
    min-width: 280px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 16px;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }

  .submit-review-button:hover {
    background-color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  }

  /* --- 4. LISTADO DE valoraciones --- */
  .product-reviews-list-title {
    margin-top: 10px;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 40px;
    text-align: center;
    text-transform: uppercase;
    color: #1A4D2E !important;
  }

  .product-reviews-list {
    margin: 80px auto;
    max-width: 1900px;
    padding: 0 25px;
  }

  .opiniones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
  }

  .opinion-item {
    background: #ffffff;
    border: 1px solid #f0f4f2;
    border-radius: 20px;
    padding: 25px;
  }

  /* CONFIGURACIÓN DEL CONTENEDOR Y VISIBILIDAD */
  .product-reviews-list {
    max-width: 1100px;
    /* Un poco más estrecho para que los 3 contenedores se vean compactos */
    margin: 0 auto;
    overflow: visible !important;
    /* Vital para que las estrellas no se corten */
    padding-bottom: 60px;
  }

  .opiniones-slider {
    width: 100%;
    overflow: visible !important;
    /* Vital para el badge superior */
    padding: 50px 0 !important;
    /* Espacio arriba para que el badge tenga sitio */
  }

  /* FORZAR TAMAÑO UNIFORME (TODOS IGUALES) */
  .swiper-wrapper {
    display: flex !important;
    align-items: stretch !important;
    /* Estira todas las tarjetas a la misma altura */
  }

  .swiper-slide {
    height: auto !important;
    display: flex !important;
  }

  /* TARJETA DE OPINIÓN (opinion-card-final) */
  .opinion-card-final {
    background: #ffffff;
    padding: 40px 25px 25px 25px;
    border-radius: 20px;
    border: 2px solid #43a047;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    transition: all 0.3s ease;
    cursor: pointer;
  }

  .opinion-card-final:hover {
    border-color: #F9B233 !important;
    border-radius: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
  }

  /* CÁPSULA DE ESTRELLAS (BADGE QUE ATRAVIESA EL BORDE) */
  .stars-capsule {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    padding: 8px 25px;
    border-radius: 50px;
    border: 2px solid #43a047;
    color: #F9B233;
    font-size: 24px;
    line-height: 1;
    display: inline-block;
    white-space: nowrap;
    z-index: 10;
    transition: border-color 0.3s ease;
  }

  .opinion-card-final:hover .stars-capsule {
    border-color: #F9B233 !important;
  }

  /* CUERPO, NOMBRE Y TEXTO */
  .opinion-body {
    width: 100%;
  }

  .opinion-card-final strong.reviewer-name {
    color: #003300;
    display: block;
    margin-bottom: 10px;
    font-size: 1.1em;
    text-transform: capitalize;
  }

  .opinion-card-final {
    height: 100%;
  }

  .opinion-text p {
    color: #555;
    font-size: 0.95em;
    line-height: 1.5;
    margin: 0;
  }

  /*  PAGINACIÓN */
  .swiper-pagination-bullet {
    background: #43a047 !important;
    opacity: 0.5;
  }

  .swiper-pagination-bullet-active {
    background: #F9B233 !important;
    opacity: 1 !important;
    border-radius: 5px;
  }


  /*  EL CONTENEDOR QUE LIMITA LA VISTA */
  .opiniones-slider {
    width: 100%;
    /* Ocultamos lo que sale por los lados (otros slides) */
    overflow: hidden !important;
    /* Damos espacio arriba para las estrellas */
    padding: 60px 0 30px 0 !important;
    position: relative;
  }

  /*  ASEGURAR QUE LOS SLIDES SEAN HIJOS DEL ANCHO DEL CONTENEDOR */
  .swiper-wrapper {
    display: flex !important;
    align-items: stretch !important;
  }


  /* --- 5. AJUSTE MÓVIL --- */
  @media screen and (max-width: 900px) {

    /* Unificamos el comportamiento de las filas de campos */
    .formularioopinionesfila {
      flex-direction: column;
      gap: 15px;
    }

    /* El pie del formulario pasa a ser vertical y centrado */
    .form-row-footer {
      flex-direction: column;
      text-align: center;
      padding: 30px 20px;
      gap: 25px;
    }

    /* Las acciones (estrellas y botón) ocupan el ancho total */
    .footer-actions {
      flex-direction: column;
      width: 100%;
      gap: 20px;
    }

    /* El botón se adapta sin estar comprimido */
    .submit-review-button {
      width: 100%;
      max-width: 400px;
      /* Limite para que no sea infinito en tablets */
      min-width: unset;
      /* Quitamos el mínimo para que no desborde */
      padding: 18px 20px !important;
    }

    /* Ajuste de la rejilla de opiniones para que no queden estrechas */
    .opiniones-grid {
      grid-template-columns: 1fr;
    }
  }

  @media screen and (max-width: 600px) {

    /* Ajustes específicos para móviles pequeños */
    .product-reviews-section {
      padding: 30px 15px;
      border-radius: 15px;
    }

    .reviews-title {
      font-size: 24px;
    }

    /* Reducimos un poco el tamaño de las estrellas para que no rompan la fila */
    .review-rating-stars span {
      font-size: 35px;
      padding: 5px 10px;
    }

    .footer-actions {
      flex-direction: column;
      align-items: center;
      gap: 15px;
    }

    .submit-review-button {
      width: 100%;
      max-width: 100%;
    }

    .legal-checkbox-container {
      font-size: 13px;
      justify-content: center;
    }
  }



  /*=== Botones de desplazar imagenes ===*/
  /* Contenedor central de los botones */
  .gallery-navigation-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    /* Reducido un poco el espacio entre ellos */
    margin-top: 10px;
    /* Reducido el margen superior */
    width: 100%;
  }

  /* Estilo general de ambos botones (MÁS PEQUEÑOS) */
  .btn-prev-gallery,
  .btn-next-gallery {
    background-color: #F9B233 !important;
    color: #2a4e31 !important;
    border: none !important;
    /* Aseguramos que no haya bordes extra */

    /* Ajuste de tamaño */
    width: 32px !important;
    /* Antes eran más grandes o automáticos */
    height: 32px !important;
    /* Antes eran más grandes o automáticos */
    font-size: 14px !important;
    /* Flecha más pequeña */

    border-radius: 8px;
    /* Ajustado proporcionalmente al tamaño */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }

  /* Efecto al pasar el ratón */
  .btn-prev-gallery:hover,
  .btn-next-gallery:hover {
    background-color: #2a4e31 !important;
    color: #F9B233 !important;
    transform: scale(1.1);
  }

  /* Limpieza de contenidos extra */
  .btn-prev-gallery::before,
  .btn-next-gallery::before {
    content: none !important;
  }

  /*responsive para los botones de navegación */
  /* === RESPONSIVE: BOTONES AL FINAL === */
  @media (max-width: 768px) {

    /* El contenedor padre debe ser flex para usar 'order' */
    .product-gallery {
      display: flex !important;
      flex-direction: column !important;
    }

    /* 1. Imagen principal arriba */
    .main-image-wrapper {
      order: 1 !important;
    }

    /* 2. Galería de miniaturas en medio */
    /* Ajustamos para que en móvil sea scroll horizontal */
    .thumbnails-column,
    .thumbnails-scroll-container,
    div:has(> .thumbnail-item) {
      order: 2 !important;
      width: 100% !important;
      display: flex !important;
      flex-direction: row !important;
      overflow-x: auto !important;
      overflow-y: hidden !important;
      max-height: none !important;
      margin-top: 15px !important;
      gap: 10px !important;
      padding-bottom: 10px !important;
    }

    /* 3. Botones de navegación debajo de todo */
    .gallery-navigation-buttons {
      order: 3 !important;
      margin-top: 15px !important;
      margin-bottom: 20px !important;
      justify-content: center !important;
    }

    /* Tamaño cómodo para pulsar con el dedo en móvil */
    .btn-prev-gallery,
    .btn-next-gallery {
      width: 38px !important;
      height: 38px !important;
      font-size: 16px !important;
    }
  }

  /* === RESPONSIVE: BOTONES AL FINAL === */
  @media (max-width: 768px) {

    /* El contenedor padre debe ser flex para usar 'order' */
    .product-gallery {
      display: flex !important;
      flex-direction: column !important;
    }

    /* 1. Imagen principal arriba */
    .main-image-wrapper {
      order: 1 !important;
    }

    /* 2. Galería de miniaturas en medio */
    /* Ajustamos para que en móvil sea scroll horizontal */
    .thumbnails-column,
    .thumbnails-scroll-container,
    div:has(> .thumbnail-item) {
      order: 2 !important;
      width: 100% !important;
      display: flex !important;
      flex-direction: row !important;
      overflow-x: auto !important;
      overflow-y: hidden !important;
      max-height: none !important;
      margin-top: 15px !important;
      gap: 10px !important;
      padding-bottom: 10px !important;
    }

    /* 3. Botones de navegación debajo de todo */
    .gallery-navigation-buttons {
      order: 3 !important;
      margin-top: 15px !important;
      margin-bottom: 20px !important;
      justify-content: center !important;
    }

    /* Tamaño cómodo para pulsar con el dedo en móvil */
    .btn-prev-gallery,
    .btn-next-gallery {
      width: 38px !important;
      height: 38px !important;
      font-size: 16px !important;
    }
  }

  /* responsive botones de fotos */
  @media (max-width: 768px) {

    /* Forzamos el contenedor padre */
    .product-gallery {
      display: flex !important;
      flex-direction: column !important;
      height: auto !important;
    }

    /* 1. Imagen principal */
    .main-image-wrapper {
      order: 1 !important;
      position: relative !important;
      z-index: 1 !important;
      margin-bottom: 10px !important;
    }

    /* 2. Galería de miniaturas (Corregida) */
    .thumbnails-column,
    .thumbnails-scroll-container,
    .product-gallery div:has(> .thumbnail-item) {
      order: 2 !important;
      width: 100% !important;
      display: flex !important;
      flex-direction: row !important;
      /* Fila horizontal */
      flex-wrap: nowrap !important;
      /* Evita que bajen a otra fila */
      overflow-x: auto !important;
      /* Scroll horizontal */
      overflow-y: hidden !important;
      max-height: 120px !important;
      /* Limitamos altura para que no pise nada */
      margin: 10px 0 !important;
      padding: 5px 0 15px 0 !important;
      position: relative !important;
      z-index: 1 !important;
      -webkit-overflow-scrolling: touch;
    }

    /* 3. Botones de navegación (Debajo de todo y limpios) */
    .gallery-navigation-buttons {
      order: 3 !important;
      display: flex !important;
      justify-content: center !important;
      gap: 20px !important;
      width: 100% !important;
      margin-top: 10px !important;
      margin-bottom: 20px !important;
      clear: both !important;
      /* Limpia cualquier flotado */
      position: relative !important;
      z-index: 10 !important;
      /* Asegura que estén por encima de cualquier sombra o borde */
    }

    /* Aseguramos que los botones no se deformen */
    .btn-prev-gallery,
    .btn-next-gallery {
      width: 40px !important;
      height: 40px !important;
      flex: 0 0 40px !important;
      /* Evita que el flex los aplaste */
      font-size: 16px !important;
    }

    /* Evitamos que las fotos individuales tengan márgenes que estorben */
    .thumbnail-item {
      flex: 0 0 80px !important;
      margin: 0 5px !important;
    }
  }

  /* Ajuste específico para móvil */
  @media (max-width: 768px) {

    .main-image,
    .main-image img {
      max-height: 300px !important;
      height: 300px !important;
    }
  }


  /*=== Responsive resto del codigo ===*/
  @media screen and (max-width: 768px) {
    .quantity-wrapper {
      margin-right: 0;
      margin-bottom: 20px;
      width: 100%;
    }

    .attribute-row {
      width: 100%;
    }

    .attribute-button {
      padding: 8px 16px;
      font-size: 12px;
    }
  }

  .usos-aplicaciones-cell {
    padding: 10px 15px;
    flex: 1;
    font-size: 24px;
    color: black;
    font-family: 'Poppins-Regular';
  }

  @media screen and (max-width: 768px) {
    .usos-header {
      display: none;
    }

    .usos-aplicaciones-row {
      flex-direction: column;
      margin-bottom: 15px;
      border: 1px solid #eee;
      border-radius: 4px;
    }

    .usos-aplicaciones-cell {
      padding: 10px;
    }

    .cultivo-cell {
      background-color: #f9f9f9;
      font-weight: bold;
      position: relative;
    }

    .cultivo-cell::before {
      content: "CULTIVO:";
      display: block;
      font-size: 14px;
      color: #60a956;
      margin-bottom: 5px;
    }

    .plaga-cell::before {
      content: "PLAGAS:";
      display: block;
      font-size: 14px;
      color: #60a956;
      margin-bottom: 5px;
    }
  }
