/* Zerando margens e padronizando a fonte */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8fafc;
    color: #334155;
}

/* ============================================================
   HEADER FIXO (FUNDO BRANCO)
   ============================================================ */

header.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #ffffff; /* Fundo totalmente branco */
    padding: 8px 20px;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

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

/* Marca e Logo */
.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    height: 45px; /* Altura ajustada para caber bem no cabeçalho */
    width: auto;
    display: block;
    object-fit: contain;
}

.product-counter {
    font-size: 0.75rem;
    font-weight: 600;
    background-color: #f1f5f9;
    color: #475569;
    padding: 3px 10px;
    border-radius: 15px;
    white-space: nowrap;
}

/* Form de Captura VIP */
.header-vip-box {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.vip-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: #25d366;
    white-space: nowrap;
}

.header-vip-form {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-vip-form input {
    padding: 5px 10px;
    border-radius: 4px;
    background-color: #f8fafc;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    font-size: 0.8rem;
    width: 130px;
    outline: none;
}

.header-vip-form input:focus {
    border-color: #25d366;
    background-color: #ffffff;
}

.header-vip-form input::placeholder {
    color: #94a3b8;
}

.vip-submit-btn {
    background-color: #25d366;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.vip-submit-btn:hover {
    background-color: #1eb857;
}

.form-message {
    position: absolute;
    bottom: -20px;
    right: 0;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ============================================================
   CONTAINER E SEÇÃO DE FILTROS
   ============================================================ */

main.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    padding-top: 65px !important; /* Espaço para o cabeçalho fixo */
}

.filter-section {
    display: flex;
    gap: 1rem;
    margin-top: 0 !important;
    padding-top: 10px !important;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-section input, 
.filter-section select {
    padding: 0.8rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    background-color: #ffffff;
    color: #334155;
}

.filter-section input {
    flex-grow: 1;
    min-width: 220px;
}

.filter-section select {
    min-width: 180px;
    cursor: pointer;
}

.clear-btn {
    padding: 0.8rem 1.2rem;
    background-color: #ef4444;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.clear-btn:hover {
    background-color: #dc2626;
}

.clear-btn:active {
    transform: scale(0.98);
}

/* ============================================================
   LOJAS OFICIAIS (CÍRCULOS)
   ============================================================ */

.official-stores-container {
    width: 100%;
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stores-title {
    display: block;
    margin-bottom: 4px !important;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
}

.official-stores-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 0 !important;
    margin: 0 !important;
    scroll-behavior: smooth;
}

.official-stores-grid::-webkit-scrollbar {
    height: 4px;
}
.official-stores-grid::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.store-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.store-item:hover {
    transform: translateY(-3px);
}

.store-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    background-color: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 6px;
    transition: all 0.2s ease;
    padding: 4px;
}

.store-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.store-circle span {
    font-weight: 700;
    font-size: 0.85rem;
    color: #444;
    text-transform: uppercase;
}

.store-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: #444;
    text-align: center;
    max-width: 72px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.store-item.active .store-circle {
    border-color: #3483fa;
    box-shadow: 0 0 0 3px rgba(52, 131, 250, 0.25);
    background-color: #f0f7ff;
}

.store-item.active .store-name {
    color: #3483fa;
    font-weight: 700;
}

/* ============================================================
   GRID E CARDS DE PRODUTOS
   ============================================================ */

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

.product-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.product-image-link {
    position: relative;
    display: block;
    overflow: hidden;
}

.official-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: rgba(255, 255, 255, 0.92);
    color: #00a650;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(0, 166, 80, 0.2);
}

.badge-icon {
    width: 12px;
    height: 12px;
    fill: #00a650;
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: contain;
    object-position: center;
    background-color: #ffffff;
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.product-store {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    backdrop-filter: blur(2px);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.product-info {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.product-id {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
}

.meta-tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.pet-tag {
    background-color: #f0f4f8;
    color: #336699;
}

.cat-tag {
    background-color: #f7f0f8;
    color: #883399;
}

.product-name {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: #0f172a;
    margin-bottom: 1.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.affiliate-btn {
    display: block;
    text-align: center;
    background-color: #2563eb;
    color: #ffffff;
    text-decoration: none;
    padding: 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.affiliate-btn:hover {
    background-color: #1d4ed8;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    color: #64748b;
    font-size: 1.1rem;
    padding: 3rem 0;
}

/* ============================================================
   BOX DE LISTA DE TRANSMISSÃO E RODAPÉ
   ============================================================ */

.newsletter-box {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin: 30px 0 20px 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.newsletter-content h3 {
    margin: 0 0 6px 0;
    font-size: 1.2rem;
    color: #16a34a;
}

.newsletter-content p {
    margin: 0 0 16px 0;
    font-size: 0.9rem;
    color: #475569;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1;
    min-width: 220px;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background-color: #f8fafc;
    color: #1e293b;
    font-size: 0.95rem;
    outline: none;
}

.newsletter-form input:focus {
    border-color: #25d366;
    background-color: #ffffff;
}

.newsletter-form .submit-btn {
    background-color: #25d366;
    color: #ffffff;
    font-weight: 700;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.newsletter-form .submit-btn:hover {
    background-color: #1eb857;
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: #1e293b;
    color: #94a3b8;
    margin-top: 3rem;
    font-size: 0.9rem;
}