/* css/index.css */
.header {
    text-align: center;
    padding: 3rem 0 2rem;
    margin-bottom: 2rem;
}

.public-profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-md);
    display: block;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.search-bar {
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
    gap: 1rem;
    color: var(--text-secondary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding-bottom: 4rem;
}

/* Layout em Lista (Selecionado via Admin) */
.products-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 4rem;
}

.products-list .product-card {
    flex-direction: row;
    height: 120px;
}

.products-list .product-image-container {
    width: 120px;
    height: 100%;
}

.products-list .product-content {
    padding: 1rem;
    justify-content: center;
}

.products-list .product-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.products-list .product-link {
    margin-top: 0;
    width: auto;
    align-self: flex-start;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

@media (max-width: 600px) {
    .products-list .product-card {
        height: auto;
    }
}

.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.product-image-container {
    width: 100%;
    height: 250px;
    background-color: var(--bg-color-light);
    overflow: hidden;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image-container img {
    transform: scale(1.05);
}

.product-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    flex-grow: 1;
}

.product-link {
    width: 100%;
    margin-top: auto;
}

.hidden {
    display: none !important;
}

.no-results {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-secondary);
    font-size: 1.125rem;
}
