:root {
    /* Cores atualizadas com paleta mais harmoniosa */
    --primary-color: #4361ee;
    --primary-hover: #3a56d4;
    --secondary-color: #4cc9f0;
    --accent-color: #f72585;
    --light-color: #f8f9fa;
    --medium-color: #e9ecef;
    --dark-color: #212529;
    --text-color: #495057;
    --text-light: #6c757d;
    --success-color: #4bb543;
    
    /* Espaçamentos e bordas */
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.15s ease;
}

/* Reset moderno */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, 
                 Ubuntu, Cantarell, 'Open Sans', sans-serif;
    background-color: #f8fafc;
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Container Principal */
.container {
    max-width: 1440px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* Tipografia */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

h1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* Seção de Filtros */
.filtros {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 3rem;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* Barra de Busca */
.busca {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
    position: relative;
}

.busca input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--medium-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    color: var(--dark-color);
    background-color: var(--light-color);
    font-weight: 500;
}

.busca input::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.busca input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.15);
}

.busca button {
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.busca button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
}

.busca button:active {
    transform: translateY(0);
}

.btn-limpar {
    padding: 1rem 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    border-radius: var(--border-radius);
    background-color: rgba(67, 97, 238, 0.08);
}

.btn-limpar:hover {
    color: var(--accent-color);
    background-color: rgba(247, 37, 133, 0.08);
    text-decoration: none;
}

/* Filtro por Categorias */
.categorias {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.categorias h3 {
    width: 100%;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.categorias label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    padding: 0.7rem 1.2rem;
    background-color: var(--light-color);
    border-radius: 50px;
    transition: var(--transition);
    font-size: 0.95rem;
    user-select: none;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.categorias label:hover {
    background-color: var(--medium-color);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.categorias input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--primary-color);
    cursor: pointer;
    flex-shrink: 0;
}

/* Grid de Lojas */
.lojas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Card de Loja */
.loja-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.loja-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(67, 97, 238, 0.1);
}

.foto-loja {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

.loja-card:hover .foto-loja {
    opacity: 0.92;
    transform: scale(1.02);
}

.loja-card > a {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 1.8rem;
    position: relative;
    z-index: 1;
}

.loja-card h3 {
    margin: 1rem 0 0.8rem;
    color: var(--dark-color);
    font-size: 1.3rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.loja-card:hover h3 {
    color: var(--primary-color);
}

/* Avaliação */
.avaliacao {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.estrela {
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.estrela.cheia {
    color: #ffc107;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.estrela.vazia {
    color: #e9ecef;
}

.avaliacao span {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-left: 0.5rem;
    font-weight: 500;
}

.descricao {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    display: -webkit-box;
    --line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Botão Favorito */
.favorito {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    z-index: 2;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.favorito:hover {
    background: white;
    transform: scale(1.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    color: var(--accent-color);
}

.favorito:active {
    transform: scale(1.05);
}

/* Efeito de overlay hover */
.loja-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1) 0%, rgba(247, 37, 133, 0.05) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.loja-card:hover::before {
    opacity: 1;
}

/* Mensagem sem resultados */
.sem-resultados {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
    font-size: 1.2rem;
    grid-column: 1 / -1;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.sem-resultados::before {
    content: "😕";
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Efeitos de loading skeleton */
.skeleton {
    animation: skeleton-loading 1.5s linear infinite alternate;
    background-color: #e9ecef;
    border-radius: var(--border-radius-sm);
}

.skeleton-text {
    width: 100%;
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-text:last-child {
    width: 80%;
    margin-bottom: 0;
}

@keyframes skeleton-loading {
    0% {
        background-color: #e9ecef;
    }
    100% {
        background-color: #f8f9fa;
    }
}

/* Responsividade */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    .lojas {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
        margin: 1.5rem auto;
    }
    
    .busca {
        flex-direction: column;
    }
    
    .busca input,
    .busca button,
    .btn-limpar {
        width: 100%;
    }
    
    .categorias {
        gap: 0.6rem;
    }
    
    .categorias label {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .filtros {
        padding: 1.5rem;
    }
    
    .loja-card > a {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
        margin-bottom: 2rem;
        padding-bottom: 1rem;
    }
    
    .lojas {
        grid-template-columns: 1fr;
    }
    
    .foto-loja {
        height: 200px;
    }
    
    .favorito {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.2rem;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loja-card {
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

.loja-card:nth-child(1) { animation-delay: 0.1s; }
.loja-card:nth-child(2) { animation-delay: 0.2s; }
.loja-card:nth-child(3) { animation-delay: 0.3s; }
.loja-card:nth-child(4) { animation-delay: 0.4s; }
.loja-card:nth-child(5) { animation-delay: 0.5s; }
.loja-card:nth-child(6) { animation-delay: 0.6s; }
.loja-card:nth-child(7) { animation-delay: 0.7s; }
.loja-card:nth-child(8) { animation-delay: 0.8s; }
