/* Reset e estilos gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', Arial, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
}

.container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Barra superior verde */
.top-bar {
    background-color: #1e3a1e;
    color: white;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: flex-start;
}

.domain {
    font-size: 14px;
    font-weight: 500;
}

/* Header com gradiente */
.site-header {
    background: linear-gradient(135deg, #02ccba 0%, #3b8aff 100%);
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    flex-shrink: 0;
}

.site-logo {
    max-width: 180px;
    height: auto;
}

.search-container {
    display: flex;
    flex-grow: 0;
    width: 300px;
    margin-left: auto;
}

.search-input {
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-radius: 3px 0 0 3px;
    font-size: 14px;
}

.search-button {
    background-color: white;
    border: none;
    padding: 0 12px;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
}

.search-button i {
    color: #3b8aff;
}

/* Navegação das categorias - Estilo mais flat como no print */
.category-nav {
    width: 100%;
    background: linear-gradient(135deg, #3b8aff 0%, #02ccba 100%);
    padding: 10px 0;
    white-space: nowrap;
}

.nav-container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    overflow-x: auto;
}

.category-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    margin-right: 5px;
    display: flex;
    align-items: center;
}

.category-link i {
    margin-right: 8px;
}

.category-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Hero Section como no print */
.hero {
    background: white;
    padding: 30px 0;
    text-align: center;
}

.hero h1 {
    font-size: 30px;
    color: #333;
    margin-bottom: 15px;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto 20px;
    color: #666;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: #FFCE44;
    color: #333;
    padding: 10px 25px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 25px;
    margin-top: 10px;
    transition: all 0.3s;
}

.cta-button:hover {
    background: #FFBC1F;
    transform: translateY(-2px);
}

/* Seção de benefícios */
.benefits {
    background: white;
    padding: 0 0 30px;
}

.benefits .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.benefit-item {
    flex: 1;
    min-width: 250px;
    padding: 20px;
    text-align: center;
}

.benefit-icon {
    font-size: 24px;
    color: #3b8aff;
    margin-bottom: 15px;
}

.benefit-item h3 {
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
}

.benefit-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Container principal */
.main-container {
    width: 95%;
    max-width: 1400px;
    margin: 20px auto;
}

/* Título da seção */
.section-title {
    font-size: 24px;
    margin: 30px 0 20px;
    color: #333;
    border-left: 5px solid #02ccba;
    padding-left: 10px;
}

/* Grid de produtos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Card de produto - Simplificado como no print */
.product-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
    min-height: 320px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
}

.product-image-container {
    position: relative;
    padding-top: 100%; /* Aspect ratio 1:1 */
    overflow: hidden;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.store-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ee4d2d;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    z-index: 10;
}

.product-details {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 40px;
}

.product-price-container {
    margin-top: auto;
}

.price-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
}

.price-label {
    font-size: 11px;
    color: #888;
}

.old-price {
    text-decoration: line-through;
    color: #888;
    font-size: 12px;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #02ccba;
    margin: 3px 0 12px;
}

.product-button {
    display: block;
    text-align: center;
    background: linear-gradient(45deg, #02ccba, #3b8aff);
    color: white;
    padding: 8px 0;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s;
    margin-top: auto;
}

.product-button:hover {
    background: linear-gradient(45deg, #01b9a9, #3079e8);
}

/* Loader */
.loader-container {
    text-align: center;
    padding: 30px 0;
    display: none;
}

.loader {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(2, 204, 186, 0.2);
    border-radius: 50%;
    border-top: 4px solid #02ccba;
    border-bottom: 4px solid #3b8aff;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
.footer {
    background-color: #222;
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, #02ccba, #3b8aff);
}

.footer-column p, .footer-column a {
    color: #bbb;
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #02ccba 0%, #3b8aff 100%);
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.social-links i {
    color: white;
    font-size: 16px;
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #999;
    font-size: 14px;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #02ccba 0%, #3b8aff 100%);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

.back-to-top i {
    font-size: 18px;
}

/* Mensagem sem produtos */
.no-products {
    text-align: center;
    padding: 50px 0;
    font-size: 18px;
    color: #777;
}

/* Responsividade */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-container {
        width: 100%;
    }
    
    .nav-container {
        justify-content: center;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .benefit-item {
        flex: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .site-logo {
        max-width: 150px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    
    .product-title {
        font-size: 12px;
        margin-bottom: 8px;
        height: 34px;
    }
    
    .product-price {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .store-badge {
        font-size: 9px;
        padding: 2px 8px;
    }
    
    .category-link {
        font-size: 12px;
        padding: 6px 10px;
    }
}