:root {
  --heritage-ivory: #faf8f3;
  --heritage-blue: #dcecf4;
  --heritage-brown: #b9a392;
  --eggshell-blue: #e7f3f5;
  --eggshell-blue-2: #d7edf1;
  --mustard: #d9a320;
  --mustard-deep: #b88205;
  --ink: #122e33;
  --ink-soft: #36545a;
  --white: #ffffff;
  --line: rgba(18, 46, 51, 0.12);
  --card-shadow: 0 12px 32px rgba(18, 46, 51, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1200px;
  --topbar-offset: 202px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
  color: var(--ink);
  background-color: var(--heritage-ivory);
  background-image:
    repeating-linear-gradient(0deg, rgba(185, 163, 146, 0.025) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(220, 236, 244, 0.022) 0 1px, transparent 1px 7px),
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.72), transparent 52%);
  min-height: 100%;
  overflow-x: hidden;
  scroll-padding-top: calc(var(--topbar-offset) + 12px);
}

body::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: url("./assets/english-heritage-botanical-frame.jpg") center / cover no-repeat;
  opacity: 0.96;
  filter: saturate(1.25) contrast(1.04);
}

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

button,
input,
select,
textarea {
  font: inherit;
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

#app {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  z-index: 1;
}

.shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: var(--topbar-offset);
  padding-bottom: env(safe-area-inset-bottom);
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(247, 251, 252, 0.92);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(18, 46, 51, 0.08);
  padding-top: env(safe-area-inset-top);
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas:
    '. brand actions'
    'nav nav nav';
  column-gap: 16px;
  row-gap: 12px;
  align-items: center;
}

.brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--mustard) 0%, #f0c155 60%, var(--mustard-deep) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 8px 18px rgba(184, 130, 5, 0.3);
  position: relative;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
}

.brand-mark::before {
  width: 22px;
  height: 7px;
  left: 16px;
  top: 24px;
}

.brand-mark::after {
  width: 12px;
  height: 12px;
  left: 20px;
  top: 14px;
}

.brand-logo {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  border: 1px solid rgba(18, 46, 51, 0.1);
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  box-sizing: border-box;
  padding: 5px;
}

.brand-text {
  text-align: center;
}

.brand-text strong {
  display: block;
  font-size: 1.62rem;
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.brand-text span {
  display: block;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.nav {
  grid-area: nav;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: rgba(217, 163, 32, 0.12);
  border-color: rgba(217, 163, 32, 0.25);
  transform: translateY(-1px);
}

.topbar-actions {
  grid-area: actions;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-mobile-controls {
  display: none;
  grid-area: actions;
  justify-self: end;
}

.nav-toggle {
  min-height: 42px;
  min-width: 88px;
  justify-content: center;
}

.btn {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 999px;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(18, 46, 51, 0.08);
}

.btn-primary {
  border-color: rgba(217, 163, 32, 0.5);
  background: linear-gradient(180deg, #f3c95d 0%, var(--mustard) 100%);
  color: #372400;
  font-weight: 700;
}

.btn.active {
  box-shadow: inset 0 0 0 1px rgba(217, 163, 32, 0.45);
}

.btn-ghost {
  background: transparent;
}

.layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px clamp(14px, 3vw, 18px) 42px;
}

.hero {
  background: linear-gradient(135deg, rgba(231, 243, 245, 0.88), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(96, 168, 179, 0.16);
  box-shadow: var(--card-shadow);
  border-radius: 26px;
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(217, 163, 32, 0.22), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  padding: 28px;
  align-items: center;
}

.hero-grid > *,
.page-head > *,
.split > *,
.grid > *,
.assistant-input-row > * {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(96, 168, 179, 0.12);
  color: #1a4d55;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(2.45rem, 4.9vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.page-head h1 {
  margin: 14px 0 12px;
  font-size: clamp(2rem, 3.2vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero p,
.page-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.55;
}

.hero-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-card {
  border-radius: 20px;
  border: 1px solid rgba(217, 163, 32, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(231, 243, 245, 0.88));
  padding: 16px;
  box-shadow: 0 10px 22px rgba(18, 46, 51, 0.07);
}

.hero-image,
.card-image,
.qr-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  border: 1px solid rgba(96, 168, 179, 0.2);
  background:
    linear-gradient(135deg, rgba(96, 168, 179, 0.22), rgba(255, 255, 255, 0.2)),
    repeating-linear-gradient(
      -45deg,
      rgba(217, 163, 32, 0.12) 0,
      rgba(217, 163, 32, 0.12) 10px,
      rgba(231, 243, 245, 0.3) 10px,
      rgba(231, 243, 245, 0.3) 20px
    );
  overflow: hidden;
}

.hero-image img,
.hero-image video,
.card-image img,
.details-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-sizing: border-box;
  padding: 0;
}

.qr-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  box-sizing: border-box;
  padding: 10px;
}

.hero-video-shell {
  background: #08161a;
}

.hero-video {
  padding: 0;
  object-fit: cover;
}

.specials-hero .hero-image {
  aspect-ratio: 16 / 10;
  min-height: 320px;
}

.specials-hero .hero-image img,
.specials-hero .hero-image video {
  object-fit: cover;
  padding: 0;
}

.hero-stats {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  padding: 10px;
}

.stat strong {
  display: block;
  font-size: 1.05rem;
}

.stat span {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.section {
  margin-top: 22px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(18, 46, 51, 0.08);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(18, 46, 51, 0.04);
}

.section h2 {
  margin: 0 0 12px;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}

.section-intro {
  margin: 0 0 16px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* Custom-page text is stored as plain text, while preserving the author's paragraphs and headings. */
.custom-page-rich-text,
.custom-page-section-text {
  display: grid;
  gap: 0.85em;
  line-height: 1.6;
}

.custom-page-rich-text {
  margin-top: 12px;
}

.custom-page-rich-text p,
.custom-page-section-text p {
  margin: 0;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

.custom-page-rich-text h3,
.custom-page-section-text h3 {
  margin: 0.15em 0 0;
  color: inherit;
  font-family: inherit;
  font-size: 1.2em;
  line-height: 1.25;
}

.assistant-shell {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  align-items: start;
}

.assistant-intro {
  padding: 4px 2px;
}

.assistant-prompt-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.assistant-prompt {
  border: 1px solid rgba(96, 168, 179, 0.22);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.84rem;
}

.assistant-panel {
  border: 1px solid rgba(18, 46, 51, 0.08);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(217, 163, 32, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 249, 250, 0.96));
  box-shadow: 0 10px 26px rgba(18, 46, 51, 0.06);
  padding: 14px;
}

.assistant-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.assistant-toolbar-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.assistant-mode-line strong {
  display: block;
  font-size: 0.9rem;
}

.assistant-mode-line span {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.assistant-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.assistant-voice-select {
  display: grid;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.assistant-voice-select .select {
  min-width: 130px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.assistant-messages {
  display: grid;
  gap: 10px;
  max-height: 430px;
  overflow: auto;
  padding-right: 2px;
}

.assistant-message {
  border-radius: 18px;
  padding: 12px;
}

.assistant-message-user {
  background: rgba(217, 163, 32, 0.1);
  border: 1px solid rgba(217, 163, 32, 0.16);
}

.assistant-message-ai {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(18, 46, 51, 0.08);
}

.assistant-message-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
}

.assistant-message p {
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
}

.assistant-speak-btn {
  border: 0;
  background: transparent;
  color: #0d5968;
  font-size: 0.8rem;
  padding: 0;
}

.assistant-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.assistant-card {
  border-radius: 14px;
  border: 1px solid rgba(18, 46, 51, 0.08);
  background: rgba(248, 251, 252, 0.95);
  padding: 12px;
}

.assistant-card h3 {
  margin: 10px 0 6px;
  font-size: 0.96rem;
}

.assistant-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

.assistant-card-meta {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #6a4c03;
}

.social-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 18px;
}

.social-links-row .link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(18, 46, 51, 0.12);
  background: rgba(255, 255, 255, 0.9);
}

.social-post-grid {
  align-items: stretch;
}

.social-post-card {
  position: relative;
}

.social-post-card .card-image {
  margin-bottom: 12px;
}

.social-embed {
  border-radius: 18px;
  overflow: hidden;
  background: #f5f9fa;
  margin-bottom: 12px;
}

.social-embed iframe {
  display: block;
  width: 100%;
  max-width: 100%;
}

.social-post-card,
.shop-card,
.qr-card,
.card {
  min-width: 0;
}

.shop-card {
  position: relative;
}

.feature-card .card-image img {
  padding: 0;
}

.shop-image-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: inherit;
}

.shop-image-trigger:focus-visible {
  outline: 2px solid rgba(30, 119, 217, 0.45);
  outline-offset: 6px;
  border-radius: 18px;
}

.shop-card-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 24px);
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2fbe6d, #239356);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(35, 147, 86, 0.28);
}

.social-post-card .card-image,
.shop-card .card-image {
  aspect-ratio: 1 / 1;
}

.social-post-card .card-image img {
  object-fit: cover;
  padding: 0;
}

.shop-card .card-image img {
  object-fit: cover;
  padding: 0;
}

.social-embed iframe {
  min-height: 360px;
}

.assistant-form {
  margin-top: 12px;
  border-top: 1px solid rgba(18, 46, 51, 0.08);
  padding-top: 12px;
}

.assistant-input-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
}

.assistant-input {
  min-width: 0;
}

.assistant-status-line {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 250, 251, 0.95));
  border: 1px solid rgba(18, 46, 51, 0.08);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 6px 18px rgba(18, 46, 51, 0.05);
}

.card h3 {
  margin: 12px 0 8px;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

.card-meta {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.outlet-gallery-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.outlet-gallery-thumb {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(96, 168, 179, 0.18);
  background: rgba(231, 243, 245, 0.6);
}

.outlet-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-sizing: border-box;
  padding: 0;
}

.outlet-card .card-image img {
  object-fit: cover;
  padding: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(217, 163, 32, 0.2);
  background: rgba(217, 163, 32, 0.08);
  color: #6a4c03;
}

.list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  border: 1px solid rgba(18, 46, 51, 0.08);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 12px;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.page-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

.page-head .tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(96, 168, 179, 0.12);
  color: #1a4d55;
  font-weight: 700;
  font-size: 0.8rem;
}

.notice {
  border-radius: 14px;
  padding: 12px;
  background: rgba(217, 163, 32, 0.08);
  border: 1px solid rgba(217, 163, 32, 0.2);
  color: #5b4304;
}

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px;
}

.footer-inner {
  border-radius: 20px;
  border: 1px solid rgba(18, 46, 51, 0.09);
  background: rgba(255, 255, 255, 0.8);
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}

.footer small {
  display: block;
  color: var(--ink-soft);
  line-height: 1.5;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.footer-brand-name {
  font-size: 1rem;
  line-height: 1.1;
}

.footer-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
  padding: 8px 10px;
  border: 1px solid rgba(18, 46, 51, 0.08);
  background: rgba(255, 255, 255, 0.8);
}

.empty-image {
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  color: rgba(18, 46, 51, 0.58);
  font-size: 0.9rem;
}

/* Admin */
.admin-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(9, 24, 27, 0.5);
  display: none;
  padding: 12px;
}

.admin-overlay.open {
  display: grid;
}

.admin-shell {
  margin: auto;
  width: min(1200px, 100%);
  max-height: calc(100vh - 24px);
  background: #f6fbfc;
  border-radius: 22px;
  border: 1px solid rgba(18, 46, 51, 0.15);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.25);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.admin-header {
  padding: 14px 16px;
  background: linear-gradient(180deg, #fff, #eff7f8);
  border-bottom: 1px solid rgba(18, 46, 51, 0.1);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.admin-header strong {
  font-size: 1rem;
}

.admin-header span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin-top: 2px;
}

.admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-body {
  min-height: 0;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.admin-sidebar {
  border-right: 1px solid rgba(18, 46, 51, 0.1);
  padding: 12px;
  overflow: auto;
  background: rgba(255, 255, 255, 0.72);
}

.admin-main {
  padding: 14px;
  overflow: auto;
}

.admin-page {
  display: grid;
  gap: 12px;
}

.admin-page-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.admin-page-head strong {
  font-size: 1.02rem;
}

.admin-page-head span {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.admin-page-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 12px;
  align-items: start;
}

.admin-page-grid-wide {
  grid-template-columns: 220px minmax(0, 1.35fr);
}

.admin-page-nav {
  position: sticky;
  top: 86px;
}

.admin-section-links {
  display: grid;
  gap: 6px;
}

.admin-section-link {
  text-decoration: none;
  color: var(--ink);
  border: 1px solid rgba(18, 46, 51, 0.12);
  background: #fff;
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 0.86rem;
}

.admin-section-link.active {
  border-color: rgba(217, 163, 32, 0.5);
  background: rgba(217, 163, 32, 0.12);
  color: #6a4c03;
  font-weight: 700;
}

.admin-page-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.admin-page-main-wide {
  gap: 14px;
}

.panel {
  border: 1px solid rgba(18, 46, 51, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 6px 16px rgba(18, 46, 51, 0.04);
  padding: 12px;
}

.panel + .panel {
  margin-top: 12px;
}

.panel h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.field label,
.field-legend {
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 700;
}

.input,
.textarea,
.select {
  width: 100%;
  border: 1px solid rgba(18, 46, 51, 0.14);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 10px;
}

.textarea {
  min-height: 92px;
  resize: vertical;
}

.small-textarea {
  min-height: 64px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tree-section {
  border: 1px solid rgba(18, 46, 51, 0.08);
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.82);
}

.tree-section h4 {
  margin: 0 0 8px;
  font-size: 0.9rem;
}

.array-item {
  border: 1px dashed rgba(18, 46, 51, 0.16);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 10px;
  background: rgba(247, 251, 252, 0.9);
}

.array-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.array-item-header strong {
  font-size: 0.85rem;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.inline-btn {
  border: 1px solid rgba(18, 46, 51, 0.12);
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
}

.inline-btn.danger {
  border-color: rgba(186, 53, 53, 0.2);
  color: #8d2727;
  background: rgba(255, 245, 245, 0.9);
}

.login-wrap {
  min-height: 420px;
  display: grid;
  place-items: center;
}

.login-card {
  width: min(420px, 100%);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(18, 46, 51, 0.12);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(18, 46, 51, 0.08);
}

.login-card h2 {
  margin: 0 0 8px;
}

.login-card p {
  margin: 0 0 12px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.status-line {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.status-line.ok {
  color: #1b6e3a;
}

.status-line.warn {
  color: #8c5d00;
}

.status-line.error {
  color: #8d2727;
}

.hidden {
  display: none !important;
}

.link-btn {
  color: #0f6171;
  text-decoration: none;
  font-weight: 700;
}

.custom-page-title-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 14px;
  padding: 10px 18px;
  border: 1px solid rgba(15, 97, 113, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 5px 14px rgba(18, 46, 51, 0.08);
  color: #0f6171;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.custom-page-title-link:hover,
.custom-page-title-link:focus-visible {
  background: #0f6171;
  box-shadow: 0 8px 18px rgba(15, 97, 113, 0.22);
  color: #fff;
  transform: translateY(-1px);
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.qr-card {
  border-radius: 16px;
  border: 1px solid rgba(18, 46, 51, 0.09);
  background: rgba(255, 255, 255, 0.88);
  padding: 12px;
}

.qr-card h3 {
  margin: 10px 0 6px;
  font-size: 1rem;
}

.qr-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

.qr-actions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.qr-card .qr-action-link {
  display: block;
  width: fit-content;
  margin: 0;
  overflow-wrap: anywhere;
  text-decoration: none;
  color: #0d5968;
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  background: rgba(96, 168, 179, 0.12);
  color: #1a4d55;
  font-weight: 700;
}

.shop-grid {
  margin-top: 14px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shop-category-tabs {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.shop-category-tabs::-webkit-scrollbar {
  display: none;
}

.shop-category-chip {
  border: 1px solid rgba(18, 46, 51, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  flex: 0 0 auto;
}

.shop-category-chip.active {
  border-color: rgba(217, 163, 32, 0.5);
  background: rgba(217, 163, 32, 0.14);
  color: #6a4c03;
}

.shop-results-head {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.shop-page-summary {
  color: rgba(18, 46, 51, 0.82);
  font-size: 0.92rem;
  font-weight: 600;
}

.shop-pager {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.shop-pager span {
  font-size: 0.9rem;
  color: rgba(18, 46, 51, 0.82);
  font-weight: 600;
}

.shop-pager-next.has-more-pages:not(:disabled) {
  border-color: #26aef8;
  background: linear-gradient(135deg, #5bd8ff 0%, #1687ee 100%);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 0 0 3px rgba(65, 192, 255, 0.2), 0 0 20px rgba(35, 165, 244, 0.72);
  animation: next-page-glow 1.8s ease-in-out infinite;
}

.shop-pager-next.has-more-pages:not(:disabled):hover {
  background: linear-gradient(135deg, #7ae2ff 0%, #1179dc 100%);
  box-shadow: 0 0 0 4px rgba(65, 192, 255, 0.26), 0 0 28px rgba(35, 165, 244, 0.9);
}

@keyframes next-page-glow {
  50% {
    box-shadow: 0 0 0 4px rgba(65, 192, 255, 0.12), 0 0 30px rgba(35, 165, 244, 0.92);
  }
}

.shop-mobile-category-field {
  margin-top: 12px;
  width: 100%;
}

.shop-mobile-browser {
  margin-top: 14px;
}

.shop-mobile-results-head {
  margin-top: 0;
}

.shop-mobile-nav {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}

.shop-grid-mobile {
  grid-template-columns: 1fr;
}

.shop-card p {
  min-height: 44px;
}

.unit-switcher {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.unit-chip {
  border: 1px solid rgba(18, 46, 51, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 6px 10px;
  font-size: 0.78rem;
}

.unit-chip.active {
  border-color: rgba(217, 163, 32, 0.5);
  background: rgba(217, 163, 32, 0.14);
  color: #6a4c03;
}

.shop-pos-options {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(96, 168, 179, 0.2);
  border-radius: 14px;
  background: rgba(231, 243, 245, 0.54);
}

.shop-pos-options > strong {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.shop-pos-option-list {
  display: grid;
  gap: 6px;
}

.shop-pos-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(96, 168, 179, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.78rem;
  text-align: left;
}

.shop-pos-option strong {
  white-space: nowrap;
}

.shop-pos-option.active {
  border-color: rgba(35, 147, 86, 0.5);
  background: rgba(226, 247, 234, 0.98);
  box-shadow: 0 6px 14px rgba(35, 147, 86, 0.14);
}

.shop-admin-panel {
  padding: 16px;
}

.shop-admin-toolbar {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shop-admin-groups {
  margin-top: 12px;
  display: grid;
  gap: 14px;
}

.shop-admin-category {
  padding: 14px;
}

.shop-admin-category-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 10px;
}

.shop-admin-category-head h4 {
  margin: 0;
}

.shop-admin-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.shop-admin-product-card {
  height: 100%;
  margin-bottom: 0;
}

.details-overlay {
  position: fixed;
  inset: 0;
  z-index: 54;
  display: none;
}

.details-overlay.open {
  display: block;
}

.details-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 20, 24, 0.58);
}

.details-shell {
  position: relative;
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: 16px auto;
  background: #f7fbfc;
  border: 1px solid rgba(18, 46, 51, 0.12);
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  box-shadow: 0 28px 60px rgba(7, 20, 24, 0.28);
}

.details-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(18, 46, 51, 0.1);
  background: rgba(255, 255, 255, 0.92);
}

.details-head strong {
  display: block;
  font-size: 1.15rem;
}

.details-head span {
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.details-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 18px;
  padding: 18px;
  overflow: auto;
}

.details-media-wrap {
  position: relative;
  display: grid;
  gap: 12px;
}

.details-tag {
  top: 14px;
  right: 14px;
}

.details-image {
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(18, 46, 51, 0.08);
  background: rgba(255, 255, 255, 0.96);
}

.details-image img {
  object-fit: cover;
  padding: 0;
}

.details-gallery-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  gap: 10px;
}

.details-gallery-thumb {
  border: 2px solid rgba(18, 46, 51, 0.08);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.details-gallery-thumb:hover,
.details-gallery-thumb:focus-visible {
  border-color: rgba(197, 150, 46, 0.72);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(18, 46, 51, 0.12);
  outline: none;
}

.details-gallery-thumb.active {
  border-color: var(--mustard);
  box-shadow: 0 10px 20px rgba(197, 150, 46, 0.22);
}

.details-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.details-copy {
  display: grid;
  align-content: start;
  gap: 14px;
}

.details-meta-list {
  display: grid;
  gap: 10px;
}

.details-meta-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(18, 46, 51, 0.08);
}

.details-meta-list span {
  text-align: right;
  color: var(--ink-soft);
}

.details-description {
  margin: 0;
  color: var(--ink);
}

.details-pos-options {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(231, 243, 245, 0.68);
  border: 1px solid rgba(96, 168, 179, 0.18);
}

.details-pos-options strong {
  display: block;
}

.details-pos-option-list {
  display: grid;
  gap: 8px;
}

.details-pos-option {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(96, 168, 179, 0.18);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.details-pos-option.active {
  border-color: rgba(35, 147, 86, 0.45);
  background: rgba(226, 247, 234, 0.98);
  box-shadow: 0 8px 18px rgba(35, 147, 86, 0.14);
}

.details-pos-option span {
  color: var(--ink);
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(7, 20, 24, 0.5);
  display: none;
  justify-content: flex-end;
}

.cart-overlay.open {
  display: flex;
}

.cart-shell {
  width: min(540px, 100%);
  height: 100vh;
  background: #f7fbfc;
  border-left: 1px solid rgba(18, 46, 51, 0.15);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.cart-header,
.cart-footer {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(18, 46, 51, 0.1);
  background: rgba(255, 255, 255, 0.9);
}

.cart-footer {
  border-bottom: 0;
  border-top: 1px solid rgba(18, 46, 51, 0.1);
}

.cart-header strong {
  display: block;
}

.cart-header span {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.cart-body {
  overflow: auto;
  padding: 12px 14px;
}

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

.cart-item {
  border: 1px solid rgba(18, 46, 51, 0.1);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.checkout-panel {
  border-top: 1px solid rgba(18, 46, 51, 0.1);
  background: rgba(255, 255, 255, 0.96);
  padding: 12px 14px;
  display: grid;
  gap: 8px;
  max-height: 56vh;
  overflow: auto;
}

.checkout-panel h3 {
  margin: 0 0 4px;
}

.checkout-mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkout-mode-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(18, 46, 51, 0.14);
  border-radius: 999px;
  background: #fff;
  padding: 8px 12px;
}

.checkout-lookup-box {
  margin-bottom: 0;
}

.checkout-customer-summary {
  border: 1px solid rgba(18, 46, 51, 0.08);
  border-radius: 12px;
  background: rgba(247, 251, 252, 0.9);
  padding: 10px;
}

.checkout-loyalty-box,
.checkout-total-box {
  border: 1px solid rgba(18, 46, 51, 0.08);
  border-radius: 12px;
  background: rgba(247, 251, 252, 0.9);
  padding: 10px;
}

.checkout-loyalty-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

@media (max-width: 1200px) {
  :root {
    --topbar-offset: 202px;
  }

  .topbar-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-grid {
    gap: 18px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 1050px) {
  :root {
    --topbar-offset: 210px;
  }

  .hero-grid,
  .split,
  .assistant-shell {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
  }

  .assistant-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .assistant-toolbar-controls {
    width: 100%;
    justify-content: flex-start;
  }

  .admin-body {
    grid-template-columns: 1fr;
  }

  .admin-page-grid {
    grid-template-columns: 1fr;
  }

  .admin-page-grid-wide {
    grid-template-columns: 1fr;
  }

  .admin-page-nav {
    position: static;
  }

  .admin-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(18, 46, 51, 0.1);
    max-height: 45vh;
  }

  .qr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-grid {
    grid-template-columns: 1fr;
  }

  .shop-results-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .shop-pager {
    width: 100%;
    justify-content: space-between;
  }

  .shop-admin-category-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid {
    gap: 20px;
    padding: 22px;
  }

  .shop-mobile-category-field .select {
    min-height: 44px;
  }

  .shop-mobile-nav {
    width: 100%;
    justify-content: space-between;
  }

  .shop-mobile-nav .inline-btn {
    flex: 1 1 0;
    min-height: 42px;
  }

  .shop-grid-mobile .shop-card {
    max-width: 100%;
  }

  .shop-mobile-category-field {
    max-width: none;
  }

  .hero-image,
  .card-image,
  .details-image,
  .social-post-card .card-image,
  .shop-card .card-image {
    aspect-ratio: 5 / 4;
  }
}

@media (max-width: 760px) {
  body::before {
    background-size: 100% 100%;
    background-position: center;
    opacity: 0.88;
  }

  :root {
    --topbar-offset: 166px;
  }

  .topbar-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      'brand actions'
      'nav nav'
      'extras extras';
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .brand {
    justify-self: start;
  }

  .brand-mark,
  .brand-logo {
    width: 68px;
    height: 68px;
  }

  .brand-text strong {
    font-size: 1.3rem;
  }

  .brand-text span {
    font-size: 0.86rem;
  }

  .topbar-mobile-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .nav {
    display: none;
    justify-content: flex-start;
    overflow: visible;
    flex-direction: column;
    flex-wrap: nowrap;
    padding: 6px 0 0;
    width: 100%;
    gap: 8px;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 11px 12px;
    font-size: 0.9rem;
    border: 1px solid rgba(18, 46, 51, 0.1);
    background: rgba(255, 255, 255, 0.88);
  }

  .topbar-actions {
    grid-area: extras;
    display: none;
    justify-self: stretch;
    justify-content: stretch;
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .topbar-actions.open {
    display: flex;
  }

  .topbar-actions .btn {
    padding: 10px 12px;
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .assistant-toolbar,
  .assistant-toolbar-controls {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .assistant-voice-select {
    width: 100%;
  }

  .assistant-voice-select .select {
    min-width: 0;
  }

  .admin-page-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-grid,
  .section,
  .hero-card,
  .layout {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-grid {
    gap: 16px;
    padding-top: 18px;
    padding-bottom: 18px;
    align-items: start;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 8.5vw, 2.8rem);
    line-height: 1.04;
  }

  .page-head h1 {
    font-size: clamp(1.55rem, 7vw, 2.2rem);
  }

  .hero p,
  .page-head p,
  .section-intro,
  .card p {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn,
  .hero-actions .btn-primary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .grid-3,
  .grid-2,
  .row,
  .hero-stats,
  .qr-grid,
  .shop-grid,
  .assistant-card-grid,
  .assistant-input-row {
    grid-template-columns: 1fr;
  }

  .social-embed iframe {
    min-height: 300px;
  }

  .social-links-row {
    flex-direction: column;
  }

  .social-links-row .link-btn {
    width: 100%;
  }

  .assistant-input-row {
    grid-template-columns: 1fr 1fr;
  }

  .assistant-input {
    grid-column: 1 / -1;
  }

  .cart-shell {
    width: 100%;
  }

  .shop-category-tabs {
    margin-left: -2px;
    margin-right: -2px;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
  }

  .shop-mobile-nav {
    width: 100%;
    justify-content: space-between;
  }

  .shop-category-chip {
    scroll-snap-align: start;
  }

  .shop-results-head {
    align-items: stretch;
  }

  .shop-page-summary {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .shop-card h3 {
    font-size: 1rem;
  }

  .shop-card p {
    min-height: 0;
  }

  .shop-card .btn.btn-primary,
  .shop-card .shop-image-trigger,
  .shop-card .inline-actions {
    width: 100%;
  }

  .shop-card .inline-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .cart-item {
    grid-template-columns: 1fr;
  }

  .checkout-panel {
    max-height: 62vh;
  }

  .outlet-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .page-head .tag {
    justify-self: start;
  }

  .hero,
  .section,
  .card,
  .hero-card {
    border-radius: 20px;
  }

  .section {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .card {
    padding: 12px;
  }

  .hero-image,
  .card-image,
  .details-image,
  .social-post-card .card-image,
  .shop-card .card-image {
    aspect-ratio: 6 / 5;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .admin-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  :root {
    --topbar-offset: 160px;
  }

  .topbar-inner {
    padding-left: 12px;
    padding-right: 12px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark,
  .brand-logo {
    width: 60px;
    height: 60px;
  }

  .brand-text strong {
    font-size: 1.16rem;
  }

  .brand-text span {
    font-size: 0.8rem;
  }

  .hero-grid,
  .section,
  .hero-card,
  .layout,
  .cart-header,
  .cart-body,
  .cart-footer,
  .checkout-panel {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-grid {
    gap: 14px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .assistant-prompt-list {
    grid-template-columns: 1fr 1fr;
    display: grid;
  }

  .assistant-prompt {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .shop-category-tabs {
    gap: 6px;
  }

  .shop-mobile-nav .inline-btn {
    flex: 1 1 0;
    min-height: 42px;
  }

  .shop-category-chip,
  .unit-chip {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .shop-results-head {
    margin-top: 12px;
  }

  .shop-page-summary {
    font-size: 0.86rem;
  }

  .shop-card {
    padding: 12px;
  }

  .shop-card .card-meta {
    margin-top: 8px;
  }

  .shop-card .btn.btn-primary {
    min-height: 44px;
  }

  .section {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .details-shell {
    width: min(100vw - 20px, 720px);
    max-height: calc(100vh - 20px);
    margin: 10px auto;
  }

  .details-body {
    grid-template-columns: 1fr;
  }

  .hero-image,
  .card-image,
  .qr-image,
  .details-image,
  .social-post-card .card-image,
  .shop-card .card-image {
    aspect-ratio: 6 / 5;
  }

  .specials-hero .hero-image {
    aspect-ratio: 4 / 5;
    min-height: 0;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }

  .page-head h1 {
    font-size: clamp(1.4rem, 6.8vw, 1.95rem);
  }

  .nav a,
  .topbar-actions .btn {
    font-size: 0.82rem;
  }

  .shop-results-head,
  .shop-pager,
  .footer-brand-row,
  .footer-links {
    gap: 8px;
  }

  .shop-pager {
    flex-direction: column;
    align-items: stretch;
  }

  .shop-pager .inline-btn {
    width: 100%;
  }

  .social-embed iframe {
    min-height: 260px;
  }

  .outlet-gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
