:root {
  color-scheme: light;
  --ink: #0b0c0e;
  --ink-soft: #2b2f35;
  --paper: #f7f4ee;
  --surface: #ffffff;
  --line: #d8d2c7;
  --muted: #777067;
  --accent: #c1121f;
  --acid: #d8ff3e;
  --success: #148a4d;
  --shadow: 0 18px 50px rgba(12, 12, 12, 0.18);
  --radius: 8px;
  --header-height: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.drawer-open {
  overflow: hidden;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

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

svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.announcement {
  display: flex;
  justify-content: center;
  gap: 28px;
  min-height: 34px;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--surface);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: var(--header-height);
  padding: 0 32px;
  background: rgba(11, 12, 14, 0.92);
  color: var(--surface);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.main-nav a {
  padding: 12px 0;
  opacity: 0.84;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--acid);
  opacity: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-shell {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 220px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  color: var(--surface);
}

.search-shell input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
}

.search-shell input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.icon-button,
.cart-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: currentColor;
}

.cart-button span {
  position: absolute;
  right: -7px;
  top: -7px;
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--acid);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
}

.menu-button {
  display: none;
}

.view {
  display: none;
}

.view-active {
  display: block;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #111;
  color: var(--surface);
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.22) 58%, rgba(0, 0, 0, 0.62)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent 38%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: end;
  width: min(1180px, calc(100% - 40px));
  min-height: 620px;
  margin: 0 auto;
  padding: 110px 0 72px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.hero h1,
.checkout-header h1,
.admin-topbar h1,
.admin-login h1,
.detail-copy h1 {
  margin: 0;
  font-size: 4.2rem;
  line-height: 0.98;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 570px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
  line-height: 1.65;
}

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

.primary-link,
.ghost-link,
.primary-button,
.ghost-button,
.pay-button,
.back-button,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
}

.primary-link,
.primary-button,
.pay-button {
  background: var(--ink);
  color: var(--surface);
}

.hero .primary-link {
  background: var(--surface);
  color: var(--ink);
}

.ghost-link,
.ghost-button,
.back-button,
.small-button {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.hero .ghost-link {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  color: var(--surface);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: -38px auto 54px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow);
}

.trust-strip div {
  min-height: 96px;
  padding: 22px;
  background: var(--surface);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  margin-bottom: 6px;
  font-size: 0.96rem;
  text-transform: uppercase;
}

.trust-strip span,
.collection-copy p:last-child,
.admin-section-head p,
.detail-description {
  color: var(--muted);
  line-height: 1.65;
}

.toolbar-band,
.product-grid,
.collection-band,
.checkout-header,
.checkout-layout,
.detail-view > .back-button,
#productDetail {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.toolbar-band {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading h2,
.collection-copy h2,
.form-panel h2,
.summary-panel h2,
.cart-header h2,
.status-board h2,
.admin-section-head h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.catalog-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.segmented button,
.payment-tab,
.admin-tab {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.segmented button {
  padding: 0 12px;
}

.segmented button.active,
.payment-tab.active,
.admin-tab.active {
  background: var(--ink);
  color: var(--surface);
}

select,
input,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  outline: 0;
}

input[type="file"] {
  min-height: auto;
  padding: 12px;
}

textarea {
  resize: vertical;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 58px;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.product-card:hover {
  border-color: var(--ink);
}

.product-media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--media-a), var(--media-b));
}

.product-media {
  aspect-ratio: 1 / 1.12;
}

.detail-carousel {
  position: relative;
  aspect-ratio: 1 / 1.05;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 220ms ease;
}

.carousel-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--media-a), var(--media-b));
}

.product-media img,
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-button {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: rgba(11, 12, 14, 0.72);
  color: var(--surface);
  transform: translateY(-50%);
}

.carousel-prev {
  left: 14px;
}

.carousel-next {
  right: 14px;
}

.fallback-art {
  position: absolute;
  inset: 22px;
  display: grid;
  place-items: end center;
  padding: 18px;
  border: 2px solid rgba(255, 255, 255, 0.68);
  border-radius: 6px;
  color: var(--ink);
  font-weight: 1000;
  text-align: center;
  text-transform: uppercase;
}

.fallback-art span {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 54px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.85);
}

.badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--acid);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.photo-count {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(11, 12, 14, 0.82);
  color: var(--surface);
  font-size: 0.72rem;
  font-weight: 900;
}

.product-info {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.product-info h3 {
  min-height: 48px;
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.35;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-row strong {
  font-size: 1.15rem;
}

.price-row del {
  color: var(--muted);
  font-size: 0.9rem;
}

.product-info .primary-button {
  width: 100%;
}

.stock-warning {
  color: var(--accent);
  font-weight: 900;
}

.detail-view,
.checkout-view,
.admin-view {
  padding: 44px 0 72px;
}

.detail-back {
  margin-bottom: 22px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 34px;
  align-items: start;
}

.detail-gallery {
  display: grid;
  gap: 12px;
}

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

.thumb-button {
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0;
}

.thumb-button.active {
  border: 2px solid var(--ink);
}

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

.detail-copy {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.collection-band {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: center;
  margin-bottom: 72px;
  padding: 34px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(216, 255, 62, 0.22), transparent 48%),
    var(--surface);
}

.combo-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--surface);
}

.combo-panel span {
  display: block;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.combo-panel strong {
  display: block;
  margin-top: 4px;
  font-size: 3.2rem;
  line-height: 1;
}

.combo-panel .primary-button {
  background: var(--acid);
  color: var(--ink);
}

.checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 22px;
  align-items: start;
}

.checkout-form {
  display: grid;
  gap: 18px;
}

.form-panel,
.summary-panel,
.status-board,
.admin-login,
.admin-main {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.form-panel,
.summary-panel {
  padding: 24px;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.panel-title span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--surface);
  font-weight: 900;
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 850;
}

.wide {
  grid-column: 1 / -1;
}

.payment-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 4px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f1ede6;
}

.payment-panel {
  display: none;
}

.payment-panel.active {
  display: block;
}

.payment-note {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfaf7;
  color: var(--muted);
  line-height: 1.65;
}

.toggle-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.toggle-line input {
  width: 18px;
  height: 18px;
  min-height: 18px;
}

.pay-button {
  width: 100%;
  min-height: 56px;
  background: var(--success);
}

.summary-panel {
  position: sticky;
  top: calc(var(--header-height) + 18px);
}

.summary-items,
.cart-items {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.summary-item,
.cart-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.mini-thumb {
  width: 52px;
  height: 58px;
  overflow: hidden;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--media-a), var(--media-b));
}

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

.summary-item h3,
.cart-item h3 {
  margin: 0 0 4px;
  overflow: hidden;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-item span,
.cart-item span {
  color: var(--muted);
  font-size: 0.82rem;
}

.qty-controls {
  display: inline-grid;
  grid-template-columns: 30px 34px 30px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.qty-controls button {
  width: 30px;
  height: 32px;
  border: 0;
  background: transparent;
  font-weight: 900;
}

.qty-controls strong {
  text-align: center;
  font-size: 0.86rem;
}

.summary-totals,
.cart-footer #cartTotals {
  display: grid;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.total-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.total-line.final {
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 1000;
}

.admin-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  width: min(1240px, calc(100% - 40px));
  min-height: 650px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background: var(--ink);
  color: var(--surface);
}

.admin-brand {
  margin-bottom: 18px;
}

.admin-tab {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 12px;
  color: var(--surface);
  text-align: left;
}

.admin-tab.active {
  background: var(--acid);
  color: var(--ink);
}

.admin-content {
  min-width: 0;
  padding: 24px;
  background: #f8f7f4;
}

.admin-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: center;
  padding: 32px;
}

.admin-login p:last-child {
  color: var(--muted);
}

.login-form,
.product-form {
  display: grid;
  gap: 12px;
}

.hidden {
  display: none !important;
}

.admin-main {
  padding: 24px;
}

.admin-topbar,
.admin-section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
}

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

.metric {
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 12px;
  font-size: 1.8rem;
}

.status-board {
  padding: 20px;
}

.admin-panel {
  display: none;
}

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

.product-form {
  grid-template-columns: 2fr 1fr 1fr 1fr;
  align-items: end;
  margin-bottom: 18px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.photo-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 48px;
  padding: 8px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #fbfaf7;
}

.photo-preview img {
  width: 54px;
  height: 54px;
  border-radius: 6px;
  object-fit: cover;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #ece7dc;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.pill.good {
  background: #dcf6e9;
  color: var(--success);
}

.pill.warn {
  background: #ffe9e9;
  color: var(--accent);
}

.recent-order {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.recent-order:last-child {
  border-bottom: 0;
}

.cart-drawer {
  position: fixed;
  right: 0;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(440px, 100%);
  height: 100dvh;
  padding: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: translateX(105%);
  transition: transform 180ms ease;
}

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

.cart-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.cart-header .icon-button {
  border-color: var(--line);
  color: var(--ink);
}

.cart-items {
  overflow: auto;
  align-content: start;
}

.cart-footer {
  display: grid;
  gap: 16px;
}

.full {
  width: 100%;
}

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

.scrim {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  background: rgba(0, 0, 0, 0.48);
}

.scrim.show {
  display: block;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  width: min(420px, calc(100% - 32px));
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--surface);
  box-shadow: var(--shadow);
  font-weight: 800;
  opacity: 0;
  transform: translate(-50%, 20px);
  transition: 180ms ease;
  pointer-events: none;
}

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

@media (max-width: 1060px) {
  .site-header {
    grid-template-columns: auto auto 1fr;
    gap: 14px;
    padding: 0 20px;
  }

  .menu-button {
    display: inline-grid;
  }

  .main-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: calc(var(--header-height) + 44px);
    z-index: 45;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 14px;
  }

  .header-actions {
    justify-content: end;
  }

  .search-shell {
    width: 180px;
  }

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

  .checkout-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .summary-panel {
    position: static;
  }

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

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

@media (max-width: 760px) {
  .announcement {
    justify-content: start;
    overflow: auto;
    white-space: nowrap;
  }

  .site-header {
    min-height: 66px;
    grid-template-columns: auto auto auto;
    justify-content: space-between;
  }

  .search-shell {
    display: none;
  }

  .main-nav {
    top: 104px;
  }

  .hero,
  .hero-content {
    min-height: 560px;
  }

  .hero-content {
    width: min(100% - 32px, 1180px);
    padding-bottom: 56px;
  }

  .hero h1,
  .checkout-header h1,
  .admin-topbar h1,
  .admin-login h1,
  .detail-copy h1 {
    font-size: 2.85rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .trust-strip {
    grid-template-columns: 1fr;
    margin-top: -28px;
  }

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

  .catalog-tools {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .segmented {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }

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

  .product-info {
    padding: 12px;
  }

  .product-info h3 {
    min-height: 58px;
    font-size: 0.94rem;
  }

  .collection-band {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .checkout-header {
    align-items: start;
    flex-direction: column;
  }

  .form-grid,
  .payment-tabs {
    grid-template-columns: 1fr;
  }

  .summary-item,
  .cart-item {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .summary-item > strong,
  .cart-item .qty-controls {
    grid-column: 2;
  }

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

  .admin-sidebar {
    flex-direction: row;
    overflow-x: auto;
  }

  .admin-brand {
    flex: 0 0 auto;
    margin: 0 8px 0 0;
  }

  .admin-tab {
    flex: 0 0 auto;
    width: auto;
  }

  .admin-login {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .admin-main {
    padding: 18px;
  }

  .admin-topbar,
  .admin-section-head {
    align-items: start;
    flex-direction: column;
  }

  .metric-grid,
  .product-form {
    grid-template-columns: 1fr;
  }

  .detail-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .toolbar-band,
  .product-grid,
  .collection-band,
  .checkout-header,
  .checkout-layout,
  .trust-strip,
  .admin-shell,
  .detail-view > .back-button,
  #productDetail {
    width: calc(100% - 24px);
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions > * {
    width: 100%;
  }

  .form-panel,
  .summary-panel,
  .detail-copy {
    padding: 18px;
  }

  .cart-drawer {
    padding: 18px;
  }
}
