/* Reset e configurações gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f7f7f7;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Cabeçalho */
header {
    background: linear-gradient(to right, #1a5f23, #2d5a27);
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo i {
    font-size: 36px;
    color: #FFD700;
}

.logo h1 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 5px;
}

.logo .tagline {
    font-size: 14px;
    color: #c1e7c5;
    font-weight: 500;
}

.stats {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
}

.stats i {
    margin-right: 5px;
    color: #FFD700;
}

.follow-btn {
    background-color: #FFD700;
    color: #1a5f23;
    border: none;
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
}

.follow-btn:hover {
    background-color: #ffed4e;
    transform: scale(1.05);
}

/* Filtros */
.filters {
    background-color: white;
    padding: 20px 0 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-container h3 {
    font-size: 20px;
    color: #1a5f23;
    font-weight: 800;
    margin-bottom: 15px;
}

.filter-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Filtro por Categoria */
.filter-category {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}

.category-btn {
    background-color: #f0f9f1;
    border: 1px solid #c8e6c9;
    color: #1a5f23;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.category-btn:hover {
    background-color: #e1f5e1;
    transform: translateY(-2px);
}

.category-btn.active {
    background-color: #1a5f23;
    color: white;
    border-color: #1a5f23;
}

/* Ordenação */
.sort-by {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.sort-by select {
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: white;
    color: #555;
    font-weight: 500;
    min-width: 180px;
    cursor: pointer;
}

/* Promo TikTok */
.tiktok-promo {
    background-color: #000;
    color: white;
    text-align: center;
    padding: 15px;
    margin: 25px 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tiktok-promo i {
    color: #ff0050;
    font-size: 24px;
}

.tiktok-promo p {
    font-weight: 600;
    font-size: 16px;
}

.tiktok-promo a {
    color: #69c9d0;
    font-weight: bold;
    text-decoration: none;
}

.tiktok-promo a:hover {
    text-decoration: underline;
}

/* Contador de resultados */
.results-counter {
    background-color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 15px;
    color: #1a5f23;
    font-weight: 600;
    border-left: 4px solid #FFD700;
}

.results-counter span {
    color: #e74c3c;
    font-weight: 800;
}

/* Grid de produtos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    border: 1px solid #e8f5e9;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #c8e6c9;
}

.product-image {
    height: 200px;
    background-color: #f0f9f1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

/* Fallback para ícone */
.product-image i {
    font-size: 70px;
    color: #c8e6c9;
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 14px;
    z-index: 2;
}

.free-shipping {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #2ecc71;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 12px;
    z-index: 2;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    height: 45px;
    overflow: hidden;
    color: #1a5f23;
    line-height: 1.4;
}

.product-category {
    display: inline-block;
    background-color: #f0f9f1;
    color: #2d5a27;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    color: #f39c12;
}

.product-sales {
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.product-pricing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.current-price {
    font-size: 22px;
    font-weight: 700;
    color: #e74c3c;
}

.original-price {
    font-size: 16px;
    color: #95a5a6;
    text-decoration: line-through;
}

.platform-badge {
    background-color: #f0f9f1;
    color: #1a5f23;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.buy-button {
    display: block;
    width: 100%;
    background-color: #1a5f23;
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s;
}

.buy-button:hover {
    background-color: #2d5a27;
}

.price-disclaimer {
    font-size: 12px;
    color: #666;
    font-style: italic;
    margin-top: 5px;
    margin-bottom: 10px;
    padding: 4px 8px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border-left: 3px solid #ffd700;
}

/* Mensagem sem produtos */
.no-products {
    text-align: center;
    padding: 60px 20px;
    background-color: white;
    border-radius: 10px;
    margin: 40px 0;
    display: none;
}

.no-products i {
    font-size: 70px;
    color: #c8e6c9;
    margin-bottom: 20px;
}

.no-products h3 {
    color: #1a5f23;
    margin-bottom: 10px;
    font-size: 24px;
}

.no-products p {
    color: #7f8c8d;
    font-size: 16px;
}

/* Rodapé */
footer {
    background-color: #1a3c20;
    color: white;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #FFD700;
    border-bottom: 2px solid #2e7d32;
    padding-bottom: 10px;
}

.footer-section p {
    font-size: 15px;
    color: #ecf0f1;
    margin-bottom: 15px;
    line-height: 1.7;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #c8e6c9;
    text-decoration: none;
    transition: color 0.3s;
    cursor: pointer;
}

.footer-links a:hover {
    color: #FFD700;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 20px;
    border-radius: 50%;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: #FFD700;
    color: #1a3c20;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #2e7d32;
    font-size: 14px;
    color: #c8e6c9;
}

.copyright small {
    font-size: 12px;
    opacity: 0.8;
}

/* Responsividade */
@media (max-width: 992px) {
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .filter-category {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .category-btn {
        flex-shrink: 0;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .logo {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .logo h1 {
        font-size: 22px;
    }
    
    .stats {
        font-size: 13px;
    }
    
    .tiktok-promo {
        padding: 12px;
    }
    
    .tiktok-promo p {
        font-size: 14px;
    }
    
    .sort-by {
        width: 100%;
    }
    
    .sort-by select {
        width: 100%;
        min-width: auto;
    }
}