/*
Theme Name: Toyland
Theme URI: https://seusite.com/loja-de-brinquedos
Author: Seu Nome
Author URI: https://seusite.com
Description: Tema WooCommerce completo para loja de brinquedos. Design responsivo, foco em conversão e categorias infantis. Inclui header com carrinho, hero, categorias, produtos em destaque e footer com widgets.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: toyland
Tags: woocommerce, loja, brinquedos, responsivo, ecommerce, wordpress
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
*/

/* Reset e base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #fff7ed;
    color: #1e293b;
    line-height: 1.6;
}
a { color: #f97316; text-decoration: none; }
a:hover { color: #ea580c; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
    background: #fff;
    border-bottom: 3px solid #f97316;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.site-title { font-size: 2rem; font-weight: 700; color: #f97316; }
.site-title a { color: inherit; }
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}
.main-navigation a {
    padding: 5px 10px;
    border-radius: 5px;
    transition: 0.2s;
}
.main-navigation a:hover {
    background: #f97316;
    color: #fff;
}
.cart-icon {
    position: relative;
    font-size: 1.2rem;
}
.cart-count {
    background: #ef4444;
    color: #fff;
    border-radius: 50%;
    padding: 2px 7px;
    font-size: 0.7rem;
    position: absolute;
    top: -8px;
    right: -10px;
}

/* Hero (para front-page.php, se quiser) */
.hero {
    background: linear-gradient(135deg, #f97316, #fbbf24);
    color: #fff;
    text-align: center;
    padding: 80px 20px;
    margin-bottom: 40px;
}
.hero h1 { font-size: 3rem; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; }
.hero .button {
    display: inline-block;
    background: #1e293b;
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: 0.3s;
}
.hero .button:hover { background: #334155; transform: scale(1.05); }

/* Categorias */
.categories { margin-bottom: 40px; }
.categories h2 { text-align: center; margin-bottom: 30px; font-size: 2rem; }
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}
.category-item {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: 0.3s;
}
.category-item:hover { transform: translateY(-5px); box-shadow: 0 5px 20px rgba(0,0,0,0.15); }
.category-icon { font-size: 3rem; margin-bottom: 10px; }
.category-name { font-weight: 600; color: #1e293b; }

/* Produtos em destaque */
.featured-products { margin-bottom: 40px; }
.featured-products h2 { text-align: center; margin-bottom: 30px; font-size: 2rem; }
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}
.product-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: 0.3s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 5px 20px rgba(0,0,0,0.15); }
.product-image {
    height: 200px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}
.product-info { padding: 15px; }
.product-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 5px; }
.product-price { color: #f97316; font-weight: 700; font-size: 1.2rem; }
.add-to-cart-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    background: #f97316;
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}
.add-to-cart-btn:hover { background: #ea580c; }

/* Footer */
.site-footer {
    background: #1e293b;
    color: #cbd5e1;
    padding: 40px 20px 20px;
    text-align: center;
}
.site-footer a { color: #fbbf24; }
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
    text-align: left;
}
.footer-widgets h3 { color: #fff; margin-bottom: 15px; }
.footer-bottom { border-top: 1px solid #334155; padding-top: 20px; font-size: 0.9rem; }

@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .site-header .container { flex-direction: column; gap: 10px; }
    .main-navigation ul { flex-wrap: wrap; justify-content: center; }
}