/*
Theme Name: Tu Marca - Storefront Child
Description: Tema hijo de Storefront con la identidad visual (colores, tipografías, tarjetas, botones) importada desde el proyecto React/Hostinger Horizons.
Template: storefront
Version: 1.0
Author: Generado a partir de tu proyecto React
Text Domain: tikuchi-child
*/

/* =========================================================
   1) VARIABLES DE MARCA (extraídas de tu index.css / Tailwind)
   ========================================================= */
:root {
  --brand-pink: #ee2a8c;
  --brand-green: #8ed24f;

  --color-background: #f76fb4; /* hsl(328 92% 62%) */
  --color-foreground: #4c7a2b; /* hsl(96 55% 32%) */
  --color-primary: #8ed24f;    /* hsl(96 62% 55%) */
  --color-primary-foreground: #24142e; /* hsl(300 40% 18%) */
  --color-secondary: #f76fb4;  /* igual que background */
  --color-secondary-foreground: #ffffff;
  --color-muted: #fbeef4;      /* hsl(320 40% 96%) */
  --color-muted-foreground: #7a6d73; /* hsl(300 10% 45%) */
  --color-destructive: #ef4444; /* hsl(0 84% 60%) */
  --color-border: #ecdbe4;     /* hsl(320 30% 88%) */

  --radius-lg: 1.25rem;
  --radius-md: 1rem;
  --radius-sm: 0.75rem;

  --font-body: "Poppins", sans-serif;
  --font-display: "Fredoka", sans-serif;
}

/* =========================================================
   2) TIPOGRAFÍA GLOBAL
   ========================================================= */
body,
button,
input,
select,
textarea {
  font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6,
.site-title,
.woocommerce-loop-product__title,
.product_title {
  font-family: var(--font-display);
  font-weight: 600;
}

body {
  background-color: #fff; /* el rosa fuerte de --background en tu app funcionaba como fondo de una landing; en una tienda lo dejamos como acento, no como fondo general */
  color: #2b2b2b;
}

a {
  color: var(--brand-pink);
}
a:hover {
  color: var(--brand-green);
}

/* =========================================================
   3) HEADER / NAVEGACIÓN
   ========================================================= */
.site-header {
  background-color: var(--brand-pink);
  border-bottom: 4px solid var(--brand-green);
}

.site-header .site-search input.search-field,
.site-header .site-search button {
  border-radius: var(--radius-sm);
  border: none;
}

.storefront-primary-navigation {
  background-color: var(--brand-pink);
  border-bottom: 1px solid rgba(255,255,255,0.25);
}

.main-navigation ul li a {
  font-family: var(--font-display);
  font-weight: 600;
  color: #ffffff;
}

.main-navigation ul li a:hover {
  color: var(--brand-green);
}

.main-navigation .menu-toggle {
  background-color: var(--brand-green);
  color: var(--color-primary-foreground);
  border: none;
  border-radius: var(--radius-sm);
}

.site-header-cart a.cart-contents {
  color: #ffffff;
  font-weight: 600;
}
.site-header-cart a.cart-contents:hover {
  color: var(--brand-green);
}

/* =========================================================
   3b) FOOTER (clases nativas de Storefront)
   ========================================================= */
.site-footer,
.site-footer .footer-widgets,
.site-footer .col-full {
  background-color: #24142e;
  color: #ffffff;
}

.site-footer a {
  color: #ffffff;
}
.site-footer a:hover {
  color: var(--brand-green);
}

.site-footer .widget-title,
.site-footer h1,
.site-footer h2,
.site-footer h3 {
  font-family: var(--font-display);
  color: var(--brand-green);
}

.site-footer .site-info {
  background-color: #1a0e22;
  color: rgba(255,255,255,0.7);
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* =========================================================
   4) BOTONES (equivalentes a tu Button.jsx / buttonVariants)
   ========================================================= */
.button,
button,
input[type="submit"],
a.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce #respond input#submit,
.woocommerce input.button,
.single_add_to_cart_button {
  font-family: var(--font-body);
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: none;
  background-color: var(--brand-green);
  color: var(--color-primary-foreground);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  transition: background-color 0.2s ease, transform 0.15s ease;
  padding: 0.6rem 1.4rem;
}

.button:hover,
button:hover,
a.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.single_add_to_cart_button:hover {
  background-color: color-mix(in srgb, var(--brand-green) 85%, black);
  transform: translateY(-1px);
}

/* Botón "secundario" tipo outline, equivalente a variant="outline" */
.woocommerce a.button.alt,
.button.is-outline {
  background-color: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-primary-foreground);
  box-shadow: none;
}

/* =========================================================
   5) TARJETAS DE PRODUCTO (equivalente a tu ProductCard/Card.jsx)
   ========================================================= */
ul.products li.product,
.woocommerce ul.products li.product {
  background: #ffffff;
  border: 1px solid #f1f1f1;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  padding: 0 !important;
}

ul.products li.product:hover,
.woocommerce ul.products li.product:hover {
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

ul.products li.product img {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  object-fit: cover;
}

ul.products li.product .woocommerce-loop-product__title {
  padding: 0 1rem;
  margin-top: 0.75rem;
  color: #2b2b2b;
}

ul.products li.product .price {
  padding: 0 1rem 1rem;
  color: var(--brand-pink);
  font-weight: 600;
}

ul.products li.product .price del {
  color: var(--color-muted-foreground);
  opacity: 0.7;
}

ul.products li.product .price ins {
  text-decoration: none;
  color: var(--brand-pink);
}

/* =========================================================
   6) EFECTO "GLASS CARD" (para banners, hero, promos destacadas)
   ========================================================= */
.glass-card {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
}

/* =========================================================
   7) ANIMACIÓN FLOTANTE (para íconos/decoraciones en el hero)
   ========================================================= */
@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(6deg); }
}
.animate-float-slow {
  animation: float-slow 6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .animate-float-slow { animation: none; }
}

/* =========================================================
   8) UTILIDADES DE COLOR DE MARCA
   ========================================================= */
.brand-pink { color: var(--brand-pink); }
.bg-brand-pink { background-color: var(--brand-pink); }
.brand-green { color: var(--brand-green); }
.bg-brand-green { background-color: var(--brand-green); }
.font-display { font-family: var(--font-display); }

/* =========================================================
   9) BADGES DE OFERTA (equivalente a "hasSale")
   ========================================================= */
.woocommerce span.onsale {
  background-color: var(--brand-pink);
  color: #fff;
  font-family: var(--font-display);
  border-radius: 999px;
  box-shadow: none;
}

/* =========================================================
   10) HERO DE LA HOME (equivalente a la sección <section> Hero
   de HomePage.jsx). Pensado para pegarse dentro de un bloque
   "HTML personalizado" en el editor de WordPress.
   ========================================================= */
.lokoala-hero {
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.lokoala-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.lokoala-hero__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(238, 42, 140, 0.5); /* var(--brand-pink) al 50% */
}

.lokoala-hero__inner {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 1.25rem;
  display: grid;
  gap: 2.5rem;
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .lokoala-hero__inner {
    grid-template-columns: 1fr 1fr;
  }
}

.lokoala-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--brand-green);
  color: #7a1450;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.lokoala-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand-green);
  line-height: 0.95;
  font-size: 3rem;
  margin: 0;
  text-shadow: 0 3px 0 rgba(122, 20, 80, 0.35);
}

@media (min-width: 768px) {
  .lokoala-hero__title { font-size: 5.5rem; }
}

.lokoala-hero__text {
  margin-top: 1.5rem;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.95);
  max-width: 32rem;
  font-weight: 500;
}

.lokoala-hero__cta {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--brand-green);
  color: #7a1450;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  transition: transform 0.15s ease;
}
.lokoala-hero__cta:hover {
  transform: scale(1.05);
  color: #7a1450;
}

.lokoala-hero__image-wrap {
  display: none;
}
@media (min-width: 768px) {
  .lokoala-hero__image-wrap { display: block; }
}

.lokoala-hero__image {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2rem;
  border: 8px solid var(--brand-green);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

/* =========================================================
   11) TÍTULO DE SECCIÓN DE PRODUCTOS DESTACADOS
   ========================================================= */
.lokoala-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 1.25rem;
}

.lokoala-section__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.lokoala-section__title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand-green);
  font-size: 2.25rem;
  margin: 0;
}
@media (min-width: 768px) {
  .lokoala-section__title { font-size: 3rem; }
}

.lokoala-section__link {
  color: #2b2b2b;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.lokoala-section__link:hover {
  color: var(--brand-green);
}

/* =========================================================
   12) TARJETA DE PRODUCTO ESTILO REACT
   (usa la plantilla woocommerce/content-product.php incluida)
   ========================================================= */
ul.products li.product.lokoala-product-card {
  background: #ffffff;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 0 !important;
  margin: 0 !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  list-style: none;
}

ul.products li.product.lokoala-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(0,0,0,0.15);
}

.lokoala-product-card__image-link {
  display: block;
}

.lokoala-product-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.lokoala-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
}

.lokoala-product-card__ribbon {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--brand-pink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}

.lokoala-product-card__price {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: #8b5cf6;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}
.lokoala-product-card__price .woocommerce-Price-amount {
  color: inherit;
}
.lokoala-product-card__price del {
  opacity: 0.7;
  margin-right: 0.25rem;
}

.lokoala-product-card__body {
  padding: 1.25rem;
}

.lokoala-product-card__title {
  margin: 0;
}
.lokoala-product-card__title a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: #1f2937;
  text-decoration: none;
}

.lokoala-product-card__subtitle {
  color: #6b7280;
  font-size: 0.9rem;
  margin: 0.35rem 0 1rem;
}

.lokoala-product-card__body a.button.add_to_cart_button {
  display: block;
  width: 100%;
  text-align: center;
}