/* --- ESTILOS PARA WOOCOMMERCE --- */

/* --- Estilos para las Tarjetas de Producto --- */
.woocommerce ul.products li.product {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.woocommerce ul.products li.product:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  z-index: 10;
}

/* Color del título del producto */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: #212529;
}
.woocommerce ul.products li.product a:hover .woocommerce-loop-product__title {
  color: #212529;
}

/* Botón "Leer más" (personalizado) */
.btn-custom-naranja {
  background-color: #da6517  !important;
  border-color: #f39c12 !important;
  color: #ffffff !important;
  transition: all 0.3s ease;
}
.btn-custom-naranja:hover {
  background-color: #da6517 !important; /* Ajusta este color si quieres uno más claro */
  border-color: #f1c40f !important;
  color: #ffffff !important;
}

/* --- Estilos para la Etiqueta "¡Oferta!" --- */
.woocommerce span.onsale {
  background-color: #a52f48 !important;
  color: #ffffff !important;
  font-weight: bold !important;
  padding: 0.2em 0.6em !important;
  border-radius: 4px !important;
  font-size: 0.8em !important;
  line-height: 1.5 !important;
  min-height: auto !important;
  min-width: auto !important;
  position: absolute !important;
  margin: 0 !important;
  z-index: 9 !important;
}
/* Posicionamiento en la tienda */
body.woocommerce ul.products li.product span.onsale {
  top: 0.5em !important;
  right: 0.5em !important;
  left: auto !important;
}
/* Posicionamiento en el detalle */
body.single-product div.product span.onsale {
  top: 10px !important;
  left: 10px !important;
  right: auto !important;
}

/* --- Estilos para la Página de Detalle del Producto --- */
/* Justificar descripción corta */
.woocommerce div.product .woocommerce-product-details__short-description {
  text-align: justify;
}
/* Margen superior del formulario de compra */
.woocommerce div.product form.cart {
  margin-top: 2rem;
}
/* Botón "Agregar al carrito" */
.woocommerce div.product form.cart .single_add_to_cart_button {
  background-color: #f17725 !important;
  border-color: #f39c12 !important;
  color: #ffffff !important;
  border-radius: 5px;
  padding: 10px 24px;
  transition: all 0.3s ease;
}
.woocommerce div.product form.cart .single_add_to_cart_button:hover {
  background-color: #e79908 !important;
  border-color: #f1c40f !important;
  color: #ffffff !important;
}
/* Ocultar título H2 en la pestaña descripción */
.woocommerce #tab-description h2 {
  display: none !important;
}

/* --- Cambiar Color y Tamaño del Precio --- */
.woocommerce ul.products li.product .price {
  color: #a52f48 !important;
  font-weight: bold !important;
  font-size: 0.9em !important;
}
.woocommerce div.product p.price {
  color: #a52f48 !important;
  font-size: 1.1em !important;
  font-weight: bold !important;
}
.woocommerce ul.products li.product .price del,
.woocommerce div.product p.price del {
  color: #6c757d !important;
  opacity: 0.7 !important;
  font-size: 0.8em !important;
}

/* --- Estilos para Botones de Finalización (Carrito y Checkout) --- */
a.wc-block-components-button.wc-block-cart__submit-button,
.wc-block-checkout__actions .wc-block-components-button {
  background-color: #f17725 !important;
  border-color: #f39c12 !important;
  color: #ffffff !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 5px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: all 0.3s ease !important;
  width: 100% !important;
  text-align: center !important;
  line-height: normal !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
a.wc-block-components-button.wc-block-cart__submit-button:hover,
.wc-block-checkout__actions .wc-block-components-button:hover {
  background-color: #f17725 !important; /* Ajusta este hover si quieres */
  border-color: #f1c40f !important;
  color: #ffffff !important;
}
a.wc-block-components-button.wc-block-cart__submit-button .wc-block-components-button__text,
.wc-block-checkout__actions .wc-block-components-button .wc-block-components-button__text {
  color: #ffffff !important;
}

/* assets/css/woocommerce.css */

/* --- OCULTAR TÍTULO "TIENDA" --- */
.post-type-archive-product .woocommerce-products-header {
    display: none !important;
}

/* Eliminar espacio extra del encabezado oculto en la tienda */
.woocommerce-products-header {
    margin: 0 !important;
    padding: 0 !important;
}

/* Ajuste fino para subir el contenido de la tienda */
body.post-type-archive-product main#content.site-content {
    margin-top: 1rem !important; 
}

/* assets/css/woocommerce.css */

/* --- OCULTAR BANNER Y TÍTULO EN LA TIENDA --- */

/* Ocultar el encabezado principal de productos (donde suele estar el título) */
.post-type-archive-product .woocommerce-products-header {
    display: none !important;
}

/* Ocultar la barra de navegación de migas de pan (Inicio / Tienda) */
.post-type-archive-product .woocommerce-breadcrumb {
    display: none !important;
}

/* Ajuste de seguridad: Forzar fondo transparente por si acaso */
.post-type-archive-product #content {
    background-image: none !important;
}