/* Estilos Base do Sistema */

/* Reset e Configurações Globais */
:root {
    --primary-color: #FF4B2B;
    --secondary-color: #FF416C;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --border-radius: 8px;
    --box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
}

/* Layout Base */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
}

/* Responsividade */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    .col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Componentes Base */
.card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* Utilitários */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

/* Loading */
.loading {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid var(--light-gray);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Alertas */
.alert {
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.alert-success {
    background-color: var(--success-color);
    color: white;
}

.alert-warning {
    background-color: var(--warning-color);
    color: var(--dark-gray);
}

.alert-danger {
    background-color: var(--danger-color);
    color: white;
}

/* Topo da loja */
.loja-header {
    background: linear-gradient(90deg, #fff 60%, #e63946 100%);
    box-shadow: 0 2px 16px rgba(230,57,70,0.08);
    border-bottom: 4px solid #e63946;
}
.loja-logo {
    max-height: 80px;
    filter: drop-shadow(0 2px 8px #e63946aa);
}
.loja-nome {
    font-family: 'Inter', 'Roboto', sans-serif;
    color: #e63946;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px #e6394622;
}
.loja-info > div {
    font-size: 1.1rem;
    color: #222;
    background: #f1f1f1;
    border-radius: 1rem;
    padding: 0.3rem 1rem;
    margin: 0 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Carrossel de promoções */
#carrosselPromocoes .promo-card {
    background: linear-gradient(90deg, #fff 60%, #f8d7da 100%);
    border: 2px solid #e63946;
    box-shadow: 0 2px 16px #e6394622;
}
#carrosselPromocoes .preco-antigo {
    font-size: 1.1rem;
}
#carrosselPromocoes .preco-promocional {
    font-size: 1.5rem;
    color: #e63946;
    font-weight: bold;
}

/* Carrossel de categorias */
.categorias-carousel {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 2px 16px #e6394622;
    padding: 0.5rem 0;
}
.categoria-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid #e63946;
    color: #e63946;
    background: #fff;
}
.categoria-card:hover, .categoria-card.active {
    background: #e63946;
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 4px 16px #e6394622;
    border-color: #e63946;
}
.categoria-nome {
    font-weight: bold;
    font-size: 1.1rem;
}

/* Grid de produtos */
.categoria-secao {
    margin-bottom: 2.5rem;
}
.categoria-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.categoria-titulo {
    color: #e63946;
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
}
.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.produto-card {
    background: #fff;
    border-radius: 1.2rem;
    box-shadow: 0 2px 16px #e6394622;
    padding: 1.2rem 1rem 1rem 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.produto-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 32px #e6394622;
}
.produto-imagem img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 1rem;
    margin-bottom: 0.7rem;
    box-shadow: 0 2px 8px #e6394622;
}
.produto-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.produto-badge {
    background: #e63946;
    color: #fff;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    padding: 0.2rem 0.7rem;
    font-weight: bold;
    box-shadow: 0 2px 8px #e6394622;
}
.produto-conteudo {
    text-align: center;
}
.produto-nome {
    font-size: 1.1rem;
    font-weight: bold;
    color: #222;
    margin-bottom: 0.3rem;
}
.produto-descricao {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.5rem;
    min-height: 38px;
}
.produto-precos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
}
.produto-preco-atual {
    font-size: 1.2rem;
    color: #e63946;
    font-weight: bold;
}
.produto-preco-antigo {
    font-size: 1rem;
    color: #aaa;
    text-decoration: line-through;
}
.produto-adicionar {
    background: linear-gradient(90deg, #e63946 60%, #ffb4a2 100%);
    color: #fff;
    border: none;
    border-radius: 0.7rem;
    padding: 0.5rem 1.2rem;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 2px 8px #e6394622;
    transition: background 0.2s, transform 0.2s;
}
.produto-adicionar:hover {
    background: linear-gradient(90deg, #ffb4a2 0%, #e63946 100%);
    color: #fff;
    transform: scale(1.05);
}

@media (max-width: 600px) {
    .loja-header {
        padding: 1.2rem 0.2rem;
    }
    .produtos-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.7rem;
    }
    .categoria-titulo {
        font-size: 1.2rem;
    }
} 