/* :root {
    --accent-color: #165633;
    --accent-contrast-text: #fff;
    --primary-text: #165633;
    --secondary-text: #666;
    --accent-contrast-text: #ffffff;

    --bg-color: #f8fafb;
    --card-bg: #ffffff;
    --container-bg: #ffffff;
    --light-gray-bg: #f9f9f9;

    --border-color: #e8e8e8;
    --icon-color: #34495e;
    --danger-color: #dc3545;

    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.12);
    --shadow-heavy: rgba(0, 0, 0, 0.15);
} */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--primary-text);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

.pfm-container {
    margin-block: 4rem 0rem;
    padding: 0rem 6rem !important;
    padding-top: 1rem !important;
}


#pfmi-sub-addon-popup .pfmi-popup-content,
#pfmi-sub-addon-popup .pfmi-popup-header h3,
#pfmi-sub-addon-popup .pfmi-popup-body .pfmi-sub-addon-group h4,
#pfmi-sub-addon-popup .pfmi-popup-body .pfmi-sub-addon-item label {
    color: #2c3e50;
}

#pfmi-sub-addon-popup .pfmi-popup-header #pfmi-popup-item-name,
#pfmi-sub-addon-popup .pfmi-popup-footer .pfmi-popup-sub-total,
#pfmi-sub-addon-popup .pfmi-popup-body .pfmi-loading-text,
#pfmi-sub-addon-popup .pfmi-popup-body .pfmi-info-text {
    color: #5a6c7d;
}

#pfmi-sub-addon-popup .pfmi-popup-body .pfmi-error-text {
    color: #dc3545;
}

#pfmi-sub-addon-popup .pfmi-popup-close-btn {
    color: #5a6c7d;
}

.back-button {
    display: none;
    align-items: center;
    gap: 0.75rem;
    font-size: 16px;
    font-weight: 500;
    color: var(--secondary-text);
    cursor: pointer;
    transition: color 0.3s ease;
}

.back-button:hover {
    color: var(--accent-color);
}

.back-button i {
    font-size: 18px;
}

.restaurant-header {
    overflow: hidden;
}

.header-content {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    padding: 2rem 0;
}

button.delete_btn:hover {
    background: transparent;
}

button.delete_btn:focus {
    background: transparent;
}

.restaurant-image img {
    object-fit: cover;
    width: 400px;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow-light);
}

.restaurant-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.title-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.restaurant-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-text);
}

.delivery-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    black-space: nowrap;
    background: var(--light-gray-bg);
    color: var(--primary-text);
    width: max-content;
}

.delivery-info i {
    font-size: 18px;
    color: var(--dark-accent-color);
}

.cuisine-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    color: #2d5016;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    background: var(--light-gray-bg);
    padding: 0.2rem 0.8rem;
}

.location-info {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--secondary-text);
    font-size: 15px;
    line-height: 1.5;
}

.location-info i {
    color: var(--icon-color);
    margin-top: 0.2rem;
    font-size: 16px;
}

.hours-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-badge {
    background: var(--accent-color);
    color: black;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.hours-text {
    color: var(--secondary-text);
    font-size: 14px;
}

.rating-section {
    display: flex;
    align-items: center;
    border-radius: 12px;
}

.rating-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-color);
    color: black;
    padding: 0.6rem 1rem;
    border-radius: 25px;
    font-weight: 600;
}

.rating-badge i {
    font-size: 16px;
}

.rating-details {
    color: var(--secondary-text);
    font-size: 14px;
}

.rating-text {
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 0.2rem;
}

.menu_scroll {
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: var(--container-bg);
    position: sticky;
    top: 0;
    transition: background-color 0.3s;
}

.scroll-container {
    overflow-x:scroll ;
    position: relative;
    padding: 1rem 6rem;
}

.menu_list {
    display: flex;
    gap: 3rem;

    list-style-type: none;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.menu_list::-webkit-scrollbar {
    display: none;
}

.list_item {
    color: #6b7284;
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 900;
    border-radius: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.list_item:hover,
.list_item.active {
    color: var(--primary-text);
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--container-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px var(--shadow-light);
    transition: all 0.3s ease;
    color: var(--primary-text);
}

.scroll-btn:hover {
    background: var(--accent-color);
    color: var(--accent-contrast-text);
    border-color: var(--accent-color);
}

#confirmScheduleBtn {
    color: var(--accent-contrast-text) !important;
}

.scroll-btn-left {
    left: 1rem;
}

.scroll-btn-right {
    right: 1rem;
}

.scroll-btn i {
    font-size: 14px;
}

.menu_menu {
    display: grid;
/* background-color: #f8f9fa; */
background-color: #ffffff;
    gap: 2rem;
    padding: 1rem 4rem;
    min-height: 80vh;
}

.left_side_menu {
    display: flex;
    flex-direction: column;
    gap: 2rem;

    border-radius: 16px;
    padding: 0rem 2rem;
    transition: background-color 0.3s;
}

.cart_item_main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.category_block {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 1. This is your main rule: ALL titles get 1rem of top padding */
.car_item_title {
    display: block;
    /* display: none; */
    text-transform: capitalize;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-text);
    border-bottom: 3px solid var(--accent-color);
    width: max-content;
    padding-top: 1rem;
    color: #382318;
}

.category_block:first-child .car_item_title {
    padding-top: 0rem;
}

.card_container {
    display: grid;
    /* Reduced min-width from 380px to 180px to allow 6 items to fit */
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 1rem;
    /* Reduced gap to save space */
}

/* Optional: Strictly force 6 columns on large screens */
@media (min-width: 1400px) {
    .card_container {
        grid-template-columns: repeat(3, 1fr);
        padding: 40px;
    }
}


.card {
    position: relative;
    cursor: pointer;
    box-shadow: rgba(109, 114, 120, 0.25) 0px 2px 4px, rgb(202, 204, 204) 0px 0px 0px 1px;
    border: none !important;
    border-radius: 10px !important;
    overflow: visible;
    background: transparent;
    transition: all 0.3s ease !important;
    min-height: 0;
}

.item-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--accent-color);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}


.card_img {
    width: 100%;
    height: 500px;
    /* Reduced from 400px->350px->increase to 500px */
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 4px 12px var(--shadow-light);
}

.card_img img {

    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card_img img {
    transform: scale(1.05);
}

.card_info {
    padding: 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    /* gap: 0.5rem; */
}

/* .menu_title {
    text-transform: capitalize;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-text);
    line-height: 1.4;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
} */

/* 1. Force the title to wrap */
.menu_title {
    white-space: normal !important;
    /* Allow text to wrap to next line */
    overflow: visible !important;
    /* Show all content */
    text-overflow: clip !important;
    /* Remove ellipsis (...) */
    height: auto !important;
    /* Allow height to expand */
    line-height: 1.2;
    /* Good spacing for multi-line titles */
    word-wrap: break-word;
    /* Break very long words if needed */
    /* margin-bottom: 5px; */
    font-weight: 600;

}

/* 2. Ensure the text container allows growth */
.card-text-group {
    height: auto !important;
    display: flex;
    flex-direction: column;
}

/* 3. (Previous Step) Tooltip Styles */
.ky-info-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-left: 5px;
    color: var(--accent-color, #000);
    cursor: pointer;
    vertical-align: middle;
}

.ky-tooltip-content {
    visibility: hidden;
    width: 220px;
    min-width: 220px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 9999;
    /* High z-index */
    bottom: 135%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    line-height: 1.4;
    font-weight: normal;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    white-space: normal;
}

.ky-tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.ky-info-icon-wrapper:hover .ky-tooltip-content {
    visibility: visible;
    opacity: 1;
}

/* Important: Allow card content to flow */
.card_info,
.menu_discription {
    overflow: visible !important;
}

.menu_discription {
    font-size: 13px;
    color: var(--primary-text);
    line-height: 1.5;
    position: relative;
    cursor: pointer;

    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
}

.menu_price_allergen_wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.cart_item_discription_popup {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 8px 0;
}

.dietary-info-display.popup-version {
    display: none;
    flex-wrap: wrap;
    gap: 12px;
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.dietary-info-display.popup-version .dietary-info-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dietary-info-display.popup-version .dietary-label {
    font-weight: 600;
    color: #555;
    font-size: 13px;
}

.dietary-info-display.popup-version .dietary-value {
    color: #ff6b35;
    font-weight: 600;
    font-size: 13px;
}

.cart_item_title_price_popup {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.art_item_price_popup {
    font-size: 20px;
    font-weight: 700;
    color: #ff6b35;
    margin-top: 8px;
}





.menu_discription.expanded {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.menu_discription .toggle-desc {
    color: var(--primary-text);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.menu_price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-color);
}

.menu_btn {
    width: 100% !important;
    background: linear-gradient(85deg, var(--accent-color), var(--dark-accent-color)) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0.75rem !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--accent-contrast-text) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.menu_btn:hover {
    background: linear-gradient(85deg, var(--accent-color), var(--dark-accent-color)) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px var(--light-gray-bg) !important;
}

.customize {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    display: flex;
    justify-content: center;
    font-size: 12px;
    color: var(--primary-text);
    cursor: pointer;
    text-decoration: underline;
}

.allergen {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.icon img {
    width: 20px;
    height: 20px;
}

.right_side_menu {
    display: none;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.cart_title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-text);
    margin-bottom: 1rem;
}

.cart_container {
    background: var(--container-bg);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px var(--shadow-light);
    border: 1px solid var(--border-color);
    max-height: 600px;
    overflow-y: auto;
    transition: background-color 0.3s;
}

.cart_items {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cart_items:last-child {
    border-bottom: none;
}

.cart_details {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.cart_item_img {
    border-radius: 8px;
    overflow: hidden;
}

.cart_item_img img {
    width: 70px;
    height: 70px;
    object-fit: cover;
}

.cart_item_title_price {
    flex: 1;
}

.cart_item_title {
    text-transform: capitalize;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 0.25rem;
}

.addon_summary {
    font-size: 12px;
    color: var(--secondary-text);
    margin-bottom: 0.25rem;
    font-style: italic;
}

.art_item_price {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-color);
}

.cart_quantity {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quantity {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.minus_btn,
.plus_btn,
button.addon-minus,
button.addon-plus {
    color: var(--accent-contrast-text) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    border: none !important;
    border-radius: 8px !important;
    background: var(--accent-color) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.minus_btn:hover,
.plus_btn:hover,
button.addon-minus:hover,
button.addon-plus:hover {
    background: var(--dark-accent-color);
    transform: scale(1.1);
}

.minus_btn i,
.plus_btn i {
    color: black;
    font-size: 12px;
}

.quantity p {
    font-weight: 600;
    font-size: 16px;
    min-width: 20px;
    text-align: center;
}

.cart_summary {
    padding-top: 1rem;
    /* border: 2px solid #eee; */
}

.summary_row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 14px;
    color: var(--secondary-text);
}

.summary_row.total {
    font-weight: 700;
    font-size: 16px;
    color: var(--primary-text);
    padding-top: 0.5rem;
    margin-top: 1rem;
}


.empty_cart {
    text-align: center;
    padding: 2rem;
    color: var(--primary-text);
}

.empty_cart i {
    font-size: 48px;
    color: var(--primary-text);
    margin-bottom: 1rem;
}

#itemPopup {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.popup-content {
    background-color: var(--container-bg);
    padding: 0;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px var(--shadow-heavy);
    position: relative;
    transition: background-color 0.3s;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    background: var(--container-bg);
    border-radius: 16px 16px 0 0;
    position: sticky;
    top: 0;
    z-index: 1001;
}

.popup-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-text);
}

.close-btn {
    background: none !important;
    border: none !important;
    font-size: 1.5rem !important;
    cursor: pointer !important;
    color: var(--primary-text) !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
}

.close-btn:hover {
    color: var(--accent-color) !important;
    background: var(--light-gray-bg) !important;
}

.cart_items_popup {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.cart_details_popup {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.cart_item_img_popup img {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px var(--shadow-light);
}

.cart_item_title_price_popup {
    flex: 1;
}

.cart_item_title_popup {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-text);
    margin-bottom: 0.5rem;
}

.cart_item_discription_popup {
    font-size: 14px;
    color: var(--secondary-text);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.art_item_price_popup {
    display: none;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-color);
}

#addonsContainer {
    max-height: 300px;
    overflow-y: auto;
    padding: 0 2rem;
}

.item_customise {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.item_customise:last-of-type {
    border-bottom: none;
}

.item_customise:hover {
    background-color: rgba(154, 205, 50, 0.02);
}

.meals_item_toggle {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    background-color: transparent !important;
    border: none !important;
    padding: 1rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    border-radius: 12px !important;
}

.meals_item_toggle:hover {
    background-color: var(--light-gray-bg) !important;
}

.meal_name {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex: 1;
}

.meal_name h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 0.25rem;
}

.meal_name .subtitle {
    font-size: 12px;
    color: var(--primary-text);
    font-weight: 400;
}

.meal_dropdown_btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.meal_dropdown_btn p {
    font-weight: 500;
    color: var(--primary-text);
    font-size: 14px;
}

.meal_dropdown_btn .arrow {
    font-size: 16px;
    color: var(--primary-text);
    transition: transform 0.2s ease;
}

.meals_item_toggle[aria-expanded="true"] .meal_dropdown_btn .arrow {
    transform: rotate(180deg);
}

.dropdown_menu {
    display: none;
    animation: slideDown 0.2s ease;
}

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

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

.dropdown_list {
    list-style: none;
    margin: 0;
    background: var(--light-gray-bg);
    border-radius: 12px;
    padding: 1rem;
}

.dropdown_item {
    display: flex;
    padding: 0rem 0;
    justify-content: space-between;
    border-bottom: 1px solid var(--light-gray-bg);
}

.dropdown_item:last-child {
    border-bottom: none;
}

.dropdown_item.disabled {
    opacity: 0.5;
}

.dropdown_item label {
    display: flex;
    align-items: center;
    width: 75%;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s ease;
    color: var(--primary-text);
    padding: 0.5rem;
    border-radius: 8px;
}

.dropdown_item label:hover:not(.disabled) {
    color: var(--primary-text);
    background: var(--light-gray-bg);
}

.dropdown_item input[type="radio"],
.dropdown_item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
}

li.dropdown_item>label {
    display: flex;
    gap: .5rem;
}

.dropdown_item input:disabled {
    cursor: not-allowed;
}

.popup-quantity-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: var(--light-gray-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.popup-quantity-section .quantity {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.popup-quantity-section .minus_btn,
.popup-quantity-section .plus_btn,
button.addon-minus,
button.addon-plus {
    width: 40px;
    height: 40px;
    font-size: 14px;
}

.popup-quantity-section p {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-text);
    min-width: 30px;
}

.popup-total-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-color);
}

.add-to-cart-popup-btn {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    background: linear-gradient(135deg, var(--accent-color), var(--dark-accent-color)) !important;
    border: none !important;
    border-radius: 0 0 16px 16px !important;
    padding: 1.5rem !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--accent-contrast-text) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    gap: 0.75rem !important;
    position: sticky !important;
    bottom: 0 !important;
    z-index: 1001 !important;
}

.add-to-cart-popup-btn:hover {
    background: linear-gradient(135deg, var(--dark-accent-color), #689F38);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--light-gray-bg);
}

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

.toast {
    position: fixed;
    top: 70px;
    right: 10px;

    /* --- FIXED COLORS (Not matching theme) --- */
    background: #ffffff !important;
    /* Constant White Background */
    color: #333333 !important;
    /* Constant Dark Grey Text */
    border: 1px solid #e0e0e0 !important;
    /* Subtle gray border all around */
    border-left: 5px solid #333333 !important;
    /* Thick dark border on left for style */

    /* --- Layout & Shadow --- */
    padding: 1rem 1.5rem;
    border-radius: 8px;
    /* Slightly sharper radius looks better with borders */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    /* Stronger shadow to pop out */
    z-index: 10001;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    /* Bouncy animation */
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
}

/* Override the .show state so it STAYS white */
.toast.show {
    transform: translateX(0);
    background: #ffffff !important;
    /* Keep it white when showing */
    color: #333333 !important;
    /* Keep text dark */
}

.cart-success-toast {
    position: fixed;
    top: 70px;
    right: 10px;

    /* --- FIXED COLORS (Not matching theme) --- */
    background: #ffffff !important;
    /* Constant White Background */
    color: #333333 !important;
    /* Constant Dark Grey Text */
    border: 1px solid #e0e0e0 !important;
    /* Subtle gray border all around */
    border-left: 5px solid green !important;
    /* Thick dark border on left for style */

    /* --- Layout & Shadow --- */
    padding: 1rem 1.5rem;
    border-radius: 8px;
    /* Slightly sharper radius looks better with borders */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    /* Stronger shadow to pop out */
    z-index: 10001;
    transform: translateX(calc(100% + 40px));
    animation: 
    slideIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards, 
    fadeOut 0.8s ease forwards 2.5s;
    opacity: 0;
    /* Bouncy animation */
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.cart-success-toast.show {
    transform: translateX(0);
    background: #ffffff !important;
    color: green !important;
    opacity: 1;
} 
@keyframes slideIn {
    from {
        transform: translateX(calc(100% + 40px));
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Smooth Exit */
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.coupon {
    display: flex !important;
    gap: 10px !important;
    padding: 1rem 0 !important;
    align-items: center !important;
}

.coupon input[type="text"] {
    width: 100% !important;
    padding: 0.7rem 1rem !important;
    border: 1px solid var(--border-color) !important;
    background-color: var(--card-bg) !important;
    border-radius: 8px !important;
    color: var(--primary-text) !important;
    transition: border-color 0.3s ease !important;
}

.coupon input[type="text"]:focus {
    outline: none !important;
    border-color: var(--accent-color) !important;
}

.coupon-apply {
    background-color: var(--accent-color) !important;
    color: var(--accent-contrast-text) !important;
    padding: 0.75rem 1.5rem !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
    black-space: nowrap !important;
}

.coupon-apply:hover {
    background-color: var(--dark-accent-color) !important;
}

/* @media (max-width: 1200px) {
    .menu_menu {
        grid-template-columns: 1fr 350px;
    }
} */



h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0 !important;
}

.close-btn:focus,
.meals_item_toggle:focus,
.dropdown_item input:focus {
    outline: 2px solid var(--accent-color) !important;
    outline-offset: 2px !important;
}

.addon-quantity-control {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.dropdown_item label:focus-within {
    background: var(--light-gray-bg);
    border-radius: 8px;
}

#addonsContainer::-webkit-scrollbar,
.popup-content::-webkit-scrollbar {
    width: 6px;
}

#addonsContainer::-webkit-scrollbar-track,
.popup-content::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 3px;
}

#addonsContainer::-webkit-scrollbar-thumb,
.popup-content::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

#addonsContainer::-webkit-scrollbar-thumb:hover,
.popup-content::-webkit-scrollbar-thumb:hover {
    background: var(--dark-accent-color);
}

.arrow.rotated {
    transform: rotate(180deg);
}

.delivery-pickup-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: 1px solid #ddd;
    border-radius: 30px;
    padding: 5px 10px;
    background-color: var(--light-gray-bg);
}

.toggle-option {
    padding: 8px 50px;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #666;
}

.toggle-option.active {
    background-color: var(--accent-color);
    color: var(--accent-contrast-text);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.pickup-address-details,
.delivery-address-details {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
    transition: all 0.3s ease;
}

#addressPopup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: scroll;
}

#addressPopup .popup-content {
    background: black;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
}

#addressPopup .popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0px;

}



#addressPopup h3 {
    margin: 0;
    font-size: 1.2rem;
}

#addressPopup input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 2px;
    box-sizing: border-box;
}

#addressPopup button {
    width: 6%;
    padding: 10px;
    border: 1px solid var(--accent-color) !important;
    color: var(--primary-text);
    font-size: 1rem !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: background-color 0.3s !important;
}

#addressPopup button:hover {
    background-color: var(--accent-color) !important;
    color: var(--accent-contrast-text) !important;
}

button#closeAddressPopup {
    background: none !important;
    color: var(--primary-text) !important;
}

#closeAddressPopup {
    position: relative;
    z-index: 9999;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 24px;
    padding: 5px 10px;
}

#saveAddressBtn {
    position: relative;
    z-index: 9999;
    cursor: pointer;
    padding: 10px 20px;
    background: #007cba;
    color: black;
    border: none;
    border-radius: 4px;
}

#addressPopup {
    z-index: 10000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

#addressPopup .popup-content {
    position: relative;
    background: black;
    margin: 50px auto;
    max-width: 500px;
    border-radius: 8px;
    padding: 20px;
}

.address-popup-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

.address-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

input#deliveryAddressInput {
    margin-bottom: 10px !important;
}

.address-popup-body {
    padding: 15px 0;
}

#addressPopup>.address-popup-content>.address-popup-body {
    overflow-y: scroll !important;
    height: 500px !important;
}

#savedAddressesPopup>.address-popup-content>.address-popup-body {
    overflow-y: scroll !important;
    height: 350px !important;
}

.address-close-btn {
    background: none !important;
    border: none !important;
    font-size: 24px !important;
    cursor: pointer !important;
    color: #666 !important;
    padding: 5px 10px !important;
    border-radius: 4px !important;
    transition: background 0.3s !important;
}

.address-close-btn:hover {
    background: #f0f0f0 !important;
    color: #333 !important;
}

.address-save-btn {
    width: 100% !important;
    padding: 12px !important;
    border: none !important;
    background-color: var(--accent-color) !important;
    color: var(--dark-accent-color) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    margin-top: 15px !important;
    transition: background-color 0.3s !important;
}

.address-save-btn:hover {
    background-color: var(--dark-accent-color) !important;
}

gmp-place-autocomplete {
    background: var(--accent-contrast-text);
    margin-bottom: 2rem;
}


#orderTypeChangePopup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

#orderTypeChangePopup .popup-content {
    background-color: var(--accent-contrast-text);
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.popup-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.popup-actions button {
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.popup-actions .primary-btn {
    background-color: var(--accent-color);
    color: var(--accent-contrast-text);
    border: none;
}

.popup-actions .secondary-btn {
    background-color: #f0f0f0;
    color: var(--primary-text);
    border: 1px solid #ccc;
}

.popup-actions .primary-btn:hover {
    background-color: var(--accent-color);
    color: var(--accent-contrast-text) !important;
}

.popup-actions .secondary-btn:hover {
    background-color: #e0e0e0;
}

.address-details-form {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;

}

.address-details-form input {
    width: 100% !important;
    padding: 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    font-size: 14px !important;
}

.address-details-form input::placeholder {
    color: #999;
}


.address-type-selector {
    display: flex;
    gap: 10px;
    margin-block: 10px;
}

.address-type-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: var(--accent-contrast-text);
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--primary-text);
}

.address-type-btn:hover {
    background-color: #f5f5f5;
    border-color: #999;
}

.address-type-btn.active {
    background-color: var(--accent-color);
    color: var(--accent-contrast-text) !important;
    border-color: var(--accent-color);
}

.address-type-btn i {
    font-size: 16px;
}

.title-resto {
    display: flex;
    gap: 1rem;
}

.meta-info {
    display: flex;
    align-items: center;
}

#restaurantDescription>a {
    color: var(--primary-text);
}

img.addon-image {
    height: 50px !important;
    border-radius: 10px;
}

#savedAddressesPopup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    overflow: auto;
}

#savedAddressesPopup .address-popup-content {
    background: var(--accent-contrast-text);
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

.address-add-new-row {
    margin-bottom: 12px;
}

.address-add-new-btn {
    width: 30% !important;
    border: 1px solid #ddd !important;
    background: var(--dark-accent-color);
    border-radius: 8px !important;
    padding: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: flex !important;
    gap: 8px;
    align-items: center;
    justify-content: center;
    color: var(--primary-text) !important;
}

button#addNewAddressBtn:hover,
button#addNewAddressBtn:focus {
    background: transparent;
    color: var(--primary-text);
}

.address-icon-btn {
    color: var(--primary-text) !important;
}

.address-icon-btn:hover,
.address-icon-btn:focus {
    background-color: transparent;
}

.address-current-location-row {
    margin-bottom: 16px;
}

.address-current-location-btn {
    width: 100%;
    border: 1px solid #ddd;
    background: var(--accent-contrast-text);
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    gap: 10px;
    align-items: center;
}

.saved-addresses-title {
    margin: 12px 0 8px;
    font-size: 1.1rem;
    font-weight: 700;
}

.saved-addresses-list {
    display: grid;
    gap: 12px;
}

.address-card {
    border: 1px solid #e9e9e9;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
    position: relative;
}

.address-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}

.address-card-title {
    font-weight: 700;
    color: #0f5f66;
}

.address-card-meta {
    color: #666;
    font-size: .92rem;
    line-height: 1.3;
}

.address-card-actions {
    position: absolute;
    right: 12px;
    top: 12px;
    display: flex;
    gap: 10px;
}

.address-icon-btn {
    border: none;
    background: none;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
}

.address-icon-btn:hover {
    background: #f3f3f3;
}

.address-select {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.address-select input[type="radio"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #333;
    display: inline-block;
    position: relative;
}

.address-select input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #333;
}

.address-type-icon {
    margin-right: 6px;
    color: #777;
}

#addressPopup button {
    width: auto !important;
}


.allergen-icons {
    display: flex;
    gap: 6px;
    margin: 5px 0;
    flex-wrap: wrap;
    min-height: 24px;
}

.allergen-icons span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 12px;
    border-radius: 50%;
    background-color: #f0f2f5;
    color: var(--secondary-text);
    border: 1px solid var(--border-color);
    cursor: help;
}

.allergen-icons span i {
    font-size: 10px;
}

.allergen-filter-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--container-bg);
    box-shadow: 0 -4px 20px var(--shadow-medium);
    z-index: 999;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    overflow-x: auto;
}

.allergen-filter-bar h4 {
    black-space: nowrap;
    font-size: 14px;
    color: var(--primary-text);
}

.allergen-filter-buttons {
    display: flex;
    gap: 10px;
}

.allergen-filter-btn {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background-color: var(--card-bg);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    black-space: nowrap;
}

.allergen-filter-btn.active {
    background-color: var(--accent-color);
    color: black;
    border-color: var(--accent-color);
}


.allergen-filter-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}



.allergen-filter-btn:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
}

.allergen-filter-btn.active {
    background-color: #333;
    color: var(--accent-contrast-text);
    border-color: #333;
}

.allergen-filter-btn i {
    margin-right: 6px;
}

.clear-filters-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: #0073aa;
    font-weight: bold;
    cursor: pointer;
    padding: 8px;
}

.card_info .allergen-icons {
    margin: 5px 0;
    display: flex;
    gap: 8px;
    color: #888;
}

.card_info .allergen-icons span {
    font-size: 1.1em;
    cursor: pointer;
}


.title-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.filter-main-btn {
    border: 1px solid #ddd;
    background-color: var(--light-gray-bg);
    padding: 8px 16px;
    border-radius: 35px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    margin-left: 15px;
}

.filter-main-btn:hover {
    background-color: var(--accent-color) !important;
}

.filter-main-btn:active {
    background-color: var(--accent-color) !important;
}

.filter-main-btn:focus {
    background-color: var(--accent-color) !important;
}

.filter-main-btn.active {
    border-color: var(--accent-color);
    background-color: var(--accent-color);
    color: var(--accent-contrast-text);
}

.filter-count {
    background-color: #e53935;
    color: black;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}


.filter-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.filter-popup-content {
    background: var(--accent-contrast-text);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.filter-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.filter-popup-header h3 {
    margin: 0;
    font-size: 1.2em;
}

.filter-close-btn {
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    color: #888;
    line-height: 1;
}

.filter-popup-body {
    padding: 20px;
    overflow-y: auto;
}

.filter-section {
    margin-bottom: 20px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1em;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
}

.filter-options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-block: 1rem;
}

/* --- Base Button Style --- */
.filter-option-btn {
    padding: 8px 15px;
    border: 1px solid #ddd;
    background-color: var(--light-gray-bg);
    color: var(--primary-text);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Icon styling */
.filter-option-btn i {
    color: var(--secondary-text);
    font-size: 0.9em;
    transition: color 0.2s;
}

/* --- HOVER STATE (When mouse is over) --- */
.filter-option-btn:hover {
    background-color: #e9ecef;
    border-color: #bbb;
    color: #000 !important;
    /* Keep text dark on hover */
}

/* --- DIETARY & CALORIES (Positive Filter - "Must Have") --- */
.filter-option-btn[data-type="dietary"].active,
.filter-option-btn[data-type="calories"].active {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: #ffffff !important;
    /* FORCE WHITE TEXT */
    font-weight: 600;
}

/* Fix Icon color for Dietary Active */
.filter-option-btn[data-type="dietary"].active i,
.filter-option-btn[data-type="calories"].active i {
    color: #ffffff !important;
}

/* --- ALLERGENS (Negative Filter - "Exclude") --- */
/* We make this RED so user knows it is excluded */
.filter-option-btn[data-type="allergen"].active {
    background-color: #fee2e2 !important;
    /* Light Red Background */
    border-color: #dc2626 !important;
    /* Dark Red Border */
    color: #dc2626 !important;
    /* Dark Red Text */
    font-weight: 600;
    text-decoration: line-through;
    /* Cross it out visually */
}

/* Fix Icon color for Allergen Active */
.filter-option-btn[data-type="allergen"].active i {
    color: #dc2626 !important;
}

/* --- Remove Blue Outline on Click --- */
.filter-option-btn:focus {
    outline: none;
    color: #000 !important;
    background-color: transparent;
}

.filter-option-btn:focus i {
    color: #000 !important;
}



.filter-popup-footer {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background-color: var(--light-gray-bg);
    gap: 15px;
}

.filter-popup-footer .primary-btn {
    background-color: var(--accent-color);
    color: var(--accent-contrast-text);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.filter-popup-footer .secondary-btn {
    background: none;
    /* border: none; */
    color: #000;
    font-weight: bold;
    width: 100%;
    cursor: pointer;
}

.delivery-fliter {
    display: flex;
}

.filter-main-btn {
    color: #666;
}

button#confirmAddressSelectionBtn:hover,
button#confirmAddressSelectionBtn:focus {
    background-color: var(--accent-color);
    color: var(--accent-contrast-text) !important;

}

.allergen-icons {
    display: flex;
    gap: 4px;
    margin: 5px 0;
    flex-wrap: wrap;
    align-items: center;
    min-height: 24px;
}

.allergen-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 10px;
    border-radius: 50%;
    background-color: #f0f2f5;
    color: var(--secondary-text);
    border: 1px solid var(--border-color);
    cursor: help;
    transition: all 0.2s ease;
}

.allergen-icon:hover {
    background-color: #e4e6ea;
    transform: scale(1.1);
}

.allergen-icon i {
    font-size: 10px;
}

.allergen-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 8px;
    border-radius: 50%;
    background-color: #6c757d;
    color: black;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 2px;
}

.allergen-toggle:hover {
    transform: scale(1.1);
}

.allergen-icon.hidden {
    animation-duration: 0.2s;
}

@media (max-width: 768px) {
    .allergen-icons {
        gap: 3px;
    }
    .card-info-icon-overlay
 {
    top: 85%!important;
 }

    .allergen-icon,
    .allergen-toggle {
        width: 18px;
        height: 18px;
        font-size: 9px;
    }

    .allergen-icon i {
        font-size: 8px;
    }

    .allergen-toggle {
        font-size: 7px;
    }
}
@media (max-width: 480px) {
    .card-info-icon-overlay {
        top: 75% !important;
    }
}

.schedule-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.schedule-popup-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.schedule-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.schedule-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.timing-options {
    display: flex;
    gap: 12px;
    padding: 20px;
}

.timing-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timing-option:hover {
    border-color: var(--accent-color);
    background-color: #f8f9ff;
}

.timing-option.active {
    border-color: var(--accent-color);
    background-color: #e3f2fd;
}

.timing-icon {
    font-size: 24px;
    color: var(--accent-color)
}

.timing-title {
    font-weight: 600;
    font-size: 16px;
}

.timing-subtitle {
    color: #666;
    font-size: 14px;
}

.schedule-datetime-section {
    padding: 0 20px;
    animation: slideDown 0.3s ease;
}

.date-options,
.time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.date-option,
.time-slot {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.date-option:hover,
.time-slot:hover {
    border-color: var(--accent-color);
    background-color: #f8f9ff;
}

.date-option.selected,
.time-slot.selected {
    background-color: var(--accent-color);
    color: black;
    border-color: var(--accent-color);
}

.time-slot.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f8f9fa;
}

.schedule-popup-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

.primary-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--accent-color);
    color: var(--accent-contrast-text);
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

.primary-btn:hover {
    color: var(--accent-contrast-text);
    background-color: var(--accent-color);
}

.primary-btn:focus {
    color: var(--primary-text);
}

button#confirmScheduleBtn:hover {
    background-color: var(--accent-color);
}

button#confirmScheduleBtn:focus {
    background-color: var(--accent-color);
}

button.schedule-close-btn:hover {
    background-color: transparent;
    color: var(--primary-text);
}

button.schedule-close-btn:focus {
    background-color: transparent;
}

button.change-address-btn {
    background-color: var(--accent-color);
    border: none;
    color: var(--accent-contrast-text);
    border-radius: 20px;
}

button.change-address-btn:hover {
    background-color: var(--accent-color);
}


.schedule-popup-body {
    padding: 0;
}

.schedule-date-strip-container {
    position: relative;
    padding: 16px;
    border-bottom: 1px solid #eee;
}

#dateStrip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#dateStrip::-webkit-scrollbar {
    display: none;
}

.date-strip-item {
    flex: 0 0 auto;
    padding: 12px;
    min-width: 80px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.date-strip-item:hover {
    border-color: #aaa;
    background-color: var(--light-gray-bg);
}

.date-strip-item.selected {
    background-color: var(--shadow-light);
    color: var(--primary-text);
    border-color: var(--shadow-light);
}

.date-strip-day {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.7;
}

.date-strip-date {
    font-size: 16px;
    font-weight: 700;
    margin-top: 4px;
}

.date-strip-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--primary-text);
}

.date-strip-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.date-strip-arrow:hover {
    background-color: #f5f5f5;
}

.date-strip-arrow.left {
    left: -5px;
}

.date-strip-arrow.right {
    right: -5px;
}

#timeSlots.schedule-time-list-container {
    padding: 16px;
    max-height: 250px;
    overflow-y: auto;
    border-bottom: 1px solid #eee;
}

.time-slot-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.time-slot-item:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

.time-slot-item:hover {
    background-color: var(--light-gray-bg);
}

.time-slot-item input[type="radio"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
}

.time-slot-item label {
    flex-grow: 1;
    cursor: pointer;
    font-weight: 500;
}

.time-slot-item input[type="radio"]:checked+label {
    font-weight: 700;
    color: var(--accent-color);
}

#scheduleSummary {
    text-align: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: #555;
    min-height: 20px;
}

#scheduleSummary strong {
    color: var(--primary-text);
}

#dateStripArrowLeft,
#dateStripArrowRight {
    color: var(--accent-color) !important;
}

@media (max-width: 1024px) {
    .pfm-container {
        padding: 2rem !important;
    }

    .menu_menu {
        grid-template-columns: 1fr;
        /* padding: 1.5rem; */
        gap: 2rem;
    }

    .right_side_menu {
        position: static;
        top: auto;
    }

    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .restaurant-info {
        align-items: center;
    }

    .title-section {
        flex-direction: column;
        gap: 1rem;
    }
}

/* --- MOBILE LAYOUT FIX --- */
@media (max-width: 1024px) {
    .card-info-icon-overlay {
        top: 115px;
    }

    .menu_menu {
        /* 1. Force the grid to be ONE column only */
        grid-template-columns: 1fr !important;

        /* 2. Remove extra padding that might squish content */
        padding: 1rem !important;

        /* 3. Ensure it uses the full width */
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 4. Stop the header from overflowing or sliding */
    .pfm-container {
        padding: 0 !important;
        overflow-x: hidden !important;
        width: 100% !important;
    }

    /* 5. Ensure body doesn't scroll horizontally */
    body,
    html {
        overflow-x: hidden !important;
    }
}

@media (max-width: 768px) {
    .pfm-container {
        padding: 1rem !important;
        margin-block: 0rem 0rem;
        margin-top: 4rem;
    }

    .menu_menu {
        /* padding: 1rem; */
    }

    .left_side_menu {
        padding: 0rem;
    }

    .header-content {
        gap: 1.5rem;
        padding: 1rem 0;
    }

    .restaurant-image img {
        width: 100%;
        max-width: 300px;
        height: auto;
    }

    a#mobile-header-cart-btn {
        display: none;
    }

    .container-fluid {
        padding-inline: 2rem !important;
    }

    .restaurant-title {
        font-size: 1.75rem;
    }

    .delivery-fliter {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }

    .toggle-option {
        padding: 2px 10px;
        font-size: 14px;
        font-weight: 400;
    }

    .filter-main-btn {
        font-size: 14px;
    }

    .menu_scroll {
        padding: 0.5rem 0;
        top: 0;
    }

    .scroll-container {
        padding: 0 1rem;
    }

    .scroll-btn {
        display: none;
    }

    .car_item_title {
        font-size: 22px;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }

    .card_container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .card_img {
        height: 200px;
        /* height: auto; */
    }

    .menu_title {
        font-size: 12px;
    }

    .menu_discription {
        font-size: 10px;
    }

    .item-meta .menu_price {
        font-size: 12px !important;
        font-weight: 800 !important;
    }

    .popup-content,
    #savedAddressesPopup .address-popup-content,
    #addressPopup .address-popup-content {
        width: 95%;
        max-height: 90vh;
    }

    .cart_details_popup {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .address-add-new-btn {
        width: 100% !important;
    }

    #addressPopup>.address-popup-content>.address-popup-body,
    #savedAddressesPopup>.address-popup-content>.address-popup-body {
        height: auto !important;
        max-height: 60vh !important;
    }

    .popup-header,
    .cart_items_popup,
    .popup-quantity-section {
        padding: 1rem 1.5rem;
    }

    .add-to-cart-popup-btn {
        padding: 1.25rem !important;
    }
}

.cart_items.item-unavailable {
    opacity: 0.6;
    position: relative;
}

.unavailable-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: black;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}

.cart_items.item-unavailable .cart_quantity button {
    opacity: 0.5;
    cursor: not-allowed;
}

.dropdown_item.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.dropdown_item.disabled label {
    cursor: not-allowed;
}

.item_customise.disabled-group {
    opacity: 0.6;
    background: #f8f9fa;
    border: 1px dashed #dee2e6;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.item_customise.disabled-group .subtitle.error-text {
    color: #dc3545;
    font-weight: 500;
}

.toast {
    max-width: 400px;
}

.cart_quantity .delete_btn {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    margin: 0 10px;
    transition: color 0.2s ease;
}




.dropdown_item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0;
    justify-content: flex-start;
}

.dropdown_item label {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.5rem;
}

.combo-item-addons-container {
    width: 100%;
    padding: 1rem 1rem 0.5rem 2.5rem;
    margin-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background-color: #fafafa;
    border-radius: 0 0 8px 8px;
}

.sub-addon-group h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-text);
    margin-bottom: 0.5rem !important;
}

.sub-addon-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sub-addon-list li {
    padding: 0;
}

.sub-addon-list li label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 14px;
    width: 100%;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    justify-content: flex-start;
}

.sub-addon-list li label:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.loading-addons {
    font-size: 13px;
    color: #888;
    padding: 10px 0;
    font-style: italic;
}

.combo_summary_container {
    margin-top: 0.5rem;
    padding-left: 0.5rem;
}



.cart_quantity .customize {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-text);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
    padding-bottom: 0;
}


.cart_quantity .delete_btn:hover {
    color: #c62828;
}

.cart_container {
    display: flex;
    flex-direction: column;
    max-height: 65vh;
}


.cart_items {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.cart_details {
    flex-grow: 1;
    margin-bottom: 0;
}

.combo_summary_item {
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary-text);
}

ul.sub_addon_summary_list {
    list-style-type: none;
    padding-left: 20px;
    margin-top: 5px;
}

ul.sub_addon_summary_list li {
    font-size: 13px;
    font-style: italic;
    color: #7a8a99;
}


.cart_quantity .customize:hover {
    border-bottom-color: var(--primary-text);
}

.cart_quantity .delete_btn {
    color: #e53935;
    font-size: 16px;
    padding: 5px;
    transition: color 0.2s ease;
    margin: 0;
}




.dietary-info-display.popup-version {
    display: none;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    margin: 0;
    border-top: none;
    border-bottom: 1px solid var(--border-color);
}

.dietary-info-display {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    justify-content: space-around;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.dietary-info-item {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3rem;
    flex-direction: column-reverse;
    font-size: 13px;
}

.dietary-label {
    font-weight: 600;
    color: var(--primary-text);
}

.dietary-value {
    color: var(--secondary-text);
}

.toggle-cart-item-details {
    margin-left: 8px;
    cursor: pointer;
    color: #666;
    font-size: 0.9em;
    transition: color 0.2s ease;
}

.toggle-cart-item-details:hover {
    color: #333;
}

.combo_sub_addon_summary {
    font-size: 0.9em;
    font-style: italic;
    color: #777;
    margin-left: 5px;
}

.cart-item-details {
    font-size: 0.85em;
    color: #555;
    margin-top: 5px;
    margin-left: 30px;
    padding-left: 10px;
    border-left: 2px solid #eee;
}

.cart-item-details .combo_summary_item,
.cart-item-details .addon_summary,
.cart-item-details .combo_addon_summary {
    margin-bottom: 3px;
}

.cart-item-details .combo_addon_summary {
    font-size: 0.9em;
    margin-left: 15px;
    color: #777;
}


.pfmi-modal-container-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    backdrop-filter: blur(5px);
}

.pfmi-modal-container-overlay .pfmi-modal-container {
    width: 100%;
    margin-top: 0;
    overflow: hidden;
    animation: pfmi-popup-fade-in 0.3s ease-out;
}

.pfmi-close-button {
    /* Existing position styles */
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10001;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    
    /* 🔥 THE FIX: Centering logic only */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 0 !important; 
    padding: 0 !important;

    /* Ensure width/height match to keep it a circle */
    width: 40px;
    height: 40px;
}


.pfmi-close-button:hover {
    background-color: var(--accent-contrast-text);
    transform: scale(1.1);
}

#pfmi-sub-addon-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

#pfmi-sub-addon-popup[style*="display: flex"] {
    display: flex !important;
}

.pfmi-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5) !important;
    z-index: 10000 !important;
    display: none !important;
}

.pfmi-popup-overlay[style*="display: flex"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.pfmi-popup-content {
    background: white !important;
    border-radius: 12px !important;
    width: 90% !important;
    max-width: 500px !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
    display: flex !important;
    flex-direction: column !important;
    animation: slideUp 0.3s ease-out !important;
    position: relative !important;
    z-index: 10001 !important;
}

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

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

@keyframes pfmi-popup-fade-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 900px) {
    .pfmi-modal-container-overlay {
        padding: 0;
    }
    .pfm-modal-content.small-modal{
        font-size: 12px !important;
    }

.primary-btn.full-width, .secondary-btn.full-width {
    font-size: 10px !important;
    padding: 10px !important;
}

    .pfmi-modal-container-overlay .pfmi-close-button {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 30px;
        display: flex;
        justify-content: center;
    }

}


.item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.25rem;
}

.item-meta .menu_price {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.item-meta .info-icon {
    font-size: 18px;
    color: #aaa;
    cursor: pointer;
}

.menu_btn,
.customize,
.menu_price_allergen_wrapper {
    display: none !important;
}

/* .list_item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
} */



.pfm-top-bar {
    /* display: none !important; */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-block: 20px 10px;
    /* border-bottom: 1px solid #eee; */
    gap: 15px;
}

.pfm-top-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #555;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-item i {
    color: #888;
}

.pfm-top-controls {
    display: flex;
    align-items: center;
}

.pfm-top-controls .delivery-fliter {
    display: flex;
    gap: 10px;
}

.pfm-top-controls .delivery-pickup-toggle {
    margin: 0;
}

/* .pfm-top-controls .filter-main-btn {
    background: #f4f4f4;
    border: 1px solid #eee;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
} */

@media (max-width: 768px) {
    .pfm-top-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .pfm-top-info {
        gap: 10px;
    }

    .pfm-top-controls {
        width: 100%;
    }

    .pfm-top-controls .delivery-fliter {
        width: 100%;
        justify-content: space-between;
    }
}

.gmnoprint {
    display: none;
}

#ky-full-page-cart {
    display: none;
    width: 100%;
    max-width: 1490px;
    margin: 0 auto;
}


.ky-cart-container {
    /* background: white; */
    background: #f8f9fa;
    width: 100%;
    min-width: 100%;
    /* min-height:; */
    display: flex;
    flex-direction: column;
    position: relative;
    /* border-radius: 16px; */
    /* box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07); */
    /* overflow: hidden; */
}

/* 1. Make the summary stick */
.cart_summary {
    position: -webkit-sticky;
    /* For Safari */
    position: sticky;
    top: 100px;
    /* Adjusts for the height of your black header */
    z-index: 10;
    align-self: flex-end;
    width: 100%;
    /* Prevents it from stretching */
}

.ky-cart-header {
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
    padding: 1rem 2rem;
    background:#f8f9fa;
    border-bottom: 1px solid #eee;
    padding: 0px;
}

.ky-cart-header .cart_title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-text);
    margin: 0 !important;
}

.ky-cart-close-btn {
    background: none !important;
    border: none !important;
    font-size: 32px !important;
    font-weight: 300 !important;
    cursor: pointer !important;
    color: #666 !important;
    padding: 0 !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}

.ky-cart-close-btn:hover {
    color: var(--primary-text) !important;
    transform: scale(1.1) !important;
}

.ky-cart-body {
    display: block;
    grid-template-columns: 1fr 450px;
    gap: 2rem;
    /* padding: 1rem 2rem; */
    width: 100%;
    /* margin-top:100px ; */
    margin-top: 10px;
    /*  */
   
   /* border: 1px solid #eae3e3; */
    /* border-radius: 20px; */
    /* background-color: #f8f9fa; */

}

#cartItems {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* border: 1px solid #ebe1e1; */
    /* border-radius: 20px; */
    /* border-block-color: #d7d7d7; */
    /* background-color: #e9ecef; */
    background-color: #ffffff;
    padding: 20-px;
}

.empty_cart {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    background: var(--light-gray-bg);
    border-radius: 16px;
    min-height: 400px;
}

.empty_cart i {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 1.5rem;
}

.empty_cart p {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem !important;
}

.empty_cart small {
    font-size: 16px;
    color: #999;
}


.cart_summary {
    position: sticky;
    height: fit-content;
    padding: 2rem;
    background: var(--light-gray-bg);
    border-radius: 12px;
    display: flex;
}

.cart_summary h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-text);
    margin-bottom: 1.5rem !important;
}

.summary_row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 15px;
    color: #666;
}

.summary_row span:last-child {
    font-weight: 600;
    color: var(--primary-text);
}

#cart-grand-total {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-text);
    /* padding-top: 1rem;
    margin-top: 1rem; */
    border-top: 2px solid #eee;
    margin-bottom: 2rem !important;
}

.checkout_btn {
    width: 25% !important;
    background: var(--accent-color) !important;
    color: white !important;
    border: none !important;
    border-radius: 35px !important;
    padding: 1rem !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin-bottom: 1rem !important;
    text-transform: uppercase;
    position: relative;
    
}

.checkout_btn:hover {
    background: var(--accent-color) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.checkout_btn:disabled {
    background: #382318!important;
    cursor: not-allowed !important;
    transform: none !important;
}

.cancel_order_btn {
    width: 100% !important;
    background: white !important;
    color: #666 !important;
    border: 1px solid #ddd !important;
    border-radius: 12px !important;
    padding: 1rem !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase;
}

.cancel_order_btn:hover {
    background: #f5f5f5 !important;
    color: var(--primary-text) !important;
    border-color: #999 !important;
}

@media (max-width: 1024px) {
    .ky-cart-body {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .cart_summary {
        position: static;
        margin-top: 1rem;
    }

    .ky-cart-header {
        padding: 1.5rem 1.5rem;
    }
}

@media (max-width: 768px) {
    #ky-full-page-cart {
        /* padding: 1rem 0; */
    }
    .ky-cart-body #new-ky-cart-body{
 padding: 1rem 0;
    }
    

    .ky-cart-container {
        border-radius: 0;
    }

    .ky-cart-header {
        padding: 1rem;
    }

    .ky-cart-body {
        padding: 1rem;
    }

    .ky-cart-header .cart_title {
        font-size: 22px;
    }

    .pfm-cart-item {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .pfm-cart-item-image img {
        width: 80px;
        height: 80px;
    }

    .pfm-cart-item-controls {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 0.5rem;
    }

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

    .cart_summary {
        /* padding: 1.5rem; */
    }
}

.openFilterPopupBtn:hover {
    color: var(--primary-text);
}

.swal2-container {
    z-index: 999999 !important;
}


.skeleton {
    background-color: #e2e8f0;
    border-radius: 4px;
    background-image: linear-gradient(90deg,
            #e2e8f0 0px,
            #f8fafc 40px,
            #e2e8f0 80px);
    background-size: 600px;
    animation: skeleton-shimmer 1.8s infinite linear;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: 400px 0;
    }
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-header {
    height: 28px;
    margin-bottom: 16px;
}

.skeleton-card-img {
    height: 180px;
    border-radius: 12px 12px 0 0;
}

@media (max-width: 768px) {
    .category-visual-grid {
                        padding: 20px !important;

        grid-template-columns: 1fr 1fr !important;
    }
    .category-page-header{

    padding: 0 40px !important;
    padding-top: 20px !important;
    }
    .category-visual-card{
        height: 150px !important;
    }
    .category-visual-overlay h3{
        font-size: 20px !important;
    }
    .skeleton-card-img {
        height: 150px;
    }
}

.skeleton-card-info {
    padding: 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}


@media (max-width: 600px) {
    .guest-form-group.half-width {
        width: 100%;
    }
}

.pfm-cart-item {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    grid-template-rows: auto auto;
    grid-template-areas:
        "image details price"
        "image details controls";
    gap: 5px 15px;
    padding: 15px;
   /* background: #e9ecef; */
   background: #ffffff;
    /* border: 1px solid #f0f0f0; */
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
    margin-bottom: 15px;
    align-items: start;
}

.pfm-cart-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pfm-cart-item-image {
    grid-area: image;
    width: 90px;
    height: 90px;
}

.pfm-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.pfm-cart-item-details {
    grid-area: details;
    align-self: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pfm-cart-item-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-text);
    margin: 0;
    line-height: 1.2;
}

.pfm-cart-item-addons {
    font-size: 13px;
    color: #888;
    line-height: 1.4;
}

.pfm-cart-item-price {
    grid-area: price;
    justify-self: end;
    align-self: start;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-text);
    margin-bottom: 0px;
}

.pfm-cart-item-controls {
    grid-area: controls;
    justify-self: end;
    align-self: end;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.pfm-cart-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pfm-cart-icon-btn {
    width: 24px !important;
    height: 24px !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    color: #666 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease;
    font-size: 12px !important;
}

.pfm-cart-icon-btn:hover {
    border-color: var(--accent-color) !important;
    color: var(--accent-color) !important;
    background: #f9f9f9 !important;
}

/* Quantity Selector */
.pfm-cart-quantity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 3px;
    width: 90px;
}

.pfm-cart-qty-btn {
    width: 24px !important;
    height: 24px !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    color: var(--primary-text) !important;
    cursor: pointer !important;
    padding: 0 !important;
}

.pfm-cart-qty-btn:hover:not(:disabled) {
    border-color: var(--accent-color) !important;
    color: var(--accent-color) !important;
}

.pfm-cart-qty-btn:hover:disabled {
    border-color: var(--accent-color) !important;
    color: var(--accent-color) !important;
}

.pfm-cart-quantity span {
    font-weight: 600;
    font-size: 13px;
    color: var(--primary-text);
}

@media (max-width: 768px) {
    .pfm-cart-item {

        grid-template-columns: 70px 1fr auto;
        grid-template-rows: auto auto;
        grid-template-areas:
            "image details price"
            "controls controls controls";
        gap: 12px;
        padding: 12px;
    }

    .pfm-cart-item-image {
        width: 70px;
        height: 70px;
        grid-area: image;
    }

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

    .pfm-cart-item-controls {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        border-top: 1px dashed #eee;
        padding-top: 10px;
        margin-top: 5px;
    }

    .pfm-cart-quantity {
        order: 1;
    }

    .pfm-cart-actions {
        order: 2;
    }
}

.guest-details-form {
    padding: 25px;
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    margin-bottom: 20px;
}

.guest-details-form h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-text);
    margin-bottom: 5px !important;
}

.guest-details-form p {
    color: #888;
    font-size: 14px;
    margin-bottom: 20px !important;
}

.guest-form-body {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.guest-form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.guest-form-group.half-width {
    width: calc(50% - 7.5px);
}

.guest-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 6px;
    margin-left: 2px;
}

.guest-form-group input,
.guest-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: var(--primary-text);
    background-color: #f9f9f9;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.guest-form-group input:focus,
.guest-form-group textarea:focus {
    background-color: #fff;
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px var(--shadow-light);
}

@media (max-width: 600px) {
    .guest-form-group.half-width {
        width: 100%;
        /* Stack on mobile */
    }

    .guest-details-form {
        padding: 15px;
    }
}

/* #pf-floating-cart-bar {
    position: fixed !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90% !important;
    max-width: 400px !important;
    z-index: 2147483647 !important;
    cursor: pointer !important;

    display: none !important;
}

#pf-floating-cart-bar.active-floating-cart {
    display: block !important;
    animation: slideUpFade 0.3s ease-out;
} */

/* --- Floating Cart Bar (Mobile: Centered) --- */
#pf-floating-cart-bar {
    position: fixed !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90% !important;
    max-width: 400px !important;
    z-index: 2147483647 !important;
    cursor: pointer !important;
    display: none !important;
    /* Hidden by default, toggled by JS */
    transition: all 0.3s ease;
}

#pf-floating-cart-bar.active-floating-cart {
    display: block !important;
    animation: slideUpFade 0.3s ease-out;
}

/* --- Floating Cart Bar (Desktop: Bottom Right) --- */
@media (min-width: 992px) {
    #pf-floating-cart-bar {
        left: auto !important;
        /* Remove centering */
        transform: none !important;
        /* Remove centering transform */
        right: 40px !important;
        /* Position on right */
        bottom: 40px !important;
        /* Position from bottom */
        width: auto !important;
        /* Auto width */
        min-width: 350px;
        /* Ensure it looks substantial */
    }

    /* Ensure it is visible on desktop when active */
    #pf-floating-cart-bar.active-floating-cart {
        display: block !important;
    }
}

.pf-float-inner {
    width: 100%;
    background-color: var(--accent-color);
    /* background-color: #1d7eaf; */
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    font-family: 'Poppins', sans-serif;
}

.pf-float-left span {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}

.pf-float-center span {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pf-float-right span {
    font-weight: 700;
    font-size: 16px;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translate(-50%, 40px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}



.card {
    position: relative;
}

.card-qty-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--accent-color);
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    border: 2px solid #ffffff;
    transition: transform 0.2s ease;
}

.card-qty-badge {
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% {
        transform: scale(0);
    }

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

#cartUpsellSection {
    /* margin-top: 1rem;
    padding-top: 1rem; */
    border-top: 1px dashed var(--border-color);
}

.upsell-title {
    /* font-size: 16px; */
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-text);
    margin-bottom: 10px !important;
}

.upsell-scroll-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-block: 10px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.upsell-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.upsell-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.upsell-scroll-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.upsell-card {
    flex: 0 0 140px;
    width: 140px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.upsell-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.upsell-img {
    width: 100%;
    height: 130px;
    object-fit: cover;
}

.upsell-details {
    padding: 8px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.upsell-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.upsell-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.upsell-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-color);
}

.upsell-add-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--light-gray-bg);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
}

.upsell-card:hover .upsell-add-btn {
    background: var(--accent-color);
    color: #fff;
}

#new-bar-address {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 300px;
}

#new-bar-address span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

#new-bar-address i {
    flex-shrink: 0;
}

.confirm-address-btn {
    margin-top: 10px;
}

.grid-qty-btn {
     background: var(--accent-color); 
    
    /* color: var(--accent-contrast-text); */
    color: #ffffff;
    border: none;
    width: 22px !important;
    height: 22px !important;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
}


.grid-qty-value {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 13px;
}


.card.has-quantifier .menu_title {
    padding-right: 90px !important;
}


.card.has-quantifier .item-meta {
    display: flex !important;
    margin-top: 15px;
}


.card-content-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    /* margin-bottom: 5px; */
}

.card-text-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}


.card_info .menu_title {
    padding-right: 0 !important;
}

.grid-qty-selector {
    display: flex;
    gap: .4rem;
    margin: 0 !important;
}

.grid-qty-btn:hover,
.grid-qty-btn:focus {
    background-color: var(--accent-color) !important;
    color: var(--accent-contrast-text);
}

.ky-cart-left-col {
    /* display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
    width: 100%;
    background-color: #e9ecef;
    padding: 20px;
    border-radius: 20px; */
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
    width: 100%;
    /* background-color: #e9ecef; */
    background-color: #ffffff;
    padding: 20px;
    border-radius: 20px;
    /* margin-left: 200px; */
}

.upsell-scroll-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-block: 10px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;

    width: 100%;
    max-width: 100%;
}



.pfm-checkmark-badge i {
    font-size: 14px;
    font-weight: 900;
}

@keyframes popIn {
    0% {
        transform: scale(0);
    }

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

/* Container for the +/- buttons on the right side of card info */
.card-qty-container {
    display: flex !important;
    /* Restore this */
    align-items: flex-start;
    justify-content: flex-end;
    min-width: 70px;
}

/* Ensure title doesn't overlap buttons */
.card.has-quantifier .menu_title {
    padding-right: 0 !important;
    /* Let flexbox handle spacing */
    max-width: 100%;
    /* Prevent text from hitting buttons */
}

.pfm-checkmark-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    background-color: var(--accent-color);
    /* background-color: #1d7eaf; */
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30; /* Bumped up slightly just to be safe */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    pointer-events: auto !important;
    cursor: pointer;

    /* SAFARI TOUCH FIXES */
    touch-action: manipulation; /* Prevents double-tap zoom delay */
    -webkit-tap-highlight-color: transparent; /* Removes weird grey tap box */
}

/* THE MAGIC INVISIBLE HITBOX */
.pfm-checkmark-badge::after {
    content: '';
    position: absolute;
    /* This pushes the clickable boundary out by 15px in every direction */
    top: -15px;
    right: -15px;
    bottom: -15px;
    left: -15px;
    border-radius: 50%;
    z-index: 1; /* Keeps it attached to the button */
}

/* Ensure the text/icon inside the badge doesn't intercept the click */
.pfm-checkmark-badge span,
.pfm-checkmark-badge i {
    pointer-events: none; 
    position: relative;
    z-index: 2;
}




.upsell-section-wrapper {
    position: relative;
    padding: 0 10px;
    /* Space for arrows */
}

/* Hide scrollbar but keep functionality */
.upsell-scroll-container::-webkit-scrollbar {
    display: none;
}

.upsell-scroll-container {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    scroll-behavior: auto;
}

.upsell-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    color: var(--primary-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.upsell-arrow:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

.upsell-arrow.left {
    left: -10px;
    padding: 0;
}

.upsell-arrow.right {
    right: -10px;
    padding: 0;
}

/* --- Upsell Card "In Cart" Styling --- */
.upsell-card {
    position: relative;
    /* Context for absolute badge/overlay */
}

/* 1. Overlay for Upsell Image */
.upsell-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 130px;
    /* Matches .upsell-img height */
    background-color: #95959587;
    z-index: 2;
    pointer-events: none;
}

/* 2. Checkmark for Upsell */
.upsell-check-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background-color: #000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    font-size: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: popIn 0.2s ease;
}

/* 3. Hide the "+" button when item is in cart */
.upsell-card.in-cart .upsell-add-btn {
    display: none !important;
}

button.filter-close-btn:hover,
button.filter-close-btn:focus,
button.filter-close-btn:active {
    background-color: white;
    color: #000;
}

/* Wrapper for the icon to position the tooltip relative to it */
.ky-info-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-left: 5px;
    color: var(--accent-color, #000);
    /* Uses your theme color */
    cursor: pointer;
}

.ky-info-icon-wrapper i {
    font-size: 14px;
    /* Adjust icon size */
}

/* The actual tooltip bubble (hidden by default) */
.ky-tooltip-content {
    visibility: hidden;
    width: 220px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px;

    /* Position */
    position: absolute;
    z-index: 999;
    bottom: 135%;
    /* Shows above the icon */
    left: 50%;
    transform: translateX(-50%);

    /* Animation */
    opacity: 0;
    transition: opacity 0.3s;

    /* Text styling */
    font-size: 12px;
    line-height: 1.4;
    font-weight: normal;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    white-space: normal;
    /* Ensure text wraps */
}

/* Little arrow pointing down from the tooltip */
.ky-tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Show tooltip on hover */
.ky-info-icon-wrapper:hover .ky-tooltip-content {
    visibility: visible;
    opacity: 1;
}

/* Prevent the tooltip from being cut off if card has overflow hidden */
.card_info,
.menu_discription {
    overflow: visible !important;
}



/* Hide the back button by default. It's explicitly shown by JS when needed. */
.back-button {
    display: none;
}



body.view-items .back-button {
    display: none !important;
}

body.view-items .back-button {
    /* Position sticky back button near the top */
    position: sticky;
    top: 10px;
    /* Adjust as necessary to clear header */
    z-index: 100;
}


/* --- 2. CATEGORY GRID LAYOUT (The Screenshot) --- */
.category-visual-grid {
   display: grid;

    grid-template-columns: 1fr;

    /* Mobile */
    gap: 20px;
}

@media (min-width: 768px) {
    .category-visual-grid {
        grid-template-columns: 1fr 1fr;
        padding: 20px 40px;
    }
}

@media (min-width: 1024px) {
    .category-visual-grid {
        /* Matches screenshot layout */
          display: grid;

        grid-template-columns: repeat(2, 1fr);



         gap: 20px;
    }
}

@media (min-width: 1024px) {

    .category-visual-card:first-child {

        grid-column: 1 / -1; /* spans full row */

        height: 220px; /* adjust if needed */

    }

}



@media (min-width: 1024px) {

    .category-visual-card:not(:first-child) {

        grid-column: auto;

    }

}

/* --- 3. CATEGORY CARD STYLING --- */
.category-visual-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 280px;
    /* Fixed height for consistent look */
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.category-visual-card img[alt="SHAKES"] {

    max-height: 77%;   /* adjust */

    width: 100%;

    object-fit: contain;

}

.category-visual-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-visual-card img {
    width: 100%;
    height: 83%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.category-visual-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 30%, rgba(0, 0, 0, 0.1) 70%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
}

.category-visual-overlay h3 {
    color: #fff;
    /* font-size: 28px; */
      font-size: clamp(18px, 2vw, 28px);
    font-weight: 800;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0 !important;
    text-align: center;
}

/* Coming Soon Overlay */
.category-visual-card.coming-soon img {
    filter: grayscale(100%);
    opacity: 0.7;
}

.category-visual-card.coming-soon .coming-soon-overlay {
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1rem;
    z-index: 10;
    pointer-events: none;
}

.category-visual-card.coming-soon .coming-soon-overlay i {
    font-size: 3rem;
    margin-bottom: 5px;
}


/* --- 4. SKELETON GRID (For Initial Load) --- */
.skeleton-grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    width: 100%;
    /* margin-top: 2rem; */
}

.skeleton-box {
    height: 320px;
    width: 100%;
    border-radius: 12px;
    background: #e0e0e0;
    position: relative;
    overflow: hidden;
}

/* Skeleton Shimmer Animation (Already exists, but ensures it works here) */
.skeleton-box::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.2) 20%, rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0));
    animation: shimmer 2s infinite;
}

/* Match layout on responsive screens */
@media (min-width: 768px) {
    .skeleton-grid-container {
        grid-template-columns: 1fr 1fr;
        gap:20px;
    }
}

@media (min-width: 1024px) {

    .category-visual-grid {

        display: grid;

        grid-template-columns: repeat(2, 1fr);

        gap: 20px;

    }

}

.skeleton-grid-container .skeleton-box:first-child {

        grid-column: 1 / -1; 

        height: 280px; /* Match first card height if needed */

    }



    /* Remaining skeleton boxes stay in 2-column layout */

    .skeleton-grid-container .skeleton-box:not(:first-child) {

        grid-column: auto;

        height: 250px; /* Match other cards */

    }



/* --- 5. TRANSITION ANIMATION CLASSES (NEW) --- */
/* The element leaving the screen */
.animate-out-up {
    animation: fadeOutUp 0.3s forwards ease-in;
    pointer-events: none;
}

/* The element entering the screen */
.animate-in-up {
    animation: fadeInUp 0.4s forwards ease-out;
}

@keyframes fadeOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.grid-view-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-text);
    margin-bottom: 1.5rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;

    /* Underline Styles */
    border-bottom: 3px solid var(--accent-color);
    width: max-content;
    /* Ensures line only spans the text width */
    padding-bottom: 8px;
    /* Space between text and line */
}

.continue_shopping_btn {
    width: 100% !important;
    background: transparent !important;
    color: var(--accent-color) !important;
    /* Uses your green text */
    border: 2px solid var(--accent-color) !important;
    /* Green border */
    border-radius: 35px !important;
    /* Same radius as checkout button */
    padding: 1rem !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase;
    margin-top: 0.5rem !important;
    /* Space between the two buttons */
}

.continue_shopping_btn:hover {
    background: var(--light-gray-bg) !important;
    transform: translateY(-2px) !important;
}



/* Hide the old text description */
.menu_discription {
    display: none !important;
}

/* Position the Info Icon over the Image */
.card-info-icon-overlay {
    position: absolute;
    top: 311px;
    right: 10px;
    width: 28px;
    height: 28px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    /* Above the image but below badges/popups */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    color: var(--accent-color);
    transition: transform 0.2s ease;
}

.card-info-icon-overlay:hover {
    transform: scale(1.1);
}

.card-info-icon-overlay i {
    font-size: 16px;
}

/* The actual tooltip bubble */
.card-info-icon-overlay .ky-tooltip-content {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;

    /* Position */
    position: absolute;
    bottom: 130%; /* Shows above the icon */
    
    /* FIX: Move it to the left */
    right: 0;      /* Align the right edge of the tooltip with the icon */
    left: auto;   /* Disable the previous center alignment */
    transform: none; /* Remove the translateX(-50%) which causes the cutoff */

    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    line-height: 1.4;
    font-weight: normal;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

/* FIX the arrow to stay under the icon */
.card-info-icon-overlay .ky-tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 10px;    /* Move arrow to the right side of the bubble so it sits over the icon */
    left: auto;
    margin-left: 0;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}
.card-info-icon-overlay:hover .ky-tooltip-content {
    visibility: visible;
    opacity: 1;
}



/* --- MODERN QUICK VIEW STYLES (Fixed) --- */
.ky-qv-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Nice dark overlay */
    backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ky-qv-content {
    background: #fff;
    width: 100%;
    max-width: 900px;
    /* No fixed min-height to allow mobile scrolling */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* --- UPDATED BORDER RADIUS --- */
    border-radius: 20px;

    position: relative;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    max-height: 90vh;
    /* Vital for mobile */
    animation: qvPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes qvPopIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(15px);
    }

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

.ky-qv-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    z-index: 20;
    line-height: 1;
    padding: 5px;
    transition: transform 0.2s;
}

.ky-qv-close-btn:hover {
    transform: scale(1.1);
    color: #000;
    background-color: #fff;
}

.ky-qv-body {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Left Image Column */
.ky-qv-image-col {
    flex: 1.1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px;
    /* On mobile, this allows the image to shrink properly */
    min-height: 300px;
}

.ky-qv-image-col img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    transform: scale(0.98);
    transition: transform 0.5s ease;
}

.ky-qv-image-col img.loaded {
    transform: scale(1);
}

/* Right Details Column */
.ky-qv-details-col {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    background: #fff;
    overflow-y: auto;
    /* Allows scrolling specifically on text if needed */
}

/* Typography matching your screenshot */
#ky-qv-title {
    font-family: 'Inter', sans-serif;
    font-size: 30px;
    font-weight: 900;
    text-transform: uppercase;
    color: #000;
    letter-spacing: -0.5px;
    margin: 0 0 8px 0 !important;
    line-height: 1.1;
}

.ky-qv-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-color, #165633);
    margin-bottom: 5px;
}

.ky-qv-divider {
    width: 40px;
    height: 3px;
    background: #000;
    margin: 20px 0;
}

.ky-qv-desc {
    font-family: 'Courier New', Courier, monospace;
    /* Matches the screenshot style */
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}

/* --- MOBILE FIXES --- */
@media (max-width: 768px) {
    .ky-qv-content {
        flex-direction: column;
        /* Stack image on top of text */
        width: 90%;
        /* Margin on sides */
        height: auto;
        max-height: 85vh;
        /* Keep inside screen */
        overflow-y: auto;
        /* Scroll whole popup */
    }

    .ky-qv-body {
        flex-direction: column;
        height: auto;
    }

    .ky-qv-image-col {
        padding: 30px 20px;
        min-height: 220px;
        /* Smaller image area */
        flex: none;
        /* Don't stretch */
    }

    .ky-qv-image-col img {
        max-height: 200px;
        /* Restrict image size */
    }

    .ky-qv-details-col {
        padding: 25px 30px 40px 30px;
        flex: none;
        /* Let it take natural height */
    }

    #ky-qv-title {
        font-size: 24px;
    }

    .ky-qv-close-btn {
        top: 10px;
        right: 10px;
    }
}

/* Multi Select Popup */
.pfm-modal-content.medium-modal {
    width: 100%;
    max-width: 550px;
    background: var(--bg-container);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.pfm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.pfm-close-multi-btn {
    background: none;
    border: none;
    border-radius: 10px;
    font-size: 24px;
    cursor: pointer;
}

.pfm-close-multi-btn:hover,
.pfm-close-multi-btn:focus {
    background-color: #000;
    color: #fff;
}

.ky-multi-list {
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.ky-multi-item-row {
    background: var(--bg-main);
    border: 1px solid var(--bg-main);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.ky-multi-info {
    flex: 1;
}

.ky-multi-name {
    font-weight: 700;
    font-size: 14px;
    display: block;
    margin-bottom: 4px;
}

.ky-multi-addons {
    font-size: 12px;
    color: #666;
    display: block;
}

/* NEW: Quantity Controls in Multi-Select */
.ky-multi-qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-container);
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 4px;
}

.ky-multi-qty-btn {
    background: var(--accent-color, #000);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.ky-multi-qty-btn:hover {
    opacity: 0.8;
    background-color: var(--accent-color);
    color: white;
}

.ky-multi-qty-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

.ky-multi-qty-value {
    font-weight: 600;
    font-size: 14px;
    min-width: 24px;
    text-align: center;
}

.ky-multi-actions {
    display: flex;
    gap: 8px;
}

.ky-action-btn {
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    outline: none;
}

/* Edit Button */
.ky-btn-edit { 
    background: #e0e7ff; 
    color: #4338ca; 
}
.ky-btn-edit:hover { 
    background: #c7d2fe;
    color: #3730a3;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(67, 56, 202, 0.2);
}
.ky-btn-edit:active { 
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(67, 56, 202, 0.2);
}
.ky-btn-edit:focus {
    box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.3);
}

/* Remove Button */
.ky-btn-remove { 
    background: #fee2e2; 
    color: #dc2626; 
}
.ky-btn-remove:hover { 
    background: #fecaca;
    color: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}
.ky-btn-remove:active { 
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(220, 38, 38, 0.2);
}
.ky-btn-remove:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.3);
}
button#ky-add-fresh-item-btn{
    background-color: var(--accent-color);
    color: var(--bg-container);
}


/* --- SEARCH BAR STYLES --- */

/* 1. Layout Container */
.menu-nav-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 24px;
    height: 100%;
}

/* 2. Adjust Scroll Section Width */
.menu_scroll .scroll-container {
    flex: 0 0 65%;
    width: 65%;
    border-right: 1px solid #eee;
    padding-right: 60px;
    margin: 0;
}

/* 3. Search Container */
.menu-search-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 6rem;
}

/* 4. Input Field */
.menu-search-input {
    width: 100% !important;
    height: 45px;
    padding: 0 45px 0 45px !important;
    border-radius: 50px !important;
    border: 1px solid transparent !important;
    background-color: #f3f4f6;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: none;
}
.menu-search-input::placeholder { color: #9ca3af; }
.menu-search-input:focus {
    background-color: #ffffff;
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    outline: none;
}

/* 5. Icons */
.search-icon-overlay {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 16px;
    pointer-events: none;
    transition: color 0.3s ease;
}
.menu-search-input:focus + .search-icon-overlay { color: var(--accent-color); }

.clear-search-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    cursor: pointer;
    display: none; /* Hidden by default */
    font-size: 16px;
    transition: all 0.2s ease;
    padding: 5px; 
}
.clear-search-btn:hover { color: #dc3545; transform: translateY(-50%) scale(1.1); }

/* 6. Mobile Responsiveness */
@media (max-width: 992px) {
    .menu-nav-wrapper {
        flex-direction: column-reverse;
        gap: 0px;
        padding: 0 1rem;
    }
    .menu_scroll .scroll-container {
        flex: auto;
        width: 100%;
        border-right: none;
        padding: 0px 40px;
        min-height: 40px;
        display: flex;
        align-items: center;
    }
    .scroll-btn-left
 {
    left: 0rem;
 }
 .scroll-btn-right{
    right: 0rem;
 }
    .menu-search-container {
        width: 100%;
        padding-right: 0;
        margin-right: 0;
         margin: 35px 2px;   /* prevent sticking to top */
        margin-block: 35px 10px;
        padding: 0;
    }
}

/* Order Timing Selection in Summary Box */
.order-timing-selection {
    margin: 20px 0;
}

.timing-button-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.timing-btn {
    padding: 12px 16px;
    border: 2px solid var(--accent-color) !important;
    background: var(--card-bg, #fff) !important;
    border-radius: 5rem !important;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-color) !important;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    outline: none;
}

.timing-btn:hover,
.timing-btn:focus {
    border-color: var(--accent-color) !important;
    background: var(--light-gray-bg, #f8f8f8) !important;
    color: var(--accent-color) !important;
    outline: none;
}

.timing-btn:active {
    background: var(--light-gray-bg, #f8f8f8) !important;
}

.timing-btn.active {
    border-radius: 5rem;
    background: var(--accent-color) !important;
    color: var(--accent-contrast-text, #fff) !important;
    border-color: var(--accent-color) !important;
}

.timing-btn.active:hover,
.timing-btn.active:focus {
    background: var(--accent-color) !important;
    color: var(--accent-contrast-text, #fff) !important;
    opacity: 0.9;
}

#selectedScheduleDisplay {
    background: var(--light-gray-bg, #f5f5f5);
    border-radius: 8px;
    padding: 12px;
    margin-top: 12px;
}

#selectedScheduleDisplay .schedule-info {
    margin: 0;
    font-size: 13px;
    color: var(--primary-text, var(--accent-color));
    display: flex;
    align-items: center;
    gap: 8px;
}

#selectedScheduleDisplay .schedule-info i {
    color: var(--accent-color, #000);
    font-size: 16px;
}

#displayScheduleTime {
    font-weight: 600;
    color: var(--primary-text, var(--accent-color));
}

/* Ensure checkout button is below timing */
.checkout_btn {
    width: 100%;
    margin-top: 15px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .timing-button-group {
        grid-template-columns: 1fr;
    }
    
    .timing-btn {
        font-size: 13px;
        padding: 10px 12px;
    }
}

/* --- SEARCH RESULT & LOADER STYLES --- */

/* 1. The Search Title (Matches "STARTERS" style) */
.search-results-title {
    display: block !important; /* Force show */
    font-size: 28px;
    font-weight: 800; /* Extra bold like screenshot */
    color: var(--primary-text);
    text-transform: uppercase;
    margin-bottom: 20px !important;
    padding-top: 10px;
    
    /* THE UNDERLINE */
    border-bottom: 4px solid var(--accent-color); /* Thicker line */
    width: max-content; /* Only spans text width */
    line-height: 1.2;
}

/* 2. The Loading Animation Container */
.search-loading-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px; /* Give it height so you see it! */
    width: 100%;
    color: #888;
}

/* 3. The Spinner Icon */
.search-loading-view i {
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--accent-color); /* Use your theme color */
}

/* 4. The Loading Text */
.search-loading-view p {
    font-size: 16px;
    font-weight: 500;
}
.clear-cart-btn {
    background: transparent;
    border: 1px solid #dc3545; /* Red border */
    color: #dc3545; /* Red text */
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.clear-cart-btn:hover {
    background: #dc3545;
    color: rgb(4, 0, 0);
}

.clear-cart-btn i {
    font-size: 12px;
}
/* Fix for Windows Laptop Z-Index Fighting */
/* .pfm-checkmark-badge {
    z-index: 9999 !important; 
    position: absolute !important;
    pointer-events: auto !important; 
    cursor: pointer !important;
} */

/* Ensure the dark overlay doesn't block clicks */
.grid-img-overlay {
    pointer-events: none !important;
    z-index: 1 !important;
}

/* --- Fix for Multi-Select Popup on Mobile --- */
@media (max-width: 600px) {
    /* 1. Make the modal wider on mobile */
    .pfm-modal-content.medium-modal {
        width: 95% !important;
        max-width: 95% !important;
        padding: 15px !important;
        margin: auto;
    }

    /* 2. Stack the item row vertically instead of horizontally */
    .ky-multi-item-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        background: #f9f9f9; /* Slight background to separate items */
    }

    /* 3. Give the info section full width and add a divider */
    .ky-multi-info {
        width: 100%;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 8px;
    }

    .ky-multi-name {
        font-size: 16px !important;
        margin-bottom: 4px;
        display: flex;
        justify-content: space-between;
    }

    /* 4. Make the quantity controls full width and centered */
    .ky-multi-qty-controls {
        width: 100%;
        justify-content: center;
        background: none;
        border: none;
        padding: 8px;
    }

    .ky-multi-qty-btn {
        width: 35px !important;
        height: 35px !important;
        font-size: 18px !important;
    }

    /* 5. Make the action buttons (Edit/Remove) full width grid */
    .ky-multi-actions {
        width: 100%;
        display: grid !important;
        grid-template-columns: 1fr 1fr; /* Side by side */
        gap: 10px;
    }

    .ky-action-btn {
        width: 100%;
        text-align: center;
        padding: 10px !important;
        font-size: 14px !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
/* --- SOLD OUT / UNAVAILABLE OVERLAY --- */

.card {
    position: relative !important;
    overflow: hidden;
}
/* Container positioning for the overlay */
.card.sold-out {
    position: relative !important;
    cursor: not-allowed !important;
    pointer-events: none !important; /* Prevents clicks on sold out items */
}

/* The semi-transparent "frost" overlay */
.pfm-status-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(255, 255, 255, 0.1) !important;
    /* backdrop-filter: blur(3px) !important; */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 100 !important;
    border-radius: 10px !important;
}

/* The "SOLD OUT" text banner */
.pfm-status-overlay span {
    background: red !important; /* Black banner */
    color: #ffffff !important;      /* White text */
    padding: 10px 20px !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4) !important;
    transform: rotate(-5deg) !important; /* Stamped effect */
    white-space: nowrap !important;
}

/* Fade the actual card content for sold out items */
.card.sold-out .card_img, 
.card.sold-out .card_info {
    opacity: 0.4 !important;
    filter: grayscale(0.8) !important;
}

/* Ensure the checkmark doesn't show over the Sold Out banner */
.card.sold-out .pfm-checkmark-badge {
    display: none !important;
}
/* Force the dropdown on top, but let Google control the visibility */
.pac-container {
    z-index: 99999 !important;
}

button.address-save-btn {
    color: #fff !important;
}
.defaultAddresspopup{
    display: flex;
    gap: 1rem;
}
input#popupDefualtAddress {
    width: 20% !important;
}

/* --- CATEGORY GRID CONTAINER --- */
.category-visual-grid {
    display: grid;
    gap: 20px;
    padding: 15px; /* Side padding */
    width: 100%;
    /* max-width: 1400px; */
    margin: 0 auto;
    
    /* Default Mobile: 1 column */
    grid-template-columns: 1fr;
    animation: fadeIn 0.6s ease-out;
}

/* --- THE "MENU" HEADING --- */
.category-page-header {
    width: 100%;
    /* max-width: 1400px; */
    margin: 80px auto 10px auto;
    padding: 0 90px;
    text-align: left; /* Or center if you prefer */
}

.category-page-header h1 {
    font-family: 'Poppins', sans-serif;
    /* font-size: 24px; */
     font-size: clamp(20px, 4vw, 32px); 
    font-weight: 800;
    color: var(--primary-text);
    text-transform: uppercase;
    letter-spacing: 0px;
    margin: 0;
    position: relative;
    display: inline-block;
}

/* Optional underline for the heading */
.category-page-header h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin-top: 5px;
    border-radius: 2px;
}

/* --- CARD STYLING --- */
.category-visual-card {
    position: relative;
    height: 250px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    /* background-color: #f5f5f5; */
}

.category-visual-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.category-visual-card img {
    width: 100%;
    height: 86%;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.category-visual-card:hover img {
    transform: scale(1.08);
}

.category-visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 5px;
}

.category-visual-title {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    margin: 0 !important;
}

/* --- RESPONSIVE LAYOUTS --- */

/* Tablet: 2 Columns */
@media (min-width: 768px) {
    .category-visual-grid {

       grid-template-columns: 2fr 1fr;

        padding: 20px 30px;
    }
}



/* Desktop: Your requested 2fr 1fr 1fr layout */

@media (min-width: 1024px) {

    .category-visual-grid {

        /* This creates the asymmetrical grid: Wide, Narrow, Narrow */



        /* grid-template-columns: 2fr 1fr 1fr; */

        display: grid;

        grid-template-columns: repeat(2, 1fr);

         padding: 20px 90px;

         gap: 20px;
    }

         /* Make the first item taller or different if desired, 

       but for now, it just follows the column width */

    .category-visual-card {


        height: 200px;

    }

}

@media (min-width: 1024px) {

    /* All cards */

    .category-visual-card {

        height: 195px;

    }
}


 /* First card – smaller height */

    .category-visual-card:first-child {

        height: 215px; /* adjust as you like */

    }

     .skeleton-grid-container .skeleton-box:first-child {

        grid-column: 1 / -1; 

        height: 280px; /* Match first card height if needed */
     }


      /* Remaining skeleton boxes stay in 2-column layout */

    .skeleton-grid-container .skeleton-box:not(:first-child) {

        grid-column: auto;

        height: 250px; /* Match other cards */

    }


    /* FIRST CHILD DIFFERENT FROM OTHER */
    @media (min-width: 1024px) {

    .category-visual-card:first-child {

        grid-column: 1 / -1; /* spans full row */

        height: 220px; /* adjust if needed */
    }
}

@media (min-width: 1024px) {

    /* All cards */

    .category-visual-card {

        height: 195px;
    }
}

 /* First card – smaller height */

    .category-visual-card:first-child {

        height: 220px; /* adjust as you like */
    }

    @media (min-width: 1024px) {

    .category-visual-card:not(:first-child) {

        grid-column: auto;
    }
}

 /* Make the first item taller or different if desired, 

       but for now, it just follows the column width */

    .category-visual-card {

        height: 195px;
    }

    .ky-qv-image-col img {

        max-width: 100%;

    height: auto; /* scales proportionally */

    max-height: 200px; /* keeps size consistent */

    }


    .category-visual-grid {

    display: grid;

    gap: 20px;

    grid-template-columns: 1fr; /* mobile: single column */

}



/* First card spans full width always */

.category-visual-card:first-child {

    grid-column: 1 / -1;
}


/* Mobile: second and third card side by side */

@media (max-width: 767px) {

    .category-visual-grid {

        grid-template-columns: 1fr; /* default mobile */
    }
}


/* Tablet: 2 columns for remaining cards */

@media (min-width: 768px) {

    .category-visual-grid {

        grid-template-columns: 1fr 1fr;
    }


  /* Ensure first card spans both columns */

    .category-visual-card:first-child {

        grid-column: 1 / -1;
    }

}


  .category-visual-card:first-child {

        grid-column: 1 / -1; 

        height: 220px; }
  

        .card-info-icon-overlay {

    position: absolute;

    top: 450px;

    right: 10px;

    width: 28px;

    height: 28px;

    background-color: #ffffff;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    z-index: 5;

    /* Above the image but below badges/popups */

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);

    cursor: pointer;

    color: var(--accent-color);

    transition: transform 0.2s ease;

}


.ky-cart-body #new-ky-cart-body{
    display: none;
    width: 100%;
    max-width: 1490px;
    margin: 0 auto;
}



.ky-cart-wrapper {
    display: flex;
    justify-content: center; /* centers content */
    padding: 20px;
}
.ky-cart-left-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;

    width: 85%;
    max-width: 85%;   /* prevents over-stretch on large screens */
    min-width: 0;

    background-color: #ffffff;
    padding: 20px;
    border-radius: 20px;

    margin: 0 auto; /* ✅ responsive centering */
}
@media (max-width: 768px) {
    .ky-cart-left-col {
        width: 100%;
        padding: 16px;
        border-radius: 14px;
    }
}

#cartUpsellSection {
    border-top: none !important;
}
#cartUpsellSection::before,
#cartUpsellSection::after {
    content: none !important;
    display: none !important;
}
.ky-cart-right-col {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

/* Push checkout to the right */
.checkout_btn {
    margin-left: auto;
}
.clear-cart-btn {
    background: transparent !important;
    border:1px solid black !important;
    box-shadow: none !important;
    padding: 15px !important;
    color: #dc3545;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.clear-cart-btn:hover {
    text-decoration: underline;
}

.cart_summary {
    display: inline-flex;
    align-items: center;
    gap: 16px;

    height: auto;
    min-height: unset;
    max-height: unset;

    padding: 16px;
}







/* 1. The Container Bar */
.cart_summary {
    display: flex !important;       /* Force display (overriding your inline style) */
    justify-content: space-between; /* Pushes buttons to far left and right */
    align-items: center;            /* Centers them vertically */
    padding: 20px ;                /* Vertical spacing */
    background-color: #fff;         /* White background */
    border-top: 1px solid #f0f0f0;  /* Subtle divider line at the top */
    width: 100%;
    margin-top: 20px;
    padding: 50px;
    height: 50px;
}

/* 2. 'Clear Cart' Button (Left) */
#clearCartBtn {
    background-color: #fff;       /* White background */
    border: 1px solid #0c0000;    /* Light gray border */
    border-radius: 50px;          /* Fully rounded pill shape */
    padding: 12px 24px;
    color: #c60404;                  /* Black text */
    font-weight: bold;
    font-size: 20px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.2s;
    /* Clean up: removes default button styles */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Optional: Hide the trash icon to match your reference image exactly */
#clearCartBtn i {
    display: none; 
}

#clearCartBtn:hover {
    border-color: #000; 
    color: #000;          /* Darkens border on hover */
}

/* 3. 'Checkout' Button (Right) */
.checkout_btn {
    background-color: #000;       /* Black background */
    color: #fff;                  /* White text */
    border: none;
    border-radius: 50px;          /* Pill shape */
    padding: 12px 30px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    
    /* Layout inside the button to separate Text and Price */
    display: flex;
    justify-content: space-between; 
    align-items: center;
    min-width: 300px;             /* Fixed width to look like the image */
}

.checkout_btn:hover {
    opacity: 0.9;
}











.checkout_btn {
    margin-bottom: 20px; /* Adjust this number to increase/decrease the gap */
}
/* =========================================
   CART FOOTER CONTAINER
   ========================================= */
.cart_summary {
    display: flex !important;       /* Force flexbox layout */
    justify-content: space-between; /* Pushes buttons to far left/right */
    align-items: center;            /* Centers them vertically */
    padding: 40px ;                /* Vertical breathing room */
    background-color: #fff;         /* Clean white background */
    border-top: 1px solid #f2f2f2;  /* Very subtle divider line */
    margin-top: 100px;               /* Pushes to bottom of container */
    width: 100%;

}

/* =========================================
   CLEAR CART BUTTON (White Pill)
   ========================================= */
#clearCartBtn {
    /* Shape & Color */
    background-color: #fff;
    border: 1px solid #e0e0e0;      /* Light gray border */
    border-radius: 100px;           /* Perfect pill shape */
    color: #000;
    
    /* Typography */
    font-size: 13px;
    font-weight: 700;               /* Bold */
    text-transform: uppercase;      /* "CLEAR CART" */
    letter-spacing: 0.5px;
    
    /* Size & Layout */
    padding: 14px 24px;
    cursor: pointer;
    white-space: nowrap;            /* Prevents text wrapping */
    transition: all 0.2s ease;
    
    /* Remove any default icon margins if icons exist */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#clearCartBtn:hover {
    border-color: #000;             /* Darken border on hover */
    background-color: #fafafa;
}

/* =========================================
   CHECKOUT BUTTON (Black Split Pill)
   ========================================= */
.checkout_btn {
    /* Shape & Color */
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 100px;           /* Perfect pill shape */
    
    /* Size */
    padding: 16px 32px;             /* Taller than clear cart */
    min-width: 320px;               /* Fixed width to match your image */
    
    /* Typography */
    font-size: 14px;
    font-weight: 800;               /* Extra Bold */
    
    /* THE SPLIT LAYOUT (Important!) */
    display: flex;
    justify-content: space-between; /* Pushes Text left, Price right */
    align-items: center;
    
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.checkout_btn:hover {
    opacity: 0.9;
}

/* Style the text inside specifically */
.checkout_btn .btn-text {
    text-transform: uppercase;
}

.checkout_btn .btn-price {
    font-weight: 700;
}

/* =========================================
   PROPER RESPONSIVE CART FIX (Tabs & Phones)
   ========================================= */

/* Targeted at Tablets and smaller (1024px and down) */
@media screen and (max-width: 1024px) {
    
    /* 1. Reset the Full Page Cart Container */
    #ky-full-page-cart {
        overflow-y: auto !important;
        background: var(--bg-color) !important;
    }

    .ky-cart-container {
        width: 100% !important;
        height: 100vh !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* 2. Force the side-by-side columns to stack vertically */
    .ky-cart-body {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        overflow-y: visible !important;
        padding: 0 !important;
    }

    /* 3. Set columns to 100% width and remove side-by-side flex constraints */
    .ky-cart-left-col, 
    .ky-cart-right-col {
        width: 100% !important;
        flex: none !important;
        padding: 15px !important;
        display: block !important;
    }

    /* 4. Overwrite the layout-breaking button width */
    .checkout_btn {
        min-width: 100% !important; /* Forces it to stay inside the screen */
        width: 100% !important;
        margin-top: 15px !important;
        padding: 16px !important;
        justify-content: space-around !important; /* Centers text/price nicely */
    }

    /* 5. Fix Summary Positioning (remove sticky/fixed) */
    .cart_summary {
        position: static !important;
        width: 100% !important;
        margin-top: 20px !important;
        border-top: 1px solid var(--border-color);
        background: var(--container-bg);
    }

    /* 6. Fix "People also bought" Section */
    #cartUpsellSection {
        margin-top: 20px !important;
        /* padding: 10px !important; */
    }

    .upsell-scroll-container {
        display: flex !important;
        overflow-x: auto !important;
        gap: 10px !important;
        padding-bottom: 10px !important;
    }

    /* 7. Ensure images don't stretch */
    .cart_item_img img {
        width: 60px !important;
        height: 60px !important;
    }
}

/* Specific Phone Overrides (Under 480px) */
@media screen and (max-width: 480px) {
    .ky-cart-header h2 {
        font-size: 1.2rem !important;
    }

    /* Make buttons easier to tap on small phones */
    .clear-cart-btn, .checkout_btn {
        font-size: 14px !important;
        height: 50px !important;
    }

    /* Total text should be prominent */
    .summary_row#cart-grand-total span {
        font-size: 1.1rem !important;
        font-weight: 800 !important;
    }
}
/* =========================================
   SIDE-BY-SIDE BUTTONS FIX (Tabs & Phones)
   ========================================= */

@media screen and (max-width: 1024px) {
    /* Container for both buttons */
    .cart_summary {
        display: flex !important;
        flex-direction: row !important; /* Forces same line */
        align-items: center !important;
        gap: 10px !important;           /* Space between buttons */
        padding: 15px !important;
        width: 100% !important;
    }

    /* The "Clear Cart" button */
    .clear-cart-btn {
        flex: 0 0 auto !important;      /* Keep its size based on content */
        margin: 0 !important;
        white-space: nowrap !important; /* Prevent text wrapping */
        padding: 12px 15px !important;
    }

    /* The "Checkout" button */
    .checkout_btn {
        flex: 1 1 auto !important;      /* Take up all remaining space */
        min-width: 0 !important;        /* Allow it to shrink below 320px */
        width: auto !important;         /* Let flexbox handle width */
        margin: 0 !important;
        padding: 12px 15px !important;  /* Balanced padding for mobile */
        
        /* Keep your split layout (Text left, Price right) */
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
}

/* Safety for very small phones to prevent text overlap */
@media screen and (max-width: 400px) {
    .checkout_btn, .clear-cart-btn {
        font-size: 12px !important;
        padding: 10px 8px !important;
    }
}

/* =========================================
   CART FIXES - POLISHED & PROFESSIONAL
   ========================================= */

/* =========================================
   FIX 1: PROPER ARROW BACK BUTTON
   ========================================= */
.ky-cart-close-btn {
    background: #f5f5f5 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    color: #333 !important;
    padding: 0 !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    font-size: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

.ky-cart-close-btn::before {
    content: '←';
    font-size: 24px;
    font-weight: 400;
    color: #333;
    line-height: 1;
    padding-bottom: 5px;
}

.ky-cart-close-btn:hover {
    background: #e8e8e8 !important;
    border-color: #ccc !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    transform: translateX(-2px) !important;
}

.ky-cart-close-btn:hover::before {
    color: #000;
}

.ky-cart-close-btn:active {
    transform: translateX(-2px) scale(0.95) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
}

/* =========================================
   FIX 2: STICKY BAR - POLISHED DESIGN
   ========================================= */
.ky-cart-container {
    padding-bottom: 120px !important;
    margin-bottom: 20px !important;
    background: #ffffff !important; /* White background */
    /* box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
    border-radius: 12px !important; */
    padding-top: 20px !important;
}

/* FIX: Change ALL gray sections to white */
.ky-cart-header {
    background: #ffffff !important; /* Changed from #f8f9fa to white */
}

.ky-cart-body {
    background-color: #ffffff !important; /* Changed from gray to white */
}

.ky-cart-left-col {
    background-color: #ffffff !important; /* White background */
}

#cartItems {
    background-color: #ffffff !important; /* White background */
}

.pfm-cart-item {
    background: #ffffff !important; /* White background for cart items */
}

/* Hide the extra empty sections at bottom */
.ky-cart-body::after,
.ky-cart-left-col::after {
    display: none !important;
}

/* STICKY BAR - Full width with strong shadow */
.cart_summary {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    z-index: 1000 !important;
    
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18) !important;
    
    padding: 20px 10% !important;
    margin: 0 !important;
    border-top: 2px solid #f0f0f0 !important;
    border-radius: 0 !important;
    min-height: 90px !important;
    
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 16px !important;
}

/* CLEAR CART BUTTON - FORCED to Bottom LEFT */
#clearCartBtn {
    border-radius: 8px !important;
    border: 2px solid #e5e5e5 !important;
    background: #ffffff !important;
    
    padding: 16px 32px !important;
    min-width: 140px !important;
    height: 56px !important;
    
    color: #666 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    margin-right: auto !important; /* FORCE to left */
    
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

#clearCartBtn:hover {
    border-color: #999 !important;
    color: #333 !important;
    background: #f9f9f9 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-1px) !important;
}

#clearCartBtn:active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06) !important;
}

/* CHECKOUT BUTTON - FORCED to Bottom RIGHT */
.checkout_btn {
    border-radius: 8px !important;
    border: none !important;
    background: var(--accent-color) !important;
    
    padding: 16px 42px !important;
    min-width: 300px !important;
    max-width: 450px !important;
    height: 56px !important;
    
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    
    display: inline-flex !important;
    /* justify-content: space-between !important; */
    justify-content: center !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    margin-left: auto !important; /* FORCE to right */
    
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}

.checkout_btn:hover {
    /* background: #1a1a1a !important; */
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35) !important;
    transform: translateY(-2px) !important;
}

.checkout_btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

/* Price styling inside checkout */
.checkout_btn .btn-price {
    font-weight: 900 !important;
    font-size: 16px !important;
}


/* =========================================
   COMPREHENSIVE WHITE BACKGROUND FIX
   ========================================= */

/* Force ALL sections to white background */
#cartUpsellSection {
    background-color: #ffffff !important;
}

.cart_summary {
    background-color: #ffffff !important;
}

#cart-grand-total {
    background-color: #ffffff !important;
}

.summary_row {
    background-color: transparent !important;
}

/* Ensure upsell section is white */
.upsell-section-wrapper {
    background-color: #ffffff !important;
}

/* Cart items white background */
.pfm-cart-item {
    background-color: #ffffff !important;
}

/* Guest details form white */
.guest-details-form {
    background-color: #ffffff !important;
}

/* People also bought section white */
#cartUpsellSection,
.upsell-scroll-container,
.upsell-card {
    background-color: #ffffff !important;
}

/* =========================================
   FIX 3: WIDTH CONTROL - REDUCED TO 65%
   ========================================= */
#ky-full-page-cart {
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: hidden !important;
    background-color: #ffffff !important; /* White page background */
}

.ky-cart-container {
    max-width: 1000px !important; /* Reduced max-width */
    width: 65% !important; /* REDUCED from 70% to 65% */
    margin-left: auto !important;
    margin-right: auto !important;
    overflow-x: hidden !important;
}

.ky-cart-body {
    max-width: 100% !important;
    /* overflow-x: hidden !important; */
    /* padding-left: 20px !important;
    padding-right: 20px !important; */
    background-color: #ffffff !important; /* White background */
}

.ky-cart-left-col {
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: hidden !important;
    background-color: #ffffff !important; /* White background */
    /* padding: 20px !important; */
    border-radius: 12px !important;
    padding-left: 8%;
    padding-right: 10%;
}

.upsell-scroll-container {
    max-width: 100% !important;
    overflow-x: auto !important;
}

/* =========================================
   FIX 4: RESPONSIVE DESIGN
   ========================================= */

/* Tablet (992px and below) */
@media (max-width: 992px) {
    .ky-cart-container {
        width: 90% !important;
        padding: 0 15px !important;
        padding-bottom: 100px !important; /* Adjusted for bar height */
    }

    .cart_summary {
        padding: 18px 5% !important;
        gap: 12px !important;
        min-height: 85px !important;
    }

    #clearCartBtn {
        padding: 14px 24px !important;
        font-size: 12px !important;
        min-width: 120px !important;
        height: 52px !important;
    }

    .checkout_btn {
        padding: 14px 30px !important;
        font-size: 13px !important;
        min-width: 240px !important;
        height: 52px !important;
    }

    .pfm-cart-item {
        grid-template-columns: 70px 1fr auto !important;
        grid-template-areas:
            "image details price"
            "controls controls controls" !important;
        gap: 12px !important;
        padding: 15px !important;
    }

    .pfm-cart-item-image {
        width: 70px !important;
        height: 70px !important;
    }

    .pfm-cart-item-controls {
        flex-direction: row !important;
        justify-content: space-between !important;
        width: 100% !important;
        border-top: 1px solid #f0f0f0;
        padding-top: 10px !important;
        margin-top: 5px !important;
        gap: 12px !important;
    }
}

/* Mobile (600px and below) */
@media (max-width: 600px) {
    .ky-cart-container {
        width: 95% !important;
        padding: 0 10px !important;
        padding-bottom: 95px !important; /* Adjusted for bar height */
    }

    .cart_summary {
        padding: 15px 2.5% !important;
        gap: 10px !important;
        min-height: 80px !important;
    }

    #clearCartBtn {
        padding: 13px 20px !important;
        font-size: 11px !important;
        min-width: 110px !important;
        height: 50px !important;
    }

    .checkout_btn {
        padding: 13px 22px !important;
        font-size: 12px !important;
        min-width: 190px !important;
        height: 50px !important;
    }

    .pfm-cart-item {
        grid-template-columns: 60px 1fr !important;
        grid-template-areas:
            "image details"
            "price price"
            "controls controls" !important;
        gap: 10px !important;
        padding: 12px !important;
    }

    .pfm-cart-item-image {
        width: 60px !important;
        height: 60px !important;
    }
}

/* Very small phones (400px and below) */
@media (max-width: 400px) {
    .checkout_btn {
        font-size: 11px !important;
        padding: 11px 16px !important;
        min-width: 160px !important;
    }
    
    #clearCartBtn {
        font-size: 10px !important;
        padding: 11px 14px !important;
        min-width: 90px !important;
    }
}

/* =========================================
   PREVENT HORIZONTAL OVERFLOW + WHITE BACKGROUNDS
   ========================================= */
body,
html {
    overflow-x: hidden !important;
    max-width: 100% !important;
    background-color: #ffffff !important; /* Pure white */
}

* {
    max-width: 100%;
}

/* Ensure everything is white */
#ky-full-page-cart {
    background-color: #ffffff !important;
}

.ky-cart-body {
    background-color: #ffffff !important;
}

/* Hide any extra empty gray boxes */
.ky-cart-body > div:empty,
.ky-cart-left-col > div:empty {
    display: none !important;
}

/* Force white background on all cart sections */
#new-ky-cart-body {
    background-color: #ffffff !important;
}

.ky-cart-wrapper {
    background-color: #ffffff !important;
}

.ky-cart-right-col {
    background-color: #ffffff !important;
}

/* =========================================
   HEADER SPACING AND BACKGROUND
   ========================================= */
.ky-cart-header {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 30px 100px !important;
    background: #ffffff !important; /* WHITE background, not gray */
    border-bottom: 1px solid #f0f0f0 !important; /* Subtle separator */
}

.ky-cart-header .cart_title {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: var(--primary-text) !important;
    margin: 0 !important;
}

@media (max-width: 768px) {
    .ky-cart-header {
        padding: 20px 15px !important;
        gap: 12px !important;
        background: #ffffff !important;
    }
}

/* ✅ FIXED: Dynamic height for auth card */
.auth-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    overflow: visible; /* Changed from hidden to visible */
    min-height: auto; /* Allow dynamic height */
}

/* Ensure auth content takes proper height */
.auth-content {
    display: none;
    padding: 40px 40px 40px 40px;
    animation: fadeIn 0.3s ease;
    min-height: 400px; /* Minimum height to prevent jumpiness */
}

.auth-content.active {
    display: block;
}

/* =========================================
   MOBILE STICKY BAR FIX - CRITICAL
   Add this to the END of your CSS file
   Force bar to bottom on ALL mobile devices
   ========================================= */

/* Main sticky bar positioning fix - Override checkout CSS conflicts */
.cart_summary {
    /* Override any inherited positioning from checkout CSS */
    top: auto !important;
    transform: none !important;
    -webkit-transform: none !important;
    -moz-transform: none !important;
    -ms-transform: none !important;
    inset-block-start: auto !important; /* CSS logical property override */
    inset-block-end: 0 !important; /* CSS logical property override */
}

/* Ultra-strong mobile overrides at every breakpoint */
@media (max-width: 1200px) {
    .cart_summary {
        position: fixed !important;
        bottom: 0 !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        transform: translate3d(0, 0, 0) !important;
        -webkit-transform: translate3d(0, 0, 0) !important;
    }
}

@media (max-width: 992px) {
    .cart_summary {
        position: fixed !important;
        bottom: 0 !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        transform: translate3d(0, 0, 0) !important;
        -webkit-transform: translate3d(0, 0, 0) !important;
    }
}

@media (max-width: 768px) {
    .cart_summary {
        position: fixed !important;
        bottom: 0 !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        transform: translate3d(0, 0, 0) !important;
        -webkit-transform: translate3d(0, 0, 0) !important;
    }
}

@media (max-width: 600px) {
    .cart_summary {
        position: fixed !important;
        bottom: 0 !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        transform: translate3d(0, 0, 0) !important;
        -webkit-transform: translate3d(0, 0, 0) !important;
    }
}

@media (max-width: 480px) {
    .cart_summary {
        position: fixed !important;
        bottom: 0 !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        transform: translate3d(0, 0, 0) !important;
        -webkit-transform: translate3d(0, 0, 0) !important;
    }
}

/* Additional override for any inline styles or JavaScript modifications */
body .cart_summary,
body #ky-full-page-cart .cart_summary,
.ky-cart-container .cart_summary,
.pfc-container .cart_summary {
    position: fixed !important;
    bottom: 0 !important;
    top: auto !important;
    transform: none !important;
}

/* Override for WordPress/Elementor/Theme/Checkout inline styles */
.cart_summary[style*="position"],
.cart_summary[style*="top"],
.cart_summary[style*="transform"] {
    position: fixed !important;
    bottom: 0 !important;
    top: auto !important;
    transform: none !important;
}

/* iOS Safari specific fix - respects safe area */
@supports (-webkit-touch-callout: none) {
    .cart_summary {
        position: fixed !important;
        bottom: 0 !important;
        bottom: env(safe-area-inset-bottom) !important;
        top: auto !important;
    }
}

/* Android Chrome specific fix */
@supports not (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        .cart_summary {
            position: fixed !important;
            bottom: 0 !important;
            top: auto !important;
        }
    }
}

/* Ensure proper z-index on mobile to stay above content */
@media (max-width: 768px) {
    .cart_summary {
        z-index: 1000 !important;
    }
}

/* .pfm-top-bar{
display : none !important;
} */

.pfm-cart-icon-btn i {
  display: flex;
  justify-content: center;
}


/* =========================================
   END OF MOBILE STICKY BAR FIX
   ========================================= */


   /* =========================================
   MOBILE DOUBLE SCROLL FIX
   ========================================= */

/* 1. The outer cart page — single scroll source */
#ky-full-page-cart {
    height: auto !important;          /* don't force viewport height */
    overflow-y: visible !important;   /* let the body handle scrolling */
}

.ky-cart-container {
    height: auto !important;          /* remove 100vh that creates inner scroll */
    min-height: auto !important;
    overflow-y: visible !important;   /* no independent scroll here */
}

/* 2. Kill scroll on the inner column — it should just stack naturally */
.ky-cart-left-col {
    overflow-y: visible !important;
    max-height: none !important;
}

#cartItems {
    overflow-y: visible !important;
    max-height: none !important;
}

/* 3. The body/html is the ONE true scroller */
body, html {
    overflow-x: hidden !important;
    overflow-y: auto !important;      /* single source of vertical scroll */
}

/* 4. Ensure the fixed sticky bar doesn't get scrolled away */
.cart_summary {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
}

/* 5. Padding-bottom on the container so content isn't hidden behind the fixed bar */
.ky-cart-body {
    padding-bottom: 100px !important; /* ~height of the sticky bar */
}


/* =========================================
   FIX: REMOVE EXCESS BOTTOM GAP +
   CART BODY EDGE-TO-EDGE INSIDE CONTAINER
   ========================================= */

/* 1. Kill the giant margin-top that was pushing cart_summary down in flow */
.cart_summary {
    margin-top: 0 !important;
}

/* 2. Container: only enough bottom pad to clear the fixed bar, nothing more */
.ky-cart-container {
    padding-bottom: 100px !important; /* just clears the fixed sticky bar */
    margin-bottom: 0 !important;
}

/* 3. Cart body: remove the extra 100px pad (container already handles it) */
.ky-cart-body {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    padding-left: 65px;
    padding-right: 65px;
}

/* 4. Left col: stretch edge-to-edge, kill inset padding & border-radius */
.ky-cart-left-col {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 20px !important;   /* uniform small gutters only */
    padding-right: 20px !important;
    border-radius: 0 !important;      /* flush with container walls */
    margin: 0 !important;
}

/* 5. Upsell section: no extra margin/pad below it — it's the last thing before the bar */
#cartUpsellSection {
    margin-bottom: 0 !important;
    padding-bottom: 10px !important;
}

/* 6. Mobile: same logic, tighter gutters */
@media (max-width: 992px) {
    .ky-cart-container {
        padding-bottom: 90px !important;
    }
    .ky-cart-left-col {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media (max-width: 600px) {
    .ky-cart-container {
        padding-bottom: 80px !important;
        padding-top: 10px !important ;
    }
    .ky-cart-left-col {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

#noThanksUpsellBtn {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 10px;
  background: transparent;
  border: none;
  color: #000;
  font-size: 17px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
#noThanksUpsellBtn:hover {
  color: #666;
}

.menu_menu #ky-full-page-cart {
    border-radius: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
}

body.loading-cart-open .menu_menu {
    visibility: hidden !important;
}

body.loading-cart-open #ky-full-page-cart {
    visibility: visible !important;
}

/* Prevent double padding on nested cart body */
.ky-cart-body > .ky-cart-body {
    padding: 10px !important;
}

.e-con-inner {
    padding-bottom: 80px !important;
}

.pfm-checkmark-badge .badge-qty {
    font-size: 12px;
    font-weight: 700;
    color: inherit;
    line-height: 1;
}

/* SweetAlert2 Button Fixes */
.swal2-popup .swal2-actions button.swal2-confirm {
    background-color: #dd3333 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 10px 24px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    min-width: 140px !important;
}

.swal2-popup .swal2-actions button.swal2-cancel {
    background-color: #ffffff !important;
    color: #dd3333 !important;
    border: 2px solid #dd3333 !important;
    padding: 10px 24px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    min-width: 140px !important;
}

.swal2-popup .swal2-actions button.swal2-confirm:hover {
    background-color: #c0392b !important;
}

.swal2-popup .swal2-actions button.swal2-cancel:hover {
    background-color: #fdf2f2 !important;
}


#clearCartBtn {
    background: transparent;
    color: #dd3333 !important;
    border: 2px solid #dd3333 !important;
    font-weight: 600;
    transition: all 0.2s ease;
}

#clearCartBtn:hover {
    background: #fdf2f2 !important;
    color: #dd3333 !important;
    border: 2px solid #dd3333 !important;
}

/* ensure arrows are visible */
.upsell-arrow {
    display: none;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    cursor: pointer;
}

/* left arrow */
.upsell-arrow.left {
    left: -10px;
}

/* right arrow */
.upsell-arrow.right {
    right: -10px;
}

/* container positioning fix */
.upsell-scroll-container {
    position: relative;
    overflow-x: auto !important;
    scroll-behavior: auto;
}

.left_side_menu,
.cart_item_main {
    padding-bottom: 60px;
}

@media (max-width: 768px) {
    .left_side_menu,
    .cart_item_main {
        padding-bottom: 80px;
    }
}

.pfm-container {
    padding-bottom: 80px;
}


/* Move qty controls to sit next to price */
.card-content-row {
    display: block;
}

.card-qty-container {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
}

.item-meta {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 8px !important;
}

/* Larger quantifiers on desktop */
@media (min-width: 769px) {
    .grid-qty-btn {
        width: 28px !important;
        height: 28px !important;
        font-size: 18px !important;
    }

    .grid-qty-value {
        font-size: 15px !important;
        min-width: 20px;
        text-align: center;
    }

    .grid-qty-selector {
        gap: 0.5rem !important;
    }
}

/* Fix hover — keep text white, not black */
.grid-qty-btn:hover,
.grid-qty-btn:focus {
    background-color: var(--dark-accent-color, #0f3d24) !important;
    color: var(--accent-contrast-text) !important;
}


/* ── DESKTOP ONLY: bigger fonts + bigger controls ── */

.pfm-cart-item {
    display: grid !important;
    grid-template-columns: 90px 1fr auto !important;
    grid-template-areas: "image details controls" !important;
    grid-template-rows: auto !important;
    gap: 0 20px !important;
    padding: 22px 32px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    background: #fff !important;
    margin-bottom: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    align-items: center !important;
}

.pfm-cart-item-image {
    grid-area: image !important;
    width: 90px !important;
    height: 90px !important;
    align-self: center !important;
}
.pfm-cart-item-image img {
    width: 90px !important;
    height: 90px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    display: block !important;
}

.pfm-cart-item-details {
    grid-area: details !important;
    align-self: center !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
}
.pfm-cart-item-title {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #111 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    white-space: normal !important;
}
.pfm-cart-item-addons {
    font-size: 14px !important;
    color: #888 !important;
    line-height: 1.6 !important;
}

/* Controls: price full row, then edit+delete+qty in one row below */
.pfm-cart-item-controls {
    grid-area: controls !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 8px !important;
    align-self: center !important;
    border-top: none !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
    min-width: 200px !important;
}

.pfm-cart-item-price {
    flex: 0 0 100% !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #111 !important;
    text-align: right !important;
    white-space: nowrap !important;
    order: 0 !important;
    margin-bottom: 8px !important;
    display: block !important;
}

.pfm-cart-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    order: 1 !important;
    flex: 0 0 auto !important;
}
.pfm-cart-icon-btn {
    width: 40px !important;
    height: 40px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #555 !important;
    font-size: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}
.pfm-cart-icon-btn:hover {
    border-color: #999 !important;
    color: #111 !important;
    background: #f9f9f9 !important;
}

.pfm-cart-quantity {
    display: flex !important;
    align-items: center !important;
    background: #f5f5f5 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 10px !important;
    padding: 3px !important;
    gap: 0 !important;
    order: 2 !important;
    flex: 0 0 auto !important;
}
.pfm-cart-qty-btn {
    width: 38px !important;
    height: 38px !important;
    font-size: 20px !important;
    border: none !important;
    background: transparent !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    color: #111 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    line-height: 1 !important;
}
.pfm-cart-qty-btn:hover:not(:disabled) {
    background: #e8e8e8 !important;
}
.pfm-cart-quantity span {
    min-width: 36px !important;
    text-align: center !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #111 !important;
}

/* ── MOBILE ≤ 768px — keep previous sizes ── */
@media (max-width: 768px) {
    .pfm-cart-item {
        grid-template-columns: 68px 1fr !important;
        grid-template-rows: auto auto !important;
        grid-template-areas:
            "image details"
            ". controls" !important;
        gap: 8px 12px !important;
        padding: 14px 16px !important;
        align-items: start !important;
    }

    .pfm-cart-item-image,
    .pfm-cart-item-image img {
        width: 68px !important;
        height: 68px !important;
    }

    .pfm-cart-item-title { font-size: 15px !important; }
    .pfm-cart-item-addons { font-size: 13px !important; }

    .pfm-cart-item-controls {
        justify-content: flex-start !important;
        border-top: 1px solid #f0f0f0 !important;
        padding-top: 10px !important;
        width: 100% !important;
        min-width: 0 !important;
        gap: 8px !important;
    }

    .pfm-cart-item-price {
        flex: 0 0 100% !important;
        font-size: 17px !important;
        text-align: right !important;
        margin-bottom: 6px !important;
        order: 0 !important;
    }

    .pfm-cart-quantity {
        order: 1 !important;
        margin-right: auto !important;
        border-radius: 10px !important;
        padding: 3px !important;
    }
    .pfm-cart-qty-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 18px !important;
    }
    .pfm-cart-quantity span {
        min-width: 32px !important;
        font-size: 15px !important;
    }

    .pfm-cart-actions { order: 2 !important; gap: 10px !important; }
    .pfm-cart-icon-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 14px !important;
        border-radius: 10px !important;
    }
}

@media (max-width: 400px) {
    .pfm-cart-item { grid-template-columns: 58px 1fr !important; padding: 12px !important; }
    .pfm-cart-item-image, .pfm-cart-item-image img { width: 58px !important; height: 58px !important; }
    .pfm-cart-item-title { font-size: 13px !important; }
    .pfm-cart-item-price { font-size: 15px !important; }
    .pfm-cart-qty-btn { width: 30px !important; height: 30px !important; }
    .pfm-cart-icon-btn { width: 34px !important; height: 34px !important; }
}


/* ── QUANTITY CONTROL — Grey container, white buttons ── */
.pfm-cart-quantity {
    display: flex !important;
    align-items: center !important;
    background: #f0f0f0 !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 4px !important;
    gap: 4px !important;
    box-shadow: none !important;
}

.pfm-cart-qty-btn {
    width: 36px !important;
    height: 36px !important;
    font-size: 18px !important;
    border: none !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    color: #111 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08) !important;
    transition: background 0.15s ease !important;
}

.pfm-cart-qty-btn:hover:not(:disabled) {
    background: #f5f5f5 !important;
}

.pfm-cart-quantity span {
    min-width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #111 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}


.pfm-cart-quantity {
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    background: #f0f0f0 !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 3px !important;
    gap: 4px !important;
    width: fit-content !important;
    flex-shrink: 0 !important;
}

.pfm-cart-qty-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    font-size: 16px !important;
    border: none !important;
    background: #ffffff !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    color: #111 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08) !important;
    transition: background 0.15s ease !important;
}

.pfm-cart-quantity span {
    min-width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #111 !important;
    background: transparent !important;
    border: none !important;
}


/* ── MOBILE ≤ 768px — Clean cart item layout ── */
@media (max-width: 768px) {
    .pfm-cart-item {
        display: grid !important;
        grid-template-columns: 68px 1fr auto !important;
        grid-template-rows: auto auto !important;
        grid-template-areas:
            "image details price"
            "image qty actions" !important;
        gap: 8px 12px !important;
        padding: 16px !important;
        align-items: start !important;
        border-bottom: 1px solid #f0f0f0 !important;
        margin-bottom: 0 !important;
        border-radius: 0 !important;
    }

    .pfm-cart-item-image {
        grid-area: image !important;
        width: 68px !important;
        height: 68px !important;
        align-self: center !important;
    }

    .pfm-cart-item-image img {
        width: 68px !important;
        height: 68px !important;
    }

    .pfm-cart-item-details {
        grid-area: details !important;
        align-self: start !important;
    }

    .pfm-cart-item-price {
        grid-area: price !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        text-align: right !important;
        align-self: start !important;
        flex: unset !important;
        order: unset !important;
        margin-bottom: 0 !important;
        display: block !important;
    }

    .pfm-cart-item-controls {
        grid-area: unset !important;
        display: contents !important; /* lets children participate in grid directly */
        border-top: none !important;
        padding-top: 0 !important;
    }

    .pfm-cart-quantity {
        grid-area: qty !important;
        align-self: center !important;
        order: unset !important;
        margin-right: 0 !important;
        height: 36px !important;
        width: fit-content !important;
    }

    .pfm-cart-actions {
        grid-area: actions !important;
        align-self: center !important;
        justify-content: flex-end !important;
        order: unset !important;
        margin-left: 0 !important;
    }

    .pfm-cart-title { font-size: 15px !important; }
    .pfm-cart-item-addons { font-size: 13px !important; }

    .pfm-cart-qty-btn {
        width: 30px !important;
        height: 30px !important;
        font-size: 16px !important;
    }

    .pfm-cart-quantity span {
        min-width: 28px !important;
        font-size: 14px !important;
    }

    .pfm-cart-icon-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 14px !important;
    }
}


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














/* new one */
/* ---------------- DISCOUNT RIBBON ---------------- */
.menu_price_old {
    text-decoration: line-through;
    text-decoration-color: red;
    text-decoration-thickness: 2px;
    color: #9b9b9b;
    font-size: 14px;
}
/* Wrapper clips the overflow of the diagonal ribbon */
.pfm-discount-ribbon-wrapper {
    position: absolute;
    top: -1px;
    left: -1px;
    width: 130px;
    height: 130px;
    overflow: hidden;
    z-index: 10;
    pointer-events: none;
    border-radius: 12px 0 0 0;
}
.pfm-meal-card,
.pfm-card-img-wrapper {
    position: relative;
    overflow: hidden;
}

.pfm-discount-ribbon {
    position: absolute;
    top: 20px;
    left: -28px;
    width: 130px;
    background: #e60023;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 0;
    transform: rotate(-45deg);
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    line-height: 1.2;
}

/* Quick-view modal ribbon (larger) */
.ky-qv-img-wrapper .pfm-discount-ribbon-wrapper {
    width: 110px;
    height: 110px;
}

.ky-qv-img-wrapper .pfm-discount-ribbon {
    top: 26px;
    left: -34px;
    width: 160px;
    font-size: 12px;
    padding: 6px 0;
}

/* ---------------- CARD IMAGE - DO NOT DISTORT ---------------- */

.card_img {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.card_img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* ---------------- DISCOUNT PRICE STYLING ---------------- */

.discount-price {
    font-weight: 700;
    font-size: 16px;
    color: #000;
    margin-right: 6px;
}

.original-price-strike {
    font-size: 14px;
    color: #9b9b9b;
    text-decoration: line-through;
    text-decoration-color: red;
    text-decoration-thickness: 2px;
}

/* ---------------- OFFER BAR ---------------- */

.top-offer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f5e9e7;
    padding: 8px 20px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #e2d6d3;
    margin-top: 120px;
}

.offer-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.offer-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.coupon {
    background-color: #e53935;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    margin-left: 5px;
}

.tag-icon {
    color: #e53935;
}

/* ---------------- RESPONSIVE ---------------- */

/* Tablet */
@media (max-width: 1024px) {
    .pfm-discount-ribbon-wrapper {
        width: 110px;
        height: 110px;
    }

    .pfm-discount-ribbon {
        top: 20px;
        left: -26px;
        width: 125px;
        font-size: 10px;
    }

    .timing-button-group {
        max-width: 800px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .pfm-discount-ribbon-wrapper {
        width: 95px;
        height: 95px;
    }

    .pfm-discount-ribbon {
        top: 18px;
        left: -24px;
        width: 115px;
        font-size: 9px;
        padding: 4px 0;
    }

    .top-offer-bar {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .offer-right {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .pfm-discount-ribbon-wrapper {
        width: 80px;
        height: 80px;
    }

    .pfm-discount-ribbon {
        top: 16px;
        left: -22px;
        width: 100px;
        font-size: 8px;
        padding: 3px 0;
    }

    .timing-btn {
        font-size: 14px;
        padding: 0;
    }

    .timing-button-group {
        width: 100%;
        max-width: none;
        height: 50px;
        padding: 3px;
    }
}

.address-validation-wrapper {
    margin: 10px 0 15px 0;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.address-validation-wrapper .validation-pending {
    background: #fff8e1;
    border: 1px solid #ffca28;
    color: #856404;
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.address-validation-wrapper .validation-pending i {
    color: #f9a825;
    font-size: 18px;
    animation: pulse-warning 1.5s ease-in-out infinite;
}

.address-validation-wrapper .validation-success {
    background: #e8f5e9;
    border: 1px solid #4caf50;
    color: #2e7d32;
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.address-validation-wrapper .validation-success i {
    color: #4caf50;
    font-size: 18px;
}

.address-validation-wrapper .validation-error {
    background: #ffebee;
    border: 1px solid #ef5350;
    color: #c62828;
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.address-validation-wrapper .validation-error i {
    color: #ef5350;
    font-size: 18px;
    animation: shake 0.5s ease-in-out;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .address-validation-wrapper {
        font-size: 12px;
        padding: 10px 12px;
    }

    .address-validation-wrapper .validation-pending,
    .address-validation-wrapper .validation-success,
    .address-validation-wrapper .validation-error {
        padding: 10px 12px;
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }

    .address-validation-wrapper i {
        font-size: 24px !important;
    }
}

#popupCompleteAddress {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#popupCompleteAddress.input-typing {
    border-color: #ffc107 !important;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.15) !important;
}

#popupCompleteAddress.input-valid {
    border-color: #4caf50 !important;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234caf50'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px !important;
}

#popupCompleteAddress.input-error {
    border-color: #ef5350 !important;
    box-shadow: 0 0 0 3px rgba(239, 83, 80, 0.15) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ef5350'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px !important;
}

/* Confirm button states */
.confirm-address-btn.btn-disabled,
.address-save-btn.btn-disabled {
    background-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
    opacity: 0.7;
    pointer-events: none;
}

.confirm-address-btn.btn-ready,
.address-save-btn.btn-ready {
    background-color: var(--accent-color, #8B0000) !important;
    color: #fff !important;
    cursor: pointer !important;
    opacity: 1;
    transition: all 0.3s ease;
}

.confirm-address-btn.btn-ready:hover,
.address-save-btn.btn-ready:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Map click hint overlay */
.map-click-hint {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    pointer-events: none;
    z-index: 10;
    white-space: nowrap;
}

.map-click-hint i {
    margin-right: 6px;
}




















/* ==========================================================
   CATEGORY GRID — FINAL COMPLETE CSS
   ========================================================== */

@keyframes cat-shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position:  600px 0; }
}

/* ─── 1. HEADING ─── */
.category-page-header {
    width: 85%;
    max-width: 85%;
    margin: 90px auto 0;
    padding: 20px 0 14px;
    box-sizing: border-box;
    text-align: left;
}

.category-page-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    font-weight: 900;
    color: #000;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1;
    margin: 0 !important;
    display: inline-block;
}

.category-page-header h1::after {
    content: '';
    display: block;
    width: 100%;
    height: 5px;
    background: #000;
    margin-top: 10px;
}

/* ─── 2. GRID CONTAINER ─── */
.category-visual-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    width: 85%;
    max-width: 85%;
    margin: 10px auto 0;
    padding: 0 0 24px;
    box-sizing: border-box;
}

/* ─── 3. CARD BASE ─── */
.category-visual-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    min-height: 240px;
    display: flex;
    align-items: flex-end;
}

.category-visual-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.13), 0 0 0 1px rgba(0,0,0,0.07);
}

/* ─── 4. IMAGE ─── */
.category-visual-card img {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: auto;
    max-width: 52%;
    max-height: 80%;
    height: auto;
    object-fit: contain;
    object-position: right center;
    pointer-events: none;
    transition: transform 0.35s ease;
}

.category-visual-card:hover img {
    transform: translateY(-50%) scale(1.04);
}

/* ─── 5. OVERLAY ─── */
.category-visual-overlay {
    position: absolute;
    inset: 0;
    background: none;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0;
    pointer-events: none;
    z-index: 3;
}

/* ─── 6. TITLE — glow removed globally ─── */
.category-visual-title,
.category-visual-overlay h3 {
    color: #000;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1.1;
    text-shadow: none !important;
    -webkit-text-stroke: 0 !important;
    margin: 0 0 18px 18px !important;
    max-width: 46%;
    display: block;
    position: relative;
    z-index: 4;
}

/* ─── 7. DESKTOP SPANS ─── */
.category-visual-card:nth-child(1),
.category-visual-card:nth-child(2) {
    grid-column: span 3;
    min-height: 260px;
}

.category-visual-card:nth-child(3),
.category-visual-card:nth-child(4),
.category-visual-card:nth-child(5) {
    grid-column: span 2;
    min-height: 220px;
}

.category-visual-card:nth-child(n+6) {
    grid-column: span 2;
    min-height: 220px;
}

/* ─── 8. SKELETON ─── */
.skeleton-grid-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    width: 85%;
    max-width: 85%;
    margin: 10px auto 0;
    padding: 0 0 24px;
    box-sizing: border-box;
}

.skeleton-grid-container .skeleton-box {
    width: 100%;
    box-sizing: border-box;
    border-radius: 16px;
    background-color: #e2e8f0;
    background-image: linear-gradient(90deg, #e2e8f0 0px, #f4f7fa 50%, #e2e8f0 100%);
    background-size: 600px 100%;
    animation: cat-shimmer 1.6s ease-in-out infinite;
    height: 240px;
    grid-column: span 2;
}

.skeleton-grid-container .skeleton-box:nth-child(1),
.skeleton-grid-container .skeleton-box:nth-child(2) {
    grid-column: span 3;
    height: 260px;
}

.skeleton-grid-container .skeleton-box:nth-child(3),
.skeleton-grid-container .skeleton-box:nth-child(4),
.skeleton-grid-container .skeleton-box:nth-child(5) {
    grid-column: span 2;
    height: 220px;
}

.skeleton-grid-container .skeleton-box:nth-child(n+6) {
    grid-column: span 2;
    height: 220px;
}

/* ─── 9. TABLET  768px–1023px ─── */
@media (max-width: 1023px) {
    .category-page-header {
        width: 90%;
        max-width: 90%;
    }

    .category-page-header h1 {
        font-size: 34px;
    }

    .category-visual-grid,
    .skeleton-grid-container {
        width: 90%;
        max-width: 90%;
        gap: 12px;
    }

    .category-visual-card:nth-child(1),
    .category-visual-card:nth-child(2) {
        min-height: 210px;
    }

    .category-visual-card:nth-child(3),
    .category-visual-card:nth-child(4),
    .category-visual-card:nth-child(5),
    .category-visual-card:nth-child(n+6) {
        min-height: 175px;
    }

    .category-visual-card img {
        max-width: 54%;
        max-height: 78%;
        right: 10px;
    }

    .category-visual-title,
    .category-visual-overlay h3 {
        font-size: 17px;
        margin: 0 0 16px 16px !important;
        text-shadow: none !important;
    }

    .skeleton-grid-container .skeleton-box:nth-child(1),
    .skeleton-grid-container .skeleton-box:nth-child(2) {
        height: 210px;
    }

    .skeleton-grid-container .skeleton-box:nth-child(3),
    .skeleton-grid-container .skeleton-box:nth-child(4),
    .skeleton-grid-container .skeleton-box:nth-child(5) {
        height: 175px;
    }
}

/* ─── 10. MOBILE  ≤ 599px ─── */
@media (max-width: 599px) {
    .category-page-header {
        width: 92%;
        max-width: 92%;
        margin-top: 100px;
        padding: 10px 0 8px;
    }

    .category-page-header h1 {
        font-size: 28px;
        letter-spacing: -0.5px;
    }

    .category-visual-grid,
    .skeleton-grid-container {
        width: 92%;
        max-width: 92%;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding-bottom: 80px;
    }

    /* ── Card heights ── */
    .category-visual-card:nth-child(1) {
        grid-column: span 2;
        min-height: 160px;
    }

    .category-visual-card:nth-child(2),
    .category-visual-card:nth-child(3) {
        grid-column: span 1;
        min-height: 140px;
    }

    .category-visual-card:nth-child(n+4) {
        grid-column: span 2;
        min-height: 150px;
    }

    /* ── Global mobile title reset ── */
    .category-visual-title,
    .category-visual-overlay h3 {
        font-size: 15px !important;
        letter-spacing: -0.3px;
        line-height: 1.15;
        max-width: 48%;
        margin: 0 0 12px 12px !important;
        text-shadow: none !important;
        -webkit-text-stroke: 0 !important;
    }

    /* ── Global mobile image reset ── */
    .category-visual-card img {
        max-width: 48%;
        max-height: 75%;
        right: 10px;
    }

    /* ── Half-width cards (2 & 3) — tighter ── */
    .category-visual-card:nth-child(2) img,
    .category-visual-card:nth-child(3) img {
        max-width: 50%;
        max-height: 68%;
        right: 8px;
    }

    .category-visual-card:nth-child(2) .category-visual-title,
    .category-visual-card:nth-child(2) .category-visual-overlay h3,
    .category-visual-card:nth-child(3) .category-visual-title,
    .category-visual-card:nth-child(3) .category-visual-overlay h3 {
        font-size: 11px !important;
        max-width: 44% !important;
        margin: 0 0 10px 10px !important;
        text-shadow: none !important;
        -webkit-text-stroke: 0 !important;
        letter-spacing: -0.2px;
        line-height: 1.2;
    }

    /* ── Skeleton mobile ── */
    .skeleton-grid-container .skeleton-box {
        grid-column: span 2;
        height: 150px;
    }

    .skeleton-grid-container .skeleton-box:nth-child(1) {
        grid-column: span 2;
        height: 160px;
    }

    .skeleton-grid-container .skeleton-box:nth-child(2),
    .skeleton-grid-container .skeleton-box:nth-child(3) {
        grid-column: span 1;
        height: 140px;
    }

    .skeleton-grid-container .skeleton-box:nth-child(n+4) {
        grid-column: span 2;
        height: 150px;
    }
}

/* ─── 11. VERY SMALL  ≤ 380px ─── */
@media (max-width: 380px) {
    .category-page-header h1 {
        font-size: 24px;
    }

    .category-visual-card img {
        max-width: 50%;
        max-height: 70%;
        right: 8px;
    }

    .category-visual-title,
    .category-visual-overlay h3 {
        font-size: 13px !important;
        margin: 0 0 10px 10px !important;
        max-width: 48%;
        text-shadow: none !important;
        -webkit-text-stroke: 0 !important;
    }

    .category-visual-card:nth-child(2) .category-visual-title,
    .category-visual-card:nth-child(2) .category-visual-overlay h3,
    .category-visual-card:nth-child(3) .category-visual-title,
    .category-visual-card:nth-child(3) .category-visual-overlay h3 {
        font-size: 10px !important;
        max-width: 42% !important;
        margin: 0 0 8px 8px !important;
    }

    .category-visual-card:nth-child(1)   { min-height: 145px; }
    .category-visual-card:nth-child(2),
    .category-visual-card:nth-child(3)   { min-height: 125px; }
    .category-visual-card:nth-child(n+4) { min-height: 135px; }

    .skeleton-grid-container .skeleton-box:nth-child(1)   { height: 145px; }
    .skeleton-grid-container .skeleton-box:nth-child(2),
    .skeleton-grid-container .skeleton-box:nth-child(3)   { height: 125px; }
    .skeleton-grid-container .skeleton-box:nth-child(n+4) { height: 135px; }
}


.item-meta {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}
.card-qty-container {
    display: flex;
    justify-content: flex-end;
}

.card_container {
    display: grid;
    /* Reduced min-width from 380px to 180px to allow 6 items to fit */
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 1rem;
    /* Reduced gap to save space */
}

@media (min-width: 1400px) {
    .card_container {
        grid-template-columns: repeat(4, 1fr);
        padding: 40px;
    }
}

.card_img {
    width: 100%;
    height: 280px;
    /* Reduced from 500px to fit 4-column mid-size cards */
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 4px 12px var(--shadow-light);
}

/* Hide footer widget on ordering pages only */
body:has(.pfm-container) .elementor-element-83898b9 {
    display: none !important;
}

/* Hide footer widget on ordering + checkout pages */
.elementor-element-83898b9 {
    display: none !important;
}

/* Hide footer widgets on ordering + checkout pages */
.elementor-element-83898b9,
.elementor-element-38302e4 {
    display: none !important;
}

/* Hide footer widgets on auth + checkout pages only */
.page-slug-auth .elementor-element-83898b9,
.page-slug-auth .elementor-element-38302e4,
.page-slug-checkout .elementor-element-83898b9,
.page-slug-checkout .elementor-element-38302e4 {
    display: none !important;
}

/* ==========================================================================
   MENU ITEM CARDS — MOBILE/TABLET RESPONSIVE FIX (append to end of stylesheet)
   --------------------------------------------------------------------------
   Scope: ONLY the .card_container / .card menu item grid (Caffe Latte, V60,
   Karak Chai, etc. cards). Does NOT touch skeleton loaders, category visual
   grid, cart, or filter bar — those are left exactly as-is.

   Why appended, not merged: .card_container is defined multiple times
   earlier in the stylesheet with different column counts. Appending this
   at the end makes it the final, authoritative rule at each breakpoint
   without deleting/editing any existing block.
   ========================================================================== */

@media (max-width: 1023px) {
    .card_container {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.75rem !important;
        width: 100% !important;
    }

    .card {
        min-width: 0 !important; /* stops grid items from overflowing/forcing horizontal scroll */
        width: 100% !important;
    }

    .card_img {
        height: 150px !important;
        width: 100% !important;
    }

    .card_info {
        padding: 0.6rem 0.4rem !important;
    }

    .menu_title {
        font-size: 13px !important;
        line-height: 1.3 !important;
    }

    .item-meta .menu_price {
        font-size: 13px !important;
    }

    .card-qty-container,
    .item-meta {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
    }

    .grid-qty-btn {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        font-size: 15px !important;
    }

    .pfm-checkmark-badge {
        width: 26px !important;
        height: 26px !important;
        top: 8px !important;
        right: 8px !important;
    }
}

@media (max-width: 480px) {
    .card_container {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.6rem !important;
    }

    .card_img {
        height: 130px !important;
    }

    .menu_title {
        font-size: 12px !important;
    }
}

@media (max-width: 1023px) {
    .card_img {
        height: auto !important;
        aspect-ratio: 4 / 3 !important;
    }
    .card_img img {
        object-fit: contain !important;
        background: #fff;
    }
}



