/*
 Theme Name: Blackfriday Child
 Theme URI: https://elementor.com/
 Description: Child theme for black friday
 Author: Rearden D&D
 Author URI: https://reardenmarketing.com
 Template: hello-elementor
 Version: 1.0.0
 Text Domain: hello-elementor-child
*/

/* ==========================================================================
   SISTEMA CENTRALIZADO DE DISEÑO Y VARIABLES GLOBALES (YUPPY KIDS STORE)
   Modifica aquí cualquier color, fuente o espaciado para reflejarlo en todo el sitio.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Fredoka:wght@600;700&display=swap');

:root {
  /* 1. Colores Corporativos y de Marca */
  --yuppy-primary: #bd97d1;              /* Lavanda / Lila como color principal corporativo */
  --yuppy-accent: #faca4d;               /* Amarillo Mostaza distintivo Yuppy */
  --yuppy-cta: #faca4d;                  /* Color oficial para Call To Action (CTAs) y botones de compra */
  --yuppy-cta-hover: #e8ba5d;            /* Hover cálido para CTAs */
  --yuppy-cta-text: #212121;             /* Color de texto oscuro para óptima legibilidad en CTAs */
  --yuppy-green: #238840;                /* Verde Bosque Yuppy (precios de transferencia, footer) */
  --yuppy-peach: #f39d6a;                /* Melocotón suave (topbar, destacados) */
  --yuppy-topbar-bg: var(--yuppy-peach); /* Color de fondo del top header carrusel */
  --yuppy-terracotta: #c84d21;           /* Terracota oscuro / Óxido para acentos secundarios */
  --yuppy-lilac: #bd97d1;                /* Lavanda / Lila */

  /* 2. Colores Neutros y Superficies */
  --yuppy-bg-page: var(--yuppy-primary); /* Fondo base del sitio: color principal Lila (#bd97d1) */
  --yuppy-bg-card: #ffffff;              /* Fondo blanco puro para tarjetas de producto y módulos */
  --yuppy-bg-surface: var(--yuppy-primary); /* Superficies principales en color Lila */
  --yuppy-bg-archive: #fcfaf6;           /* Fondo blanco o marfil cálido para el archivo de productos y catálogo */
  --yuppy-bg-white: #ffffff;             /* Blanco puro */
  --yuppy-text-dark: #212121;            /* Carbón principal para títulos y textos en superficies claras */
  --yuppy-text-charcoal: #212723;        /* Carbón profundo */
  --yuppy-text-muted: #524d50;           /* Texto secundario y etiquetas en fondos claros */
  --yuppy-text-light: #ffffff;           /* Texto claro para contrastes */
  --yuppy-text-on-primary: #ffffff;      /* Texto sobre fondo Lila #bd97d1: siempre blanco */
  --yuppy-border-subtle: rgba(0, 0, 0, 0.08); /* Borde sutil neutro */
  --yuppy-archive-bg-pattern: url('https://yuppykidsstore.com/wp-content/uploads/2025/10/3978993e99184d5e8c21f0204cd07bca.avif');

  /* 3. Paleta de Descuentos y Bento Grid */
  --yuppy-discount-high: #c8e874;        /* 50-60% OFF - Pistacho vibrante */
  --yuppy-discount-mid: #f5b8b8;         /* 30-40% OFF - Rosa pastel salmón */
  --yuppy-discount-low: #9ecbf2;         /* Hasta 20% OFF - Celeste cielo */
  --yuppy-bento-mustard: #e8ba5d;        /* Mostaza cálido */
  --yuppy-bento-sage: #7d9b73;           /* Verde salvia */
  --yuppy-bento-terracotta: var(--yuppy-terracotta); /* Terracota corporativo (#c84d21) */
  --yuppy-bento-steel: #8fb6c6;          /* Azul acero */

  /* 4. Tipografías Globales */
  --yuppy-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --yuppy-font-serif: 'DM Serif Display', Georgia, serif;
  --yuppy-font-display: 'Fredoka', 'Plus Jakarta Sans', sans-serif;

  /* 5. Radios y Transiciones */
  --yuppy-radius-sm: 8px;
  --yuppy-radius-md: 18px;
  --yuppy-radius-lg: 30px;
  --yuppy-radius-pill: 50px;
  --yuppy-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);

  /* 6. Alias de Compatibilidad con Módulo Black Friday */
  --bf-bg-page: var(--yuppy-bg-page);
  --bf-bg-card: var(--yuppy-bg-card);
  --bf-text-dark: var(--yuppy-text-dark);
  --bf-text-muted: var(--yuppy-text-muted);
  --bf-text-on-primary: var(--yuppy-text-on-primary);
  --bf-white: var(--yuppy-bg-white);
  --bf-cta: var(--yuppy-cta);
  --bf-cta-hover: var(--yuppy-cta-hover);
  --bf-cta-text: var(--yuppy-cta-text);
  --bf-bento-mustard: var(--yuppy-bento-mustard);
  --bf-bento-sage: var(--yuppy-bento-sage);
  --bf-bento-terracotta: var(--yuppy-bento-terracotta);
  --bf-bento-steel: var(--yuppy-bento-steel);
  --bf-circle-high: var(--yuppy-discount-high);
  --bf-circle-mid: var(--yuppy-discount-mid);
  --bf-circle-low: var(--yuppy-discount-low);
  --bf-font-serif: var(--yuppy-font-serif);
  --bf-font-display: var(--yuppy-font-display);
  --bf-font-sans: var(--yuppy-font-sans);
}

/* ==========================================================================
   ESTILOS GENERALES DEL SITIO
   ========================================================================== */

html,
body {
  width: 100%;
  overflow-x: hidden;
  font-family: var(--yuppy-font-sans);
  color: var(--yuppy-text-dark);
}

/* Smart Composite */
.wooco-wrap .wooco-text,
.wooco-wrap .wooco_components {
  color: var(--yuppy-text-dark);
}

/* Bug Carrito */
.alignwide {
  margin-inline: 0px;
}

/* Mi Cuenta */
.woocommerce-MyAccount-navigation-link {
  padding: 5px;
}

.woocommerce-MyAccount-navigation-link a {
  color: var(--yuppy-text-light);
  padding: 5px 10px;
  border-radius: var(--yuppy-radius-sm);
  background-color: var(--yuppy-text-dark);
  text-decoration: none;
  transition: var(--yuppy-transition);
}

.woocommerce-MyAccount-navigation-link a:hover {
  background-color: var(--yuppy-accent);
  color: var(--yuppy-text-dark);
}

.woocommerce-MyAccount-content label,
.woocommerce form.login label,
.woocommerce form.register label {
  color: var(--yuppy-text-dark);
  font-family: var(--yuppy-font-sans);
}

.woocommerce-MyAccount-content,
.woocommerce form.login,
.woocommerce form.register {
  background-color: var(--yuppy-bg-white);
  padding: 30px;
  color: var(--yuppy-text-dark);
  border-radius: var(--yuppy-radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.woocommerce-MyAccount-content a,
.woocommerce-LostPassword a,
a.woocommerce-privacy-policy-link {
  color: var(--yuppy-green);
  transition: var(--yuppy-transition);
}

.woocommerce-MyAccount-content a:hover,
a.woocommerce-privacy-policy-link:hover {
  color: var(--yuppy-terracotta);
}

/* Joinchat */
.joinchat__woo-btn {
  border-radius: 24px !important;
  width: 100%;
  margin-top: 5px;
  text-align: center;
}

/* Precios de Producto */
.preciobdi bdi {
  color: var(--yuppy-text-light);
}

.preciobdioscuro bdi {
  color: var(--yuppy-text-dark);
}

/* Icon Background Home */
#iconback .elementor-icon {
  background-color: var(--yuppy-terracotta);
  border-radius: var(--yuppy-radius-pill);
  padding: 10px;
}

/* Background Mideer */
.elementor-cta__bg {
  background-position-y: -150px;
}

@media (max-width: 1024px) {
  .elementor-cta__bg {
    background-position-y: 0px;
  }
}

/* Filtros de Edades */
#filtrosedades ul {
  display: flex;
  margin-top: 30px;
  list-style: none;
}

#filtrosedades span {
  display: none;
}

.woocommerce .woocommerce-widget-layered-nav-list .woocommerce-widget-layered-nav-list__item--chosen a:hover::before {
  color: var(--yuppy-text-light) !important;
}

#filtrosedades a {
  color: var(--yuppy-text-light);
  padding: 25px;
  border-radius: 20px;
  background-color: var(--yuppy-accent);
  margin-right: 10px;
  margin-top: 10px;
  text-decoration: none;
  font-weight: 700;
  transition: var(--yuppy-transition);
}

@media (max-width: 824px) {
  #filtrosedades a {
    color: var(--yuppy-text-light);
    padding: 8px;
    border-radius: 20px;
    background-color: var(--yuppy-accent);
    margin-right: 1px;
    margin-top: 10px;
  }
}

#filtrosedades a:hover {
  color: var(--yuppy-text-light);
  background-color: var(--yuppy-green);
  border-radius: 15px;
}

#filtrosedades h5 {
  color: var(--yuppy-text-dark);
  font-family: var(--yuppy-font-sans);
}

/* Checkout */
.woocommerce-checkout #payment {
  border-radius: var(--yuppy-radius-lg);
  padding: 20px;
  background-color: var(--yuppy-bg-card);
}

.cart-subtotal {
  font-size: 16px !important;
}

.order-total {
  font-size: 25px;
  text-align: center;
}

/* Botón Carrito */
#cart-button {
  color: var(--yuppy-text-light);
}

/* Carrito y Botón de Realizar Pedido (CTAs) */
a.wc-block-components-product-name {
  color: var(--yuppy-text-light);
}

a.wc-block-components-button,
button#place_order,
.single_add_to_cart_button,
.elementor-button {
  background-color: var(--yuppy-cta);
  color: var(--yuppy-cta-text);
  padding: 15px 30px;
  border-radius: var(--yuppy-radius-lg);
  border: 0px;
  font-weight: 700;
  font-family: var(--yuppy-font-sans);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--yuppy-transition);
  cursor: pointer;
}

a.wc-block-components-button:hover,
button#place_order:hover,
.single_add_to_cart_button:hover,
.elementor-button:hover {
  background-color: var(--yuppy-cta-hover);
  color: var(--yuppy-cta-text);
  transform: translateY(-2px);
}

.elementor-kit-125 input:not([type="button"]):not([type="submit"]) {
  background-color: var(--yuppy-lilac);
  color: var(--yuppy-text-on-primary, #ffffff);
}

.elementor-kit-125 input:not([type="button"]):not([type="submit"])::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

/* Badge Agotado */
span.estado-agotado {
  background-color: var(--yuppy-accent);
  color: var(--yuppy-text-dark);
  border-radius: 6px;
  padding: 3px 8px;
  font-weight: 700;
  font-size: 11px;
}

/* Buscador Header */
#buscadorheader input {
  background-color: var(--yuppy-accent);
  color: var(--yuppy-text-light);
  border-radius: var(--yuppy-radius-pill);
}

/* Enlaces sin subrayado */
.page-content a {
  text-decoration: none;
}

/* Descuentos Badge */
#descuentos-badge a {
  background: var(--yuppy-text-dark);
  color: var(--yuppy-text-light) !important;
  padding: 3px 6px;
  font-size: 12px;
  border-radius: var(--yuppy-radius-sm);
  text-decoration: none;
}

/* Precio con Transferencia Bancaria */
.precio-transferencia span,
.precio-transferencia bdi,
.precio-transferencia {
  color: var(--yuppy-green);
  font-weight: 700 !important;
  font-family: var(--yuppy-font-sans);
}

/* Miniaturas Galería Producto WooCommerce */
.woocommerce div.product div.images {
  display: flex;
  flex-direction: row-reverse;
  gap: 10px;
}

.woocommerce div.product div.images .flex-viewport {
  width: 80%;
}

.woocommerce div.product div.images ol.flex-control-thumbs {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  width: 20%;
  margin: 0;
  padding: 0;
}

.woocommerce div.product div.images ol.flex-control-thumbs li {
  width: 100%;
  list-style: none;
}

.woocommerce div.product div.images ol.flex-control-thumbs img {
  width: 100%;
  height: auto;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: var(--yuppy-radius-sm);
  transition: border-color 0.2s;
}

.woocommerce div.product div.images ol.flex-control-thumbs img.flex-active {
  border-color: var(--yuppy-text-dark);
}

/* Desktop: Miniaturas al costado izquierdo */
@media (min-width: 768px) {
  .woocommerce div.product div.images {
    display: flex;
    flex-direction: row-reverse;
    gap: 10px;
  }

  .woocommerce div.product div.images .flex-viewport {
    width: 80%;
  }

  .woocommerce div.product div.images ol.flex-control-thumbs {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
    width: 20%;
    margin: 0;
    padding: 0;
    max-height: 500px;
    overflow-y: auto;
  }

  .woocommerce div.product div.images ol.flex-control-thumbs li {
    width: 100%;
    list-style: none;
  }

  .woocommerce div.product div.images ol.flex-control-thumbs img {
    width: 100%;
    height: auto;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
  }

  .woocommerce div.product div.images ol.flex-control-thumbs img.flex-active {
    border-color: var(--yuppy-text-dark);
  }
}

/* Mobile: Miniaturas debajo, scroll horizontal */
@media (max-width: 767px) {
  .woocommerce div.product div.images {
    flex-direction: column;
  }

  .woocommerce div.product div.images .flex-viewport {
    width: 100%;
    margin-bottom: 10px;
  }

  .woocommerce div.product div.images ol.flex-control-thumbs {
    flex-direction: row;
    width: 100%;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 5px;
    padding: 5px 0;
    justify-content: flex-start;
  }

  .woocommerce div.product div.images ol.flex-control-thumbs li {
    width: auto;
    flex: 0 0 auto;
  }

  .woocommerce div.product div.images ol.flex-control-thumbs img {
    height: 60px;
    width: auto;
  }
}

/* Buscador */
form.search-form {
  display: flex;
}

#buscador input.search-field {
  background-color: var(--yuppy-bg-white);
  color: var(--yuppy-text-charcoal);
  border-radius: var(--yuppy-radius-pill);
}

div.relevanssi-live-search-results-showing {
  left: 0px !important;
  position: absolute;
  top: 50px !important;
  width: 50vw !important;
  border-radius: var(--yuppy-radius-md) !important;
  overflow: hidden !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

@media (max-width: 768px) {
  div.relevanssi-live-search-results-showing {
    left: 0px !important;
    position: absolute;
    top: 50px !important;
    width: 70vw !important;
  }
}

.relevanssi-live-search-results {
  background-color: var(--yuppy-lilac) !important;
  color: var(--yuppy-text-on-primary, #ffffff) !important;
}

.relevanssi-live-search-results a {
  color: var(--yuppy-text-on-primary, #ffffff) !important;
  font-family: var(--yuppy-font-sans) !important;
}

/* ==========================================================================
   REGLA DE CONTRASTE: EN FONDOS #bd97d1 (LILA / PRIMARY), EL TEXTO ES BLANCO
   ========================================================================== */
.has-yuppy-primary-background-color,
.has-yuppy-lilac-background-color,
.has-primary-background-color,
.bg-yuppy-primary,
.bg-yuppy-lilac,
[style*="background-color: #bd97d1"],
[style*="background-color:#bd97d1"],
[style*="background: #bd97d1"],
[style*="background:#bd97d1"],
[style*="background-color: rgb(189, 151, 209)"],
[style*="background: rgb(189, 151, 209)"] {
  color: var(--yuppy-text-on-primary, #ffffff) !important;
}

.has-yuppy-primary-background-color h1,
.has-yuppy-primary-background-color h2,
.has-yuppy-primary-background-color h3,
.has-yuppy-primary-background-color h4,
.has-yuppy-primary-background-color h5,
.has-yuppy-primary-background-color h6,
.has-yuppy-primary-background-color p,
.has-yuppy-primary-background-color span,
.has-yuppy-primary-background-color label,
.has-yuppy-primary-background-color li,
.has-yuppy-lilac-background-color h1,
.has-yuppy-lilac-background-color h2,
.has-yuppy-lilac-background-color h3,
.has-yuppy-lilac-background-color h4,
.has-yuppy-lilac-background-color h5,
.has-yuppy-lilac-background-color h6,
.has-yuppy-lilac-background-color p,
.has-yuppy-lilac-background-color span,
.has-yuppy-lilac-background-color label,
.has-yuppy-lilac-background-color li {
  color: var(--yuppy-text-on-primary, #ffffff) !important;
}

.has-yuppy-primary-background-color a:not(.elementor-button):not(.btn):not(.woocommerce-button),
.has-yuppy-lilac-background-color a:not(.elementor-button):not(.btn):not(.woocommerce-button) {
  color: var(--yuppy-text-on-primary, #ffffff) !important;
}

.has-yuppy-primary-background-color a:not(.elementor-button):not(.btn):not(.woocommerce-button):hover,
.has-yuppy-lilac-background-color a:not(.elementor-button):not(.btn):not(.woocommerce-button):hover {
  color: var(--yuppy-cta, #faca4d) !important;
}
