.cart-toggle-window {
    /*position: absolute;*/
    position: fixed;

    right: 1rem;
    width: 400px;
    max-width: calc(100% - 2rem);
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 1020;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-container {
    padding: 1.25rem;
}

/* Cart Header */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.cart-header h5 {
    font-size: 1.1rem;
    line-height: 1.4;
    color: #1a1a1a;
}

.cart-header .badge {
    background: #f8f9fa;
    color: #495057;
    font-weight: 500;
    font-size: 0.8rem;
}

.cart-header .btn-close {
    font-size: 0.8rem;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.cart-header .btn-close:hover {
    opacity: 1;
}

/* Cart Summary */
.cart-summary {
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
}

.cart-summary .fw-bold {
    font-size: 0.95rem;
}

/* Cart Items */
.cart-items {
    /*margin-bottom: 1.25rem;*/
}

.cart-item {
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item:last-child {
    /*border-bottom: none;*/
}

.item-options {
    /*margin-top: 0.75rem;*/
    margin-top: 0.3rem;
}

.option-group-cart {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
    border-left: 2px solid #2159AF;
}

.option-title-cart {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.option-value-cart {
    font-size: 0.80rem;
    /*font-size: 0.95rem;*/
    color: #1a1a1a;
    display: flex;
    align-items: center;
}

.option-value-cart i {
    font-size: 0.9rem;
    color: #28a745;
}

/* Request Section */
.request-section {
    padding: 1rem 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.form-check-input:checked {
    background-color: #2159AF;
    border-color: #2159AF;
}

.form-check-label {
    font-size: 0.95rem;
}

/* Order Note */
.order-note {
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.note-label {
    font-size: 0.9rem;
    color: #6c757d;
}

.order-note .form-control {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
}

.order-note .form-control:focus {
    border-color: #2159AF;
    box-shadow: 0 0 0 0.2rem rgba(255, 188, 13, 0.25);
}

.order-note .form-control::placeholder {
    color: #adb5bd;
    font-size: 0.9rem;
}

/* Offers Section */
.offers-section {
    padding: 1rem 0 0.5rem;
}

.offers-section h6 {
    color: #1a1a1a;
    font-size: 1rem;
}

.offer-item {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.offer-item .fw-bold {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.offer-item small {
    font-size: 0.8rem;
}

.offer-item .btn-outline-warning {
    border-color: #2159AF;
    color: #2159AF;
    font-size: 0.85rem;
    padding: 0.25rem 1rem;
}

.offer-item .btn-outline-warning:hover {
    background-color: #2159AF;
    color: #1a1a1a;
}


/* Overlay when cart is open (optional) */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1010;
    display: none;
}

.cart-overlay.show {
    /*display: block;*/
}

/* Mobile responsive */
@media (max-width: 576px) {
    .cart-toggle-window {
        right: 0.5rem;
        left: 0.5rem;
        width: auto;
        max-width: none;
    }
}

/* Scrollbar styling */
.cart-toggle-window::-webkit-scrollbar {
    width: 6px;
}

.cart-toggle-window::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.cart-toggle-window::-webkit-scrollbar-thumb {
    background: #2159AF;
    border-radius: 10px;
}

.cart-toggle-window::-webkit-scrollbar-thumb:hover {
    background: #e6a800;
}
.cart-badge{
    font-size: 0.7rem; 
    background-color: #2159AF;
    margin-left: 0px;
    margin-top: 6px;
    color: #fff;
}

.save-main{
      width:100%;
      padding:14px;
      background: #2159AF;
      color:#fff;
      border:none;
      border-radius:12px;
      font-weight:600;
  }



          /* Custom Cart Item Delete Alert Modal */
.custom-alert-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 9999;
    /*font-family: Arial, Poppins;*/
}

.custom-alert-content {
    position: relative;
    background-color: #fff;
    margin: 20% auto;
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.custom-alert-header {
    padding: 20px 20px 10px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.custom-alert-header h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    /*font-family: Arial, Poppins;*/
}

.custom-alert-body {
    padding: 20px;
    color: #4B4B4B;
    font-size: 16px;
    line-height: 1.5;
    /*font-family: Arial, Poppins;*/
}

.custom-alert-footer {
    padding: 15px 20px 20px 20px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.custom-alert-btn {
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    /*font-family: Arial, Poppins;*/
    border: none;
}

.custom-alert-btn-cancel {
    background-color: #f0f0f0;
    color: #666;
}

.custom-alert-btn-cancel:hover {
    background-color: #e5e5e5;
}

.custom-alert-btn-confirm {
    background-color: #dc3545;
    color: white;
}

.custom-alert-btn-confirm:hover {
    background-color: #c82333;
}

/*Mobile cart view*/
/* Mobile Bottom Cart Bar */
.mobile-cart-bar {
    position: fixed;
    bottom: 5px;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    padding: 12px 20px;
    z-index: 1000;
    display: none;
    border-top: 1px solid #f0f0f0;
    /*font-family: Arial, Poppins;*/
}

.mobile-cart-bar.show {
    display: block;
}

.mobile-cart-button {
    width: 100%;
    /*background: #1a1a1a;*/
    background: #2159AF;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-cart-button:hover {
    background: #333;
    transform: scale(1.02);
}

.mobile-cart-count {
    background: #1a1a1a;
    color: white;
    border-radius: 50px;
    padding: 4px 12px;
    font-size: 14px;
    font-weight: 600;
}

.mobile-cart-price {
    font-weight: 600;
}

/* Mobile Bottom Sheet Modal - Full Screen */
.cart-bottom-sheet {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    /*top: auto;*/
    background: white;
    border-radius: 0;
    /*box-shadow: 0 -4px 30px rgba(0,0,0,0.2);*/
    z-index: 1050;
    transition: bottom 0.3s ease;
    height: 85vh;
    overflow-y: auto;
    /*visibility: visible;*/
    /*font-family: Arial, Poppins;*/
}

.cart-bottom-sheet.open {
    bottom: 0;
    /*top: 0;*/
    max-height: 100%;
}

.cart-bottom-sheet-header {
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.cart-bottom-sheet-body {
    padding: 20px;
    padding-bottom: 40px;
}

.cart-bottom-sheet-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.cart-bottom-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
    display: none;
}

.cart-bottom-sheet-overlay.show {
    display: block;
}

/* Ensure bottom sheet starts hidden */
/*#cartBottomSheet {
    bottom: -100%;
}*/

/*#cartBottomSheet.open {
    bottom: 0;
}*/

/* Hide mobile cart bar when bottom sheet is open */
.cart-bottom-sheet.open ~ .mobile-cart-bar,
body:has(.cart-bottom-sheet.open) .mobile-cart-bar {
    display: none !important;
}

/* Alternative: hide it when overlay is showing */
.cart-bottom-sheet-overlay.show ~ .mobile-cart-bar {
    display: none !important;
}

/* Ensure mobile cart bar stays hidden when sheet is open */
body.cart-open .mobile-cart-bar {
    display: none !important;
}




/* Mobile specific adjustments */
@media (min-width: 993px) {
    .mobile-cart-bar {
        display: none !important;
    }
    
    .cart-bottom-sheet,
    .cart-bottom-sheet-overlay {
        display: none !important;
    }
}

@media (max-width: 992px) {
    .cart-icon-mg {
        display: none !important;
    }
    
    .cart-toggle-window {
        display: none !important;
    }
}