@@ -434,12 +434,12 @@ export function MobileMenuButtons({
434434 />
435435 </ motion . div >
436436
437- { /* Dark gradient overlay on hover for text readability */ }
437+ { /* Dark gradient overlay on hover or if in basket for text readability */ }
438438 < motion . div
439439 className = "absolute inset-0 bg-gradient-to-t from-black/90 via-black/50 to-transparent pointer-events-none z-10"
440440 initial = { { opacity : 0 } }
441441 animate = { {
442- opacity : isHovered ? 1 : 0 ,
442+ opacity : isHovered || itemCount > 0 ? 1 : 0 ,
443443 } }
444444 transition = { { duration : 0.4 , ease : "easeOut" } }
445445 />
@@ -459,13 +459,13 @@ export function MobileMenuButtons({
459459 </ p >
460460 </ motion . div >
461461
462- { /* Quantity Badge - Top right when items in basket */ }
462+ { /* Quantity Badge - Top right when items in basket, hidden when bottom overlay is shown */ }
463463 { itemCount > 0 && (
464464 < motion . div
465465 initial = { { scale : 0 } }
466466 animate = { {
467467 scale : 1 ,
468- opacity : isHovered ? 0 : 1 ,
468+ opacity : isHovered || itemCount > 0 ? 0 : 1 ,
469469 } }
470470 transition = { { duration : 0.3 } }
471471 className = "absolute top-4 right-2 z-30 bg-marketplace-primary text-gray-900 rounded-full w-6 h-6 flex items-center justify-center shadow-lg border-2 border-white"
@@ -474,13 +474,13 @@ export function MobileMenuButtons({
474474 </ motion . div >
475475 ) }
476476
477- { /* Instagram-style overlay - slides up on hover */ }
477+ { /* Instagram-style overlay - slides up on hover or if items in basket */ }
478478 < motion . div
479479 className = "absolute bottom-0 left-0 right-0 z-20 p-3 md:p-4 pointer-events-none"
480480 initial = { { y : "100%" , opacity : 0 } }
481481 animate = { {
482- y : isHovered ? 0 : "100%" ,
483- opacity : isHovered ? 1 : 0 ,
482+ y : isHovered || itemCount > 0 ? 0 : "100%" ,
483+ opacity : isHovered || itemCount > 0 ? 1 : 0 ,
484484 } }
485485 transition = { {
486486 duration : 0.5 ,
0 commit comments