:root {
  --ink: #0f2038;
  --muted: #67707e;
  --line: #e7e1d3;
  --surface: #ffffff;
  --surface-soft: #f8f4ea;
  --bg: #f2ede1;
  --navy: #123157;
  --navy-strong: #081832;
  --accent: #146a6d;
  --accent-strong: #0c4c4e;
  --teal-light: #6bc9cf;
  --gold: #b8863a;
  --gold-light: #e6c680;
  --gold-strong: #8f6323;
  --danger: #b3403f;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --shadow-sm: 0 6px 18px rgba(9, 20, 38, 0.08);
  --shadow: 0 20px 48px rgba(9, 20, 38, 0.14);
  --shadow-lg: 0 32px 70px rgba(9, 20, 38, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.app-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--gold-light);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(184, 134, 58, 0.18);
}

.app-nav__inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
  color: var(--navy);
}

.brand__logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.app-nav__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link-quiet {
  position: relative;
  color: var(--muted);
  font-weight: 700;
  padding-bottom: 2px;
}

.nav-link-quiet:hover {
  color: var(--accent);
}

.lang-toggle {
  min-height: 38px;
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: var(--surface-soft);
  font-weight: 800;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.lang-toggle:hover {
  border-color: var(--gold);
  color: var(--gold-strong);
  background: var(--surface);
}

.my-orders {
  position: relative;
}

.my-orders__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 16px;
  border: none;
  border-radius: 999px;
  color: var(--navy-strong);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(184, 134, 58, 0.5);
  animation: my-orders-glow 2.4s ease-in-out infinite;
  transition: transform 160ms ease;
}

.my-orders__toggle:hover {
  transform: translateY(-2px);
}

.my-orders__badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  color: #fff;
  background: var(--navy-strong);
  font-size: 0.78rem;
  font-weight: 800;
}

@keyframes my-orders-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(184, 134, 58, 0.45);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(184, 134, 58, 0);
  }
}

.my-orders__panel {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  z-index: 30;
  width: min(320px, 90vw);
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.my-orders__panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.my-orders__panel h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--navy);
}

.my-orders__list {
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.my-orders__item {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.my-orders__item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.my-orders__order-id {
  font-weight: 900;
  color: var(--navy);
}

.my-orders__copy {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-strong);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 160ms ease;
}

.my-orders__copy:hover {
  border-color: var(--accent);
}

.my-orders__branch,
.my-orders__mode {
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--muted);
}

.my-orders__date {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--muted);
}

.my-orders__empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.app-footer {
  padding: 34px 0;
  color: rgba(255, 255, 255, 0.72);
  background: var(--navy-strong);
  border-top: 3px solid var(--gold);
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* ---------- Hero (branch selection page) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 56px;
  background: radial-gradient(120% 160% at 12% -10%, #1c4a7c 0%, var(--navy) 42%, var(--navy-strong) 100%);
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -60% auto;
  width: 46%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 134, 58, 0.35), transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero .eyebrow {
  color: var(--gold-light);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 900;
  letter-spacing: 0.2px;
}

.hero p:last-child {
  margin: 14px 0 0;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.9;
  font-weight: 500;
}

.hero__divider {
  width: 74px;
  height: 3px;
  margin: 22px 0 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 999px;
}

.branches-page {
  min-height: calc(100vh - 122px);
  padding-bottom: 70px;
}

.branches-page .app-shell {
  padding-top: 36px;
}

.page-heading {
  max-width: 680px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.page-heading h1,
.menu-topbar h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  letter-spacing: 0;
}

.page-heading p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.state-line {
  min-height: 28px;
  color: var(--muted);
  font-weight: 700;
}

.branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.branch-card,
.product-card,
.cart-panel,
.success-sheet__content {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.branch-card {
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.branch-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.branch-card__art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: radial-gradient(120% 150% at 15% -20%, #1c4a7c 0%, var(--navy) 45%, var(--navy-strong) 100%);
}

.branch-card__art::after {
  content: "";
  position: absolute;
  inset: auto -20% -70% auto;
  width: 60%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 134, 58, 0.4), transparent 70%);
  pointer-events: none;
}

.branch-card__art-logo {
  position: relative;
  z-index: 1;
  width: 34%;
  max-width: 120px;
  filter: drop-shadow(0 10px 18px rgba(4, 12, 26, 0.45));
}

.branch-card__body {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.branch-card h2,
.product-card h2,
.cart-panel h2 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 900;
}

.branch-card p,
.product-card p {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
}

.branch-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.submit-button,
.quiet-button,
.cart-button,
.line-button,
.category-chip {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  padding: 10px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.submit-button {
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 10px 24px rgba(20, 106, 109, 0.28);
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(20, 106, 109, 0.34);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.quiet-button {
  color: var(--navy);
  border-color: var(--line);
  background: var(--surface);
}

.quiet-button:hover {
  border-color: var(--gold);
  color: var(--gold-strong);
}

.menu-topbar {
  position: sticky;
  top: 73px;
  z-index: 15;
  border-bottom: 1px solid var(--line);
  background: rgba(242, 237, 225, 0.96);
  backdrop-filter: blur(14px);
}

.menu-topbar__inner {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.context-label {
  margin: 0 0 4px;
  color: var(--gold-strong);
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.cart-button {
  flex: 0 0 auto;
  color: white;
  background: var(--navy);
  box-shadow: var(--shadow-sm);
}

.cart-button:hover {
  transform: translateY(-2px);
}

.cart-button span {
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  color: var(--navy-strong);
  background: var(--gold-light);
}

.category-picker {
  padding: 40px 0 20px;
}

.category-picker__title {
  margin: 0 0 20px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--navy);
}

.category-picker__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}

.category-picker__tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 168px;
  padding: 16px;
  border: none;
  border-radius: var(--radius-md);
  background: radial-gradient(120% 150% at 20% -10%, #1c4a7c 0%, var(--navy) 55%, var(--navy-strong) 100%);
  color: #fff;
  font-weight: 900;
  font-size: 1.05rem;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.category-picker__tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-picker__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: rgba(230, 198, 128, 0.16);
  color: var(--gold-light);
}

.category-picker__icon svg {
  width: 36px;
  height: 36px;
}

.category-picker__label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6em;
  line-height: 1.3;
}

.menu-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 350px;
  gap: 20px;
  padding: 24px 0 70px;
}

.category-rail {
  position: sticky;
  top: 178px;
  align-self: start;
}

#categoryList,
.category-rail {
  display: grid;
  gap: 8px;
}

.category-chip {
  width: 100%;
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}

.category-chip:hover {
  border-color: var(--gold);
}

.category-chip.is-active {
  color: white;
  border-color: var(--navy);
  background: var(--navy);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}

.product-card {
  display: grid;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface-soft);
}

.product-card img.is-missing {
  opacity: 0.12;
}

.product-card__body {
  display: grid;
  min-height: 190px;
  align-content: space-between;
  gap: 12px;
  padding: 16px;
}

.product-actions {
  display: grid;
  gap: 8px;
}

.line-button {
  justify-content: space-between;
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface-soft);
}

.line-button:hover {
  border-color: var(--gold);
  background: var(--surface);
}

.line-button strong {
  color: var(--gold-strong);
}

.fish-section {
  margin-bottom: 26px;
}

.fish-section__title {
  margin: 0 0 14px;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--navy);
}

.fish-section__title::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 999px;
}

.fish-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 18px;
  align-items: start;
}

.fish-type-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.fish-type-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  padding: 0;
  text-align: center;
  position: relative;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.fish-type-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.fish-type-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface-soft);
}

.fish-type-card__name {
  padding: 12px 6px;
  font-weight: 800;
  color: var(--ink);
}

.fish-type-card.is-selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold);
}

.fish-type-card__check {
  position: absolute;
  inset-inline-start: 8px;
  inset-block-start: 8px;
  display: none;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--gold);
  color: white;
  place-items: center;
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
}

.fish-type-card.is-selected .fish-type-card__check {
  display: grid;
}

.fish-detail {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  min-height: 160px;
}

.fish-detail__placeholder {
  color: var(--muted);
  text-align: center;
  padding: 30px 0;
}

.fish-detail__name {
  margin: 0 0 16px;
  text-align: center;
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--navy);
}

.fish-detail__close {
  display: none;
  position: sticky;
  top: 0;
  inset-inline-end: 0;
  margin-inline-start: auto;
  margin-bottom: 10px;
  min-height: 36px;
  padding: 6px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: var(--surface);
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.fish-detail__close:hover {
  border-color: var(--gold);
  color: var(--gold-strong);
}

.fish-weights {
  display: grid;
  gap: 10px;
}

.fish-weight-row {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.fish-weight-row__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.fish-weight-row__label {
  font-weight: 900;
  color: var(--ink);
}

.fish-weight-row__spicy {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.fish-weight-row__spicy-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}

.fish-weight-row__actions {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fish-sauce-panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--gold-light);
}

.fish-sauce-panel__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fish-sauce-panel__note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.fish-prep-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 6px 16px;
  font-weight: 800;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.fish-prep-button:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.fish-prep-button--primary {
  color: white;
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.fish-prep-button--primary:hover {
  box-shadow: 0 8px 20px rgba(20, 106, 109, 0.3);
}

.cart-panel {
  position: sticky;
  top: 178px;
  align-self: start;
  max-height: calc(100vh - 198px);
  overflow: auto;
  padding: 18px;
}

.cart-panel__header,
.cart-row,
.cart-row__end,
.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-panel__header {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease;
}

.icon-button:hover {
  border-color: var(--gold);
  color: var(--gold-strong);
}

.cart-items {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.cart-row {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.cart-row strong,
.cart-row > div > span {
  display: block;
}

.qty-stepper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-stepper .icon-button {
  width: 28px;
  height: 28px;
}

.qty-stepper span {
  min-width: 24px;
  text-align: center;
  font-weight: 800;
}

.qty-fixed {
  color: var(--muted);
  font-weight: 700;
  cursor: help;
}

.cart-row span,
.empty-cart,
.form-message {
  color: var(--muted);
}

.order-form {
  display: grid;
  gap: 12px;
}

.order-type-choice {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.order-type-choice__label {
  font-weight: 800;
  color: var(--navy);
}

.order-type-choice__options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.order-type-option {
  flex: 1 1 140px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
  font-weight: 800;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.order-type-option:hover {
  border-color: var(--gold);
}

.order-type-option.is-active {
  color: white;
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.order-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.note-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.note-preset-chip {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.note-preset-chip:hover {
  border-color: var(--gold);
}

.note-preset-chip.is-active {
  color: white;
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.note-presets--compact {
  margin-top: 6px;
  gap: 6px;
}

.note-preset-chip--compact {
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  border-color: var(--line);
  background: transparent;
}

.note-preset-chip--compact:hover {
  color: var(--ink);
}

.order-form input,
.order-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--ink);
  background: var(--surface);
  transition: border-color 160ms ease;
}

.order-form input:focus,
.order-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.cart-total {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 1.15rem;
}

.cart-total strong {
  color: var(--gold-strong);
}

.form-message:not(:empty) {
  padding: 10px;
  border-radius: var(--radius-sm);
  color: var(--danger);
  background: #fdf0ef;
}

.success-sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 24, 50, 0.6);
}

.success-sheet__content {
  width: min(440px, 100%);
  padding: 30px 26px;
  text-align: center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.success-sheet__content h2 {
  margin: 6px 0 10px;
  color: var(--navy);
}

.success-sheet__prep-note {
  margin: 14px 0 20px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--accent-strong);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.92rem;
}

.cart-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 50;
  transform: translate(-50%, 12px);
  padding: 13px 24px;
  border-radius: 999px;
  color: white;
  background: var(--navy-strong);
  box-shadow: var(--shadow-lg);
  font-weight: 800;
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.cart-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes cart-count-pulse {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.35);
  }
  100% {
    transform: scale(1);
  }
}

.cart-button span.is-pulsing {
  animation: cart-count-pulse 320ms ease;
}

@media (max-width: 980px) {
  .menu-layout {
    grid-template-columns: 1fr;
  }

  .category-rail {
    position: sticky;
    top: 161px;
    z-index: 10;
    display: flex;
    overflow-x: auto;
    padding: 8px 0;
    background: var(--bg);
  }

  #categoryList {
    display: flex;
    gap: 8px;
  }

  .category-chip {
    width: auto;
    white-space: nowrap;
  }

  .cart-panel {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 30;
    max-height: 82vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transform: translateY(calc(100% - 0px));
    transition: transform 180ms ease;
  }

  .cart-panel.is-open {
    transform: translateY(0);
  }

  .fish-layout {
    grid-template-columns: 1fr;
  }

  .fish-type-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .fish-detail {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 32;
    max-height: 82vh;
    overflow: auto;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transform: translateY(100%);
    transition: transform 180ms ease;
  }

  .fish-detail.is-open {
    transform: translateY(0);
  }

  .fish-detail__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .app-shell {
    width: min(100% - 20px, 1180px);
  }

  .hero {
    padding: 44px 0 40px;
  }

  .branches-page .app-shell {
    padding-top: 0;
  }

  .menu-topbar {
    top: 65px;
  }

  .menu-topbar__inner {
    min-height: 78px;
  }

  .menu-topbar h1 {
    font-size: 1.35rem;
  }

  .products-grid,
  .branches-grid {
    grid-template-columns: 1fr;
  }

  .category-picker__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .category-picker__tile {
    padding: 14px;
    font-size: 0.95rem;
  }

  .category-picker__icon {
    width: 72px;
    height: 72px;
  }

  .category-picker__icon svg {
    width: 40px;
    height: 40px;
  }
}
