.menu-card { 
    position: relative; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    background: var(--card-bg); 
    height: var(--menu-card-height);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-sizing: border-box; /* высота включает паддинг */    
    display: flex;   
    justify-content: space-around; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.15); 
    z-index: 1010;    
    height: var(--menu-card-height); 
    
    min-height: 30px;
    
}

.menu-btn { 
    -webkit-tap-highlight-color: transparent; /* убирает серый фон на iOS при tap */
    -webkit-touch-callout: none;              /* запрещает системное меню */
    user-select: none;                        /* запрещает выделение текста */
    cursor: pointer; 
    transition: transform 0.2s; 
    flex: 1; 
    text-align: center; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
}

.menu-btn.active { 
    transform: translateY(-6px); 
}

.menu-icon {
    font-size: 20px;
    margin-bottom: 1px;
    position: relative;
}

.menu-icon img {
    display: block;
    width: 20px;
    height: 20px;   
    padding: 2px;
}

.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ff4d4d; 
  color: white;
  font-size: 10px;
  font-weight: bold;
  min-width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  display: none; 
}