:root {
  --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: 156px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 8% 10%, rgba(217, 163, 32, 0.2), transparent 35%),
    radial-gradient(circle at 92% 18%, rgba(96, 168, 179, 0.22), transparent 32%),
    linear-gradient(180deg, #f7fbfc 0%, #eef6f7 55%, #f8fbfc 100%);
  min-height: 100%;
  overflow-x: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

#app {
  min-height: 100vh;
}

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

.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);
}

.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: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  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: 54px;
  height: 54px;
  border-radius: 16px;
  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.16rem;
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.brand-text span {
  display: block;
  font-size: 0.86rem;
  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;
}

.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;
}

.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.2rem, 4.6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.page-head h1 {
  margin: 14px 0 12px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  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,
.card-image img,
.qr-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  box-sizing: border-box;
  padding: 10px;
}

.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;
}

.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-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;
}

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

.social-post-card .card-image img,
.shop-card .card-image img {
  padding: 8px;
}

.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: contain;
  box-sizing: border-box;
  padding: 6px;
}

.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;
}

.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-card a {
  display: inline-block;
  margin-top: 10px;
  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-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-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;
}

.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;
}

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

  .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: 176px;
  }

  .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: repeat(2, minmax(0, 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: 760px) {
  :root {
    --topbar-offset: 238px;
  }

  .topbar-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      'brand'
      'actions'
      'nav';
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .brand {
    justify-self: center;
  }

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

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

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

  .nav {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    width: 100%;
  }

  .nav a {
    padding: 9px 12px;
    font-size: 0.85rem;
  }

  .topbar-actions {
    justify-self: center;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
  }

  .topbar-actions .btn {
    padding: 9px 12px;
  }

  .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 {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 9vw, 2.9rem);
  }

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

  .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;
  }

  .cart-shell {
    width: 100%;
  }

  .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;
  }

  .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: 246px;
  }

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

  .brand {
    gap: 10px;
  }

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

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

  .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;
  }
}
