/**
 * Ofertas e Cupons - Estilos Principais
 * Cores: Vermelho Bordo (#800020) e Branco (#FFFFFF)
 */

:root {
    --primary-color: #800020;
    --primary-dark: #600018;
    --primary-light: #a00028;
    --secondary-color: #F2F2F2;
    --text-color: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --white: #FFFFFF;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(128, 0, 32, 0.2);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
    color: var(--text-color);
    background-color: var(--secondary-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== HEADER ===== */
.main-header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.875rem;
}

.header-main {
    padding: 15px 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    font-size: 1.8rem;
}

/* Menu de Navegação */
.main-nav {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.main-nav a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.main-nav .nav-icon {
    font-size: 1.2rem;
}

/* Dropdown de Categorias */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    min-width: 250px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
}

.dropdown-menu a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Busca */
.search-bar {
    position: relative;
    max-width: 500px;
    flex: 1;
}

.search-bar input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-bar button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.search-bar button:hover {
    background: var(--primary-dark);
}

/* ===== BANNER PRINCIPAL ===== */
.hero-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 30px;
}

.hero-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-banner p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    opacity: 0.95;
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ===== SEÇÃO CTA (Call to Action) ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 50px 40px;
    text-align: center;
    border-radius: 15px;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta {
    padding: 15px 35px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-telegram {
    background-color: #0088cc;
    color: var(--white);
}

.btn-telegram:hover {
    background-color: #0077b3;
    color: var(--white);
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background-color: #1fba57;
    color: var(--white);
}

.btn-cta i {
    font-size: 1.3rem;
}

/* ===== CARDS DE OFERTAS ===== */
.ofertas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.oferta-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.oferta-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.oferta-card-img {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: var(--secondary-color);
}

.oferta-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-desconto {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.badge-destaque {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--warning-color);
    color: var(--text-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.oferta-card-body {
    padding: 15px;
}

.loja-tag {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.oferta-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price-info {
    margin-bottom: 12px;
}

.price-old {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 0.9rem;
}

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

.btn-ver-oferta {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    padding: 10px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-ver-oferta:hover {
    background: var(--primary-dark);
}

/* ===== CARDS DE CUPONS ===== */
.cupons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.cupom-card {
    background: var(--white);
    border: 2px dashed var(--primary-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.cupom-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.cupom-card-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.loja-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.cupom-card-body {
    padding: 20px 15px;
}

.cupom-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

.cupom-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.cupom-code-container {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.cupom-code {
    flex: 1;
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 12px 15px;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    border: 2px dashed var(--primary-color);
}

.btn-copiar-cupom {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-copiar-cupom:hover {
    background: var(--primary-dark);
}

.btn-copiar-cupom.copied {
    background: var(--success-color);
}

/* ===== SEÇÃO DE LOJAS ===== */
.lojas-section {
    background: var(--white);
    padding: 40px 0;
    margin: 30px 0;
}

.lojas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.loja-item {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.loja-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.loja-item img {
    max-height: 50px;
    margin: 0 auto 10px;
}

/* ===== FOOTER ===== */
.main-footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* ===== UTILITÁRIOS ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 25px;
    text-align: center;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        gap: 10px;
    }

    .hero-banner h1 {
        font-size: 1.8rem;
    }

    .ofertas-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .cupons-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .cta-section {
        padding: 30px 20px;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn-cta {
        width: 100%;
        justify-content: center;
        padding: 15px 25px;
    }

    .cupom-code-container {
        flex-direction: column;
    }

    .btn-copiar-cupom {
        width: 100%;
        justify-content: center;
    }

    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 15px;
    }

    .d-flex.justify-content-between .btn {
        width: 100%;
    }
}
