/**
 * Products List CSS - Stili specifici pagina lista prodotti
 * Gioielleria Egidio
 */

/* ========================================
   PAGE HEADER
   ======================================== */

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   FILTERS
   ======================================== */

.filters {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.filter-group select,
.filter-group input {
    padding: 0.75rem 1rem;
    border: 2px solid var(--light);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

/* ========================================
   PRODUCTS GRID
   ======================================== */

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

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.product-card.out-of-stock {
    opacity: 0.7;
}

.product-link {
    text-decoration: none;
    color: inherit;
}

.product-image {
    height: 350px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image i {
    font-size: 5rem;
    color: white;
    opacity: 0.3;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.product-badge.unavailable {
    background: #c62828;
}

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

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

.product-name {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.product-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-specs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.product-specs .spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    padding: 0;
    border: none;
}

.product-specs .spec-item i {
    color: var(--primary);
}

.product-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    margin-top: auto;
}

.product-price del {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-left: 0.5rem;
}

/* ========================================
   PRODUCT ACTIONS
   ======================================== */

.product-actions {
    padding: 0 1rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-actions .btn-details {
    margin: 0;
    text-align: center;
}

.btn-add-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    margin: 0;
    background: var(--primary);
    color: var(--dark);
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-add-cart:hover {
    background: var(--primary-dark);
}

.btn-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 8px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-details:hover {
    background: var(--primary);
    color: white;
}

/* ========================================
   NO PRODUCTS
   ======================================== */

.no-products {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 15px;
}

.no-products i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.no-products h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ========================================
   PAGINATION
   ======================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination a {
    background: white;
    color: var(--text);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.pagination a:hover {
    background: var(--primary);
    color: white;
}

.pagination span.current {
    background: var(--primary);
    color: white;
}
