/* =====================================================
   GENERAL RESET & UTILIDADES
===================================================== */
.woocommerce span.onsale {
  display: none !important;
}


/* Oculta imagen destacada nativa (la del servidor) */
.single-product .woocommerce-product-gallery {
  display: none;
}

.stock-status {
  font-size: 14px;
  color: #2e7d32;
  margin-top: 10px;
  font-weight: 500;
}
.stock-status strong {
  color: #1b5e20;
}




/* =====================================================
   LAYOUT EN DOS COLUMNAS (Galería + Info)
===================================================== */
.product-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
}

.product-gallery {
  flex: 1 1 50%;
  max-width: 600px;
}

.product-info {
  flex: 1 1 45%;
  max-width: 500px;
}

@media (max-width: 768px) {
  .product-layout {
    flex-direction: column;
    padding: 0 20px;
  }

  .product-gallery,
  .product-info {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* =====================================================
   boton whastapp
===================================================== */

.whatsapp-help {
  display: inline-flex;
  align-items: center;
  background-color: #25D366;
  color: white;
  padding: 10px 15px;
  border-radius: 25px;
  font-size: 16px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease;
  margin:4px;
}
.whatsapp-help:hover {
  background-color: #1ebc59;
}


/* =====================================================
    categorias
===================================================== */
/* Cambiar color del botón "Agregar al carrito" en categoría de productos */
.woocommerce.archive .button,
.woocommerce-page.archive .button {
  background-color: #f4d03f !important;
  border-color: #f4d03f !important;
  color: #000 !important;
  font-weight: bold;
}

/* Cambiar color del botón cuando pasas el cursor */
.woocommerce.archive .button:hover,
.woocommerce-page.archive .button:hover {
  background-color: #e0c035 !important;
  border-color: #e0c035 !important;
  color: #000 !important;
}



/* =====================================================
    productos realcionados 
===================================================== */

.mis-productos-relacionados {
  margin-top: 10px;
  margin-bottom: 20px;
}
.related-title {
  font-size: 24px;
  margin-bottom: 20px;
}
.mis-productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.producto {
  background: #fff;
  padding: 5px;
  padding-top: 1px;
  
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  text-align: center;
}
.producto-img {
  height: 200px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.producto-img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.producto-titulo {
  font-size: 12px;
  height: 2.8em;
  line-height: 1.4em;
  overflow: hidden;
  margin: 10px 0;
}
.producto-precio {
  display: block;
  font-weight: bold;
  margin-bottom: 10px;
}
.button.custom-cart {
  background-color: #f4d03f;
  color: #000;
  padding: 5px 19px;
  padding-top:11px;
  font-size: 12px;
  line-height: 1.2;
  border-radius: 12px;
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  min-height: 36px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  transition: background-color 0.2s ease;
}

.button.custom-cart:hover {
  background-color: #005bbf;
}

.contenedor-productos-relacionados {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .mis-productos-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}


/* =====================================================
   carousel img
===================================================== */


.myThumbsGallery {
  margin-top: 10px;
  width: 100%;
 
}
.myThumbsGallery .swiper-slide {
  width: auto;
  opacity: 0.5;
  transition: opacity 0.3s;

  
}
.myThumbsGallery .swiper-slide-thumb-active,
.thumbnail-image.active-thumb {
  opacity: 1;

}
.thumbnail-image {
  width: 90px;
  height: 90px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
}


@media (min-width: 768px) {
  .myThumbsGallery .swiper-wrapper {
    justify-content: center; /* En desktop: centrar thumbs si hay espacio */
  }
}




/* =====================================================
   TÍTULO return-policy 
===================================================== */
.return-policy {
  display: flex;
  align-items: center;
  margin-top: 3px;
  margin-bottom:3px;
  color: #000;
  font-size: 14px;
  gap: 8px;
  
}

@media (max-width: 768px) {
    
    .return-policy {

  font-size: 14px;
  color: green;
   margin-top: 4px;
  margin-bottom:4px;
  
  
}
 
}

.return-policy .ui-pdp-icon {
  min-width: 18px;
  min-height: 18px;
  fill: #000;
}


/* =====================================================
   TÍTULO DEL PRODUCTO
===================================================== */
.product-title h1 {
  font-size: 30px;
  font-weight: 600;
  color: #000;
  text-align: left;
  line-height: 1.2;
  word-break: break-word;
  margin: 0 auto 15px;
  max-width: 600px;         /* Igual al ancho máximo de la galería */
  margin: 0 auto 15px;      /* Centrado horizontal */
  padding: 0 50px;
}

@media (max-width: 768px) {
  .product-title h1 {
    font-size: 24px;
    padding: 0 0px;
    margin: 0 auto 20px;
    
  }
}

/* =====================================================
   DESCRIPCICON DEL PRODUCTO
===================================================== */

.woocommerce-product-details__short-description,
.woocommerce-Tabs-panel--description {
  text-align: justify;
  color: #000;
  font-size: 16px;
  line-height: 1.6;
}

/* =====================================================
   PRECIO DEL PRODUCTO
===================================================== */
.product-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  font-size: 2.2rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 1rem;
  padding: 0.5rem 0.1rem;
}

.product-price del,
.product-price ins {
  display: inline-block;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -1.7px;
}

.product-price del {
  color: #000;
  text-decoration: line-through;
  font-size: 1rem;
}

.product-price ins {
  color: #000;
  font-size: 2.5rem;
}

/* =====================================================
   MENSAJES: ENVÍO Y DESCUENTO
===================================================== */
.shipping-message,
.checkout-discount-message {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  background-color: #eafaf1;
  padding: 8px 12px;
  border-left: 4px solid #27ae60;
  border-radius: 4px;
  color: #1e8449;
  margin-bottom: 10px;
}

.shipping-message {
  font-size: 1.5rem;
  color: #26b500;
}

/* =====================================================
   BOTONES PERSONALIZADOS
===================================================== */
.product-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.product-buttons .button,
.product-buttons button.single_add_to_cart_button {
  width: 100%;
  text-align: center;
  padding: 12px 20px;
  font-size: 1.3rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Estilos individuales */
.product-buttons .custom-cart {
  background-color: #0071e3;
}
.product-buttons .custom-cart:hover {
  background-color: #005bb5;
}

.product-buttons .buy-now {
  background-color: #28a745;
}
.product-buttons .buy-now:hover {
  background-color: #1e7e34;
}

.product-pago-en-casa .pago-en-casa {
  background-color: #ffd814;
}

.product-pago-en-casa .pago-en-casa:hover {
  background-color: #ffa41c;
}

/* Ocultar botón default de WooCommerce */
.product-add-to-cart button.single_add_to_cart_button {
  display: none;
}

.product-pago-en-casa .pago-en-casa {
  background-color: #ffd814;
  color: #444444 !important; /* Texto negro */
}

.product-pago-en-casa .pago-en-casa:hover {
  background-color: #ffa41c;
  color: #444444 !important; /* Mantener negro al pasar el mouse */
}

/* =====================================================
   carousel img
===================================================== */


.myThumbsGallery {
  margin-top: 10px;
  width: 100%;
 
}
.myThumbsGallery .swiper-slide {
  width: auto;
  opacity: 0.5;
  transition: opacity 0.3s;

  
}
.myThumbsGallery .swiper-slide-thumb-active,
.thumbnail-image.active-thumb {
  opacity: 1;

}
.thumbnail-image {
  width: 90px;
  height: 90px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
}


@media (min-width: 768px) {
  .myThumbsGallery .swiper-wrapper {
    justify-content: center; /* En desktop: centrar thumbs si hay espacio */
  }
}


/* =====================================================
   GALERÍA Y MINIATURAS
===================================================== */
.myProductGallery {
  max-width: 500px;
  margin: 0 auto 20px;
}

.myProductGallery .swiper-slide img {
  height: 500px;           /* Ajusta según tu diseño */
  width: 100%;
  object-fit: contain;   /* Contiene toda la imagen */
  background: #fff;   /* Fondo de relleno */
  border-radius: 10px;
}



.myProductGallery .swiper-slide img {
  width: 100%;
  border-radius: 10px;
}

.external-image-carousel-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.thumbnail-image {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.thumbnail-image:hover {
  border-color: #000;
}
.thumbnail-image.active-thumb {
  border: 4px solid #0073e6;
}

/* Galería sticky en desktop */
@media (min-width: 1024px) {
  .product-gallery {
    position: sticky;
    top: 100px;
    align-self: flex-start;
  }
}

/* =====================================================
   INFO DEL PRODUCTO
===================================================== */
.product-info {
  flex: 1 1 40%;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-left: 12px;
}

/* =====================================================
   SELECTOR DE CANTIDAD
===================================================== */
.custom-quantity {
  display: inline-flex;
  align-items: center;
  margin: 10px 0 5px;
}

.custom-quantity .quantity {
  display: flex;
  align-items: center;
  border: 2px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
}

.custom-quantity .quantity input.qty {
  text-align: center;
  border: none;
  font-size: 16px;
}

.custom-quantity .quantity button {
  background: #f0f0f0;
  border: none;
  padding: 0 10px;
  cursor: pointer;
  font-size: 18px;
}
.custom-quantity .quantity button:hover {
  background: #ddd;
}


/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 768px) {
  .product-gallery,
  .product-info {
    max-width: 100%;
    flex: 1 1 100%;
  }
  
    .product-layout {
    flex-direction: column;
  }

  .flexy-pills {
    display: none !important;
  }

  .flexy-arrow-prev,
  .flexy-arrow-next {
    width: 28px;
    height: 28px;
    font-size: 20px;
  }
  
    .myProductGallery .swiper-slide img {
    height: 390px; /* más bajo en móvil */
  }

  .external-image-carousel-thumbs {
    justify-content: center;
    gap: 8px;
  }
  
  .thumbnail-image.active-thumb {
  border: 3px solid #0073e6;
}

  .thumbnail-image {
    width: 70px;
    height: 70px;
  }
}




@media (min-width: 1024px) {
  .product-gallery {
    position: static;
  }
}
