/* Filename: assets/styles/products.css*/

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.product-item {
    background-color: rgba(255, 255, 255, 0.5); 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 1rem;
    gap: 0.5rem;
    min-height: 400px;
    z-index: 2; /* Ensure it sits above the logo */
}

.product-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.product-item h3 {
    margin: 0;
    text-align: left;
    line-height: 1.2;
    min-height: 2.5em;
    color: black; /* Base text color */
    text-shadow: 
        1px 1px 0 rgba(255,255,255, 0.2),  /* Right and bottom shadow */
        -1px 1px 0 rgba(255,255,255, 0.2), /* Left and bottom shadow */
        1px -1px 0 rgba(255,255,255, 0.2), /* Right and top shadow */
        -1px -1px 0 rgba(255,255,255, 0.2); /* Left and top shadow */
    font-size: 1.5rem; 
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* Limit text to 2 lines */
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    object-fit: cover; /* Ensures consistent scaling */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.product-image {
    border: 1px solid grey; 
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
