/* custom header css */
@media (min-width: 768px) {
    .col-md-6:has(.header_right) {
        width: 70%;
    }
    .col-md-6:has(.header_left) {
        width: 30%;
    }
}




@media (min-width: 993px) {
    .banner_text h1 {
        line-height: 60px;
        font-size:56px;
    }
    .banner_text p {
        font-size: 20px;
    }
}

/* hiding LandingHeroImgDiv on small screens */
/* @media (max-width: 993px) {
    .LandingHeroImgDiv {
        display: none;
    }
} */

/* following is the css conflicting with the resource/css/app.css */
.collapse {
    visibility: visible;
}


/* custom cart css */
.mini_cart {
    /* Your existing styles */
}

.cart-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    position: relative;
}

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

.cart-item-content {
    display: flex;
    gap: 0px;
    align-items: flex-start;
}

.cart_img {
    width: 80px;
    height: 80px;
    position: relative;
}

/* This wrapper handles the circular crop */
.img_clip {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 50%;
}

/* .cart_img img {
    border-radius: 8px;
} */
.bounce {
    animation: bounce 0.5s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 60%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    80% {
        transform: translateY(-4px);
    }
}

.del_icon {
    position: absolute;
    top: -8px;
    right: -8px;

    background: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    color: #dc3545;
    font-size: 12px;

    z-index: 10;
}

.cart_text {
    flex: 1;
}

.cart_title {
    font-weight: 600;
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

.cart_title:hover {
    color: #007bff;
}

.quantity-controls {
    margin: 8px 0;
}

.quantity-controls .input-group {
    width: 120px;
}

.quantity-controls .form-control {
    border-left: none;
    border-right: none;
}

.quantity-controls .btn {
    padding: 0.25rem 0.5rem;
}

.item-total {
    font-weight: 600;
    color: #28a745;
}

.cart-summary {
    border-top: 2px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
}

.cart-options .form-check {
    margin-bottom: 8px;
}

.common_btn.secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.common_btn.secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.empty-cart {
    display: none;
}

/* Show empty cart when no items */
.cart-items:empty + .cart-summary,
.cart-items:empty ~ .empty-cart {
    display: block;
}

.cart-items:not(:empty) + .cart-summary {
    display: block;
}

.cart-items:not(:empty) ~ .empty-cart {
    display: none;
}

/* // Loader styles */
.modal-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 9999;
}

.loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
}

.loader-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Optional: Add fade-in animation for content */
.cart_popup_text,
.cart_popup_img {
    transition: opacity 0.3s ease;
}

.modal-content.loading .cart_popup_text,
.modal-content.loading .cart_popup_img {
    opacity: 0.5;
}

.modal-content{
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
}


/* To make turbo transitions even smoother */
.turbo-frame {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.turbo-frame--visible {
    opacity: 1;
}



/* category slider on menu page */
.category-slider {
    overflow-x: auto;          /* enables horizontal scrolling */
    -webkit-overflow-scrolling: touch; /* smooth scroll on mobile */
}

.category-slider ul {
    display: flex;             /* puts list items in a row */
    gap: 12px;                 /* space between items */
    padding: 0;
    margin: 0;
    list-style: none;
    white-space: nowrap;       /* prevents wrapping */
}

.category-slider li {
    flex: 0 0 auto;            /* prevents items from shrinking */
}

.category-slider a {
    display: block;
    padding: 8px 16px;
    border-radius: 20px;
    background: #f3f3f3;
    text-decoration: none;
    color: #333;
}

.category-slider a.active {
    background: #000;
    color: #fff;
}

/* .category-slider::-webkit-scrollbar {
    display: none;
}
.category-slider {
    scrollbar-width: none;
}

.category-slider ul {
    scroll-snap-type: x mandatory;
}

.category-slider li {
    scroll-snap-align: start;
} */

/* WebKit browsers: Chrome, Edge, Safari */
.category-slider::-webkit-scrollbar {
    height: 4px; /* thinner = sleeker */
}

.category-slider::-webkit-scrollbar-track {
    background: transparent; /* no visible track */
}

.category-slider::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.25); /* soft, semi-transparent */
    border-radius: 999px;          /* fully pill-shaped */
    transition: background 0.2s ease;
}

.category-slider::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.45);
}

/* Firefox */
.category-slider {
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.35) transparent;
}

.category-slider::-webkit-scrollbar-thumb {
    opacity: 0;
}

.category-slider:hover::-webkit-scrollbar-thumb,
.category-slider.dragging::-webkit-scrollbar-thumb {
    opacity: 1;
}



/*cart style */
/* Update the existing selector to make it rectangular */
.main_menu .menu_right li .menu_search, 
.menu_cart {
    border: 1px solid #D8D7DB;
    width: auto; /* Changed from 45px to auto */
    min-width: 120px; /* Added min-width for rectangular shape */
    height: 45px;
    line-height: 43px;
    text-align: center;
    border-radius: 8px; /* Changed from 50% to 8px for rectangular corners */
    color: var(--colorBlack);
    position: relative;
    margin-right: 10px;
    cursor: pointer;
    transition: all linear .3s;
    -webkit-transition: all linear .3s;
    -moz-transition: all linear .3s;
    -ms-transition: all linear .3s;
    -o-transition: all linear .3s;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
    padding: 0 15px; /* Added padding for content spacing */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Space between icon and text */
}

/* Specific styling for cart only */
.menu_cart {
    background-color: #f8f9fa; /* Light background for cart */
}

/* Hover effect */
.menu_cart:hover {
    background-color: #e9ecef;
    border-color: var(--colorBlack);
}

/* Style for the cart icon */
.menu_cart i {
    font-size: 18px;
}

/* Style for quantity badge */
.menu_cart .qnty {
    display: inline-block !important; /* Force display */
    background-color: #dc3545; /* Red badge color */
    color: white;
    font-size: 12px;
    font-weight: bold;
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    border-radius: 10px;
    position: absolute;
    top: -8px;
    right: -8px;
    padding: 0 5px;
}

/* Style for total price */
.menu_cart .cart-total {
    display: inline-block !important; /* Force display */
    font-size: 14px;
    font-weight: 600;
    color: var(--colorBlack);
}

.main_menu .menu_right li .menu_order {
    margin-left: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .menu_cart {
        min-width: auto;
        padding: 0 10px;
    }
    
    .menu_cart .cart-total {
        display: none !important; /* Hide total on mobile */
    }
    
    .menu_cart i {
        margin-right: 0;
    }
}

.cart_popup_text .price, .cart_popup_text .price *, .quentity_btn_area h3,.quentity_btn_area h3 *{
    color: var(--colorPrimary);
    font-family: var(--headingFont);
    font-size: 20px;
    font-weight: 600;
    line-height: normal;
    text-transform: capitalize;
    align-items: center;
    margin-left: 0;
}

li.page-item.active > span{
    background-color: var(--colorPrimary);
}

/* #popupProductName {
    display: inline;
} */

/* product card css */
div.single_menu_text > div{
    justify-content: space-between;
}