
.delivery-setup-modal .form-controls button {
    color: white;
}

/* ==========================================================================
   UTILIDADES GENERALES
   ========================================================================== */

.with-loader-container {
  position: relative;
}

.loader {
  width: 1rem;
  height: 1rem;
  border: 2px solid #e5e7eb;
  border-top: 2px solid var(--button-bg, #333);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loader-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.loader-overlay.hidden {
  display: none;
}


/* Oculto al inicio */
.preload-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Visible mientras carga */
.preload-visible {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.4s ease;
}

/* Se oculta después de cargar */
.preload-visible.preload-done {
  opacity: 0;
  pointer-events: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;     /* Firefox */
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;             /* Chrome, Safari and Opera */
}

select#sort-select {
  padding-left: 35px !important;
}

.bootic-modal {
    z-index: 100000000!important;
}

.bg-blur {
    background-color: #eeeeee75;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px); /* Necesario para Safari */
}


user-menu-container {
    z-index: 1000;
}

@media (min-width: 1024px) {
.fixed-header div#product-images-wrapper,
.fixed-header div#product-content {
    top: 105px;
}
}


/* quitar margin */
.add-to-cart-component, .add-to-cart-component-container, .add_to_cart {
    width: 100%;
    margin: 0;
    min-height: 60px;
}
#product-images .siema-container > div {
    padding: 0;
}

#product-images .siema-container > div{
    min-height: 60vh;
}

.gallery-pagination {
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Oculta scrollbar en Firefox */
}


.gallery-bullet {
  width: 1.5rem;           /* equivalente a w-6 */
  height: 0.25rem;         /* equivalente a h-1 */    /* mx-0.5 */
  transition: opacity 0.3s ease; /* transition-opacity */
  border: none;
  cursor: pointer;
  flex-shrink: 0; 
  border-radius: 4px;
  margin: 0;
}

.main-gallery-section .gallery-bullet.active {
  background-color: var(--button-bg); /* bg-opacity-100 */
}

.gallery-bullet.active {
  background-color: var(--button-bg);
}

.gallery-bullet {
  background-color: #e5e7eb;
}


#product-images button.gallery-bullet {
  height: 75px;
  width: 75px;
  min-width: 75px;
  opacity: 0.7;
  transition: all 0.2s ease;
}

#product-images .gallery-container[data-thumbs="true"] .gallery-bullet.active {
  border: 1px solid black;
  height: 80px;
  width: 80px;
  min-width: 80px;
  opacity: 1;
  transition: all 0.1s ease;
}




/* aún necessario para main y galerpuas, y product 

.gallery-wrapper.ready {
    height: auto;
}

.gallery-wrapper.ready .skeleton-templates,
.gallery-wrapper .siema-container {
    opacity: 0;
    transition: opacity 1s ease 1s;
}

.gallery-wrapper .siema-container {
    opacity: 0;
    height: 0;
    pointer-events: none;
}

.gallery-wrapper.ready .siema-container {
    opacity: 1;
    transition: opacity 0.4s ease 0.5s;
    height: 100%!important;
    pointer-events: all;
}

/* aún necessario para main y galerpuas, y product */


/*HACK reemplzao skeletons - hack más escalable y ligero  */

.in-carousel.max-per-row-1{
    width: 100%!important;
  }


@media screen and (min-width: 768px) {
  .gallery-wrapper:not(.ready) .in-carousel.max-per-row-4 {
    width: calc(25% - 0.25rem);
  }

  .gallery-wrapper:not(.ready) .in-carousel.max-per-row-3 {
    width: calc(33% - 0.25rem);
  }

  .gallery-wrapper:not(.ready) .in-carousel.max-per-row-2 {
    width: calc(50% - 0.25rem);
  }


  /* Mostrar solo los primeros N elementos en pantallas grandes */
  .in-carousel.max-per-row-2:nth-child(-n+2),
  .in-carousel.max-per-row-3:nth-child(-n+3),
  .in-carousel.max-per-row-4:nth-child(-n+4),
  .in-carousel.max-per-row-5:nth-child(-n+5),
  .in-carousel.max-per-row-6:nth-child(-n+6) {
    display: inline-flex;
  }
}

.in-carousel.item-1.hidden{
    display: inline-flex!important;
  }

  .gallery-wrapper.ready .in-carousel.hidden{
    display: inline-flex;
  }


@media screen and (max-width: 767px) {
  .gallery-wrapper:not(.ready) .in-carousel.min-per-row-4 {
    width: calc(25% - 0.25rem);
  }

  .gallery-wrapper:not(.ready) .in-carousel.min-per-row-3 {
    width: calc(33% - 0.25rem);
  }

  .gallery-wrapper:not(.ready) .in-carousel.min-per-row-2 {
    width: calc(50% - 0.25rem);
  }

  /* Mostrar solo los primeros N elementos en pantallas pequeñas */
  .in-carousel.min-per-row-2:nth-child(-n+2),
  .in-carousel.min-per-row-3:nth-child(-n+3),
  .in-carousel.min-per-row-4:nth-child(-n+4),
  .in-carousel.min-per-row-5:nth-child(-n+5) {
    display: inline-flex!important;
  }
}


/* ahora que los botones prev y next  no van arriba junto al title como sucedía con swiper 
no es necesario el css abolsuote en style.css */
.align-titles-center .section-title {
    margin: auto;
    position: relative !important;
    left: auto !important;
    transform: none !important;
}

@media screen and (max-width: 768px) {
  a#logo img {
    max-width: 100%;
}}


@media screen and (min-width: 768px) {
.delivery-setup-modal > div {
  width: 650px!important;
  margin-left: -350px !important;
}}


a.fave-icon {
    background-color: white;
    padding: 15px;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 100%;
}



.widget-promotions .promo-card {
    width: 100%;
}

.widget-promotions span.promo-discount {
    width: 25%;
    font-weight: 500;
}


/* prices vol discount modo pack*/

span.bootic-price-with-completing-discount {
    display: flex;
    flex-direction: column-reverse;
}

#price-on-img span.bootic-price-with-completing-discount {
    align-items: flex-end;
}

#price-on-img span,
#price-on-img .bootic-price-comparison,
#price-on-img span.vol-discount-completing-price strong, 
#price-on-img span.vol-discount-completing-price  {
    color: white;
}

#price-on-img .span.vol-discount-completing-price strong{
    font-weight: 400;
}

.product-meta .bootic-price-comparison, 
.product-meta span.vol-discount-completing-price  {
    line-height: normal;
    font-weight: 400;
    font-size: 16px;
}

span.vol-discount-completing-price strong {
    font-weight: 600;;
    font-size: 16px;
}

#price-on-img .bootic-price-comparison  {
    font-size: 12px;
    line-height: 18px;
}

span.vol-discount-completing-price,
#price-on-img span.bootic-price-with-completing-discount span.bootic-price,
#price-on-img span.bootic-price span.price-from,
#price-on-img span.bootic-price span.price-from {
    font-size: 12px;
}

.product-meta strike.bootic-price-comparison,
.product-meta span.bootic-price-comparison-box:before {
    font-size: 0.75rem;
    color: #4d4d4d;
}

span.vol-discount-completing-price-container {
    font-size: 0!important;
    line-height: normal;
}

.with-vol-discount span.bootic-price-comparison-box {
    display: none;
}

.bootic-price-with-completing-discount span.bootic-price:before,
.product-item.has_price_comparison span.bootic-price-comparison-box:before{
    content: "Regular: ";
}

.product-item:not(.has_price_comparison) span.bootic-price-comparison-box:before {
    display: none;
}

.bootic-price-with-completing-discount span.bootic-price:after {
    content: " c/u";
}

span.bootic-price-with-completing-discount span.bootic-price span.price-from{
    display: none;
}

#product-main span.vol-discount-completing-price strong {
    font-weight: 600;;
    font-size: 1.875rem;
}


#product-main .bootic-price-with-completing-discount span.bootic-price,
#product-main span.bootic-price-comparison-box.shown,
#product-main strike.bootic-price-comparison,
#product-main span.bootic-price-comparison-box:before {
    font-size: 1.125rem;
    color: #475569;
}



/*product-item - prices vol discount*/

.product-meta span.vol-discount-completing-price {
    font-size: 1rem;
    font-weight: 400;
}

.product-meta .bootic-price-with-completing-discount span.bootic-price {
    font-size: 0.75rem;
    color: #4d4d4d;
    line-height: 18px;
}

span.bootic-price-comparison-box {
    line-height: normal;
}

.bootic-price {
    letter-spacing: 0rem!important;
}


/* ==========================================================================
 carrusel productos asociados al desc x vol
   ========================================================================== */


div#more-in-vol .product-prices.prices,
div#more-in-vol span.vol-discount-completing-price-container strong {
    font-size: 14px;
}

div#more-in-vol .bootic-price-with-completing-discount span.bootic-price{
    font-size: 10px;
    color: #b5b5b5;
}

.minimalist div#more-in-vol .bootic-price-with-completing-discount span.bootic-price{
    color: white
}

div#more-in-vol .product-image {
    height: 170px;
    aspect-ratio: 1 / 1;
}

/* ==========================================================================
   PAGINACIÓN
   ========================================================================== */

.pagination .current,
.pagination .next_page:last-of-type {
  color: var(--header-bg-color, #111);
  border: none;
}

.pagination .previous_page:first-of-type {
  background: var(--header-bg-color, #111);
  color: var(--header-link-color, #71717a);
}

.pagination .previous_page.disabled, .pagination .next_page.disabled {
    display: none;
}


/* ==========================================================================
   comparar
   ========================================================================== */

.compare_products.active {
    position: absolute;
    background-image: linear-gradient(180deg, hsl(var(--primary) / 0.3), hsl(var(--primary) / 0));
    top: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 11;
}

.list-view .compare_products.active {
    background: linear-gradient(130deg, hsl(var(--primary) / 0.3), hsl(var(--primary) / 0));
}

.compare_products label.choose-product {
    background: white;
    left: inherit;
    top: inherit;
    bottom: inherit;
    position: inherit;
}


label.choose-product {
    display: none;
}

.compare-button {
    border: none;
    padding: 0;
}

/* ==========================================================================
   modal de productos 
   ========================================================================== */

.widget-promotions-container h3 {
    line-height: 1.5rem;
}


.matching-products .product-in-modal {
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  max-height: none;
  height: auto;
  gap: 16px;
}

.matching-products .product-in-modal-image {
    max-height: none;
    width: 50%;
    height: auto;
    max-width: none;
}

.matching-products .product-in-modal-image img {
    
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.matching-products .product-in-modal-main{
    margin-left: unset!important;
    width: 50%;
    justify-content: space-between;
    padding: 0.5rem;
}

.matching-products .product-in-modal .product-in-modal-main-top,
.matching-products .product-in-modal .product-in-modal-main-bottom {
    margin: 0;
}

a.product-in-modal-vendor-link {
    display: block;
    font-size: 12px;
}

.product-in-modal-name-and-price span.bootic-price-with-completing-discount {
    font-size: 12px;
}

.matching-products .product-in-modal-main-bottom .volume-discount-notice.below {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.matching-products .product-in-modal .product-in-modal-status {
    display: none;
}