/* Add this at the start of the style section */
body.cart-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

.cart-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
    transition: all 0.3s ease;
    overflow-y: auto;
    /* Allow overlay to scroll if needed */
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling for iOS */
}

.cart-container {
    background-color: white;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    height: 95vh;
    margin: 2.5vh auto;
    /* Center vertically with margin */
    animation: slideUp 0.3s ease-out forwards;
    position: relative;
    /* Ensure it's positioned relative to the overlay */
}

.gauge {
    display: flex;
    gap: 2px;
    align-items: baseline;
}


.dropdown-menu-right {
    min-width: max-content;
}

/* Cart button styles */
.btn-sepet {
    position: fixed;
    bottom: 50px;
    right: 20px;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-sepet:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn-sepet .btn {
    padding: 12px 20px;
    border-radius: 50px;
    background-color: #009a9a;
    color: white;
    border: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-sepet .cart-count {
    background-color: white;
    color: #009a9a;
    padding: 2px 6px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-sepet .fas.fa-shopping-cart {
    font-size: 16px;
}

/* Add animation for cart count changes */
@keyframes cartBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.btn-sepet .cart-count.updated {
    animation: cartBounce 0.3s ease;
}

/* Dropdown menüdeki tüm <li> elemanlarını tıklanabilir hale getirmek için */
#sidebarrightbutton1 li {
    display: block;
    cursor: pointer;
    /* İmleci pointer yapıyoruz */
    padding: 20px;
    /* Tıklanabilir alanı genişletmek için padding ekliyoruz */
}

/* <a> etiketini tüm <li> elemanını kaplayacak şekilde genişletmek için */
#sidebarrightbutton1 li a {
    display: block;
    width: 120%;
    /* Genişliği tam olarak kaplar */
    height: 100%;
    /* Yüksekliği de tam olarak kaplar */
    text-decoration: none;
    /* Alt çizgiyi kaldırır */
}

/* Üzerine gelindiğinde arka plan rengini değiştirmek için */
#sidebarrightbutton1 li:hover {
    background-color: #f0f0f0;
    /* İstediğiniz bir arka plan rengini seçebilirsiniz */
}

/* Sepet butonları için stil tanımları */
.home-box-category {
    position: relative;
    display: flex;
    flex-direction: column-reverse;
    /* extraa */
}

.home-box-category .cart-btn,
.home-image-category .cart-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: white;
    color: #333;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.home-box-category .cart-btn:hover,
.home-image-category .cart-btn:hover {
    background-color: #25D366;
    color: white;
    transform: scale(1.1);
}

.cart-btn i {
    font-size: 18px;
}

/* Sepete eklendiğinde animasyon efekti */
@keyframes cartSuccess {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.cart-success {
    animation: cartSuccess 0.5s ease;
    background-color: #25D366 !important;
    color: white !important;
}

.cart-items {
    padding: 15px;
    overflow-y: auto;
    max-height: 50vh;
    min-height: 10vh;
    /* Adjusted to better balance between items and other content */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) rgba(0, 0, 0, 0.1);
}

/* Webkit scrollbar styles (Chrome, Safari, newer Edge) */
.cart-items::-webkit-scrollbar {
    width: 8px;
}

.cart-items::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.cart-items::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.cart-items::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

.cart-item {
    display: flex;
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.cart-item-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 15px;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #666;
}

.cart-item-actions {
    display: flex;
    align-items: center;
}

.quantity-btn {
    background: transparent;
    border: none;
    width: 15px;
    /* height: 25px; */
    border-radius: 50%;
    cursor: pointer;
}

.cart-item-quantity {
    margin: 0 10px;
}

.cart-footer {
    padding: 5px 10px;
    border-top: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    margin-bottom: 0px;
}

.send-order-btn,
.clear-cart-btn {
    width: 100%;
    padding: 6px 10px;
    margin-bottom: 0px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.send-order-btn {
    background-color: #4caf50;
    color: white;
}

.clear-cart-btn {
    background-color: #f44336;
    color: white;
}

.empty-cart-message {
    text-align: center;
    padding: 20px;
    color: #666;
}

.form-group label {
    display: block;
    margin-bottom: 0px;
    font-weight: bold;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 11px;
}

textarea.form-control {
    min-height: 6vh;
    resize: none;
}

.order-note {
    height: auto;
    min-height: 10px;
    overflow: hidden;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.radio-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    user-select: none;
}

.radio-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: 50%;
}

.radio-container:hover input~.checkmark {
    background-color: #ccc;
}

.radio-container input:checked~.checkmark {
    background-color: #4caf50;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    /* Keep this to hide the dot by default */
}

.radio-container input:checked~.checkmark:after {
    display: none;
    /* Hide the dot when the radio button is checked */
}

.radio-container .checkmark:after {
    top: 6px;
    left: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

/* Cart Overlay Styles */
.button-group {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 0px;
    height: 8%;
}

.extras {
    /* margin-top: 10px; */
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

/* Add styles for order-note textarea */
#order-note {
    overflow: hidden;
    /* height: auto; */
    min-height: 36px;
    transition: all 0.2s ease;
    height: 10px;
}

#order-note:focus {
    overflow-y: auto;
    min-height: 50px;
}

/* End of order-note styles */

.cart-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
    transition: all 0.3s ease;
}

.cart-container {
    background-color: white;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    max-height: 95vh;
    /* Increased from 90vh */
    display: flex;
    flex-direction: column;
    height: 95vh;
    /* Increased from 80vh to use more screen space */
    overflow-y: auto;
    animation: slideUp 0.3s ease-out forwards;
    /* Scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .suggested-items::after {
        box-shadow: inset -39px 0 24px -15px white !important;
    }
}

/* Small screen responsiveness - especially for iPhone 7 and similar small devices */

@media (max-width: 414px) {
    .cart-container {
        width: 95%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
        overflow-y: scroll;
        /* Ensure scrolling is always available */
        -webkit-overflow-scrolling: touch;
        /* Smooth scrolling for iOS */
        /* Enhance scrollbar visibility on small screens */
        scrollbar-width: thin;
        scrollbar-color: rgba(0, 0, 0, 0.5) rgba(0, 0, 0, 0.1);
    }

    /* Custom scrollbar for WebKit browsers (Chrome, Safari, newer Edge) */
    .cart-container::-webkit-scrollbar {
        width: 8px;
        background-color: rgba(0, 0, 0, 0.05);
    }

    .cart-container::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.3);
        border-radius: 4px;
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .cart-container::-webkit-scrollbar-thumb:hover {
        background-color: rgba(0, 0, 0, 0.5);
    }

    .cart-header {
        padding: 8px 15px;
        position: sticky;
        top: 0;
        z-index: 10;
        background-color: white;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .cart-header h3 {
        font-size: 16px;
    }

    .cart-items {
        padding: 10px 15px;
    }

    .cart-item-image {
        width: 40px;
        height: 40px;
    }

    .cart-item-title {
        font-size: 13px;
    }

    .cart-item-price {
        font-size: 12px;
    }

    .quantity-btn {
        width: 10px;
        height: 10px;
    }

    .cart-footer {
        padding: 8px 15px 15px;
    }

    .button-group {
        gap: 6px;
    }

    .send-order-btn,
    .clear-cart-btn {
        padding: 10px 8px;
        font-size: 18px;
    }

    .cart-total {
        padding: 8px;
        font-size: 14px;
    }

    .suggested-items h3 {
        font-size: 11px;
    }

    .suggested-item img {
        width: 6vh;
        height: 6vh;
    }

    .form-control {
        padding: 8px;
        font-size: 11px;
    }

    .radio-container {
        font-size: 13px;
    }

    .checkmark {
        height: 15px;
        width: 15px;
    }

    .radio-container .checkmark:after {
        top: 5px;
        left: 5px;
        width: 8px;
        height: 8px;
    }

    /* .suggested-items {
        width: 70%;
    } */
}

@media (max-width: 540px) {
    .suggested-items {
        width: 70%;
    }
}

/* Very small devices like iPhone SE */
@media (max-width: 320px) {
    .cart-container {
        width: 95%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
        overflow-y: scroll;
        /* Ensure scrolling is always available */
        -webkit-overflow-scrolling: touch;
        /* Smooth scrolling for iOS */
        /* Enhance scrollbar visibility on small screens */
        scrollbar-width: thin;
        scrollbar-color: rgba(0, 0, 0, 0.5) rgba(0, 0, 0, 0.1);
    }

    /* Custom scrollbar for WebKit browsers (Chrome, Safari, newer Edge) */
    .cart-container::-webkit-scrollbar {
        width: 8px;
        background-color: rgba(0, 0, 0, 0.05);
    }

    .cart-container::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.3);
        border-radius: 4px;
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .cart-container::-webkit-scrollbar-thumb:hover {
        background-color: rgba(0, 0, 0, 0.5);
    }

    .button-group {
        flex-direction: column;
        gap: 5px;
        height: auto;
    }

    .cart-total {
        padding: 6px;
        font-size: 15px;
        order: -1;
        /* Move total to the top of the flex container */
        margin-bottom: 5px;
    }

    .send-order-btn,
    .clear-cart-btn {
        padding: 6px 10px;
        font-size: 18px;
    }

    .cart-item-title {
        font-size: 12px;
    }

    .form-group label {
        font-size: 10px;
    }

    .form-control {
        padding: 6px;
        font-size: 10px;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
    /* Prevent header from shrinking */
    background-color: #f8f9fa;
}

.cart-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.close-cart {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-cart:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.cart-items {
    padding: 15px 20px;
    overflow-y: auto;
    flex-grow: 1;
    min-height: 10vh;
    /* Allow items to grow */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) rgba(0, 0, 0, 0.1);
}

/* Webkit scrollbar styles (Chrome, Safari, newer Edge) */
.cart-items::-webkit-scrollbar {
    width: 6px;
}

.cart-items::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.cart-items::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.cart-items::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.cart-item {
    display: flex;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-item-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cart-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 15px;
    color: #333;
}

.cart-item-price {
    color: #4caf50;
    font-weight: 500;
    font-size: 14px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
}

.quantity-btn {
    background: transparent;
    border: none;
    width: 15px;
    /* height: 25px; */
    border-radius: 50%;
    cursor: pointer;
}

.quantity-btn:hover {
    background: #eee;
}

.cart-item-quantity {
    margin: 0 5px;
    font-weight: 500;
    min-width: 1vw;
    text-align: center;
    text-decoration: underline;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
}

.cart-item-quantity:hover {
    color: #4caf50;
    background-color: rgba(76, 175, 80, 0.1);
}

.quantity-input {
    width: 30px;
    text-align: center;
    padding: 0;
    border: 1px solid #4caf50;
    border-radius: 4px;
    outline: none;
    font-weight: 500;
    height: 20px;
    margin: 0 5px;
}

.cart-footer {
    padding: 15px 20px 20px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
    /* Prevent footer from shrinking */
    background-color: #f8f9fa;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    align-items: center;
    margin-bottom: 0px;
    font-size: 15px;
    background-color: white;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.cart-total span:last-child {
    color: #4caf50;
}

.send-order-btn,
.clear-cart-btn {
    width: 100%;
    padding: 6px 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 20px;
    transition: all 0.3s ease;
}

.send-order-btn {
    background-color: #4caf50;
    color: white;
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.2);
}

.send-order-btn:hover {
    background-color: #45a049;
    box-shadow: 0 6px 12px rgba(76, 175, 80, 0.3);
    transform: translateY(-2px);
}

.clear-cart-btn {
    background-color: #f44336;
    color: white;
    box-shadow: 0 4px 8px rgba(244, 67, 54, 0.2);
}

.clear-cart-btn:hover {
    background-color: #e53935;
    box-shadow: 0 6px 12px rgba(244, 67, 54, 0.3);
    transform: translateY(-2px);
}

.empty-cart-message {
    text-align: center;
    padding: 30px 20px;
    color: #666;
    font-size: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin: 10px 0;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
    font-size: 11px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 11px;
    transition: border-color 0.2s;
    background-color: #f9f9f9;
}

.form-control:focus {
    border-color: #4caf50;
    outline: none;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

textarea.form-control {
    min-height: 4vh;
    height: -webkit-fill-available;
    max-height: 8vh;
    resize: none;
}

.payment-options {
    display: flex;
    gap: 5px;
    flex-direction: column;
}

.radio-container {
    display: flex !important;
    align-items: center;
    padding-left: 30px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    transition: color 0.2s;
}

.radio-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 50%;
    transition: all 0.2s;
}

.radio-container:hover input~.checkmark {
    background-color: #eee;
}

.radio-container:hover {
    color: #333;
}

.radio-container input:checked~.checkmark {
    background-color: #4caf50;
    border-color: #4caf50;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    transition: all 0.2s;
}

.radio-container input:checked~.checkmark:after {
    display: none;
    /* Hide the dot when the radio button is checked */
}

.radio-container .checkmark:after {
    top: 6px;
    left: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

/* Address Mode Switch Styles */
.address-mode-switch {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    margin-right: 10px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #4caf50;
}

input:checked+.slider:before {
    transform: translateX(20px);
}

.switch-label {
    font-size: 12px;
    color: #666;
}

#multiple-address-mode {
    display: none;
}

#multiple-address-mode .form-control {
    margin-bottom: 0;
    /* Remove margin since we're using grid gap */
}

.address-part {
    width: 100%;
    box-sizing: border-box;
}

.address-container {
    position: relative;
    width: 100%;
    display: flex;
    gap: 5px;
    flex-direction: row-reverse;
}

.address-converter-icon {
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    z-index: 1000;
    position: absolute;
}

.address-converter-icon:hover {
    color: #4caf50;
    background-color: rgba(76, 175, 80, 0.1);
}

.address-converter-icon.active {
    color: #4caf50;
    transform: translateY(-50%) rotate(180deg);
}

/* Remove old switch styles */
.address-mode-switch,
.switch,
.switch input,
.slider,
.switch-label {
    display: none;
}

#single-address-mode {
    width: -webkit-fill-available;
}

.modern-checkmark {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 10px;
}

.modern-checkmark input[type="radio"] {
    display: none;
}

.modern-checkmark .checkmark {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
    transition: all 0.2s ease;
}

.modern-checkmark .checkmark svg {
    stroke: rgba(76, 175, 79, 0);
    transition: all 0.2s ease;
}

.modern-checkmark input[type="radio"]:checked+.checkmark {
    border-color: #4caf50;
    background-color: #4caf50;
}

.modern-checkmark input[type="radio"]:checked+.checkmark svg {
    stroke: #fff;
}

.modern-checkmark .radio-label {
    display: contents;
    font-size: 12px;
    color: #333;
    transition: all 0.2s ease;
}

.modern-checkmark:hover .radio-label {
    color: #4caf50;
}

.cart-coupon {
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 12px;
    margin-right: 10px;
    color: black;
    cursor: pointer;
    border-radius: 5px;
    
}

#name-coupon-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
}

.lower-bottom {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: space-between;
    /* max-width: ; */
}

/* Cart Overlay Styles */
.button-group {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: 10px;
    border-left: 2px solid #eee;
    padding-left: 10px;
    margin-top: 0px;
    height: 8%;
}

.extras {
    /* margin-top: 10px; */
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.cart-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
    transition: all 0.3s ease;
}

.cart-container {
    background-color: white;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    height: 80vh;
    /* Fixed height to ensure consistency */
    overflow: hidden;
    animation: slideUp 0.3s ease-out forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
    /* Prevent header from shrinking */
    background-color: #f8f9fa;
}

.cart-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.cart-items {
    padding: 15px 20px;
    overflow-y: auto;
    flex-grow: 1;
    /* Allow items to grow */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) rgba(0, 0, 0, 0.1);
    min-height: 10vh;
}

/* Webkit scrollbar styles (Chrome, Safari, newer Edge) */
.cart-items::-webkit-scrollbar {
    width: 15px;
}

.cart-items::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.cart-items::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.cart-items::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.cart-item {
    display: flex;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-item-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cart-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 100%;
    color: #333;
}

.cart-item-price {
    color: #4caf50;
    font-weight: 500;
    font-size: 90%;
}

.cart-item-actions {
    display: flex;
    align-items: center;
}

.quantity-btn {
    background: transparent;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 4vh;
    height: 4vh;
    font-size: 150%;
    /* height: 25px; */
    border-radius: 30%;
    cursor: pointer;
    padding: 0px;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2), 0 4px 12px rgba(76, 175, 80, 0.1);
    transition: box-shadow 0.2s ease;
}

.quantity-btn:hover {
    background: #eee;
}

.cart-item-quantity {
    margin: 0 5px;
    font-weight: 500;
    min-width: 1vw;
    text-align: center;
    text-decoration: underline;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
}

.cart-item-quantity:hover {
    color: #4caf50;
    background-color: rgba(76, 175, 80, 0.1);
}

.quantity-input {
    width: 30px;
    text-align: center;
    padding: 0;
    border: 1px solid #4caf50;
    border-radius: 4px;
    outline: none;
    font-weight: 500;
    height: 20px;
    margin: 0 5px;
}

.remove-item {
    background: none;
    border: none;
    color: #ff4d4d;
    cursor: pointer;
    margin-left: 10px;
    font-size: 16px;
    transition: transform 0.2s;
}

.remove-item:hover {
    transform: scale(1.1);
}

.cart-footer {
    padding: 10px 20px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
    /* Prevent footer from shrinking */
    background-color: #f8f9fa;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    font-weight: 600;
    align-items: center;
    margin-bottom: 0px;
    font-size: 15px;
    background-color: white;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.cart-total span:last-child {
    color: #4caf50;
}

.send-order-btn,
.clear-cart-btn {
    width: fit-content;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 20px;
    transition: all 0.3s ease;
}

#clear-cart {
    padding: 0px;
    margin-right: 10px;
}

.send-order-btn {
    background-color: #4caf50;
    color: white;
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.2);
}

.send-order-btn:hover {
    background-color: #45a049;
    box-shadow: 0 6px 12px rgba(76, 175, 80, 0.3);
    transform: translateY(-2px);
}

.clear-cart-btn {
    background-color: transparent;
    color: black;
    text-decoration: underline;
    box-shadow: none;
}

.clear-cart-btn:hover {
    background-color: transparent;
    box-shadow: 0 6px 12px rgba(203, 203, 203, 0.3);
    transform: translateY(-2px);
}

.empty-cart-message {
    text-align: center;
    padding: 30px 20px;
    color: #666;
    font-size: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin: 10px 0;
}

/* Customer Information Styles */
.customer-info {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 12px 15px;
    background-color: #fff;
    max-height: 21vh;
    overflow-y: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

.customer-info::-webkit-scrollbar {
    width: 8px;
}

.customer-info::-webkit-scrollbar-track {
    background: transparent;
}

.customer-info::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

#customer-name {
    /* width: 80%; */
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 5px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
    font-size: 11px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 11px;
    transition: border-color 0.2s;
    background-color: #f9f9f9;
}

.form-control:focus {
    border-color: #4caf50;
    outline: none;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

textarea.form-control {
    min-height: 4vh;
    height: -webkit-fill-available;
    max-height: 8vh;
    resize: none;
}

textarea::-webkit-scrollbar {
    width: 6px !important;
    /* Adjusted to make scrollbar even thinner */
}

textarea::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

textarea::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

textarea::-webkit-scrollbar-thumb:hover {
    background: #555;
}

#address-counter {
    position: sticky;
    left: 100%;
    /* bottom: 15%; */
    font-size: 9px;
    color: #333;
    margin-top: 5px;
    margin-left: 5px;
}

#note-counter {
    position: absolute;
    right: 4px;
    bottom: -12px;
    font-size: 9px;
    color: #333;
    margin: 0;
}

#customer-address-container {
    width: 80%;
    margin-bottom: 0px;
}

.payment-options {
    display: flex;
    gap: 5px;
    flex-direction: column;
}

.radio-container {
    display: flex !important;
    align-items: center;
    padding-left: 30px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    transition: color 0.2s;
}

.radio-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 50%;
    transition: all 0.2s;
}

.radio-container:hover input~.checkmark {
    background-color: #eee;
}

.radio-container:hover {
    color: #333;
}

.radio-container input:checked~.checkmark {
    background-color: #4caf50;
    border-color: #4caf50;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    transition: all 0.2s;
}

.radio-container input:checked~.checkmark:after {
    display: none;
    /* Hide the dot when the radio button is checked */
}

.radio-container .checkmark:after {
    top: 6px;
    left: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

/* Address Mode Switch Styles */
.address-mode-switch {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    margin-right: 10px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #4caf50;
}

input:checked+.slider:before {
    transform: translateX(20px);
}

.switch-label {
    font-size: 12px;
    color: #666;
}

#multiple-address-mode {
    display: none;
    width: -webkit-fill-available;
}

#multiple-address-mode .form-control {
    margin-bottom: 0;
    /* Remove margin since we're using grid gap */
}

.address-part {
    width: 100%;
    box-sizing: border-box;
}

/* Grid Layout for Address Inputs */
.address-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 5px;
}

.address-grid-item {
    position: relative;
}

/* Responsive adjustments */
@media (max-width: 370px) {
    .address-grid {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .address-grid-item {
        grid-column: 1 / -1 !important;
    }

    .gauge {
        align-items: center;
        flex-direction: column;
    }

    .remove-item {
        margin-left: 3px;
        padding: 3px;
    }

    .brand-header {
        font-size: 7px !important;
    }

    .checkmark {
        height: 15px !important;
        width: 15px !important;
        margin: 3px !important;
    }

    .radio-container {
        padding-left: 22px !important;
    }

    #payment-options-container {
        margin-right: 0px !important;
    }
}

#payment-options-container {
    /* margin-right: 10px; */
    display: flex;
    align-items: center;
}

.address-container {
    position: relative;
    width: 100%;
    display: flex;
    gap: 5px;
    flex-direction: row-reverse;
}

.address-converter-icon {
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 1px;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    z-index: 1000;
    position: absolute;
}

.address-converter-icon:hover {
    color: #4caf50;
    background-color: rgba(76, 175, 80, 0.1);
}

.address-converter-icon.active {
    color: #4caf50;
    transform: translateY(-50%) rotate(180deg);
}

/* Remove old switch styles */
.address-mode-switch,
.switch,
.switch input,
.slider,
.switch-label {
    display: none;
}

.brand-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 90%;
}

.close-clear {
    display: flex;
    gap: 5px;
}

/* Suggested Items Slider Styles */
.suggested-items {
    margin: 0px;
    border-top: 1px solid #eee;
    padding-top: 5px;
    max-width: 80%;
    position: relative;
    z-index: 1;
}

.suggested-items::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100px;
    box-shadow: inset -39px 0 24px -15px #f8f9fa;
    /* -42px 0px 39px 0px  */
    z-index: 2;
    pointer-events: none;
}

.suggested-items h3 {
    margin-bottom: 0px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.suggested-items-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    gap: 12px;
    padding: 5px 0;
    padding-bottom: 15px;
}

.suggested-items-slider::-webkit-scrollbar {
    height: 6px;
}

.suggested-items-slider::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.suggested-items-slider::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.suggested-items-slider::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.suggested-item:last-child {
    margin-right: 20px;
}

.suggested-item {
    flex: 0 0 auto;
    width: fit-content;
    display: flex;
    align-items: center;
    flex-direction: column;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    padding: 5px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    /* Make the item cursor a pointer to show it's clickable */
}

.suggested-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.12);
    background-color: #f9f9f9;
    /* Light background on hover */
}

.suggested-item:active {
    transform: scale(0.98);
    /* Add a press effect */
}

/* Add success animation for when item is added to cart */
.suggested-item.cart-success {
    animation: cartItemSuccess 0.8s ease;
    box-shadow: 0 0 0 2px #4caf50;
}

@keyframes cartItemSuccess {
    0% {
        background-color: #fff;
    }

    30% {
        background-color: rgba(76, 175, 80, 0.2);
    }

    100% {
        background-color: #fff;
    }
}

.suggested-item img {
    width: 7vh;
    height: 7vh;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0px;
}

.suggested-item h4 {
    margin: 5px 0;
    font-size: 9px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
}

.suggested-item p {
    margin: 0;
    font-size: 11px;
    color: #4caf50;
    font-weight: 600;
}

body.cart-open {
position: fixed;
width: 100%;
height: 100%;
overflow: hidden;
}

.cart-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
/* z-index: 9999; */
display: none;
overflow-y: auto;
/* Add flex display for centering */
display: none;
align-items: center;
justify-content: center;
}

.cart-container {
position: relative;
max-height: 100vh;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
background: #fff;
width: 100%;
max-width: 600px; /* Maximum width on larger screens */
margin: 20px auto;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Responsive styles for small screens */
@media screen and (max-width: 768px) {
.cart-container {
    width: 95%; /* Slightly less than full width on mobile */
    margin: 10px auto;
    max-height: 90vh; /* Slightly less than full height to ensure visibility of content */
}

/* Ensure the cart header stays visible */
.cart-header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

/* Adjust cart items area for better mobile viewing */
.cart-items {
    max-height: calc(90vh - 200px); /* Adjust based on header and footer height */
    overflow-y: auto;
}

/* Ensure the cart footer stays at bottom */
.cart-footer {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 10px;
    border-top: 1px solid #eee;
}
}

/* Additional styles for very small screens */
@media screen and (max-width: 480px) {
.cart-container {
    width: 98%; /* Even more width on very small screens */
    margin: 5px auto;
}

/* Adjust padding and margins for smaller screens */
.cart-header,
.cart-footer {
    padding: 8px;
}

.cart-items {
    padding: 8px;
}
}