/* assets/css/style.css */
:root {
    --primary-color: #2e7d32;
    --primary-dark: #1b5e20;
    --secondary-color: #f57c00;
    --accent-color: #d32f2f;
    --accent-yellow: #ffe082;
    --light-bg: #f8f9fa;
    --card-bg: #ffffff;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --border-color: #e0e0e0;
    --radius-sm: 6px;
    --radius-md: 10px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header & Barra de Navegação */
.header-topo {
    background-color: var(--primary-color);
    color: #fff;
    padding: 1rem 0;
    border-bottom: 3px solid var(--secondary-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
}

.brand-title span,
.text-warning-custom {
    color: var(--accent-yellow) !important;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.2s ease;
}

.nav-menu a:hover {
    opacity: 0.85;
}

.btn-nav-auth {
    background-color: var(--secondary-color);
    padding: 0.45rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}

/* Botão de Ícone de Login no Topo */
.nav-icon-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-color);
    color: #ffffff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    transition: background-color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.nav-icon-auth:hover {
    background-color: #e65100;
    transform: scale(1.08);
}

.nav-icon-auth svg,
.nav-icon-auth i {
    display: block;
    font-size: 1.3rem;
}

/* Slider / Banner Rotativo */
.slider-container {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
    background-color: #1b5e20;
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide-item {
    min-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.slide-picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ou 'cover' se preferir preenchimento total */
    object-position: center;
    display: block;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 3;
    max-width: 650px;
    padding-left: 2rem;
    color: #ffffff;
}

.slide-content h2 {
    font-size: 2.2rem;
    color: var(--accent-yellow);
    margin-bottom: 0.6rem;
    line-height: 1.2;
}

.slide-content p {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    color: #f1f8e9;
}

.btn-slider {
    display: inline-block;
    background-color: var(--secondary-color);
    color: #ffffff;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.2s;
}

.btn-slider:hover {
    background-color: #e65100;
    color: #ffffff;
}

/* Botões de Navegação do Slider */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: none;
    font-size: 1.8rem;
    padding: 0.8rem 1rem;
    cursor: pointer;
    z-index: 3;
    border-radius: 4px;
    transition: background 0.2s;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-btn.prev { left: 15px; }
.slider-btn.next { right: 15px; }

/* Botão Play/Pause no meio inferior do Banner */
.slider-toggle-btn {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    transition: background 0.2s ease, transform 0.2s ease;
}

.slider-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: translateX(-50%) scale(1.1);
    color: var(--accent-yellow);
}

.slider-toggle-btn .d-none {
    display: none !important;
}


@media (max-width: 768px) {
    .slider-container { height: 280px; }
    .slide-content h2 { font-size: 1.5rem; }
    .slide-content p { font-size: 0.9rem; }
}

/* Banner e Hero Institucional */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/institucional/banner.jpg') center/cover;
    color: #fff;
    padding: 4rem 1rem;
    text-align: center;
}

.hero-section h1 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
}

.hero-section p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    color: #e0e0e0;
}

/* Grid de Ofertas e Cards */
.section-title {
    font-size: 1.6rem;
    margin: 2.5rem 0 1.2rem;
    color: var(--primary-dark);
    border-left: 5px solid var(--secondary-color);
    padding-left: 10px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.card-item {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.card-item:hover {
    transform: translateY(-4px);
}

.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent-color);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.card-thumb {
    width: 100%;
    height: 180px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.card-body {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.card-category {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.price-original {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-promo {
    font-size: 1.3rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.btn-card {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.6rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    margin-top: auto;
    text-align: center;
    text-decoration: none;
}

.btn-card:hover {
    background-color: var(--primary-dark);
    color: #fff;
}

/* Seção Institucional */
.institucional-box {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* Footer com Identidade Visual */
.footer-principal {
    margin-top: auto;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 2.5rem 0 1rem;
    border-top: 3px solid var(--accent-yellow);
}

.footer-principal h3,
.footer-principal h4 {
    color: var(--accent-yellow);
    margin-bottom: 0.8rem;
}

.footer-principal p {
    color: #f1f8e9;
    line-height: 1.5;
    font-size: 0.92rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    padding-top: 1rem;
    font-size: 0.85rem;
    color: #f1f8e9;
}

.footer-bottom a {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: var(--accent-yellow);
    text-decoration: underline;
}

/* Ajustes Mobile para o Menu */
@media (max-width: 991.98px) {
    .header-topo .navbar-collapse {
        background-color: var(--primary-dark);
        margin-top: 0.75rem;
        padding: 1rem 1.2rem;
        border-radius: var(--radius-md);
        border: 1px solid rgba(255, 255, 255, 0.15);
    }

    .header-topo .nav-link {
        padding: 0.5rem 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .header-topo .nav-link:last-of-type {
        border-bottom: none;
    }
}