/**
 * Archive & Product Archive Styles
 */

.page-header {
    padding: 4rem 0 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 8px 32px rgba(117, 198, 241, 0.10);
    border-radius: 0 0 32px 32px;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.archive-description {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.95;
}

/* Products Grid - Same as front-page */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    background-color: #f5f5f5;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-like {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
    color: #999;
}

.product-like:hover {
    background-color: #e74c3c;
    color: white;
    transform: scale(1.1);
}

.product-like.liked {
    background-color: #e74c3c;
    color: white;
}

.product-like.liked svg {
    fill: white;
}

.product-like:active {
    transform: scale(0.9);
}

.product-like svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

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

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    line-height: 1.4;
    min-height: 2.8rem;
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
    flex-grow: 1;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.product-original-price {
    color: var(--text-light);
    text-decoration: line-through;
    font-size: 0.9rem;
}

.product-current-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.25rem;
}

.btn-product {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    display: block;
    box-shadow: 0 8px 24px rgba(117, 198, 241, 0.18);
    letter-spacing: 0.5px;
}

.btn-product:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 32px rgba(117, 198, 241, 0.28);
    opacity: 0.95;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.page-numbers {
    padding: 0.75rem 1.25rem;
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
}

.page-numbers:hover,
.page-numbers.current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

/* Responsive */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .page-header {
        padding: 2rem 0 1.5rem;
    }
}
