@font-face {
  font-family: "Chakra Petch";
  src: url("../fonts/ChakraPetch-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Chakra Petch";
  src: url("../fonts/ChakraPetch-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Chakra Petch";
  src: url("../fonts/ChakraPetch-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #29251f;
  --muted: #777168;
  --cream: #fffaf0;
  --paper: #fff;
  --line: #eee7dc;
  --yellow: #ffd65a;
  --yellow-dark: #f5bf2d;
  --red: #d94f42;
  --green: #456e4f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: "Chakra Petch", "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #c48a16; outline-offset: 3px; }
.page-container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

.site-header { position: relative; z-index: 2; background: #fffdf8; border-bottom: 1px solid #f2ebde; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; transform: rotate(-8deg); color: #4b391a; background: var(--yellow); font-size: 19px; font-weight: 900; letter-spacing: -.06em; line-height: 1; box-shadow: 0 4px 0 #e9b83d; }
.brand__text { display: grid; gap: 1px; }
.brand__text strong { font-size: 23px; font-weight: 850; letter-spacing: .035em; text-transform: uppercase; }
.brand__text small { color: var(--muted); font-size: 12px; letter-spacing: .01em; }
.cart-trigger { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 10px 8px 16px; border: 1px solid #e9dfcd; border-radius: 99px; background: #fff; font-size: 14px; font-weight: 750; transition: background .2s, transform .2s; }
.cart-trigger:hover { background: #fff6dc; transform: translateY(-2px); }
.cart-trigger svg { width: 21px; height: 21px; }
.cart-trigger__count { display: grid; place-items: center; min-width: 27px; height: 27px; padding-inline: 5px; border-radius: 50%; background: var(--yellow); font-size: 12px; }

.intro { position: relative; display: grid; grid-template-columns: 1fr .92fr; align-items: center; min-height: 405px; padding-block: 35px 50px; overflow: hidden; }
.intro__copy { position: relative; z-index: 1; padding-block: 26px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-size: 11px; font-weight: 850; letter-spacing: .16em; }
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: #85a478; }
.intro h1 { margin: 16px 0 17px; font-size: clamp(43px, 5.2vw, 70px); line-height: 1.12; letter-spacing: -.035em; font-weight: 850; text-transform: uppercase; }
.intro h1 em { color: #be6c36; font-style: normal; }
.intro p { max-width: 460px; margin: 0; color: #635d54; font-size: 16px; line-height: 1.72; }
.intro__link { display: inline-flex; align-items: center; gap: 24px; margin-top: 27px; padding: 13px 19px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 750; text-decoration: none; transition: transform .2s, background .2s; }
.intro__link:hover { background: #564634; transform: translateY(-2px); }
.intro__link span { font-size: 19px; line-height: 1; }
.intro__art { position: relative; height: 345px; }
.intro__circle { position: absolute; border-radius: 50%; }
.intro__circle--one { width: 365px; height: 365px; top: 1px; left: 50%; transform: translateX(-50%); background: #fbe5ac; }
.intro__circle--two { width: 270px; height: 270px; top: 45px; left: 53%; transform: translateX(-50%); border: 2px dashed #ebbd68; }
.intro__art img { position: absolute; width: 320px; height: 320px; left: 50%; top: 22px; transform: translateX(-50%) rotate(-8deg); border: 8px solid #fffefb; border-radius: 50%; object-fit: cover; box-shadow: 0 24px 48px #71593329; }
.intro__spark { position: absolute; color: #d09a38; font-size: 32px; }
.intro__spark--one { top: 33px; right: 24px; }
.intro__spark--two { bottom: 16px; left: 16px; font-size: 24px; }
.intro__sticker { position: absolute; right: 10px; bottom: 23px; display: grid; place-items: center; width: 87px; height: 87px; border-radius: 50%; transform: rotate(12deg); background: #658d61; color: #fff; text-align: center; font-size: 12px; font-weight: 800; line-height: 1.35; box-shadow: 0 10px 18px #456e4f36; }

.menu-section { padding: 52px 0 92px; background: #fff; border-top: 1px solid #f0e9dd; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 27px; }
.section-heading h2 { margin: 8px 0 0; font-size: clamp(31px, 3.3vw, 42px); font-weight: 850; line-height: 1.18; letter-spacing: -.02em; text-transform: uppercase; }
.section-heading > p { margin: 0 0 4px; color: var(--muted); font-size: 14px; }
.menu-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.search-box { display: flex; align-items: center; gap: 10px; width: min(480px, 100%); height: 50px; padding: 0 15px; border: 1px solid #e8e2d8; border-radius: 14px; background: #fcfaf6; transition: border-color .2s, box-shadow .2s; }
.search-box:focus-within { border-color: #d2a33c; box-shadow: 0 0 0 3px #ffd65a35; }
.search-box svg { flex: none; width: 21px; height: 21px; color: #8d857b; }
.search-box input { width: 100%; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.search-box input::placeholder { color: #999188; }
.menu-count { color: var(--muted); font-size: 13px; white-space: nowrap; }
.category-list { display: flex; gap: 9px; margin: 23px 0 30px; padding-bottom: 3px; overflow-x: auto; scrollbar-width: thin; }
.category-chip { flex: none; padding: 10px 18px; border: 1px solid #eae3d9; border-radius: 99px; background: #fff; color: #625c53; font-size: 13px; font-weight: 750; transition: background .2s, border-color .2s, color .2s; }
.category-chip:hover { border-color: #e3bc58; background: #fff9e8; }
.category-chip.is-active { border-color: var(--yellow); background: var(--yellow); color: #372c1a; }

.food-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 19px; }
.food-card { min-width: 0; overflow: hidden; border: 1px solid #eee9e0; border-radius: 20px; background: #fff; box-shadow: 0 8px 24px #4b3b2610; transition: transform .25s, box-shadow .25s; }
.food-card:hover { transform: translateY(-5px); box-shadow: 0 17px 34px #4b3b261d; }
.food-card__visual { position: relative; height: 204px; overflow: hidden; background: #f5efe2; }
.food-card__image-button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; }
.food-card__image-button img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.food-card:hover .food-card__image-button img { transform: scale(1.06); }
.discount-badge { position: absolute; top: 12px; left: 12px; padding: 6px 10px; border-radius: 7px; background: var(--red); color: #fff; font-size: 12px; font-weight: 850; box-shadow: 0 4px 12px #a63b3140; pointer-events: none; }
.illustration-badge { position: absolute; right: 12px; bottom: 12px; padding: 5px 8px; border-radius: 7px; background: #241f18b8; color: #fff; font-size: 11px; font-weight: 700; pointer-events: none; }
.food-card__body { display: flex; flex-direction: column; padding: 16px; }
.food-card__category { color: #68805c; font-size: 11px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.food-card h3 { margin: 5px 0 0; font-size: 18px; line-height: 1.36; letter-spacing: -.025em; }
.food-card h3 button { padding: 0; border: 0; background: none; color: inherit; font-weight: 800; text-align: left; }
.food-card h3 button:hover { color: #aa622d; }
.food-card__ingredients { margin: 6px 0 0; color: #837b71; font-size: 12px; line-height: 1.55; }
.food-card__footer { display: flex; align-items: end; justify-content: space-between; gap: 6px; margin-top: 10px; }
.food-card__prices { display: grid; gap: 2px; white-space: nowrap; }
.food-card__prices del { color: #a59c92; font-size: 12px; }
.food-card__prices strong { color: var(--ink); font-size: 19px; letter-spacing: -.035em; }
.food-card:has(.discount-badge) .food-card__prices strong { color: var(--red); }
.add-button { flex: none; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: var(--yellow); color: #3b301e; transition: background .2s, transform .2s; }
.add-button svg { width: 16px; height: 16px; }
.add-button:hover { background: var(--yellow-dark); transform: scale(1.06); }
.empty-state { padding: 75px 20px; border: 1px dashed #e4d9ca; border-radius: 20px; text-align: center; background: #fffdf9; }
.empty-state > span { color: #d5a54a; font-size: 50px; }
.empty-state h3 { margin: 12px 0 6px; font-size: 21px; }
.empty-state p { margin: 0; color: var(--muted); }

.site-footer { padding: 25px 0; background: #302d28; color: #fff; }
.site-footer .page-container { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.site-footer strong { font-size: 18px; letter-spacing: -.04em; }
.site-footer span { color: #d0c8bb; font-size: 12px; }

dialog { padding: 0; border: 0; color: var(--ink); background: #fff; }
dialog::backdrop { background: #241f18a6; }
.item-dialog { width: min(760px, calc(100% - 32px)); max-height: min(90dvh, 850px); margin: auto; border-radius: 22px; box-shadow: 0 30px 80px #1e1a1740; }
.item-dialog__content { display: grid; grid-template-columns: 42% 58%; }
.dialog-close { z-index: 1; display: grid; place-items: center; width: 37px; height: 37px; padding: 0; border: 0; border-radius: 50%; background: #f6f0e7; color: #4d473f; font-size: 26px; line-height: 1; }
.dialog-close:hover { background: #eadfcf; }
.item-dialog > .item-dialog__content > .dialog-close { position: absolute; top: 14px; right: 14px; }
.item-dialog__image { min-height: 460px; background: #f3eadb; }
.item-dialog__image img { width: 100%; height: 100%; object-fit: cover; }
.item-dialog__body { padding: 40px 32px 30px; overflow: auto; }
.item-dialog h2, .cart-dialog h2 { margin: 9px 0 8px; font-size: 31px; line-height: 1.18; letter-spacing: -.045em; }
.detail-price { display: flex; align-items: center; gap: 10px; margin: 12px 0 16px; }
.detail-price del { color: #9b9388; font-size: 15px; }
.detail-price strong { color: var(--red); font-size: 25px; letter-spacing: -.04em; }
.detail-description { margin: 0 0 20px; color: #6b645a; font-size: 14px; line-height: 1.55; }
.detail-ingredients { padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; }
.detail-ingredients p { margin: 6px 0 0; color: #756e64; line-height: 1.5; }
.note-label { display: block; margin: 17px 0 8px; font-size: 13px; font-weight: 800; }
.item-dialog textarea { display: block; width: 100%; min-height: 68px; padding: 10px 12px; resize: vertical; border: 1px solid #e4ddd2; border-radius: 10px; outline: none; background: #fffdfa; font-size: 13px; }
.item-dialog textarea:focus { border-color: #d2a33c; box-shadow: 0 0 0 3px #ffd65a35; }
.detail-actions { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.quantity-picker { display: inline-flex; align-items: center; border: 1px solid #e7dfd2; border-radius: 11px; }
.quantity-picker button { width: 35px; height: 42px; border: 0; background: transparent; font-size: 20px; }
.quantity-picker button:hover { background: #fff5d7; }
.quantity-picker output { min-width: 26px; text-align: center; font-size: 14px; font-weight: 800; }
.primary-button { flex: 1; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 11px; background: var(--yellow); color: #3c301c; font-size: 13px; font-weight: 850; white-space: nowrap; }
.primary-button:hover { background: var(--yellow-dark); }

.cart-dialog { position: fixed; inset: 0 0 0 auto; width: min(430px, 100%); max-width: none; max-height: none; height: 100dvh; margin: 0; box-shadow: -20px 0 60px #1e1a1733; }
.cart-dialog__inner { display: flex; flex-direction: column; height: 100%; }
.cart-dialog__header { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 28px 25px 20px; border-bottom: 1px solid var(--line); }
.cart-dialog h2 { margin-bottom: 0; }
.cart-items { flex: 1; overflow-y: auto; padding: 20px 25px; }
.cart-empty { display: grid; place-content: center; min-height: 250px; text-align: center; color: var(--muted); }
.cart-empty span { font-size: 45px; }
.cart-empty h3 { margin: 10px 0 5px; color: var(--ink); font-size: 18px; }
.cart-empty p { margin: 0; font-size: 13px; }
.cart-row { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 0 0 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.cart-row img { width: 70px; height: 70px; border-radius: 12px; object-fit: cover; }
.cart-row__name { margin: 0 0 3px; font-size: 14px; font-weight: 800; }
.cart-row__note { margin: 0 0 7px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.cart-row__bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cart-row__bottom strong { color: var(--red); font-size: 14px; }
.cart-row__controls { display: inline-flex; align-items: center; gap: 7px; }
.cart-row__controls button { display: grid; place-items: center; width: 25px; height: 25px; padding: 0; border: 1px solid #e5dccd; border-radius: 7px; background: #fffaf0; font-size: 16px; }
.cart-row__controls span { min-width: 15px; text-align: center; font-size: 13px; font-weight: 750; }
.cart-dialog__footer { padding: 20px 25px 25px; border-top: 1px solid var(--line); }
.cart-dialog__footer > div { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.cart-dialog__footer strong { font-size: 22px; letter-spacing: -.04em; }
.cart-dialog__footer p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.toast { position: fixed; z-index: 10; left: 50%; bottom: 26px; transform: translate(-50%, 20px); padding: 11px 17px; border-radius: 99px; background: #332f28; color: #fff; font-size: 13px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1030px) {
  .food-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .food-card__visual { height: 235px; }
}
@media (max-width: 700px) {
  .page-container { width: min(100% - 32px, 540px); }
  .site-header__inner { min-height: 72px; }
  .brand__mark { width: 41px; height: 41px; font-size: 17px; border-radius: 13px; }
  .brand__text strong { font-size: 19px; }
  .brand__text small { font-size: 10px; }
  .cart-trigger { padding: 8px; }
  .cart-trigger > span:nth-child(2) { display: none; }
  .intro { grid-template-columns: 1fr; padding-block: 34px 45px; }
  .intro__copy { padding-block: 0; }
  .intro h1 { font-size: clamp(41px, 10vw, 57px); }
  .intro p { font-size: 14px; }
  .intro__art { height: 295px; margin-top: 20px; }
  .intro__circle--one { width: 280px; height: 280px; }
  .intro__circle--two { width: 220px; height: 220px; top: 30px; }
  .intro__art img { width: 246px; height: 246px; top: 15px; }
  .intro__sticker { right: 8px; bottom: 11px; width: 73px; height: 73px; font-size: 10px; }
  .menu-section { padding: 40px 0 65px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 9px; }
  .menu-toolbar { align-items: stretch; flex-direction: column; gap: 8px; }
  .search-box { width: 100%; }
  .menu-count { align-self: end; }
  .category-list { margin: 15px 0 22px; }
  .food-grid { gap: 13px; }
  .food-card__visual { height: 170px; }
  .food-card__body { padding: 13px; }
  .food-card h3 { font-size: 15px; }
  .food-card__ingredients { font-size: 11px; }
  .food-card__prices strong { font-size: 16px; }
  .item-dialog__content { display: block; }
  .item-dialog__image { height: 220px; min-height: 0; }
  .item-dialog__body { padding: 24px 20px 20px; }
  .item-dialog h2 { font-size: 25px; }
  .site-footer .page-container { flex-direction: column; align-items: start; }
}
@media (max-width: 420px) {
  .food-card__visual { height: 138px; }
  .food-card__body { padding: 11px; }
  .food-card__category { font-size: 10px; }
  .food-card h3 { font-size: 14px; }
  .food-card__ingredients { font-size: 10px; }
  .food-card__prices strong { font-size: 14px; }
  .food-card__prices del { font-size: 10px; }
  .detail-actions { flex-wrap: wrap; }
  .primary-button { min-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
