:root {
  --ink: #303127;
  --muted: #858578;
  --olive: #68764f;
  --olive-dark: #53613d;
  --cream: #f7f4ec;
  --paper: #fffefa;
  --line: #ece8dd;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: var(--sans); direction: rtl; -webkit-font-smoothing: antialiased; }
.shop-header { height: 72px; padding: 0 max(24px, calc((100vw - 1020px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e9e4d9; }
.shop-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 700; letter-spacing: -.04em; }
.shop-brand small { display: block; margin-top: 2px; color: #969587; font-size: 8px; letter-spacing: .2em; }
.brand-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: white; background: var(--olive); font-size: 19px; }
.made-fresh { color: #9b9a8d; font-size: 9px; font-weight: 600; letter-spacing: .16em; }
.shop-main { width: min(100% - 36px, 690px); margin: 0 auto; }
.welcome { padding: 53px 15px 31px; text-align: center; }
.eyebrow { margin: 0 0 9px; color: var(--olive); font-size: 9px; font-weight: 700; letter-spacing: .17em; }
h1 { margin: 0; font: 600 clamp(38px, 7vw, 58px)/1.08 var(--sans); letter-spacing: -.025em; }
h1 em { color: var(--olive); font-weight: 500; }
.welcome-copy { margin: 15px 0 20px; color: var(--muted); font-size: 13px; }
.pickup-note { display: inline-flex; align-items: center; gap: 9px; padding: 9px 13px; border: 1px solid #e7e5d9; border-radius: 30px; background: rgba(255,254,250,.7); color: #626650; font-size: 11px; }
.pickup-icon { color: #bd8b43; }
.order-card { overflow: hidden; padding: 25px 29px 22px; border: 1px solid #ede9df; border-radius: 13px; background: var(--paper); box-shadow: 0 13px 38px rgba(60,56,43,.055); }
.section-heading { display: flex; justify-content: space-between; align-items: end; padding-bottom: 17px; }
h2 { margin: 0; font: 600 25px var(--sans); letter-spacing: -.02em; }
.menu-count { color: #99988d; font-size: 10px; }
.product-list { border-top: 1px solid var(--line); }
.product-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 17px 0; border-bottom: 1px solid var(--line); }
.product-photo { display: grid; place-items: center; width: 70px; height: 70px; overflow: hidden; border-radius: 9px; color: #a4a78e; background: #f0f0e7; font-size: 23px; }
.product-photo-button { padding: 0; border: 0; cursor: zoom-in; transition: transform .16s ease, box-shadow .16s ease; }
.product-photo-button:hover { transform: scale(1.04); box-shadow: 0 4px 14px rgba(44,45,35,.16); }
.product-photo-button:focus-visible { outline: 3px solid #a3b28b; outline-offset: 3px; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; }
.product-name { margin: 0 0 4px; font: 600 16px var(--sans); }
.product-description { margin: 0; color: #8a8a7e; font-size: 10px; line-height: 1.45; }
.product-price { color: #4d503f; font-size: 12px; font-weight: 700; white-space: nowrap; }
.quantity-control { display: flex; align-items: center; gap: 8px; }
.quantity-control button { display: grid; place-items: center; width: 27px; height: 27px; padding: 0; border: 1px solid #e7e6de; border-radius: 50%; color: var(--olive); background: #fff; font-size: 17px; cursor: pointer; }
.quantity-control button:hover { background: #f2f4ec; }
.quantity-control input { width: 27px; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; text-align: center; font: 600 12px var(--sans); appearance: textfield; }
.quantity-control input::-webkit-inner-spin-button, .quantity-control input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.loading-message, .empty-menu { padding: 22px 0; color: var(--muted); font-size: 12px; text-align: center; }
#order-form { padding-top: 23px; }
.form-heading { margin-bottom: 15px; }
.form-heading h2 { font-size: 22px; }
.form-heading > p:last-child { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.customer-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.customer-fields label { color: #65665b; font-size: 10px; font-weight: 600; }
.customer-fields input { display: block; width: 100%; margin-top: 7px; padding: 11px 12px; border: 1px solid #e7e4da; border-radius: 7px; outline: 0; color: var(--ink); background: white; font: 12px var(--sans); }
.customer-fields input:focus { border-color: #8c9a71; box-shadow: 0 0 0 3px #eef1e8; }
.customer-fields input::placeholder { color: #b1b1a7; }
.order-total { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding: 14px 0; border-top: 1px dashed #e5e1d6; color: #66675d; font-size: 12px; }
.order-total strong { color: var(--ink); font-size: 17px; }
.submit-button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 18px; border: 0; border-radius: 7px; color: white; background: var(--olive); font: 600 12px var(--sans); cursor: pointer; transition: background .18s ease; }
.submit-button:hover:not(:disabled) { background: var(--olive-dark); }
.submit-button:disabled { opacity: .55; cursor: not-allowed; }
.submit-button span { font-size: 16px; }
.no-payment { margin: 9px 0 0; color: #9a998e; font-size: 9px; text-align: center; }
.order-message { padding: 27px 12px 12px; color: #506342; text-align: center; }
.order-message h2 { margin-bottom: 9px; }
.order-message p { margin: 0; color: #75776c; font-size: 12px; line-height: 1.6; }
.order-message.error { color: #9e5043; }
.shop-note { padding: 20px 0 28px; color: #9d9c91; font: 12px var(--sans); text-align: center; }
.closed-note { margin: 12px 0 0; color: #986147; font-size: 11px; text-align: center; }

.photo-dialog { position: fixed; width: min(92vw, 850px); max-width: none; max-height: 92vh; padding: 20px; overflow: visible; border: 1px solid #eeece5; border-radius: 14px; background: var(--paper); box-shadow: 0 24px 90px rgba(0,0,0,.28); }
.photo-dialog::backdrop { background: rgba(28, 29, 24, .72); }
.photo-dialog img { display: block; max-width: 100%; max-height: calc(92vh - 75px); margin: 0 auto; border-radius: 8px; object-fit: contain; }
.photo-dialog p { margin: 12px 0 0; color: var(--ink); font-size: 14px; font-weight: 600; text-align: center; }
.photo-dialog-close { position: absolute; top: 8px; inset-inline-end: 8px; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #e6e3db; border-radius: 50%; color: var(--ink); background: white; font: 24px/1 var(--sans); cursor: pointer; }

@media (max-width: 520px) {
  .shop-header { height: 62px; padding: 0 18px; }
  .made-fresh { font-size: 8px; }
  .shop-main { width: min(100% - 24px, 690px); }
  .welcome { padding: 39px 4px 25px; }
  .welcome-copy { font-size: 12px; }
  .order-card { padding: 21px 17px 18px; }
  .product-row { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; }
  .product-photo { grid-column: 1; grid-row: 1 / span 2; width: 56px; height: 56px; }
  .product-name, .product-description { grid-column: 2; }
  .quantity-control { grid-column: 3; grid-row: 1 / span 2; }
  .product-price { grid-column: 2; grid-row: 2; }
  .customer-fields { grid-template-columns: 1fr; gap: 13px; }
}
