/* Custom UI Styles for FoodBook Enhancements - Stage 2-5, Stage 10 Grid, Search & Checkout Redesign */

/* Hide Homepage Floating Delivery/Location Widget */
body.home .fb_location_modal,
body.home .fb_delivery_location_modal,
body.home .foodbook-delivery-location-wrapper,
body.home #foodbook_location_modal,
body.home .fb_delivery_type_modal {
    display: none !important;
}

/* ==========================================================================
   1. Slide-in Account Login Panel
   ========================================================================== */
.fb-slidein-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.fb-slidein-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.fb-slidein-account-panel {
    position: fixed;
    top: 0;
    right: -450px;
    width: 420px;
    max-width: 90vw;
    height: 100vh;
    background: #ffffff;
    z-index: 99999;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fb-slidein-account-panel.active {
    right: 0;
}

body.fb-slidein-open {
    overflow: hidden;
}

.fb-slidein-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fb-slidein-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}

.fb-slidein-close-btn {
    background: transparent;
    border: none;
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
}

.fb-slidein-body {
    padding: 24px;
    overflow-y: auto;
    flex-grow: 1;
}

.fb-slidein-form label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.fb-accent-link {
    color: #e52d27 !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.fb-accent-link:hover {
    text-decoration: underline;
}

.fb-pill-login-btn {
    background: #e52d27 !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 20px;
    border-radius: 25px;
    border: none;
    box-shadow: 0 4px 14px rgba(229, 45, 39, 0.3);
    transition: background 0.2s ease;
}

.fb-pill-login-btn:hover {
    background: #c8231d !important;
}

.fb-register-link {
    color: #0f172a;
    font-weight: 700;
    text-decoration: underline;
}

/* ==========================================================================
   2. Search Bar & Filter Controls
   ========================================================================== */
.fb_search_form {
    margin-bottom: 25px;
}

.fb_search_input_group {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 6px 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease-in-out;
}

.fb_search_input_group:focus-within {
    border-color: #e52d27;
    box-shadow: 0 4px 20px rgba(229, 45, 39, 0.12);
}

.fb_search_input_group label {
    margin: 0 12px 0 0;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.fb_search_input_group input.fb_input_style {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 15px;
    font-weight: 500;
    color: #1a202c;
    width: 100%;
    padding: 10px 45px 10px 0 !important;
    outline: none !important;
}

.fb_search_input_group input.fb_input_style::placeholder {
    color: #a0aec0;
}

.fb-search-spinner {
    position: absolute;
    right: 42px;
    top: 50%;
    transform: translateY(-50%);
    color: #e52d27;
    font-size: 15px;
    pointer-events: none;
}

.fb-search-clear-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fb-search-clear-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Active Filter Summary Bar */
.fb-active-filter-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #475569;
    background: #f8fafc;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.fb-active-filter-summary .filter-tag {
    background: #e52d27;
    color: #ffffff;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
}

/* ==========================================================================
   3. Category Navigation Sidebar & Menu Tabs
   ========================================================================== */
.fb_category_filter,
.foodbook-cat-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    list-style: none;
    padding: 0;
}

.fb_category_filter li,
.foodbook-cat-filter li {
    margin: 0;
}

.fb_category_filter a,
.foodbook-cat-filter a {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 25px;
    background: #f1f5f9;
    color: #475569;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.fb_category_filter a:hover,
.foodbook-cat-filter a:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.fb_category_filter a.active,
.foodbook-cat-filter a.active {
    background: #e52d27;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(229, 45, 39, 0.25);
}

/* Mobile Category Horizontal Scroll */
@media (max-width: 767px) {
    .fb_category_filter,
    .foodbook-cat-filter {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        margin-bottom: 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .fb_category_filter::-webkit-scrollbar,
    .foodbook-cat-filter::-webkit-scrollbar {
        display: none;
    }

    .fb_category_filter a,
    .foodbook-cat-filter a {
        white-space: nowrap;
        padding: 6px 14px;
        font-size: 13px;
    }
}

/* ==========================================================================
   4. Stage 10 Product Grid Strategy (Exact 3-Column Desktop Layout for Default & Search Results)
   ========================================================================== */
.foodbook-products .products-row-inner,
.fb-search-result,
.fb-search-result .products-row-inner {
    display: grid !important;
    gap: 20px !important;
    margin: 0 !important;
}

/* Desktop: Explicit 3 Columns */
@media (min-width: 992px) {
    .foodbook-products .products-row-inner,
    .fb-search-result,
    .fb-search-result .products-row-inner {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* Tablet: 2 Columns */
@media (min-width: 576px) and (max-width: 991px) {
    .foodbook-products .products-row-inner,
    .fb-search-result,
    .fb-search-result .products-row-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Mobile: 2 Compact Columns */
@media (max-width: 575px) {
    .foodbook-products .products-row-inner,
    .fb-search-result,
    .fb-search-result .products-row-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
}

/* Neutralize Bootstrap column floats inside CSS Grid */
.foodbook-products .products-row-inner > [class*="fb_col_"],
.fb-search-result [class*="fb_col_"] {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: none !important;
}

/* Product Card Wrapper */
.fb_single_product_item {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #edf2f7;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    position: relative;
}

.fb_single_product_item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    border-color: #e2e8f0;
}

/* Image Container with Normalized 4:3 Aspect Ratio */
.fb_product_top {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio (3 / 4 = 0.75) */
    aspect-ratio: 4 / 3;
    background: #f8fafc;
    overflow: hidden;
}

.fb_product_thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.fb_product_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.fb_single_product_item:hover .fb_product_thumb img {
    transform: scale(1.04);
}

/* Product Badge */
.fb_badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e52d27;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Overlay & Action Button */
.fb_overlay_content {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 3;
}

.fb_single_product_item:hover .fb_overlay_content {
    opacity: 1;
}

.fb_order_button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e52d27;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(229, 45, 39, 0.4);
    transform: translateY(8px);
    transition: all 0.25s ease;
}

.fb_single_product_item:hover .fb_order_button {
    transform: translateY(0);
}

.fb_order_button:hover {
    background: #c8231d;
}

/* Product Details Content */
.fb_product_content {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}

.fb_product_title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
    line-height: 1.3;
    cursor: pointer;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.fb_product_title:hover {
    color: #e52d27;
}

.fb_product_content p {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fb_product_price {
    margin-top: auto;
    font-size: 15px;
    font-weight: 700;
    color: #e52d27;
    margin-bottom: 0;
}

.fb_product_price del {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    margin-right: 4px;
}

.fb_product_price ins {
    text-decoration: none;
}

/* ==========================================================================
   5. Stage 3 Product Modal Popup Redesign
   ========================================================================== */
.fb-custom-modal-redesign,
.fb_product_modal .modal-dialog .modal-content,
#fb_product_modal .modal-content {
    padding: 24px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    max-height: 82vh;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.modal-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 8px;
    margin-bottom: 14px;
}

.fb_product_details_img_wrap {
    border-radius: 16px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.fb_product_details_img img {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: cover;
    border-radius: 12px;
}

.modal-product-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.modal-product-price {
    font-size: 20px;
    font-weight: 700;
    color: #e52d27;
}

.fb_product_summary {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
}

/* Modal Options & Custom Controls */
.modal-options-card {
    background: #f8fafc;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.variation-select {
    border-radius: 10px !important;
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    padding: 10px 14px !important;
    font-weight: 500;
}

.custom-addon-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    list-style: none;
}

.addon-option-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    transition: all 0.2s ease;
}

.addon-option-item:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}

.price-extra-item.badge {
    background: #f1f5f9;
    color: #475569;
    font-weight: 600;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
}

/* Quantity Stepper */
.fb_quantity_wrap {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 25px;
    padding: 4px 8px;
}

.fb_quantity_btn {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    color: #334155;
    transition: background 0.2s ease;
}

.fb_quantity_btn:hover {
    background: #e2e8f0;
}

.fb_quantity_value {
    width: 40px;
    border: none;
    font-weight: 700;
    color: #0f172a;
    outline: none;
}

/* Modal Sticky Action Bar */
.modal-sticky-action-bar {
    border-top: 2px solid #e2e8f0;
    padding-top: 16px;
    margin-top: 16px;
}

.fb_total_Price {
    font-size: 20px;
}

.fb_add_to_cart_ajax {
    background: #e52d27 !important;
    border-color: #e52d27 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    padding: 14px 20px !important;
    box-shadow: 0 4px 15px rgba(229, 45, 39, 0.3) !important;
    transition: all 0.25s ease !important;
}

.fb_add_to_cart_ajax:hover {
    background: #c8231d !important;
    box-shadow: 0 6px 20px rgba(200, 35, 29, 0.4) !important;
}

/* ==========================================================================
   6. Cart Drawer & Cart Modal Redesign
   ========================================================================== */
.foodbook-cart-wrapper,
.fb_cart_modal_wrapper,
#fb_cart_modal .modal-content,
.fb_cart_modal .modal-content {
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    background: #fff7f7;
    color: #3f1d1d;
    max-height: 82vh;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.fb_cart_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
}

.fb_cart_table thead th {
    font-size: 13px;
    font-weight: 700;
    color: #7f1d1d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
}

.fb_cart_table tbody tr {
    background: #ffffff;
    border: 1px solid #fee2e2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    border-radius: 12px;
}

.fb_cart_table tbody td {
    padding: 12px 14px;
    vertical-align: middle;
}

.fb_cart_item_image img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.fb_cart_item_title {
    font-size: 14px;
    font-weight: 700;
    color: #3f1d1d;
}

.fb_cart_item_title ul {
    font-size: 12px;
    color: #64748b;
    font-weight: 400;
    margin-top: 4px;
}

.fb_quantity_input {
    width: 36px;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 700;
    color: #0f172a;
}

.fb_minus2, .fb_plus2 {
    width: 26px;
    height: 26px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease;
}

.fb_minus2:hover, .fb_plus2:hover {
    background: #fecaca;
}

.remove_cart_item {
    color: #ef4444;
    background: #fef2f2;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.remove_cart_item:hover {
    background: #fee2e2;
    color: #dc2626;
}

.fb_total_cart {
    font-size: 18px;
    font-weight: 800;
    color: #3f1d1d;
    padding-top: 16px;
    border-top: 2px dashed #e2e8f0;
    margin-top: 20px;
}

.fb_total_price {
    color: #e52d27;
}

.fb_order_btn_group {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.fb_buy_more {
    background: #ffffff !important;
    border: 1px solid #fecaca !important;
    color: #7f1d1d !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    padding: 12px 20px !important;
}

.fb_checkout_order, a[href*="checkout"] {
    background: #e52d27 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    padding: 12px 24px !important;
    box-shadow: 0 4px 14px rgba(229, 45, 39, 0.3) !important;
}

/* Empty Cart State UI */
.fb-empty-cart-state {
    padding: 40px 20px;
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    margin: 20px 0;
}

.fb-empty-cart-state h4 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.fb-empty-cart-state p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 18px;
}

.fb-browse-dishes-btn {
    display: inline-block;
    background: #e52d27;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 20px;
    text-decoration: none !important;
    transition: background 0.2s ease;
}

.fb-browse-dishes-btn:hover {
    background: #c8231d;
}

/* Scheduled Delivery & Pickup Controls */
.dp-date-wrapper,
#fb_delivery_date {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 10px 14px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    margin-bottom: 15px !important;
}

/* ==========================================================================
   7. Stage 5 & Stage 10 Checkout & My Account Page UI Enhancements
   ========================================================================== */
.fb_modal_checkout_wrapper,
.woocommerce-checkout {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.fb-step-indicator-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.fb_step_btn {
    background: #f1f5f9;
    color: #64748b;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid transparent;
    transition: all 0.25s ease;
}

.fb_step_btn.active, .fb_step_btn.fb_active_step {
    background: #e52d27;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(229, 45, 39, 0.3);
}

.fb_input_group.style_two,
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.fb_place_order,
#place_order {
    background: #e52d27 !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    padding: 16px 24px !important;
    border-radius: 14px !important;
    box-shadow: 0 6px 20px rgba(229, 45, 39, 0.35) !important;
    transition: all 0.25s ease !important;
}

.fb_place_order:hover,
#place_order:hover {
    background: #c8231d !important;
    box-shadow: 0 8px 25px rgba(200, 35, 29, 0.45) !important;
}

/* My Account Navigation & Cards */
.woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.woocommerce-MyAccount-navigation li a {
    display: inline-block;
    padding: 10px 20px;
    background: #f1f5f9;
    color: #475569;
    font-weight: 600;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.woocommerce-MyAccount-navigation li.is-active a {
    background: #e52d27;
    color: #ffffff;
}

.woocommerce-MyAccount-content {
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

/* ==========================================================================
   8. Empty & Loading States
   ========================================================================== */
.foodbook-search-empty-state {
    padding: 48px 24px;
    margin: 30px auto;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    max-width: 520px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.foodbook-search-empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.foodbook-search-empty-state p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
}

.fb-reset-search-btn {
    background: #e52d27;
    color: #ffffff;
    border: none;
    padding: 9px 22px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.fb-reset-search-btn:hover {
    background: #c8231d;
}

/* ==========================================================================
   9. Mobile Responsiveness (320px - 767px)
   ========================================================================== */
@media (max-width: 767px) {
    /* Touch Target Min-Height Enhancement */
    .fb_btn_fill,
    .fb_order_button,
    .fb-pill-login-btn,
    .fb_place_order,
    .fb_quantity_btn,
    .addon-option-item,
    .fb_step_btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Ensure account icon on mobile header remains visible, aligned and easy to touch */
    .header .header-main2 .header-right .account,
    .header .header-right .account {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        cursor: pointer;
        z-index: 10;
    }

    /* Keep the account drawer usable on narrow screens. */
    .fb-slidein-account-panel {
        right: -100%;
        width: 100%;
        max-width: 100%;
    }

    .fb-slidein-account-panel.active {
        right: 0;
    }

    .fb-slidein-header,
    .fb-slidein-body {
        padding-left: 18px;
        padding-right: 18px;
    }

    /* Style the theme's existing mobile menu toggle without changing its behavior. */
    .navbar-toggler,
    .menu-toggle,
    .mobile-menu-toggle,
    .hamburger,
    .fb_menu_toggle,
    .fb-mobile-menu-toggle {
        position: relative;
        width: 44px;
        height: 44px;
        padding: 0 !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 10px !important;
        background: #ffffff !important;
        color: #0f172a !important;
        box-shadow: 0 3px 12px rgba(15, 23, 42, 0.08);
    }

    .navbar-toggler:hover,
    .menu-toggle:hover,
    .mobile-menu-toggle:hover,
    .hamburger:hover,
    .fb_menu_toggle:hover,
    .fb-mobile-menu-toggle:hover {
        border-color: #e52d27 !important;
        color: #e52d27 !important;
    }

    .navbar-toggler .navbar-toggler-icon {
        width: 20px;
        height: 14px;
        background-image: linear-gradient(#0f172a, #0f172a), linear-gradient(#0f172a, #0f172a), linear-gradient(#0f172a, #0f172a);
        background-position: center top, center center, center bottom;
        background-repeat: no-repeat;
        background-size: 20px 2px;
    }

    .navbar-toggler:hover .navbar-toggler-icon {
        background-image: linear-gradient(#e52d27, #e52d27), linear-gradient(#e52d27, #e52d27), linear-gradient(#e52d27, #e52d27);
    }

    .fb-custom-modal-redesign,
    .fb_modal_checkout_wrapper,
    .woocommerce-checkout,
    .woocommerce-MyAccount-content {
        padding: 16px;
    }

    .modal-product-title {
        font-size: 20px;
    }

    .modal-options-card {
        padding: 14px;
    }

    .modal-sticky-action-bar {
        position: sticky;
        bottom: -16px;
        background: #ffffff;
        padding: 14px;
        margin: 16px -14px -14px -14px;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
        z-index: 10;
        border-radius: 0 0 16px 16px;
    }

    .fb_cart_table {
        font-size: 13px;
    }

    .fb_order_btn_group {
        flex-direction: column;
    }

    .fb-step-indicator-wrap {
        flex-wrap: wrap;
        gap: 8px;
    }

    .fb_step_btn {
        font-size: 12px;
        padding: 8px 14px;
    }
}

@media (max-width: 575px) {
    .foodbook-products .products-row-inner,
    .fb-search-result,
    .fb-search-result .products-row-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .fb_product_top {
        padding-top: 75% !important;
        aspect-ratio: 4 / 3 !important;
    }

    .fb_single_product_item {
        border-radius: 10px;
    }

    .fb_product_content {
        padding: 8px;
    }

    .fb_product_title {
        font-size: 12px;
        line-height: 1.25;
        margin-bottom: 2px;
    }

    .fb_product_content p {
        display: none;
    }

    .fb_product_price {
        font-size: 13px;
    }
}
