/* Additional styling for table data */
.product-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 3em;
}

/* Image hover cell styling */
.hover-cell {
    width: 150px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s ease;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
}

/* Text mode styling */
.text-mode {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: 600;
    font-size: 20px;
    text-align: center;
    line-height: 1.4;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: textFadeIn 0.4s ease;
}
.text-mode {
    font-size: 20px;
}
/* Media query for larger screens (e.g., desktops) */
@media (min-width: 768px) {
    .hover-cell {
    width: 300px;
    height: 180px;

    }
   .hover-cell .text-mode {
        font-size: 40px !important;
    }
}

.hover-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    border-radius: 12px;
}

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



.image-crop-container {
    /* This defines the size of the visible area */
    width: 184px;
    height: 118px;
    
    /* This is what crops the image */
    overflow: hidden;
}

.image-crop-container img {
    /* This is the key property to prevent scaling */
    object-fit: none;
    
    /* This centers the image within the container */
    object-position: center;


    /* To achieve a 20% zoom out, we effectively make the original image 20% larger */
    width: 120%; /* 100% + 20% */
    height: 120%; /* 100% + 20% */
    
    /* Now we need to adjust the centering to account for the larger size. */
    /* Since the image is 20% larger (1.2 times), half of that extra size needs to be offset. */
    /* (1.2 - 1) / 2 = 0.1 or 10% in each direction */
    object-position: center center; /* Redundant, but explicit */
    transform: translate(-10%, -10%); /* Move the center to account for the increased size */
}
