:root {
  color-scheme: light;
  --ink: #18202a;
  --muted: #66717f;
  --line: #d9e0e7;
  --paper: #fbfcfd;
  --surface: #ffffff;
  --charcoal: #111827;
  --red: #c91f32;
  --red-dark: #961929;
  --gold: #f4b43f;
  --teal: #138a8a;
  --green: #2b7c4b;
  --blue: #2864ad;
  --shadow: 0 20px 45px rgba(24, 32, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  letter-spacing: 0;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  padding: 10px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid rgba(217, 224, 231, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--red);
  color: white;
  font-weight: 900;
}

.brand-logo {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 6px;
  object-fit: contain;
  background: white;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-left: auto;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 6px;
  color: #303b47;
  font-weight: 700;
}

.nav-links a:hover {
  background: #eef2f6;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  cursor: pointer;
}

.admin-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 104px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--charcoal);
  color: white;
  font-weight: 900;
  cursor: pointer;
}

.admin-toggle:hover {
  background: #263241;
}

.cart-toggle {
  position: relative;
}

#cart-count {
  position: absolute;
  right: -6px;
  top: -6px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--gold);
  color: #2d1b00;
  font-size: 12px;
  font-weight: 900;
}

.hero {
  position: relative;
  min-height: calc(100vh - 110px);
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: clamp(42px, 8vw, 88px) clamp(18px, 5vw, 64px);
  isolation: isolate;
}

.hero img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 18, 26, 0.82), rgba(12, 18, 26, 0.44) 48%, rgba(12, 18, 26, 0.18)),
    linear-gradient(0deg, rgba(12, 18, 26, 0.48), transparent 46%);
}

.hero-content {
  max-width: 700px;
  color: white;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 590px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

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

.promo-marquee {
  padding: 26px 0 30px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: white;
}

.promo-heading {
  max-width: 1180px;
  margin: 0 auto 16px;
  padding: 0 18px;
}

.promo-heading h2 {
  margin: 0;
  color: var(--charcoal);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
}

.promo-viewport {
  overflow: hidden;
  padding-block: 4px;
}

.promo-track {
  display: flex;
  width: max-content;
  gap: 14px;
  padding-inline: 18px;
  animation: promo-marquee 34s linear infinite;
}

.promo-track.is-static,
.promo-viewport:hover .promo-track {
  animation-play-state: paused;
}

.promo-track.is-static {
  width: auto;
  max-width: 1180px;
  margin: 0 auto;
}

.promo-item {
  display: grid;
  grid-template-columns: 112px 190px;
  align-items: center;
  gap: 12px;
  width: 328px;
  min-height: 126px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.promo-item:hover {
  border-color: #b6c2ce;
  background: white;
}

.promo-photo {
  display: grid;
  place-items: center;
  width: 112px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: white;
  color: var(--red);
  font-weight: 900;
  text-align: center;
}

.promo-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.promo-info {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.promo-category {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.promo-info strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--charcoal);
  font-size: 16px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.promo-info span:last-child {
  color: var(--red);
  font-size: 18px;
  font-weight: 900;
}

@keyframes promo-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.primary-action,
.secondary-action,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.primary-action {
  background: var(--red);
  color: white;
  box-shadow: 0 10px 24px rgba(201, 31, 50, 0.24);
}

.primary-action:hover {
  background: var(--red-dark);
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.14);
  color: white;
}

.ghost-button {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: min(1120px, calc(100% - 32px));
  margin: -36px auto 36px;
  border: 1px solid rgba(217, 224, 231, 0.92);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}

.summary-strip div {
  min-height: 92px;
  padding: 20px;
  background: white;
}

.summary-strip strong {
  display: block;
  color: var(--charcoal);
  font-size: 22px;
}

.summary-strip span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.workspace {
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 18px;
  scroll-margin-top: 88px;
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: var(--charcoal);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
}

.booking-title-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.6;
}

.shop-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
}

.shop-layout .section-heading {
  grid-column: 1 / -1;
}

.filters,
.form-panel,
.admin-note,
.booking-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.filters {
  align-self: start;
  position: sticky;
  top: 96px;
  display: grid;
  gap: 12px;
  padding: 18px;
}

label,
legend {
  color: #35404c;
  font-size: 14px;
  font-weight: 900;
}

.field-hint {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid #cfd7df;
  border-radius: 6px;
  background: white;
  color: var(--ink);
}

select option:disabled {
  background: #eef2f6;
  color: #98a2ad;
}

input,
select {
  height: 44px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  min-height: 94px;
  padding: 12px;
  line-height: 1.5;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #53606e;
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle.is-visible {
  background: #eef2f6;
  color: var(--charcoal);
}

fieldset {
  margin: 0;
  padding: 12px 0 0;
  border: 0;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--red);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  margin-bottom: 18px;
}

.toolbar p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.sort-option {
  min-width: 64px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #47515d;
  font-weight: 900;
  cursor: pointer;
}

.sort-option.active {
  background: var(--charcoal);
  color: white;
}

.product-list {
  display: grid;
  gap: 30px;
}

.product-category-section {
  display: grid;
  gap: 14px;
}

.product-category-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
}

.product-category-heading h3 {
  margin: 0;
  color: var(--charcoal);
  font-size: 24px;
  line-height: 1.25;
}

.product-category-heading span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

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

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 388px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  scroll-margin-top: 100px;
}

.product-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  aspect-ratio: 1 / 1;
  padding: 16px;
  color: white;
  background: var(--charcoal);
}

.product-visual.has-photo {
  padding: 0;
  background: #eef2f6;
}

.product-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-category {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 6px 9px;
  border-radius: 6px;
  background: rgba(17, 24, 39, 0.78);
  color: white;
  font-size: 13px;
  font-weight: 900;
}

.product-visual strong {
  max-width: 132px;
  font-size: 18px;
  line-height: 1.25;
}

.product-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 28px;
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.category-pill {
  align-self: flex-start;
  padding: 5px 8px;
  border-radius: 6px;
  background: #eef2f6;
  color: #43505c;
  font-size: 12px;
  font-weight: 900;
}

.product-body h3 {
  min-height: 56px;
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
}

.product-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.barcode {
  color: #53606e;
  font-size: 13px;
  font-weight: 900;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.price {
  color: var(--red);
  font-size: 22px;
  font-weight: 900;
}

.stock {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.product-card button {
  width: 100%;
  margin-top: 2px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
}

.split-layout .section-heading {
  grid-column: 1 / -1;
}

.form-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
}

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

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-note,
.booking-list {
  align-self: start;
  padding: 20px;
}

.admin-note strong,
.booking-list h3 {
  margin: 0;
  color: var(--charcoal);
  font-size: 22px;
}

.admin-note p {
  color: var(--muted);
  line-height: 1.7;
}

.booking-layout {
  padding-bottom: 88px;
}

.booking-list h3 {
  margin-bottom: 14px;
}

#booking-items {
  display: grid;
  gap: 10px;
}

.booking-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fafc;
}

.booking-item strong {
  display: block;
}

.booking-item span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.cart-drawer,
.admin-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(420px, calc(100% - 28px));
  height: 100vh;
  background: white;
  box-shadow: -22px 0 48px rgba(24, 32, 42, 0.2);
  transform: translateX(105%);
  transition: transform 0.22s ease;
}

.cart-drawer.open,
.admin-drawer.open {
  transform: translateX(0);
}

.admin-drawer {
  grid-template-rows: auto 1fr;
  width: min(860px, calc(100% - 28px));
}

.cart-header,
.cart-footer,
.admin-header {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.cart-header,
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h2,
.admin-header h2 {
  margin: 0;
}

.admin-header .eyebrow {
  color: var(--red);
}

.admin-shell {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.admin-menu {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border-right: 1px solid var(--line);
  background: #f5f7fa;
}

.admin-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #3e4a57;
  font-weight: 900;
  text-align: left;
}

.admin-menu-item.active {
  border-color: var(--line);
  background: white;
  color: var(--red);
}

.admin-menu-item:disabled {
  color: #98a2ad;
  cursor: not-allowed;
}

.admin-panel {
  display: none;
  align-content: start;
  gap: 16px;
  overflow: auto;
  padding: 20px;
}

.admin-panel.active {
  display: grid;
}

.admin-panel-heading h3 {
  margin: 0;
  color: var(--charcoal);
  font-size: 26px;
}

.admin-panel-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.photo-preview {
  display: grid;
  place-items: center;
  min-height: 154px;
  overflow: hidden;
  border: 1px dashed #bac5d0;
  border-radius: 8px;
  background: #f7fafc;
  color: var(--muted);
  font-weight: 900;
}

.photo-preview img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
}

.photo-preview.empty {
  padding: 18px;
}

#home-image-preview {
  min-height: 210px;
}

#home-image-preview img {
  max-height: 320px;
}

.category-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

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

.inventory-list {
  display: grid;
  gap: 14px;
}

.category-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.category-row input {
  margin-top: 0;
}

.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #f0bac1;
  border-radius: 8px;
  background: #fff5f6;
  color: var(--red);
  font-weight: 900;
  cursor: pointer;
}

.danger-button:disabled {
  border-color: var(--line);
  background: #f3f5f7;
  color: #98a2ad;
  cursor: not-allowed;
}

.inventory-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.inventory-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.inventory-card-head strong {
  color: var(--charcoal);
  font-size: 18px;
}

.inventory-card-head span {
  padding: 5px 8px;
  border-radius: 6px;
  background: #eef2f6;
  color: #43505c;
  font-size: 12px;
  font-weight: 900;
}

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

.inventory-photo-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.inventory-thumb {
  display: grid;
  place-items: center;
  width: 130px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px dashed #bac5d0;
  border-radius: 8px;
  background: #f7fafc;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.inventory-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inventory-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.inventory-actions-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cart-items {
  overflow: auto;
  padding: 12px 18px;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.cart-line p {
  margin: 0;
  color: var(--muted);
}

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

.qty-controls button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  cursor: pointer;
}

.cart-footer {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-total strong {
  color: var(--red);
  font-size: 26px;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(17, 24, 39, 0.45);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  max-width: min(420px, calc(100% - 32px));
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--charcoal);
  color: white;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 86px;
  z-index: 55;
  display: inline-grid;
  place-items: center;
  gap: 2px;
  min-width: 74px;
  min-height: 58px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  background: var(--charcoal);
  color: white;
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--red);
}

.back-to-top span {
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.back-to-top strong {
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.empty-state {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
  }

  .brand {
    min-width: 0;
    flex: 1;
  }

  .nav-links {
    order: 3;
    flex: 1;
    justify-content: space-between;
  }

  .admin-toggle {
    order: 4;
  }

  .summary-strip,
  .shop-layout,
  .split-layout,
  .booking-layout {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }
}

@media (max-width: 620px) {
  .site-header {
    gap: 10px;
  }

  .nav-links {
    order: 4;
    width: 100%;
    flex: none;
  }

  .admin-toggle {
    order: 2;
    min-width: 96px;
  }

  .hero {
    min-height: 72vh;
    padding-top: 54px;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(12, 18, 26, 0.88), rgba(12, 18, 26, 0.4));
  }

  .summary-strip {
    margin-top: -20px;
  }

  .summary-strip div {
    min-height: auto;
    padding: 16px;
  }

  .toolbar,
  .form-options {
    align-items: stretch;
    flex-direction: column;
  }

  .segmented {
    width: 100%;
  }

  .sort-option {
    min-width: 0;
  }

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

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

  .admin-menu {
    grid-auto-flow: column;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .category-form,
  .category-row,
  .inventory-edit-grid,
  .inventory-photo-row {
    grid-template-columns: 1fr;
  }

  .inventory-thumb {
    width: 100%;
  }

  .product-card {
    min-height: 360px;
  }
}

.booking-page-main {
  padding: clamp(24px, 5vw, 56px) clamp(16px, 4vw, 48px) 72px;
}

.standalone-booking {
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
  margin-inline: auto;
  max-width: 980px;
}

.standalone-booking .form-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.booking-page .ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 760px) {
  .booking-page-main {
    padding-inline: 14px;
  }
}
.standalone-booking .form-panel {
  gap: 22px;
  padding: clamp(24px, 4vw, 38px);
}

.standalone-booking .field-grid {
  gap: 20px;
}

.standalone-booking input,
.standalone-booking select {
  height: 52px;
  font-size: 16px;
}

.standalone-booking textarea {
  min-height: 190px;
  padding: 14px 12px;
  font-size: 16px;
  line-height: 1.6;
}

.standalone-booking .primary-action,
.standalone-booking .ghost-button {
  min-height: 48px;
  padding-inline: 22px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  padding: 24px 20px 32px;
  border-top: 1px solid var(--line);
  background: #ffffff;
  color: var(--charcoal);
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.site-footer strong {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.site-footer span,
.site-footer strong {
  line-height: 1.6;
}

@media (max-width: 640px) {
  .site-footer {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding-inline: 18px;
  }
}
.admin-login-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  pointer-events: none;
}

.admin-login-modal[hidden] {
  display: none;
}

.admin-login-card {
  display: grid;
  gap: 16px;
  width: min(420px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 24px 70px rgba(24, 32, 42, 0.24);
  pointer-events: auto;
}

.admin-login-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.admin-login-heading h2 {
  margin: 0;
  color: var(--charcoal);
}

.permission-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.permission-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fafc;
}

.permission-row strong,
.permission-row span {
  display: block;
}

.permission-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.permission-row .ghost-button {
  flex: 0 0 auto;
}

.permission-actions {
  display: flex;
  align-items: end;
  gap: 8px;
}

.permission-actions label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.permission-actions input {
  width: 150px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
}

@media (max-width: 560px) {
  .permission-row {
    align-items: stretch;
    flex-direction: column;
  }

  .permission-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .permission-actions input {
    width: 100%;
  }
}

@media (max-width: 720px) {
  body {
    background: #f5f7fa;
  }

  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    min-height: auto;
    padding: 8px 12px 10px;
  }

  .brand {
    min-width: 0;
    gap: 8px;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small {
    font-size: 11px;
  }

  .admin-toggle,
  .icon-button {
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
  }

  .admin-toggle span:last-child {
    display: none;
  }

  .nav-links {
    grid-column: 1 / -1;
    order: initial;
    width: 100%;
    margin-left: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .nav-links a {
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    text-align: center;
  }

  .hero {
    min-height: min(68svh, 560px);
    align-items: end;
    padding: 44px 16px 34px;
  }

  .hero img {
    object-position: center center;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(12, 18, 26, 0.24), rgba(12, 18, 26, 0.84)),
      linear-gradient(90deg, rgba(12, 18, 26, 0.78), rgba(12, 18, 26, 0.2));
  }

  .hero-content {
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(34px, 10vw, 46px);
    line-height: 1.08;
  }

  .hero p:not(.eyebrow) {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.6;
  }

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

  .promo-marquee {
    padding: 22px 0 24px;
  }

  .promo-heading {
    margin-bottom: 12px;
    padding-inline: 12px;
  }

  .promo-track {
    gap: 10px;
    padding-inline: 12px;
    animation-duration: 28s;
  }

  .promo-item {
    grid-template-columns: 96px 162px;
    width: 280px;
    min-height: 112px;
    gap: 10px;
    padding: 8px;
  }

  .promo-photo {
    width: 96px;
  }

  .promo-info strong {
    font-size: 15px;
  }

  .promo-info span:last-child {
    font-size: 17px;
  }

  .primary-action,
  .secondary-action,
  .ghost-button {
    min-height: 44px;
    padding-inline: 12px;
  }

  .workspace {
    padding: 30px 12px;
    scroll-margin-top: 122px;
  }

  .section-heading {
    margin-bottom: 14px;
  }

  .section-heading h1,
  .section-heading h2 {
    font-size: 28px;
  }

  .shop-layout {
    gap: 16px;
  }

  .filters {
    gap: 10px;
    padding: 14px;
  }

  .toolbar {
    display: grid;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 12px;
  }

  .toolbar p {
    text-align: center;
  }

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

  .product-list {
    gap: 24px;
  }

  .product-category-section {
    gap: 12px;
  }

  .product-category-heading {
    align-items: center;
    padding-bottom: 8px;
  }

  .product-category-heading h3 {
    font-size: 21px;
  }

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

  .product-card {
    min-height: 0;
    border-radius: 8px;
  }

  .product-visual.has-photo {
    background: white;
  }

  .product-photo {
    object-fit: contain;
    padding: 6px;
    background: white;
  }

  .product-body {
    gap: 8px;
    padding: 12px;
  }

  .category-pill {
    font-size: 11px;
  }

  .product-body h3 {
    min-height: 0;
    font-size: 16px;
    line-height: 1.35;
  }

  .product-body p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: 13px;
  }

  .barcode,
  .stock {
    font-size: 12px;
  }

  .product-meta {
    display: grid;
    gap: 2px;
    align-items: start;
  }

  .price {
    font-size: 18px;
  }

  .product-card button {
    min-height: 42px;
    font-size: 14px;
  }

  .cart-drawer,
  .admin-drawer {
    width: 100%;
    height: 100svh;
  }

  .back-to-top {
    right: 14px;
    bottom: 72px;
    min-width: 70px;
    min-height: 56px;
  }

  .cart-header,
  .cart-footer,
  .admin-header {
    padding: 14px;
  }

  .admin-panel {
    padding: 14px;
  }

  .admin-menu {
    padding: 12px;
  }

  .admin-menu-item {
    min-width: max-content;
    min-height: 40px;
    padding: 0 10px;
  }

  .form-panel {
    padding: 16px;
  }

  input,
  select {
    height: 46px;
  }

  textarea {
    min-height: 120px;
  }
}

@media (max-width: 420px) {
  .hero-actions,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .promo-item {
    grid-template-columns: 88px 154px;
    width: 260px;
  }

  .promo-photo {
    width: 88px;
  }

  .product-card {
    grid-template-columns: 132px minmax(0, 1fr);
    grid-template-rows: 1fr;
  }

  .product-visual {
    min-height: 100%;
    aspect-ratio: auto;
  }

  .product-photo {
    object-fit: contain;
    padding: 8px;
  }

  .photo-category,
  .product-visual strong {
    display: none;
  }

  .product-icon {
    width: 44px;
    height: 44px;
    font-size: 24px;
  }

  .product-body p {
    -webkit-line-clamp: 2;
  }
}

@media (min-width: 721px) {
  .mobile-only {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .promo-track {
    animation: none;
  }
}
