/* Font tu host: Be Vietnam Pro (chu thuong) + Playfair Display (tieu de) + Dancing Script (tieu de viet tay), du dau tieng Viet. */
@font-face {
    font-family: 'Be Vietnam Pro';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/bevietnampro-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Be Vietnam Pro';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/bevietnampro-400-vietnamese.woff2') format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
    font-family: 'Be Vietnam Pro';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/bevietnampro-500-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Be Vietnam Pro';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/bevietnampro-500-vietnamese.woff2') format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
    font-family: 'Be Vietnam Pro';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/bevietnampro-600-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Be Vietnam Pro';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/bevietnampro-600-vietnamese.woff2') format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
    font-family: 'Be Vietnam Pro';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/bevietnampro-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Be Vietnam Pro';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/bevietnampro-700-vietnamese.woff2') format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/playfairdisplay-600-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/playfairdisplay-600-vietnamese.woff2') format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/playfairdisplay-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/playfairdisplay-700-vietnamese.woff2') format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
    font-family: 'Dancing Script';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/dancingscript-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Dancing Script';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/dancingscript-700-vietnamese.woff2') format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* Bang mau "Colorful Food Magazine" theo anh mau moi: cam, do nau, xanh la, hong, vang, tim pastel, nen kem. */
:root {
    color-scheme: light;
    --ink: #382b25;
    --muted: #80746d;
    --primary: #f43f7f;
    --primary-hover: #d81b60;
    --heading: #b91c1c;
    --pastel-pink: #fde7ee;
    --pastel-green: #eff3df;
    --pastel-orange: #fde9d2;
    --footer-bg: #e9efd1;
    --footer-bottom: #e9efd1;
    --orange: #f43f7f;
    --orange-dark: #d81b60;
    --orange-soft: #fff0e8;
    --yellow: #ffdb65;
    --yellow-soft: #fff6d8;
    --green: #648b20;
    --green-dark: #496b1d;
    --green-soft: #edf3dd;
    --pink: #f43f7f;
    --pink-dark: #c2185b;
    --pink-soft: #fde7ee;
    --cream: #fcf7f2;
    --cream-deep: #ffeedb;
    --line: #efe3d8;
    --paper: #fff;
    --serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --script: "Dancing Script", "Playfair Display", cursive;
    font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--cream);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font-size: 15px; line-height: 1.65; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; }
h1, h2 { font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: .32em; }
h2 { font-size: 20px; margin-bottom: .55em; color: var(--heading); }
h3 { font-size: 1.12rem; margin-bottom: .4em; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #ffb59a; outline-offset: 3px; }
.inline-link { color: var(--orange); text-decoration: underline; text-underline-offset: .18em; }
.muted { color: var(--muted); }
/* Khung chua full chieu rong man hinh, chi chua le 2 ben */
.wrap { width: 100%; padding-inline: 32px; box-sizing: border-box; margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; z-index: 10; top: 8px; left: 8px; background: var(--paper); padding: 8px; }

/* Header: trang, menu dang text, tim kiem pill hong, chuong + avatar tron */
/* Thanh menu co dinh tren cung khi cuon len/xuong */
.site-header { background: var(--paper); box-shadow: 0 2px 14px #7a4a1e12; position: sticky; top: 0; z-index: 100; }
.site-header .wrap { padding-inline: 60px; }
.header-inner { min-height: 78px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; max-width: 1600px; }
.brand { display: inline-flex; align-items: center; justify-self: start; }
.brand-logo { height: 58px; width: auto; display: block; }
.site-footer .brand-logo { height: 66px; }
/* Menu dang text mau hong; hover co quang hong nhat ben ngoai */
.main-nav { display: flex; align-items: center; justify-content: center; gap: 24px; font-size: .93rem; font-weight: 650; letter-spacing: .03em; }
.nav-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 8px; color: var(--ink); white-space: nowrap; border-radius: 999px; transition: background-color .2s ease, color .2s ease; }
.nav-pill .fa-solid { font-size: .85em; color: var(--primary); }
.nav-pill:hover { color: var(--primary-hover); background: var(--pastel-pink); }
.nav-pill.active { color: var(--primary-hover); background: var(--pastel-pink); }
.nav-caret { font-size: .7em !important; }
.nav-drop { position: relative; }
.nav-drop-panel { display: none; position: absolute; left: 0; top: calc(100% + 6px); min-width: 180px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 30px #7a4a1e26; z-index: 6; }
.nav-drop-panel a { display: block; padding: 8px 12px; border-radius: 8px; font-weight: 600; }
.nav-drop-panel a:hover { background: var(--pastel-pink); }
.nav-drop:hover .nav-drop-panel, .nav-drop:focus-within .nav-drop-panel { display: block; }
.header-actions { display: flex; align-items: center; justify-self: end; gap: 18px; }
.header-search { display: grid; place-items: center; height: 42px; padding-inline: 12px; border-radius: 999px; background: var(--pastel-pink); color: var(--primary-hover); transition: background-color .2s ease, color .2s ease; }
.header-search:hover { background: #fad9e4; color: var(--primary-hover); }
.header-bell { position: relative; }
.header-bell summary { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; color: var(--ink); font-size: 1.1rem; list-style: none; transition: background-color .2s ease, color .2s ease; }
.header-bell summary::-webkit-details-marker { display: none; }
.header-bell summary:hover { background: var(--pastel-pink); color: var(--primary-hover); }
.bell-panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 4; min-width: 240px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 28px #7a4a1e26; }
.bell-panel p { margin: 0; color: var(--muted); font-size: .9rem; }
.avatar-circle { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #ff7bac, #f43f7f); color: #fff; font-weight: 800; font-size: 1.05rem; cursor: pointer; flex: 0 0 auto; transition: filter .2s ease; }
a.avatar-circle:hover { color: #fff; filter: brightness(1.04); }
.account-menu { position: relative; }
.account-menu summary { list-style: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 4; min-width: 175px; padding: 6px; background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 28px #7a4a1e26; }
.menu-panel a, .menu-panel button { display: block; padding: 7px 9px; width: 100%; border-radius: 6px; white-space: nowrap; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--pastel-pink); }

/* Nut bam: cam, dang pill */
.button {
    display: inline-flex;
    min-height: 42px;
    justify-content: center;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 8px 20px;
    background: var(--orange);
    color: white;
    font-weight: 700;
    font-size: .93rem;
    cursor: pointer;
}
.button:hover { background: var(--orange-dark); }
.button-outline { color: var(--orange-dark); background: var(--paper); border-color: #f2c9b8; }
.button-outline:hover { background: var(--orange-soft); }
.button-danger { border-color: #ecd0cc; background: #fff; color: #a83228; }
.button-danger:hover { background: #fff1ef; }
.text-button { padding: 0; border: 0; background: none; color: var(--orange-dark); cursor: pointer; text-align: left; }
.text-button:hover { text-decoration: underline; }
.danger-text { color: #a83228; }

/* Footer: nen xanh la, vien luon song o tren, logo trang */
.site-footer { margin-top: 24px; background: var(--footer-bg); }
.footer-wave { display: none; }
.footer-body { background: var(--footer-bg); color: #465b2b; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; padding-block: 26px 30px; }
.footer-brand p { color: #465b2b; font-size: .92rem; margin: 14px 0; max-width: 320px; }
.site-footer .brand-logo { filter: none; }
.footer-col h3 { font-size: 1rem; color: #496b1d; margin-bottom: 12px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-col a { color: #465b2b; font-size: .93rem; }
.footer-col a:hover { color: var(--heading); text-decoration: underline; }
.social-row { display: flex; gap: 10px; }
.social-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #ffffff99; border: 1px solid #ffffff; font-size: 1.05rem; }
.site-footer .social-icon i { color: #496b1d; }
.footer-bottom { background: var(--footer-bottom); color: #465b2b; text-align: center; font-size: .88rem; padding-block: 14px; }
.footer-bottom .wrap { width: 100%; }

/* Trang chu: hero 2 vung - trai kem + phai anh mon, duong phan cach uon luon */
.mag-hero { position: relative; width: 100%; height: clamp(360px, 32vw, 480px); margin: 0; border-radius: 0; overflow: hidden; background: #fff0e1; }
.mag-hero-bg { position: absolute; top: 0; right: 0; width: 45%; height: 100%; display: grid; grid-template-rows: 100%; place-items: center; }
.mag-hero-bg img, .mag-hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.mag-hero-bg .mag-hero-img-cutout { width: auto; height: min(88%, 420px); max-width: 94%; padding: 0; object-fit: contain; }
.hero-wave { position: absolute; top: 0; bottom: 0; left: calc(55% - 60px); width: 120px; height: 100%; z-index: 1; }
.mag-hero-copy { position: relative; z-index: 2; width: 55%; height: 100%; padding: 40px 5%; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.mag-hero-copy h1 { font-family: var(--script); font-size: clamp(48px, 5vw, 80px); line-height: 1.05; font-weight: 700; margin: 0; letter-spacing: 0; }
.hero-t1 { color: var(--heading); }
.hero-t3 { color: var(--green); }
.mag-hero-copy p { margin: 0; color: #593528; font-size: .98rem; line-height: 1.6; }
.hero-button { align-self: flex-start; background: var(--primary); }
.hero-button:hover { background: var(--primary-hover); }
.hero-hat { position: absolute; z-index: 3; top: 18px; left: calc(55% - 100px); width: 72px; height: auto; transform: rotate(8deg); }
.hero-heart { position: absolute; z-index: 3; bottom: 24px; left: calc(55% - 60px); color: var(--pink); font-size: 1.25rem; transform: rotate(-10deg); }
.hero-leaf { position: absolute; z-index: 3; top: 22%; left: 3%; color: var(--green); font-size: 1.35rem; transform: rotate(-15deg); }
.hero-dots { position: absolute; z-index: 3; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 7px; }
.hero-dots span { width: 8px; height: 8px; border-radius: 50%; background: #d9d9d9; }
.hero-dots span.on { background: var(--green); width: 8px; border-radius: 99px; }

/* Tieu de muc: icon tron + chu nau dam */
.home-section { margin-block: 24px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head h1, .section-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; }
.section-head > a:not(.button) { color: var(--orange-dark); font-weight: 700; }
.section-head > a:hover { text-decoration: underline; }
.sec-ico { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-size: 1.05rem; flex: 0 0 auto; }
.sec-ico-orange { background: #ffe3d6; color: var(--orange-dark); }
.sec-ico-yellow { background: #fff1bf; color: #b78d00; }
.sec-ico-green { background: #ddefd9; color: var(--green-dark); }
.sec-ico-pink { background: #ffdbe6; color: #d14e7d; }

/* Danh muc: 6 o pastel, anh mon tron */
.mag-cat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.mag-cat { display: grid; justify-items: center; gap: 10px; padding: 20px 8px 16px; border-radius: 12px; text-align: center; transition: filter .15s; }
.mag-cat:hover { filter: brightness(.96); }
.mag-cat strong { font-size: .98rem; color: var(--ink); }
.mag-cat-photo { width: 92px; height: 92px; border-radius: 50%; overflow: hidden; border: 4px solid #fff; box-shadow: 0 6px 14px #7a4a1e26; }
.mag-cat-photo img, .mag-cat-photo div { width: 100%; height: 100%; object-fit: cover; }
.tone-orange { background: #ffe3c2; }
.tone-green { background: #e4f3e2; }
.tone-yellow { background: #fff3bf; }
.tone-pink { background: #fde0e8; }
.tone-purple { background: #efe0f7; }
.tone-rose { background: #fbe7ef; }
.tone-cream { background: var(--cream-deep); }

/* Mon ngon moi ngay: tieu de, bo loc va the mon dong bo voi banner */
.daily-head { margin-bottom: 8px; }
.daily-heading { position: relative; display: flex; align-items: center; gap: 12px; padding-right: 44px; }
.daily-heading .sec-ico { width: 44px; height: 44px; background: #ffe7dc; color: #ff6424; font-size: 1.15rem; }
.daily-title-wrap { min-width: 0; }
.daily-title-wrap h2 { display: flex; align-items: flex-start; gap: 7px; margin: 0; color: #a52318; font-size: 22px; line-height: 1.15; }
.daily-title-wrap p { margin: 3px 0 0; color: #6b4a33; font-size: 13px; line-height: 1.45; }
.daily-spark { position: relative; width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; }
.daily-spark i { position: absolute; left: 8px; bottom: 1px; width: 3px; height: 13px; border-radius: 99px; background: #ffc928; transform-origin: 50% 100%; }
.daily-spark i:nth-child(1) { transform: rotate(-38deg); height: 10px; }
.daily-spark i:nth-child(2) { transform: rotate(-8deg); }
.daily-spark i:nth-child(3) { transform: rotate(24deg); height: 11px; }
.daily-leaf { position: absolute; right: 4px; top: 50%; color: #65951f; font-size: 1.45rem; transform: translateY(-50%) rotate(-18deg); }
.daily-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: min(760px, 100%); margin-top: 14px; }
.daily-filters a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 10px; border-radius: 999px; background: #fff; border: 1px solid #eadfce; font-weight: 700; font-size: 14px; line-height: 1; color: #593528; white-space: nowrap; }
.daily-filters a i { color: #ff6424; font-size: 15px; }
.daily-filters a:hover { border-color: #ff6424; color: #a52318; }
.daily-filters a.active { background: #ff6424; border-color: #ff6424; color: #fff; }
.daily-filters a.active i { color: #fff; }
.daily-more { display: inline-flex; align-items: center; gap: 7px; margin: 10px 0 2px; color: #ff6424; font-size: 14px; font-weight: 700; line-height: 1.3; }
.daily-more:hover { color: #e8501f; text-decoration: underline; }

/* Mon ngon moi ngay: luoi 4 cot, the trang bo goc 16px */
.daily-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.daily-grid .card { background: #fff; border-color: #f0dfc6; border-radius: 16px; box-shadow: 0 6px 18px rgba(122, 74, 30, .08); }
.daily-grid .card:hover { border-color: #f3c7a8; box-shadow: 0 8px 22px rgba(122, 74, 30, .11); }
.daily-grid .card-photo { aspect-ratio: 4 / 3; }
.daily-grid .card-body { padding: 12px 10px 6px; }
.daily-grid .card-body h3 { margin: 0; color: #71301f; font-size: 16px; font-weight: 700; line-height: 1.3; }
.daily-grid .card-meta { display: grid; grid-template-columns: auto 1px auto; align-items: center; justify-content: start; column-gap: 5px; row-gap: 8px; padding: 0 10px 12px; color: #6f5a4a; font-size: 12px; font-weight: 400; letter-spacing: -.15px; line-height: 1.35; white-space: nowrap; }
.daily-grid .card-meta .fa-solid { margin-right: 2px; color: #ff6424; font-size: 11px; }
.daily-grid .card-meta-divider { width: 1px; height: 14px; background: #e5d5c3; }
.daily-grid .card-save { grid-column: 1 / -1; justify-self: end; margin: 0; }
.daily-grid .card-save button, .daily-grid a.card-save { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; padding: 0 14px; border: 1px solid #65951f; border-radius: 999px; background: #eef7e6; color: #4e7418; font-size: 13px; font-weight: 700; line-height: 1; cursor: pointer; }
.daily-grid .card-save button:hover, .daily-grid a.card-save:hover { background: #e2f1d2; }
.daily-grid .card-save .fa-regular { margin: 0; color: #65951f; }
.daily-grid .card-fav { top: 10px; right: 10px; width: 36px; height: 36px; background: #fff; color: #ff6424; box-shadow: 0 4px 12px rgba(122, 74, 30, .16); }
.daily-grid .card-fav:hover { background: #fff7f2; color: #e8501f; }
.recipe-badge { position: absolute; top: 10px; left: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border: 1px solid rgba(255, 255, 255, .75); border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1; }
.recipe-badge-featured { background: #ffedb0; color: #7a3b12; }
.recipe-badge-featured i { color: #f5a623; }
.recipe-badge-easy { background: #e7f4dc; color: #4e7418; }
.recipe-badge-easy i { color: #65951f; }

/* Goc lam banh + Meo hay: 2 o pastel */
.duo-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-block: 24px; }
.duo-panel { display: flex; align-items: center; gap: 18px; padding: 26px; border-radius: 22px; overflow: hidden; }
.duo-pink { background: #fce4eb; }
.duo-green { background: #e6f3e2; }
.duo-copy { flex: 1; min-width: 0; }
.duo-panel h2 { font-size: 1.5rem; }
.duo-copy h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.duo-copy p { color: #6b4a33; margin-bottom: 16px; }
.duo-photo { width: 168px; height: 168px; flex: 0 0 auto; object-fit: cover; border-radius: 16px; box-shadow: 0 8px 18px #7a4a1e26; }
.duo-polaroids { position: relative; width: 180px; height: 168px; flex: 0 0 auto; }
.duo-polaroid { position: absolute; width: 108px; aspect-ratio: 1; object-fit: cover; border: 5px solid #fff; border-radius: 8px; box-shadow: 0 8px 16px #7a4a1e30; }
.duo-polaroid-1 { left: 0; top: 0; transform: rotate(-5deg); }
.duo-polaroid-2 { right: 0; top: 6px; transform: rotate(4deg); }
.duo-polaroid-3 { left: 36px; bottom: 0; transform: rotate(-2deg); }

/* Meo hay nha bep + Tuyen tap cong thuc hot */
.tips-row { display: grid; grid-template-columns: 1.9fr 1fr; gap: 18px; align-items: start; }
.tips-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tip-home-card .card-meta { padding: 0; margin-top: 6px; }
.hot-panel { background: var(--pink-soft); border-radius: 22px; padding: 22px; }
.hot-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.hot-head img { width: 52px; height: 52px; flex: 0 0 auto; }
.hot-head h2 { margin: 0; color: #c7431b; font-size: 1.35rem; line-height: 1.15; }
.hot-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 9px; font-weight: 650; }
.hot-list .fa-check { color: var(--green-dark); margin-right: 8px; }
.hot-list a:hover { color: var(--orange-dark); }
.hot-photo { width: 100%; aspect-ratio: 1.5; object-fit: cover; border-radius: 14px; }

/* Dang ky nhan tin moi tuan */
.newsletter { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; padding: 24px 28px; border-radius: 18px; background: var(--pastel-orange); border: 1px solid #f3ddc4; margin-block: 28px 0; }
.newsletter-copy { flex: 1 1 300px; }
.newsletter-copy h2 { color: var(--heading); font-size: 20px; margin-bottom: 6px; display: flex; gap: 10px; align-items: center; }
.newsletter-copy h2 .fa-regular { color: var(--orange); }
.newsletter-copy p { margin: 0; color: #6b4a33; }
.newsletter-form { display: flex; gap: 10px; flex: 1 1 380px; }
.newsletter-form input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 25px; padding: 12px 16px; outline: none; }
.newsletter-form .button { flex: 0 0 auto; border-radius: 25px; padding-inline: 24px; background: var(--primary); }
.newsletter-form .button:hover { background: var(--primary-hover); }

/* Trang Thuc don goi y: 7 ngay */
.menu-week { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.menu-day { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.menu-day h2 { font-size: 1.15rem; color: var(--orange-dark); margin-bottom: 12px; }
.menu-dish { display: grid; gap: 6px; }
.menu-dish strong { font-size: .98rem; }
.menu-dish span { color: var(--muted); font-size: .85rem; }
.menu-dish span .fa-solid { color: var(--orange); margin-right: 4px; }
.menu-photo { width: 100%; aspect-ratio: 1.5; object-fit: cover; border-radius: 12px; }
.menu-bake { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }

/* The mon an: anh tron goc, nut tim, ten + thoi gian + do kho */
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.card { position: relative; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s; display: flex; flex-direction: column; }
.card:hover { border-color: #f2b8cb; }
.card-link { display: block; }
.card-link:focus-visible { outline-offset: -4px; }
.card-photo { width: 100%; aspect-ratio: 1.35; object-fit: cover; }
.card-body { padding: 13px 15px 4px; }
.card-body h3 { margin-bottom: 2px; font-size: 16px; }
.card-body h3 .fa-solid { color: var(--orange); margin-right: 6px; }
.card-body p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; margin-top: auto; padding: 0 15px 14px; color: #8a7a68; font-size: 12px; font-weight: 400; }
.card-meta .fa-solid, .card-meta .fa-regular { margin-right: 5px; color: var(--orange); }
.card-save { margin-left: auto; }
.card-save button, a.card-save { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 999px; border: 1px solid #cfe3c0; background: #f2f8ec; color: var(--green-dark); font-weight: 700; font-size: .82rem; cursor: pointer; }
.card-save button:hover, a.card-save:hover { background: var(--green-soft); }
.card-save .fa-regular { margin-right: 0; color: var(--green-dark); }
.card-fav { position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fffffff2; border: 0; box-shadow: 0 4px 10px #7a4a1e30; color: var(--orange); font-size: 1rem; cursor: pointer; padding: 0; }
.card-fav:hover { background: #fff; color: var(--pink); }
.image-placeholder { display: grid; place-items: center; background: var(--cream-deep); color: var(--orange-dark); font: italic 1.5rem var(--serif); }

/* Tim kiem */
.search-area { max-width: 440px; position: relative; z-index: 2; }
.search-form { display: flex; gap: 7px; background: white; border: 1px solid var(--line); border-radius: 999px; padding: 5px 5px 5px 16px; }
.search-form input { flex: 1; min-width: 0; border: 0; }
.suggestions { padding: 5px; margin: 4px 0 0; list-style: none; position: absolute; top: 100%; inset-inline: 0; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 12px 25px #7a4a1e26; }
.suggestions a { display: block; padding: 7px 11px; border-radius: 8px; }
.suggestions a:hover { background: var(--orange-soft); }

/* Trang danh sach / chi tiet / bai viet */
.page { padding-top: clamp(24px, 5vw, 48px); }
.page-heading { margin-bottom: 23px; }
.page-heading p, .lede { color: var(--muted); font-size: 1.06rem; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chips a { border: 1px solid var(--line); background: white; border-radius: 99px; padding: 5px 12px; color: var(--orange-dark); font-weight: 650; }
.chips a:hover, .chips .active { background: var(--orange); border-color: var(--orange); color: #fff; }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding: 14px; margin: 20px 0; background: #fff1d6; border-radius: 16px; }
.filters label { min-width: 140px; flex: 1; }
.filters label:first-child { flex: 2; }
label { display: grid; gap: 4px; font-weight: 620; font-size: .9rem; }
label span { font-weight: 400; }
input:not([type=checkbox]), select, textarea { width: 100%; min-height: 42px; padding: 8px 12px; color: var(--ink); background: white; border: 1px solid #e6d3b3; border-radius: 12px; font-weight: 450; }
input:focus, select:focus, textarea:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px #ff643322; }
.search-form input { border: 0; }
.search-form input:focus { box-shadow: none; }
textarea { resize: vertical; }
input[type=checkbox] { accent-color: var(--orange); width: 16px; height: 16px; margin: 0; }
.check { display: flex; align-items: center; gap: 8px; }
.empty { grid-column: 1 / -1; margin: 0; padding: 22px; background: white; border: 1px dashed #e6d3b3; border-radius: 14px; color: var(--muted); }
.empty a { text-decoration: underline; color: var(--orange-dark); }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 25px; }

.breadcrumb { display: flex; gap: 8px; flex-wrap: wrap; color: var(--orange-dark); font-size: .9rem; padding-bottom: 15px; }
.breadcrumb a:hover { text-decoration: underline; }
.recipe-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(18px, 4vw, 54px); }
.detail-photo, .article-photo { width: 100%; aspect-ratio: 1.33; object-fit: cover; border-radius: 20px; }
.article-photo { aspect-ratio: 1.8; }
.recipe-facts { display: flex; flex-wrap: wrap; gap: 12px 18px; margin: 19px 0; }
.recipe-facts div { min-width: 85px; border-left: 3px solid #ffc9ae; padding-left: 10px; }
.recipe-facts dt { color: var(--muted); font-size: .8rem; }
.recipe-facts dd { margin: 0; font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; }
.recipe-body { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(18px, 4vw, 54px); align-items: start; margin-top: 35px; }
.ingredients { background: #fff1d6; border-radius: 16px; padding: 20px 23px; }
.ingredients ul { list-style: none; padding: 0; margin: 0; }
.ingredients li { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding-block: 8px; border-bottom: 1px solid var(--line); }
.ingredients li:last-child { border: 0; }
.ingredients strong { white-space: nowrap; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; display: flex; align-items: start; gap: 10px; padding: 8px 0 12px; }
.steps li::before { content: counter(step); flex: 0 0 28px; height: 28px; text-align: center; padding-top: 2px; border-radius: 50%; color: #fff; background: var(--orange); font-weight: bold; }
.comments { max-width: 760px; margin-top: 35px; }
.comments h2 span { color: var(--muted); font-size: .65em; }
.comment { margin-top: 12px; background: white; border: 1px solid var(--line); border-radius: 12px; padding: 12px 15px; }
.comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px; }
.comment time { color: var(--muted); font-size: .8rem; }
.comment p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 4px 0; }
.article { max-width: 800px; }
.article-body { margin-top: 20px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1.06rem; }

.auth-panel, .form-card { background: white; border: 1px solid var(--line); border-radius: 20px; padding: clamp(17px, 3.5vw, 34px); }
.auth-panel { max-width: 460px; margin-inline: auto; }
.auth-panel h1 { font-size: 2.5rem; }
.auth-panel p { margin: 10px 0 0; }
.auth-panel > p:first-of-type { margin-bottom: 16px; }
.auth-panel .stack > .button { justify-self: stretch; }
.stack { display: grid; gap: 12px; }
.stack > .button { justify-self: start; }
.editor { max-width: 900px; }
.two-fields, .three-fields { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
fieldset { border: 1px solid var(--line); border-radius: 12px; margin: 0; }
fieldset legend { padding: 0 5px; }
fieldset .actions { gap: 12px 20px; }
.delete-form { margin-top: 14px; }
.current-cover { width: 180px; aspect-ratio: 1.5; object-fit: cover; border-radius: 8px; }
.notice { background: var(--green-soft); border: 1px solid #c1d7bf; color: #2c5a2e; border-radius: 10px; padding: 9px 12px; margin: 14px 0; }
.notice.error { background: #fff1ef; border-color: #efd0cc; color: #8c2c24; padding-left: 29px; }
.table-wrap { overflow-x: auto; background: white; border-radius: 14px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 12px 15px; vertical-align: middle; border-bottom: 1px solid var(--line); }
th { background: var(--cream-deep); }
td p { margin: 4px 0 0; overflow-wrap: anywhere; }
tr:last-child td { border-bottom: 0; }

/* Icon Font Awesome: can icon theo chu, khong dung emoji/ky tu text. */
.button .fa-solid, .button .fa-regular { margin-inline-start: 6px; }
.button .fa-solid:first-child, .button .fa-regular:first-child { margin-inline-start: 0; margin-inline-end: 6px; }
.card-meta .fa-solid { margin-right: 4px; }
.card-body h3 .fa-solid { color: var(--orange); margin-right: 6px; }
.section-head a .fa-solid { margin-left: 5px; font-size: .85em; }
.breadcrumb .fa-solid { margin-right: 4px; font-size: .8em; }
.pagination .fa-chevron-left { margin-right: 5px; }
.pagination .fa-chevron-right { margin-left: 5px; }
.actions .fa-solid, .actions .fa-regular { margin-right: 6px; }

/* Trang chu 70/30: cot mon an + cot meo/tin, the mon dung chung mot mau. */
.home-container { max-width: 1440px; padding-inline: 24px; margin-block: 24px 40px; }
.home-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: 28px; align-items: start; }
.home-main, .home-sidebar { min-width: 0; }
.home-main > section { margin-bottom: 28px; }
.home-main > section:last-child { margin-bottom: 0; }
.home-sidebar > section { margin-bottom: 20px; }
.home-sidebar > section:last-child { margin-bottom: 0; }
.home-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.home-section-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.home-section-title h2 { margin: 0; color: var(--heading); font-size: 22px; font-weight: 700; line-height: 1.2; }
.home-section-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border-radius: 50%; background: var(--pastel-pink); color: var(--primary); font-size: 1rem; }
.home-view-all { display: inline-flex; align-items: center; gap: 6px; color: var(--heading); font-size: 13px; font-weight: 600; white-space: nowrap; }
.home-view-all:hover { color: var(--primary-hover); text-decoration: underline; }
.home-recipe-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.home-recipe-grid .card { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 3px 10px rgba(80, 50, 30, .05); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.home-recipe-grid .card:hover { border-color: #f3c7d6; box-shadow: 0 6px 16px rgba(80, 50, 30, .10); transform: translateY(-3px); }
.home-recipe-grid .card-photo { aspect-ratio: 4 / 3; }
.home-recipe-grid .card-body { padding: 12px 12px 4px; }
.home-recipe-grid .card-body h3 { margin: 0; color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.35; }
.home-recipe-grid .card-meta { flex-wrap: nowrap; gap: 4px 8px; padding: 0 10px 12px; color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: -.2px; white-space: nowrap; }
.home-recipe-grid .card-meta .fa-solid { margin-right: 4px; color: var(--green); }
.home-recipe-grid .card-fav { top: 8px; right: 8px; width: 30px; height: 30px; background: #fff; color: var(--primary); box-shadow: 0 3px 10px rgba(80, 50, 30, .12); font-size: .9rem; }
.home-recipe-grid .card-fav:hover { background: #fff; color: var(--primary-hover); }
.recipe-tabs { display: flex; gap: 10px; overflow-x: auto; margin-bottom: 18px; padding-bottom: 2px; scrollbar-width: none; }
.recipe-tabs::-webkit-scrollbar { display: none; }
.recipe-tabs button { flex-shrink: 0; padding: 8px 20px; border: 1px solid var(--line); border-radius: 30px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 500; line-height: 1.35; cursor: pointer; }
.recipe-tabs button:hover, .recipe-tabs button.active { border-color: var(--primary); background: var(--primary); color: #fff; }
.home-filter-empty { margin: 14px 0 0; }
.sidebar-box { padding: 18px; border-radius: 18px; }
.sidebar-box.kitchen-tips { background: var(--pastel-green); }
.sidebar-box.health-news { background: var(--pastel-pink); }
.sidebar-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.sidebar-heading h2 { margin: 0; color: var(--green); font-size: 21px; line-height: 1.2; }
.health-news .sidebar-heading h2 { color: var(--heading); }
.sidebar-icon-green { background: #fff; color: var(--green); }
.sidebar-item { display: flex; align-items: center; gap: 12px; padding: 8px; margin-bottom: 10px; border-radius: 12px; background: rgba(255, 255, 255, .85); color: var(--ink); }
.sidebar-item:last-child { margin-bottom: 0; }
.sidebar-item:hover { background: #fff; }
.sidebar-item img, .sidebar-item .image-placeholder { width: 90px; height: 65px; flex: 0 0 auto; border-radius: 8px; object-fit: cover; }
.sidebar-item-content { flex: 1; min-width: 0; }
.sidebar-item-content strong { display: block; margin-bottom: 5px; font-size: 14px; line-height: 1.4; }
.sidebar-item-content small { display: block; color: var(--muted); font-size: 12px; line-height: 1.45; }
.sidebar-item > .fa-chevron-right { color: var(--muted); font-size: .8rem; }
.sidebar-empty { margin: 0; padding: 14px; border: 1px dashed rgba(185, 28, 28, .25); border-radius: 12px; background: rgba(255, 255, 255, .65); color: var(--muted); font-size: 13px; line-height: 1.55; }

@media (max-width: 1199px) {
    .home-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
    .home-recipe-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
    .home-layout { grid-template-columns: 1fr; }
    .home-recipe-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 630px) {
    .home-container { padding-inline: 16px; margin-top: 16px; }
    .home-section-title h2 { font-size: 20px; }
    .home-section-icon { width: 34px; height: 34px; }
    .recipe-tabs { gap: 8px; margin-bottom: 14px; }
    .recipe-tabs button { padding: 7px 16px; }
    .sidebar-box { padding: 16px; }
    .sidebar-heading h2 { font-size: 20px; }
}

@media (max-width: 575px) {
    .home-container { padding-inline: 12px; }
    .home-recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .home-section-title h2 { font-size: 18px; }
    .home-recipe-grid .card-body { padding: 10px 10px 3px; }
    .home-recipe-grid .card-body h3 { font-size: 14px; }
    .home-recipe-grid .card-meta { padding: 0 10px 10px; gap: 3px 8px; }
    .newsletter { grid-template-columns: 1fr; padding: 18px; }
    .newsletter-form { flex-direction: column; }
}

@media (max-width: 1000px) {
    .daily-grid, .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mag-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .tips-row { grid-template-columns: 1fr; }
    .menu-week { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1400px) {
    .site-header .wrap { padding-inline: 32px; }
    .brand-logo { height: 50px; }
    .header-inner { gap: 10px; }
    .main-nav { gap: 8px; font-size: .80rem; letter-spacing: .01em; }
    .nav-pill { padding: 5px 6px; }
    .header-actions { gap: 8px; }
}

/* Thanh dieu huong duoi cung tren dien thoai: an tren desktop, hien tu <=1000px. */
.bottom-nav { display: none; }

@media (max-width: 1000px) {
    .header-inner { display: flex; align-items: center; justify-content: space-between; gap: 6px 10px; padding-block: 9px; min-height: 64px; }
    .brand { position: static; left: auto; top: auto; transform: none; }
    .brand-logo { height: 46px; }
    .site-header .navbar-toggler { display: inline-flex; }
    .main-nav { display: none; }
    .header-actions { gap: 4px; }
    .header-actions .avatar-circle, .header-actions .account-menu { display: none; }
    .header-actions .header-search { display: none; }
    body { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
    .bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 1px solid var(--line); padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px)); }
    .bottom-nav-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 6px 16px; color: #593528; font-size: .68rem; font-weight: 700; justify-self: center; }
    .bottom-nav-link i { font-size: 1.2rem; }
    .bottom-nav-link:hover { color: var(--pink-dark); }
    .bottom-nav-link.active { background: var(--pink-soft); border-radius: 999px; color: var(--pink-dark); }
    .bottom-nav-link.active i { color: var(--pink); }
}

@media (max-width: 768px) {
    .site-header .wrap { padding-inline: 16px; }
    .mag-hero-copy h1 { font-size: 38px; }
}

@media (max-width: 900px) {
    .wrap { width: 100%; padding-inline: 16px; }
    .site-header .wrap { padding-inline: 16px; }
    .mag-hero { height: 270px; display: flex; flex-direction: row; align-items: stretch; }
    .mag-hero-bg { position: relative; width: 45%; height: auto; flex: 0 0 auto; display: grid; place-items: center; order: 2; }
    .mag-hero-bg::before { content: ""; position: absolute; width: 170px; height: 170px; background: #ffdbb4; border-radius: 55% 45% 60% 40% / 50% 60% 40% 50%; top: 50%; left: 50%; transform: translate(-50%, -50%); }
    .mag-hero-bg .mag-hero-img { position: relative; z-index: 1; width: 150px; height: 150px; max-width: 100%; border-radius: 50%; object-fit: cover; }
    .mag-hero-bg .mag-hero-img.mag-hero-img-cutout { width: 168px; height: auto; max-width: 100%; max-height: 190px; padding: 0; border-radius: 0; object-fit: contain; }
    .hero-wave, .hero-hat, .hero-heart { display: none; }
    .hero-leaf { display: block; left: auto; right: 12px; top: 10px; font-size: 1.2rem; }
    .hero-dots { display: flex; bottom: 10px; }
    .mag-hero-copy { width: 55%; height: auto; padding: 16px; align-items: flex-start; text-align: left; gap: 10px; order: 1; }
    .mag-hero-copy h1 { font-size: 38px; }
    .mag-hero-copy p { font-size: 13px; }
    .hero-button { align-self: flex-start; font-size: 12px; white-space: nowrap; padding-inline: 16px; }
    .duo-panels { grid-template-columns: 1fr; }
    .tips-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .menu-week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 630px) {
    .wrap { padding-inline: 16px; }
    .header-inner { min-height: 64px; }
    .mag-hero-copy { padding: 16px; }
    .mag-hero-copy h1 { font-size: 38px; }
    .mag-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .mag-cat { padding: 12px 4px 10px; border-radius: 12px; }
    .mag-cat-photo { width: 64px; height: 64px; border-width: 3px; }
    .mag-cat strong { font-size: .85rem; }
    .daily-grid, .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .daily-heading { gap: 10px; padding-right: 36px; }
    .daily-heading .sec-ico { width: 42px; height: 42px; }
    .daily-title-wrap h2 { font-size: 21px; }
    .daily-title-wrap p { font-size: 12.5px; }
    .daily-leaf { right: 0; font-size: 1.3rem; }
    .daily-filters { gap: 8px; margin-top: 12px; }
    .daily-filters a { gap: 5px; padding-inline: 4px; font-size: 13px; }
    .daily-filters a i { font-size: 14px; }
    .daily-more { margin-top: 9px; }
    .card-body { padding: 10px 11px 4px; }
    .card-body p { font-size: 14px; }
    .card-meta { font-size: 12px; gap: 4px 8px; padding: 0 11px 10px; }
    .card-save button, a.card-save { padding: 3px 9px; }
    h3 { font-size: 1rem; }
    .duo-panel { padding: 24px 20px; flex-direction: column; align-items: stretch; text-align: center; }
    .duo-copy h2 { justify-content: center; }
    .duo-copy p { margin-bottom: 14px; }
    .duo-panel .button { white-space: nowrap; }
    .duo-photo { width: 100%; height: 170px; }
    .duo-polaroids { width: 180px; height: 168px; margin-inline: auto; }
    .duo-polaroid { width: 108px; }
    .newsletter { padding: 24px 20px; gap: 14px; text-align: center; }
    .newsletter-copy h2 { justify-content: center; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form input { padding-block: 12px; text-align: left; }
    .newsletter-form .button { width: 100%; justify-content: center; }
    .tips-grid { grid-template-columns: 1fr; }
    .menu-week { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; padding-block: 20px 22px; }
    .site-footer { margin-top: 24px; }
    .recipe-hero, .recipe-body, .two-fields { grid-template-columns: 1fr; }
    .three-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 380px) {
    .daily-grid .card-meta { column-gap: 4px; padding-inline: 8px; letter-spacing: -.3px; }
    .daily-grid .card-meta .fa-solid { margin-right: 1px; font-size: 10px; }
    .home-recipe-grid .card-meta { gap: 3px 5px; padding-inline: 7px; letter-spacing: -.45px; }
    .home-recipe-grid .card-meta .fa-solid { margin-right: 2px; font-size: 10px; }
}

/* Menu mobile dang offcanvas kieu Bootstrap: nut hamburger mo tu ben trai, khong css inline. */
.navbar-toggler { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--pink); font-size: 1.15rem; cursor: pointer; }
.navbar-toggler:hover { background: var(--pink-soft); color: var(--pink-dark); }
.offcanvas { position: fixed; top: 0; left: 0; z-index: 1050; display: flex; flex-direction: column; width: min(320px, 86vw); height: 100vh; height: 100dvh; background: #fff; box-shadow: 0 0 24px rgb(0 0 0 / .18); transform: translateX(-100%); visibility: hidden; transition: transform .32s ease, visibility 0s linear .32s; }
.offcanvas.show { transform: translateX(0); visibility: visible; transition: transform .32s ease, visibility 0s; }
.offcanvas-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.offcanvas-title { margin: 0; }
.offcanvas-title .brand-logo { height: 44px; width: auto; }
.btn-close { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font-size: 1.1rem; cursor: pointer; }
.btn-close:hover { background: var(--pink-soft); color: var(--pink-dark); }
.offcanvas-body { flex: 1; overflow-y: auto; padding: 12px 16px 20px; display: flex; flex-direction: column; gap: 20px; }
.drawer-user { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.drawer-user-link { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; color: var(--ink); }
.drawer-user-link:hover { background: var(--pink-soft); }
.avatar-circle-lg { width: 48px; height: 48px; font-size: 1.15rem; flex: 0 0 auto; }
.drawer-user-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.drawer-user-text strong { font-size: 1rem; }
.drawer-user-text small { color: var(--muted); font-size: .82rem; }
.drawer-user .drawer-register { display: block; padding: 6px 10px 0 70px; font-size: .9rem; text-align: left; }
.drawer-nav { display: flex; flex-direction: column; }
.drawer-link { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 12px; color: var(--ink); font-weight: 700; }
.drawer-link:hover { background: var(--pink-soft); color: var(--pink-dark); }
.drawer-link.active { background: var(--pink-soft); color: var(--pink-dark); }
.drawer-link .fa-solid, .drawer-link .fa-regular { width: 20px; text-align: center; color: var(--pink); }
.drawer-link .drawer-caret { margin-left: auto; font-size: .8rem; color: var(--muted); transition: transform .2s; }
.drawer-drop[open] .drawer-caret { transform: rotate(180deg); }
.drawer-drop summary { list-style: none; cursor: pointer; }
.drawer-drop summary::-webkit-details-marker { display: none; }
.drawer-sub { display: flex; flex-direction: column; padding: 2px 0 6px 42px; }
.drawer-sub a { padding: 9px 10px; border-radius: 10px; color: var(--ink); font-weight: 600; }
.drawer-sub a:hover { background: var(--pink-soft); color: var(--pink-dark); }
.drawer-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.drawer-foot .button { justify-content: center; }
.drawer-register { text-align: center; font-weight: 700; color: var(--orange-dark); padding: 8px; }
.drawer-register:hover { text-decoration: underline; }
.drawer-foot > a:not(.button):not(.drawer-register) { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; font-weight: 700; color: var(--ink); }
.drawer-foot > a:not(.button):not(.drawer-register):hover { background: var(--pink-soft); color: var(--pink-dark); }
.drawer-foot > a:not(.button):not(.drawer-register) .fa-solid, .drawer-foot > a:not(.button):not(.drawer-register) .fa-regular { width: 20px; text-align: center; color: var(--pink); }
.drawer-foot .text-button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: 10px; font-size: 1rem; font-weight: 700; color: var(--ink); }
.drawer-foot .text-button:hover { background: var(--pink-soft); color: var(--pink-dark); text-decoration: none; }
.drawer-foot .text-button .fa-solid, .drawer-foot .text-button .fa-regular { width: 20px; text-align: center; color: var(--pink); }
.offcanvas-backdrop { position: fixed; inset: 0; z-index: 1040; background: rgb(0 0 0 / .45); opacity: 0; visibility: hidden; transition: opacity .32s ease, visibility 0s linear .32s; }
.offcanvas-backdrop.show { opacity: 1; visibility: visible; transition: opacity .32s ease, visibility 0s; }
body.offcanvas-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
