/* ============================================
   PRODUCTS ARCHIVE PAGE
   ============================================ */

/* --- Container --- */
.products-archive {
    padding: 60px 20px;
    background: #f9f9f9;
    min-height: calc(100vh - 200px);
}

.products-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Header --- */
.products-archive__header,
.products-archive__gallery-header {
    text-align: center;
    margin-bottom: 50px;
}

.products-archive__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.products-archive__description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Products Grid --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
}

/* --- Product Card --- */
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 280px; /* fixes card width */
    margin: 0 auto;   /* center cards in grid column */
}

/* Optional: all cards same height */
.product-card__content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

/* Hover effect */
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* --- Image --- */
.product-card__image {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    background: #f0f0f0;
}

.product-card__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card__img {
    transform: scale(1.05);
}

/* --- Placeholder --- */
.product-card__placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    color: #999;
    font-size: 0.9rem;
}

/* --- Content --- */
.product-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.product-card__title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-card__title a:hover {
    color: #007bff;
}

.product-card__excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.product-card__price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 15px;
}

.product-card__button {
    display: inline-block;
    padding: 12px 24px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

.product-card__button:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* --- Empty state --- */
.products-archive__empty {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 12px;
    color: #666;
}

.products-archive__empty p {
    font-size: 1.2rem;
    margin: 0;
}

/* --- Pagination --- */
.products-pagination,
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.products-pagination .page-numbers,
.pagination .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
}

.products-pagination .page-numbers:hover,
.pagination .page-numbers:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.products-pagination .page-numbers.current,
.pagination .page-numbers.current {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
    font-weight: 600;
}

.products-pagination .page-numbers.dots,
.pagination .page-numbers.dots {
    border: none;
    background: transparent;
}

.products-pagination .page-numbers.dots:hover,
.pagination .page-numbers.dots:hover {
    background: transparent;
    color: #333;
}