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

.cart-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1040 !important;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
    transition: opacity 0.2s 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);
    display: flex;
    flex-direction: column;
    height: 95vh;
    margin: 2.5vh auto;
    /* Center vertically with margin */
    animation: slideUp 0.2s 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.15s ease;
}

.btn-sepet:hover {
    transform: translateY(-2px);
}

.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.15); }
    100% { transform: scale(1); }
}

.btn-sepet .cart-count.updated {
    animation: cartBounce 0.2s 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.2s 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.05);
}

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

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

    50% {
        transform: scale(1.1);
    }

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

.cart-success {
    animation: cartSuccess 0.3s ease;
    background-color: #E3F2FD !important;
    color: #007bff !important;
    font-size: 3rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.cart-items {
    padding: 15px;
    overflow-y: auto;
    min-height: 10vh;
    max-height: 60vh;
    /* 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-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;
    width: 40%;
}


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

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

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

.payment-options {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    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 */
.final-group {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 0px;
    /* height: 8%; */
    width: -webkit-fill-available;
}

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

/* Add styles for order-note textarea */
#order-note {
    border: none;
    box-shadow: 0 0 0 1px rgb(0 0 0 / 10%);
    overflow: hidden;
    height: max-content;
    /* min-height: 36px; */
    transition: all 0.2s ease;
}
#customer-address, #customer-name, #address-city, #address-district, #address-street, #address-number{
    border: none;
}


/* 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);
    /* 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;
    }

    .final-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);
    }

    .final-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: background-color 0.15s ease;
}

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


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

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

    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-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: background-color 0.15s 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: color 0.15s ease, background-color 0.15s ease;
}

.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: 2.5vh 2.5vh 3vh;
    border-top: none;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    /* Prevent footer from shrinking */
    background-color: #f8f9fa;
}

.cart-total span:last-child {
    color: white/* #76ff7b */;
}

.clear-cart-btn {
    background-color: transparent;
    color: black;
    border-radius: 50%;
}

.clear-cart-btn:hover {
    box-shadow: 0 4px 8px rgba(244, 67, 54, 0.2);
    transform: translateY(-1px);
}

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


.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.15s ease;
}

.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: background-color 0.15s ease, border-color 0.15s ease;
}

.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.15s ease;
}

.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;
    flex-direction: column;
    gap: 8px;
}

.address-converter-icon {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    transition: all 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    align-self: flex-end;
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
}

.address-converter-icon:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
    color: #4caf50;
}

.address-converter-icon.active {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-color: #007bff;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.address-converter-icon.active i {
    transform: rotate(180deg);
}

#single-address-mode {
    width: 100%;
}

#multiple-address-mode {
    width: 100%;
}

/* 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;
    margin: 3vh 0px;
}

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

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

#second-close-clear {
    display: none !important;
}

/* Suggested Items Slider Styles */
.suggested-items {
    /* background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); */
    background: #E3F2FD !important;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.suggested-items::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    margin-top: 12px;
    border-radius: 2px;
}

.suggested-items h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0px;
    letter-spacing: -0.3px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.suggested-items-slider {
    display: flex;
    /* gap: 16px; */
    overflow-x: auto;
    padding: 8px 0px;
    scroll-behavior: smooth;
}

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

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

.suggested-items-slider::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.suggested-items-slider::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #0056b3, #004085);
}

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

.suggested-item {
    min-width: 120px;
    /* max-width: 140px; */
    display: flex;
    align-items: center;
    /* gap: 10px; */
    height: fit-content;
    background: white;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #f1f5f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.suggested-item:hover {
    transform: translateY(-4px);
    /* box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12); */
    border-color: #007bff;
}

.suggested-item:active {
    transform: translateY(-2px);
}

.suggested-item.cart-success {
    animation: cartItemSuccess 0.8s ease;
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    background-image: none !important;
    border-color: #007bff;
}

@keyframes cartItemSuccess {
    0% {
        transform: scale(1);
        background: white;
    }
    50% {
        transform: scale(1.05);
        background: linear-gradient(135deg, #d4edda, #c3e6cb);
    }
    100% {
        transform: scale(1);
        background: linear-gradient(135deg, #d4edda, #c3e6cb);
    }
}

.suggested-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #f1f5f9;
    transition: transform 0.2s ease;
}

.suggested-item:hover img {
    transform: scale(1.05);
}

.suggested-item h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.suggested-item p {
    font-size: 14px;
    font-weight: 700;
    color: #007bff;
    margin: 0;
}

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;
padding: 3vh 1.5vh;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
background: #fff;
min-width: -webkit-fill-available;                      /* extraa */
max-width: 600px; /* Maximum width on larger screens */
margin: 0px;   /* extraa */
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;
}
}

/* 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;
}
}

.cart-items-container-0 {
    width: 60%;
}

.cart-items-container-2 {
    height: 70%;
    overflow-y: auto;
    padding: 0;
    margin: 0;
}

.cart-items {
    padding: 0;
    overflow-y: visible;
    min-height: auto;
    max-height: none;
}

@media (min-width: 1200px) {
    .container {
        max-width: 85vw;
    }
}

#address-mode-toggle {
    padding: 3px 0px;
    height: fit-content;
}

.lowe-bottom {
    height: -webkit-fill-available;
    width: -webkit-fill-available;
    display: flex;
}
.customer-info {
    height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.one-cikan-btn {
    cursor: pointer;
    padding: 1vh;
}

.one-cikan-btn:hover {
    background: #007bff1a;
    border-radius: 10px 10px 0px 0px;
}

@media (min-width: 801px) {
    .cart-footer {
        display: flex !important;
    }
    .cart-items-container-0 {
        display: flex !important;
    }
    .cart-total-container {
        display: none !important;
    }
    .suggested-items {
        margin-right: 10px;
    }
}


@media (max-width: 800px) {
    #second-close-clear {
        display: flex !important;
    }
    .w-30 {
        width: 30% !important;
    }
    .w-40 {
        width: 40% !important;
    }
    .close-clear {
        /* position: fixed !important; */
        width: -webkit-fill-available !important;
        right: 3px;
        top: 0px;
        margin-bottom: 1vh;
        margin-right: 10px;
        margin-left: 10px;
        z-index: 10000 !important;
    }
    #clear-cart, #close-cart {
        width: fit-content !important;
        padding: 7px 9px !important;
    }

    .customer-info-container {
        display: contents !important;
        height: -webkit-fill-available !important;
    }

    
    .cart-container {
        padding-top: 2vh !important;
        margin: 0px !important;
        max-height: 100vh !important;
    }
    .cart-footer {
        display: none ;
        width: 100% !important;
        justify-content: space-between !important;
    }

    .payment-btn {
        /* font-size: 12px !important; */
        padding: 0px 7px !important;
        /* width: fit-content !important; */
        /* gap: 7px !important; */ 
    }
    .final-line {
        font-size: 14px !important;
    }
    .total-line {
        font-size: 2vh !important;
    }
    .send-order-btn {
        min-height: unset !important;
        margin: 0px !important;
    }

    
    .header-title {
        padding-top: 0px !important;
    }

    .enhanced-button-group {
        flex-direction: row !important;
    }

    .cart-items-container-0 {
        /* display: none !important; */
    }
    .cart-items-container-0 {
        width: 100%;
    }
    .cart-items-container-2 {
        height: 100%;
    }

    /* Column width distribution */
    .cart-items-table th:nth-child(1),
    .cart-items-table td:nth-child(1) {
        width: 50% !important; /* Product column gets most space */
    }

    .cart-items-table th:nth-child(2),
    .cart-items-table td:nth-child(2) {
        width: 15% !important; /* Quantity column */
        text-align: center;
    }

    .cart-items-table th:nth-child(3),
    .cart-items-table td:nth-child(3) {
        width: 12% !important; /* Total column */
        text-align: center;
    }

    .cart-items-table th:nth-child(4),
    .cart-items-table td:nth-child(4) {
        width: 10% !important; /* Remove button column */
        text-align: center;
    }

    .cart-table-title {
        width: -webkit-fill-available !important;
        font-size: 15px;
        margin: 0px 0px 6px 5px;
    }
    .cart-table-title::after {
        width: 60px;
        height: 3px;
        margin-top: 3px;
    }

    .cart-items-header, .cart-items-cell {
        /* padding: 9px 0px !important; */
        font-size: 10px !important;
    }
    
    .cart-items-header {
        padding-bottom: 1vh !important;
    }

    .cart-quantity-display {
        font-size: 10px;
        padding: 0px 5px !important;
        width: 100% !important;
    }
    .plus {
        border-radius: 0px 0px 14px 14px !important;
    }
    .minus {
        border-radius: 14px 14px 0px 0px !important;
    }

    .cart-quantity-controls {
        gap: 3px !important;
        flex-direction: column !important;
        width: fit-content !important;
        width: 100% !important;
    }

    .cart-product-name {
        font-size: 10px;
    }
    .cart-product-variant {
        font-size: 12px;
        gap: 3px !important;
    }

    .cart-quantity-display {
        font-size: 10px;
        padding: 0px 5px;
        min-width: fit-content !important;
        border-radius: 3px;
    }

    .suggested-items {
        margin-top: 10px;
        padding: 5px 7px !important;
        width: 100% !important;
        flex-direction: column !important;
    }

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


    .suggested-item {
        flex-direction: column;
        gap: 0px;
        min-width: fit-content;
        padding: 5px 10px;
    }
    /* .cart-product-image {
        width: 8vh;
        height: 6vh;
    } */
    .suggested-item-info {
        display: flex;
        flex-direction: column;
        gap: 0px;
        max-width: -webkit-fill-available;
    }

    .suggested-item-info h4 {
        font-size: 10px;
        margin: 0px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        width: 100%;
    }
    .suggested-item-info p {
        font-size: 10px;
    }

    .suggested-items::after {
        display: none;
    }

    .cart-footer-container1, .cart-footer-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 1vh !important;
    }

    .cart-total-container1 {
        width: 50% !important;
        gap: 3vw !important;
        padding: 1vh !important;
        font-size: 2vh !important;
        font-weight: 600 !important;
        border-radius: 10px !important;
        background: #b5b5b521 !important;
    }

    .cart-total-container {
        width: 100% !important;
        padding: 1vh !important;
        gap: 2vw !important;
        font-size: 12px !important;
        /* border-radius: 10px !important; */
        border-top: 1px solid rgba(128, 128, 128, 0.733) !important;
        /* background: #007bff7d !important; */
    }

    .next-btn {
        width: 40% !important;
        flex-wrap: nowrap !important;
        padding: 1.5vh 2vw !important;
        font-size: 2.5vh !important;
        border-radius: 15px !important;
        /* background: #007bff7d !important; */
        background: transparent !important;
        border: 2px solid #007bff !important;
        color: #007bff96 !important;
    }

    .coupon-message {
        font-size: 10px !important;
    }
}

.header-title {
    background: none !important;
}

/* Cart Items Table - Responsive Layout to prevent horizontal scrolling */
.cart-items-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 14px;
}

/* Column width distribution */
.cart-items-table th:nth-child(1),
.cart-items-table td:nth-child(1) {
    width: 50%; /* Product column gets most space */
}

.cart-items-table th:nth-child(2),
.cart-items-table td:nth-child(2) {
    width: 20%; /* Quantity column */
    text-align: center;
}

.cart-items-table th:nth-child(3),
.cart-items-table td:nth-child(3) {
    width: 20%; /* Total column */
    text-align: center;
}

.cart-items-table th:nth-child(4),
.cart-items-table td:nth-child(4) {
    width: 10%; /* Remove button column */
    text-align: center;
}

/* Header and cell styling */
.cart-items-header {
    padding: 8px 4px;
    font-weight: 600;
    font-size: 12px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.cart-items-cell {
    padding: 8px 4px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

/* Product details layout */
.cart-product-details {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-product-image {
    width: 12vh;
    height: 8vh;
    object-fit: cover;
    border-radius: 1.5vh;
    flex-shrink: 0;
}

.cart-product-info {
    flex: 1;
    min-width: 0; /* Allow text to wrap/truncate */
}

.cart-product-name {
    font-size: 2vh;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-product-variant {
    font-size: 1.5vh;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cart-variant-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #007bff;
    flex-shrink: 0;
}

/* Quantity controls */
.cart-quantity-controls {
    display: flex;
    /* align-items: center;
    justify-content: center;
    gap: 4px; */
    width: fit-content !important;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
}





.back-btn-container {
    width: 70% !important;
}

.back-btn {
    border: none !important;
    border-radius: 0px !important;
    background: none !important;
    box-shadow: none !important;
    transform: translateY(0px) !important;
}
.back-btn:hover {
    background: none !important;
    border: none !important;
    border-radius: 0px !important;
    box-shadow: none !important;
    transform: translateY(-2px) !important;
}


.form-group {
    margin-bottom: 2vh ;
}


/* Mobile responsiveness */
@media (max-width: 480px) {
    .cart-items-table {
        font-size: 12px;
    }
    
    .cart-items-cell {
        padding: 6px 2px;
    }
    
    .cart-product-image {
        width: 32px;
        height: 32px;
    }
    
    .cart-product-name {
        font-size: 11px;
    }
    
    .cart-product-variant {
        font-size: 9px;
    }
    
    .cart-quantity-btn {
        height: 20px;
        font-size: 12px;
        box-shadow: none !important;
    }
    
    .cart-quantity-display {
        font-size: 11px;
    }
    
    .cart-total-cell {
        font-size: 11px;
    }
    
    .cart-remove-btn {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
}


/* Premium Modern Card Design - Suggested Items */
.suggested-item {
  position: relative;
  width: 16vh;
  height: 12vh;
  border-radius: 20px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0 1vh;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.suggested-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.02) 40%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 1;
}

.suggested-item-info {
  position: absolute;
  width: -webkit-fill-available;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 16px 14px 14px 14px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.8) 100%
  );
  border-radius: 0px 0px 15px 15px;
  /* backdrop-filter: blur(1px); */
  -webkit-backdrop-filter: blur(8px);
}

.suggested-item-info h4 {
  max-width: -webkit-fill-available;
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.suggested-item-info p {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #00d4ff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.02em;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.suggested-item:hover {
  /* transform: translateY(-8px) scale(1.05); */
  z-index: 100000 !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.suggested-item:hover::before {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.1) 40%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

.suggested-item:hover .suggested-item-info p {
  color: #ffffff;
}

.suggested-item.cart-success {
  animation: premiumCartSuccess 1s ease-out;
}

@keyframes premiumCartSuccess {
  0% { 
    transform: scale(1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  }
  50% { 
    transform: scale(1.08);
    box-shadow: 0 8px 30px rgba(40, 167, 69, 0.3);
  }
  100% { 
    transform: scale(1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .suggested-item {
    width: 120px;
    height: 90px;
    margin: 0 8px;
  }
  
  .suggested-item-info {
    padding: 12px 10px 10px 10px;
  }
  
  .suggested-item-info h4 {
    font-size: 12px;
  }
  
  .suggested-item-info p {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .suggested-item {
    width: 100px;
    height: 80px;
    margin: 0 6px;
  }
  
  .suggested-item-info {
    padding: 10px 8px 8px 8px;
  }
  
  .suggested-item-info h4 {
    font-size: 11px;
  }
  
  .suggested-item-info p {
    font-size: 10px;
  }
}

#suggested-item-goto {
    position: absolute;
    right: 4%;
    top: 4%;
    font-size: 2vh;
    padding: 0.5vh;
    color: #E3F2FD ;
    cursor: pointer;
    z-index: 100000;
    /* glass like effect */
    background: rgba(255, 255, 255, 0.1);  /* Yarı saydam beyaz */
    backdrop-filter: blur(10px);           /* Arka planı bulanıklaştırır */
    -webkit-backdrop-filter: blur(10px);   /* Safari için */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
#suggested-item-goto:hover {
    /* color: #0056b3; */
    transform: scale(1.1);
}