/* Variáveis da Paleta do Bira com Fundo Suave */
:root {
    --primary-color: #2F4F4F;    /* DarkSlategray */
    --secondary-color: #B22222;  /* Firebrick */
    --accent-color: #3CB371;     /* MediumSeaGreen */
    
    /* Gradiente suave integrando as cores do Bira para o fundo */
    --bg-color: linear-gradient(135deg, #F2F5F4 0%, #EBF3EE 50%, #FAF0F0 100%);
    
    --card-bg: #FFFFFF;
    --text-color: #1F2937;
    --text-muted: #6B7280;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: var(--bg-color);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

.main-content {
    flex: 1;
}

/* Banner Transparente e Integrado */
.store-banner {
    background: transparent;
    padding: 20px 0 10px 0;
    text-align: center;
}

.banner-img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(47, 79, 79, 0.12);
}

/* Barra de Busca */
.search-bar {
    display: flex;
    gap: 10px;
    margin: 25px 0;
}

.search-bar input {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    background: #FFF;
    transition: border-color 0.3s;
}

.search-bar input:focus {
    border-color: var(--accent-color);
}

.search-bar button {
    background-color: var(--secondary-color);
    color: #FFF;
    border: none;
    padding: 0 22px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.3s;
}

.search-bar button:hover {
    background-color: var(--primary-color);
}

/* Abas de Plataforma */
.platform-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 25px;
    scrollbar-width: thin;
}

.platform-tabs::-webkit-scrollbar {
    height: 4px;
}

.platform-tabs::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #FFF;
    border: 2px solid #DDD;
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.3s;
}

.tab-btn .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.tab-btn.active, .tab-btn:hover {
    background-color: var(--primary-color);
    color: #FFF;
    border-color: var(--primary-color);
}

/* Grid de Produtos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.product-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border: 1px solid #E5E7EB;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.badge-destaque {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--secondary-color);
    color: #FFF;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 2;
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
}

.card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.platform-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: #FFF;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
}

.card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-body h3 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 12px;
}

.btn-offer {
    margin-top: auto;
    background-color: var(--accent-color);
    color: #FFF;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: block;
    transition: background 0.3s;
}

.btn-offer:hover {
    background-color: var(--primary-color);
}

/* Rodapé Transparente */
.store-footer {
    text-align: center;
    padding: 25px 20px;
    border-top: 1px solid rgba(47, 79, 79, 0.15);
    color: var(--text-muted);
    font-size: 0.85rem;
    background: transparent;
}

/* ===================================================
   RESPONSIVIDADE (MEDIA QUERIES)
   =================================================== */

/* Dispositivos Móveis (Smartphones) - até 576px */
@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }

    .store-banner {
        padding: 10px 0 5px 0;
    }

    .banner-img {
        border-radius: 10px;
    }

    .search-bar {
        margin: 15px 0;
    }

    .search-bar input {
        padding: 10px 14px;
        font-size: 0.9rem;
    }

    .search-bar button {
        padding: 0 16px;
        font-size: 1rem;
    }

    /* 2 colunas otimizadas para telas menores */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 25px;
    }

    .card-body {
        padding: 10px;
    }

    .card-body h3 {
        font-size: 0.85rem;
        height: 2.6em;
    }

    .product-price {
        font-size: 1.05rem;
        margin-bottom: 8px;
    }

    .btn-offer {
        padding: 8px;
        font-size: 0.85rem;
        border-radius: 6px;
    }

    .tab-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* Tablets - de 577px até 768px */
@media (min-width: 577px) and (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}