/* ===================================
   IMAGE-BASED PRODUCTS GRID (3x3)  
   =================================== */
.products-grid-image {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
}

.product-card-image {
    position: relative;
    min-height: 350px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Background Image Layer */
.product-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.product-card-image:hover .product-card-bg {
    transform: scale(1.08);
}

/* Dark Overlay */
.product-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.45) 100%);
    z-index: 2;
    transition: background 0.4s ease;
}

.product-card-image:hover .product-card-overlay {
    background: linear-gradient(135deg, rgba(0, 80, 157, 0.75) 0%, rgba(0, 0, 0, 0.55) 100%);
}

/* Content Layer */
.product-card-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--color-white);
    padding: var(--space-2xl);
    max-width: 90%;
}

.product-card-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--color-white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.5px;
}

.product-card-subtitle {
    font-size: var(--font-size-base);
    margin-bottom: var(--space-lg);
    opacity: 0.95;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* Read More Button */
.btn-read-more {
    background: transparent;
    border: 2px solid var(--color-white);
    color: var(--color-white);
    padding: 12px 30px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: var(--font-size-base);
    transition: all 0.3s ease;
    text-transform: capitalize;
    font-family: 'Poppins', sans-serif;
}

.btn-read-more:hover {
    background: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

/* Expand able Details */
.product-card-details {
    position: relative;
    z-index: 3;
    background: var(--color-white);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-image.expanded {
    min-height: auto;
}

.product-card-image.expanded .product-card-details {
    max-height: 800px;
}

.product-card-details-content {
    padding: var(--space-2xl);
    border-top: 3px solid var(--color-primary);
}

.product-detail-text {
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-xl);
    font-size: var(--font-size-base);
}

/* Hide background when expanded */
.product-card-image.expanded .product-card-content {
    display: none;
}

/* Responsive: Tablet */
@media (max-width: 768px) {
    .products-grid-image {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }

    .product-card-image {
        min-height: 280px;
    }

    .product-card-title {
        font-size: var(--font-size-xl);
    }

    .product-card-subtitle {
        font-size: var(--font-size-sm);
    }
}

/* Responsive: Mobile */
@media (max-width: 480px) {
    .products-grid-image {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .product-card-image {
        min-height: 250px;
    }

    .product-card-content {
        padding: var(--space-lg);
    }

    .product-card-title {
        font-size: var(--font-size-lg);
    }

    .btn-read-more {
        padding: 10px 24px;
        font-size: var(--font-size-sm);
    }
}