:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4cc9f0;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar */
.navbar {
    margin: 0;
    padding: 10px 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 5rem 0;
    margin-bottom: 3rem;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.hero-title {
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

.btn-hero {
    background-color: white;
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
    text-decoration: none;
    display: inline-block;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    color: var(--primary-color);
}

/* Section Titles */
.section-title {
    font-weight: 600;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.product-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-img {
    height: 200px;
    object-fit: contain;
    padding: 20px;
    background: #f9f9f9;
    width: 100%;
}

.product-title {
    font-weight: 600;
    margin: 10px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.product-old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
}

.btn-product {
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 100%;
    padding: 10px 0;
    border-radius: 0 0 10px 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
    margin-top: auto;
}

.btn-product:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background-color: white;
}

.feature-box {
    text-align: center;
    padding: 20px;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    background-color: #f8f9fa;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-icon i {
    transition: transform 0.3s ease;
}

.feature-box:hover .feature-icon i {
    transform: scale(1.1);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-icons a {
    color: white;
    font-size: 1.2rem;
    margin-right: 15px;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-icons a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* Product Image Main */
.product-image-main {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
}

/* Cart Badge */
#carrinho-qtd {
    background-color: var(--primary-color);
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 20px;
    text-align: center;
}

.navbar .fa-shopping-cart {
    color: #4361ee;
    transition: color 0.2s;
}

.navbar .fa-shopping-cart:hover {
    color: #3a56d4;
}

/* Payment Methods */
.payment-methods img {
    max-height: 30px;
    width: auto;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

/* Tablet */
@media (max-width: 768px) {
    /* REMOVIDO: padding-top: 70px que causava espaço em branco */
    
    .hero-section {
        padding: 3rem 0;
        margin-bottom: 2rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .product-card {
        margin-bottom: 15px;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .payment-methods img {
        max-height: 24px;
    }
    
    .feature-box {
        padding: 15px;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
}

/* Mobile Pequeno */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .product-img {
        height: 150px;
    }
}

/* ============================================ */
/* CORREÇÕES CARRINHO E FOOTER MOBILE */
/* ============================================ */

/* Carrinho - Ícone branco com fundo roxo */
.navbar .fa-shopping-cart {
    color: #ffffff !important; /* Ícone branco */
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.navbar .btn-carrinho {
    background: linear-gradient(135deg, #4361ee, #8b5cf6) !important; /* Fundo roxo */
    border: none !important;
    border-radius: 50px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(67, 97, 238, 0.3);
}

.navbar .btn-carrinho:hover {
    background: linear-gradient(135deg, #3a56d4, #7c3aed) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4);
}

.navbar .btn-carrinho:hover .fa-shopping-cart {
    color: #ffffff !important;
}

/* Badge do carrinho */
.navbar #carrinho-qtd {
    background-color: #ffffff !important;
    color: #4361ee !important;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 20px;
    text-align: center;
    position: absolute;
    top: -5px;
    right: -5px;
    border: 2px solid #4361ee;
}

/* Mobile - Carrinho centralizado e menor */
@media (max-width: 768px) {
    .navbar .btn-carrinho {
        padding: 6px 12px;
        font-size: 0.9rem;
        margin: 0 auto;
        display: inline-flex;
        justify-content: center;
        align-items: center;
    }
    
    .navbar .fa-shopping-cart {
        font-size: 1.2rem;
    }
    
    .navbar #carrinho-qtd {
        font-size: 0.7rem;
        min-width: 18px;
        padding: 1px 5px;
        top: -8px;
        right: -8px;
    }
    
    /* Ajuste para o container do carrinho no mobile */
    .navbar .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .navbar .navbar-brand {
        text-align: center;
        margin-bottom: 5px;
    }
    
    .navbar .btn-carrinho {
        align-self: center;
    }
}

/* Mobile muito pequeno */
@media (max-width: 375px) {
    .navbar .btn-carrinho {
        padding: 5px 10px;
        font-size: 0.85rem;
    }
    
    .navbar .fa-shopping-cart {
        font-size: 1.1rem;
    }
}

/* ============================================ */
/* FOOTER MOBILE - LINKS CENTRALIZADOS */
/* ============================================ */

@media (max-width: 768px) {
    /* Centraliza títulos do footer */
    .footer h4, 
    .footer h5 {
        text-align: center;
    }
    
    /* Centraliza as linhas decorativas dos títulos */
    .footer h4:after, 
    .footer h5:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Centraliza texto e parágrafos */
    .footer p {
        text-align: center;
    }
    
    /* Centraliza links */
    .footer-links {
        text-align: center;
    }
    
    .footer-links li {
        margin-bottom: 0.75rem;
    }
    
    .footer-links a {
        display: inline-block;
        text-align: center;
    }
    
    /* Centraliza ícones sociais */
    .social-icons {
        justify-content: center;
    }
    
    /* Centraliza formulário newsletter */
    .footer form {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .footer form input[type="email"] {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .footer form button {
        width: 100%;
        max-width: 200px;
    }
    
    /* Centraliza métodos de pagamento */
    .payment-methods {
        text-align: center;
        margin-top: 1.5rem;
    }
    
    .payment-methods img {
        margin: 0.25rem;
    }
    
    /* Ajusta copyright */
    .footer .copyright {
        text-align: center;
    }
}

/* Mobile muito pequeno */
@media (max-width: 375px) {
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer h4 {
        font-size: 1.3rem;
    }
    
    .footer h5 {
        font-size: 1.1rem;
    }
    
    .social-icons a {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

/* ============================================ */
/* CORREÇÕES COMPLETAS MOBILE */
/* ============================================ */

/* ============================================ */
/* 1. CENTRALIZAR "POR QUE COMPRAR CONOSCO?" */
/* ============================================ */

@media (max-width: 768px) {
    /* Centraliza o título da seção */
    .section-title {
        display: block !important;
        text-align: center !important;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Centraliza a linha decorativa do título */
    .section-title:after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    /* Centraliza as features */
    .feature-box {
        text-align: center;
    }
    
    .feature-box h3,
    .feature-box h4,
    .feature-box h5 {
        text-align: center;
    }
    
    .feature-box p {
        text-align: center;
    }
    
    /* Centraliza ícones das features */
    .feature-icon {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

/* ============================================ */
/* 2. REDUZIR BOTÃO DO CARRINHO NO MOBILE */
/* ============================================ */

@media (max-width: 768px) {
    .navbar .btn-carrinho {
        padding: 5px 10px !important;
        font-size: 0.85rem !important;
        border-radius: 50px !important;
        min-width: auto !important;
        max-width: 120px !important;
        gap: 5px !important;
    }
    
    .navbar .fa-shopping-cart {
        font-size: 1.1rem !important;
    }
    
    /* Texto do botão menor */
    .navbar .btn-carrinho .btn-text {
        font-size: 0.8rem !important;
        display: inline;
    }
    
    /* Badge menor */
    .navbar #carrinho-qtd {
        font-size: 0.65rem !important;
        min-width: 16px !important;
        height: 16px !important;
        line-height: 16px !important;
        padding: 0 !important;
        position: absolute !important;
        top: -6px !important;
        right: -6px !important;
    }
}

/* Mobile muito pequeno */
@media (max-width: 375px) {
    .navbar .btn-carrinho {
        padding: 4px 8px !important;
        font-size: 0.8rem !important;
        max-width: 100px !important;
    }
    
    .navbar .fa-shopping-cart {
        font-size: 1rem !important;
    }
    
    .navbar .btn-carrinho .btn-text {
        font-size: 0.75rem !important;
    }
    
    .navbar #carrinho-qtd {
        font-size: 0.6rem !important;
        min-width: 14px !important;
        height: 14px !important;
        line-height: 14px !important;
    }
}

/* ============================================ */
/* 3. MELHORAR O NÚMERO 0 DO CARRINHO */
/* ============================================ */

/* Badge do carrinho - estilo melhorado */
.navbar #carrinho-qtd {
    background-color: #ffffff !important;
    color: #4361ee !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    min-width: 20px !important;
    height: 20px !important;
    line-height: 20px !important;
    text-align: center !important;
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    border: 2px solid #4361ee !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

/* Quando o número é 0, fica mais discreto */
.navbar #carrinho-qtd.zero {
    background-color: #e0e0e0 !important;
    color: #999 !important;
    border-color: #ccc !important;
    box-shadow: none !important;
    transform: scale(0.9);
}

/* Animação quando o número muda */
.navbar #carrinho-qtd.pulse {
    animation: pulse 0.3s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ============================================ */
/* 4. MENU SANDUÍCHE ALINHADO À ESQUERDA */
/* ============================================ */

@media (max-width: 768px) {
    /* Container do navbar */
    .navbar .container {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 5px 10px !important;
        gap: 5px !important;
        position: relative !important;
    }
    
    /* Botão do menu sanduíche */
    .navbar-toggler {
        order: 1 !important;
        margin-left: 0 !important;
        margin-right: 5px !important;
        padding: 4px 8px !important;
        border: none !important;
        background: transparent !important;
        position: relative !important;
        left: 0 !important;
        z-index: 1000 !important;
    }
    
    /* Ícone do menu sanduíche */
    .navbar-toggler-icon {
        width: 20px !important;
        height: 20px !important;
        background-size: 20px !important;
    }
    
    /* Marca/Logo */
    .navbar-brand {
        order: 2 !important;
        font-size: 1.2rem !important;
        margin: 0 auto !important;
        text-align: center !important;
        flex: 1 !important;
    }
    
    /* Botão do carrinho */
    .navbar .btn-carrinho {
        order: 3 !important;
        margin-left: 5px !important;
        position: relative !important;
        right: 0 !important;
    }
    
    /* Menu colapsável */
    .navbar-collapse {
        order: 4 !important;
        width: 100% !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        background: white !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
        border-radius: 0 0 10px 10px !important;
        z-index: 999 !important;
    }
    
    /* Links do menu */
    .navbar-nav {
        padding: 10px !important;
        width: 100% !important;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 15px !important;
        border-radius: 5px !important;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: #f8f9fa !important;
    }
}

/* Mobile muito pequeno */
@media (max-width: 375px) {
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    
    .navbar-toggler {
        padding: 3px 6px !important;
    }
    
    .navbar-toggler-icon {
        width: 18px !important;
        height: 18px !important;
        background-size: 18px !important;
    }
    
    .navbar .btn-carrinho {
        padding: 4px 8px !important;
    }
}