/* ===============================================
   FESTA EM CASA - LOJA - Design System Oficial
   =============================================== */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&display=swap');

:root {
    --terra: #D4825A;
    --terra-dark: #B86A42;
    --cacau: #2C2118;
    --creme: #FDF8F3;
    --areia: #F0E8DC;
    --sage: #C8DFC6;
    --azul: #B8D8E8;
    --muted: #7A5C4A;
    --white: #FFFFFF;
    --border: #E5DDD5;
    --shadow: 0 4px 16px rgba(44,33,24,0.08);
    --radius: 16px;
    --radius-sm: 10px;
}

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

body {
    font-family: 'Nunito', sans-serif;
    color: var(--cacau);
    background: var(--creme);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: var(--cacau);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- HEADER ---- */
.site-header {
    background: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(44,33,24,0.06);
}

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

.logo-img {
    height: 44px;
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--cacau);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.main-nav a:hover { color: var(--terra); }

.cart-link {
    background: var(--terra) !important;
    color: var(--white) !important;
    padding: 0.55rem 1.2rem;
    border-radius: 50px;
    font-weight: 700 !important;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.2s !important;
}

.cart-link:hover { background: var(--terra-dark) !important; }
.cart-count {
    background: var(--white);
    color: var(--terra);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ---- HERO ---- */
.hero-section {
    background: linear-gradient(135deg, var(--terra) 0%, var(--terra-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 4.5rem 24px;
    margin-bottom: 3rem;
}

.hero-section h1 {
    font-size: 2.8rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero-section p {
    font-size: 1.15rem;
    opacity: 0.92;
    max-width: 560px;
    margin: 0 auto;
}

/* ---- CATALOG LAYOUT ---- */
.catalog-section {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2.5rem;
    padding-bottom: 5rem;
}

/* ---- SIDEBAR ---- */
.sidebar-filters h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--cacau);
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--areia);
}

.filter-group { margin-bottom: 1.8rem; }

.filter-group h4 {
    font-size: 0.78rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.filter-group ul { list-style: none; }

.filter-group li { margin-bottom: 0.3rem; }

.filter-group a {
    text-decoration: none;
    color: var(--cacau);
    display: block;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    margin-left: -10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.15s, color 0.15s;
}

.filter-group a:hover {
    background: var(--areia);
    color: var(--terra);
}

/* ---- PRODUCT GRID ---- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.5rem;
    align-content: start;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(44,33,24,0.12);
}

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

.product-info { padding: 1.2rem; }

.product-theme {
    font-size: 0.72rem;
    color: var(--terra);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-info h2 {
    font-size: 1.05rem;
    margin: 0.4rem 0;
    line-height: 1.3;
    font-weight: 700;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--cacau);
    margin-bottom: 1rem;
}

.btn-primary {
    display: block;
    text-align: center;
    background: var(--cacau);
    color: var(--white);
    text-decoration: none;
    padding: 0.7rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.btn-primary:hover { background: var(--terra); }

.no-products {
    padding: 4rem 2rem;
    text-align: center;
    color: var(--muted);
    background: var(--white);
    border-radius: var(--radius);
    border: 1px dashed var(--border);
    grid-column: 1/-1;
}

/* ---- FOOTER ---- */
.site-footer {
    text-align: center;
    padding: 2rem;
    background: var(--areia);
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .catalog-section { grid-template-columns: 1fr; }
    .hero-section h1 { font-size: 2rem; }
    .sidebar-filters { display: none; }
}
