
/* 1. Fixed Overlay - Simply fades in/out without moving */
.kitchen-overlay {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    overflow: hidden;
    pointer-events: none;
}

.group:hover .kitchen-overlay {
    opacity: 1;
}

/* 2. Fixed Scoop Frame - This stays perfectly still */
.kitchen-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 70%; /* Fixed width of the window as shown in your images */
    height: 100%;
    
    /* Recreates the exact signature Scoop shape from Image 1 */
    border-radius: 0 100% 0 0 / 0 80% 0 0;
    
    /* White border/glow effect on the edge of the scoop */
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.2), 0 0 0 2px white;
    background: white;
    overflow: hidden;
    
    /* Ensure no movement on the frame itself */
    transform: none; 
}

/* 3. The Panning Image - Performs the Left-to-Right cinematic motion */
.kitchen-image {
    position: absolute;
    top: 0;
    left: 0;
    /* Extra width ensures we have "room" to pan without seeing edges */
    min-width: 200% !important;   /* 🔥 important */
    width: auto;
    height: 100%;
    object-fit: cover;
    
    /* START: Positioned at the left side of the render (Left Cupboards) */
    transform: translateX(0%);
    /* Smooth cinematic timing curve */
    transition: transform 1.8s cubic-bezier(0.2, 0, 0.2, 1);
}

.group:hover .kitchen-image {
    /* END: Pan to the right side of the render */
    /* Adjust -40% to -60% depending on how far right you want to look */
    transform: translateX(-45%); 
}

/* 4. Optional: Subtle zoom on the main slab background to add depth */
.group:hover > div > img:first-child {
    transform: scale(1.05);
    transition: transform 1.8s ease-out;
}



.collection-badge {
    position: absolute;
    bottom: 44px;
    left: 0;
    background: rgb(127 29 29 / var(--tw-bg-opacity));
    color: #fff;
    padding: 5px 14px 3px 5px;
    /* font-size: 8px !important; */
    font-weight: 500;
    border-top-right-radius: 24px;
    z-index: 30;
}


@media (max-width: 768px) {
    .collection-badge {
        font-size: 2px !important;
        padding: 2px 15px 2px 6px;
        bottom: 37px;
    }

    .collection-text{
        font-size: 12px !important;
    }
}

