/* Variáveis CSS Modernas */
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary: #10b981;
    --dark: #0f172a;
    --dark-gray: #334155;
    --medium-gray: #64748b;
    --light-gray: #e2e8f0;
    --light: #f8fafc;
    --white: #ffffff;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

/* Reset e Estilos Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
    padding-top: 100px;
}

/* Tipografia Moderna */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

/* Header Moderno com Glassmorphism */
.navbar-glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar-glass.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: var(--primary);
}

.brand-name {
    font-size: 1.25rem;
    margin-left: 0.75rem;
}

/* Barra de Busca Moderna */
.search-container {
    max-width: 600px;
}

.search-form {
    position: relative;
}

.search-input {
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--light-gray);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.btn-search {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--medium-gray);
}

/* Ícones de Ação */
.action-icons {
    display: flex;
    gap: 1rem;
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--dark);
    transition: var(--transition);
}

.icon-btn:hover {
    background-color: var(--light-gray);
    color: var(--primary);
}

/* Aviso CNPJ */
.cnpj-alert {
    background-color: rgba(245, 158, 11, 0.1);
}

/* Hero Banner */
.hero-banner {
    margin-bottom: 3rem;
}

.carousel {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.carousel-item img {
    height: 500px;
    object-fit: cover;
    object-position: center;
}

.carousel-caption {
    bottom: 3rem;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 0.5rem;
    padding: 1.5rem;
    left: 10%;
    right: 10%;
}

.carousel-caption h2 {
    font-size: 2.25rem;
    font-weight: 700;
}

/* Categorias */
.categories-section {
    background-color: var(--white);
}

.section-header {
    position: relative;
    padding-bottom: 0.5rem;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
}

.category-card {
    background: var(--white);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.category-img-container {
    position: relative;
    overflow: hidden;
    height: 180px;
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover .category-img {
    transform: scale(1.05);
}

.category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

.category-title {
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

.category-link {
    color: inherit;
}

/* Paginação Moderna */
.pagination .page-item .page-link {
    border: none;
    color: var(--medium-gray);
    margin: 0 2px;
    border-radius: 8px;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary);
    color: var(--white);
}

.pagination .page-item:not(.active) .page-link:hover {
    background-color: var(--light-gray);
    color: var(--primary);
}

/* Rodapé Moderno */
.footer {
    background-color: var(--dark);
    color: var(--light);
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-link {
    display: inline-block;
    color: var(--light-gray);
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-contacts {
    list-style: none;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--light-gray);
}

.contact-icon {
    margin-right: 0.75rem;
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-gray);
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.payment-icon {
    width: 40px;
    height: 25px;
    object-fit: contain;
    border-radius: 4px;
    background: var(--white);
    padding: 2px;
}

/* WhatsApp Float Moderno */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

/* Responsividade */
@media (max-width: 992px) {
    .carousel-item img {
        height: 400px;
    }
    
    .carousel-caption {
        left: 5%;
        right: 5%;
    }
    
    .carousel-caption h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 90px;
    }
    
    .search-container {
        order: 3;
        width: 100%;
        margin-top: 1rem;
    }
    
    .carousel-item img {
        height: 300px;
    }
    
    .carousel-caption {
        padding: 1rem;
        bottom: 1.5rem;
    }
    
    .carousel-caption h2 {
        font-size: 1.5rem;
    }
    
    .category-img-container {
        height: 150px;
    }
}

@media (max-width: 576px) {
    .carousel-item img {
        height: 250px;
    }
    
    .carousel-caption {
        display: none;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }
}