/*
Theme Name: Ryan Kidz
Theme URI: https://kizobazar.shop
Author: Custom Developer
Author URI: https://kizobazar.shop
Description: A colorful, playful, fully responsive custom WooCommerce theme designed for Ryan Kidz - a premier kids' store and toy shop in Tanzania. Features direct WhatsApp ordering, Tanzanian Shilling currency support, and custom store settings.
Version: 1.0.0
Text Domain: ryankidz-tz-theme
*/

/* CSS Reset & Variables */
:root {
    --primary-yellow: #FFD166;
    --primary-yellow-hover: #F4C44E;
    --sky-blue: #118AB2;
    --sky-blue-hover: #0E7192;
    --soft-white: #FAF9F6;
    --card-white: #FFFFFF;
    --whatsapp-green: #25D366;
    --whatsapp-green-hover: #1EBE57;
    --dark-text: #2D3142;
    --light-text: #4F5D75;
    --border-color: #E2E8F0;
    --radius: 12px;
    --font-family: 'Fredoka', 'Quicksand', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--soft-white);
    color: var(--dark-text);
    line-height: 1.6;
}

a {
    color: var(--sky-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--sky-blue-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header & Top Bar */
.top-bar {
    background-color: var(--sky-blue);
    color: #ffffff;
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-info span {
    margin-right: 15px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.top-bar-info a {
    color: #ffffff;
}

.main-header {
    background-color: var(--card-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-branding img {
    max-height: 55px;
    width: auto;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--sky-blue);
}

.site-title a {
    color: var(--sky-blue);
}

.site-description {
    font-size: 0.85rem;
    color: var(--light-text);
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.main-navigation a {
    font-weight: 600;
    color: var(--dark-text);
    padding: 5px 10px;
    border-radius: 6px;
}

.main-navigation a:hover {
    background-color: var(--primary-yellow);
    color: var(--dark-text);
}

/* Hero Section */
.hero-banner {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, #FFE5A3 100%);
    padding: 50px 0;
    text-align: center;
    border-radius: 0 0 30px 30px;
    margin-bottom: 40px;
}

.hero-banner h1 {
    font-size: 2.5rem;
    color: var(--dark-text);
    margin-bottom: 10px;
}

.hero-banner p {
    font-size: 1.2rem;
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto;
}

/* Product Section */
.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    color: var(--sky-blue);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-yellow);
    margin: 8px auto 0;
    border-radius: 2px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.product-card {
    background-color: var(--card-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.product-image-wrap {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #f8f9fa;
    position: relative;
}

.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image-wrap img {
    transform: scale(1.05);
}

.product-details {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark-text);
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sky-blue);
    margin-bottom: 10px;
}

.product-description {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 15px;
    flex-grow: 1;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    font-size: 0.9rem;
}

.btn-add-cart {
    background-color: var(--primary-yellow);
    color: var(--dark-text);
}

.btn-add-cart:hover {
    background-color: var(--primary-yellow-hover);
    color: var(--dark-text);
}

.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-green-hover);
}

/* Footer Section */
.site-footer {
    background-color: var(--dark-text);
    color: #E2E8F0;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    color: var(--primary-yellow);
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.footer-widget p, .footer-widget ul {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 8px;
}

.footer-widget a {
    color: #CBD5E1;
}

.footer-widget a:hover {
    color: var(--primary-yellow);
}

.footer-policies-section {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: var(--radius);
    margin-bottom: 30px;
}

.footer-policies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.policy-card h4 {
    color: var(--sky-blue);
    margin-bottom: 8px;
}

.policy-card p {
    font-size: 0.85rem;
    color: #94A3B8;
}

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

/* Responsive Styles */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    .top-bar .container {
        flex-direction: column;
        text-align: center;
    }
    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero-banner h1 {
        font-size: 1.8rem;
    }
}