.pto_food_theme {
    --brand-purple: #6923D0;
    --purple-dark: #571BB1;
    --purple-light: #7C6BFE;

    --electric-blue: #007BFF;
    --bright-blue: #3264F9;

    --dark-gray: #58555E;
    --charcoal: #58555E;
    --off-white: #FEFEFE;
    --white: #FFFFFF;
    --light-gray: #F1F1F1;
    --border-gray: #DDDDDD;
    --very-light-border: #F0F0F0;
    --black: #000000;

    --danger: #D93025;
    --success: #16803C;

    --shadow-1: rgba(0, 0, 0, 0.2) 0px 4px 12px 0px;
    --shadow-2: rgba(0, 0, 0, 0.3) 0px 6px 16px 0px;
    --shadow-focus: 0px 0px 0px 3px rgba(105, 35, 208, 0.1);

    --radius-sm: 4px;
    --radius-md: 10px;
    --radius-pill: 30px;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 28px;
    --space-8: 32px;
    --space-9: 40px;
    --space-10: 48px;
    --space-11: 52px;
    --space-12: 64px;
}

.pto_food_theme,
.pto_food_theme * {
    box-sizing: border-box;
}

.pto_food_html {
    scroll-behavior: smooth;
}

.pto_food_body {
    margin: 0;
    /* background: var(--off-white); */
    color: var(--dark-gray);
    font-family:
        "Baloo Tamma 2",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial,
        sans-serif;
    font-size: 19.2px;
    font-weight: 400;
    line-height: 1.5;
}

.pto_food_form_element {
    font: inherit;
}

.pto_food_btn_base {
    cursor: pointer;
}

/* =========================================================
           HEADER
        ========================================================= */

.pto_food_site_header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(254, 254, 254, 0.96);
    border-bottom: 1px solid var(--very-light-border);
    backdrop-filter: blur(10px);
}

.pto_food_header_inner {
    width: 100%;
    max-width: 1110px;
    min-height: 72px;
    margin: 0 auto;
    padding: 0 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.pto_food_brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--charcoal);
    text-decoration: none;
    font-size: 22.4px;
    font-weight: 900;
    line-height: 33.6px;
}

.pto_food_brand_mark {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--brand-purple);
    color: var(--white);

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

    font-size: 18px;
    font-weight: 900;
    box-shadow: var(--shadow-1);
}

.pto_food_header_link {
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    transition: color 200ms ease;
}

.pto_food_header_link:hover {
    color: var(--brand-purple);
}

/* =========================================================
           MAIN
        ========================================================= */

.pto_food_page {
    width: 100%;
    max-width: 1110px;
    margin: 0 auto;
    padding: 48px 16px;
}

/* =========================================================
           HERO
        ========================================================= */

.pto_food_hero {
    text-align: center;
    margin-bottom: 48px;
}

.pto_food_hero_badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 6px 12px;
    border-radius: 7px;

    background: rgba(105, 35, 208, 0.08);
    color: var(--brand-purple);

    font-size: 12.8px;
    font-weight: 700;
    line-height: 19.2px;

    margin-bottom: 16px;
}

.pto_food_hero .pto_food_h1 {
    margin: 0 auto 16px;
    color: var(--charcoal);
    font-size: 64px;
    font-weight: 900;
    line-height: 70.4px;
}

.pto_food_hero .pto_food_p {
    max-width: 680px;
    margin: 0 auto;
    color: var(--dark-gray);
    font-size: 19.2px;
    line-height: 28.8px;
}

/* =========================================================
           SEARCH CARD
        ========================================================= */

.pto_food_search_card {
    background: var(--white);
    border: 1px solid var(--very-light-border);
    border-radius: var(--radius-md);
    padding: 32px;
    margin-bottom: 32px;
}

.pto_food_section_title {
    margin: 0 0 8px;
    color: var(--charcoal);
    font-size: 32px;
    font-weight: 700;
    line-height: 38.4px;
}

.pto_food_section_description {
    margin: 0 0 24px;
    color: var(--dark-gray);
    font-size: 16px;
    line-height: 24px;
}

.pto_food_search_wrapper {
    position: relative;
}

.pto_food_search_label {
    display: block;
    margin-bottom: 8px;
    color: var(--charcoal);
    font-size: 19.2px;
    font-weight: 500;
    line-height: 23.04px;
}

.pto_food_search_input_wrapper {
    position: relative;
}

.pto_food_search_icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);

    width: 20px;
    height: 20px;

    color: var(--dark-gray);
    pointer-events: none;
}

.pto_food_search_input {
    width: 100%;
    height: 52px;

    padding: 10px 48px 10px 48px;

    border: 1px solid var(--very-light-border);
    border-radius: var(--radius-sm);

    background: var(--white);
    color: var(--black);

    font-size: 18px;
    line-height: 27px;

    outline: none;
    transition:
        border-color 200ms ease,
        box-shadow 200ms ease;
}

.pto_food_search_input:focus {
    border-color: var(--brand-purple);
    box-shadow: var(--shadow-focus);
}

.pto_food_search_clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);

    width: 36px;
    height: 36px;

    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--dark-gray);

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

    font-size: 20px;
}

.pto_food_search_clear:hover {
    background: var(--light-gray);
}

.pto_food_search_clear.pto_food_visible {
    display: flex;
}

/* =========================================================
           SEARCH RESULTS
        ========================================================= */

.pto_food_food_results {
    display: none;
    margin-top: 8px;
    background: var(--white);
    border: 1px solid var(--very-light-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-2);
    
    /* Thêm giới hạn chiều cao và cho phép cuộn dọc */
    max-height: 320px; /* Có thể tinh chỉnh con số này tùy ý */
    overflow-y: auto;
    overflow-x: hidden;
    
    position: relative;
    z-index: 19;
}

/* Tùy chỉnh thanh cuộn cho danh sách kết quả */
.pto_food_food_results::-webkit-scrollbar {
    width: 6px;
}

.pto_food_food_results::-webkit-scrollbar-track {
    background: transparent;
    border-radius: var(--radius-sm);
}

.pto_food_food_results::-webkit-scrollbar-thumb {
    background: var(--border-gray);
    border-radius: var(--radius-sm);
}

.pto_food_food_results::-webkit-scrollbar-thumb:hover {
    background: var(--brand-purple); /* Đổi sang màu tím thương hiệu khi hover */
}
/* /Tùy chỉnh thanh cuộn cho danh sách kết quả */

.pto_food_food_results.pto_food_visible {
    display: block;
}

.pto_food_food_result {
    width: 100%;
    padding: 12px 16px;

    border: 0;
    border-bottom: 1px solid #F4F4F4;

    background: var(--white);
    color: var(--dark-gray);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    text-align: left;

    transition:
        background-color 150ms ease,
        color 150ms ease;
}

.pto_food_food_result:last-child {
    border-bottom: 0;
}

.pto_food_food_result:hover,
.pto_food_food_result:focus {
    background: rgba(105, 35, 208, 0.05);
    color: var(--brand-purple);
    outline: none;
}

.pto_food_food_result_main {
    min-width: 0;
}

.pto_food_food_result_name {
    display: block;
    color: var(--charcoal);
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
}

.pto_food_food_result_description {
    display: block;
    margin-top: 2px;

    color: rgba(88, 85, 94, 0.65);

    font-size: 13px;
    font-weight: 400;
    line-height: 19px;
}

.pto_food_food_result_kcal {
    flex-shrink: 0;

    color: var(--brand-purple);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.pto_food_no_results {
    padding: 20px;
    text-align: center;
    color: rgba(88, 85, 94, 0.7);
    font-size: 16px;
    line-height: 24px;
}

/* =========================================================
           EMPTY STATE
        ========================================================= */

.pto_food_empty_state {
    text-align: center;
    padding: 64px 20px;
}

.pto_food_empty_icon {
    width: 72px;
    height: 72px;

    margin: 0 auto 20px;

    border-radius: 50%;

    background: rgba(105, 35, 208, 0.08);
    color: var(--brand-purple);

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

    font-size: 28px;
}

.pto_food_empty_state .pto_food_h2 {
    margin: 0 0 8px;

    color: var(--charcoal);

    font-size: 28px;
    font-weight: 700;
    line-height: 36px;
}

.pto_food_empty_state .pto_food_p {
    max-width: 580px;
    margin: 0 auto;

    color: rgba(88, 85, 94, 0.7);

    font-size: 16px;
    line-height: 24px;
}

/* =========================================================
           LOADING STATE
        ========================================================= */

.pto_food_loading_state {
    display: none;
    text-align: center;
    padding: 64px 20px;
}

.pto_food_loading_state.pto_food_visible {
    display: block;
}

.pto_food_spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 6px solid rgba(105, 35, 208, 0.1);
    border-top: 6px solid var(--brand-purple);
    border-radius: 50%;
    animation: pto_spin 1s linear infinite;
}

@keyframes pto_spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.pto_food_loading_state .pto_food_h2 {
    margin: 0 0 8px;
    color: var(--charcoal);
    font-size: 28px;
    font-weight: 700;
    line-height: 36px;
}

.pto_food_loading_state .pto_food_p {
    max-width: 580px;
    margin: 0 auto;
    color: rgba(88, 85, 94, 0.7);
    font-size: 16px;
    line-height: 24px;
}

/* =========================================================
           SELECTED FOOD
        ========================================================= */

.pto_food_food_content {
    display: none;
}

.pto_food_food_content.pto_food_visible {
    display: block;
}

.pto_food_food_header_card {
    background: var(--white);
    border: 1px solid var(--very-light-border);
    border-radius: var(--radius-md);
    padding: 32px;
    margin-top: 32px;
    margin-bottom: 32px;
}

.pto_food_food_header_top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;

    pointer-events: none;
}

.pto_food_food_header_top > div,
.pto_food_food_image {
    pointer-events: auto;
}

.pto_food_food_serving_size {
    display: inline-flex;
    align-items: center;

    padding: 8px 14px;
    margin-bottom: 8px;

    background: rgba(105, 35, 208, 0.08);
    color: var(--brand-purple);

    border-radius: 8px;

    font-size: 14px;
    font-weight: 600;
    line-height: 19px;
}

.pto_food_food_title {
    margin: 0 0 8px;

    color: var(--charcoal);
    font-size: 33.6px;
    font-weight: 700;
    line-height: 40.32px;
}

.pto_food_food_description {
    margin: 0;

    color: var(--dark-gray);
    font-size: 16px;
    line-height: 24px;
}

.pto_food_food_id {
    flex-shrink: 0;
    padding: 4px 8px;
    color: rgba(88, 85, 94, 0.55);
    background: var(--light-gray);
    border-radius: 7px;
    font-size: 12.8px;
    line-height: 19.2px;
}

.pto_food_food_image {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--very-light-border);
    background-color: var(--light-gray);
    cursor: pointer;
}

.pto_food_lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.pto_food_lightbox_img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.pto_food_close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}

/* =========================================================
           NUTRITION GRID
        ========================================================= */

.pto_food_nutrition_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;

    margin-top: 32px;
}

.pto_food_nutrition_item {
    position: relative;

    min-height: 128px;

    padding: 20px;

    border: 1px solid var(--very-light-border);
    border-radius: var(--radius-md);

    background: var(--off-white);

    overflow: hidden;
}

.pto_food_nutrition_item::after {
    content: "";
    position: absolute;
    right: -20px;
    bottom: -24px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(105, 35, 208, 0.06);
}

.pto_food_nutrition_label {
    display: block;
    margin-bottom: 8px;

    color: var(--charcoal);

    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
}

.pto_food_nutrition_value {
    display: block;

    color: var(--brand-purple);

    font-size: 36px;
    font-weight: 900;
    line-height: 38px;
}

.pto_food_nutrition_unit {
    display: block;

    color: rgba(88, 85, 94, 0.6);

    font-size: 13px;
    line-height: 19px;
}

.pto_food_nutrition_calories {
    background: rgba(105, 35, 208, 0.06);
    border-color: rgba(105, 35, 208, 0.12);
}

.pto_food_nutrition_calories .pto_food_nutrition_label, .pto_food_nutrition_calories .pto_food_nutrition_unit {
    color: var(--brand-purple);
}

/* =========================================================
           COOKING ADJUSTMENTS
        ========================================================= */

.pto_food_adjustments_card {
    background: var(--white);
    border: 1px solid var(--very-light-border);
    border-radius: var(--radius-md);

    padding: 32px;
    margin-bottom: 32px;
}

.pto_food_adjustment_intro {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    padding: 16px;
    margin-bottom: 24px;

    background: rgba(50, 100, 249, 0.05);
    border: 1px solid rgba(50, 100, 249, 0.1);
    border-radius: var(--radius-sm);
}

.pto_food_info_icon {
    flex-shrink: 0;

    width: 24px;
    height: 24px;

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

    border-radius: 50%;

    background: var(--bright-blue);
    color: var(--white);

    font-size: 13px;
    font-weight: 700;
}

.pto_food_adjustment_intro .pto_food_p {
    margin: 0;

    color: var(--dark-gray);

    font-size: 14px;
    line-height: 21px;
}

.pto_food_adjustment_list {
    display: flex;
    flex-direction: column;
}

.pto_food_adjustment_row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 20px;

    padding: 16px 0;

    border-bottom: 1px solid #F3F3F3;
}

.pto_food_adjustment_row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.pto_food_adjustment_row:first-child {
    padding-top: 0;
}

.pto_food_adjustment_name {
    color: var(--charcoal);
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
}

.pto_food_adjustment_description {
    display: block;
    margin-top: 2px;

    color: rgba(88, 85, 94, 0.65);

    font-size: 13px;
    line-height: 19px;
}

.pto_food_adjustment_value {
    min-width: 88px;

    padding: 6px 12px;

    text-align: center;

    border-radius: 30px;

    background: rgba(105, 35, 208, 0.08);
    color: var(--brand-purple);

    font-size: 14px;
    font-weight: 700;
    line-height: 21px;
}

/* =========================================================
           CALCULATOR
        ========================================================= */

.pto_food_calculator_card {
    background: var(--white);
    border: 1px solid var(--very-light-border);
    border-radius: var(--radius-md);

    padding: 32px;
    margin-bottom: 32px;
}

.pto_food_calculator_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: end;
}

.pto_food_field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pto_food_field .pto_food_label {
    color: var(--charcoal);
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
}

.pto_food_field .pto_food_input_group {
    width: 100%;

    min-height: 50px;

    padding: 10px;

    background: var(--white);
    color: var(--black);

    border: 1px solid var(--very-light-border);
    border-radius: var(--radius-sm);

    outline: none;

    font-size: 16px;
    line-height: 24px;

    transition:
        border-color 200ms ease,
        box-shadow 200ms ease;
}

.pto_food_field .pto_food_input_group:focus {
    border-color: var(--brand-purple);
    box-shadow: var(--shadow-focus);
}

.pto_food_field .pto_food_small {
    color: rgba(88, 85, 94, 0.6);
    font-size: 12.8px;
    line-height: 19.2px;
}

.pto_food_calculator_result {
    margin-top: 24px;

    padding: 20px;

    background: rgba(105, 35, 208, 0.06);
    border: 1px solid rgba(105, 35, 208, 0.1);
    border-radius: var(--radius-md);

    display: none;
}

.pto_food_calculator_result.pto_food_visible {
    display: block;
}

.pto_food_calculator_result_top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pto_food_calculator_result_label {
    color: var(--dark-gray);
    font-size: 14px;
    line-height: 21px;
}

.pto_food_calculator_result_value {
    color: var(--brand-purple);
    font-size: 28px;
    font-weight: 900;
    line-height: 36px;
}

/* =========================================================
           BUTTONS
        ========================================================= */

.pto_food_btn {
    min-height: 50px;

    padding: 10px 24px;

    border-radius: var(--radius-sm);

    font-size: 19.2px;
    font-weight: 500;
    line-height: 28.8px;

    transition:
        background-color 200ms ease,
        border-color 200ms ease,
        box-shadow 200ms ease,
        color 200ms ease,
        transform 100ms ease;
}

.pto_food_btn:active {
    transform: translateY(1px);
}

.pto_food_btn_primary {
    background: var(--brand-purple);
    color: var(--white);
    border: 0;

    box-shadow: var(--shadow-1);
}

.pto_food_btn_primary:hover {
    background: var(--purple-dark);
    box-shadow: var(--shadow-2);
}

.pto_food_btn_primary:active {
    background: #4A1585;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 8px 0px;
}

.pto_food_btn_secondary {
    background: transparent;
    color: var(--purple-dark);
    border: 2px solid var(--purple-dark);
}

.pto_food_btn_secondary:hover {
    background: rgba(87, 27, 177, 0.08);
    border-color: #4A1585;
}

.pto_food_btn_secondary:active {
    background: rgba(87, 27, 177, 0.16);
    border-color: #3D1068;
}

.pto_food_btn_blue {
    background: transparent;
    color: var(--bright-blue);
    border: 2px solid var(--bright-blue);
}

.pto_food_btn_blue:hover {
    background: rgba(50, 100, 249, 0.08);
}

/* =========================================================
           SUGGEST / ADD
        ========================================================= */

.pto_food_action_card {
    padding: 32px;
    /* background: linear-gradient(135deg, rgba(105, 35, 208, 0.07), rgba(50, 100, 249, 0.04)); */
    background: #ffffff;
    border: 1px solid rgba(105, 35, 208, 0.12);
    border-radius: var(--radius-md);

    text-align: center;
}

.pto_food_action_card .pto_food_h2 {
    margin: 0 0 8px;

    color: var(--charcoal);

    font-size: 28px;
    font-weight: 700;
    line-height: 36px;
}

.pto_food_action_card .pto_food_p {
    max-width: 650px;

    margin: 0 auto 24px;

    color: var(--dark-gray);

    font-size: 16px;
    line-height: 24px;
}

.pto_food_action_buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* =========================================================
           MODAL
        ========================================================= */

.pto_food_modal {
    position: fixed;
    inset: 0;

    z-index: 9999;

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

    padding: 16px;

    background: rgba(25, 24, 27, 0.55);

    overflow-y: auto;
}

.pto_food_modal.pto_food_visible {
    display: flex;
}

.pto_food_modal_dialog {
    width: 100%;
    max-width: 620px;

    background: var(--white);

    border-radius: var(--radius-md);

    box-shadow:
        rgba(0, 0, 0, 0.25) 0px 16px 48px 0px;

    overflow: hidden;

    animation: modalIn 180ms ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

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

.pto_food_modal_header {
    padding: 24px 28px;

    border-bottom: 1px solid var(--very-light-border);

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.pto_food_modal_title {
    margin: 0;

    color: var(--charcoal);

    font-size: 28px;
    font-weight: 700;
    line-height: 36px;
}

.pto_food_modal_description {
    margin: 4px 0 0;

    color: rgba(88, 85, 94, 0.7);

    font-size: 14px;
    line-height: 21px;
}

.pto_food_modal_close {
    flex-shrink: 0;

    width: 44px;
    height: 44px;

    border: 0;
    border-radius: 50%;

    background: var(--light-gray);
    color: var(--dark-gray);

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

    font-size: 22px;
    line-height: 1;
}

.pto_food_modal_close:hover {
    background: #DDDDDD;
}

.pto_food_modal_body {
    padding: 28px;
}

.pto_food_form_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pto_food_form_full {
    grid-column: 1 / -1;
}

.pto_food_textarea_field {
    resize: vertical;
    min-height: 110px !important;
}

.pto_food_modal_footer {
    padding: 20px 28px;

    background: #FCFCFC;

    border-top: 1px solid var(--very-light-border);

    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* =========================================================
           TOAST
        ========================================================= */

.pto_food_toast {
    position: fixed;

    right: 24px;
    bottom: 24px;

    z-index: 99999;

    max-width: 380px;

    padding: 14px 18px;

    background: #333333;
    color: var(--white);

    border-radius: var(--radius-sm);

    box-shadow: var(--shadow-2);

    font-size: 14px;
    line-height: 21px;

    opacity: 0;
    pointer-events: none;

    transform: translateY(10px);

    transition:
        opacity 200ms ease,
        transform 200ms ease;
}

.pto_food_toast.pto_food_visible {
    opacity: 1;
    transform: translateY(0);
}

.pto_food_toast.pto_food_success {
    background: var(--success);
}

.pto_food_toast.pto_food_error {
    background: var(--danger);
}

/* =========================================================
           RESPONSIVE
        ========================================================= */

@media (max-width: 1023px) {
    .pto_food_page {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .pto_food_hero .pto_food_h1 {
        font-size: 48px;
        line-height: 55px;
    }

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

@media (max-width: 767px) {
    .pto_food_body {
        font-size: 16px;
    }

    .pto_food_header_inner {
        min-height: 64px;
    }

    .pto_food_header_link {
        display: none;
    }

    .pto_food_page {
        padding: 32px 16px;
    }

    .pto_food_hero {
        margin-bottom: 32px;
    }

    .pto_food_hero .pto_food_h1 {
        font-size: 40px;
        line-height: 48px;
    }

    .pto_food_hero .pto_food_p {
        font-size: 16px;
        line-height: 24px;
    }

    .pto_food_search_card,
    .pto_food_food_header_card,
    .pto_food_adjustments_card,
    .pto_food_calculator_card {
        padding: 20px;
        margin-bottom: 16px;
    }

    .pto_food_section_title {
        font-size: 26px;
        line-height: 34px;
    }

    .pto_food_food_header_top {
        flex-direction: column-reverse;
        align-items: stretch;
        /* gap: 16px; */
        gap: 12px;
    }

    .pto_food_food_title {
        font-size: 28px;
        line-height: 36px;
    }

    .pto_food_food_image {
        width: 220px;
        height: 220px;
    }

    .pto_food_nutrition_grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 20px;
    }

    .pto_food_nutrition_item {
        min-height: 110px;
        padding: 16px;
    }

    .pto_food_nutrition_value {
        font-size: 26px;
        line-height: 32px;
    }

    .pto_food_adjustment_row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .pto_food_adjustment_value {
        width: fit-content;
    }

    .pto_food_calculator_grid,
    .pto_food_form_grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pto_food_form_full {
        grid-column: auto;
    }

    .pto_food_action_card {
        padding: 24px 20px;
    }

    .pto_food_action_buttons {
        flex-direction: column;
    }

    .pto_food_action_buttons .pto_food_btn {
        width: 100%;
    }

    .pto_food_modal {
        align-items: flex-end;
        padding: 0;
    }

    .pto_food_modal_dialog {
        max-width: none;
        border-radius: 10px 10px 0 0;
        max-height: 92vh;
        overflow-y: auto;
    }

    .pto_food_modal_footer {
        position: sticky;
        bottom: 0;
    }

    .pto_food_toast {
        right: 16px;
        bottom: 16px;
        left: 16px;
        max-width: none;
    }
}

@media (max-width: 420px) {
    .pto_food_nutrition_grid {
        grid-template-columns: 1fr;
    }

    .pto_food_hero .pto_food_h1 {
        font-size: 34px;
        line-height: 42px;
    }
}