:root {
    --primary: #009933;
    --secondary: #FEA000;
    --dark: #1A1A1A;
    --light: #ffffff;
    --gray: #f5f5f5;
    --primary-hover: #007a29;
    --secondary-hover: #e08c00;
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, #006622 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    --gradient-accent: linear-gradient(135deg, #33cc66 0%, #ffb333 100%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-3d: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: var(--light);
    color: var(--dark);
}

/* Header Styles */
.header {
    background: var(--light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo-container {
    transform: translateZ(20px);
    transition: transform 0.3s ease;
    padding: 0.5rem;
}

.logo-container a {
    text-decoration: none;
    display: block;
}

.logo-container a:hover {
    text-decoration: none;
}

.logo-container:hover {
    transform: translateZ(30px) scale(1.05);
}

.logo {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.search-container {
    flex: 1;
    display: flex;
    max-width: 600px;
    position: relative;
    transform: translateZ(10px);
}

.search-container input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray);
    border-radius: 25px;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

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

.search-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient-primary);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    color: var(--light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: var(--shadow-md);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-link {
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.nav-link:hover {
    background: var(--gradient-primary);
    color: var(--light);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    padding: 6rem 1rem;
    text-align: center;
    color: var(--light);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    transform: translateZ(50px);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.cta-button {
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    transform: translateZ(20px);
}

.cta-button.primary {
    background: var(--light);
    color: var(--primary);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--light);
    color: var(--light);
}

.cta-button:hover {
    transform: translateZ(30px) scale(1.05);
    box-shadow: var(--shadow-3d);
}

.hero-3d-element {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateZ(0);
    }
    50% {
        transform: translateY(-20px) translateZ(20px);
    }
}

/* Categories Section */
.featured-categories {
    padding: 4rem 1rem;
    background-color: var(--gray);
    position: relative;
    overflow: hidden;
}

.section-header {
    max-width: 1200px;
    margin: 0 auto 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.section-header h2 {
    color: var(--dark);
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.category-filters {
    display: flex;
    gap: 1rem;
}

.filter-button {
    padding: 0.8rem 1.5rem;
    border: none;
    background: var(--light);
    color: var(--dark);
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.filter-button:hover {
    background: var(--gradient-primary);
    color: var(--light);
    transform: translateY(-2px);
}

.filter-button.active {
    background: var(--gradient-primary);
    color: var(--light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    background: var(--light);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.category-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: var(--shadow-3d);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    transform: translateZ(20px);
}

.category-card:hover .category-icon {
    transform: translateZ(40px) scale(1.1);
}

.category-icon i {
    font-size: 2rem;
    color: var(--light);
}

.category-card h3 {
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.category-card p {
    color: #666;
    margin-bottom: 1rem;
}

.category-count {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--gray);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--dark);
}

/* Products Section */
.featured-products {
    padding: 4rem 1rem;
    background: var(--light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Quando há apenas um produto, mostrar com tamanho reduzido */
.products-grid[data-count="1"] {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
}

/* Quando há dois produtos, distribuir melhor */
.products-grid[data-count="2"] {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin: 0 auto;
}

.product-card {
    background: var(--light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.product-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: var(--shadow-3d);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.discount-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-primary);
    color: var(--light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
    transform: translateZ(20px);
}

.favorite-button {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--light);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateZ(20px);
}

.favorite-button:hover {
    transform: translateZ(30px) scale(1.1);
    background: var(--gradient-primary);
    color: var(--light);
}

.product-info {
    padding: 1.5rem;
    background: var(--light);
}

.product-info h3 {
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.product-installments {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.buy-button {
    width: 100%;
    background: var(--gradient-primary);
    color: var(--light);
    border: none;
    padding: 1rem;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.buy-button:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

/* How It Works Section */
.how-it-works {
    padding: 4rem 1rem;
    background: var(--gray);
    position: relative;
    overflow: hidden;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    background: var(--light);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.step-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: var(--shadow-3d);
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    transform: translateZ(20px);
}

.step-card:hover .step-icon {
    transform: translateZ(40px) scale(1.1);
}

.step-icon i {
    font-size: 2rem;
    color: var(--light);
}

.step-card h3 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.step-card p {
    color: #666;
}

/* Newsletter Section */
.newsletter-section {
    padding: 4rem 1rem;
    background: var(--gradient-primary);
    color: var(--light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    transform: translateZ(20px);
}

.newsletter-content h2 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.newsletter-content p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
}

.newsletter-form button {
    background: var(--light);
    color: var(--primary);
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--light);
    padding: 4rem 1rem 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-section h3 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--gradient-primary);
}

.footer-section p {
    margin-bottom: 1rem;
    opacity: 0.8;
}

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

.social-link {
    color: var(--light);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    color: var(--secondary);
}

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

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

.footer-section a {
    color: var(--light);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--secondary);
    transform: translateX(5px);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.contact-info i {
    color: var(--secondary);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }

    .search-container {
        width: 100%;
    }

    .main-nav ul {
        justify-content: center;
    }

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

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

@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-media {
        justify-content: center;
    }

    .contact-info li {
        justify-content: center;
    }

    .product-image {
        height: 200px;
    }

    .product-info h3 {
        font-size: 1.1rem;
    }

    .product-price {
        font-size: 1.3rem;
    }

    .product-installments {
        font-size: 0.8rem;
    }

    .buy-button {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card, .product-card, .step-card {
    animation: fadeIn 0.5s ease-out;
}

/* Load More Button Styles */
.load-more-container {
    text-align: center;
    margin-top: 3rem;
    padding: 1rem;
}

.load-more-button {
    background: var(--gradient-primary);
    color: var(--light);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: var(--shadow-md);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.load-more-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.load-more-button:active {
    transform: translateY(0) scale(0.98);
}

.load-more-button.loading {
    background: var(--gradient-secondary);
    cursor: wait;
}

.load-more-button i {
    transition: transform 0.3s ease;
}

.load-more-button:hover i {
    transform: translateY(3px);
}

.load-more-button.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Hidden Products */
.hidden-product {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Secondary Navigation Menu */
.secondary-nav {
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 80px;
    z-index: 999;
}

.secondary-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    height: 60px;
}

.secondary-nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    height: 100%;
    width: 100%;
    gap: 0;
}

.secondary-nav-item {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.secondary-nav-link {
    color: var(--dark);
    text-decoration: none;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    height: 100%;
    font-weight: 500;
    transition: all 0.3s ease;
    gap: 0.5rem;
}

.secondary-nav-link:hover {
    color: var(--primary);
    background: rgba(0, 153, 51, 0.05);
}

/* Dropdown Menu */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 10px 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0;
}

.secondary-nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-header {
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: var(--dark);
    border-bottom: 2px solid var(--primary);
    display: none;
}

.nav-dropdown-column {
    padding: 1rem 1.5rem;
}

.nav-dropdown-column h4 {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.nav-dropdown-item {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-dropdown-item a {
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    flex: 1;
}

.nav-dropdown-item a:hover {
    color: var(--primary);
    padding-left: 0.5rem;
}

.nav-dropdown-item i {
    color: var(--primary);
    font-size: 0.8rem;
}

/* Mega Menu Layout */
.nav-dropdown.mega-menu {
    min-width: 600px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.mega-menu .nav-dropdown-header {
    display: block;
    grid-column: 1 / -1;
}

.mega-menu .nav-dropdown-column {
    border-right: 1px solid #f0f0f0;
    padding: 1rem 1.5rem;
}

.mega-menu .nav-dropdown-column:last-child {
    border-right: none;
}

/* Contact Info in Nav */
.nav-contact-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
    padding: 0 1rem;
}

.nav-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

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

/* Responsive Secondary Nav */
@media (max-width: 992px) {
    .secondary-nav-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .secondary-nav-links {
        flex-wrap: nowrap;
    }

    .secondary-nav-link {
        padding: 0 1rem;
        font-size: 0.95rem;
    }

    .nav-contact-info {
        display: none;
    }

    .nav-dropdown.mega-menu {
        min-width: 400px;
        grid-template-columns: 1fr;
    }

    .mega-menu .nav-dropdown-column {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .mega-menu .nav-dropdown-column:last-child {
        border-bottom: none;
    }
}

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

    .secondary-nav-link {
        padding: 0 0.75rem;
    }

    .nav-dropdown.mega-menu {
        min-width: 100vw;
        max-width: 100vw;
        left: -50vw;
    }
} 