/*
 Theme Name:     Customify Child
 Theme URI:      https://yourwebsite.com/
 Description:    Tema hijo de Customify con personalizaciones de tienda tipo Amazon.
 Author:         Tu Nombre
 Author URI:     https://yourwebsite.com/
 Template:       customify
 Version:        1.0.0
 Text Domain:    customify-child
*/

/* ==========================================================
   01. IMPORTAR ESTILOS DEL TEMA PADRE
========================================================== */
@import url("../customify/style.css");

/* ==========================================================
   02. ESTILOS PERSONALIZADOS PARA TIENDA - DISEÑO AMAZON
   Copiados desde "Apariencia > Personalizar > CSS adicional"
   Fecha: 2025-07-20
========================================================== */

/* Estilo general para tarjetas de producto */
ul.products li.product, 
.related.products ul.products li.product, 
.upsells.products ul.products li.product {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  min-height: 300
	px;
  background: #ffffff;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  border-radius: 8px;
  text-align: center;
}

/* Imagen del producto */
ul.products li.product img {
  max-height: 200px;
  width: auto;
  object-fit: contain;
  margin: 0 auto 10px auto;
}

/* Contenedor del link */
ul.products li.product .woocommerce-loop-product__link {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Título del producto */
ul.products li.product h2.woocommerce-loop-product__title {
  font-size: 16px;
  line-height: 1.4;
  min-height: 45px;
  overflow: hidden;
  margin-bottom: 10px;
}

/* Precio */
ul.products li.product .price {
  font-size: 16px;
  color: #c42c2c;
  margin-bottom: 10px;
}

/* Descripción corta */
ul.products li.product .woocommerce-product-details__short-description,
ul.products li.product .woocommerce-loop-product__description {
  font-size: 14px;
  line-height: 1.4;
  max-height: 45px;
  overflow: hidden;
  margin-bottom: 10px;
}

/* Botón Añadir al carrito en tarjetas */
ul.products li.product .button {
  margin-top: auto;
  background-color: #0c75af;
  color: #fff;
  border-radius: 5px;
  padding: 10px 15px;
  font-weight: 600;
  transition: background 0.3s;
}
ul.products li.product .button:hover {
  background-color: #095d88;
}

/* Oculta la descripción corta innecesaria */
ul.products li.product .woocommerce-loop-product__description,
ul.products li.product .woocommerce-product-details__short-description,
ul.products li.product .product-short-description,
ul.products li.product .woocommerce-loop-product__excerpt {
  display: none !important;
}

/* Botón en página de producto individual */
.single-product .single_add_to_cart_button {
  background-color: #0c75af !important;
  color: #ffffff !important;
  border-radius: 5px;
  padding: 10px 20px;
  font-weight: 600;
  transition: background 0.3s ease;
}
.single-product .single_add_to_cart_button:hover {
  background-color: #095d88 !important;
}

/* Cartel de Oferta */
.woocommerce span.onsale {
  background-color: #f5a503 !important;
  color: #2b2a33 !important;
  border-radius: 4px;
  padding: 5px 10px;
  font-weight: bold;
  font-size: 13px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  animation: pulseSale 1.5s infinite;
}
@keyframes pulseSale {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Botón "Finalizar compra" SIEMPRE como botón */
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-components-button,
.woocommerce-cart .wc-proceed-to-checkout {
  background-color: #0c75af !important;
  color: #ffffff !important;
  border-radius: 5px !important;
  padding: 12px 24px !important;
  font-weight: 600 !important;
  text-align: center !important;
  display: inline-block !important;
  text-decoration: none !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
  transition: background 0.3s ease !important;
}
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-components-button:hover,
.woocommerce-cart .wc-proceed-to-checkout:hover {
  background-color: #095d88 !important;
}

/* Separador OFERTAS */
.separador-ofertas {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 30px 0;
  color: #333;
  font-weight: bold;
  font-size: 22px;
}
body .separador-ofertas {
  display: flex !important;
  align-items: center !important;
  margin: 30px 0 !important;
  color: #333 !important;


ul.products li.product, 
.related.products ul.products li.product, 
.upsells.products ul.products li.product {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  min-height: 300px;
  background: #ffffff;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  border-radius: 8px;
  text-align: center;
}

ul.products li.product img {
  width: 100%;
  height: auto;
  object-fit: contain;
  margin-bottom: 10px;
}

ul.products li.product h2.woocommerce-loop-product__title {
  font-size: 16px;
  font-weight: 600;
  color: #333333;
  margin: 0 0 10px;
}

ul.products li.product .price {
  font-size: 14px;
  font-weight: bold;
  color: #b12704;
  margin: 0 0 10px;
}

ul.products li.product .button {
  background-color: #ffd814;
  color: #111;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

ul.products li.product .button:hover {
  background-color: #f7ca00;
  color: #111;
}

ul.products li.product .button::before {
  content: '\f07a';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  margin-right: 6px;
}

/* Espaciado entre productos */
ul.products {
  gap: 20px;
}

/* Estilo para la barra de precios tachada */
.woocommerce div.product span.woocommerce-Price-amount del,
.woocommerce del .woocommerce-Price-amount {
  color: #565959;
  font-size: 13px;
  font-weight: normal;
}

/* ==========================================================
   03. ESTILOS RESPONSIVOS PARA MÓVIL
========================================================== */
@media (max-width: 768px) {
  ul.products li.product {
    min-height: 260px;
    padding: 10px;
  }

  ul.products li.product h2.woocommerce-loop-product__title {
    font-size: 14px;
  }

  ul.products li.product .price {
    font-size: 13px;
  }

  ul.products li.product .button {
    font-size: 13px;
    padding: 8px 12px;
  }
}

/*BORRAR ESTO CUANDO YA LA PAGINA ESTE LISTA*/

/* === ESTILO PÁGINA PRÓXIMAMENTE MERKLI === */

.merkli-landing {
    background: linear-gradient(145deg, #ffffff, #f9f9f9);
    padding: 50px 20px;
    text-align: center;
    font-family: 'Helvetica Neue', sans-serif;
    min-height: 100vh;
}

.merkli-logo {
    width: 160px;
    margin-bottom: 20px;
}

.merkli-title {
    font-size: 2.2em;
    color: #8B0000;
    margin-bottom: 10px;
}

.merkli-subtitle {
    font-size: 1.1em;
    color: #444;
    margin-bottom: 40px;
}

.merkli-slider {
    max-width: 1000px;
    margin: 0 auto;
}

.merkli-slide-item {
    background: #fff;
    border: 1px solid #eee;
    padding: 15px;
    margin: 10px;
    border-radius: 10px;
    transition: transform 0.3s;
}

.merkli-slide-item:hover {
    transform: scale(1.03);
}

.merkli-product-name {
    font-size: 0.95em;
    color: #222;
    margin-top: 10px;
}

/* Slick arrows override */
.slick-prev:before, .slick-next:before {
    color: #8B0000;
    font-size: 24px;
}


