/* ============================================
   RESET E VARIÁVEIS - SIDEBAR LAYOUT
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta Thiago Doces - Baseada no Logo */
    --primary: #186f6b;
    /* Teal Escuro (Moderno/Gourmet) */
    --primary-hover: #125552;
    --primary-light: #d1e5e2;
    /* Verde Água Claro (Creme) */
    --secondary: #ddb696;
    /* Bege/Tan (Suave) */
    --accent: #f3ae56;
    /* Laranja/Mostarda (Destaque) */
    --accent-hover: #e09b45;

    /* Cores de Fundo e Texto */
    --bg-page: #f0f7f6;
    /* Off-white com leve tom de teal */
    --bg-sidebar: #FFFFFF;
    --text-main: #1a2c2b;
    /* Marrom/Teal quase preto */
    --text-muted: #5a7b78;
    /* Teal acinzentado */
    --white: #FFFFFF;
    --border-light: #e5efee;

    /* Efeitos Modernos */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);

    /* Sombras Elevadas (Multi-layer) */
    --shadow-sm: 0 4px 6px rgba(24, 111, 107, 0.05);
    --shadow: 0 10px 25px -5px rgba(24, 111, 107, 0.1), 0 8px 10px -6px rgba(24, 111, 107, 0.1);
    --shadow-lg: 0 20px 50px -12px rgba(24, 111, 107, 0.15);

    /* Border Radius */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 30px;

    --sidebar-width: 300px;
    --transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);

    /* Escala de Espaçamento */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 4.5rem;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-wrap: nowrap;
    font-size: 1rem;
}

/* Keyframes de Animação */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 64, 129, 0.4);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 64, 129, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 64, 129, 0);
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-light);
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 15px 0 50px rgba(166, 124, 82, 0.05);
}

.sidebar-header {
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to bottom, var(--primary-light), var(--white));
}

.sidebar-logo-container {
    padding: 2rem;
    background: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow);
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.sidebar-logo-container:hover {
    transform: rotate(3deg) scale(1.05);
}

.sidebar-logo-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md);
}

.nav-section-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin: 3rem 0 1.25rem 1rem;
    opacity: 0.9;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius);
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) translateX(-100%);
    width: 4px;
    height: 60%;
    background: var(--primary);
    border-radius: 0 4px 4px 0;
    transition: var(--transition);
}

.nav-item:hover {
    background: var(--primary-light);
    color: var(--primary);
    padding-left: 1.75rem;
}

.nav-item:hover::before {
    transform: translateY(-50%) translateX(0);
}

.nav-item.active {
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(166, 124, 82, 0.3);
}

.nav-item.active .nav-icon {
    transform: scale(1.1);
}

.nav-icon {
    font-size: 1.4rem;
    transition: var(--transition);
}

.sidebar-footer {
    padding: var(--space-sm) var(--space-md);
    border-top: 1px solid var(--border-light);
}

.sidebar-cart-btn {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.sidebar-cart-btn:hover {
    background: var(--primary-hover);
}

.cart-badge {
    background: var(--white);
    color: var(--primary);
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 800;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin 0.3s ease;
}

.top-bar {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.25rem var(--space-md);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.search-container {
    flex: 1;
    max-width: 400px;
    position: relative;
    display: flex;
    align-items: center;
}

#searchInput {
    width: 100%;
    padding: 0.85rem 3rem 0.85rem 1.5rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    font-size: 0.95rem;
    background: var(--white);
    transition: var(--transition);
    box-shadow: inset 0 2px 4px rgba(166, 124, 82, 0.05);
}

#searchInput:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(166, 124, 82, 0.15), inset 0 2px 4px rgba(166, 124, 82, 0.05);
    background: var(--white);
    transform: translateY(-1px);
}

.search-icon {
    position: absolute;
    right: 1.25rem;
    color: var(--primary);
    pointer-events: none;
    font-size: 1rem;
    transition: var(--transition);
}

#searchInput:focus+.search-icon {
    transform: scale(1.1);
    color: var(--primary-hover);
}

.menu-toggle {
    display: none;
    background: var(--bg-sidebar);
    border: 1px solid var(--border-light);
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
}

.brand-info-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.top-bar-logo {
    height: 40px;
    width: auto;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    background: white;
}

.brand-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin: 0;
}

.page-tagline {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.7;
    margin-top: 0.2rem;
}

.mobile-cart-btn {
    display: none;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
}

.content-wrapper {
    flex: 1;
    padding: var(--space-md) var(--space-lg) var(--space-xl);
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.filter-status {
    margin: var(--space-md) 0 var(--space-md) 0;
}

#filterInfo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: -0.01em;
}

/* ============================================
   BANNER DE STATUS DA LOJA
   ============================================ */
.store-status-banner {
    margin-bottom: var(--space-md);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    animation: fadeInUp 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: var(--transition);
}

.store-status-banner.open {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.store-status-banner.closed {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.1);
}

.status-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
}

#statusIcon {
    font-size: 1.25rem;
}

#statusMessage {
    font-size: 0.95rem;
}

.filter-bar {
    margin-bottom: var(--spacing-lg);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    padding: 1.5rem;
    background: var(--bg-sidebar);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filter-group label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.price-inputs {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 0 0.75rem;
}

.price-inputs input {
    width: 70px;
    padding: 0.6rem 0.4rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 600;
    outline: none;
}

.filter-group select {
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    background: var(--white);
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 0.9rem;
}

.btn-clear-filters {
    padding: 0.6rem 1.25rem;
    background: var(--white);
    color: var(--text-muted);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-clear-filters:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* ============================================
   PRODUTOS
   ============================================ */
/* Seções de Categoria */
.category-section {
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.8s ease backwards;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: var(--space-lg) 0 var(--space-md) 0;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid var(--border-light);
}

.category-header-icon {
    font-size: 2rem;
    background: var(--primary-light);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    color: var(--primary);
}

/* Ícones de Categoria Premium */
.icon-category-doces {
    color: #ec4899; /* Rosa vibrante */
    filter: drop-shadow(0 4px 6px rgba(236, 72, 153, 0.2));
}

.icon-category-cone {
    color: #92400e; /* Marrom chocolate */
    filter: drop-shadow(0 4px 6px rgba(146, 64, 14, 0.2));
}

.icon-category-kits {
    color: #6366f1; /* Indigo/Azul Royal */
    filter: drop-shadow(0 4px 6px rgba(99, 102, 241, 0.2));
}

.icon-category-bolos {
    color: #f59e0b; /* Amarelo Ouro */
    filter: drop-shadow(0 4px 6px rgba(245, 158, 11, 0.2));
}

.category-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -0.02em;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-md);
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    /* Animação de Entrada */
    animation: fadeInUp 0.8s ease backwards;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(166, 124, 82, 0.2);
}

.product-image {
    width: 100%;
    height: 240px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.btn-favorite {
    position: absolute !important;
    top: 15px !important;
    left: 15px !important;
    width: 35px !important;
    height: 35px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid var(--border-light) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease !important;
    z-index: 100 !important;
    color: var(--text-muted) !important;
}

.btn-favorite:hover {
    transform: scale(1.1) !important;
    background: #fff !important;
    color: #ef4444 !important;
}

.btn-favorite.ativo {
    color: #ef4444 !important;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 10;
}

.product-badge.out-of-stock {
    background: #6b7280;
    opacity: 0.9;
}

.product-badge.destaque {
    background: #f59e0b;
}

.product-card.sem-estoque .product-image img {
    filter: grayscale(1) opacity(0.6);
}

.product-card.sem-estoque .btn-add-cart {
    background: var(--border-light);
    color: var(--text-muted);
    cursor: not-allowed;
}

.stock-warning {
    font-size: 0.8rem;
    color: #ef4444;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.product-info {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.product-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.product-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    margin-top: auto;
    border-top: 1px solid var(--border-light);
}

.price-current {
    color: var(--text-main);
    font-size: 1.5rem;
    font-weight: 800;
}

.btn-add-cart {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(166, 124, 82, 0.2);
}

.btn-add-cart::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 4s infinite linear;
}

.btn-add-cart:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(166, 124, 82, 0.3);
}

/* Estilos de Preço Promocional Premium */
.product-price {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.price-strikethrough {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.6;
}

.price-promo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.price-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
}

.price-original {
    font-size: 0.95rem;
    text-decoration: line-through;
    color: var(--text-muted);
    font-weight: 500;
}

.price-current {
    color: var(--text-main);
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
}

.price-promo .price-current {
    color: #ef4444;
    /* Vermelho vibrante para destacar a oferta */
}

/* Badge de Promoção Premium */
.product-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--accent);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(255, 64, 129, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-badge i {
    font-size: 0.8rem;
}

.product-badge.destaque {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.product-badge.promocao {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    animation: pulse 2s infinite;
}

/* WhatsApp Floating Button */
.whatsapp-link {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    background-color: #25D366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    z-index: 999;
}

.whatsapp-link:hover {
    transform: scale(1.1);
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* Modais Simplificados */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.modal.active {
    display: block;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2000;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 95%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2001;
    padding: var(--space-md);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.modal-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border-radius: var(--radius);
}

.close-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* ============================================
   CARRINHO E CHECKOUT
   ============================================ */
.cart-items {
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-light);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-sidebar);
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.cart-item-price {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-qty {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: var(--white);
    color: var(--text-main);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.btn-qty:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.cart-item-qty {
    font-size: 1.1rem;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

.btn-remove {
    margin-left: auto;
    background: none;
    border: none;
    color: #ef4444;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    opacity: 0.8;
    transition: var(--transition);
}

.btn-remove:hover {
    opacity: 1;
    text-decoration: underline;
}

.cart-total {
    padding: 1.5rem;
    background: var(--bg-sidebar);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.total-final {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px dashed var(--border-light);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
}

/* Formulário de Checkout */
.checkout-form h3 {
    margin-bottom: var(--space-sm);
    color: var(--secondary);
    font-size: 1.25rem;
    font-weight: 800;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-sidebar);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(142, 110, 83, 0.1);
}

.address-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.25rem;
}

.btn-whatsapp {
    width: 100%;
    background: #25D366;
    color: var(--white);
    border: none;
    padding: 1rem;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: var(--transition);
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #1eb956;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}

.empty-cart {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-cart p {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.empty-cart small {
    color: var(--text-muted);
}

/* ============================================
   RESPONSIVIDADE (MOBILE)
   ============================================ */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .page-title {
        display: none;
        /* Oculta o título longo no mobile para dar espaço à busca */
    }

    .top-bar-logo {
        height: 35px;
    }

    .mobile-cart-btn {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .top-bar-content {
        gap: 0.5rem;
        padding: 0 0.5rem;
    }

    .brand-info-wrapper {
        gap: 0.5rem;
    }

    .search-container {
        max-width: 150px;
    }

    #searchInput {
        padding: 0.6rem 2.5rem 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .page-tagline {
        display: none;
        /* Esconde o slogan no celular para dar mais espaço */
    }

    .top-bar-logo {
        height: 30px;
    }

    .mobile-cart-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 380px) {
    .search-container {
        width: 40px;
        flex: none;
    }

    #searchInput {
        width: 40px;
        padding: 0;
        cursor: pointer;
        opacity: 0;
        position: absolute;
        right: 0;
    }

    #searchInput:focus {
        width: 200px;
        opacity: 1;
        position: fixed;
        top: 60px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1001;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        padding: 1rem 0.75rem;
    }

    .top-bar-content {
        padding: 0 0.25rem;
    }

    .category-header {
        gap: 0.75rem;
        margin: 1.5rem 0 1rem 0;
    }

    .category-header-icon {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

    .category-title {
        font-size: 1.4rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 250px;
    }

    .product-price {
        font-size: 1.25rem;
    }

    .btn-add-cart {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* ============================================
   LOGIN MODAL
   ============================================ */
.login-modal-content {
    max-width: 400px !important;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 0;
}

.btn-login {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 1rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.btn-login:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 3rem !important;
    width: 100%;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--primary);
}

.error-message {
    background: #fee2e2;
    color: #ef4444;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    border: 1px solid #fecaca;
    margin-top: 1rem;
    animation: fadeInUp 0.3s ease;
}