/* ===================================================================
   1. CONFIGURAÇÕES GLOBAIS E VARIÁVEIS DE COR
=================================================================== */
:root {
    /* Cor tema do site */
    --primary-color: #E71D36;
    /* Laranja Principal */
    --secondary-color: #FF9F1C;
    /* Vermelho para Destaques/CTA */
    --accent-color: #d8ba0d;
    /* Amarelo/Ouro para pequenos detalhes */
    --dark-color: #1A1A1A;
    /* Preto para textos */
    --light-color: #F8F9FA;
    /* Cinza bem claro para fundos */
    --white-color: #FFFFFF;
    /* Verde para bola de pedido */
    --green-color: #008000;
}

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-top: 80px;
    padding-bottom: 80px;
}

.bg-light {
    background-color: var(--light-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* ===================================================================
   2. BOTÕES E ELEMENTOS 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);
    transform: translateY(-3px);
    /* Efeito de levantar mais pronunciado */
}

/* ===================================================================
   3. NAVBAR
=================================================================== */
.navbar-brand {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10px;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease-out;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 20px);
}


.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.sticky-top {
    transition: all 0.3s ease-out;
}

/* ===================================================================
   NAVBAR MODERNA E ARREDONDADA
=================================================================== */

.navbar-container {
    padding: 0.75rem 1rem;
}

.navbar-container .sticky-top {
    top: 0.75rem;
}

.navbar-container .navbar {
    border-radius: 50px;
    transition: all 0.3s ease;
}

/* Estilo para o logo retangular na navbar */
.navbar-logo {
    height: 40px;
    width: auto;
}

.nav-link::after {
    display: none;
}

.navbar-nav .nav-link.active {
    background-color: #fffaf2;
    color: var(--primary-color) !important;
    border-radius: 50px;
}

.navbar-nav .nav-link {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
    transition: all 0.2s ease-in-out;
}

@media (min-width: 992px) {
    .navbar .container {
        position: relative;
    }

    .navbar-nav.mx-auto {
        left: 50%;
        transform: translateX(12%);
    }
}

/* ===================================================================
   4. HERO SECTION (BANNER)
=================================================================== */
.hero-section {
    min-height: 40vh;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 120px;
    padding-bottom: 120px;
}

/* ===================================================================
   5. SEÇÃO "COMO FUNCIONA" (HOW IT WORKS)
=================================================================== */
.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

#how-it-works .card {
    transition: transform 0.3s ease, box-shadow 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);
}

#how-it-works .card:hover .icon-circle {
    transform: scale(1.1);
    background-color: var(--secondary-color);
}

/* ===================================================================
   6. SEÇÃO "CARDÁPIO" (POPULAR DISHES)
=================================================================== */
.product-card {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.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);
}


/* ===================================================================
   7. SEÇÃO "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: transform 0.3s ease, box-shadow 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 {
    color: var(--primary-color);
}

.cta-banner .btn-light:hover {
    background-color: var(--white-color);
    color: var(--secondary-color);
    transform: translateY(-3px) scale(1.05);
}


/* ===================================================================
   8. RODAPÉ (FOOTER) - VERSÃO COMPACTA E REFINADA
=================================================================== */
#footer.footer-modern {
    background-color: #1c1c1c;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-main h5 {
    color: var(--white-color);
    margin-bottom: 1.2rem;
}

.footer-main .text-primary {
    font-size: 1.5rem;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.8rem;
}

.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 li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    padding: 2px 0;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    display: block;
    margin-top: 2px;
    right: 0;
    background: var(--primary-color);
    transition: width .3s ease;
}

.footer-links a:hover::after {
    width: 100%;
    left: 0;
    background: var(--primary-color);
}


.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    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-top: 2rem;
    margin-bottom: 2rem;
}

.footer-bottom {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

/* ===================================================================
   9. PERFIL DA LOJA (LOGO + AVALIAÇÃO)
=================================================================== */
.store-profile-card {
    position: relative;
    margin-top: -80px;
    z-index: 10;
    padding: 20px;
    background-color: var(--white-color);
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.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);
}

.rating .text-muted {
    font-size: 0.9rem;
}

.info-item {
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: scale(1.08);
}

/* ===================================================================
   10. AJUSTES PARA CELULAR (RESPONSIVIDADE)
=================================================================== */
@media (max-width: 767px) {
    .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;
    }

    /* ===================================================================
   11. INFO ADICIONAL NO PERFIL DA LOJA (ENTREGA/HORÁRIO)
=================================================================== */
    .store-info-group {
        padding-left: 0;
        display: flex;
        justify-content: center;
        width: 100%;
        gap: 20px;
    }

    .info-item .fw-bold {
        font-size: 0.9rem;
        margin-top: 4px;
    }

    .info-item .small {
        font-size: 0.8rem;
        line-height: 1.2;
    }

/* ===================================================================
   12. AJUSTES RESPONSIVOS ADICIONAIS
=================================================================== */
    @media (max-width: 991.98px) {
        .navbar-collapse {
            position: absolute;
            top: calc(100% + 10px);
            left: 1rem;
            right: 1rem;
            z-index: 1050;
            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;
        }

        .navbar-collapse .navbar-nav,
        .navbar-collapse .d-flex {
            align-items: flex-start !important;
        }

        .navbar-collapse .d-flex {
            flex-direction: column;
            width: 100%;
            gap: 0.5rem;
        }

        .navbar-collapse .d-flex .btn {
            width: 100%;
            margin-left: 0 !important;
        }

        .navbar-collapse .dropdown-menu {
            width: 100%;
        }

        .store-profile-card .d-flex.flex-wrap {
            justify-content: center !important;
            text-align: center;
        }

        .store-info-group {
            border-left: none;
            padding-left: 0;
            margin-top: 1.5rem !important;
            padding-top: 1.5rem;
            border-top: 1px solid #eee;
            width: 100%;
            justify-content: center;
        }
    }

    @media (max-width: 767px) {

        .store-profile-card .d-flex.align-items-center {
            flex-direction: column;
        }

        .store-profile-card .ms-3.ms-md-4 {
            margin-left: 0 !important;
            margin-top: 1rem;
        }
    }

    /* ===================================================================
   13. AJUSTE FINO DE ALINHAMENTO MOBILE
=================================================================== */
    @media (max-width: 991.98px) {
        .store-info-group>.info-item.me-4 {
            margin-right: 0 !important;
        }
    }
}

/* ===================================================================
   LAYOUT RESPONSIVO DOS CARDS DE PRODUTO PARA MOBILE
=================================================================== */

.product-card .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

@media (max-width: 767.98px) {

    .product-card {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        padding: 0.75rem;
    }

    .product-card .card-img-top {
        width: 100px;
        height: 100px;
        object-fit: cover;
        flex-shrink: 0;
        border-radius: 0.75rem;
    }

    .product-card .card-body {
        padding: 0 0 0 1rem;
    }

    .product-card .card-title {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .product-card .card-text {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
    }

    .product-card .fs-5 {
        font-size: 1.1rem !important;
    }

    /* ===================================================================
   BARRA DE AÇÃO (QUANTIDADE E ADICIONAR) - DETALHES DO PRODUTO (VERSÃO FINAL)
=================================================================== */

    .quantity-selector .btn {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .action-btn {
        flex-shrink: 0;
    }

    @media (max-width: 767.98px) {
        .action-bar {
            align-items: center !important;
        }

        .quantity-selector-wrapper {
            width: auto;
            text-align: center;
            margin-right: 0 !important;
        }

        .quantity-selector {
            margin: 0;
            max-width: 180px;
        }

        .action-btn {
            width: 100%;
        }
    }
}