/* css/style.css */
:root {
    --primary-color: #006ce1;
    --primary-hover: #0056b3;
    --success-color: #198754;
    --bg-light: #f4f7f9;
    --card-shadow: 0 4px 12px rgba(0,0,0,0.06);
    --card-shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
    --radius-lg: 18px;
    --radius-md: 12px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: #333;
}

/* Navbar */
.navbar {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(8px);
}

.navbar-brand {
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

/* Categorias */
.categorias-wrapper {
    background: white;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.btn-filter {
    border: none;
    background: #f0f2f5;
    color: #65676b;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-filter.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 8px rgba(0, 108, 225, 0.2);
}

/* Produto Card Estilos */
.produto-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.produto-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover) !important;
}

.produto-img-container {
    height: 180px;
    width: 100%;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.produto-img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    cursor: pointer;
}

.produto-card:hover .produto-img-container img {
    transform: scale(1.08);
}

.badge-cat {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

/* Typography and Price */
.produto-titulo {
    font-weight: 600;
    font-size: 1rem;
    color: #1c1e21;
    margin-bottom: 4px;
}

.preco {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.unidade-text {
    font-size: 0.8rem;
    color: #8d949e;
}

/* Botão Adicionar */
.btn-add {
    background: #f0f2f5;
    color: var(--primary-color);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    padding: 10px;
    transition: all 0.2s;
}

.btn-add:hover {
    background: var(--primary-color);
    color: white;
}

/* Floating Action Button (FAB) for Mobile Cart */
.cart-fab {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 108, 225, 0.4);
    z-index: 1000;
    transition: transform 0.2s;
    border: none;
}

.cart-fab:active {
    transform: scale(0.9);
}

.cart-fab .badge-fab {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff3b30;
    color: white;
    border-radius: 50%;
    min-width: 24px;
    height: 24px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid white;
}

/* Hide Navbar cart button on small screens since we have FAB */
@media (max-width: 768px) {
    .nav-cart-btn {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .cart-fab {
        display: none !important;
    }
}

/* Offcanvas and Cart Items */
.offcanvas {
    border-radius: 20px 0 0 20px;
}

.carrinho-item-img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    background: #f0f2f5;
}

.btn-qtd {
    background: #f0f2f5;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-weight: bold;
}

.qtd-value {
    font-weight: 600;
    margin: 0 12px;
}

/* Store Hours Badge */
.badge-status {
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
}
.badge-aberto { background: #e7f5ed; color: #198754; }
.badge-fechado { background: #feebeb; color: #dc3545; }
