:root {
    --cor-primaria: #FF6B35;
    --cor-secundaria: #6C63FF;
    --cor-destaque: #FFE66D;
    --cor-texto: #1a1a1a;
    --cor-fundo: #ffffff;
    --cor-borda: #e5e5e5;
    --radius: 12px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: var(--cor-texto);
    background: var(--cor-fundo);
    line-height: 1.5;
}

[x-cloak] { display: none !important; }

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

a { color: inherit; text-decoration: none; }

.btn {
    display: inline-block;
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius);
    background: var(--cor-primaria);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { opacity: .9; transform: translateY(-1px); }
.btn-block { display: block; width: 100%; }
.btn-primary { background: var(--cor-primaria); }
.btn-whatsapp { background: #25D366; margin-top: 8px; }

/* Header */
.site-header {
    background: var(--cor-primaria);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 40;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo { font-size: 1.3rem; font-weight: 800; color: #fff; }
.logo img { max-height: 40px; }
.cart-toggle {
    background: rgba(255,255,255,.15);
    border: none;
    border-radius: 999px;
    color: #fff;
    padding: 8px 16px;
    font-size: 1rem;
    cursor: pointer;
}

/* Category nav */
.category-nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0;
}
.category-nav a {
    padding: 8px 16px;
    border: 2px solid var(--cor-secundaria);
    border-radius: 999px;
    color: var(--cor-secundaria);
    font-weight: 600;
}

/* Product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin: 24px 0 60px;
}
.product-card {
    border: 1px solid var(--cor-borda);
    border-radius: var(--radius);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.product-card-img {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
    overflow: hidden;
    background: #f4f4f4;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card h3 { font-size: 1rem; margin: 4px 0; }
.product-card-preco { display: flex; gap: 8px; align-items: baseline; }
.preco-antigo { text-decoration: line-through; color: #999; font-size: .85rem; }
.preco-atual { color: var(--cor-primaria); font-weight: 800; font-size: 1.15rem; }
.empty-state { padding: 40px 0; color: #777; text-align: center; }

/* Product page */
.product-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 32px 0 60px;
}
.product-gallery img { width: 100%; border-radius: var(--radius); margin-bottom: 12px; }
.product-preco { margin: 12px 0; }
.product-qtd, .cart-item-qtd {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
}
.product-qtd button, .cart-item-qtd button {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid var(--cor-borda);
    background: #fff;
    cursor: pointer;
}
.product-variantes { margin: 16px 0; }
.product-variantes select { width: 100%; padding: 10px; border-radius: var(--radius); border: 1px solid var(--cor-borda); }

/* Cart slide-over */
.cart-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 50;
}
.cart-panel {
    position: fixed; top: 0; right: 0;
    width: min(420px, 100%);
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0,0,0,.15);
}
.cart-panel-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px; border-bottom: 1px solid var(--cor-borda);
}
.cart-panel-header button { background: none; border: none; font-size: 1.5rem; cursor: pointer; }
.cart-panel-body { flex: 1; overflow-y: auto; padding: 16px; }
.cart-panel-footer { padding: 16px; border-top: 1px solid var(--cor-borda); }
.cart-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--cor-borda);
}
.cart-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }
.cart-item-info { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; }
.cart-item-preco { text-align: right; font-weight: 700; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.cart-item-remove { background: none; border: none; cursor: pointer; }
.cart-empty { text-align: center; color: #777; padding: 40px 0; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.1rem; margin: 12px 0; }
.cart-total-final { font-weight: 800; font-size: 1.3rem; }

/* Checkout */
.checkout-form fieldset {
    border: 1px solid var(--cor-borda);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
}
.checkout-form label {
    display: block;
    margin-bottom: 12px;
    font-size: .9rem;
    font-weight: 600;
}
.checkout-form input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--cor-borda);
    margin-top: 4px;
    font-size: 1rem;
}
.radio-option { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.checkout-resumo { margin: 20px 0; }
.checkout-erro { color: #c0392b; font-weight: 600; margin-top: 12px; }

/* Support floating buttons */
.support-float {
    position: fixed;
    bottom: 20px; right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 45;
}
.support-btn {
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.support-whatsapp { background: #25D366; }
.support-email { background: var(--cor-secundaria); }

.site-footer {
    background: #111;
    color: #ccc;
    padding: 24px 0;
    text-align: center;
    margin-top: 60px;
}

.page-title { margin: 24px 0; }
.page-not-found { text-align: center; padding: 80px 0; }

.order-status-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--cor-destaque);
    font-weight: 700;
}

@media (max-width: 768px) {
    .product-page { grid-template-columns: 1fr; }
}
