:root {
    --home-bg: #f4f7fe;
    --home-surface: #ffffff;
    --home-primary: #0072ff;
    --home-text: #1e293b;
    --home-text-light: #64748b;
    --home-radius: 24px;
}

/* ============================================
   SEARCH SECTION
   ============================================ */

.search-section {
    padding: 0;
    background: transparent;
    z-index: 10;
}

.search-container {
    display: flex;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    padding: 1rem !important;
    border-radius: var(--home-radius) !important;
    box-shadow: 0 20px 50px rgba(0, 114, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    max-width: 900px;
    margin: 0 auto;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.search-container:focus-within {
    box-shadow: 0 25px 60px rgba(0, 114, 255, 0.15) !important;
    transform: translateY(-5px) scale(1.01);
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 1rem;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.search-icon {
    width: 22px;
    height: 22px;
    color: var(--home-primary);
    margin-right: 0.75rem;
}

.search-input-wrapper input {
    width: 100%;
    border: none;
    padding: 0.75rem 0;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--home-text);
    background: transparent;
    outline: none;
}

.search-filter-wrapper {
    min-width: 160px;
}

.search-select {
    width: 100%;
    border: none;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--home-text);
    background: transparent;
    cursor: pointer;
    outline: none;
}

.search-button {
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%) !important;
    color: white !important;
    border: none !important;
    padding: 0.8rem 2.5rem !important;
    border-radius: 16px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 114, 255, 0.2) !important;
    -webkit-text-fill-color: initial !important;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 114, 255, 0.3) !important;
    filter: brightness(1.1);
}

/* ============================================
   STORES SECTION
   ============================================ */

.stores-section {
    padding: 2rem 0 0.5rem;
    background: var(--home-bg);
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--home-text);
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: -1.5px;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: linear-gradient(90deg, #00c6ff 0%, #0072ff 100%);
    border-radius: 50px;
}

.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2.5rem;
}

.store-card {
    background: #ffffff !important;
    border-radius: var(--home-radius) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-align: center;
    position: relative;
    padding-bottom: 2rem;
    /* Espaço para o nome no fundo */
}

.store-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 25px 50px rgba(0, 114, 255, 0.12) !important;
}

.store-card-image {
    width: 100% !important;
    height: 220px !important;
    /* Altura generosa para a logo ser grande */
    background: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border-radius: var(--home-radius);
}

.store-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.store-card-content {
    padding: 0.5rem 1rem 0 !important;
    background: transparent !important;
}

.store-card-title {
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    color: var(--home-text) !important;
    margin-top: 10px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    display: block !important;
}

/* Esconder descrição, rodapé e logo extra para manter o quadrado clean */
.store-card-description,
.store-card-footer,
.store-card-logo {
    display: none !important;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }

    .search-container {
        flex-direction: column;
        padding: 1.5rem !important;
        gap: 1rem;
        margin: 0 15px;
    }

    .search-input-wrapper {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding-left: 0;
        padding-bottom: 0.75rem;
    }

    .search-filter-wrapper {
        width: 100%;
    }

    .search-button {
        width: 100%;
        padding: 1.2rem !important;
    }
}

@media (max-width: 480px) {
    .stores-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 15px;
    }

    .store-card {
        border-radius: 20px !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05) !important;
        padding-bottom: 1.5rem;
    }

    .store-card-image {
        height: 140px !important;
        /* Altura fixa no mobile para equilibrar */
        padding: 2px;
    }

    .store-card-image img {
        padding: 5px;
    }

    .store-card-content {
        padding: 0 0.5rem !important;
    }

    .store-card-title {
        font-size: 1rem !important;
        line-height: 1.2;
    }

    .store-card-description {
        display: none !important;
    }
}