diff --git a/src/pages/menu/components/MenuList/MenuList.module.css b/src/pages/menu/components/MenuList/MenuList.module.css index 05c579a..d93a39a 100644 --- a/src/pages/menu/components/MenuList/MenuList.module.css +++ b/src/pages/menu/components/MenuList/MenuList.module.css @@ -493,60 +493,6 @@ fill: #ffffff; } -/* Cart badge styles */ -.cartBadge { - position: absolute; - top: -8px; - z-index: 2; - color: white; - border-radius: 50%; - min-width: 20px; - height: 20px; - display: flex; - align-items: center; - justify-content: center; - font-size: 12px; - font-weight: 600; - transition: all 0.3s ease; - border: none; -} - -.cartBadge:hover { - transform: scale(1.1); - box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); -} - -.cartBadgeRTL { - left: -16px; -} - -.cartBadgeLTR { - right: -8px; -} - -/* Enhanced responsive cart badge */ -@media (min-width: 769px) and (max-width: 1024px) { - .cartBadge { - min-width: 24px; - height: 24px; - font-size: 14px; - } -} - -@media (min-width: 1025px) { - .cartBadge { - min-width: 28px; - height: 28px; - font-size: 16px; - } -} - -/* RTL support for cart badge */ -/* [dir="rtl"] .cartBadge { - right: auto; - left: -8px; -} */ - /* Animation for newly added items */ @keyframes badgePulse { 0% { @@ -560,9 +506,6 @@ } } -.cartBadge.animate { - animation: badgePulse 0.6s ease-in-out; -} /* Enhanced dark theme animations */ :global(.darkApp) .menuItem, diff --git a/src/pages/menu/components/MenuList/MenuList.tsx b/src/pages/menu/components/MenuList/MenuList.tsx index 9b05758..31c7710 100644 --- a/src/pages/menu/components/MenuList/MenuList.tsx +++ b/src/pages/menu/components/MenuList/MenuList.tsx @@ -230,48 +230,40 @@ export function MenuList({ data, categoryRefs }: MenuListProps) { style={{ width: 24, height: 24 }} /> )} - - - - - - {items.some((i) => i.id === item.id) && ( - i.id === item.id) - .reduce((total, item) => total + item.quantity, 0) - } - className={ - styles.cartBadge + - " " + - (isRTL - ? styles.cartBadgeRTL - : styles.cartBadgeLTR) - } - style={{ - backgroundColor: colors.primary, - }} - title={`${ - items - .filter((i) => i.id === item.id) - .reduce((total, item) => total + item.quantity, 0) - } in cart`} + i.id === item.id) + .reduce( + (total, item) => total + item.quantity, + 0, + )} + color={colors.primary} + title={`${items + .filter((i) => i.id === item.id) + .reduce( + (total, item) => total + item.quantity, + 0, + )} in cart`} + > + - )} + + +