/* ===========================
   DESCONTOS REAIS - MAIN STYLES
   =========================== */

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

:root {
    --primary-color: #FF6B35;
    --secondary-color: #004E89;
    --accent-color: #F7B801;
    --success-color: #06A77D;
    --danger-color: #D62828;
    --warning-color: #F77F00;
    --light-bg: #F5F5F5;
    --dark-text: #1A1A1A;
    --light-text: #666666;
    --border-color: #E0E0E0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: #FFFFFF;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   HEADER & NAVIGATION
   =========================== */

.header {
    background-color: #FFFFFF;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.logo:hover {
    color: var(--secondary-color);
}

.navbar-menu {
    display: flex;
    gap: 2rem;
    flex: 1;
    margin-left: 3rem;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.7rem;
    margin-left: 0.5rem;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #FFFFFF;
    list-style: none;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--dark-text);
    text-decoration: none;
    transition: background-color 0.3s;
}

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

.navbar-search {
    flex: 1;
    max-width: 400px;
}

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

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

.search-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

.navbar-toggler {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
}

.navbar-toggler span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-text);
    margin: 5px 0;
    transition: 0.3s;
}

/* ===========================
   HERO SECTION
   =========================== */

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-search {
    display: flex;
    gap: 0.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.hero-search input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
}

.hero-search button {
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: var(--dark-text);
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.hero-search button:hover {
    background-color: #E6A800;
}

/* ===========================
   CATEGORIES SECTION
   =========================== */

.categories-section {
    padding: 3rem 0;
    background-color: var(--light-bg);
}

.categories-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: var(--dark-text);
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background-color: var(--light-bg);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1rem;
    font-weight: 600;
}

/* ===========================
   OFFERS SECTION
   =========================== */

.offers-section {
    padding: 3rem 0;
}

.offers-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.offer-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

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

.offer-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--light-bg);
}

.offer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.offer-card:hover .offer-image img {
    transform: scale(1.05);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-bg);
    color: var(--light-text);
    font-size: 2rem;
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--danger-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.offer-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.offer-store {
    font-size: 0.85rem;
    color: var(--light-text);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.offer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
    line-height: 1.4;
}

.offer-description {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 1rem;
    flex: 1;
}

.offer-prices {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    align-items: center;
}

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

.final-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.coupon-code {
    background-color: var(--light-bg);
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.coupon-code strong {
    color: var(--primary-color);
}

.offer-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.btn {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
    display: inline-block;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    flex: 1;
}

.btn-primary:hover {
    background-color: #E55A2B;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    flex: 1;
}

.btn-secondary:hover {
    background-color: #003A66;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--light-bg);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.offer-share {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.share-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    background-color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: var(--light-text);
}

.share-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ===========================
   PAGINATION
   =========================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.page-info {
    color: var(--light-text);
    font-weight: 600;
}

/* ===========================
   CTA SECTION
   =========================== */

.cta-section {
    background-color: var(--light-bg);
    padding: 3rem 0;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.cta-card {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

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

.cta-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.cta-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.cta-card p {
    color: var(--light-text);
    font-size: 0.95rem;
}

/* ===========================
   AD SPACE
   =========================== */

.ad-space {
    padding: 2rem 0;
    text-align: center;
    background-color: var(--light-bg);
}

.ad-container {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===========================
   FOOTER
   =========================== */

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

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

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: var(--accent-color);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
}

.newsletter-form button {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background-color: #E55A2B;
}

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

.footer-bottom i {
    color: var(--danger-color);
}

/* ===========================
   PAGE STYLES
   =========================== */

.page-header {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 2px solid var(--light-bg);
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--light-text);
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.policy-section {
    margin-bottom: 2rem;
}

.policy-section h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.policy-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.policy-section ul li {
    margin-bottom: 0.5rem;
    color: var(--light-text);
}

.policy-section a {
    color: var(--primary-color);
    text-decoration: none;
}

.policy-section a:hover {
    text-decoration: underline;
}

/* ===========================
   CONTACT PAGE
   =========================== */

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 2rem 0;
}

.contact-form-wrapper {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 12px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-text);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    min-width: 30px;
}

.contact-item h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--light-text);
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.social-links-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-links-contact h3 {
    font-size: 1rem;
}

.social-links-contact {
    display: flex;
    flex-direction: column;
}

.social-links-contact a {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background-color 0.3s;
    margin-right: auto;
}

.social-links-contact a:hover {
    background-color: var(--secondary-color);
}

/* ===========================
   OFFER DETAIL PAGE
   =========================== */

.offer-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 2rem 0;
    align-items: start;
}

.offer-detail-image {
    position: relative;
}

.offer-detail-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.placeholder-image-large {
    width: 100%;
    height: 400px;
    background-color: var(--light-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--light-text);
}

.discount-badge-large {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--danger-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.2rem;
}

.offer-detail-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.breadcrumb {
    color: var(--light-text);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.offer-detail-content h1 {
    font-size: 2rem;
}

.store-name {
    color: var(--light-text);
    font-size: 0.95rem;
    text-transform: uppercase;
    font-weight: 600;
}

.offer-pricing {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1.5rem;
    background-color: var(--light-bg);
    border-radius: 12px;
}

.coupon-section {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: 12px;
}

.coupon-section h3 {
    margin-bottom: 1rem;
}

.coupon-box {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.coupon-box code {
    flex: 1;
    padding: 0.75rem;
    background-color: white;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-weight: bold;
    color: var(--primary-color);
}

.coupon-box button {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.coupon-box button:hover {
    background-color: #E55A2B;
}

.offer-actions-detail {
    display: flex;
    gap: 1rem;
}

.share-section {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: 12px;
}

.share-section h3 {
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn-large {
    flex: 1;
    min-width: 120px;
    padding: 0.75rem;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
    font-weight: 600;
}

.share-btn-large:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.offer-stats {
    display: flex;
    gap: 2rem;
    padding: 1.5rem;
    background-color: var(--light-bg);
    border-radius: 12px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.related-offers {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--light-bg);
}

.related-offers h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* ===========================
   ERROR PAGE
   =========================== */

.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 2rem 0;
}

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

.error-content h1 {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.error-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.error-content p {
    color: var(--light-text);
    margin-bottom: 2rem;
}

/* ===========================
   ALERTS
   =========================== */

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.alert-error {
    background-color: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

/* ===========================
   NO OFFERS
   =========================== */

.no-offers {
    text-align: center;
    padding: 3rem;
    color: var(--light-text);
    font-size: 1.1rem;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 768px) {
    .navbar-menu {
        display: none;
    }

    .navbar-search {
        display: none;
    }

    .navbar-toggler {
        display: flex;
    }

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

    .hero-content p {
        font-size: 1rem;
    }

    .hero-search {
        flex-direction: column;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .offers-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

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

    .contact-content {
        grid-template-columns: 1fr;
    }

    .offer-detail {
        grid-template-columns: 1fr;
    }

    .offer-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

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

    .offer-card {
        margin: 0 auto;
        max-width: 100%;
    }

    .navbar-brand {
        flex: 1;
    }

    .logo span {
        display: none;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn-large {
        min-width: auto;
    }
}
