/* ===================================================================
   1. VARIÁVEIS DE COR E CONFIGURAÇÕES GLOBAIS
=================================================================== */
:root {
    /* Cores principais */
    --primary-color: #E71D36;      /* Vermelho principal */
    --secondary-color: #FF9F1C;    /* Laranja para destaques */
    --accent-color: #d8ba0d;       /* Amarelo/ouro para detalhes */
    --dark-color: #1A1A1A;         /* Texto principal */
    --light-color: #F8F9FA;        /* Fundo claro */
    --white-color: #FFFFFF;
    --green-color: #008000;        /* Para indicadores de pedido */
}

html,
body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    line-height: 1.7;
    overflow-x: hidden;
    background-color: #FAF7F2;
}

h1, h2, h3, h4, h5, h6, .fw-bold {
    font-weight: 700 !important;
}

a {
    text-decoration: none;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* ===================================================================
   2. BOTÕES GLOBAIS
=================================================================== */
.btn {
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    border-width: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #e68f19;
    border-color: #e68f19;
    color: var(--white-color);
}

.pedir-agora-btn.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.pedir-agora-btn.btn-primary:hover {
    background-color: var(--dark-color);
    border-color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-order-compact {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-order-compact:hover {
    background: #333;
    color: #fff;
}

/* ===================================================================
   3. NAVBAR
=================================================================== */
.navbar-container {
    padding: 0.75rem 1rem;
}

.navbar-container .sticky-top {
    top: 0.75rem;
}

.navbar {
    border-radius: 50px;
    transition: all 0.3s ease;
    background-color: #fff !important;
}

.navbar-brand {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-logo {
    height: 40px;
    width: auto;
}

.nav-link {
    font-weight: 500;
    margin: 0 10px;
    padding: 0.5rem 1.2rem !important;
    position: relative;
    transition: all 0.2s ease-in-out;
}

.navbar-nav .nav-link.active {
    background-color: #fffaf2;
    color: var(--primary-color) !important;
    border-radius: 50px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

@media (min-width: 992px) {
    .navbar-nav.mx-auto {
        left: 50%;
        transform: translateX(12%);
    }
}

/* ===================================================================
   4. HERO SECTION
=================================================================== */
.hero-section {
    min-height: 40vh;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0;
}

/* ===================================================================
   5. PERFIL DA LOJA
=================================================================== */
.store-profile-container {
    margin-top: -80px;
}

.store-profile-card {
    padding: 20px;
    background-color: var(--white-color);
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
}

.store-profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.store-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--white-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.store-profile-card:hover .store-logo {
    transform: rotate(10deg);
}

.rating {
    font-size: 1rem;
    color: var(--accent-color);
}

.info-item:hover {
    transform: scale(1.08);
}

/* ===================================================================
   6. COMO FUNCIONA (HOW IT WORKS)
=================================================================== */
#how-it-works .card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

#how-it-works .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--primary-color);
}

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#how-it-works .card:hover .icon-circle {
    transform: scale(1.1);
    background-color: var(--secondary-color);
}

/* ===================================================================
   7. PRATOS POPULARES (CARROSSEL)
=================================================================== */
.popular-card-compact {
    background: #fff;
    border-radius: 12px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 10px; 
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid #eee;
    height: 100%; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.popular-card-compact:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.product-img-compact {
    position: relative;
    width: 100%;
    height: 120px; 
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 10px;
    flex-shrink: 0; 
}

.product-img-compact img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.5s ease;
}

.product-content-compact h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.swiper.popularSwiper {
    padding: 10px 10px 50px 10px;
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-color) !important;
}

/* ===================================================================
   8. CARDÁPIO (CATEGORIAS E PRODUTOS)
=================================================================== */
.product-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--primary-color);
}

.product-card .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.object-fit-cover {
    object-fit: cover;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===================================================================
   9. CALL TO ACTION (CTA)
=================================================================== */
.cta-banner {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 10px 30px rgba(255, 159, 28, 0.3);
    transition: all 0.3s ease;
}

.cta-banner:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 159, 28, 0.4);
}

.cta-banner .btn-light:hover {
    background-color: var(--white-color);
    color: var(--secondary-color);
    transform: translateY(-3px) scale(1.05);
}

/* ===================================================================
   10. RODAPÉ (FOOTER)
=================================================================== */
#footer.footer-modern {
    background-color: #1c1c1c;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-main h5 {
    color: var(--white-color);
    margin-bottom: 1.2rem;
}

.footer-contact-list i {
    color: var(--primary-color);
    margin-right: 1rem;
    font-size: 1.2rem;
    margin-top: 2px;
    transition: transform 0.3s ease;
}

.footer-contact-list li:hover i {
    transform: scale(1.2);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    display: inline-block;
    padding: 2px 0;
    transition: all 0.3s ease;
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    right: 0;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
    left: 0;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.social-icon {
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-3px) scale(1.1);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.footer-bottom {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
    color: var(--primary-color) !important;
    font-weight: 700;
    transition: 0.3s;
}

.footer-bottom a:hover {
    color: #fff !important;
    text-decoration: underline;
}

@media (max-width: 767px) {
    
    footer .container > .row:first-of-type > div:first-child {
        text-align: center !important;
        display: block;
        width: 100%;
    }
    .footer-contact-list li {
        justify-content: center !important;
        display: flex;
    }

    .footer-bottom {
        text-align: center !important;
    }
    
    .footer-bottom .text-md-start, 
    .footer-bottom .text-md-end {
        text-align: center !important;
    }
}

/* ===================================================================
   11. RESPONSIVIDADE
=================================================================== */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute;
        top: calc(100% + 10px);
        left: 1rem;
        right: 1rem;
        background-color: var(--white-color);
        border-radius: 1rem;
        padding: 1rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
        border: 1px solid #eee;
        z-index: 1050;
    }

    .store-info-group {
        border-left: none;
        padding-left: 0;
        margin-top: 1.5rem !important;
        padding-top: 1.5rem;
        border-top: 1px solid #eee;
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .store-profile-card .d-flex {
        flex-direction: column;
        text-align: center;
    }

    .store-logo {
        width: 100px;
        height: 100px;
    }

    .store-profile-card .ms-3.ms-md-4 {
        margin-left: 0 !important;
        margin-top: 1rem;
    }

    .store-profile-card h2 {
        font-size: 1.5rem;
    }

    .store-info-group {
        flex-direction: column;
        gap: 20px;
    }

    .product-card {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        padding: 0.75rem;
    }

    .product-card .card-img-top {
        width: 100px;
        height: 100px;
        border-radius: 0.75rem;
        flex-shrink: 0;
    }

    .product-card .card-body {
        padding: 0 0 0 1rem;
    }
}

@media (max-width: 576px) {
    
    .menu-categories .product-card {
        display: flex;
        flex-direction: row !important; 
        align-items: center;
        height: auto !important;
        padding: 5px !important;
        border: 1px solid #f0f0f0; 
    }

    .menu-categories .product-card .position-relative {
        width: 110px !important; 
        height: 110px !important;
        flex-shrink: 0; 
        border-radius: 10px;
        overflow: hidden;
    }
    
    .menu-categories .product-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .menu-categories .product-card .card-body {
        padding: 5px 5px 5px 15px !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 100%;
    }

    .menu-categories .product-card .card-title {
        font-size: 1rem !important;
        margin-bottom: 5px !important;
        line-height: 1.2;
        white-space: normal; 
    }

    .menu-categories .product-card .fw-bold.text-danger {
        font-size: 1.1rem !important;
        margin-bottom: 8px !important;
        text-align: left; 
    }
    
    .menu-categories .pedir-agora-btn {
        font-size: 0.75rem !important;
        padding: 5px 15px;
        width: auto !important; 
        align-self: flex-start; 
    }

    .menu-categories .product-card .card-text {
        display: none !important;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .row.g-4 {
        --bs-gutter-y: 15px;
    }

    .store-info-group {
        flex-direction: row !important;
        justify-content: space-between !important;
        gap: 5px;
        width: 100%;
        margin-top: 10px;
    }

    .store-info-group .info-item {
        display: flex;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
        width: 32%;
    }

    .store-info-group .info-item i,
    .store-info-group .info-item svg {
        margin-right: 0 !important;
        margin-bottom: 5px;
        font-size: 1.2rem;
    }

    .store-info-group .info-item div,
    .store-info-group .info-item span,
    .store-info-group .info-item small,
    .store-info-group .info-item p {
        font-size: 0.75rem !important;
        line-height: 1.2;
        margin: 0;
        white-space: nowrap;
    }
}