.cart-notification { position: fixed; top: 20px; right: 20px; background: #166534; color: white; padding: 10px 15px; border-radius: 4px; z-index: 9999; box-shadow: 0 2px 10px rgba(0,0,0,0.1); display: none; }

/* Custom cart sidebar */
.custom-cart { width: 350px; background: white; box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1); z-index: 1000; display: flex; flex-direction: column; border: 0px solid #828282; border-radius: 0; position: sticky; z-index: 9; top: 20px; }
.stickersidebar { position: fixed; top: 0; }
.cart-container { display: flex; flex-direction: column; height: 100%; }
.cart-header { padding: 20px; border-bottom: 1px solid #eee; }
.delivery-pickup { display: none; gap: 10px; margin-bottom: 15px; justify-content: space-between; }
.delivery-pickup p { margin: 0; }
.delivery-pickup button { border: none; border-radius: 6px; background: transparent; cursor: pointer; transition: all 0.3s ease; font-size: 14px; font-weight: 500; color: #666; width: 100%; border: solid 2px #005959; }
.delivery-pickup button.active { background: #F8FFE3; color: #005959; border: solid 2px; }
.delivery-pickup button:not(.active):hover { background: rgba(0, 89, 89, 0.1); }
.cart-items { flex: 1; }
.cart-item { padding: 15px; border-bottom: 1px solid #eee; }
.item-details { display: flex; gap: 12px; flex-direction: column; justify-content: space-between; }
.item-left { display: flex; align-items: flex-start; gap: 12px; }
.cart-header h2 { font-family: 'Poppins'; margin: 0; font-size: 24px; font-weight: bold; text-align: center; color: #005959; }
.item-image { width: 50px; height: 50px!important; flex-shrink: 0; }
.item-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.item-info { padding-top: 4px; }
.item-name { font-weight: 500; color: #333; margin-bottom: 2px; font-size: 14px; }
.item-desc { color: #666; font-size: 13px; }
.item-controls { display: flex; align-items: center; padding-top: 4px; }
.price-quantity { display: flex; align-items: center; width: 100%; justify-content: space-between; }
.item-price { font-weight: 500; color: #333; font-size: 14px; }
.item-quantity { display: flex; align-items: center; gap: 8px; background: transparent; padding: 0; }
.item-quantity button, button.quantity-btn.increment-btn.increment-item { width: 24px; height: 24px; border: none; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #333; padding: 0; }
/* .quantity-btn{	display: flex;    align-items: center;    justify-content: center;    padding: 8px;    height: 32px;    width: 32px;    border: none;   background-color: #f5f5f5;  cursor: pointer;} */
.item-quantity button:hover, button.quantity-btn.increment-btn.increment-item:hover { background: transparent !important; color: black; }
.item-quantity button,button.quantity-btn.increment-btn.increment-item { background: transparent; color: black; }
.item-quantity span { min-width: 16px; text-align: center; font-weight: 400; font-size: 14px; }
.remove-item { color: #666 !important; }
.remove-item:hover { color: #dc2626 !important; }
li.empty-cart-message { text-align: center; font-size: 20px; color: #005959; font-weight: 700; }
/* Popular with your order */
.popular-with-order { padding: 20px; border-top: 1px solid #eee; border-bottom: 1px solid #eee; background: #fff; }
.popular-with-order h3 { margin-bottom: 15px; color: #005959; font-weight: 700; font-size: 20px; font-family: poppins; }
.cart-items ul { list-style: none; padding: 0; overflow-y: auto; overflow-x: hidden; min-height: 200px; max-height: calc(100vh - 400px) }
.popular-items { display: flex; gap: 15px; overflow-x: auto; padding: 4px; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
.popular-item { min-width: 70px; display: flex; flex-direction: column; gap: 8px; }
.popular-item-box { aspect-ratio: 1; background: #fff; border: 1px solid #eee; border-radius: 12px; position: relative; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 4px rgba(0,0,0,0.05); overflow: hidden; }
.popular-item-box img { width: 71.12108612060547px; height: 71.3946304321289px; object-fit: cover; display: block; border-radius: 15px; }
button.add-popular { border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.2s ease; position: absolute; right: -11px; z-index: 2; top: 35px; }
button.add-popular:hover { transform: scale(1.1); background: transparent; }
.popular-item-details { display: flex; flex-direction: column; gap: 4px; }
button.add-popular img { width: 100%; height: 100%; }
.popular-item-label { font-size: 14px; color: #333; text-align: left; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; min-height: 36px; }
.popular-item-price { font-size: 14px; font-weight: 600; color: #166534; text-align: left; }
.popular-items::-webkit-scrollbar { height: 4px; }
.popular-items::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 2px; }
.popular-items::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }
.popular-items::-webkit-scrollbar-thumb:hover { background: #ccc; }

/* Cart summary and checkout */
.cart-summary { padding: 20px; background: #f9f9f9; border-top: 1px solid #eee; }
.summary-item { display: flex; justify-content: space-between; margin-bottom: 10px; color: #666; }
.summary-item.total { font-weight: bold; font-size: 1.1em; margin-top: 10px; color: #333; }
#checkout-button { width: 100%; padding: 15px; background: #005959; color: white; border: none; border-radius: 8px; margin-top: 15px; cursor: pointer; font-weight: bold; transition: background-color 0.3s ease; }
#checkout-button:hover { background: #002d2d !important; color : white !important;}

/* Scrollbars inside cart */
.cart-items::-webkit-scrollbar, .popular-items::-webkit-scrollbar { width: 6px; height: 6px; }
.cart-items::-webkit-scrollbar-track, .popular-items::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 3px; }
.cart-items::-webkit-scrollbar-thumb, .popular-items::-webkit-scrollbar-thumb { background: #888; border-radius: 3px; }
.cart-items::-webkit-scrollbar-thumb:hover, .popular-items::-webkit-scrollbar-thumb:hover { background: #666; }

/* Loading and disabled states */
.cart-loading { text-align: center; padding: 20px; }
.loading-spinner { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: loading 1.5s infinite; border-radius: 4px; height: 100px; width: 100%; }
.custom-cart.cart-disabled { position: sticky; top: 20px; z-index: 9; }
.cart-disabled { pointer-events: none; cursor: not-allowed; }
.cart-disabled::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(255, 255, 255, 0.7); z-index: 10; cursor: not-allowed; }
.cart-disabled::after { content: 'Wird geladen...'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 11; font-weight: bold; color: #333; cursor: not-allowed; }

@media (max-width: 1281px) {
  .custom-cart { width:100%; }
}


