:root {
    --fh-primary: var(--primary-color, #446084);
    --fh-secondary: var(--secondary-color, #111111);
    --fh-success: #7a9c59;
    --fh-alert: #b20000;
    --fh-bg: #ffffff;
    --fh-bg-soft: #f8f8f8;
    --fh-border: rgba(0,0,0,0.10);
    --fh-text: #111111;
    --fh-text-soft: #666666;
    --fh-radius: 16px;
}

.fb-order-app {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    color: var(--fh-text);
    background: transparent;
}

.fb-order-loading,
.fb-error,
.fb-empty {
    padding: 18px 20px;
    border-radius: 12px;
    background: var(--fh-bg-soft);
    color: var(--fh-text);
    border: 1px solid var(--fh-border);
}

.fb-error {
    color: var(--fh-alert);
    background: #fff5f5;
}

.fh-restaurant-selector {
    margin-bottom: 24px;
}

.fh-restaurant-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.fh-restaurant-card {
    border: 1px solid var(--fh-border);
    border-radius: var(--fh-radius);
    overflow: hidden;
    background: var(--fh-bg);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.fh-restaurant-card.is-selected {
    border-color: var(--fh-primary);
    box-shadow: 0 0 0 2px rgba(68,96,132,0.15);
}

.fh-restaurant-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    background: #f3f3f3;
}

.fh-restaurant-body {
    padding: 16px;
}

.fh-restaurant-title {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.3;
    color: var(--fh-text);
}

.fh-restaurant-desc {
    margin-bottom: 12px;
    color: var(--fh-text-soft);
    font-size: 14px;
    line-height: 1.5;
}

.fh-restaurant-btn,
.fh-clear-cart-btn,
.fh-primary-btn,
.fh-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.fh-restaurant-btn,
.fh-primary-btn {
    background: var(--fh-primary);
    color: #fff;
    border: 1px solid var(--fh-primary);
}

.fh-restaurant-btn:hover,
.fh-primary-btn:hover {
    opacity: 0.92;
    color: #fff;
}

.fh-secondary-btn,
.fh-clear-cart-btn {
    background: #fff;
    color: var(--fh-secondary);
    border: 1px solid var(--fh-border);
}

.fh-secondary-btn:hover,
.fh-clear-cart-btn:hover {
    background: var(--fh-bg-soft);
    color: var(--fh-secondary);
}

.fh-restaurant-btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

.fh-selected-restaurant-bar {
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid var(--fh-border);
    border-radius: 12px;
    background: var(--fh-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--fh-text);
}

.fh-order-success-screen {
    margin-top: 20px;
}

.fh-order-success-box {
    background: #f6fbf6;
    border: 1px solid rgba(122,156,89,0.35);
    border-radius: 18px;
    padding: 28px 24px;
    color: var(--fh-text);
}

.fh-order-success-badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(122,156,89,0.12);
    color: var(--fh-success);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fh-order-success-title {
    margin: 0 0 14px;
    font-size: 28px;
    line-height: 1.2;
    color: var(--fh-text);
}

.fh-order-success-meta {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--fh-text-soft);
}

.fh-order-success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.fb-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}

.fb-layout--with-cart {
    grid-template-columns: 240px 1fr 360px;
}

.fb-sidebar,
.fb-main,
.fb-cart {
    background: var(--fh-bg);
    border: 1px solid var(--fh-border);
    border-radius: var(--fh-radius);
    padding: 20px;
    box-sizing: border-box;
    color: var(--fh-text);
}

.fb-section-title {
    margin: 0 0 16px;
    font-size: 22px;
    line-height: 1.2;
    color: var(--fh-text);
}

.fb-categories {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fb-cat-btn {
    width: 100%;
    text-align: left;
    border: 1px solid var(--fh-border);
    background: #fff;
    color: var(--fh-text);
    border-radius: 10px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fb-cat-btn:hover,
.fb-cat-btn.is-active {
    border-color: var(--fh-primary);
    background: var(--fh-primary);
    color: #fff;
}

.fb-products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.fb-product-card {
    border: 1px solid var(--fh-border);
    border-radius: var(--fh-radius);
    overflow: hidden;
    background: var(--fh-bg);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    color: var(--fh-text);
}

.fb-product-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    background: #f3f3f3;
}

.fb-product-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fh-text-soft);
    font-size: 14px;
}

.fb-product-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.fb-product-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
    color: var(--fh-text);
}

.fb-product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--fh-text);
}

.fb-product-btn {
    margin-top: auto;
    border: 1px solid var(--fh-primary);
    background: var(--fh-primary);
    color: #fff;
    border-radius: 10px;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 15px;
    transition: opacity 0.2s ease;
}

.fb-product-btn:hover {
    opacity: 0.92;
}

.fb-cart-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fb-cart-item {
    border: 1px solid var(--fh-border);
    border-radius: 12px;
    padding: 14px;
    background: var(--fh-bg-soft);
}

.fb-cart-item-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.fb-cart-item-title {
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--fh-text);
}

.fb-cart-item-qty {
    font-size: 14px;
    color: var(--fh-text-soft);
}

.fb-cart-item-price {
    font-weight: 700;
    white-space: nowrap;
    color: var(--fh-text);
}

.fb-cart-meta {
    margin: 10px 0 0;
    padding-left: 18px;
    font-size: 14px;
    color: var(--fh-text-soft);
}

.fb-cart-actions {
    margin-top: 12px;
}

.fb-cart-remove {
    border: 0;
    background: transparent;
    color: var(--fh-alert);
    cursor: pointer;
    padding: 0;
    font-size: 14px;
}

.fb-cart-total {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--fh-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
    color: var(--fh-text);
}

.fb-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.fb-modal {
    width: 100%;
    max-width: 760px;
    max-height: 90vh;
    overflow: auto;
    background: var(--fh-bg);
    border-radius: 18px;
    position: relative;
    padding: 24px;
    box-sizing: border-box;
    color: var(--fh-text);
}

.fb-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: var(--fh-secondary);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

.fb-modal-header {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.fb-modal-image {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 14px;
    background: #f3f3f3;
}

.fb-modal-header-content {
    flex: 1;
}

.fb-modal-title {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.2;
    color: var(--fh-text);
}

.fb-modal-base-price {
    font-weight: 700;
    font-size: 16px;
    color: var(--fh-text);
}

.fb-modal-short-description {
    margin: 8px 0 10px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--fh-text-soft);
}

.fb-addon-groups {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.fb-addon-group {
    border: 1px solid var(--fh-border);
    border-radius: 18px;
    background: #fff;
    padding: 18px 18px 16px;
}

.fb-addon-title {
    display: block;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    color: var(--fh-text);
    margin: 0 0 14px;
}

.fb-addon-required {
    color: var(--fh-alert);
    margin-left: 4px;
}

.fb-addon-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fb-addon-option--boxed {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 54px;
    border: 1px solid var(--fh-border);
    border-radius: 14px;
    background: #fff;
    padding: 10px 14px;
    cursor: pointer;
}

.fb-addon-option-left {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.fb-addon-option-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--fh-text);
    line-height: 1.3;
}

.fb-addon-price {
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
    color: var(--fh-text);
}

.fb-addon-option--boxed input[type="checkbox"],
.fb-addon-option--boxed input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--fh-primary);
    flex: 0 0 18px;
}

.fb-addon-error {
    margin-top: 10px;
    font-size: 13px;
    color: var(--fh-alert);
}

.fb-addon-group.has-error {
    border-color: var(--fh-alert);
}

.fb-checkout-root {
    margin-top: 20px;
    padding: 16px;
    border: 1px solid var(--fh-border);
    border-radius: 12px;
    background: #fff;
}

.fb-checkout-head h3 {
    margin: 0 0 14px;
    font-size: 18px;
    color: var(--fh-text);
}

.fb-checkout-section {
    margin-bottom: 18px;
}

.fb-checkout-section-title {
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--fh-text);
}

.fb-field-wrap {
    margin-bottom: 12px;
}

.fb-field-wrap label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--fh-text);
}

.fb-field-required {
    color: var(--fh-alert);
    margin-left: 4px;
}

.fb-field-wrap input,
.fb-field-wrap select,
.fb-field-wrap textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--fh-border);
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
    color: var(--fh-text);
}

.fb-field-wrap textarea {
    min-height: 90px;
    resize: vertical;
}

.fb-field-wrap--checkbox {
    margin-bottom: 14px;
}

.fb-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: var(--fh-text);
}

.fb-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-height: 18px;
    margin: 0;
    accent-color: var(--fh-primary);
}

.fb-checkout-heading {
    margin: 6px 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--fh-text);
}

.fb-checkout-errors {
    margin-top: 15px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff5f5;
    color: var(--fh-alert);
    border: 1px solid rgba(178,0,0,0.20);
}

.fb-checkout-error-list {
    margin: 0;
    padding-left: 18px;
}

.fb-checkout-success {
    background: #f6fbf6;
    color: var(--fh-success);
    border: 1px solid rgba(122,156,89,0.35);
}

.fb-place-order-btn {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--fh-primary);
    background: var(--fh-primary);
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
}

.fb-place-order-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.fb-modal-footer--single-row {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 18px !important;
    flex-wrap: nowrap !important;
    margin-top: 22px !important;
}

.fb-qty-box {
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid var(--fh-border) !important;
    border-radius: 999px !important;
    overflow: hidden !important;
    background: #fff !important;
    height: 46px !important;
    flex: 0 0 auto !important;
}

.fb-qty-btn {
    width: 44px !important;
    height: 44px !important;
    border: 0 !important;
    background: var(--fh-bg-soft) !important;
    color: var(--fh-text) !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    cursor: pointer !important;
}

.fb-qty-input {
    width: 56px !important;
    height: 44px !important;
    border: 0 !important;
    background: #fff !important;
    text-align: center !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--fh-text) !important;
    padding: 0 !important;
    margin: 0 !important;
    -moz-appearance: textfield !important;
}

.fb-qty-input::-webkit-outer-spin-button,
.fb-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.fb-modal-total {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: var(--fh-text) !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

.fb-modal-secondary,
.fb-modal-primary {
    min-height: 50px !important;
    padding: 0 24px !important;
    border-radius: 16px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

.fb-modal-secondary {
    background: #fff !important;
    color: var(--fh-secondary) !important;
    border: 1px solid var(--fh-border) !important;
}

.fb-modal-primary {
    background: var(--fh-primary) !important;
    color: #fff !important;
    border: 1px solid var(--fh-primary) !important;
}

@media (max-width: 1280px) {
    .fb-layout--with-cart {
        grid-template-columns: 220px 1fr;
    }

    .fb-cart {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1024px) {
    .fh-restaurant-grid,
    .fb-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fb-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .fb-order-app {
        padding: 12px;
    }

    .fh-restaurant-grid,
    .fb-products {
        grid-template-columns: 1fr;
    }

    .fb-sidebar,
    .fb-main,
    .fb-cart {
        padding: 16px;
    }

    .fb-modal {
        padding: 18px;
    }

    .fb-modal-header {
        flex-direction: column;
    }

    .fb-modal-image {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .fb-modal-footer--single-row {
        flex-wrap: wrap !important;
    }

    .fb-modal-total {
        width: 100% !important;
        text-align: center !important;
    }

    .fh-selected-restaurant-bar,
    .fh-order-success-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* =========================================================
   FLATSOME NATIVE FEEL
   ========================================================= */

.fh-theme-flatsome,
.fh-theme-flatsome * {
    font-family: inherit;
}

.fh-theme-flatsome {
    --fh-primary: var(--primary-color, #446084);
    --fh-secondary: var(--fs-color-secondary, #111111);
    --fh-success: #7a9c59;
    --fh-alert: #b20000;
    --fh-bg: #ffffff;
    --fh-bg-soft: #f7f7f7;
    --fh-border: rgba(0,0,0,0.10);
    --fh-text: var(--fs-color-primary, #111111);
    --fh-text-soft: rgba(17,17,17,0.68);
}

.fh-theme-flatsome .fb-sidebar,
.fh-theme-flatsome .fb-main,
.fh-theme-flatsome .fb-cart,
.fh-theme-flatsome .fh-selected-restaurant-bar,
.fh-theme-flatsome .fh-restaurant-card,
.fh-theme-flatsome .fb-product-card,
.fh-theme-flatsome .fb-checkout-root,
.fh-theme-flatsome .fb-addon-group,
.fh-theme-flatsome .fb-modal {
    background: #fff;
    color: var(--fh-text);
    border-color: var(--fh-border);
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.fh-theme-flatsome .fb-section-title,
.fh-theme-flatsome .fb-product-title,
.fh-theme-flatsome .fh-restaurant-title,
.fh-theme-flatsome .fb-modal-title,
.fh-theme-flatsome .fb-checkout-head h3,
.fh-theme-flatsome .fb-checkout-section-title,
.fh-theme-flatsome .fb-addon-title,
.fh-theme-flatsome .fb-cart-item-title,
.fh-theme-flatsome .fb-cart-total,
.fh-theme-flatsome .fb-product-price,
.fh-theme-flatsome .fb-modal-base-price,
.fh-theme-flatsome .fb-modal-total {
    color: var(--fh-text);
}

.fh-theme-flatsome .fh-restaurant-desc,
.fh-theme-flatsome .fb-cart-item-qty,
.fh-theme-flatsome .fb-cart-meta,
.fh-theme-flatsome .fb-modal-short-description,
.fh-theme-flatsome .fb-product-image--placeholder,
.fh-theme-flatsome .fb-empty {
    color: var(--fh-text-soft);
}

.fh-theme-flatsome .fb-field-wrap input,
.fh-theme-flatsome .fb-field-wrap select,
.fh-theme-flatsome .fb-field-wrap textarea {
    background: #fff;
    color: var(--fh-text);
    border-color: var(--fh-border);
    box-shadow: none;
}

.fh-theme-flatsome .fb-field-wrap input:focus,
.fh-theme-flatsome .fb-field-wrap select:focus,
.fh-theme-flatsome .fb-field-wrap textarea:focus {
    border-color: var(--fh-primary);
    box-shadow: 0 0 0 1px rgba(68,96,132,0.15);
    outline: none;
}

.fh-theme-flatsome .fb-cat-btn {
    background: #fff;
    color: var(--fh-text);
    border-color: var(--fh-border);
    font-weight: 600;
}

.fh-theme-flatsome .fb-cat-btn:hover,
.fh-theme-flatsome .fb-cat-btn.is-active {
    background: var(--fh-primary);
    border-color: var(--fh-primary);
    color: #fff;
}

.fh-theme-flatsome .button,
.fh-theme-flatsome button.button {
    text-transform: none;
    letter-spacing: normal;
}

.fh-theme-flatsome .fb-product-btn.button,
.fh-theme-flatsome .fb-place-order-btn.button,
.fh-theme-flatsome .fb-modal-primary.button,
.fh-theme-flatsome .fh-primary-btn.button,
.fh-theme-flatsome .fh-restaurant-btn.button {
    background: var(--fh-primary);
    border-color: var(--fh-primary);
    color: #fff;
}

.fh-theme-flatsome .fb-modal-secondary.button,
.fh-theme-flatsome .fh-secondary-btn.button,
.fh-theme-flatsome .fh-clear-cart-btn.button {
    background: #fff;
    color: var(--fh-secondary);
    border-color: var(--fh-border);
}

.fh-theme-flatsome .fb-checkout-errors {
    background: #fff5f5;
    color: var(--fh-alert);
    border-color: rgba(178,0,0,0.18);
}

.fh-theme-flatsome .fb-checkout-success {
    background: #f6fbf6;
    color: var(--fh-success);
    border-color: rgba(122,156,89,0.28);
}

.fh-theme-flatsome .fh-order-success-box {
    background: #f6fbf6;
    border-color: rgba(122,156,89,0.28);
}

.fh-theme-flatsome .fh-terms-wrap {
    margin-top: 14px;
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid var(--fh-border);
    border-radius: 10px;
    background: #fff;
}

.fh-theme-flatsome .fh-terms-label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0;
    color: var(--fh-text);
    font-size: 14px;
    line-height: 1.5;
}

.fh-theme-flatsome .fh-terms-label input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--fh-primary);
}

.fh-theme-flatsome .fh-terms-label a {
    color: var(--fh-primary);
    text-decoration: underline;
}

/* =========================================================
   ADDONS SWITCH / TOGGLE FIXES
   ========================================================= */

.fh-theme-flatsome .fb-addon-group--switch {
    padding: 16px 18px;
}

.fh-theme-flatsome .fb-switch-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    cursor: pointer;
}

.fh-theme-flatsome .fb-switch-label-wrap {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.fh-theme-flatsome .fb-switch-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--fh-text);
}

.fh-theme-flatsome .fb-switch-control {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 42px;
    min-width: 42px;
    height: 24px;
}

.fh-theme-flatsome .fb-switch-control input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.fh-theme-flatsome .fb-switch-slider {
    position: relative;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: #c7c7c7;
    transition: background 0.2s ease;
}

.fh-theme-flatsome .fb-switch-slider::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.18);
}

.fh-theme-flatsome .fb-switch-control input:checked + .fb-switch-slider {
    background: var(--fh-primary);
}

.fh-theme-flatsome .fb-switch-control input:checked + .fb-switch-slider::before {
    transform: translateX(18px);
}

/* =========================================================
   HUB MINI CART / DRAWER
   ========================================================= */

.fh-cart-bar {
    position: sticky;
    top: 20px;
    z-index: 20;
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid var(--fh-border);
    border-radius: 14px;
    background: var(--fh-bg);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.fh-cart-bar-left,
.fh-cart-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fh-cart-bar-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--fh-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.fh-cart-bar-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.25;
}

.fh-cart-bar-text strong {
    color: var(--fh-text);
    font-size: 14px;
}

.fh-cart-bar-text span {
    color: var(--fh-text-soft);
    font-size: 13px;
}

.fh-cart-toggle-btn {
    min-height: 40px;
    border-radius: 999px;
    padding: 8px 16px;
}

.fh-cart-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.42);
    z-index: 9997;
}

.fh-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(460px, 100vw);
    height: 100vh;
    background: #fff;
    z-index: 9998;
    box-shadow: -10px 0 30px rgba(0,0,0,0.14);
    display: flex;
    flex-direction: column;
}

.fh-cart-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid var(--fh-border);
    background: #fff;
}

.fh-cart-drawer-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    color: var(--fh-text);
}

.fh-cart-drawer-close {
    width: 38px;
    height: 38px;
    border: 1px solid var(--fh-border);
    border-radius: 50%;
    background: #fff;
    color: var(--fh-text);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.fh-cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 18px 24px;
    background: #fff;
}

.fh-cart-drawer .fb-cart,
.fh-cart-drawer .fb-checkout-root {
    margin: 0;
}

.fh-cart-drawer .fb-cart {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.fh-cart-drawer .fb-checkout-root {
    margin-top: 18px;
}

body.fh-cart-drawer-open {
    overflow: hidden;
}

@media (min-width: 1281px) {
    .fb-layout--with-cart {
        grid-template-columns: 240px 1fr;
    }

    .fb-layout--with-cart > .fb-cart {
        display: none;
    }
}

@media (max-width: 1280px) {
    .fb-layout--with-cart {
        grid-template-columns: 220px 1fr;
    }

    .fb-layout--with-cart > .fb-cart {
        display: none;
    }
}

@media (max-width: 1024px) {
    .fh-cart-bar {
        top: 12px;
    }
}

@media (max-width: 767px) {
    .fh-cart-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .fh-cart-bar-left,
    .fh-cart-bar-right {
        width: 100%;
        justify-content: space-between;
    }

    .fh-cart-drawer {
        width: 100vw;
    }
}
.fh-header-cart {
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
    color: currentColor;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
}

.fh-header-cart-icon {
    font-size: 20px;
}

.fh-header-cart-count {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #ff3c1f;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
.fh-header-cart-count.is-updated {
    animation: fhCartPulse 0.38s ease;
}

@keyframes fhCartPulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.22); }
    100% { transform: scale(1); }
}
.fh-header-cart {
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
    color: currentColor;
}

.fh-header-cart-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.fh-header-cart-icon svg {
    display: block;
    width: 20px;
    height: 20px;
}

.fh-header-cart-count {
    position: absolute;
    top: -7px;
    right: -10px;
    background: var(--primary-color, #446084);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}
html.fh-cart-drawer-open,
body.fh-cart-drawer-open {
    overflow: hidden !important;
    height: 100%;
}

.fh-cart-drawer {
    overscroll-behavior: contain;
}

.fh-cart-drawer-body {
    -webkit-overflow-scrolling: touch;
}
.fh-cart-drawer-head-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.fh-cart-drawer-back-btn {
    border: 1px solid var(--fh-border);
    background: #fff;
    color: var(--fh-text);
    border-radius: 999px;
    min-height: 34px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.fh-drawer-cart-actions {
    margin-top: 18px;
}

.fh-checkout-summary {
    margin-bottom: 18px;
    padding: 14px 14px 12px;
    border: 1px solid var(--fh-border);
    border-radius: 14px;
    background: var(--fh-bg-soft);
}

.fh-checkout-summary-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--fh-text);
    margin-bottom: 10px;
}

.fh-checkout-summary-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.fh-checkout-summary-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}

.fh-checkout-summary-item-main {
    display: flex;
    gap: 6px;
    min-width: 0;
}

.fh-checkout-summary-item-name {
    color: var(--fh-text);
}

.fh-checkout-summary-item-qty {
    color: var(--fh-text-soft);
    white-space: nowrap;
}

.fh-checkout-summary-item-price {
    color: var(--fh-text);
    white-space: nowrap;
    font-weight: 600;
}

.fh-checkout-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    padding-top: 8px;
}

.fh-checkout-summary-row--total {
    font-size: 14px;
    font-weight: 700;
}
.fh-step-indicator {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.fh-step-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--fh-text-soft);
    font-size: 13px;
    font-weight: 600;
}

.fh-step-item.is-active,
.fh-step-item.is-done {
    color: var(--fh-text);
}

.fh-step-dot {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid var(--fh-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    background: #fff;
    color: var(--fh-text-soft);
}

.fh-step-item.is-active .fh-step-dot {
    background: var(--fh-primary);
    border-color: var(--fh-primary);
    color: #fff;
}

.fh-step-item.is-done .fh-step-dot {
    background: rgba(68,96,132,0.10);
    border-color: var(--fh-primary);
    color: var(--fh-primary);
}
.fh-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(12px);
    background: #111;
    color: #fff;
    padding: 12px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    z-index: 10020;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    max-width: calc(100vw - 24px);
    text-align: center;
}

.fh-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.fb-cart-actions-row {
    margin-top: 14px;
}

/* =========================
   REMOTE CHECKOUT LEFT SIDE
   ========================= */

#fh-remote-checkout-root {
  width: 100%;
  margin-bottom: 24px;
}

.fhc-remote-left {
  width: 100%;
}

.fhc-loading,
.fhc-empty {
  padding: 16px 18px;
  border: 1px solid var(--fh-border);
  border-radius: 12px;
  background: #fff;
  color: var(--fh-text);
}

.fhc-errors {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff5f5;
  border: 1px solid rgba(178,0,0,0.18);
  color: var(--fh-alert);
}

.fhc-errors ul {
  margin: 0;
  padding-left: 18px;
}

.fhc-section {
  margin-bottom: 22px;
}

.fhc-section-title {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.2;
  color: var(--fh-text);
}

.fhc-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.fhc-field-wrap {
  min-width: 0;
}

.fhc-field-wrap[data-key="billing_address_1"],
.fhc-field-wrap[data-key="order_comments"],
.fhc-field-wrap[data-key="billing_company"],
.fhc-field-wrap[data-key="billing_wooccm11"],
.fhc-field-wrap[data-key="billing_country"],
.fhc-field-wrap[data-key="billing_state"],
.fhc-field-wrap[data-key="billing_postcode"],
.fhc-field-wrap[data-key="billing_city"] {
  grid-column: 1 / -1;
}

.fhc-field-wrap label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fh-text);
}

.fh-req {
  color: var(--fh-alert);
  margin-left: 4px;
}

.fhc-field-wrap input,
.fhc-field-wrap select,
.fhc-field-wrap textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--fh-border);
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
  background: #fff;
  color: var(--fh-text);
  box-shadow: none;
}

.fhc-field-wrap textarea {
  min-height: 110px;
  resize: vertical;
}

.fhc-field-wrap input:focus,
.fhc-field-wrap select:focus,
.fhc-field-wrap textarea:focus {
  border-color: var(--fh-primary);
  box-shadow: 0 0 0 1px rgba(68,96,132,0.15);
  outline: none;
}

.fhc-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fh-text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.fhc-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--fh-primary);
}

.fhc-heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--fh-text);
  margin: 6px 0 8px;
}

/* =========================
   RIGHT COLUMN PAYMENT INFO
   ========================= */

#fh-native-right-side-info {
  margin-bottom: 16px;
}

.fh-native-payment-block {
  padding: 0 0 4px;
}

.fh-native-shipping-label {
  margin-bottom: 14px;
  color: var(--fh-text);
  font-size: 15px;
  text-align: center;
}

.fh-native-payment-title {
  margin-bottom: 10px;
  text-align: center;
  color: var(--fh-text);
}

.fh-native-payment-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.fh-native-payment-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  color: var(--fh-text);
  font-size: 14px;
  line-height: 1.5;
}

.fh-native-payment-row input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--fh-primary);
}

.fh-native-payment-desc {
  margin-top: 8px;
  text-align: center;
  color: var(--fh-text-soft);
  font-size: 14px;
  line-height: 1.5;
}

.fh-native-empty {
  text-align: center;
  color: var(--fh-text-soft);
  font-size: 14px;
}

.fh-native-review-info,
#fh-native-review-info {
  margin-bottom: 14px;
}

.fh-native-review-line {
  margin-bottom: 10px;
  text-align: center;
}

.fh-native-review-desc {
  margin-top: 6px;
  color: var(--fh-text-soft);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

/* =========================
   CHECKOUT LAYOUT
   ========================= */

.woocommerce-checkout .col2-set,
.woocommerce-checkout .woocommerce-checkout-review-order {
  box-sizing: border-box;
}

@media (max-width: 849px) {
  .fhc-section-grid {
    grid-template-columns: 1fr;
  }
}

#fh-remote-checkout-root {
  width: 100%;
  margin-bottom: 24px;
}

.fhc-loading,
.fhc-empty {
  padding: 16px 18px;
  border: 1px solid var(--fh-border);
  border-radius: 12px;
  background: #fff;
  color: var(--fh-text);
}

.fhc-errors {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff5f5;
  border: 1px solid rgba(178,0,0,0.18);
  color: var(--fh-alert);
}

.fhc-errors ul {
  margin: 0;
  padding-left: 18px;
}

.fhc-section {
  margin-bottom: 22px;
}

.fhc-section-title {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.2;
  color: var(--fh-text);
}

.fhc-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.fhc-field-wrap {
  min-width: 0;
}

.fhc-field-wrap[data-key="billing_wooccm11"],
.fhc-field-wrap[data-key="billing_address_1"],
.fhc-field-wrap[data-key="billing_company"],
.fhc-field-wrap[data-key="billing_country"],
.fhc-field-wrap[data-key="billing_state"],
.fhc-field-wrap[data-key="billing_postcode"],
.fhc-field-wrap[data-key="billing_city"],
.fhc-field-wrap[data-key="order_comments"] {
  grid-column: 1 / -1;
}

.fhc-field-wrap label,
.fhc-checkbox-label span,
.fhc-heading {
  color: var(--fh-text) !important;
}

.fhc-field-wrap label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}

.fh-req {
  color: var(--fh-alert);
  margin-left: 4px;
}

.fhc-field-wrap input,
.fhc-field-wrap select,
.fhc-field-wrap textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--fh-border);
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
  background: #fff;
  color: var(--fh-text);
  box-shadow: none;
}

.fhc-field-wrap textarea {
  min-height: 110px;
  resize: vertical;
}

.fhc-field-wrap input:focus,
.fhc-field-wrap select:focus,
.fhc-field-wrap textarea:focus {
  border-color: var(--fh-primary);
  box-shadow: 0 0 0 1px rgba(68,96,132,0.15);
  outline: none;
}

.fhc-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fh-text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.fhc-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--fh-primary);
}

#fh-native-right-side-info {
  margin-bottom: 16px;
}

.fh-native-shipping-label {
  margin-bottom: 14px;
  text-align: center;
  color: var(--fh-text);
  font-size: 15px;
}

.fh-native-payment-title {
  margin-bottom: 10px;
  text-align: center;
  color: var(--fh-text);
}

.fh-native-payment-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.fh-native-payment-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  color: var(--fh-text);
  font-size: 14px;
  line-height: 1.5;
}

.fh-native-payment-row input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--fh-primary);
}

.fh-native-payment-desc {
  margin-top: 8px;
  text-align: center;
  color: var(--fh-text-soft);
  font-size: 14px;
  line-height: 1.5;
}

.fh-native-empty {
  text-align: center;
  color: var(--fh-text-soft);
  font-size: 14px;
}

@media (max-width: 849px) {
  .fhc-section-grid {
    grid-template-columns: 1fr;
  }
}

.fh-restaurant-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	margin: 8px 0 12px;
}

.fh-restaurant-status.is-open {
	background: rgba(122, 156, 89, 0.12);
	color: #5d7d40;
}

.fh-restaurant-status.is-closed {
	background: rgba(178, 0, 0, 0.10);
	color: #b20000;
}

.fh-minimum-order-box {
  margin: 16px 0;
  padding: 12px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
}

.fh-minimum-order-box.is-ok {
  border-color: #b7dfb9;
  background: #f4fbf4;
  color: #256c2f;
}

.fh-minimum-order-box.is-warning {
  border-color: #f1d39a;
  background: #fff9ef;
  color: #8a5a00;
}
/* === HUB V2 overrides === */
.fb-order-app {
  max-width: 1480px;
  padding: 24px 18px 36px;
}

.fh-discovery-shell,
.fb-main,
.fb-sidebar,
.fh-selected-restaurant-bar {
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}

.fh-discovery-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  padding: 22px;
  margin-bottom: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff 0%, #fff7f2 100%);
  border: 1px solid rgba(0,0,0,0.08);
}

.fh-eyebrow,
.fh-mini-overline,
.fh-filter-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  color: #f26422;
}

.fh-hero-text,
.fh-list-subtitle {
  color: var(--fh-text-soft);
  font-size: 14px;
  line-height: 1.6;
}

.fh-discovery-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-content: start;
}

.fh-control label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
}

.fh-control input,
.fh-control select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 14px;
  background: #fff;
  padding: 0 14px;
}

.fh-discovery-filters,
.fh-discovery-products {
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
}

.fh-chip-row,
.fh-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fh-chip,
.fh-mini-chip,
.fh-city-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 12px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  color: var(--fh-text);
  font-size: 13px;
  font-weight: 600;
}

.fh-chip.is-active {
  background: var(--fh-primary);
  color: #fff;
  border-color: var(--fh-primary);
}

.fh-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.fh-restaurant-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.fh-restaurant-card {
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

.fh-restaurant-media {
  background: #f6f6f6;
}

.fh-restaurant-image {
  aspect-ratio: 16 / 10;
}

.fh-restaurant-image--placeholder {
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  color: #a0a0a0;
}

.fh-restaurant-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.fh-restaurant-extra,
.fh-restaurant-lock-note {
  margin: 10px 0 12px;
  font-size: 13px;
  color: var(--fh-text-soft);
}

.fb-layout {
  grid-template-columns: 260px 1fr;
  gap: 18px;
}

.fb-sidebar,
.fb-main {
  border-radius: 20px;
}

.fb-products {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fb-product-card {
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.fb-product-body {
  display: grid;
  gap: 10px;
}

.fh-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.fh-page-btn {
  min-width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.1);
  background: #fff;
  font-weight: 700;
}

.fh-page-btn.is-active {
  background: var(--fh-primary);
  border-color: var(--fh-primary);
  color: #fff;
}

@media (max-width: 1100px) {
  .fh-restaurant-grid,
  .fb-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fh-discovery-hero,
  .fb-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .fb-order-app {
    padding: 14px 12px 24px;
  }

  .fh-discovery-controls,
  .fh-restaurant-grid,
  .fb-products {
    grid-template-columns: 1fr;
  }

  .fh-selected-restaurant-bar,
  .fh-restaurant-meta-row,
  .fh-list-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .fb-section-title {
    font-size: 24px;
  }
}

/* Launch polish v2.1 */
.fh-discovery-hero{display:flex;justify-content:space-between;gap:20px;align-items:end;flex-wrap:wrap;margin-bottom:18px}
.fh-hero-text,.fh-eyebrow{display:none}
.fh-discovery-controls{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:12px;flex:1;max-width:640px}
.fh-control label{display:block;font-size:12px;font-weight:700;color:var(--fh-text-soft);margin-bottom:6px}
.fh-control input,.fh-control select,.fh-category-select{width:100%;min-height:44px;border:1px solid var(--fh-border);border-radius:12px;padding:10px 14px;background:#fff;box-sizing:border-box}
.fh-discovery-shell,.fh-discovery-products,.fh-category-toolbar{margin-bottom:18px}
.fh-chip-row,.fh-category-row--desktop{display:flex;gap:10px;flex-wrap:wrap;overflow:auto;padding-bottom:2px}
.fh-chip,.fh-mini-chip,.fh-city-badge,.fh-restaurant-status,.fh-category-select,.fb-cat-btn{white-space:nowrap}
.fh-chip{border:1px solid var(--fh-border);background:#fff;border-radius:999px;padding:10px 14px;cursor:pointer;font-weight:700;color:var(--fh-text)}
.fh-chip.is-active{background:var(--fh-primary);color:#fff;border-color:var(--fh-primary)}
.fh-filter-title{font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:var(--fh-primary);margin-bottom:10px}
.fh-list-subtitle{color:var(--fh-text-soft);font-size:14px}
.fh-restaurant-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:stretch}
.fh-restaurant-card{display:flex;flex-direction:column;height:100%;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease;border-radius:20px;overflow:hidden}
.fh-restaurant-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(0,0,0,.08)}
.fh-restaurant-media{aspect-ratio:16/10;overflow:hidden;background:#f6f6f6}
.fh-restaurant-image{width:100%;height:100%;object-fit:contain;padding:14px;background:#f6f6f6;box-sizing:border-box}
.fh-restaurant-body{display:flex;flex-direction:column;gap:10px;flex:1}
.fh-restaurant-meta-row{display:flex;justify-content:space-between;gap:8px;align-items:center;flex-wrap:wrap}
.fh-city-badge,.fh-restaurant-status{padding:6px 10px;border-radius:999px;font-size:12px;font-weight:700;border:1px solid var(--fh-border);background:#fff}
.fh-restaurant-status.is-open{background:#eef7e8;color:#6a8c4d;border-color:#d7e6c9}
.fh-restaurant-status.is-closed{background:#fff2f2;color:#a33;border-color:#f1c9c9}
.fh-restaurant-extra{font-size:14px;color:var(--fh-text-soft)}
.fh-restaurant-btn{width:100%;margin-top:auto}
.fb-layout--restaurant{grid-template-columns:260px minmax(0,1fr);align-items:start}
.fh-recent-sidebar{position:sticky;top:18px}
.fh-recent-list{display:flex;flex-direction:column;gap:12px}
.fh-recent-item{display:flex;gap:12px;align-items:center;border:1px solid var(--fh-border);background:#fff;border-radius:14px;padding:10px;cursor:pointer;text-align:left}
.fh-recent-thumb{width:56px;height:56px;border-radius:10px;object-fit:cover;flex:0 0 56px;background:#f3f3f3}
.fh-recent-thumb--placeholder{display:block}
.fh-recent-content{display:flex;flex-direction:column;gap:4px;min-width:0}
.fh-recent-name{font-weight:700;color:var(--fh-text);line-height:1.3;white-space:normal}
.fh-recent-price{font-size:14px;color:var(--fh-text-soft)}
.fh-category-row--mobile{display:none}
.fb-products{grid-template-columns:repeat(3,minmax(0,1fr))}
.fb-product-card{min-width:0}
.fb-product-image{width:100%;aspect-ratio:4/3;object-fit:cover;display:block}
.fh-products--discovery .fb-product-card .fh-secondary-btn{width:100%}
.fh-selected-restaurant-bar{border-radius:18px}
.fh-minimum-order-box{margin:12px 0;padding:14px 16px;border:1px solid #f0d59a;background:#fff9ef;border-radius:14px;text-align:center;font-weight:700;color:#996400}
.fh-minimum-order-box.is-ok{border-color:#cfe3c2;background:#f5fbf1;color:#5e7e3c}
.fh-pagination{display:flex;gap:8px;justify-content:center;margin-top:18px;flex-wrap:wrap}
.fh-page-btn{min-width:40px;height:40px;border-radius:10px;border:1px solid var(--fh-border);background:#fff;cursor:pointer}
.fh-page-btn.is-active{background:var(--fh-primary);color:#fff;border-color:var(--fh-primary)}
#fh-toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%) translateY(12px);background:#111;color:#fff;padding:12px 16px;border-radius:999px;opacity:0;transition:all .2s ease;z-index:99999}
#fh-toast.is-visible{opacity:1;transform:translateX(-50%) translateY(0)}
@media (max-width:1200px){.fh-restaurant-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.fb-products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:900px){.fb-order-app{padding:14px;overflow-x:hidden}.fh-discovery-controls{grid-template-columns:1fr;max-width:none}.fh-restaurant-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.fb-layout--restaurant,.fb-layout,.fb-layout--with-cart{grid-template-columns:1fr}.fh-recent-sidebar{position:static;order:2}.fh-category-row--desktop{display:none}.fh-category-row--mobile{display:block}.fb-products{grid-template-columns:repeat(2,minmax(0,1fr))}.fb-sidebar,.fb-main,.fb-cart{padding:16px;min-width:0}.fh-selected-restaurant-bar{flex-direction:column;align-items:flex-start}}
@media (max-width:640px){.fb-order-app{padding:12px}.fh-restaurant-grid,.fb-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.fh-restaurant-card,.fb-product-card,.fb-main,.fb-sidebar,.fh-selected-restaurant-bar{border-radius:16px}.fb-section-title{font-size:20px}.fh-restaurant-image{padding:10px}.fb-product-body{padding:12px}.fh-chip-row{flex-wrap:nowrap;overflow:auto}.fh-chip{padding:9px 12px;font-size:13px}}
@media (max-width:420px){.fh-restaurant-grid,.fb-products{grid-template-columns:repeat(2,minmax(0,1fr))}.fh-restaurant-title{font-size:17px}.fh-restaurant-body{padding:12px}.fh-control input,.fh-control select,.fh-category-select{min-height:42px;padding:9px 12px}}

/* Launch-ready polish */
.fh-discovery-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.fh-discovery-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 12px;
    width: min(100%, 640px);
}

.fh-control label,
.fh-filter-title,
.fh-eyebrow {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--fh-primary);
}

.fh-control input,
.fh-control select,
.fh-category-select {
    width: 100%;
    min-height: 46px;
    border-radius: 12px;
    border: 1px solid var(--fh-border);
    padding: 10px 14px;
    background: #fff;
}

.fh-discovery-filters,
.fh-category-toolbar {
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid var(--fh-border);
    border-radius: 14px;
    background: #fff;
}

.fh-chip-row,
.fh-category-row--desktop {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.fh-chip,
.fh-category-row--desktop .fb-cat-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    border-radius: 999px;
    min-height: 42px;
    padding: 10px 16px;
}

.fh-chip {
    border: 1px solid var(--fh-border);
    background: #fff;
    color: var(--fh-text);
    cursor: pointer;
}

.fh-chip.is-active,
.fh-chip:hover {
    background: var(--fh-primary);
    color: #fff;
    border-color: var(--fh-primary);
}

.fh-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px;
}

.fh-list-subtitle,
.fh-mini-overline,
.fh-restaurant-extra {
    color: var(--fh-text-soft);
    font-size: 14px;
}

.fh-restaurant-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (min-width: 1500px) {
    .fh-restaurant-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.fh-restaurant-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    cursor: pointer;
}

.fh-restaurant-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f7f7f7;
}

.fh-restaurant-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.fh-restaurant-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.fh-city-badge,
.fh-restaurant-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    background: #f6f6f6;
}

.fh-restaurant-status.is-open {
    background: rgba(122,156,89,.14);
    color: var(--fh-success);
}

.fh-restaurant-status.is-closed {
    background: rgba(178,0,0,.10);
    color: var(--fh-alert);
}

.fh-restaurant-lock-note {
    margin-top: 8px;
    font-size: 12px;
    color: var(--fh-alert);
}

.fh-discovery-products,
.fh-selected-restaurant-bar,
.fb-sidebar,
.fb-main,
.fb-cart {
    box-shadow: 0 8px 24px rgba(0,0,0,.04);
}

.fb-layout--restaurant {
    grid-template-columns: 280px minmax(0, 1fr);
}

.fh-recent-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

.fh-recent-list {
    display: grid;
    gap: 10px;
}

.fh-recent-item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid var(--fh-border);
    background: #fff;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.fh-recent-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 10px;
    background: #f5f5f5;
}

.fh-recent-content {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.fh-recent-name {
    font-weight: 700;
    color: var(--fh-text);
    line-height: 1.3;
}

.fh-recent-price {
    color: var(--fh-primary);
    font-weight: 700;
}

.fb-products,
.fh-products--discovery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fb-product-card {
    min-width: 0;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.fb-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,.06);
    border-color: rgba(68,96,132,.25);
}

.fb-product-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.fb-product-body {
    display: grid;
    gap: 10px;
}

.fh-pagination {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

@media (max-width: 1199px) {
    .fh-restaurant-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .fb-products,
    .fh-products--discovery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .fb-order-app {
        padding: 16px;
        overflow-x: clip;
    }
    .fh-discovery-hero {
        flex-direction: column;
        align-items: stretch;
    }
    .fh-discovery-controls {
        grid-template-columns: 1fr;
        width: 100%;
    }
    .fb-layout--restaurant {
        grid-template-columns: 1fr;
    }
    .fh-recent-sidebar {
        position: static;
        order: 2;
    }
}

@media (max-width: 767px) {
    .fh-restaurant-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .fb-products,
    .fh-products--discovery {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .fh-selected-restaurant-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .fh-category-row--desktop {
        display: none;
    }
    .fh-category-row--mobile {
        display: block;
    }
}

@media (min-width: 768px) {
    .fh-category-row--mobile {
        display: none;
    }
}


/* Launch candidate v2.2 */
.fh-discovery-filters {
  border: 1px solid var(--fh-border);
  background: linear-gradient(180deg,#fff,#fff7f4);
  box-shadow: 0 6px 18px rgba(0,0,0,.03);
}
.fh-discovery-filters .fh-chip-row {
  flex-wrap: wrap;
  gap: 12px;
}
.fh-discovery-filters .fh-chip {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 14px;
  font-weight: 800;
}
.fh-category-toolbar {
  display: grid;
  gap: 8px;
  align-items: start;
}
.fh-category-toolbar .fh-filter-title {
  margin: 0;
}
.fh-category-select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--fh-text) 50%), linear-gradient(135deg, var(--fh-text) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% - 3px), calc(100% - 14px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}
.fb-products {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
@media (max-width: 1100px) {
  .fb-products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 900px) {
  .fb-products,
  .fh-restaurant-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 700px) {
  .fb-products,
  .fh-restaurant-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 480px) {
  .fh-discovery-filters .fh-chip-row {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
}

/* HUB launch patch */
.fh-selected-restaurant-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.fh-closed-restaurant-notice{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.fhc-restaurant-info{margin:0 0 18px;padding:14px 16px;border:1px solid var(--fh-border);border-radius:16px;background:#fff7ef}
.fh-category-row--desktop{display:flex;gap:10px;flex-wrap:wrap;overflow:auto;padding-bottom:2px}
.fh-category-row--mobile{display:none}
.fb-modal-close{width:42px;height:42px;border-radius:999px;border:1px solid var(--fh-border);background:#fff;display:flex;align-items:center;justify-content:center;font-size:24px;line-height:1;top:14px;right:14px;box-shadow:0 8px 24px rgba(0,0,0,.08)}
.fb-qty-btn{min-width:42px;height:42px;border-radius:12px;font-size:22px;line-height:1;display:flex;align-items:center;justify-content:center}
.fb-qty-input{height:42px;border-radius:12px;text-align:center}
@media (max-width:900px){.fh-selected-restaurant-actions{justify-content:flex-start}.fh-category-row--desktop{display:none}.fh-category-row--mobile{display:block}.fhc-restaurant-info{border-radius:14px}}


/* Fodorium HUB safe UI patch */
.fh-category-row--desktop{display:flex !important;flex-wrap:nowrap !important;overflow-x:auto !important;overflow-y:hidden !important;-webkit-overflow-scrolling:touch;scrollbar-width:thin;padding-bottom:4px}
.fh-category-row--desktop .fb-cat-btn{flex:0 0 auto !important;white-space:nowrap !important}
.fh-discovery-filters .fh-chip-row{flex-wrap:wrap !important;overflow:visible !important}
.fb-product-image{object-fit:contain !important;background:#fff !important;padding:10px !important}
.fb-modal .fb-modal-close{position:absolute !important;top:14px !important;right:14px !important;width:44px !important;height:44px !important;padding:0 !important;margin:0 !important;border-radius:999px !important;font-size:28px !important;font-weight:700 !important;line-height:1 !important;display:flex !important;align-items:center !important;justify-content:center !important;z-index:20 !important}
.fb-modal .fb-qty-box{display:inline-flex !important;align-items:center !important;border:1px solid var(--fh-border) !important;border-radius:14px !important;overflow:hidden !important;height:46px !important;background:#fff !important}
.fb-modal .fb-qty-btn{width:46px !important;min-width:46px !important;height:46px !important;padding:0 !important;margin:0 !important;border:0 !important;border-radius:0 !important;background:#f6f6f6 !important;color:var(--fh-text) !important;font-size:28px !important;font-weight:700 !important;line-height:1 !important;display:flex !important;align-items:center !important;justify-content:center !important;box-shadow:none !important}
.fb-modal .fb-qty-input{width:60px !important;height:46px !important;padding:0 !important;margin:0 !important;border:0 !important;border-radius:0 !important;text-align:center !important;font-size:18px !important;font-weight:700 !important;line-height:46px !important;box-shadow:none !important;background:#fff !important}
@media (max-width:900px){.fh-discovery-filters .fh-chip-row{flex-wrap:nowrap !important;overflow-x:auto !important;overflow-y:hidden !important}}


.fh-list-header--center{text-align:center;justify-content:center}
.fh-category-toolbar .fh-filter-title{text-align:center;display:block;width:100%;margin-bottom:10px}
.fh-category-row--desktop{display:flex;gap:12px;overflow-x:auto;flex-wrap:nowrap;padding-bottom:8px;justify-content:flex-start}
.fh-category-row--desktop .fb-cat-btn{flex:0 0 auto}
.fb-modal-close{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:999px;font-size:26px;line-height:1}
.fb-qty-btn{display:flex;align-items:center;justify-content:center;min-width:42px;height:42px;font-size:24px;line-height:1}
.fb-variation-wrap{margin:10px 0 0}
.fb-variation-label{display:block;font-weight:700;margin-bottom:6px}
.fb-variation-select{width:100%;min-height:44px;border:1px solid #ddd;border-radius:12px;padding:0 12px;background:#fff}


/* hotfix: selectedVariation/cart + category chips */
.fh-discovery-filters .fh-filter-title,
.fh-category-toolbar .fh-filter-title{
  text-align:center !important;
  display:block !important;
  width:100% !important;
  margin:0 0 12px !important;
}
.fh-discovery-filters .fh-chip-row{
  display:flex !important;
  flex-wrap:wrap !important;
  justify-content:center !important;
  gap:10px !important;
  overflow:visible !important;
  padding-bottom:0 !important;
}
.fh-discovery-filters .fh-chip{
  width:auto !important;
  min-height:40px !important;
  padding:9px 16px !important;
  border-radius:999px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
}
.fh-category-toolbar{
  display:grid !important;
  gap:8px !important;
  padding:16px 18px !important;
}
.fh-category-row--desktop{
  display:flex !important;
  flex-wrap:nowrap !important;
  justify-content:flex-start !important;
  gap:10px !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  -webkit-overflow-scrolling:touch !important;
  scrollbar-width:thin !important;
  padding:2px 0 6px !important;
}
.fh-category-row--desktop .fb-cat-btn{
  flex:0 0 auto !important;
  width:auto !important;
  min-height:40px !important;
  padding:9px 16px !important;
  border-radius:999px !important;
  white-space:nowrap !important;
}
@media (max-width:900px){
  .fh-discovery-filters .fh-chip-row{
    flex-wrap:nowrap !important;
    justify-content:flex-start !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    -webkit-overflow-scrolling:touch !important;
    padding-bottom:4px !important;
  }
  .fh-category-row--desktop{display:none !important;}
  .fh-category-row--mobile{display:block !important;}
}


/* final UI polish without changing flow */
.fh-list-header--center,.fh-list-header--center>div,.fh-discovery-products .fh-list-header,.fh-discovery-products .fh-list-header>div{text-align:center!important;justify-content:center!important}.fh-discovery-products .fh-filter-title,.fh-discovery-products .fh-list-subtitle,.fh-discovery-shell .fh-list-header .fh-filter-title,.fh-discovery-shell .fh-list-header .fh-list-subtitle{text-align:center!important}.fh-selected-restaurant-bar{align-items:center!important}.fh-selected-restaurant-copy{text-align:center!important;flex:1 1 auto}.fh-selected-restaurant-copy strong{display:block;font-size:28px;margin-top:6px}.fh-selected-restaurant-copy .fh-list-subtitle{text-align:center!important}.fh-selected-restaurant-actions{display:flex;align-items:center;gap:12px}.fh-scroll-wrap{display:flex;align-items:center;gap:10px}.fh-scroll-arrow{width:36px;height:36px;border-radius:999px;border:1px solid var(--fh-border);background:#fff;color:var(--fh-text);display:flex;align-items:center;justify-content:center;font-size:22px;line-height:1;padding:0;cursor:pointer;flex:0 0 36px}.fh-scroll-arrow:hover{background:#f7f7f7}.fh-chip-row[data-scroll-row],.fh-category-row--desktop[data-scroll-row]{flex:1 1 auto}.fh-product-search-wrap{margin-top:12px}.fh-product-search{width:100%;min-height:44px;border:1px solid var(--fh-border);border-radius:14px;padding:0 14px;background:#fff}.fb-modal-close{width:38px!important;height:38px!important;min-width:38px!important;border:1px solid #e5e5e5!important;background:#fff!important;color:#555!important;box-shadow:0 2px 10px rgba(0,0,0,.06)!important;font-size:24px!important;top:10px!important;right:10px!important}.fb-modal-close:hover{background:#f8f8f8!important}.fh-pagination{overflow-x:auto;overflow-y:hidden;flex-wrap:nowrap!important;justify-content:flex-start!important;-webkit-overflow-scrolling:touch;scrollbar-width:thin;padding-bottom:6px}.fh-pagination .fh-page-btn{flex:0 0 auto}@media (max-width:900px){.fh-selected-restaurant-bar{flex-direction:column!important;align-items:stretch!important}.fh-selected-restaurant-actions{justify-content:center;flex-wrap:wrap}.fh-scroll-arrow{display:none!important}.fh-category-row--desktop{display:flex!important}.fh-category-row--mobile{display:none!important}}


/* final css fix: category/search layout + centered desktop pagination */
.fh-category-toolbar{
  overflow:hidden !important;
}
.fh-scroll-wrap--restaurant{
  width:100%;
  max-width:100%;
  min-width:0;
  overflow:hidden;
}
.fh-scroll-wrap--restaurant .fh-category-row--desktop{
  min-width:0 !important;
  width:100%;
  max-width:100%;
  flex:1 1 auto;
}
.fh-product-search-wrap{
  width:100%;
  max-width:100%;
  overflow:hidden;
}
.fh-product-search{
  display:block;
  width:100% !important;
  max-width:100%;
  box-sizing:border-box;
}
.fh-pagination{
  justify-content:center !important;
}
@media (max-width:900px){
  .fh-scroll-wrap--restaurant{
    gap:0 !important;
  }
  .fh-category-toolbar{
    overflow:visible !important;
  }
  .fh-scroll-wrap--restaurant .fh-category-row--desktop{
    width:auto !important;
    max-width:none !important;
  }
  .fh-pagination{
    justify-content:flex-start !important;
    overflow-x:auto;
    overflow-y:hidden;
    flex-wrap:nowrap !important;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
    padding-bottom:6px;
  }
  .fh-pagination .fh-page-btn{
    flex:0 0 auto;
  }
}


/* design touch-up v2 */
.fh-scroll-wrap--discovery .fh-scroll-arrow{
  display:none !important;
}
.fh-scroll-wrap--discovery{
  justify-content:center;
}
.fh-category-row--desktop[data-scroll-row="restaurant-cats"]{
  overflow-x:auto !important;
  overflow-y:hidden !important;
  scrollbar-width:none !important;
  -ms-overflow-style:none;
}
.fh-category-row--desktop[data-scroll-row="restaurant-cats"]::-webkit-scrollbar{
  display:none !important;
  width:0 !important;
  height:0 !important;
}
.fh-scroll-wrap--restaurant{
  overflow:hidden !important;
}
.fh-product-search-wrap--inline{
  max-width:760px !important;
  margin:12px auto 22px !important;
}
.fh-product-search{
  width:100% !important;
  height:56px !important;
  min-height:56px !important;
  border-radius:999px !important;
  border:1px solid #e7ddd3 !important;
  background:#fff !important;
  padding:0 22px !important;
  box-shadow:0 10px 24px rgba(0,0,0,.05) !important;
}
.fh-product-search::placeholder{
  color:#9b948e;
}
.fh-category-card-grid{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:22px !important;
  margin-top:8px !important;
}
.fh-category-card{
  position:relative !important;
  overflow:hidden !important;
  border:0 !important;
  padding:0 !important;
  aspect-ratio:1/1 !important;
  background:#f3f3f3 !important;
  box-shadow:0 2px 10px rgba(0,0,0,.04) !important;
  cursor:pointer !important;
}
.fh-category-card__image{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block !important;
}
.fh-category-card__image--placeholder{
  background:#ececec !important;
}
.fh-category-card__overlay{
  position:absolute !important;
  inset:0 !important;
  background:linear-gradient(to top, rgba(0,0,0,.42), rgba(0,0,0,.08)) !important;
}
.fh-category-card__content{
  position:absolute !important;
  left:12px !important;
  right:12px !important;
  bottom:14px !important;
  color:#fff !important;
  text-align:center !important;
  z-index:2 !important;
  text-shadow:0 2px 8px rgba(0,0,0,.35) !important;
}
.fh-category-card__content strong{
  display:block !important;
  font-size:18px !important;
  line-height:1.15 !important;
  margin-bottom:4px !important;
}
.fh-category-card__content small{
  display:block !important;
  font-size:13px !important;
  font-weight:700 !important;
}
@media (max-width:1100px){
  .fh-category-card-grid{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}
@media (max-width:900px){
  .fh-product-search-wrap--inline{
    max-width:none !important;
    margin:10px 0 16px !important;
  }
  .fh-product-search{
    height:50px !important;
    min-height:50px !important;
    border-radius:18px !important;
    padding:0 18px !important;
    box-shadow:none !important;
  }
  .fh-category-card-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:14px !important;
  }
}


/* premium loading + micro UX */
.fh-skeleton-shell,
.fh-skeleton-card,
.fh-skeleton-product,
.fh-skeleton-recent,
.fh-skeleton-control,
.fh-skeleton-chip,
.fh-skeleton-line,
.fh-skeleton-card__media,
.fh-skeleton-product__image{
  position:relative;
  overflow:hidden;
}
.fh-skeleton-shell{display:block}
.fh-skeleton-hero{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;flex-wrap:wrap;margin-bottom:20px}
.fh-skeleton-controls{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:14px;flex:1 1 420px}
.fh-skeleton-control{height:56px;border-radius:18px;background:#f3eeea}
.fh-skeleton-line{height:14px;border-radius:999px;background:#f3eeea}
.fh-skeleton-line--lg{width:min(420px,72%);height:24px}
.fh-skeleton-line--md{width:72%}
.fh-skeleton-line--sm{width:46%}
.fh-skeleton-line--xs{width:120px}
.fh-skeleton-line--btn{width:42%;height:44px;border-radius:12px;margin-top:auto}
.fh-skeleton-chip-row{display:flex;gap:12px;flex-wrap:nowrap;overflow:hidden;margin-bottom:18px}
.fh-skeleton-chip{width:118px;height:42px;border-radius:999px;background:#f3eeea;flex:0 0 auto}
.fh-skeleton-section-title{width:220px;height:18px;border-radius:999px;background:#f3eeea;margin:0 auto 18px}
.fh-skeleton-restaurant-grid,
.fh-products-skeleton{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.fh-skeleton-card{border:1px solid rgba(0,0,0,.06);border-radius:20px;background:#fff}
.fh-skeleton-card__media{aspect-ratio:16/10;background:#f3eeea}
.fh-skeleton-card__body{padding:16px;display:flex;flex-direction:column;gap:12px}
.fh-skeleton-product{border:1px solid rgba(0,0,0,.06);border-radius:18px;background:#fff;overflow:hidden}
.fh-skeleton-product__image{aspect-ratio:4/3;background:#f3eeea}
.fh-skeleton-product__body{padding:16px;display:flex;flex-direction:column;gap:12px;min-height:150px}
.fh-skeleton-recent-list{display:flex;flex-direction:column;gap:14px}
.fh-skeleton-recent{height:92px;border-radius:16px;background:#f3eeea}
.fh-skeleton-shell *::after,
.fh-skeleton-product::after,
.fh-skeleton-card::after,
.fh-skeleton-recent::after,
.fh-skeleton-control::after,
.fh-skeleton-chip::after,
.fh-skeleton-line::after,
.fh-skeleton-card__media::after,
.fh-skeleton-product__image::after{
  content:"";
  position:absolute;
  inset:0;
  transform:translateX(-100%);
  background:linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.72) 50%, rgba(255,255,255,0) 100%);
  animation:fhShimmer 1.3s infinite;
}
@keyframes fhShimmer{100%{transform:translateX(100%)}}

.fb-product-card.is-just-added{
  box-shadow:0 0 0 2px rgba(240,90,40,.22), 0 16px 34px rgba(240,90,40,.14);
  transform:translateY(-2px);
}
.fb-product-card.is-just-added .fb-product-btn{
  animation:fhPulseAdd .9s ease;
}
@keyframes fhPulseAdd{
  0%{transform:scale(1)}
  50%{transform:scale(1.04)}
  100%{transform:scale(1)}
}

/* speed/UI tweaks requested */
.fh-category-row--desktop[data-scroll-row="restaurant-cats"]{
  scrollbar-width:none !important;
  -ms-overflow-style:none;
}
.fh-category-row--desktop[data-scroll-row="restaurant-cats"]::-webkit-scrollbar{
  display:none !important;
  width:0 !important;
  height:0 !important;
}
.fh-scroll-wrap--discovery .fh-scroll-arrow{display:none !important;}

@media (max-width:1100px){
  .fh-skeleton-restaurant-grid,
  .fh-products-skeleton{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:700px){
  .fh-skeleton-controls{grid-template-columns:1fr}
  .fh-skeleton-restaurant-grid,
  .fh-products-skeleton{grid-template-columns:1fr}
  .fb-product-image{aspect-ratio:1 / 1 !important}
  .fb-product-btn{
    padding:9px 12px !important;
    font-size:14px !important;
    border-radius:10px !important;
  }
}


/* Safe patch: lighter skeleton shimmer */
.fh-skeleton-shell *::after,
.fh-skeleton-product::after,
.fh-skeleton-card::after,
.fh-skeleton-recent::after,
.fh-skeleton-control::after,
.fh-skeleton-chip::after,
.fh-skeleton-line::after,
.fh-skeleton-card__media::after,
.fh-skeleton-product__image::after{
  opacity: .38 !important;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.35), rgba(255,255,255,0)) !important;
  animation-duration: 1.75s !important;
}
.fh-skeleton-control,
.fh-skeleton-line,
.fh-skeleton-chip,
.fh-skeleton-card__media,
.fh-skeleton-product__image,
.fh-skeleton-recent{
  background: #f5f2ef !important;
}


/* layout tightening for city + search */
.fh-discovery-hero{
  grid-template-columns: minmax(0,1fr) auto !important;
  align-items:end !important;
}
.fh-discovery-copy{
  display:none !important;
}
.fh-discovery-controls{
  max-width:760px !important;
  margin-left:auto !important;
  gap:12px !important;
}
.fh-discovery-controls .fh-control-group{
  min-width:240px !important;
}
.fh-discovery-controls .fh-control-group select,
.fh-discovery-controls .fh-control-group input{
  min-height:46px !important;
  border-radius:14px !important;
}
.fh-discovery-filters .fh-filter-title{
  margin-bottom:18px !important;
}
@media (max-width: 900px){
  .fh-discovery-controls{
    max-width:none !important;
    width:100% !important;
  }
  .fh-discovery-controls .fh-control-group{
    min-width:0 !important;
  }
}


/* v4 tiny polish only */
.fh-discovery-hero-title{
  display:none !important;
}
.fh-discovery-filters .fh-filter-title{
  text-align:center !important;
  display:block !important;
}
.fb-empty{
  max-width: 520px;
  margin: 0 auto !important;
  text-align: center !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 86px;
}
.fh-discovery-controls{
  max-width: 640px !important;
}
.fh-discovery-controls .fh-control-group{
  min-width: 210px !important;
}


/* v5 selector layout + working hours */
.fh-discovery-hero{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  gap:16px !important;
  align-items:end !important;
}
.fh-discovery-inline-filters{
  min-width:0;
}
.fh-discovery-inline-filters .fh-filter-title{
  text-align:left !important;
  margin:0 0 12px !important;
}
.fh-scroll-wrap--discovery{
  overflow:hidden;
  justify-content:flex-start !important;
}
.fh-scroll-wrap--discovery .fh-chip-row{
  flex-wrap:nowrap !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  scrollbar-width:none !important;
  -ms-overflow-style:none;
}
.fh-scroll-wrap--discovery .fh-chip-row::-webkit-scrollbar{
  display:none !important;
  width:0 !important;
  height:0 !important;
}
.fh-discovery-controls{
  max-width:600px !important;
}
.fh-discovery-controls .fh-control-group,
.fh-discovery-controls .fh-control{
  min-width:190px !important;
}
.fh-restaurant-hours{
  margin-top:6px;
  font-size:13px;
  line-height:1.45;
  color:#7c746c;
}
.fh-selected-restaurant-copy .fh-restaurant-hours{
  text-align:center;
}
.fb-empty{
  max-width:none !important;
  width:100%;
  min-height:86px;
  display:flex !important;
  align-items:center;
  justify-content:center;
  text-align:center !important;
  white-space:nowrap;
}
@media (max-width: 1100px){
  .fh-discovery-hero{
    grid-template-columns:1fr !important;
  }
  .fh-discovery-controls{
    max-width:none !important;
  }
}
@media (max-width: 900px){
  .fb-empty{
    white-space:normal;
  }
  .fh-discovery-inline-filters .fh-filter-title{
    text-align:center !important;
  }
}


/* v6 mobile premium cards + cleaner empty state + search focus visuals */
.fh-discovery-products .fb-empty{
  max-width: 440px !important;
  margin: 18px auto 0 !important;
  white-space: normal !important;
  line-height: 1.45 !important;
  text-align: center !important;
}
.fh-restaurant-hours{
  min-height: 20px;
}
@media (max-width: 900px){
  .fh-restaurant-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  .fh-restaurant-image{
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    padding: 10px !important;
    background: #fff !important;
  }
  .fh-restaurant-body{
    padding: 12px !important;
  }
  .fh-restaurant-title{
    font-size: 17px !important;
    margin-bottom: 6px !important;
    text-align: center !important;
  }
  .fh-restaurant-meta-row{
    gap: 8px !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    margin-bottom: 8px !important;
  }
  .fh-restaurant-hours{
    font-size: 12px !important;
    line-height: 1.4 !important;
    text-align: center !important;
    min-height: auto !important;
    margin-top: 0 !important;
    margin-bottom: 8px !important;
  }
  .fh-restaurant-extra{
    text-align: center !important;
    font-size: 13px !important;
    margin-bottom: 10px !important;
  }
  .fh-restaurant-btn{
    min-height: 38px !important;
    padding: 8px 12px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
  }
}


/* v7 mobile polish only */
.fh-discovery-products .fb-empty,
.fb-empty{
  max-width: none !important;
  width: 100% !important;
  margin: 18px auto 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  white-space: nowrap !important;
}
.fh-discovery-products .fb-empty{
  min-height: 52px !important;
}
@media (max-width: 900px){
  .fh-discovery-products .fb-empty,
  .fb-empty{
    white-space: normal !important;
    line-height: 1.45 !important;
    padding: 0 10px !important;
  }
  .fh-restaurant-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .fh-restaurant-card{
    border-radius: 18px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 20px rgba(0,0,0,.05) !important;
  }
  .fh-restaurant-media{
    background: #fff !important;
    padding: 8px 8px 0 !important;
  }
  .fh-restaurant-image{
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    padding: 0 !important;
    max-height: 112px !important;
    width: 100% !important;
  }
  .fh-restaurant-body{
    padding: 10px 10px 12px !important;
  }
  .fh-restaurant-title{
    font-size: 16px !important;
    line-height: 1.2 !important;
    margin: 2px 0 6px !important;
    min-height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .fh-restaurant-hours{
    font-size: 12px !important;
    margin: 0 0 8px !important;
    text-align: center !important;
  }
  .fh-restaurant-extra{
    font-size: 12px !important;
    line-height: 1.35 !important;
    margin-bottom: 10px !important;
    text-align: center !important;
  }
  .fh-restaurant-btn{
    min-height: 36px !important;
    padding: 7px 10px !important;
    font-size: 12px !important;
    border-radius: 12px !important;
  }
  .fh-city-badge,
  .fh-restaurant-status{
    font-size: 11px !important;
    padding: 6px 10px !important;
  }

  .fb-product-image,
  .fb-product-thumb,
  .fb-product-card__image{
    width: 108px !important;
    min-width: 108px !important;
    height: 108px !important;
    object-fit: cover !important;
    border-radius: 14px !important;
  }
  .fb-product-card .button,
  .fb-product-card .fb-add-to-cart,
  .fb-product-card [data-add-to-cart],
  .fb-product-card .fh-primary-btn{
    min-height: 34px !important;
    padding: 7px 12px !important;
    font-size: 12px !important;
    border-radius: 10px !important;
  }
}


/* final mobile polish only */
@media (max-width: 900px){
  /* empty state full width + centered text */
  .fh-discovery-products .fb-empty,
  .fb-empty{
    width: 100% !important;
    max-width: none !important;
    margin: 16px 0 0 !important;
    padding: 0 10px !important;
    display: block !important;
    text-align: center !important;
    white-space: normal !important;
    line-height: 1.5 !important;
  }

  /* restaurant selector cards shorter */
  .fh-restaurant-card{
    display: flex !important;
    flex-direction: column !important;
  }
  .fh-restaurant-media{
    padding: 8px 8px 0 !important;
    margin-bottom: 2px !important;
  }
  .fh-restaurant-image{
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 92px !important;
    max-height: 92px !important;
    margin: 0 auto !important;
    object-fit: contain !important;
  }
  .fh-restaurant-body{
    padding: 8px 10px 10px !important;
  }
  .fh-restaurant-meta-row{
    margin-bottom: 6px !important;
  }
  .fh-restaurant-title{
    min-height: 0 !important;
    margin: 0 0 6px !important;
    font-size: 15px !important;
  }
  .fh-restaurant-hours{
    margin: 0 0 6px !important;
    line-height: 1.3 !important;
  }
  .fh-restaurant-extra{
    margin-bottom: 8px !important;
  }

  /* restaurant page product cards */
  .fb-products .fb-product-card{
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 12px !important;
  }
  .fb-products .fb-product-image,
  .fb-products .fb-product-thumb,
  .fb-products .fb-product-card__image,
  .fb-products img.fb-product-image,
  .fb-products img.fb-product-thumb{
    display: block !important;
    width: 124px !important;
    min-width: 124px !important;
    height: 124px !important;
    margin: 0 auto 10px !important;
    object-fit: cover !important;
    border-radius: 14px !important;
  }
  .fb-products .fb-product-body,
  .fb-products .fb-product-content,
  .fb-products .fb-card-content{
    width: 100% !important;
    text-align: center !important;
  }
  .fb-products .button,
  .fb-products .fb-add-to-cart,
  .fb-products [data-add-to-cart],
  .fb-products .fh-primary-btn{
    min-height: 34px !important;
    padding: 7px 12px !important;
    font-size: 12px !important;
    border-radius: 10px !important;
  }
}


/* promo ribbon + promo pricing + centered empty state */
.fh-empty-state-wrap{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:72px;
}
.fh-empty-state-wrap .fb-empty{
  margin:0 auto !important;
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  width:auto !important;
  max-width:900px !important;
  min-height:0 !important;
  text-align:center !important;
  white-space:normal !important;
  line-height:1.5 !important;
}
.fh-promo-ribbon{
  position:absolute;
  top:10px;
  left:-36px;
  width:120px;
  text-align:center;
  transform:rotate(-45deg);
  z-index:4;
}
.fh-promo-ribbon span{
  display:block;
  background:#169c42;
  color:#fff;
  font-size:12px;
  font-weight:800;
  letter-spacing:.06em;
  padding:6px 0;
  box-shadow:0 6px 16px rgba(0,0,0,.16);
}
.fh-discount-badge{
  position:absolute;
  top:10px;
  left:10px;
  z-index:4;
  width:52px;
  height:52px;
  border-radius:999px;
  background:#1e3768;
  color:#fff;
  font-size:20px;
  font-weight:800;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 8px 18px rgba(30,55,104,.22);
}
.fb-product-price-wrap{
  display:flex;
  align-items:baseline;
  gap:10px;
  justify-content:center;
  flex-wrap:wrap;
}
.fb-product-price-old{
  color:#8f8a84;
  text-decoration:line-through;
  font-weight:500;
  font-size:15px;
}
.fb-modal-base-price .fb-product-price-old{
  margin-right:8px;
}
.fb-modal-base-price .fb-product-price,
.fb-product-price-wrap .fb-product-price{
  color:var(--fh-primary);
  font-weight:800;
}
@media (max-width:900px){
  .fh-discount-badge{
    width:44px;
    height:44px;
    font-size:17px;
  }
  .fh-promo-ribbon{
    top:8px;
    left:-40px;
    width:118px;
  }
}


/* production final: empty text removed, promo badge fixed, stable search */
.fb-product-card,
.fh-discovery-product-card,
.fh-restaurant-card {
  position: relative;
}

.fh-promo-ribbon {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 92px !important;
  height: 92px !important;
  overflow: hidden !important;
  transform: none !important;
  z-index: 5 !important;
  pointer-events: none !important;
}

.fh-promo-ribbon span {
  position: absolute !important;
  top: 16px !important;
  left: -22px !important;
  width: 120px !important;
  transform: rotate(-45deg) !important;
  display: block !important;
  text-align: center !important;
  background: #16a34a !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .05em !important;
  padding: 6px 0 !important;
  box-shadow: 0 6px 16px rgba(0,0,0,.16) !important;
}

.fh-discount-badge {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  z-index: 5 !important;
}

.fh-empty-state-wrap,
.fb-empty {
  display: none !important;
}

.fh-product-search,
[data-fh-restaurant-search="1"] {
  -webkit-user-select: text;
  user-select: text;
}

@media (max-width: 900px) {
  .fh-promo-ribbon {
    width: 82px !important;
    height: 82px !important;
  }
  .fh-promo-ribbon span {
    top: 14px !important;
    left: -24px !important;
    width: 112px !important;
    font-size: 11px !important;
  }
}


/* premium promo badge */
.fh-restaurant-card,
.fh-discovery-product-card,
.fb-product-card{
  position: relative;
  overflow: hidden;
}

.fh-promo-ribbon{
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 96px !important;
  height: 96px !important;
  overflow: hidden !important;
  z-index: 6 !important;
  pointer-events: none !important;
}

.fh-promo-ribbon span{
  position: absolute !important;
  top: 16px !important;
  left: -28px !important;
  width: 126px !important;
  display: block !important;
  transform: rotate(-45deg) !important;
  background: linear-gradient(135deg, #16a34a 0%, #0f8f3f 100%) !important;
  color: #fff !important;
  text-align: center !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .05em !important;
  text-transform: uppercase !important;
  padding: 6px 0 !important;
  box-shadow: 0 8px 18px rgba(0,0,0,.18) !important;
  border-top: 1px solid rgba(255,255,255,.18) !important;
  border-bottom: 1px solid rgba(255,255,255,.14) !important;
}

.fh-promo-ribbon::before{
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  border-top: 18px solid rgba(255,255,255,.15) !important;
  border-right: 18px solid transparent !important;
}

@media (max-width: 900px){
  .fh-promo-ribbon{
    width: 88px !important;
    height: 88px !important;
  }
  .fh-promo-ribbon span{
    top: 15px !important;
    left: -26px !important;
    width: 116px !important;
    font-size: 11px !important;
    padding: 5px 0 !important;
  }
}


/* promo ribbon server-side fix polish */
.fh-restaurant-card .fh-promo-ribbon{
  top: 0 !important;
  left: 0 !important;
}
.fh-restaurant-card .fh-promo-ribbon span{
  top: 14px !important;
  left: -30px !important;
}


/* final release: mobile scroll hint */
.fh-scroll-wrap{
  position: relative;
}
.fh-scroll-hint{
  display: none;
}
@media (max-width: 900px){
  .fh-scroll-hint{
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: #8f8277;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    pointer-events: none;
    opacity: 1;
    transition: opacity .2s ease, transform .2s ease;
  }
  .fh-scroll-hint span{
    font-size: 18px;
    line-height: 1;
    transform: translateX(1px);
  }
  .fh-scroll-hint.is-hidden{
    opacity: 0;
    transform: translateY(-50%) scale(.92);
  }
  .fh-scroll-wrap--discovery .fh-scroll-arrow,
  .fh-scroll-wrap--discovery .fh-scroll-hint{
    display: inline-flex;
  }
}


/* final tiny polish */
@media (max-width: 900px){
  .fh-scroll-wrap{
    overflow: visible !important;
  }
  .fh-scroll-hint{
    right: -2px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 24px !important;
    height: 24px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,.08) !important;
  }
  .fh-scroll-hint.is-hidden{
    transform: translateY(-50%) scale(.92) !important;
  }
}

/* final targeted ui polish */
.fhc-field-wrap label,
.fhc-checkbox-label span,
.woocommerce-checkout #customer_details label,
.woocommerce-checkout .woocommerce-billing-fields label,
.woocommerce-checkout .woocommerce-additional-fields label,
.woocommerce-checkout .form-row label {
  color: #000 !important;
}

.fh-selected-restaurant-copy strong a {
  color: inherit;
  text-decoration: none;
}
.fh-selected-restaurant-copy strong a:hover {
  text-decoration: underline;
}

.fh-scroll-wrap {
  position: relative;
}
.fh-scroll-wrap--restaurant,
.fh-scroll-wrap--discovery {
  padding-inline: 42px;
}
.fh-scroll-wrap--restaurant::before,
.fh-scroll-wrap--restaurant::after,
.fh-scroll-wrap--discovery::before,
.fh-scroll-wrap--discovery::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 26px;
  z-index: 2;
  pointer-events: none;
}
.fh-scroll-wrap--restaurant::before,
.fh-scroll-wrap--discovery::before {
  left: 42px;
  background: linear-gradient(to right, #fff, rgba(255,255,255,0));
}
.fh-scroll-wrap--restaurant::after,
.fh-scroll-wrap--discovery::after {
  right: 42px;
  background: linear-gradient(to left, #fff, rgba(255,255,255,0));
}
.fh-scroll-wrap .fh-scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.92);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  color: #2b2b2b;
  font-size: 18px;
  line-height: 1;
}
.fh-scroll-wrap .fh-scroll-arrow.is-left { left: 0; }
.fh-scroll-wrap .fh-scroll-arrow.is-right { right: 0; }
.fh-scroll-hint { display: none !important; }

.fh-restaurant-grid .fh-restaurant-card {
  display: flex;
  flex-direction: column;
}
.fh-restaurant-grid .fh-restaurant-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fh-restaurant-grid .fh-restaurant-title {
  margin: 0;
  text-align: center;
  font-size: 20px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.fh-restaurant-grid .fh-restaurant-meta-row {
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.fh-restaurant-grid .fh-restaurant-hours,
.fh-restaurant-grid .fh-restaurant-desc,
.fh-restaurant-grid .fh-restaurant-extra,
.fh-restaurant-grid .fh-restaurant-lock-note {
  text-align: center;
}
.fh-restaurant-grid .fh-restaurant-btn {
  min-height: 44px;
  font-size: 15px;
  padding: 10px 16px;
}

.fb-products {
  align-items: stretch;
}
.fb-products .fb-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.fb-products .fb-product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain !important;
  background: #fff;
  padding: 10px;
}
.fb-products .fb-product-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  align-items: center;
  text-align: center;
  width: 100%;
}
.fb-products .fb-product-title {
  width: 100%;
  min-height: 2.8em;
}
.fb-products .fb-product-price-wrap {
  margin-top: auto;
  min-height: 28px;
}
.fb-products .fb-product-btn {
  margin-top: 10px;
  min-height: 44px;
  width: 100%;
}

@media (max-width: 900px) {
  .fh-scroll-wrap--restaurant,
  .fh-scroll-wrap--discovery {
    padding-inline: 36px;
  }
  .fh-scroll-wrap--restaurant::before,
  .fh-scroll-wrap--discovery::before { left: 36px; }
  .fh-scroll-wrap--restaurant::after,
  .fh-scroll-wrap--discovery::after { right: 36px; }
  .fh-scroll-wrap .fh-scroll-arrow {
    display: inline-flex !important;
    width: 28px;
    height: 28px;
    min-width: 28px;
    font-size: 16px;
  }
  .fh-restaurant-grid .fh-restaurant-card {
    border-radius: 18px !important;
  }
  .fh-restaurant-grid .fh-restaurant-media {
    padding: 8px 8px 0 !important;
  }
  .fh-restaurant-grid .fh-restaurant-image {
    height: 96px !important;
    max-height: 96px !important;
    object-fit: contain !important;
  }
  .fh-restaurant-grid .fh-restaurant-body {
    padding: 10px !important;
    gap: 6px;
  }
  .fh-restaurant-grid .fh-restaurant-title {
    font-size: 17px !important;
  }
  .fh-restaurant-grid .fh-restaurant-btn {
    min-height: 42px !important;
    font-size: 14px !important;
    padding: 10px 12px !important;
  }
  .fb-products .fb-product-card {
    padding: 12px !important;
  }
  .fb-products .fb-product-image,
  .fb-products img.fb-product-image {
    width: 100% !important;
    max-width: 150px !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 auto 10px !important;
    object-fit: contain !important;
  }
  .fb-products .fb-product-title {
    min-height: 3.2em;
    font-size: 15px;
  }
  .fb-products .fb-product-btn {
    min-height: 42px !important;
    font-size: 14px !important;
  }
  .fh-category-row--desktop .fb-cat-btn,
  .fh-chip-row .fh-chip {
    font-size: 14px !important;
    min-height: 42px;
    padding: 10px 14px !important;
  }
}


/* FH final punctual overrides */
.fh-selected-restaurant-copy strong a {
  color: inherit !important;
  text-decoration: none !important;
}

.fh-selected-restaurant-copy strong a:hover {
  text-decoration: underline !important;
}

.woocommerce-checkout #fh-remote-checkout-root .fhc-field-wrap label,
.woocommerce-checkout #fh-remote-checkout-root .fhc-checkbox-label span,
.woocommerce-checkout #fh-remote-checkout-root .fhc-field-wrap label span,
.woocommerce-checkout #fh-remote-checkout-root .fhc-checkbox-label,
.woocommerce-checkout #fh-remote-checkout-root .fhc-checkbox-label *,
.woocommerce-checkout #fh-remote-checkout-root .fhc-section-title,
.woocommerce-checkout #fh-remote-checkout-root .fhc-restaurant-box,
.woocommerce-checkout #fh-remote-checkout-root .fhc-restaurant-box *,
.woocommerce-checkout #customer_details label,
.woocommerce-checkout .woocommerce-billing-fields label,
.woocommerce-checkout .woocommerce-additional-fields label,
.woocommerce-checkout .form-row label,
.woocommerce-checkout .form-row label *,
.woocommerce-checkout .woocommerce-input-wrapper + label {
  color: #000 !important;
}

@media (max-width: 900px) {
  .fb-order-app {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .fh-discovery-shell,
  .fh-discovery-hero,
  .fh-selected-restaurant-bar,
  .fb-main,
  .fb-sidebar,
  .fb-cart,
  .fh-restaurant-card,
  .fb-product-card {
    width: 100% !important;
    max-width: none !important;
  }

  .fh-discovery-hero,
  .fh-selected-restaurant-bar,
  .fb-main,
  .fb-sidebar,
  .fb-cart {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .fh-restaurant-grid,
  .fb-products {
    gap: 10px !important;
  }

  .fh-restaurant-grid .fh-restaurant-body {
    padding: 10px 8px 12px !important;
  }

  .fh-restaurant-grid .fh-restaurant-title {
    font-size: 18px !important;
    line-height: 1.2 !important;
    margin-bottom: 6px !important;
  }

  .fh-restaurant-grid .fh-restaurant-btn {
    min-height: 44px !important;
    font-size: 15px !important;
    padding: 10px 12px !important;
  }
}


@media (max-width: 900px) {
  .fb-order-app {
    max-width: none !important;
    width: calc(100% + 12px) !important;
    margin-left: -6px !important;
    margin-right: -6px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  .fh-discovery-shell,
  .fh-discovery-hero,
  .fh-selected-restaurant-bar,
  .fb-main,
  .fb-sidebar,
  .fb-cart {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .fh-restaurant-grid,
  .fb-products,
  .fh-discovery-controls {
    gap: 8px !important;
  }
}

@media (max-width: 640px) {
  .fb-order-app {
    width: calc(100% + 16px) !important;
    margin-left: -8px !important;
    margin-right: -8px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  .fh-discovery-shell,
  .fh-discovery-hero,
  .fh-selected-restaurant-bar,
  .fb-main,
  .fb-sidebar,
  .fb-cart,
  .fh-restaurant-card,
  .fb-product-card {
    border-radius: 14px !important;
  }

  .fh-discovery-shell,
  .fh-discovery-hero,
  .fh-selected-restaurant-bar,
  .fb-main,
  .fb-sidebar,
  .fb-cart {
    padding-left: 7px !important;
    padding-right: 7px !important;
  }
}


.fh-list-header--with-sort{display:flex;align-items:end;justify-content:space-between;gap:16px;flex-wrap:wrap}.fh-sort-control{min-width:220px;max-width:260px;margin:0 auto}.fh-sort-control label{text-align:left}.fh-sort-control select{width:100%}@media (max-width:768px){.fh-list-header--with-sort{justify-content:center}.fh-sort-control{width:100%;max-width:320px}}


/* Sort placement + selected restaurant logo polish */
.fh-selected-restaurant-bar{display:grid!important;grid-template-columns:96px minmax(0,1fr) auto;align-items:center!important;gap:22px}
.fh-selected-restaurant-brand{display:flex;align-items:center;justify-content:center}
.fh-selected-restaurant-logo{
  width:88px;
  height:88px;
  border-radius:22px;
  background:#fff;
  border:1px solid var(--fh-border);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;

  /* PREMIUM */
  padding:10px;
  box-shadow:0 12px 28px rgba(0,0,0,.08);
}
.fh-selected-restaurant-logo__img{width:100%;height:100%;object-fit:center;object-position:center;display:block}.fh-selected-restaurant-logo__img{object-fit:contain !important;}
.fh-selected-restaurant-logo--placeholder{font-size:28px;font-weight:700;color:var(--fh-accent)}
.fh-sort-sidebar-wrap{margin-bottom:18px}
.fh-sort-mobile-wrap{display:none}
.fh-list-header--restaurant-products{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap}
.fh-sort-sidebar-wrap .fh-sort-control{min-width:0;max-width:none;margin:0}
.fh-sort-mobile-wrap .fh-sort-control{min-width:180px;max-width:220px;margin:0}
@media (max-width:900px){.fh-selected-restaurant-bar{grid-template-columns:72px minmax(0,1fr)!important;align-items:center!important}.fh-selected-restaurant-actions{grid-column:1/-1}.fh-selected-restaurant-logo{width:64px;height:64px;border-radius:18px}.fh-selected-restaurant-logo__img{object-fit:contain !important;}.fh-sort-sidebar-wrap{display:none}.fh-sort-mobile-wrap{display:block}.fh-list-header--restaurant-products{align-items:center}.fh-sort-mobile-wrap .fh-sort-control{max-width:190px}}
@media (max-width:640px){.fh-selected-restaurant-bar{grid-template-columns:64px minmax(0,1fr)!important;gap:14px}.fh-selected-restaurant-copy{text-align:left!important}.fh-selected-restaurant-copy .fh-list-subtitle{text-align:left!important}.fh-selected-restaurant-copy strong{font-size:20px;margin-top:4px}.fh-sort-mobile-wrap .fh-sort-control{min-width:150px;max-width:170px}.fh-sort-mobile-wrap .fh-sort-control label{font-size:11px;margin-bottom:4px}.fh-sort-mobile-wrap .fh-sort-control select{min-height:42px;padding:0 12px}.fh-list-header--restaurant-products>div:first-child{text-align:left!important;flex:1 1 auto}.fh-list-header--restaurant-products{justify-content:space-between!important}}

.fh-minimum-order-box{display:flex;flex-direction:column;gap:6px}.fh-minimum-order-line{display:block}
.fh-list-header--discovery-products{align-items:flex-start}
.fh-sort-discovery-inline{margin-left:auto}
@media (min-width: 901px){.fh-list-header--discovery-products{display:grid;grid-template-columns:auto 1fr;align-items:start}.fh-sort-discovery-inline{justify-self:start;margin-left:24px;align-self:start}.fh-list-header--discovery-products .fh-sort-control{min-width:220px;max-width:240px}}
.fh-restaurant-products-meta{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;width:100%}
@media (max-width:900px){.fh-restaurant-products-meta{align-items:center}.fh-sort-mobile-wrap{display:block!important;margin-left:auto}.fh-sort-mobile-wrap .fh-sort-control{min-width:140px;max-width:170px}.fh-sort-mobile-wrap .fh-sort-control label{margin-bottom:3px}.fh-sort-mobile-wrap .fh-sort-control select{min-height:40px;padding:0 10px}.fh-list-header--restaurant-products{justify-content:stretch!important}}
@media (max-width:640px){.fh-restaurant-products-meta{gap:10px}.fh-restaurant-products-meta .fb-section-title{margin-bottom:0}.fh-restaurant-products-meta>div:first-child{min-width:0}.fh-sort-mobile-wrap .fh-sort-control{min-width:128px;max-width:150px}}

/* Fodorium HUB frontend speed patch: paint containment + lighter perceived loading */
.fh-restaurant-card,
.fb-product-card,
.fh-discovery-product-card {
  content-visibility: auto;
  contain-intrinsic-size: 280px 360px;
}

.fh-recent-item {
  content-visibility: auto;
  contain-intrinsic-size: 92px;
}

.fh-restaurant-image,
.fb-product-image,
.fh-recent-thumb,
.fh-selected-restaurant-logo__img {
  background: linear-gradient(135deg, rgba(242,140,40,.07), rgba(0,0,0,.035));
}

.fh-restaurant-image,
.fb-product-image {
  transform: translateZ(0);
  will-change: auto;
}

.fh-skeleton-shell,
.fh-products-skeleton,
.fh-skeleton-restaurant-grid {
  contain: layout paint style;
}

.fh-skeleton-card,
.fh-skeleton-product,
.fh-skeleton-control,
.fh-skeleton-chip,
.fh-skeleton-line,
.fh-skeleton-recent {
  box-shadow: none !important;
}

.fhc-loading {
  position: relative;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  color: var(--fh-text, #111);
  font-weight: 700;
  letter-spacing: -.01em;
}

.fhc-loading::before {
  content: '';
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 3px solid rgba(242,140,40,.18);
  border-top-color: var(--fh-accent, #f28c28);
  animation: fhcSpin .78s linear infinite;
  flex: 0 0 22px;
}

@keyframes fhcSpin {
  to { transform: rotate(360deg); }
}

@media (prefers-color-scheme: dark) {
  .fhc-loading {
    background: rgba(18,18,18,.88);
    border-color: rgba(255,255,255,.08);
    color: #f5f5f5;
  }

  .fh-restaurant-image,
  .fb-product-image,
  .fh-recent-thumb,
  .fh-selected-restaurant-logo__img {
    background: linear-gradient(135deg, rgba(242,140,40,.12), rgba(255,255,255,.045));
  }
}

@media (prefers-reduced-motion: reduce) {
  .fhc-loading::before {
    animation: none;
  }
}
