/**
 * Product Archive Styles
 * 
 * @package KTI
 * @version 1.0.0
 */

/* Product Grid Styling */
.producten-overzicht {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.product-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.product-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(202.98deg, rgba(0, 0, 0, 0) 36.77%, rgba(0, 0, 0, 0.6) 79.85%);
    pointer-events: none;
}

.product-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 50px 10px 50px;
    color: white;
    z-index: 2;
    /* Keep the text block at a consistent minimum height relative to the card */
    min-height: 38%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.product-card-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 31.74px !important;
    line-height: 120%;
    letter-spacing: 0;
    margin: 0 0 8px 0;
    color: white !important;
}

.product-card-description {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 15.87px;
    line-height: 120%;
    letter-spacing: 0;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    max-height: 2.8em; /* 2 lines * 1.4 line-height */
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.75;
    
    /* Modern browsers - line-clamp */
    line-clamp: 2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card-button {
    position: absolute;
    top: 25px;
    right: 25px;
    margin: 0;
    z-index: 10;
}

.product-card-button {
    float: right;
}

/* Product card link styling */
.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.product-card-link:hover .product-card {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Make button div look like a button */
.product-card-button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    width: 140px;
    height: 40px;
    padding: 8.93px 16px;
    border-radius: 99.19px;
    gap: 8px;
    opacity: 1;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
}

.product-card-button-text {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 15.87px;
    line-height: 100%;
    letter-spacing: 0;
    color: white;
    white-space: nowrap;
}

.product-card-button .fa-arrow-right {
    color: white;
    font-size: 12px;
}

@media (max-width: 768px) {
    .producten-overzicht {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-card-title {
        font-size: 20px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .producten-overzicht {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
} 