/* =============================================
   avaliacoes.css — Página pública de avaliações
   Lovintence
   ============================================= */

body.avaliacoes-page {
    background: #f8ebf1;
    min-height: 100vh;
}

/* Header */
.aval-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 50;
}

.aval-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.aval-logo img {
    height: 56px;
    width: auto;
}

.aval-back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.aval-back-link:hover {
    color: #008000;
}

/* Main */
.aval-main {
    padding: 32px 0 60px;
}

.aval-title-block {
    text-align: center;
    margin-bottom: 28px;
}

.aval-title {
    font-size: 1.6rem;
    color: #333;
    font-weight: 700;
    margin-bottom: 6px;
}

.aval-subtitle {
    font-size: 0.95rem;
    color: #888;
}

/* Resumo (média) */
.aval-summary {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.aval-summary-average {
    background: #fff;
    border-radius: 12px;
    padding: 24px 40px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.aval-average-number {
    font-size: 2.8rem;
    font-weight: 700;
    color: #333;
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}

.aval-average-stars {
    color: #f5a623;
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.aval-average-count {
    font-size: 0.85rem;
    color: #888;
}

/* Lista */
.aval-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
    max-width: 1000px;
    margin: 0 auto;
}

.aval-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.aval-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 10px;
}

.aval-card-stars {
    color: #f5a623;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.aval-card-author {
    font-size: 0.8rem;
    color: #888;
}

.aval-card-product {
    font-size: 0.75rem;
    background: #f0fdf4;
    color: #008000;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.aval-card-comment {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 12px;
}

.aval-card-image {
    width: 100%;
    max-width: 200px;
    border-radius: 8px;
    object-fit: cover;
}

/* Estados */
.aval-loading,
.aval-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #888;
    padding: 40px 20px;
    background: #fff;
    border-radius: 12px;
}

/* Responsividade */
@media (max-width: 600px) {
    .aval-list {
        grid-template-columns: 1fr;
    }

    .aval-title {
        font-size: 1.3rem;
    }
}