/* TEMPLATE KIDS — colorido, redondeado, estilo juguete.
   Primario y secundario salen del panel (--primary / --secondary).
   No hay hex de marca en los componentes. */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&display=swap');

:root {
    --radius: 22px;
    --font: 'Fredoka', sans-serif;
}

body.theme-kids {
    --kids-primary: var(--primary-color, var(--primary));
    --kids-secondary: var(--secondary-color, var(--secondary));
    --kids-primary-dark: color-mix(in srgb, var(--kids-primary) 78%, #000);
    --kids-secondary-dark: color-mix(in srgb, var(--kids-secondary) 78%, #000);
    background:
        radial-gradient(circle at 8% 12%, color-mix(in srgb, var(--kids-secondary) 18%, transparent) 0%, transparent 42%),
        radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--kids-primary) 12%, transparent) 0%, transparent 38%),
        var(--bg) !important;
    color: var(--text) !important;
    font-family: 'Fredoka', sans-serif !important;
}

body.theme-kids .site-header.store-header {
    background: var(--bg-card, #ffffff) !important;
    border-bottom: 4px solid transparent !important;
    border-image: linear-gradient(90deg, var(--kids-primary), var(--kids-secondary), var(--kids-primary)) 1 !important;
    padding: 0.85rem 0 !important;
}
body.theme-kids .site-header.store-header .logo a,
body.theme-kids .site-header.store-header .desktop-nav a {
    color: var(--text) !important;
    font-weight: 600 !important;
}
body.theme-kids .site-header.store-header .desktop-nav a {
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    transition: background 0.2s, color 0.2s;
}
body.theme-kids .site-header.store-header .desktop-nav a:hover {
    background: color-mix(in srgb, var(--kids-primary) 12%, transparent) !important;
    color: var(--kids-primary) !important;
}
body.theme-kids .site-header.store-header .icon-link {
    color: var(--text) !important;
}

body.theme-kids .announcement-bar {
    background: linear-gradient(90deg, var(--kids-secondary), var(--kids-primary));
    color: #ffffff;
    font-weight: 600;
}

body.theme-kids .section-title,
body.theme-kids .hero-title,
body.theme-kids h1,
body.theme-kids h2 {
    font-family: 'Fredoka', sans-serif !important;
    font-weight: 700 !important;
    color: var(--kids-primary) !important;
}
body.theme-kids .section-tag {
    display: inline-block;
    background: color-mix(in srgb, var(--kids-secondary) 35%, #fff) !important;
    color: var(--text) !important;
    font-weight: 600 !important;
    padding: 0.25rem 0.85rem;
    border-radius: 999px;
}
body.theme-kids .section-subtitle {
    color: var(--text-muted, #475569) !important;
}

body.theme-kids .btn:not(.btn-whatsapp-consultar):not(.whatsapp-float):not(.cl-card-btn-wa):not(.footer-contact-wa-btn):not(.btn-whatsapp-cart),
body.theme-kids button[type="submit"],
body.theme-kids .product-card .btn:not(.btn-whatsapp-consultar):not(.cl-card-btn-wa),
body.theme-kids .cl-card .btn:not(.btn-whatsapp-consultar):not(.cl-card-btn-wa),
body.theme-kids .cl-card-btn:not(.cl-card-btn-wa):not(.btn-whatsapp-consultar),
body.theme-kids .product-cart-btn:not(.btn-whatsapp-consultar),
body.theme-kids .add-to-cart,
body.theme-kids .btn-buy,
body.theme-kids .cta-fw-btn,
body.theme-kids .btn-primary-hero {
    background: var(--kids-primary) !important;
    color: #ffffff !important;
    border: 3px solid var(--kids-primary-dark) !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    box-shadow: 0 5px 0 var(--kids-primary-dark) !important;
    transform: translateY(0);
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
}
body.theme-kids .btn:not(.btn-whatsapp-consultar):not(.whatsapp-float):not(.cl-card-btn-wa):not(.footer-contact-wa-btn):not(.btn-whatsapp-cart):hover,
body.theme-kids button[type="submit"]:hover,
body.theme-kids .cl-card-btn:not(.cl-card-btn-wa):not(.btn-whatsapp-consultar):hover,
body.theme-kids .product-cart-btn:not(.btn-whatsapp-consultar):hover,
body.theme-kids .cta-fw-btn:hover,
body.theme-kids .btn-primary-hero:hover {
    background: var(--kids-secondary) !important;
    border-color: var(--kids-secondary-dark) !important;
    color: #fff !important;
    box-shadow: 0 5px 0 var(--kids-secondary-dark) !important;
    transform: translateY(-2px);
}

/* Tarjetas tipo sticker con sombra desplazada */
body.theme-kids .product-card,
body.theme-kids .cl-card {
    background: var(--bg-card, #ffffff) !important;
    border: 3px solid color-mix(in srgb, var(--kids-secondary) 42%, #fff) !important;
    border-radius: 28px !important;
    box-shadow: 6px 6px 0 color-mix(in srgb, var(--kids-primary) 20%, transparent) !important;
    overflow: hidden !important;
}
body.theme-kids .product-card .product-image-wrap img,
body.theme-kids .cl-card-image-wrap img {
    border-radius: 22px 22px 0 0;
}
body.theme-kids .product-card .product-title,
body.theme-kids .product-card .product-title a,
body.theme-kids .cl-card-title {
    color: var(--text) !important;
    font-weight: 600 !important;
}
body.theme-kids .product-card .product-info,
body.theme-kids .cl-card-body {
    color: var(--text) !important;
    background: var(--bg-card, #ffffff) !important;
}
body.theme-kids .product-price,
body.theme-kids .cl-card-price,
body.theme-kids .product-detail-price {
    color: var(--kids-primary) !important;
    font-weight: 700 !important;
}
body.theme-kids .product-card:hover,
body.theme-kids .cl-card:hover {
    border-color: var(--kids-primary) !important;
    box-shadow: 8px 8px 0 color-mix(in srgb, var(--kids-secondary) 35%, transparent) !important;
    transform: translateY(-3px) rotate(-0.5deg);
}

body.theme-kids .features-section {
    background:
        radial-gradient(circle, color-mix(in srgb, var(--kids-secondary) 28%, transparent) 2px, transparent 2px) 0 0 / 18px 18px,
        color-mix(in srgb, var(--kids-secondary) 8%, transparent) !important;
}
body.theme-kids .feature-card {
    background: var(--bg-card, #fff) !important;
    border: 3px dashed var(--kids-secondary) !important;
    border-radius: 24px !important;
    padding: 22px 18px 18px !important;
    overflow: visible !important;
}
body.theme-kids .feature-card .icon-box {
    background: var(--kids-primary) !important;
    color: #fff !important;
    border-radius: 50% !important;
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    margin: 0 auto 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.25rem !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
}

body.theme-kids .product-detail-title {
    color: var(--kids-primary) !important;
}
body.theme-kids .product-detail-wrapper.section,
body.theme-kids .category-page-content.section {
    padding-top: 0 !important;
}
