/* Order page — builds on style.css tokens */
.order-page { padding-bottom: 96px; }
.order-page [hidden] { display: none !important; }

.o-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; background: var(--night);
}
.o-header .brand { font-size: 1.25rem; }
.o-where {
  background: var(--amber); color: var(--night); font-weight: 700; font-size: .85rem;
  padding: .3em .8em; border-radius: 999px; white-space: nowrap;
}

.o-hero { padding: 28px 16px 8px; text-align: center; max-width: 640px; margin: 0 auto; }
.o-hero h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); font-weight: 800; }
.o-hero h1 em { color: var(--pink); font-style: italic; }
.o-hero .muted { margin-bottom: .6em; }
.o-banner {
  display: inline-block; margin: 0; padding: .45em 1em; border-radius: 10px;
  background: #fff4d6; color: #7a5200; font-size: .85rem; font-weight: 500;
}

/* Category chips */
.o-cats {
  position: sticky; top: 56px; z-index: 20;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 10px 16px; background: var(--sand); border-bottom: 1px solid var(--sand-2);
}
.o-cats::-webkit-scrollbar { display: none; }
.o-cats a {
  flex: none; padding: .45em 1em; border-radius: 999px; text-decoration: none;
  background: #fff; color: var(--ink); font-weight: 500; font-size: .92rem;
  border: 1px solid var(--sand-2);
}
.o-cats a.is-active { background: var(--night); color: #fff; border-color: var(--night); }

/* Menu list */
.o-menu { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.o-cat { scroll-margin-top: 112px; padding-top: 24px; }
.o-cat h2 { font-size: 1.5rem; margin-bottom: .4em; }
.o-item {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center;
  padding: 14px 0; border-bottom: 1px dashed var(--sand-2);
}
.o-item h3 { font-size: 1.05rem; margin: 0; display: flex; align-items: center; gap: 8px; }
.o-item p { margin: 0; font-size: .92rem; color: var(--ink-soft); grid-column: 1; }
.o-price { font-weight: 700; font-size: .95rem; grid-column: 1; }
.o-price.market { color: var(--sea); font-weight: 500; }
.o-ctrl { grid-column: 2; grid-row: 1 / span 3; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.o-ctrl select {
  font: inherit; font-size: .88rem; padding: .3em .4em; border-radius: 8px;
  border: 1px solid var(--sand-2); background: #fff; max-width: 140px;
}

.dot { width: 12px; height: 12px; border: 1.5px solid; border-radius: 2px; display: inline-grid; place-items: center; flex: none; }
.dot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.dot.veg { color: #1b8a3a; }
.dot.nonveg { color: #b3261e; }

.o-add {
  font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer;
  min-width: 84px; padding: .45em 1em; border-radius: 10px;
  background: #fff; color: var(--pink); border: 1.5px solid var(--pink);
}
.o-add:hover { background: var(--pink); color: #fff; }
.o-qty {
  display: inline-flex; align-items: center; min-width: 84px; justify-content: space-between;
  background: var(--pink); color: #fff; border-radius: 10px; font-weight: 700;
}
.o-qty button {
  font: inherit; font-size: 1.1rem; width: 30px; height: 34px; cursor: pointer;
  background: none; border: 0; color: inherit;
}

/* Sticky cart bar */
.o-cartbar {
  position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
  max-width: 688px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--night); color: #fff; font: inherit; font-weight: 500;
  box-shadow: var(--shadow);
}
.o-cartbar-total { font-weight: 700; }
.o-cartbar-go { margin-left: auto; color: var(--amber); font-weight: 700; }

/* Checkout sheet */
.o-sheet-backdrop {
  position: fixed; inset: 0; z-index: 50; background: rgba(13, 20, 36, .55);
  display: flex; align-items: flex-end; justify-content: center;
}
.o-sheet {
  width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto;
  background: var(--sand); border-radius: 20px 20px 0 0; padding: 18px 16px 28px;
}
@media (min-width: 700px) {
  .o-sheet-backdrop { align-items: center; }
  .o-sheet { border-radius: 20px; }
}
.o-sheet-head { display: flex; justify-content: space-between; align-items: center; }
.o-sheet-head h2 { font-size: 1.5rem; margin: 0; }
.o-x { font-size: 1.8rem; line-height: 1; background: none; border: 0; cursor: pointer; color: var(--ink); }

.o-lines { list-style: none; padding: 0; margin: 12px 0; }
.o-lines li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--sand-2); }
.o-lines .nm { flex: 1; font-size: .95rem; }
.o-lines .nm small { display: block; color: var(--ink-soft); }
.o-lines .amt { min-width: 64px; text-align: right; font-weight: 700; font-size: .95rem; }

.o-form { display: grid; gap: 12px; }
.o-mode { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.o-mode legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.o-mode label {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  padding: .6em .8em; border-radius: 10px; background: #fff; border: 1.5px solid var(--sand-2); font-size: .95rem;
}
.o-mode label:has(input:checked) { border-color: var(--pink); background: #fff0f5; }
.o-mode input { accent-color: var(--pink); }
.f { display: grid; gap: 4px; font-size: .92rem; font-weight: 500; }
.f input, .f textarea {
  font: inherit; font-weight: 400; padding: .65em .8em; border-radius: 10px;
  border: 1.5px solid var(--sand-2); background: #fff; width: 100%;
}
.f input:focus, .f textarea:focus { outline: none; border-color: var(--pink); }
.o-loc {
  font: inherit; cursor: pointer; justify-self: start;
  padding: .5em 1em; border-radius: 10px; background: #fff; border: 1.5px dashed var(--sea); color: var(--sea);
}
.o-loc-ok { margin: -6px 0 0; color: var(--palm); }

.o-totals { margin: 4px 0 0; display: grid; gap: 4px; }
.o-totals div { display: flex; justify-content: space-between; }
.o-totals dt, .o-totals dd { margin: 0; }
.o-totals .grand { font-weight: 800; font-size: 1.1rem; border-top: 1px solid var(--sand-2); padding-top: 6px; }
.o-totals .note { color: var(--ink-soft); font-size: .85rem; }
.o-err { color: #b3261e; margin: 0; min-height: 0; font-size: .9rem; }
.o-err:empty { display: none; }
.o-send { width: 100%; font-size: 1.05rem; padding: 1em; border: 0; cursor: pointer; font-family: inherit; }

/* Banner photo, notes, search, dine-in-only tag */
.o-photo {
  height: clamp(180px, 34vw, 320px);
  background: url("../assets/images/fish-on-the-beach.jpg") center 72% / cover no-repeat;
}
.o-hero { margin-top: -36px; position: relative; background: var(--sand); border-radius: 22px 22px 0 0; }
.o-notes { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.o-notes li { background: #e3f4f2; color: #145e69; font-size: .85rem; font-weight: 500; padding: .35em .85em; border-radius: 999px; }
.o-search { display: block; margin: 6px auto 0; max-width: 520px; }
.o-search input {
  width: 100%; font: inherit; padding: .75em 1em .75em 2.6em; border-radius: 999px;
  border: 1.5px solid var(--sand-2); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235b5149' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") 1em center no-repeat;
}
.o-search input:focus { outline: none; border-color: var(--pink); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.o-cat-note { margin: -4px 0 6px; font-size: .85rem; color: #8a5a00; background: #fff4d6; display: inline-block; padding: .25em .7em; border-radius: 8px; }
.o-none { text-align: center; padding: 30px 16px; }
.o-totals .note.warn { color: #b3261e; }
/* Banner frames the grilled-fish plate; bright header to match the site */
.o-photo { height: clamp(240px, 38vw, 380px); background-position: center 86%; }
.o-header { background: rgba(255, 250, 242, .96); box-shadow: 0 6px 20px -14px rgba(13,20,36,.4); backdrop-filter: blur(8px); }
.o-header .brand { color: var(--ink); text-shadow: none; }
.o-photo { background-position: center 96%; }
.o-hero { margin-top: -22px; }

/* Sand & water theme */
.o-cats a.is-active { background: var(--water); border-color: transparent; color: #fff; }

/* Category photo banners */
.o-cat.has-photo { padding-top: 28px; }
.o-cat-banner {
  position: relative; height: 150px; border-radius: 20px; overflow: hidden; margin-bottom: 10px;
  background: var(--sand-2); box-shadow: 0 16px 34px -22px rgba(10,60,80,.6);
}
.o-cat-banner img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.02); }
.o-cat-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,30,40,.78) 0%, rgba(5,30,40,.25) 55%, rgba(5,30,40,0) 80%); }
.o-cat-banner h2 {
  position: absolute; left: 18px; bottom: 12px; right: 18px; z-index: 1; margin: 0;
  color: #fff; font-size: 1.6rem; text-shadow: 0 2px 12px rgba(0,0,0,.45);
}
@media (min-width: 640px) { .o-cat-banner { height: 190px; } .o-cat-banner h2 { font-size: 1.9rem; } }
.o-credits { max-width: 720px; margin: 28px auto 0; padding: 0 16px; font-size: .72rem; color: var(--ink-soft); opacity: .8; }
/* New banner: bright seafood platter */
.o-photo { background-image: url("../assets/images/food/seafood-platter.jpg"); background-position: center 55%; }
/* Readability fixes */
.o-hero h1 em { color: var(--pink-dark); }
.o-add { color: var(--pink-dark); border-color: var(--pink); }
.o-add:hover { color: #fff; }
.o-price.market { color: var(--ink-soft); font-style: italic; }
.o-mode label:has(input:checked) { background: #e4f5f4; }
.o-where { background: var(--water); color: #fff; }
