:root {
  color-scheme: light;
  --ink: #090909;
  --muted: #626262;
  --paper: #f5f5f1;
  --surface: #ffffff;
  --line: #d6d6d0;
  --accent: #090909;
  --accent-dark: #090909;
  --whatsapp: #090909;
  --danger: #a2382c;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  font-family: "Avenir Next", Avenir, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  background: var(--paper);
}

body:has(dialog[open]) { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, select { color: inherit; }
button { cursor: pointer; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 11px 16px 14px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 0;
  backdrop-filter: blur(10px);
}

.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--ink);
}

.brand {
  display: block;
  width: clamp(118px, 32vw, 162px);
  line-height: 0;
  text-decoration: none;
}

.brand img { display: block; width: 100%; height: auto; }

.basket-button {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-weight: 750;
}

.basket-count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  min-height: 24px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 999px;
  color: var(--ink);
  background: white;
  font-size: 0.8rem;
}

main { padding-bottom: 72px; }
.catalogue-intro { padding: 34px 18px 24px; }

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

h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 620px;
  margin-bottom: 12px;
  font-size: clamp(2.2rem, 10vw, 4.6rem);
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.catalogue-intro::after {
  content: "";
  display: block;
  width: 96px;
  height: 5px;
  margin-top: 20px;
  background: var(--ink);
}

.catalogue-intro > p:last-child {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.catalogue-tools {
  display: grid;
  gap: 12px;
  padding: 0 16px 20px;
}

.search-field input,
.type-field select,
.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: var(--surface);
  font-size: 1rem;
}

.checkout-form textarea { min-height: 92px; padding-top: 12px; resize: vertical; }
.search-field input:focus,
.type-field select:focus,
.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23, 35, 28, 0.1); }

.department-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.audience-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-top: 2px;
  scrollbar-width: none;
}

.department-tabs::-webkit-scrollbar { display: none; }
.audience-tabs[hidden] { display: none; }
.audience-tabs::-webkit-scrollbar { display: none; }
.department-tab {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 700;
}

.audience-tab {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.department-tab.active { border-color: var(--ink); background: var(--ink); color: white; }
.audience-tab.active { border-color: var(--ink); background: var(--ink); color: white; }
.type-field { display: grid; gap: 7px; color: var(--muted); font-size: 0.82rem; font-weight: 750; }
.type-field select { color: var(--ink); }
.catalogue-section { padding: 0 16px; }

.department-landing { padding: 2px 16px 0; }
.department-landing-heading { margin-bottom: 16px; }
.department-landing-heading h2 { margin-bottom: 0; font-size: clamp(1.6rem, 7vw, 2.8rem); line-height: 1; letter-spacing: -0.035em; }
.department-hero-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.department-hero {
  position: relative;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1122 / 1402;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: #d8d8d2;
  color: white;
  text-align: left;
}
.department-hero::after {
  content: "";
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .72));
  pointer-events: none;
}
.department-hero-images { position: absolute; inset: 0; display: block; }
.department-hero-images.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: white; }
.department-hero-images img { display: block; width: 100%; height: 100%; min-width: 0; object-fit: cover; background: white; }
.department-hero.natural-image { align-self: start; }
.department-hero.natural-image.image-ready { min-height: 0; }
.department-hero.natural-image .department-hero-images { position: relative; inset: auto; }
.department-hero.natural-image .department-hero-images img { height: auto; object-fit: contain; }
.department-hero-label { position: absolute; z-index: 1; right: 15px; bottom: 14px; left: 15px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2px 10px; text-shadow: 0 1px 14px rgba(0,0,0,.55); }
.department-hero-label strong { font-size: clamp(1.3rem, 5.8vw, 2rem); font-weight: 850; line-height: .95; letter-spacing: -.05em; }
.department-hero-label > span { grid-row: 1 / span 2; grid-column: 2; font-size: 2rem; line-height: 1; }
.department-hero-label small { grid-column: 1; font-size: .72rem; font-weight: 750; letter-spacing: .04em; }
.department-hero:focus-visible { outline: 4px solid white; outline-offset: -7px; }

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.section-heading h2 { margin-bottom: 0; font-size: 1.25rem; }
#product-count { color: var(--muted); font-size: 0.88rem; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.product-category-heading { grid-column: 1 / -1; margin: 18px 0 0; padding: 0 0 9px; border-bottom: 2px solid var(--ink); font-size: 1.15rem; letter-spacing: -.02em; }
.product-category-heading:first-child { margin-top: 0; }

.product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.placeholder-image {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, var(--placeholder-a, #d7ddd9), var(--placeholder-b, #eef0ec));
}

.placeholder-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  opacity: 0;
}

.placeholder-image.has-image img { opacity: 1; }
.placeholder-image.has-image > span { display: none; }

.product-image {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 18px;
  border: 0;
  border-bottom: 1px solid rgba(23, 35, 28, 0.12);
}

.placeholder-label {
  align-self: center;
  padding: 7px 9px;
  border: 1px solid rgba(23, 35, 28, 0.35);
  border-radius: 999px;
  color: rgba(23, 35, 28, 0.68);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.placeholder-product {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 30px;
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.05;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-info { padding: 12px; }
.product-department { margin-bottom: 5px; color: var(--muted); font-size: 0.74rem; font-weight: 700; text-transform: uppercase; }
.product-name { margin-bottom: 7px; font-size: 1rem; line-height: 1.2; }
.product-colours { min-height: 34px; margin-bottom: 9px; color: var(--muted); font-size: 0.78rem; line-height: 1.3; }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product-price { font-size: 0.92rem; }

.view-product,
.secondary-button,
.icon-button {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f2f2ef;
  font-weight: 800;
}

.empty-state { grid-column: 1 / -1; padding: 48px 20px; text-align: center; color: var(--muted); }

.sheet-dialog {
  width: 100%;
  max-width: none;
  max-height: 92dvh;
  margin: auto 0 0;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 22px 22px 0 0;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 -20px 80px rgba(0, 0, 0, 0.22);
}

.sheet-dialog::backdrop { background: rgba(11, 17, 13, 0.54); backdrop-filter: blur(2px); }
.dialog-close-row { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 0; background: linear-gradient(white 70%, rgba(255,255,255,0)); }
.dialog-logo { display: block; width: 104px; height: auto; }
.product-detail-layout { display: grid; }
.detail-gallery { min-width: 0; background: var(--paper); }

.detail-image {
  display: grid;
  place-items: center;
  min-height: 310px;
  aspect-ratio: 5 / 4;
  margin: -50px 0 0;
  padding: 24px;
  cursor: zoom-in;
}

.detail-image:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }

.detail-image::before {
  content: "PRODUCT PHOTO";
  padding: 8px 10px;
  border: 1px solid rgba(23, 35, 28, 0.38);
  border-radius: 999px;
  color: rgba(23, 35, 28, 0.68);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.detail-image::after {
  content: attr(data-label);
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  color: rgba(23, 35, 28, 0.72);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
}

.detail-image.has-image::before,
.detail-image.has-image::after { display: none; }
.detail-gallery-controls {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 14px;
  background: var(--paper);
}
.detail-gallery-controls[hidden] { display: none; }
.gallery-arrow {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  font-size: 1.65rem;
  line-height: 1;
}
.gallery-thumbnails { display: flex; justify-content: center; gap: 8px; min-width: 0; }
.gallery-thumbnail {
  width: 48px;
  height: 58px;
  padding: 2px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
}
.gallery-thumbnail.selected { border: 2px solid var(--ink); box-shadow: 0 0 0 2px white, 0 0 0 4px var(--ink); }
.gallery-thumbnail img { display: block; width: 100%; height: 100%; object-fit: contain; }
.image-viewer {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: white;
  background: #090909;
}
.image-viewer::backdrop { background: #090909; }
.image-viewer-toolbar {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: max(12px, env(safe-area-inset-top)) 16px 12px;
  background: linear-gradient(#090909, rgba(9, 9, 9, 0));
}
.image-viewer-toolbar p { margin: 0; overflow: hidden; font-size: .82rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.image-viewer-close {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 999px;
  color: white;
  background: rgba(9,9,9,.7);
  font-weight: 800;
}
.image-viewer-stage {
  display: grid;
  width: 100%;
  height: 100%;
  overflow: auto;
  place-items: center;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y pinch-zoom;
}
.image-viewer-stage img {
  display: block;
  grid-area: 1 / 1;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  touch-action: pan-x pan-y pinch-zoom;
  transition: transform .18s ease;
}
.image-viewer-stage img.zoomed { width: 180vw; max-width: none; max-height: none; cursor: zoom-out; }
.image-viewer-arrow {
  position: fixed;
  z-index: 2;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 50%;
  color: white;
  background: rgba(9,9,9,.58);
  font-size: 1.8rem;
  line-height: 1;
}
.image-viewer-arrow.previous { left: 12px; }
.image-viewer-arrow.next { right: 12px; }
.image-viewer-footer {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 30px 16px max(14px, env(safe-area-inset-bottom));
  background: linear-gradient(rgba(9, 9, 9, 0), #090909);
  font-size: .75rem;
}
.product-detail-content { padding: 22px 18px 30px; }
.detail-department { margin-bottom: 6px; color: var(--muted); font-size: 0.8rem; font-weight: 750; text-transform: uppercase; }
.product-detail-content h2 { margin-bottom: 6px; font-size: 2rem; font-weight: 850; line-height: 1; letter-spacing: -0.04em; }
.detail-price { margin-bottom: 24px; font-size: 1.2rem; font-weight: 850; }
.option-group { min-width: 0; margin: 0 0 22px; padding: 0; border: 0; }
.option-group legend { margin-bottom: 10px; font-size: 0.92rem; font-weight: 850; }
.option-group legend span { margin-left: 5px; color: var(--accent-dark); font-size: 0.72rem; font-weight: 750; }
.choice-list { display: flex; flex-wrap: wrap; gap: 8px; }

.choice-button {
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  font-weight: 750;
}

.choice-button.selected { border-color: var(--ink); background: var(--ink); color: white; box-shadow: 0 0 0 2px white, 0 0 0 4px var(--ink); }
.colour-button { display: inline-flex; align-items: center; gap: 8px; }
.colour-swatch { width: 15px; height: 15px; border: 1px solid rgba(23,35,28,.3); border-radius: 50%; background: var(--swatch); }
.colour-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 4px 4px 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
  scrollbar-width: thin;
}
.variant-option {
  flex: 0 0 92px;
  min-width: 0;
  padding: 0;
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  text-align: left;
}
.variant-option.selected { border: 2px solid var(--ink); box-shadow: 0 0 0 2px white, 0 0 0 4px var(--ink); }
.variant-option-image { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 5; border-bottom: 1px solid var(--line); }
.variant-option-image img { object-fit: contain; }
.variant-option-placeholder { width: 26px; height: 26px; border: 1px solid rgba(23,35,28,.3); border-radius: 50%; background: var(--placeholder-a); }
.variant-option-image.has-image .variant-option-placeholder { display: none; }
.variant-option-label { display: block; padding: 8px; font-size: .72rem; font-weight: 750; line-height: 1.25; }
.selected-code-row { margin: 14px 0 0; color: var(--muted); font-size: 0.72rem; font-weight: 400; }
.quantity-block { display: flex; align-items: center; justify-content: space-between; margin: 0 0 16px; font-weight: 850; }
.stepper { display: inline-grid; grid-template-columns: 42px 42px 42px; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: white; }
.stepper button { height: 42px; border: 0; background: white; font-size: 1.25rem; }
.stepper output { min-width: 34px; text-align: center; font-weight: 850; }

.primary-button,
.checkout-button {
  width: 100%;
  min-height: 54px;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  font-weight: 850;
}

.primary-button:disabled { color: #8b928d; background: #e4e7e4; cursor: not-allowed; }
.text-button { padding: 5px 0; border: 0; background: transparent; color: var(--accent-dark); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
#copy-product-link { display: block; margin: 12px auto 0; }
.form-error { min-height: 20px; margin-bottom: 6px; color: var(--danger); font-size: 0.82rem; font-weight: 700; }

.matching-set { margin: 18px 0 4px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.matching-set-label { margin-bottom: 11px; font-size: 0.78rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.matching-set-card { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: center; gap: 13px; }
.matching-set-card.no-image { grid-template-columns: 1fr; }
.matching-set-image { display: grid; place-items: center; width: 70px; height: 86px; overflow: hidden; border-radius: 9px; }
.matching-set-image .placeholder-label { padding: 5px; font-size: 0.5rem; }
.matching-set-copy { min-width: 0; }
.matching-set-copy strong { display: block; margin-bottom: 4px; line-height: 1.2; }
.matching-set-copy p { margin: 0 0 10px; color: var(--muted); font-size: 0.78rem; line-height: 1.4; }
.matching-set-copy .secondary-button { min-height: 38px; padding: 8px 12px; font-size: 0.78rem; }

.decision-dialog { width: min(470px, calc(100vw - 32px)); padding: 24px; border: 0; border-radius: 18px; box-shadow: var(--shadow); }
.decision-dialog::backdrop { background: rgba(11, 17, 13, 0.54); backdrop-filter: blur(2px); }
.decision-dialog h2 { margin: 5px 34px 10px 0; font-size: 1.65rem; line-height: 1.05; }
.decision-dialog > p:not(.eyebrow) { color: var(--muted); line-height: 1.5; }
.decision-close { position: absolute; top: 15px; right: 15px; }
.decision-actions { display: grid; gap: 9px; margin-top: 22px; }
.decision-actions .secondary-button { width: 100%; min-height: 48px; }

.basket-dialog { padding: 22px 18px 36px; }
.basket-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.basket-brand-logo { display: block; width: 112px; height: auto; margin-bottom: 13px; }
.basket-heading .eyebrow { margin-bottom: 4px; }
.basket-heading h2 { margin-bottom: 0; font-size: 2.1rem; font-weight: 850; letter-spacing: -0.04em; }
.basket-empty { padding: 54px 18px; text-align: center; }
.basket-empty h3 { margin-bottom: 8px; }
.basket-empty p { max-width: 340px; margin: 0 auto 20px; color: var(--muted); line-height: 1.5; }
.basket-lines { border-top: 1px solid var(--line); }

.basket-line {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.basket-line-image { display: grid; place-items: center; width: 82px; height: 102px; border-radius: 10px; }
.basket-line-image .placeholder-label { padding: 5px 6px; font-size: 0.54rem; }
.basket-line-content { min-width: 0; }
.basket-line-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.basket-line-top h3 { margin-bottom: 4px; font-size: 1rem; }
.basket-line-meta, .basket-line-code, .basket-line-set-note { margin-bottom: 3px; color: var(--muted); font-size: 0.77rem; line-height: 1.3; }
.basket-line-set-note { color: var(--accent-dark); font-weight: 750; }
.remove-line { flex: 0 0 auto; color: var(--danger); font-size: 0.78rem; }
.basket-line-bottom { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-top: 11px; }
.basket-stepper { grid-template-columns: 32px 32px 32px; }
.basket-stepper button { height: 32px; font-size: 1rem; }
.basket-line-price { display: grid; justify-items: end; gap: 2px; font-size: 0.78rem; }
.basket-line-price span { color: var(--muted); }
.basket-line-price strong { font-size: 0.9rem; }
.basket-total { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; font-size: 1.05rem; }
.basket-total strong { font-size: 1.25rem; }
.checkout-form { display: grid; gap: 16px; padding-top: 22px; border-top: 1px solid var(--line); }
.checkout-form h3 { margin-bottom: 0; font-size: 1.25rem; }
.checkout-form label { display: grid; gap: 7px; font-size: 0.9rem; font-weight: 800; }
.checkout-form label em { color: var(--muted); font-size: 0.75rem; font-style: normal; font-weight: 650; }
.checkout-form .invalid { border-color: var(--danger); box-shadow: 0 0 0 2px rgba(162,56,44,.12); }
.field-error { min-height: 0; color: var(--danger); font-size: 0.75rem; font-weight: 700; }
.checkout-button { margin-top: 3px; background: var(--ink); }
.handoff-note { margin: -7px 8px 0; color: var(--muted); font-size: 0.78rem; line-height: 1.4; text-align: center; }
.payment-transfer-panel { display: grid; gap: 16px; margin-top: 22px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #faf9f6; }
.payment-transfer-panel[hidden], .payment-transfer-details > div[hidden] { display: none; }
.payment-transfer-panel h3, .payment-transfer-panel p { margin: 0; }
.payment-transfer-panel > p:not(.eyebrow, .payment-test-warning, .handoff-note) { color: var(--muted); font-size: 0.88rem; line-height: 1.5; }
.payment-test-warning { padding: 10px 12px; border-radius: 9px; background: #fff0d8; color: #6d4300; font-size: 0.78rem; font-weight: 850; text-align: center; }
.payment-transfer-details { display: grid; margin: 0; border-top: 1px solid var(--line); }
.payment-transfer-details > div { display: grid; gap: 5px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.payment-transfer-details dt { color: var(--muted); font-size: 0.72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.payment-transfer-details dd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; overflow-wrap: anywhere; }
.copy-value { min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1rem; font-weight: 850; user-select: all; }
.payment-customer-name { font-size: 1rem; font-weight: 850; }
.compact-button { flex: 0 0 auto; min-height: 36px; padding: 7px 11px; font-size: 0.72rem; }
.payment-transfer-panel label { display: grid; gap: 7px; font-size: 0.9rem; font-weight: 800; }
.last-order-handoff { max-width: 520px; margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--muted); font-size: 0.8rem; }
.last-order-handoff > strong { display: block; margin-bottom: 5px; color: var(--ink); font-size: 1rem; }
.last-order-handoff p { margin-bottom: 5px; }
.last-order-handoff small { color: var(--muted); }
.last-order-actions { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; }
.last-order-handoff textarea { width: 100%; margin-top: 12px; }
.recent-orders { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--muted); }
.recent-order { margin-top: 16px; padding: 14px; border: 1px solid var(--muted); border-radius: 10px; }
.recent-order h4 { overflow-wrap: anywhere; }
.recent-order p { margin: 5px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.recent-order-meta { color: var(--muted); font-size: 0.75rem; line-height: 1.4; }
.recent-order details { margin-top: 10px; }
.recent-order-item { margin: 14px 0; }

.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 24px;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 12px 16px;
  transform: translateX(-50%);
  border-radius: 10px;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
  font-size: 0.88rem;
  font-weight: 750;
}

@media (min-width: 700px) {
  .site-header, .catalogue-intro, .catalogue-tools, .catalogue-section, .department-landing { padding-left: max(24px, calc((100vw - 1180px) / 2)); padding-right: max(24px, calc((100vw - 1180px) / 2)); }
  .catalogue-intro { padding-top: 52px; padding-bottom: 34px; }
  .catalogue-tools { grid-template-columns: minmax(240px, 1.2fr) minmax(320px, 2fr) minmax(190px, .8fr); align-items: end; gap: 20px; }
  .catalogue-tools.landing-mode { display: block; }
  .department-tabs { align-self: center; justify-content: center; }
  .audience-tabs { grid-column: 1 / -1; justify-content: center; }
  .department-landing-heading { margin-bottom: 22px; }
  .department-hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .department-hero { grid-column: auto; }
  .department-hero-label { right: 22px; bottom: 20px; left: 22px; }
  .department-hero-label strong { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .sheet-dialog { max-height: min(90dvh, 820px); margin: auto; border-radius: 22px; }
  .product-dialog { width: min(900px, calc(100vw - 48px)); }
  .product-detail-layout { grid-template-columns: 1.05fr .95fr; min-height: 610px; }
  .detail-gallery { display: flex; min-height: 610px; flex-direction: column; }
  .detail-image { flex: 1; min-height: 530px; aspect-ratio: auto; margin: -50px 0 0; }
  .product-detail-content { align-self: center; padding: 44px 34px; }
  .basket-dialog { width: min(680px, calc(100vw - 48px)); padding: 26px 28px 42px; }
}

@media (min-width: 1040px) {
  .department-hero-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .department-hero-label { right: 18px; bottom: 17px; left: 18px; }
  .department-hero-label strong { font-size: clamp(1.65rem, 2.4vw, 2.2rem); }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
}

@media (prefers-reduced-motion: no-preference) {
  .product-card, .department-hero, .department-tab, .audience-tab, .choice-button, .variant-option { transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
  .product-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(23, 35, 28, 0.13); }
  .department-hero:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(23, 35, 28, 0.18); }
}
