/* Fix me */
#prod-Grid {
    background-image:
    linear-gradient(to right, rgba(0,0,0,.25) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.25) 100%),
    var(--plateBox); 
    background-size: auto;
    background-repeat: repeat;
    background-position: center;
    background-attachment: scroll;
    padding: 0;
}

#prod-Grid h2 {
    margin-top: 3rem;
}


.product-grid {
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); /* responsive card width */
    gap: 2rem;
    padding-inline: 2rem;
    max-width: 80rem;
    margin-inline: auto;
}

.product-card {
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.1s ease-in-out, box-shadow 0.9s ease-in-out;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-0.6rem) scale(1.02);
    box-shadow: 0 0.8rem 2rem rgba(255, 72, 0, 0.3); /* warm steel glow */
}

.product-image-container {
    position: relative;
    overflow: hidden;
    height: 18vh; /* scales with viewport height */
    min-height: 12rem;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-in-out;
}

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

.product-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    padding: 1rem;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-overlay h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.product-overlay p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    padding-inline: 1rem;
}

.product-link {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    background-color: var(--accent, #ff6b00);
    color: #ffffff;
    text-decoration: none;
    border-radius: 0.4rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.product-link:hover {
    background-color: #cc4e00;
    color: #ffffff;
}

@media (max-width: 768px) {
    .product-overlay {
        opacity: 1 ;
        position: static;
        background-color: rgba(0, 0, 0, 0.6);
        padding-block: 1rem;
        transition: none;
    }

    .product-card {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .product-image-container {
        height: 100% ;
        display: flex; 
        flex-direction: column;
    }

    .product-image-container img {
        height: 100%;
        max-height: 60vw;
        object-fit: cover ;
        overflow: hidden ;
    }

    .product-card:hover .product-overlay {
        opacity: 1 ; 
    }

    /* .product-grid {
        background-image:
        linear-gradient(to right, rgba(0,0,0,.25) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.25) 100%),
        var(--plateBox); 
        background-size: auto;
        background-repeat: repeat;
        background-position: center;
        background-attachment: scroll !important;
    } */
}