/*
Theme Name: Shanrea Toy Store
Template: astra
Version: 1.0.0
Description: Custom child theme for Shanrea Toy Store - bright, bold, fun toy shop
*/

/* ============================================
   SHANREA TOY STORE — PRODUCTION STYLES
   Brand: Bright party blue, bold yellow, fun celebration energy
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* PRIMARY — Bright party palette from original logo */
    --s-blue: #2563EB;
    --s-blue-dark: #1D4ED8;
    --s-blue-light: #3B82F6;
    --s-yellow: #FACC15;
    --s-yellow-hover: #FDE047;
    --s-pink: #EC4899;
    --s-purple: #8B5CF6;
    --s-green: #22C55E;
    --s-red: #EF4444;

    /* BACKGROUNDS */
    --s-page: #F8FAFC;
    --s-white: #FFFFFF;
    --s-hero-dark: #1E3A8A;
    --s-hero-mid: #2563EB;
    --s-hero-light: #7C3AED;
    --s-header: #2563EB;
    --s-footer: #1E3A8A;

    /* TEXT */
    --s-text: #1E293B;
    --s-text-secondary: #64748B;
    --s-text-light: rgba(255,255,255,0.85);

    /* UI */
    --s-radius: 16px;
    --s-radius-sm: 10px;
    --s-radius-pill: 50px;
    --s-shadow: 0 4px 16px rgba(0,0,0,0.06);
    --s-shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
}

/* ---- GLOBAL RESET ---- */
* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--s-page);
    color: var(--s-text);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Fredoka', 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--s-text);
}

a { text-decoration: none; transition: all 0.2s ease; }

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--s-blue-dark);
    margin: 0 0 0.5rem;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--s-text-secondary);
    margin: 0;
}

/* ---- HEADER ---- */
.site-header {
    background: var(--s-header) !important;
    border-bottom: 3px solid var(--s-yellow) !important;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.site-header .ast-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.site-title a, .site-title a:hover {
    font-family: 'Fredoka', sans-serif !important;
    color: var(--s-yellow) !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px;
}

.site-description {
    color: var(--s-text-light) !important;
    font-size: 0.85rem !important;
    display: block !important;
}

.main-navigation a {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.2s;
}

.main-navigation a:hover {
    color: var(--s-yellow) !important;
    background: rgba(255,255,255,0.1);
}

/* ---- HERO SECTION ---- */
.shanrea-hero {
    background: linear-gradient(135deg, var(--s-hero-dark) 0%, var(--s-hero-mid) 40%, var(--s-hero-light) 100%);
    padding: 5rem 1.5rem 4rem;
    position: relative;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shanrea-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(250,204,21,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.shanrea-hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236,72,153,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(250,204,21,0.2);
    color: var(--s-yellow);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    border-radius: var(--s-radius-pill);
    margin-bottom: 1.25rem;
    border: 1px solid rgba(250,204,21,0.3);
}

.hero-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    color: white;
    line-height: 1.1;
    margin: 0 0 1rem;
}

.hero-accent {
    color: var(--s-yellow);
    text-shadow: 0 2px 10px rgba(250,204,21,0.3);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--s-text-light);
    line-height: 1.6;
    margin: 0 0 2rem;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-trust {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    color: rgba(255,255,255,0.75);
    font-size: 0.85rem;
    font-weight: 600;
}

.hero-trust span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Floating decorations */
.floating-toys {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-toys .toy {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
}

.toy-1 { top: 12%; left: 6%; animation-delay: 0s; }
.toy-2 { top: 20%; right: 10%; animation-delay: 1.2s; }
.toy-3 { bottom: 18%; left: 12%; animation-delay: 2.4s; }
.toy-4 { bottom: 12%; right: 6%; animation-delay: 3.6s; }
.toy-5 { top: 8%; right: 28%; animation-delay: 4.8s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(3deg); }
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: var(--s-radius-pill);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--s-yellow);
    color: var(--s-hero-dark);
    box-shadow: 0 4px 14px rgba(250,204,21,0.3);
}

.btn-primary:hover {
    background: var(--s-yellow-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(250,204,21,0.4);
    color: var(--s-hero-dark);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--s-blue);
    border: 2px solid var(--s-blue);
}

.btn-outline:hover {
    background: var(--s-blue);
    color: white;
}

.btn-large { padding: 1rem 2.5rem; font-size: 1.1rem; }

/* ---- CATEGORY CARDS ---- */
.shanrea-categories-section {
    padding: 4rem 0;
    background: var(--s-white);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1.25rem;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.75rem 1rem 1.25rem;
    background: var(--s-page);
    border-radius: var(--s-radius);
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: var(--s-shadow);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--s-shadow-hover);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.category-card h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--s-text);
    margin: 0 0 0.3rem;
}

.category-link {
    font-size: 0.8rem;
    color: var(--s-blue);
    font-weight: 600;
}

/* Category top border accents */
.cat-soft    { border-top: 4px solid var(--s-pink); }
.cat-action  { border-top: 4px solid var(--s-blue); }
.cat-blocks  { border-top: 4px solid var(--s-yellow); }
.cat-vehicles{ border-top: 4px solid var(--s-green); }
.cat-games   { border-top: 4px solid var(--s-purple); }
.cat-edu     { border-top: 4px solid var(--s-red); }

/* ---- PRODUCT CARDS ---- */
.shanrea-featured {
    padding: 4rem 0;
    background: var(--s-page);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--s-white);
    border-radius: var(--s-radius);
    overflow: hidden;
    box-shadow: var(--s-shadow);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--s-shadow-hover);
}

.product-image {
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #DBEAFE, #E0E7FF, #EDE9FE);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-placeholder {
    font-size: 4rem;
    opacity: 0.5;
}

.product-info {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--s-text);
    margin: 0 0 0.5rem;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--s-text-secondary);
    margin: 0 0 1rem;
    flex: 1;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.product-price {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--s-blue);
}

.btn-message {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, var(--s-pink), var(--s-purple));
    color: white !important;
    border-radius: var(--s-radius-pill);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(236,72,153,0.25);
}

.btn-message:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(236,72,153,0.35);
}

.view-all { text-align: center; margin-top: 2.5rem; }

/* ---- SOCIAL SECTION ---- */
.shanrea-social {
    padding: 4rem 0;
    background: var(--s-white);
}

.social-content {
    text-align: center;
    max-width: 550px;
    margin: 0 auto;
}

.social-content h2 {
    font-size: 2rem;
    color: var(--s-blue-dark);
    margin: 0 0 1rem;
}

.social-content p {
    font-size: 1.05rem;
    color: var(--s-text-secondary);
    margin: 0 0 2rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: var(--s-radius);
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s;
}

.social-facebook {
    background: #1877F2;
    color: white !important;
}

.social-facebook:hover {
    background: #166FE5;
    transform: translateY(-2px);
    color: white !important;
}

.social-tiktok {
    background: #010101;
    color: white !important;
}

.social-tiktok:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    color: white !important;
}

.social-icon { font-size: 1.4rem; }

/* ---- CTA SECTION ---- */
.shanrea-cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--s-hero-dark) 0%, var(--s-blue) 100%);
    text-align: center;
}

.shanrea-cta h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 2rem;
    color: white;
    margin: 0 0 1rem;
}

.shanrea-cta p {
    font-size: 1.05rem;
    color: var(--s-text-light);
    margin: 0 0 2rem;
}

/* ---- FOOTER ---- */
.site-footer {
    background: var(--s-footer) !important;
    padding: 3rem 0 1.5rem !important;
    color: rgba(255,255,255,0.7) !important;
}

.site-footer a { color: var(--s-yellow) !important; }

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: white;
    font-family: 'Fredoka', sans-serif;
    font-size: 1rem;
    margin: 0 0 1rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: rgba(255,255,255,0.7) !important;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--s-yellow) !important; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* Hide WooCommerce defaults */
button.single_add_to_cart_button,
a.add_to_cart_button,
.woocommerce-loop-add-to-cart-link { display: none !important; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .hero-title { font-size: 2.4rem; }
    .shanrea-hero { padding: 3rem 1rem 3.5rem; min-height: 380px; }
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-trust { flex-wrap: wrap; gap: 0.75rem; }
    .section-header h2 { font-size: 1.6rem; }
    .footer-columns { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: 1fr; }
    .product-footer { flex-direction: column; align-items: flex-start; }
    .hero-actions { flex-direction: column; }
}