:root {
  --ink: #20150f;
  --muted: #6d625b;
  --cream: #fff9ef;
  --paper: #ffffff;
  --orange: #d95d20;
  --orange-dark: #a93e10;
  --gold: #f2b84b;
  --green: #356b43;
  --line: #eadfd3;
  --shadow: 0 18px 50px rgba(52, 28, 12, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: "DM Sans", Arial, sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; padding: 14px clamp(20px, 5vw, 72px); background: rgba(255, 249, 239, .94); border-bottom: 1px solid rgba(217, 93, 32, .12); backdrop-filter: blur(16px); }
.brand { display: flex; gap: 11px; align-items: center; color: inherit; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--ink); font-size: 22px; box-shadow: 0 8px 18px rgba(32, 21, 15, .18); }
.brand strong, .brand small { display: block; }
.brand strong { font-family: "Playfair Display", Georgia, serif; font-size: 20px; }
.brand small { margin-top: 1px; color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.cart-toggle { display: flex; align-items: center; gap: 9px; padding: 11px 15px; color: #fff; border: 0; border-radius: 999px; background: var(--ink); }
.cart-toggle b { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; color: var(--ink); background: var(--gold); border-radius: 50%; }

.hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; max-width: 1320px; margin: auto; padding: clamp(44px, 7vw, 90px) clamp(20px, 5vw, 72px) 54px; }
.eyebrow { margin: 0 0 9px; color: var(--orange-dark); font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: "Playfair Display", Georgia, serif; line-height: 1.06; }
h1 { max-width: 630px; font-size: clamp(44px, 6vw, 82px); }
h2 { font-size: clamp(28px, 3vw, 42px); }
.hero-copy > p:not(.eyebrow) { max-width: 620px; margin: 22px 0; color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.65; }
.hero-tags { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-tags span { padding: 8px 12px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
.primary-link { display: inline-block; padding: 14px 22px; color: #fff; background: var(--orange); border-radius: 12px; font-weight: 700; text-decoration: none; box-shadow: 0 10px 25px rgba(217, 93, 32, .25); }
.hero-photo { position: relative; min-height: 460px; }
.hero-photo > img { width: 100%; height: 100%; min-height: 460px; object-fit: cover; border-radius: 28px 28px 110px 28px; box-shadow: var(--shadow); }
.hero-badge { position: absolute; left: -28px; bottom: 28px; padding: 16px 20px; background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.hero-badge b, .hero-badge span { display: block; }
.hero-badge span { margin-top: 3px; color: var(--muted); font-size: 13px; }

.service-strip { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1180px; margin: 0 auto 80px; padding: 0 24px; }
.service-strip div { display: flex; gap: 13px; align-items: center; padding: 18px 24px; background: var(--ink); color: #fff; }
.service-strip div:first-child { border-radius: 16px 0 0 16px; }
.service-strip div:last-child { border-radius: 0 16px 16px 0; }
.service-strip b { display: grid; place-items: center; width: 32px; height: 32px; color: var(--ink); background: var(--gold); border-radius: 50%; }
.service-strip span strong, .service-strip span { display: block; }
.service-strip span { color: #d8cec7; font-size: 13px; }
.service-strip span strong { color: #fff; font-size: 15px; }

.shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 28px; max-width: 1500px; margin: auto; padding: 0 clamp(20px, 4vw, 60px) 100px; }
.menu-section { min-width: 0; }
.section-heading { display: flex; gap: 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; }
.category-filter { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.category-filter button { padding: 9px 13px; color: var(--muted); border: 1px solid var(--line); background: transparent; border-radius: 999px; }
.category-filter button.active { color: #fff; border-color: var(--ink); background: var(--ink); }
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.menu-card { overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 10px 28px rgba(63, 37, 20, .06); transition: transform .2s, box-shadow .2s; }
.menu-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.menu-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.menu-card-body { padding: 19px; }
.menu-card .category { color: var(--green); font-weight: 800; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.menu-card h3 { margin: 7px 0; font-family: "Playfair Display", Georgia, serif; font-size: 25px; }
.menu-card p { min-height: 44px; margin: 0 0 16px; color: var(--muted); line-height: 1.45; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.price { font-size: 22px; font-weight: 800; }
.customize-button { padding: 10px 14px; color: #fff; border: 0; border-radius: 10px; background: var(--orange); font-weight: 700; }

.cart-panel { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 112px); overflow: auto; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.cart-heading { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cart-heading h2 { font-size: 34px; }
.icon-button, .modal-close { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 24px; }
.close-cart { display: none; }
.empty-cart { padding: 55px 12px; text-align: center; }
.empty-cart span { font-size: 48px; }
.empty-cart p { margin: 12px 0 5px; font-weight: 800; }
.empty-cart small, .cart-summary small { color: var(--muted); line-height: 1.45; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
.cart-item h4 { margin: 0 0 3px; }
.cart-item p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.35; }
.cart-item-total { text-align: right; }
.cart-item-total b { display: block; white-space: nowrap; }
.cart-item-total button { margin-top: 8px; color: #9a3013; border: 0; background: none; font-size: 12px; }
.cart-summary { padding-top: 16px; }
.cart-summary > div { display: flex; justify-content: space-between; margin: 8px 0; }
.total-row { padding-top: 12px; border-top: 1px solid var(--line); font-size: 19px; }
.checkout-button, .add-button { width: 100%; margin: 16px 0 7px; padding: 14px 18px; color: #fff; border: 0; border-radius: 12px; background: var(--ink); font-weight: 800; }

.overlay { position: fixed; inset: 0; z-index: 40; background: rgba(32, 21, 15, .54); backdrop-filter: blur(4px); }
.modal { width: min(960px, calc(100vw - 30px)); max-height: 90vh; padding: 0; color: var(--ink); border: 0; border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.modal::backdrop { background: transparent; }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.product-modal-grid { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 610px; }
.product-modal-grid > img { width: 100%; height: 100%; min-height: 610px; object-fit: cover; }
.product-modal form, .checkout-modal form { padding: 36px; overflow: auto; }
.muted { color: var(--muted); }
.quantity-row { display: flex; align-items: center; justify-content: space-between; margin: 20px 0; padding: 12px 0; border-block: 1px solid var(--line); font-weight: 700; }
.stepper { display: flex; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; }
.stepper button { width: 34px; height: 34px; border: 0; background: #f8f2eb; font-size: 20px; }
.stepper output { min-width: 40px; text-align: center; }
fieldset { margin: 20px 0; padding: 0; border: 0; }
legend { margin-bottom: 11px; font-weight: 800; }
legend small { color: var(--muted); font-weight: 500; }
.option-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.option-grid label { position: relative; }
.option-grid input { position: absolute; opacity: 0; }
.option-grid span { display: block; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; }
.option-grid input:checked + span { border-color: var(--green); background: #eaf3ec; color: #234b2e; font-weight: 700; }
.extras-list { display: grid; gap: 7px; }
.extra-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; background: #faf7f2; border-radius: 10px; }
.extra-row small { display: block; color: var(--muted); }
.mini-stepper { display: flex; align-items: center; }
.mini-stepper button { width: 28px; height: 28px; border: 1px solid var(--line); background: #fff; border-radius: 7px; }
.mini-stepper output { width: 30px; text-align: center; }
.notes-label { display: grid; gap: 7px; font-weight: 700; }
textarea, input, select { width: 100%; padding: 12px 13px; color: var(--ink); border: 1px solid #d9cdc2; border-radius: 10px; background: #fff; }
textarea:focus, input:focus, select:focus { outline: 3px solid rgba(242, 184, 75, .35); border-color: var(--orange); }
.add-button { display: flex; justify-content: space-between; background: var(--orange); }

.checkout-modal { width: min(800px, calc(100vw - 30px)); }
.service-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0; }
.service-options label { position: relative; }
.service-options input { position: absolute; opacity: 0; }
.service-options span { display: grid; gap: 4px; height: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.service-options span b { margin-top: 4px; }
.service-options span small { color: var(--muted); line-height: 1.3; }
.service-options input:checked + span { color: #fff; border-color: var(--ink); background: var(--ink); }
.service-options input:checked + span small { color: #d9cec6; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-grid label { display: grid; gap: 6px; font-weight: 700; }
.span-2 { grid-column: span 2; }
.conditional-fields { margin: 17px 0; padding-top: 17px; border-top: 1px solid var(--line); }
.checkout-total { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding: 16px; background: #f7efe5; border-radius: 12px; font-size: 20px; }
.form-status { min-height: 22px; margin: 7px 0 0; color: #9a3013; text-align: center; }
.success-modal { max-width: 520px; padding: 42px; text-align: center; }
.success-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 20px; color: #fff; background: var(--green); border-radius: 50%; font-size: 38px; }
.success-modal h2 { margin-bottom: 12px; }
.success-modal p { color: var(--muted); line-height: 1.55; }
.success-summary { margin: 20px 0; padding: 14px; text-align: left; background: #f7efe5; border-radius: 12px; }

footer { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 34px clamp(20px, 5vw, 72px); color: #fff; background: var(--ink); }
footer strong, footer span { display: block; }
footer span, footer small { color: #cfc1b7; }

body.modal-open { overflow: hidden; }

@media (max-width: 1050px) {
  .shop-layout { grid-template-columns: 1fr; }
  .cart-panel { position: fixed; inset: 0 0 0 auto; z-index: 50; width: min(430px, 92vw); max-height: none; border-radius: 0; transform: translateX(105%); transition: transform .25s; }
  .cart-panel.open { transform: translateX(0); }
  .close-cart { display: block; }
}

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .hero-photo { min-height: 320px; }
  .hero-photo > img { min-height: 320px; border-radius: 22px 22px 70px 22px; }
  .hero-badge { left: 12px; bottom: 12px; }
  .service-strip { grid-template-columns: 1fr; }
  .service-strip div:first-child { border-radius: 14px 14px 0 0; }
  .service-strip div:last-child { border-radius: 0 0 14px 14px; }
  .section-heading { display: block; }
  .category-filter { justify-content: flex-start; margin-top: 18px; }
  .menu-grid { grid-template-columns: 1fr; }
  .product-modal-grid { grid-template-columns: 1fr; }
  .product-modal-grid > img { height: 230px; min-height: 230px; }
  .product-modal form, .checkout-modal form { padding: 26px 20px; }
  .service-options { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  footer { display: block; }
  footer small { display: block; margin-top: 12px; }
}

@media (max-width: 480px) {
  .brand small { display: none; }
  .cart-toggle { padding: 10px 12px; }
  .cart-toggle > span:first-child { display: none; }
  h1 { font-size: 44px; }
  .option-grid { grid-template-columns: 1fr; }
}
