:root {
  --ink: #171717;
  --muted: #686f78;
  --line: #dfe4ea;
  --paper: #f7f7f4;
  --surface: #ffffff;
  --teal: #0f766e;
  --leaf: #2f7d32;
  --clay: #b84a2f;
  --amber: #f4a72c;
  --blue: #2563eb;
  --shadow: 0 18px 42px rgba(15, 23, 42, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

.tiles-app {
  min-height: 100vh;
}

button,
input,
select {
  font: inherit;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 42px);
  border-bottom: 1px solid rgba(23, 23, 23, 0.08);
  background: rgba(247, 247, 244, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  line-height: 1;
}

.brand-logo {
  display: block;
  width: 118px;
  height: auto;
}

.brand-subtitle {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-panel small,
.hint {
  color: var(--muted);
}

.top-actions {
  display: none;
  align-items: center;
  gap: 8px;
}

.top-actions a,
.text-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  padding: 9px 12px;
  font-size: 0.88rem;
  cursor: pointer;
}

main {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 18px clamp(14px, 4vw, 34px) 70px;
}

.hero {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 5vw, 56px) 0 22px;
}

.hero-copy h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2rem, 8vw, 4.8rem);
  line-height: 0.98;
}

.hero-copy p:last-child {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.65;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--clay);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-panel {
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--leaf);
}

.section-block {
  margin-top: 18px;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.3rem, 4vw, 2rem);
}

.size-carousel,
.available-sizes {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 220px);
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 4px 2px 12px;
  scroll-snap-type: inline mandatory;
}

.size-card,
.available-size-card {
  min-height: 142px;
  display: grid;
  gap: 10px;
  align-content: space-between;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfa;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
}

.size-card[aria-pressed="true"],
.available-size-card[aria-pressed="true"],
.space-card[aria-pressed="true"] {
  border-color: var(--teal);
  outline: 3px solid rgba(15, 118, 110, 0.14);
}

.size-display {
  font-size: 2rem;
  font-weight: 850;
  line-height: 0.95;
}

.size-card small,
.available-size-card small,
.space-card small {
  color: var(--muted);
  line-height: 1.45;
}

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

.space-card {
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfa;
  text-align: left;
  cursor: pointer;
}

.space-card strong {
  display: block;
  margin-bottom: 8px;
}

.selected-space-card {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.07), transparent 44%),
    var(--surface);
}

.reel-feed {
  display: grid;
  gap: 18px;
}

.reel-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfa;
  overflow: hidden;
}

.reel-media {
  position: relative;
  min-height: 410px;
  display: grid;
  align-items: end;
  padding: 18px;
  color: #fff;
  background: linear-gradient(145deg, #1f2937, #0f766e);
}

.reel-video-wrap {
  padding: 0;
  background: #0f172a;
  overflow: hidden;
}

.reel-video {
  width: 100%;
  height: 100%;
  min-height: 410px;
  object-fit: cover;
}

.reel-video-label {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.tone-aqua { background: linear-gradient(145deg, #155e75, #2dd4bf); }
.tone-silver { background: linear-gradient(145deg, #334155, #cbd5e1); }
.tone-gold { background: linear-gradient(145deg, #713f12, #f4a72c); }
.tone-charcoal { background: linear-gradient(145deg, #0f172a, #475569); }
.tone-sand { background: linear-gradient(145deg, #92400e, #f8d49a); }
.tone-mint { background: linear-gradient(145deg, #14532d, #86efac); }
.tone-oak { background: linear-gradient(145deg, #78350f, #d6a45d); }
.tone-green { background: linear-gradient(145deg, #14532d, #4ade80); }

.reel-media-label {
  max-width: 330px;
}

.reel-media-label span {
  display: inline-block;
  margin-bottom: 10px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.75rem;
  font-weight: 750;
  text-transform: uppercase;
}

.reel-media-label strong {
  display: block;
  font-size: 2rem;
  line-height: 1.05;
}

.reel-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.reel-body h3 {
  margin: 0;
  font-size: 1.35rem;
}

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

.sku-list,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sku-pill,
.tag-pill {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.78rem;
  font-weight: 750;
}

.tag-pill {
  color: var(--muted);
  font-weight: 650;
}

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

.primary-button,
.secondary-button,
.danger-button {
  border: 0;
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 800;
  cursor: pointer;
}

.primary-button {
  color: #fff;
  background: var(--teal);
}

.secondary-button {
  color: var(--ink);
  background: #eef3f2;
}

.secondary-button.active {
  color: #fff;
  background: var(--clay);
}

.danger-button {
  color: #fff;
  background: #9f1239;
}

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

.cart-item {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfa;
}

.cart-item-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.cart-item h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.cart-item code {
  color: var(--muted);
  font-size: 0.78rem;
}

.cart-controls {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 10px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.field input,
.field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface);
}

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

.metric {
  padding: 10px;
  border-radius: 8px;
  background: #eef3f2;
}

.metric strong {
  display: block;
  font-size: 1.2rem;
}

.metric span {
  color: var(--muted);
  font-size: 0.75rem;
}

.cart-totals {
  margin-top: 14px;
  padding: 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}

.cart-totals:empty {
  display: none;
}

.empty-state {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fbfbfa;
}

@media (min-width: 760px) {
  .top-actions {
    display: flex;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: end;
  }

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

  .reel-card {
    grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1fr);
  }

  .reel-media {
    min-height: 520px;
  }

  .cart-item {
    grid-template-columns: minmax(260px, 1fr) minmax(320px, 1fr);
    align-items: start;
  }
}

@media (min-width: 1040px) {
  main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
  }

  .hero,
  .section-block:not(.cart-section) {
    grid-column: 1;
  }

  .cart-section {
    position: sticky;
    top: 82px;
    grid-column: 2;
    grid-row: 2 / span 5;
    max-height: calc(100vh - 104px);
    overflow: auto;
  }

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

  .tiles-app-embedded main {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
}

/* Route-level reel fixes kept last so they take precedence over legacy rules. */
.top-actions > :not(.cart-link):not(.wishlist-link) {
  display: none;
}

.top-actions > .wishlist-link {
  display: inline-flex;
}

/* Gribon Visualiser Studio */
.visualizer-app {
  --viz-dark: #11201d;
  --viz-teal: #0e7169;
  --viz-mint: #dcece7;
  --viz-warm: #f2eee7;
  background:
    radial-gradient(circle at 85% 4%, rgba(15, 118, 110, 0.09), transparent 28rem),
    var(--paper);
}

.visualizer-app .topbar {
  background: rgba(247, 247, 244, 0.96);
}

.visualizer-app .active-nav {
  display: inline-flex;
  border-color: rgba(15, 118, 110, 0.3);
  color: var(--teal);
  background: #edf7f4;
}

.visualizer-app .top-actions > .active-nav {
  display: inline-flex;
}

.visualizer-main {
  display: block;
  width: min(1500px, 100%);
  padding-top: clamp(28px, 5vw, 62px);
}

.visualizer-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.visualizer-intro > div:first-child {
  max-width: 820px;
}

.visualizer-intro h1 {
  max-width: 760px;
  margin: 7px 0 12px;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.visualizer-intro > div:first-child > p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 2vw, 1.13rem);
  line-height: 1.6;
}

.proof-badge {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  min-width: 236px;
  padding: 13px 16px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}

.proof-badge > span:last-child {
  display: grid;
  gap: 2px;
}

.proof-badge strong {
  font-size: 0.82rem;
}

.proof-badge small {
  color: var(--muted);
  font-size: 0.73rem;
}

.proof-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #19a974;
  box-shadow: 0 0 0 5px rgba(25, 169, 116, 0.13);
}

.visualizer-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
}

.visualizer-steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 10px 16px;
  color: var(--muted);
  border-right: 1px solid var(--line);
  font-size: 0.82rem;
}

.visualizer-steps li:last-child {
  border-right: 0;
}

.visualizer-steps li::after {
  position: absolute;
  right: -5px;
  z-index: 2;
  width: 9px;
  height: 9px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: #fff;
  content: "";
  transform: rotate(45deg);
}

.visualizer-steps li:last-child::after {
  display: none;
}

.visualizer-steps li.is-current {
  color: var(--viz-dark);
  background: #edf7f4;
}

.visualizer-steps li.is-current::after {
  background: #edf7f4;
}

.visualizer-steps span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  font-size: 0.72rem;
  font-weight: 850;
}

.visualizer-workspace {
  display: grid;
  grid-template-columns: minmax(310px, 370px) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.visualizer-controls {
  display: grid;
  gap: 14px;
}

.control-card,
.visualizer-stage,
.export-panel,
.proof-boundary {
  border: 1px solid rgba(31, 41, 38, 0.11);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.06);
}

.control-card {
  padding: 18px;
  border-radius: 16px;
}

.control-card-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.control-card-heading .eyebrow {
  margin: 0 0 2px;
}

.control-card-heading h2 {
  margin: 0;
  font-size: 1.06rem;
}

.control-number {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--viz-dark);
  font-size: 0.82rem;
  font-weight: 850;
}

.upload-dropzone {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 80px;
  padding: 13px;
  border: 1px dashed rgba(15, 118, 110, 0.42);
  border-radius: 13px;
  background: #f2faf7;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.upload-dropzone:hover {
  border-color: var(--teal);
  background: #eaf7f3;
  transform: translateY(-1px);
}

.upload-dropzone > span:nth-child(3) {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.upload-dropzone small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: var(--teal);
  font-size: 1.35rem;
  font-weight: 300;
}

.upload-action {
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 850;
}

.input-status {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.control-grid {
  display: grid;
  gap: 10px;
  margin-top: 11px;
}

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

.visualizer-controls .field {
  min-width: 0;
}

.visualizer-controls .field input,
.visualizer-controls .field select {
  min-height: 43px;
  border-color: #d6ddd9;
  background: #fff;
}

.visualizer-controls .field input:focus,
.visualizer-controls .field select:focus {
  outline: 3px solid rgba(15, 118, 110, 0.13);
  border-color: var(--teal);
}

.range-field {
  align-content: end;
}

.range-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.range-label output {
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 850;
}

.range-field input[type="range"] {
  min-height: 26px;
  padding: 0;
  accent-color: var(--teal);
}

.color-input-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 43px;
  padding: 5px 9px;
  border: 1px solid #d6ddd9;
  border-radius: 8px;
  background: #fff;
}

.visualizer-controls .color-input-wrap input[type="color"] {
  width: 30px;
  min-height: 30px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.color-input-wrap span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 11px;
  background: #edf0ed;
}

.segmented-control button,
.view-switcher button,
.toolbar-button {
  border: 0;
  cursor: pointer;
}

.segmented-control button {
  min-height: 38px;
  padding: 8px;
  border-radius: 8px;
  color: #66706d;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 800;
}

.segmented-control button.active {
  color: #fff;
  background: var(--viz-dark);
  box-shadow: 0 4px 12px rgba(17, 32, 29, 0.18);
}

.secondary-upload {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  margin-top: 11px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafbf9;
  cursor: pointer;
  font-size: 0.75rem;
}

.secondary-upload strong {
  color: var(--teal);
  font-size: 0.72rem;
}

.secondary-upload.compact {
  margin-top: 0;
}

.fixture-picker {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e5e9e6;
}

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

.mini-heading strong {
  font-size: 0.82rem;
}

.mini-heading small {
  color: var(--muted);
  font-size: 0.66rem;
}

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

.fixture-grid button {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 1px 8px;
  min-width: 0;
  padding: 9px;
  border: 1px solid #dfe5e1;
  border-radius: 10px;
  color: var(--ink);
  background: #fbfcfa;
  text-align: left;
  cursor: pointer;
}

.fixture-grid button.active {
  border-color: rgba(15, 118, 110, 0.55);
  background: #eaf7f3;
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.18);
}

.fixture-grid button strong {
  align-self: end;
  overflow: hidden;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fixture-grid button small {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.62rem;
}

.fixture-symbol {
  display: grid;
  grid-row: 1 / 3;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  color: var(--teal);
  background: #e4eeeb;
  font-size: 1.1rem;
}

.product-intake {
  margin-top: 14px;
  border: 1px solid #e1e6e3;
  border-radius: 11px;
  background: #fbfcfb;
}

.product-intake summary {
  padding: 12px;
  color: var(--viz-dark);
  font-size: 0.78rem;
  font-weight: 820;
  cursor: pointer;
}

.product-intake-body {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

.product-intake-body .input-status {
  margin: 0;
}

.visualizer-stage {
  position: sticky;
  top: 82px;
  min-width: 0;
  padding: 14px;
  border-radius: 18px;
}

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

.view-switcher {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: #edf0ed;
}

.view-switcher button {
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-size: 0.75rem;
  font-weight: 820;
}

.view-switcher button.active {
  color: #fff;
  background: var(--viz-dark);
}

.toolbar-button {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid #dce2de;
  border-radius: 9px;
  color: var(--muted);
  background: #fff;
  font-size: 0.72rem;
  font-weight: 780;
}

.canvas-panel {
  position: relative;
  overflow: hidden;
  border-radius: 13px;
  background: #d8dcd9;
  box-shadow: inset 0 0 0 1px rgba(17, 32, 29, 0.1);
}

.canvas-panel[hidden] {
  display: none;
}

.canvas-panel canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  touch-action: none;
}

#photoCanvas {
  cursor: crosshair;
}

#roomCanvas {
  cursor: grab;
}

#roomCanvas:active {
  cursor: grabbing;
}

.canvas-tip {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: grid;
  gap: 2px;
  max-width: min(310px, calc(100% - 28px));
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  color: #fff;
  background: rgba(13, 25, 22, 0.74);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.canvas-tip strong {
  font-size: 0.72rem;
}

.canvas-tip span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.64rem;
}

.scene-readout {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid #e0e5e2;
  border-radius: 11px;
  background: #e0e5e2;
}

.scene-readout > span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px 12px;
  background: #fafbf9;
}

.scene-readout small {
  color: var(--muted);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.scene-readout strong {
  overflow: hidden;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.export-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  padding: 16px;
  border-radius: 13px;
  box-shadow: none;
}

.export-panel .eyebrow {
  margin: 0 0 4px;
}

.export-panel h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.export-panel > div:first-child > p:last-child {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.export-actions {
  display: flex;
  gap: 8px;
}

.export-panel .primary-button,
.export-panel .secondary-button,
.product-intake .secondary-button {
  min-height: 41px;
  border-radius: 9px;
  white-space: nowrap;
}

.export-panel button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.video-progress {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: #e4e9e6;
}

.video-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), #38a58f);
  transition: width 80ms linear;
}

.export-status {
  grid-column: 1 / -1;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
}

.export-status.error {
  color: #9f1239;
}

.proof-boundary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 13px;
  background: #dfe5e2;
  box-shadow: none;
}

.proof-boundary > div {
  display: grid;
  gap: 5px;
  padding: 14px;
  background: #f8faf8;
}

.proof-boundary > div:last-child {
  background: #f5f1ea;
}

.proof-boundary strong {
  font-size: 0.76rem;
}

.proof-boundary span {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
}

.visualizer-app button:focus-visible,
.visualizer-app label:has(input:focus-visible),
.visualizer-app summary:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.32);
  outline-offset: 2px;
}

@media (max-width: 1100px) {
  .visualizer-workspace {
    grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
  }

  .visualizer-stage {
    position: static;
  }

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

  .export-panel {
    grid-template-columns: 1fr;
  }

  .export-actions {
    justify-content: stretch;
  }

  .export-actions button {
    flex: 1;
  }
}

@media (max-width: 820px) {
  .visualizer-intro {
    align-items: stretch;
    flex-direction: column;
  }

  .proof-badge {
    min-width: 0;
    width: fit-content;
  }

  .visualizer-workspace {
    grid-template-columns: 1fr;
  }

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

  .control-card:last-child {
    grid-column: 1 / -1;
  }

  .visualizer-stage {
    grid-row: 1;
  }

  .visualizer-controls {
    grid-row: 2;
  }
}

@media (max-width: 620px) {
  .visualizer-main {
    padding-inline: 10px;
    padding-top: 24px;
  }

  .visualizer-app .top-actions {
    display: flex;
  }

  .visualizer-app .top-actions > :not(.cart-link):not(.wishlist-link) {
    display: none;
  }

  .visualizer-app .top-actions > .active-nav {
    display: inline-flex;
  }

  .visualizer-intro {
    margin-bottom: 20px;
  }

  .visualizer-steps li {
    justify-content: center;
    min-height: 44px;
    padding: 8px;
  }

  .visualizer-steps strong {
    display: none;
  }

  .visualizer-steps span {
    width: 24px;
    height: 24px;
  }

  .visualizer-controls {
    grid-template-columns: 1fr;
  }

  .control-card:last-child {
    grid-column: auto;
  }

  .visualizer-stage {
    padding: 8px;
    border-radius: 14px;
  }

  .stage-toolbar {
    margin: 2px 2px 9px;
  }

  .view-switcher {
    flex: 1;
  }

  .view-switcher button {
    flex: 1;
    padding-inline: 8px;
  }

  .canvas-tip {
    left: 8px;
    bottom: 8px;
    padding: 7px 9px;
  }

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

  .scene-readout > span {
    padding: 9px;
  }

  .export-panel {
    padding: 13px;
  }

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

  .proof-boundary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 410px) {
  .control-grid.two-columns,
  .fixture-grid {
    grid-template-columns: 1fr;
  }

  .fixture-grid button small {
    grid-column: 2;
  }

  .segmented-control button {
    padding-inline: 3px;
    font-size: 0.68rem;
  }

  .toolbar-button {
    display: none;
  }
}

.reel-content {
  position: relative;
  gap: 14px;
  padding: 18px;
}

.reel-heading {
  padding-right: 48px;
}

.reel-heading .eyebrow {
  margin-bottom: 7px;
}

.reel-content > .wishlist-button {
  position: absolute;
  top: 18px;
  right: 18px;
  grid-row: auto;
}

.reel-content h2 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.16;
}

/* Keep both saved items and cart visible in the compact mobile header. */
.top-actions > :not(.cart-link):not(.wishlist-link) {
  display: none;
}

.top-actions > .wishlist-link {
  display: inline-flex;
}

@media (min-width: 620px) {
  .top-actions > :not(.cart-link):not(.wishlist-link) {
    display: inline-flex;
  }
}

/* Final route-level overrides kept after legacy prototype styles. */
.top-actions > :not(.cart-link):not(.wishlist-link) {
  display: none;
}

.top-actions > .wishlist-link {
  display: inline-flex;
}

.reel-content {
  position: relative;
  gap: 14px;
  padding: 18px;
}

.reel-heading {
  padding-right: 48px;
}

.reel-heading .eyebrow {
  margin-bottom: 7px;
}

.reel-content > .wishlist-button {
  position: absolute;
  top: 18px;
  right: 18px;
  grid-row: auto;
}

.reel-content h2 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.16;
}

@media (min-width: 620px) {
  .top-actions > :not(.cart-link):not(.wishlist-link) {
    display: inline-flex;
  }
}

/* Premium homepage and saved-item flows. */
.top-actions > :not(.cart-link):not(.wishlist-link) {
  display: none;
}

.top-actions > .wishlist-link {
  display: inline-flex;
}

.wishlist-link {
  align-items: center;
  justify-content: center;
  min-width: 82px;
  text-align: center;
}

.wishlist-link span {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  margin-left: 4px;
  border-radius: 50%;
  color: #fff;
  background: var(--clay);
  font-size: 0.72rem;
  font-weight: 800;
}

.home-hero {
  position: relative;
  display: flex;
  min-height: 560px;
  align-items: end;
  overflow: hidden;
  padding: clamp(22px, 5vw, 48px);
  border-radius: 8px;
  isolation: isolate;
}

.home-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: rgba(18, 25, 23, 0.48);
}

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

.home-hero-copy {
  max-width: 590px;
  color: #fff;
}

.home-hero-copy .eyebrow {
  color: #f5d39f;
}

.home-hero-copy h1 {
  max-width: 9ch;
  margin: 0;
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.92;
}

.home-hero-copy > p:last-of-type {
  max-width: 500px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.17rem);
  line-height: 1.55;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.home-hero-actions .primary-button,
.hero-secondary-action {
  display: inline-grid;
  min-width: 136px;
  place-items: center;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 800;
}

.hero-secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: #fff;
  background: rgba(0, 0, 0, 0.16);
}

.discovery-section {
  margin-top: 40px;
  padding-top: 28px;
}

.size-card {
  min-height: 168px;
  background: #fff;
}

.space-card {
  min-height: 135px;
  padding: 18px;
  background: #f1f4f0;
}

.space-card:nth-child(3n + 2) {
  background: #f4eee7;
}

.space-card:nth-child(3n) {
  background: #eef1f5;
}

/* The title and room label have separate layout space, preventing overlap. */
.reel-content {
  position: relative;
  gap: 14px;
  padding: 18px;
}

.reel-heading {
  padding-right: 48px;
}

.reel-heading .eyebrow {
  margin-bottom: 7px;
}

.reel-content > .wishlist-button {
  position: absolute;
  top: 18px;
  right: 18px;
  grid-row: auto;
}

.reel-content h2 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.16;
}

.sku-link {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.sku-link:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.product-detail-main,
.wishlist-main {
  width: min(1040px, 100%);
}

.product-detail-grid {
  display: grid;
  gap: 24px;
}

.product-detail-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 8px;
  background: #e8e7e2;
}

.product-detail-media img,
.wishlist-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-media::after,
.wishlist-product-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: var(--tile-tint, transparent);
  mix-blend-mode: color;
  opacity: 0.52;
  pointer-events: none;
}

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

.detail-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.detail-topline span + span::before {
  margin-right: 7px;
  color: var(--line);
  content: "/";
}

.product-detail-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.65rem);
  line-height: 1;
}

.product-detail-copy code {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.detail-description {
  max-width: 530px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.detail-price {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 850;
}

.detail-price span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.detail-facts div {
  padding: 13px;
  background: var(--surface);
}

.detail-facts dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.detail-facts dd {
  margin: 5px 0 0;
  font-weight: 800;
}

.detail-actions,
.wishlist-product-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-wishlist-button.active {
  color: #fff;
  border-color: var(--clay);
  background: var(--clay);
}

.detail-reel-link {
  justify-self: start;
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 800;
}

.wishlist-group + .wishlist-group {
  margin-top: 42px;
}

.wishlist-group-heading {
  margin-bottom: 15px;
}

.wishlist-group-heading h2 {
  margin: 0;
  font-size: 1.4rem;
}

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

.wishlist-product-card {
  position: relative;
  display: grid;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.wishlist-product-card > .wishlist-button {
  top: 20px;
  right: 20px;
}

.wishlist-product-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
}

.wishlist-product-card h3 {
  min-height: 2.5em;
  margin: 0 0 4px;
  font-size: 1rem;
  line-height: 1.25;
}

.wishlist-product-card code,
.wishlist-product-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 0.73rem;
  overflow-wrap: anywhere;
}

.saved-reel-list {
  display: grid;
  gap: 12px;
}

.saved-reel-card {
  position: relative;
  display: flex;
  min-height: 160px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: end;
  gap: 14px;
  padding: 20px;
  border-radius: 8px;
  color: #fff;
}

.saved-reel-card > .wishlist-button {
  top: 14px;
  right: 14px;
}

.saved-reel-card p,
.saved-reel-card h3 {
  margin: 0;
}

.saved-reel-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.77rem;
  font-weight: 750;
  text-transform: uppercase;
}

.saved-reel-card h3 {
  margin-top: 5px;
  font-size: 1.45rem;
}

.empty-state-action {
  justify-self: start;
  margin-top: 4px;
}

@media (min-width: 620px) {
  .top-actions > :not(.cart-link):not(.wishlist-link) {
    display: inline-flex;
  }

  .product-detail-grid {
    grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1fr);
    align-items: start;
  }

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

  .saved-reel-card {
    min-height: 180px;
  }
}

@media (max-width: 460px) {
  .topbar {
    gap: 8px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .brand-logo {
    width: 86px;
  }

  .brand-subtitle {
    display: none;
  }

  .top-actions {
    gap: 5px;
  }

  .top-actions a {
    padding: 8px;
    font-size: 0.78rem;
  }

  .wishlist-link {
    min-width: 74px;
  }

  .cart-link {
    min-width: 62px;
  }

  .home-hero {
    min-height: 535px;
    padding: 20px;
  }

  .home-hero-image {
    object-position: 71% center;
  }

  .home-hero-copy h1 {
    font-size: 3.25rem;
  }

  .home-hero-actions {
    align-items: stretch;
  }

  .home-hero-actions .primary-button,
  .hero-secondary-action {
    flex: 1 1 140px;
  }

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

/* Focused catalogue, reel and cart journeys. */
.home-main,
.page-main {
  display: block;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 18px clamp(14px, 4vw, 34px) 70px;
}

.top-actions {
  display: flex;
}

.top-actions > :not(.cart-link) {
  display: none;
}

.top-actions a,
.text-button {
  border-radius: 6px;
}

.cart-link {
  min-width: 76px;
  text-align: center;
}

.cart-link span {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  margin-left: 4px;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
}

.hero {
  grid-template-columns: 1fr;
  align-items: end;
  padding: clamp(26px, 6vw, 66px) 0 28px;
}

.hero-copy h1 {
  max-width: 790px;
  font-size: clamp(2.15rem, 8vw, 5rem);
  line-height: 1;
}

.hero-panel {
  max-width: 310px;
  box-shadow: none;
}

.discovery-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.size-card,
.space-card {
  color: inherit;
}

.size-card:hover,
.space-card:hover {
  border-color: var(--teal);
  box-shadow: 0 10px 20px rgba(15, 118, 110, 0.1);
  transform: translateY(-2px);
}

.card-link {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
}

.space-card {
  display: grid;
  gap: 8px;
  align-content: start;
}

.back-link {
  display: inline-flex;
  margin: 6px 0 26px;
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 750;
}

.back-link::before {
  content: "<";
  margin-right: 7px;
}

.page-heading {
  max-width: 730px;
  margin-bottom: 28px;
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.05;
}

.page-heading > p:last-child {
  max-width: 620px;
  margin: 13px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.compact-heading {
  margin-bottom: 18px;
}

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

.product-card {
  position: relative;
  display: grid;
  align-content: start;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.product-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #e9e8e4;
}

.product-image img,
.cart-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.product-card:hover .product-image img {
  transform: scale(1.04);
}

.product-image::after,
.cart-swatch::after,
.viewer-scene::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: var(--tile-tint, transparent);
  mix-blend-mode: color;
  opacity: 0.52;
}

.product-tone-calacatta { --tile-tint: #d7bea2; }
.product-tone-lunar { --tile-tint: #d2d8de; }
.product-tone-storm { --tile-tint: #7b8794; }
.product-tone-alba { --tile-tint: #e2c5a5; }
.product-tone-silver { --tile-tint: #9eacba; }
.product-tone-cloud { --tile-tint: #e8eceb; }
.product-tone-travertine { --tile-tint: #c99a66; }
.product-tone-nero { --tile-tint: #34424b; }
.product-tone-ash { --tile-tint: #8f9a9d; }
.product-tone-terra { --tile-tint: #b76b47; }
.product-tone-cobble { --tile-tint: #6e7770; }
.product-tone-cement { --tile-tint: #8b8b85; }
.product-tone-sage { --tile-tint: #82a692; }
.product-tone-rustic { --tile-tint: #8b6245; }
.product-tone-onyx { --tile-tint: #c6b29e; }
.product-tone-pearl { --tile-tint: #e8e1d8; }
.product-tone-sea { --tile-tint: #64a7b0; }
.product-tone-ink { --tile-tint: #315269; }
.product-tone-oak { --tile-tint: #a87548; }
.product-tone-walnut { --tile-tint: #67442d; }
.product-tone-ashwood { --tile-tint: #9a8c7a; }
.product-tone-teak { --tile-tint: #a86631; }
.product-tone-basalt { --tile-tint: #414d52; }
.product-tone-titanium { --tile-tint: #64717d; }

.wishlist-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.wishlist-button.active {
  border-color: var(--clay);
  color: var(--clay);
}

.product-card-body {
  display: grid;
  gap: 9px;
  padding: 13px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.product-meta span::after {
  margin-left: 6px;
  color: var(--line);
  content: "/";
}

.product-meta span:last-child::after {
  display: none;
}

.product-card h2 {
  min-height: 2.5em;
  margin: 0;
  font-size: clamp(0.96rem, 3.8vw, 1.12rem);
  line-height: 1.25;
}

.product-card code,
.cart-item code {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.68rem;
}

.product-card p {
  min-height: 2.8em;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.product-card .price {
  min-height: 0;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 850;
}

.price span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.product-actions-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 7px;
}

.primary-button,
.secondary-button,
.text-action {
  min-height: 42px;
  border-radius: 6px;
  font-size: 0.8rem;
  text-align: center;
}

.secondary-button,
.text-action {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #f4f6f4;
}

.primary-button.added {
  background: var(--leaf);
}

.product-add-button {
  width: 100%;
}

.viewer-dialog {
  width: min(720px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
}

.viewer-dialog::backdrop {
  background: rgba(15, 23, 42, 0.56);
}

.viewer-dialog form {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
}

.dialog-close,
.remove-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
}

.viewer-layout {
  display: grid;
}

.viewer-scene {
  position: relative;
  display: grid;
  min-height: 310px;
  place-items: center;
  overflow: hidden;
  background: #d6d8d3;
  perspective: 720px;
}

.viewer-tile {
  width: min(74%, 300px);
  aspect-ratio: 4 / 5;
  border: 5px solid rgba(255, 255, 255, 0.76);
  box-shadow: 26px 29px 0 rgba(23, 23, 23, 0.14);
  background-position: center;
  background-size: cover;
  transform: rotateX(11deg) rotateY(-26deg) rotateZ(2deg);
}

.viewer-copy {
  padding: 22px;
}

.viewer-copy h2 {
  margin: 0;
  font-size: 1.65rem;
}

.viewer-copy p:last-of-type {
  color: var(--muted);
}

.reels-main {
  width: min(820px, 100%);
}

.reel-scroll {
  display: grid;
  gap: 16px;
  scroll-snap-type: y proximity;
}

.reel-page-card {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  scroll-snap-align: start;
}

.reel-visual {
  min-height: 420px;
  background: #1f2937;
}

.reel-video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.reel-poster {
  display: flex;
  height: 100%;
  min-height: 420px;
  flex-direction: column;
  justify-content: end;
  padding: 24px;
  color: #fff;
}

.reel-poster span {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reel-poster strong {
  max-width: 360px;
  font-size: clamp(2rem, 7vw, 3.5rem);
  line-height: 0.98;
}

.tone-aqua { background: #227b82; }
.tone-silver { background: #63717f; }
.tone-gold { background: #aa7631; }
.tone-charcoal { background: #29333b; }
.tone-sand { background: #a67853; }
.tone-mint { background: #538678; }
.tone-oak { background: #906039; }
.tone-green { background: #487553; }

.reel-content {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.reel-content > .wishlist-button {
  position: static;
  justify-self: end;
  grid-row: 1 / span 2;
}

.reel-content h2 {
  margin: -38px 46px 0 0;
  font-size: 1.45rem;
}

.reel-content > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.reel-products {
  display: grid;
  gap: 8px;
}

.reel-products > span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.reel-products > div,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.sku-pill,
.tag-pill {
  border-radius: 5px;
}

.sku-pill {
  cursor: pointer;
}

.reel-add-button {
  width: 100%;
}

.cart-page-main {
  width: min(980px, 100%);
}

.cart-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.cart-items {
  gap: 14px;
}

.cart-item {
  grid-template-columns: 1fr;
  padding: 0;
  overflow: hidden;
  background: var(--surface);
}

.cart-product-summary {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: #fbfbfa;
}

.cart-swatch {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 6px;
}

.cart-product-summary h2 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.cart-product-summary p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.cart-calculation {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 14px;
}

.cart-calculation .remove-button {
  position: absolute;
  top: 12px;
  right: 12px;
}

.cart-controls {
  grid-template-columns: minmax(0, 1fr) 112px;
  padding-right: 43px;
}

.field input,
.field select {
  border-radius: 6px;
}

.empty-calc {
  padding: 13px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.85rem;
}

.cart-totals {
  border-radius: 8px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  border-radius: 6px;
  color: #fff;
  background: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 620px) {
  .top-actions > :not(.cart-link) {
    display: inline-flex;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

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

  .reel-page-card {
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1fr);
    min-height: 500px;
  }

  .reel-content {
    align-content: center;
  }

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

  .cart-product-summary {
    grid-template-columns: 1fr;
    align-content: start;
  }

  .cart-swatch {
    max-width: 170px;
  }

  .viewer-layout {
    grid-template-columns: 1fr 0.88fr;
  }
}

@media (min-width: 1040px) {
  .home-main,
  .page-main {
    display: block;
  }

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

  .reel-scroll {
    max-height: calc(100vh - 250px);
    overflow-y: auto;
    padding-right: 8px;
  }
}

/* Final reel layout overrides. These must follow the legacy reel rules. */
.reel-content {
  position: relative;
  gap: 14px;
  padding: 18px;
}

.reel-heading {
  padding-right: 48px;
}

.reel-heading .eyebrow {
  margin-bottom: 7px;
}

.reel-content > .wishlist-button {
  position: absolute;
  top: 18px;
  right: 18px;
  grid-row: auto;
}

.reel-content h2 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.16;
}

/* Keep both saved items and cart visible in the compact mobile header. */
.top-actions > :not(.cart-link):not(.wishlist-link) {
  display: none;
}

.top-actions > .wishlist-link {
  display: inline-flex;
}

/* Premium image-led homepage v3. */
.home-main {
  width: min(1440px, 100%);
  padding: 18px clamp(14px, 3.4vw, 48px) 88px;
}

.home-main .home-hero {
  min-height: clamp(610px, 76vh, 780px);
  align-items: flex-end;
  padding: clamp(28px, 6vw, 76px);
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(34, 40, 35, 0.16);
}

.home-main .home-hero::before {
  background:
    linear-gradient(90deg, rgba(13, 24, 20, 0.79) 0%, rgba(13, 24, 20, 0.44) 48%, rgba(13, 24, 20, 0.09) 78%),
    linear-gradient(0deg, rgba(13, 24, 20, 0.42), transparent 58%);
}

.home-main .home-hero-image {
  object-position: 62% center;
  transition: transform 900ms cubic-bezier(.2,.7,.2,1);
}

.home-main .home-hero:hover .home-hero-image {
  transform: scale(1.018);
}

.home-main .home-hero-copy {
  max-width: 700px;
}

.home-hero-kicker {
  display: inline-flex;
  margin: 0 0 17px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  color: #f4d8aa;
  background: rgba(7, 20, 15, 0.28);
  backdrop-filter: blur(8px);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-main .home-hero-copy h1 {
  max-width: 10ch;
  font-size: clamp(3.1rem, 7.2vw, 6.5rem);
  line-height: 0.93;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.home-main .home-hero-copy > p:last-of-type {
  max-width: 610px;
  margin-top: 22px;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
}

.home-main .home-hero-actions {
  margin-top: 30px;
}

.home-main .home-hero-actions .primary-button,
.home-main .hero-secondary-action {
  min-width: 165px;
  min-height: 48px;
  border-radius: 8px;
  transition: transform 170ms ease, background 170ms ease, border-color 170ms ease;
}

.home-main .home-hero-actions a:hover {
  transform: translateY(-2px);
}

.home-hero-note {
  position: absolute;
  right: clamp(24px, 4vw, 56px);
  bottom: clamp(24px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 11px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(10, 21, 17, 0.5);
  backdrop-filter: blur(12px);
  font-size: 0.69rem;
}

.home-hero-note span {
  display: grid;
  min-width: 112px;
  gap: 3px;
  padding: 13px 15px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.home-hero-note span:first-child {
  border-left: 0;
}

.home-hero-note strong {
  color: #fff;
  font-size: 1rem;
}

.home-value-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 22px 0 0;
  overflow: hidden;
  border: 1px solid #dce3df;
  border-radius: 12px;
  background: #dce3df;
}

.home-value-strip > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 13px;
  padding: 20px clamp(17px, 2.5vw, 28px);
  background: #fff;
}

.home-value-strip span {
  grid-row: 1 / span 2;
  color: #a1783d;
  font-size: 0.68rem;
  font-weight: 850;
}

.home-value-strip strong {
  font-size: 0.87rem;
}

.home-value-strip small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.home-main .discovery-section {
  margin-top: clamp(58px, 8vw, 100px);
  padding-top: 0;
  border-top: 0;
}

.home-section-heading {
  align-items: flex-end;
  margin-bottom: 26px;
}

.home-section-heading > div {
  max-width: 760px;
}

.home-section-heading h2 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.home-section-heading > div > p:last-child {
  max-width: 650px;
  margin: 13px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.home-section-count {
  padding-bottom: 7px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.home-main .space-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.home-main .space-card {
  position: relative;
  grid-column: span 4;
  min-height: 0;
  aspect-ratio: 4 / 3;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: #26352f;
  box-shadow: 0 15px 34px rgba(34, 40, 35, 0.11);
  isolation: isolate;
}

.home-main .space-card:nth-child(1),
.home-main .space-card:nth-child(2),
.home-main .space-card:nth-child(6),
.home-main .space-card:nth-child(7) {
  grid-column: span 6;
  aspect-ratio: 16 / 9;
}

.home-main .space-card img,
.home-main .space-card-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-main .space-card img {
  z-index: -2;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(.2,.7,.2,1), filter 350ms ease;
}

.home-main .space-card-shade {
  z-index: -1;
  background: linear-gradient(0deg, rgba(10, 18, 15, 0.8) 0%, rgba(10, 18, 15, 0.18) 63%, rgba(10, 18, 15, 0.3) 100%);
}

.home-main .space-card:hover {
  border-color: transparent;
  box-shadow: 0 24px 48px rgba(25, 35, 31, 0.19);
  transform: translateY(-4px);
}

.home-main .space-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.05);
}

.space-card-topline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 18px 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.space-card-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 8px;
  padding: clamp(20px, 3.2vw, 32px);
}

.home-main .space-card strong {
  margin: 0;
  color: #fff;
  font-size: clamp(1.8rem, 3.4vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.home-main .space-card small {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  line-height: 1.45;
}

.space-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 5px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.home-main .size-carousel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: row;
  grid-auto-columns: auto;
  gap: 13px;
  overflow: visible;
  padding: 0;
}

.home-main .size-card {
  position: relative;
  min-height: 340px;
  display: grid;
  grid-template-rows: auto 132px 1fr auto;
  gap: 14px;
  align-content: stretch;
  padding: 20px;
  border-color: #d9e1dd;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(32, 43, 38, 0.055);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.home-main .size-card:hover {
  border-color: #9bb8ac;
  box-shadow: 0 18px 38px rgba(26, 47, 39, 0.13);
  transform: translateY(-4px);
}

.size-card-number {
  color: #a1783d;
  font-size: 0.68rem;
  font-weight: 850;
}

.size-shape-stage {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.55), transparent),
    repeating-linear-gradient(90deg, rgba(45,67,58,.045) 0 1px, transparent 1px 24px),
    #edf1ee;
}

.size-shape {
  display: block;
  max-width: 92px;
  max-height: 104px;
  border: 1px solid rgba(48, 65, 58, 0.22);
  border-radius: 2px;
  background: linear-gradient(145deg, #fff 0%, #e6dfd3 46%, #faf8f2 100%);
  box-shadow: 0 10px 18px rgba(44, 50, 47, 0.13);
}

.size-card-copy {
  display: grid;
  align-content: start;
  gap: 5px;
}

.home-main .size-display {
  color: var(--ink);
  font-size: clamp(1.75rem, 2.7vw, 2.65rem);
  letter-spacing: -0.04em;
}

.home-main .size-card strong {
  font-size: 0.78rem;
}

.home-main .size-card small {
  margin-top: 5px;
  font-size: 0.72rem;
}

.home-main .size-card .card-link {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.home-enquiry-cta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-top: clamp(58px, 8vw, 100px);
  padding: clamp(28px, 6vw, 68px);
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(205, 164, 100, 0.22), transparent 34%),
    #163d31;
}

.home-enquiry-cta > div {
  max-width: 760px;
}

.home-enquiry-cta .eyebrow {
  color: #e7c68f;
}

.home-enquiry-cta h2 {
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.home-enquiry-cta p:last-child {
  max-width: 600px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.55;
}

.home-enquiry-cta > .primary-button {
  flex: 0 0 auto;
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: #fff;
  color: #163d31;
}

@media (max-width: 980px) {
  .home-hero-note {
    display: none;
  }

  .home-value-strip {
    grid-template-columns: 1fr;
  }

  .home-main .space-card,
  .home-main .space-card:nth-child(n) {
    grid-column: span 6;
    aspect-ratio: 4 / 3;
  }

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

  .home-enquiry-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .home-main {
    padding-top: 10px;
  }

  .home-main .home-hero {
    min-height: 620px;
    padding: 28px 22px;
    border-radius: 13px;
  }

  .home-main .home-hero::before {
    background: linear-gradient(0deg, rgba(11, 22, 18, 0.88) 0%, rgba(11, 22, 18, 0.25) 78%);
  }

  .home-main .home-hero-image {
    object-position: 69% center;
  }

  .home-main .home-hero-copy h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .home-main .home-hero-actions {
    display: grid;
  }

  .home-main .home-hero-actions a {
    width: 100%;
  }

  .home-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-section-count {
    display: none;
  }

  .home-main .space-grid {
    grid-template-columns: 1fr;
  }

  .home-main .space-card,
  .home-main .space-card:nth-child(n) {
    grid-column: 1;
    min-height: 390px;
    aspect-ratio: auto;
  }

  .home-main .space-card small {
    display: block;
  }

  .home-main .size-carousel {
    grid-template-columns: 1fr;
  }

  .home-main .size-card {
    min-height: 300px;
    grid-template-columns: 108px 1fr;
    grid-template-rows: auto 1fr auto;
  }

  .size-card-number {
    grid-column: 1 / -1;
  }

  .size-shape-stage {
    grid-row: 2;
  }

  .size-card-copy {
    grid-column: 2;
    grid-row: 2;
  }

  .home-main .size-card .card-link {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-main .home-hero-image,
  .home-main .space-card img,
  .home-main .space-card,
  .home-main .size-card {
    transition: none;
  }
}

/* Store discovery and catalogue interaction v4. */
.home-main .space-grid,
.home-main .size-carousel,
.home-main .finish-carousel {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  align-items: start;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  padding: 4px 2px 18px;
  scroll-padding-inline: 2px;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
  scrollbar-color: #9db2aa #e9efec;
  -webkit-overflow-scrolling: touch;
}

.home-main .space-grid {
  grid-auto-columns: clamp(320px, 44vw, 520px);
}

.home-main .space-card,
.home-main .space-card:nth-child(n) {
  grid-column: auto;
  scroll-snap-align: start;
}

.home-main .size-carousel {
  grid-auto-columns: clamp(240px, 27vw, 300px);
}

.home-main .size-card {
  scroll-snap-align: start;
}

.home-main .finish-carousel {
  grid-auto-columns: clamp(230px, 26vw, 290px);
}

.home-main .space-grid::-webkit-scrollbar,
.home-main .size-carousel::-webkit-scrollbar,
.home-main .finish-carousel::-webkit-scrollbar {
  height: 8px;
}

.home-main .space-grid::-webkit-scrollbar-track,
.home-main .size-carousel::-webkit-scrollbar-track,
.home-main .finish-carousel::-webkit-scrollbar-track {
  border-radius: 99px;
  background: #e9efec;
}

.home-main .space-grid::-webkit-scrollbar-thumb,
.home-main .size-carousel::-webkit-scrollbar-thumb,
.home-main .finish-carousel::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: #9db2aa;
}

.finish-card {
  display: grid;
  overflow: hidden;
  min-height: 356px;
  border: 1px solid #d9e1dd;
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 10px 28px rgba(32, 43, 38, 0.055);
  scroll-snap-align: start;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.finish-card:hover {
  border-color: #9bb8ac;
  box-shadow: 0 18px 38px rgba(26, 47, 39, 0.13);
  transform: translateY(-4px);
}

.finish-card-image {
  position: relative;
  display: block;
  height: 226px;
  overflow: hidden;
  background: #e8e7e2;
}

.finish-card-image::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: var(--tile-tint, transparent);
  mix-blend-mode: color;
  opacity: 0.42;
}

.finish-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.finish-card:hover .finish-card-image img {
  transform: scale(1.04);
}

.finish-card-image > span {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(16, 40, 32, 0.78);
  font-size: 0.65rem;
  font-weight: 850;
  backdrop-filter: blur(8px);
}

.finish-card-copy {
  display: grid;
  gap: 7px;
  padding: 17px;
}

.finish-card-copy strong {
  font-size: 1.25rem;
}

.finish-card-copy small {
  color: var(--muted);
  font-size: 0.74rem;
}

.finish-card-copy .finish-card-count {
  color: var(--teal);
  font-weight: 780;
}

.finish-card-copy .card-link {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 820;
}

.product-card {
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.product-card:hover {
  border-color: #9bb8ac;
  box-shadow: 0 16px 32px rgba(25, 45, 37, 0.12);
  transform: translateY(-3px);
}

.product-card:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.3);
  outline-offset: 3px;
}

.product-card-media-link {
  display: block;
}

.product-card-title-link {
  color: inherit;
  text-decoration: none;
}

.product-card-title-link:hover {
  color: var(--teal);
}

.product-card .product-actions-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.product-card .product-actions-split > * {
  width: 100%;
  min-width: 0;
  padding-inline: 7px;
  white-space: nowrap;
}

.reel-products .sku-link {
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #8cb7a8;
  border-radius: 7px;
  color: #124d3e;
  background: #e3f0eb;
  box-shadow: 0 3px 9px rgba(18, 77, 62, 0.1);
  font-weight: 850;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.reel-products .sku-link::after {
  content: "Open";
  color: #52776b;
  font-size: 0.62rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.reel-products .sku-link:hover {
  border-color: var(--teal);
  color: #fff;
  background: var(--teal);
  box-shadow: 0 7px 16px rgba(15, 118, 110, 0.2);
  transform: translateY(-2px);
}

.reel-products .sku-link:hover::after {
  color: rgba(255, 255, 255, 0.78);
}

.cart-product-summary .cart-box-price {
  width: fit-content;
  margin-top: 9px;
  padding: 6px 9px;
  border-radius: 5px;
  color: #184e40;
  background: #e6f1ed;
  font-size: 0.78rem;
}

.cart-product-summary .cart-box-price strong {
  color: #123c32;
  font-size: 0.9rem;
}

@media (max-width: 620px) {
  .home-main .space-grid {
    grid-auto-columns: min(86vw, 390px);
  }

  .home-main .size-carousel,
  .home-main .finish-carousel {
    grid-auto-columns: min(82vw, 310px);
  }

  .home-main .space-card,
  .home-main .space-card:nth-child(n) {
    grid-column: auto;
  }

  .home-main .finish-card {
    min-height: 342px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .finish-card,
  .finish-card-image img,
  .product-card,
  .reel-products .sku-link {
    transition: none;
  }
}

/* Homepage discovery and mobile catalogue refinements (v5). */
.service-ticker {
  position: relative;
  z-index: 30;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  background: linear-gradient(90deg, #0b3c32, #176556 52%, #0b3c32);
}
.service-ticker-track {
  display: flex;
  width: max-content;
  animation: service-ticker-scroll 42s linear infinite;
}
.service-ticker span {
  flex: none;
  padding: 10px 44px;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 720;
  letter-spacing: 0.035em;
}
.service-ticker:hover .service-ticker-track,
.service-ticker:focus-within .service-ticker-track { animation-play-state: paused; }
@keyframes service-ticker-scroll { to { transform: translateX(-50%); } }
.home-main .home-discovery-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: clamp(28px, 5vw, 64px);
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid #d4dfda;
  border-radius: 26px;
  box-shadow: 0 22px 58px rgba(19, 47, 38, 0.09);
}
.home-main .home-discovery-card::before {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 6px;
  content: "";
  background: #168170;
}
.home-main .home-spaces-section { background: linear-gradient(145deg, #f9fcfa 0%, #e7f1ed 100%); }
.home-main .home-sizes-section {
  border-color: #e7d9c4;
  background: linear-gradient(145deg, #fffdf9 0%, #f5eadb 100%);
}
.home-main .home-sizes-section::before { background: #bc713d; }
.home-main .home-finishes-section {
  border-color: #d3dce5;
  background: linear-gradient(145deg, #fbfcfd 0%, #e8eef4 100%);
}
.home-main .home-finishes-section::before { background: #5d738c; }
.home-section-heading {
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(38, 66, 57, 0.13);
}
.home-section-tools {
  display: grid;
  gap: 10px;
  justify-items: end;
}
.carousel-controls { display: flex; gap: 9px; }
.carousel-controls button {
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(19, 64, 51, 0.24);
  border-radius: 50%;
  color: #123f34;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 22px rgba(24, 55, 45, 0.1);
  font-size: 1.25rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, color 160ms ease, background 160ms ease, opacity 160ms ease;
}
.carousel-controls button:hover:not(:disabled),
.carousel-controls button:focus-visible {
  color: #fff;
  background: #126c5c;
  transform: translateY(-2px);
}
.carousel-controls button:disabled { cursor: default; opacity: 0.32; }
@media (max-width: 619px) {
  .service-ticker span { padding: 9px 30px; font-size: 0.67rem; }
  .home-main .home-discovery-card { padding: 20px 16px 22px; border-radius: 19px; }
  .home-section-heading { align-items: end; gap: 16px; }
  .home-section-tools {
    width: 100%;
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .carousel-controls { grid-column: 2; }
  .carousel-controls button { width: 44px; height: 44px; }
  .product-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .product-card .product-actions-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px;
  }
  .product-card .product-actions-split > * {
    min-height: 44px;
    overflow: hidden;
    padding-inline: 5px;
    font-size: clamp(0.66rem, 3.2vw, 0.76rem);
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  .service-ticker { overflow-x: auto; }
  .service-ticker-track { animation: none; }
  .service-ticker span[aria-hidden="true"] { display: none; }
  .carousel-controls button { transition: none; }
}

/* Compact mobile discovery refinements (v6). */
@media (max-width: 619px) {
  .home-main {
    padding-inline: 10px;
    padding-bottom: 56px;
  }

  .home-main .home-discovery-card {
    margin-top: 18px;
    padding: 15px 12px 17px;
    border-radius: 16px;
  }

  .home-section-heading {
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  .home-section-heading h2 {
    font-size: clamp(1.8rem, 9vw, 2.35rem);
    line-height: 1;
  }

  .home-section-heading > div > p:last-child {
    margin-top: 7px;
    font-size: 0.82rem;
    line-height: 1.42;
  }

  .home-section-tools {
    min-height: 34px;
  }

  .carousel-controls {
    gap: 6px;
  }

  .carousel-controls button {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
    box-shadow: 0 5px 14px rgba(24, 55, 45, 0.09);
  }

  .home-main .space-grid,
  .home-main .size-carousel,
  .home-main .finish-carousel {
    grid-auto-columns: 100%;
    gap: 10px;
    padding: 2px 1px 10px;
    scroll-padding-inline: 1px;
  }

  .home-main .space-grid::-webkit-scrollbar,
  .home-main .size-carousel::-webkit-scrollbar,
  .home-main .finish-carousel::-webkit-scrollbar {
    height: 5px;
  }

  .home-main .space-card,
  .home-main .space-card:nth-child(n) {
    min-height: 285px;
    aspect-ratio: auto;
    border-radius: 12px;
  }

  .space-card-topline {
    padding: 14px 15px;
  }

  .space-card-content {
    gap: 6px;
    padding: 18px 16px;
  }

  .home-main .space-card strong {
    font-size: clamp(1.75rem, 10vw, 2.45rem);
  }

  .home-main .size-card {
    min-height: 255px;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px 14px;
    padding: 15px;
  }

  .home-main .size-display {
    font-size: clamp(1.55rem, 8vw, 2.1rem);
  }

  .finish-card,
  .home-main .finish-card {
    min-height: 294px;
  }

  .finish-card-image {
    height: 180px;
  }

  .finish-card-copy {
    padding: 14px;
  }
}

/* Split carousel controls and compact catalogue typography (v7). */
.product-grid .product-card-body {
  gap: 5px;
  padding: 14px 15px 16px;
}

.product-grid .product-meta {
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 1.15;
}

.product-grid .product-meta span::after {
  margin-left: 4px;
}

.product-grid .product-card h2 {
  min-height: 0;
  font-size: clamp(1.15rem, 3vw, 1.42rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.018em;
}

.product-grid .product-card code {
  font-size: 0.75rem;
  font-weight: 750;
  line-height: 1.15;
}

.product-grid .product-card p {
  min-height: 0;
  font-size: 0.87rem;
  font-weight: 720;
  line-height: 1.2;
}

.product-grid .product-card .price {
  margin-top: 2px;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.1;
}

.product-grid .product-card .price span {
  font-size: 0.76rem;
  font-weight: 700;
}

.product-grid .product-actions-split {
  margin-top: 6px;
}

@media (max-width: 619px) {
  .home-section-heading {
    gap: 3px;
    margin-bottom: 4px;
    padding-bottom: 5px;
  }

  .home-section-tools {
    display: block;
    width: 100%;
    min-height: 30px;
  }

  .carousel-controls {
    width: 100%;
    justify-content: space-between;
    gap: 0;
  }

  .carousel-controls button {
    width: 30px;
    height: 30px;
    font-size: 0.88rem;
  }

  .home-main .space-grid,
  .home-main .size-carousel,
  .home-main .finish-carousel {
    padding-top: 0;
  }

  .product-grid .product-image {
    aspect-ratio: 4 / 3;
  }

  .product-grid .product-card-body {
    gap: 4px;
    padding: 13px 14px 15px;
  }

  .product-grid .product-meta {
    font-size: 0.82rem;
  }

  .product-grid .product-card h2 {
    font-size: clamp(1.22rem, 5.5vw, 1.48rem);
  }

  .product-grid .product-card code {
    font-size: 0.78rem;
  }

  .product-grid .product-card p {
    font-size: 0.92rem;
    line-height: 1.16;
  }

  .product-grid .product-card .price {
    font-size: 1.15rem;
  }
}

/* Infinite category carousels and balanced desktop cards (v9). */
.home-main [data-carousel-clone="true"] {
  user-select: none;
}

@media (min-width: 900px) {
  .home-main .space-grid {
    grid-auto-columns: calc((100% - 28px) / 3);
  }

  .home-main .size-carousel,
  .home-main .finish-carousel {
    grid-auto-columns: calc((100% - 28px) / 3);
  }

  .home-main .space-card,
  .home-main .space-card:nth-child(n) {
    width: 100%;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .home-main .size-card,
  .home-main .finish-card {
    width: 100%;
    min-height: 380px;
    height: 380px;
  }

  .home-main .size-card {
    grid-template-rows: auto 124px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 18px;
  }

  .home-main .size-display {
    font-size: clamp(1.45rem, 2.2vw, 2.05rem);
    line-height: 1;
    white-space: nowrap;
  }

  .home-main .size-card strong {
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .home-main .size-card small {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-height: 1.42;
  }

  .home-main .finish-card {
    grid-template-rows: 205px minmax(0, 1fr);
  }

  .home-main .finish-card-image {
    height: 205px;
  }

  .home-main .finish-card-copy {
    min-height: 175px;
  }
}

@media (min-width: 1280px) {
  .home-main .size-carousel,
  .home-main .finish-carousel {
    grid-auto-columns: calc((100% - 42px) / 4);
  }
}
/* Clean infinite carousel tracks and larger category cards (v10). */
.home-main .space-grid,
.home-main .size-carousel,
.home-main .finish-carousel {
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.home-main .space-grid::-webkit-scrollbar,
.home-main .size-carousel::-webkit-scrollbar,
.home-main .finish-carousel::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

@media (min-width: 900px) {
  .home-main .space-grid {
    grid-auto-columns: clamp(360px, 31vw, 440px);
  }

  .home-main .size-carousel,
  .home-main .finish-carousel {
    grid-auto-columns: clamp(340px, 29vw, 390px);
  }

  .home-main .space-card,
  .home-main .space-card:nth-child(n) {
    aspect-ratio: 5 / 4;
  }

  .home-main .size-card,
  .home-main .finish-card {
    min-height: 360px;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .home-main .finish-card {
    grid-template-rows: 52% 48%;
  }

  .home-main .finish-card-image {
    height: 100%;
  }

  .home-main .finish-card-copy {
    min-height: 0;
    padding: 16px 18px;
  }
}

/* Controlled one-card carousel movement (v11). */
.home-main .space-card,
.home-main .size-card,
.home-main .finish-card {
  scroll-snap-stop: always;
}
/* Required-area units and focused product interactions (v12). */
.cart-controls {
  grid-template-columns: minmax(0, 1fr);
}

.required-area-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(158px, 0.78fr);
  gap: 10px;
}

.cart-controls .wastage-field {
  width: min(160px, 100%);
}

.cart-size-line {
  display: grid;
  gap: 2px;
}

.cart-size-line strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.cart-size-line span {
  color: var(--muted);
  font-size: 0.76rem;
}

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

.product-card:active {
  color: inherit;
  background: var(--surface);
}

.product-card-media-link img,
.product-card-title-link,
.product-card .product-actions-split .text-action {
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease, filter 150ms ease;
}

.product-card-media-link:active img {
  filter: brightness(0.97) saturate(0.94);
  transform: scale(1.025);
}

.product-card-title-link:active {
  color: #0b665d;
}

.product-card .product-actions-split .text-action:hover,
.product-card .product-actions-split .text-action:focus-visible {
  border-color: #8bb4a6;
  color: #0d5f55;
  background: #eef6f3;
  box-shadow: 0 5px 14px rgba(22, 78, 64, 0.1);
  transform: translateY(-1px);
}

.product-card .product-actions-split .text-action:focus-visible,
.product-card-media-link:focus-visible,
.product-card-title-link:focus-visible {
  outline: 2px solid rgba(15, 118, 110, 0.48);
  outline-offset: 2px;
}

.product-card .product-actions-split .text-action:active {
  border-color: #6f9d8f;
  color: #0a574e;
  background: #e1eee9;
  box-shadow: inset 0 2px 4px rgba(19, 71, 58, 0.13);
  transform: translateY(1px);
}

@media (max-width: 619px) {
  .required-area-control {
    grid-template-columns: minmax(0, 1fr);
  }

  .cart-controls .wastage-field {
    width: 100%;
  }
}
/* Mobile category scale and guided journey rail (v13). */
.home-value-strip {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: clamp(280px, 31vw, 370px);
  gap: 10px;
  margin-top: 22px;
  padding: 2px 1px 6px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.home-value-strip::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.home-value-strip > div {
  min-height: 94px;
  padding: 20px 22px;
  border: 1px solid #d8e2dd;
  border-radius: 13px;
  background: linear-gradient(145deg, #ffffff 0%, #f7faf8 100%);
  box-shadow: 0 9px 24px rgba(24, 55, 45, 0.07);
  scroll-snap-align: start;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.home-value-strip > div:hover {
  border-color: #a9c2b8;
  box-shadow: 0 13px 28px rgba(24, 55, 45, 0.1);
  transform: translateY(-2px);
}

.home-value-strip.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.home-value-strip:focus-visible {
  outline: 2px solid rgba(15, 118, 110, 0.48);
  outline-offset: 4px;
}

@media (max-width: 619px) {
  .home-value-strip {
    grid-template-columns: none;
    grid-auto-columns: min(88vw, 360px);
    gap: 9px;
    margin-top: 18px;
  }

  .home-value-strip > div {
    min-height: 106px;
    padding: 20px 19px;
  }

  .home-main .space-card,
  .home-main .space-card:nth-child(n) {
    min-height: 315px;
  }

  .home-main .size-card {
    min-height: 280px;
    grid-template-columns: 100px minmax(0, 1fr);
    padding: 18px;
  }

  .finish-card,
  .home-main .finish-card {
    min-height: 325px;
  }

  .home-main .finish-card-image {
    height: 192px;
  }

  .home-main .finish-card-copy {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-value-strip > div {
    transition: none;
  }
}

/* Clearer category and guided-journey typography (v20). */
.home-main .size-card .size-card-copy > strong {
  font-size: clamp(1.05rem, 1.35vw, 1.18rem);
  line-height: 1.22;
  letter-spacing: -0.012em;
}

.home-main .size-card .size-card-copy > small {
  margin-top: 7px;
  font-size: clamp(0.84rem, 1vw, 0.92rem);
  line-height: 1.5;
}

.home-main .size-card .card-link {
  font-size: 0.92rem;
  line-height: 1.25;
}

.home-main .size-card .size-card-number {
  font-size: 0.75rem;
}

.home-value-strip > div {
  min-height: 108px;
  align-content: center;
  row-gap: 6px;
}

.home-value-strip span {
  padding-top: 2px;
  font-size: 0.75rem;
}

.home-value-strip strong {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.home-value-strip small {
  font-size: clamp(0.82rem, 0.95vw, 0.9rem);
  line-height: 1.45;
}

@media (max-width: 619px) {
  .home-value-strip > div {
    min-height: 116px;
  }

  .home-value-strip strong {
    font-size: 1.04rem;
  }

  .home-value-strip small {
    font-size: 0.87rem;
  }

  .home-main .size-card .size-card-copy > strong {
    font-size: 1.08rem;
  }

  .home-main .size-card .size-card-copy > small {
    font-size: 0.88rem;
  }
}

/* Minimal reel controls: tap the video to pause or resume. */
.reel-video-shell {
  position: relative;
  height: 100%;
  min-height: 420px;
  overflow: hidden;
  background: #101616;
}

.reel-video-shell .reel-video {
  cursor: pointer;
}

.reel-sound-toggle {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  min-width: 88px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  color: #fff;
  background: rgba(12, 20, 19, 0.72);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.reel-sound-toggle:hover,
.reel-sound-toggle:focus-visible {
  background: rgba(12, 20, 19, 0.92);
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

.reel-play-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  color: #fff;
  background: rgba(12, 20, 19, 0.68);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 160ms ease, transform 160ms ease;
}

.reel-video-shell.is-paused .reel-play-indicator {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Interactive VisualEZ 360 room preview. */
.viewer-dialog.is-interactive {
  width: min(1120px, calc(100% - 20px));
  max-height: calc(100dvh - 20px);
  overflow: auto;
}

.viewer-scene.has-interactive-viewer {
  display: block;
  min-height: clamp(420px, 68dvh, 720px);
  background: #111817;
  perspective: none;
}

.viewer-frame {
  display: block;
  width: 100%;
  height: clamp(420px, 68dvh, 720px);
  border: 0;
  background: #111817;
}

.viewer-frame[hidden] {
  display: none;
}

.viewer-dialog.is-interactive .viewer-copy {
  align-content: center;
  background: #fbfaf7;
}

@media (min-width: 620px) {
  .viewer-dialog.is-interactive .viewer-layout {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 290px);
  }
}

@media (max-width: 619px) {
  .viewer-dialog.is-interactive {
    width: calc(100% - 12px);
  }

  .viewer-scene.has-interactive-viewer,
  .viewer-frame {
    min-height: 62dvh;
    height: 62dvh;
  }
}

/* Storefront bottom navigation, enquiry tracking and sanitaryware catalogue (v16). */
body.has-storefront-bottom-navigation {
  padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
}

.storefront-bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 95;
  display: flex;
  justify-content: center;
  padding: 0 12px calc(10px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

.storefront-bottom-nav-surface {
  position: relative;
  display: grid;
  width: min(760px, 100%);
  min-height: 76px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 25px;
  background: #0c2d28 url("/assets/bottom-nav-surface.svg") center / 100% 100% no-repeat;
  box-shadow: 0 22px 60px rgba(6, 31, 27, 0.3), 0 5px 16px rgba(6, 31, 27, 0.24);
  pointer-events: auto;
  isolation: isolate;
}

.storefront-bottom-nav-surface::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 42%);
  content: "";
  pointer-events: none;
}

.storefront-bottom-nav-item {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 7px 4px 6px;
  border: 1px solid transparent;
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.storefront-bottom-nav-item:hover,
.storefront-bottom-nav-item:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.storefront-bottom-nav-item[aria-current="page"] {
  color: #17332d;
  border-color: rgba(255, 255, 255, 0.72);
  background: linear-gradient(145deg, #fffdf7, #e9f3ee);
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.18), inset 0 1px rgba(255, 255, 255, 0.9);
  transform: translateY(-3px);
}

.storefront-bottom-nav-icon {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
}

.storefront-bottom-nav-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.storefront-bottom-nav-label {
  max-width: 100%;
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storefront-bottom-nav-badge {
  position: absolute;
  top: 4px;
  left: calc(50% + 10px);
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 5px;
  border: 2px solid #12362f;
  border-radius: 999px;
  color: #18312b;
  background: #f4cb75;
  font-size: 0.62rem;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.storefront-bottom-nav-badge[hidden] {
  display: none;
}

.orders-page,
.sanitaryware-page {
  background: #f4f3ee;
}

.orders-main,
.sanitaryware-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 40px;
}

.orders-hero {
  position: relative;
  display: flex;
  min-height: 250px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(28px, 5vw, 58px);
  overflow: hidden;
  border-radius: 30px;
  color: #fff;
  background: linear-gradient(120deg, #103f36, #0b2925 62%, #17352e);
  box-shadow: 0 24px 65px rgba(11, 52, 44, 0.18);
}

.orders-hero::before,
.orders-hero::after {
  position: absolute;
  border: 1px solid rgba(239, 207, 143, 0.17);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.orders-hero::before {
  width: 330px;
  height: 330px;
  top: -170px;
  right: 12%;
}

.orders-hero::after {
  width: 500px;
  height: 500px;
  right: -250px;
  bottom: -360px;
}

.orders-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.orders-hero .eyebrow,
.sanitaryware-assistance .eyebrow {
  color: #f1cd82;
}

.orders-hero h1 {
  max-width: 760px;
  margin: 8px 0 14px;
  font-size: clamp(2.2rem, 5vw, 4.9rem);
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.orders-hero p:last-child {
  max-width: 670px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1rem;
}

.orders-refresh-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.orders-refresh-button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.orders-refresh-button.is-loading svg {
  animation: orders-refresh-spin 900ms linear infinite;
}

@keyframes orders-refresh-spin {
  to { transform: rotate(360deg); }
}

.orders-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: -22px 34px 0;
  position: relative;
  z-index: 2;
}

.orders-summary article {
  display: flex;
  min-height: 108px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border: 1px solid #dce5df;
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 15px 36px rgba(23, 54, 46, 0.09);
}

.orders-summary span {
  color: #65726d;
  font-size: 0.82rem;
  font-weight: 720;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.orders-summary strong {
  color: #173d34;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.orders-section {
  margin-top: 42px;
}

.orders-section-heading,
.sanitaryware-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.orders-section-heading h2,
.sanitaryware-section-heading h2 {
  margin: 4px 0 0;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  letter-spacing: -0.04em;
}

.orders-updated-at,
.sanitaryware-section-heading > span {
  color: #73807b;
  font-size: 0.82rem;
  font-weight: 650;
}

.orders-list {
  display: grid;
  gap: 18px;
}

.order-card {
  overflow: hidden;
  border: 1px solid #d9e2dd;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 52px rgba(26, 57, 49, 0.08);
}

.order-card.is-cancelled {
  opacity: 0.76;
}

.order-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #e4eae6;
  background: linear-gradient(105deg, #fbfcfa, #f0f6f2);
}

.order-reference {
  display: block;
  max-width: min(70vw, 680px);
  overflow: hidden;
  color: #7a857f;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-card-header h3 {
  margin: 5px 0 0;
  font-size: 1.28rem;
}

.order-status {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid #b8d3c8;
  border-radius: 999px;
  color: #155b4b;
  background: #e9f5ef;
  font-size: 0.75rem;
  font-weight: 850;
}

.order-status.status-quoted,
.order-status.status-confirmed,
.order-status.status-closed {
  border-color: #ddc27f;
  color: #61440c;
  background: #fff6df;
}

.order-status.status-cancelled {
  border-color: #dfc8c3;
  color: #8a3f33;
  background: #fff0ed;
}

.order-card-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border-bottom: 1px solid #e4eae6;
  background: #e4eae6;
}

.order-card-meta > span {
  display: grid;
  gap: 5px;
  padding: 16px 24px;
  background: #fff;
}

.order-card-meta small {
  color: #77837e;
  font-size: 0.68rem;
  font-weight: 740;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.order-card-meta strong {
  font-size: 0.89rem;
}

.order-card-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
}

.order-card-layout > div {
  min-width: 0;
  padding: 24px;
}

.order-progress-panel {
  border-left: 1px solid #e4eae6;
  background: #fbfcfa;
}

.order-products {
  display: grid;
  gap: 9px;
}

.order-product {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px;
  border: 1px solid #e4e9e6;
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.order-product:hover {
  border-color: #9ebfb3;
  box-shadow: 0 8px 20px rgba(23, 68, 56, 0.08);
  transform: translateY(-1px);
}

.order-product-swatch {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: #e7e7e1;
}

.order-product-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-product > span:last-child {
  min-width: 0;
}

.order-product strong,
.order-product small {
  display: block;
}

.order-product strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-product small {
  margin-top: 4px;
  color: #737f7a;
  line-height: 1.35;
}

.order-transport {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #e2e8e4;
  border-radius: 16px;
  background: #f8faf8;
}

.order-transport.has-quote {
  border-color: #d9c17f;
  background: linear-gradient(135deg, #fffbef, #f7f2e2);
}

.order-transport.is-pending {
  border-style: dashed;
}

.order-transport > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.order-transport span,
.order-progress-title {
  color: #737f7a;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.order-transport strong {
  color: #173d34;
  font-size: 1.35rem;
}

.order-transport p,
.order-transport small,
.order-transport time {
  margin: 0;
  color: #68736f;
  font-size: 0.8rem;
  line-height: 1.5;
}

.order-transport time {
  font-weight: 720;
}

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

.order-progress-step {
  position: relative;
  display: grid;
  min-height: 70px;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
}

.order-progress-step:not(:last-child)::after {
  position: absolute;
  top: 30px;
  bottom: 0;
  left: 14px;
  width: 2px;
  background: #dbe3df;
  content: "";
}

.order-progress-step.is-complete:not(:last-child)::after {
  background: #5e9b88;
}

.order-progress-marker {
  position: relative;
  z-index: 1;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid #cbd7d2;
  border-radius: 50%;
  color: #7b8983;
  background: #fff;
  font-size: 0.72rem;
  font-weight: 850;
}

.order-progress-step.is-complete .order-progress-marker {
  border-color: #317763;
  color: #fff;
  background: #317763;
}

.order-progress-step.is-current .order-progress-marker {
  border-color: #d8aa58;
  color: #6b4c13;
  background: #fff4d8;
  box-shadow: 0 0 0 5px rgba(216, 170, 88, 0.14);
}

.order-progress-step strong,
.order-progress-step small {
  display: block;
}

.order-progress-step strong {
  margin-top: 4px;
  font-size: 0.9rem;
}

.order-progress-step small {
  margin-top: 4px;
  color: #74807b;
  font-size: 0.73rem;
  line-height: 1.38;
}

.orders-loading,
.orders-error,
.orders-empty {
  display: grid;
  min-height: 240px;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 32px;
  border: 1px solid #dce4df;
  border-radius: 22px;
  text-align: center;
  background: #fff;
}

.orders-loading > span {
  width: 34px;
  height: 34px;
  border: 3px solid #d6e3dd;
  border-top-color: #1d6d5a;
  border-radius: 50%;
  animation: orders-refresh-spin 850ms linear infinite;
}

.orders-error span,
.orders-empty p {
  max-width: 570px;
  color: #6d7974;
}

.orders-empty-icon,
.orders-signin-art {
  display: grid;
  place-items: center;
  color: #285e50;
}

.orders-empty-icon {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: #e8f2ed;
}

.orders-empty-icon svg {
  width: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.orders-signin {
  display: grid;
  min-height: 330px;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
  overflow: hidden;
  border: 1px solid #dce4df;
  border-radius: 24px;
  background: #fff;
}

.orders-signin-art {
  color: #f2d18b;
  background: #103f36 url("/assets/bottom-nav-surface.svg") center / cover no-repeat;
}

.orders-signin-art svg {
  width: 92px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

.orders-signin > div:last-child {
  display: grid;
  align-content: center;
  justify-items: start;
  padding: clamp(28px, 5vw, 58px);
}

.orders-signin h3 {
  margin: 5px 0 12px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

.orders-signin p:not(.eyebrow) {
  max-width: 590px;
  margin: 0 0 22px;
  color: #67746f;
  line-height: 1.65;
}

.sanitaryware-hero {
  display: grid;
  min-height: 540px;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  overflow: hidden;
  border-radius: 30px;
  color: #fff;
  background: #103b33;
  box-shadow: 0 25px 65px rgba(22, 55, 47, 0.16);
}

.sanitaryware-hero-copy {
  display: grid;
  align-content: center;
  justify-items: start;
  padding: clamp(34px, 6vw, 76px);
  background: radial-gradient(circle at 20% 100%, rgba(53, 132, 109, 0.48), transparent 42%), linear-gradient(140deg, #123f36, #0a2824);
}

.sanitaryware-hero-copy .eyebrow {
  color: #f0ca7d;
}

.sanitaryware-hero h1 {
  max-width: 590px;
  margin: 9px 0 18px;
  font-size: clamp(2.7rem, 5.6vw, 5.2rem);
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.sanitaryware-hero-copy > p:last-of-type {
  max-width: 580px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.65;
}

.sanitaryware-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.sanitaryware-hero .secondary-button {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.sanitaryware-hero-media {
  position: relative;
  min-height: 400px;
}

.sanitaryware-hero-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 38, 33, 0.28), transparent 35%), linear-gradient(0deg, rgba(8, 24, 21, 0.66), transparent 40%);
  content: "";
}

.sanitaryware-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sanitaryware-hero-media span {
  position: absolute;
  right: 24px;
  bottom: 22px;
  left: 24px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 720;
  text-align: right;
}

.sanitaryware-categories,
.sanitaryware-catalogue {
  margin-top: 56px;
}

.sanitaryware-section-heading > p {
  max-width: 440px;
  margin: 0;
  color: #6e7a75;
  line-height: 1.55;
}

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

.sanitaryware-category-grid article {
  display: grid;
  min-height: 230px;
  align-content: end;
  padding: 22px;
  border: 1px solid #dce4df;
  border-radius: 22px;
  background: linear-gradient(145deg, #fff, #f3f7f4);
  box-shadow: 0 15px 38px rgba(28, 64, 54, 0.07);
}

.sanitaryware-category-grid article:nth-child(even) {
  background: linear-gradient(145deg, #fffaf0, #f4eee2);
}

.sanitaryware-category-grid article > span {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  margin-bottom: auto;
  border-radius: 20px;
  color: #245f50;
  background: #e7f1ec;
}

.sanitaryware-category-grid svg {
  width: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sanitaryware-category-grid strong {
  margin-top: 28px;
  font-size: 1.06rem;
}

.sanitaryware-category-grid small {
  margin-top: 7px;
  color: #74807b;
  line-height: 1.45;
}

.sanitaryware-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.sanitaryware-product-card {
  overflow: hidden;
  border: 1px solid #dce4df;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(28, 64, 54, 0.08);
}

.sanitaryware-product-media {
  position: relative;
  display: grid;
  aspect-ratio: 1 / 0.83;
  place-items: center;
  overflow: hidden;
  color: #245f50;
  background: #eaf0ec;
}

.sanitaryware-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.sanitaryware-product-card:hover .sanitaryware-product-media img {
  transform: scale(1.025);
}

.sanitaryware-product-media > span:not(.sanitaryware-product-placeholder) {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(11, 47, 41, 0.82);
  font-size: 0.68rem;
  font-weight: 760;
  backdrop-filter: blur(8px);
}

.sanitaryware-product-placeholder svg {
  width: 68px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.15;
}

.sanitaryware-product-copy {
  padding: 20px;
}

.sanitaryware-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sanitaryware-product-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #53635d;
  background: #eef3f0;
  font-size: 0.68rem;
  font-weight: 700;
}

.sanitaryware-product-copy h3 {
  margin: 13px 0 5px;
  font-size: 1.25rem;
  line-height: 1.1;
}

.sanitaryware-product-copy h3 a {
  color: inherit;
  text-decoration: none;
}

.sanitaryware-product-copy code {
  color: #7b8581;
  font-size: 0.72rem;
}

.sanitaryware-product-copy > p {
  min-height: 3em;
  margin: 13px 0 18px;
  color: #697570;
  font-size: 0.83rem;
  line-height: 1.5;
}

.sanitaryware-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 15px;
  border-top: 1px solid #e5eae7;
}

.sanitaryware-product-footer strong {
  color: #174b3e;
  font-size: 0.92rem;
}

.sanitaryware-empty {
  display: grid;
  min-height: 330px;
  grid-column: 1 / -1;
  grid-template-columns: minmax(160px, 0.55fr) minmax(0, 1.45fr);
  overflow: hidden;
  border: 1px solid #dce4df;
  border-radius: 24px;
  background: #fff;
}

.sanitaryware-empty-mark {
  display: grid;
  place-items: center;
  color: #f0cd86;
  background: #103d34 url("/assets/bottom-nav-surface.svg") center / cover no-repeat;
  font-size: 5rem;
  font-weight: 900;
}

.sanitaryware-empty > div:last-child {
  display: grid;
  align-content: center;
  justify-items: start;
  padding: clamp(28px, 5vw, 58px);
}

.sanitaryware-empty h3 {
  margin: 5px 0 11px;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  letter-spacing: -0.04em;
}

.sanitaryware-empty p:not(.eyebrow) {
  max-width: 650px;
  margin: 0 0 20px;
  color: #68756f;
  line-height: 1.6;
}

.sanitaryware-assistance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 54px;
  padding: clamp(28px, 5vw, 52px);
  border-radius: 27px;
  color: #fff;
  background: #103d34 url("/assets/bottom-nav-surface.svg") center / cover no-repeat;
  box-shadow: 0 22px 55px rgba(19, 58, 49, 0.15);
}

.sanitaryware-assistance h2 {
  margin: 5px 0 10px;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  letter-spacing: -0.05em;
}

.sanitaryware-assistance p:last-child {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.product-detail-grid.is-non-tile .product-detail-media {
  background: linear-gradient(145deg, #eaf0ec, #dbe5df);
}

.product-detail-grid.is-non-tile .product-detail-media img {
  object-fit: cover;
}

@media (min-width: 760px) {
  .storefront-bottom-nav {
    bottom: 8px;
  }
}

@media (max-width: 920px) {
  .order-card-layout,
  .sanitaryware-hero {
    grid-template-columns: 1fr;
  }

  .order-progress-panel {
    border-top: 1px solid #e4eae6;
    border-left: 0;
  }

  .sanitaryware-hero-media {
    min-height: 360px;
  }

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

@media (max-width: 680px) {
  body.has-storefront-bottom-navigation {
    padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  }

  .storefront-bottom-nav {
    padding: 0;
  }

  .storefront-bottom-nav-surface {
    width: 100%;
    min-height: 68px;
    gap: 0;
    padding: 5px 4px calc(5px + env(safe-area-inset-bottom, 0px));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 21px 21px 0 0;
    box-shadow: 0 -9px 30px rgba(6, 31, 27, 0.2);
  }

  .storefront-bottom-nav-item {
    min-height: 57px;
    gap: 3px;
    padding: 5px 2px;
    border-radius: 15px;
  }

  .storefront-bottom-nav-item[aria-current="page"] {
    transform: translateY(-2px);
  }

  .storefront-bottom-nav-icon {
    width: 23px;
    height: 23px;
  }

  .storefront-bottom-nav-label {
    font-size: clamp(0.61rem, 2.8vw, 0.7rem);
  }

  .storefront-bottom-nav-badge {
    top: 1px;
  }

  .orders-main,
  .sanitaryware-main {
    width: min(100% - 18px, 1180px);
    padding-top: 12px;
  }

  .orders-hero {
    min-height: 280px;
    align-items: flex-start;
    flex-direction: column;
    padding: 27px 22px;
    border-radius: 22px;
  }

  .orders-hero h1 {
    font-size: clamp(2.25rem, 11vw, 3.5rem);
  }

  .orders-refresh-button {
    width: 100%;
    justify-content: center;
  }

  .orders-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: -12px 8px 0;
  }

  .orders-summary article {
    min-height: 92px;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding: 13px 10px;
    border-radius: 14px;
  }

  .orders-summary span {
    font-size: 0.58rem;
    line-height: 1.25;
  }

  .orders-summary strong {
    font-size: 1.75rem;
  }

  .orders-section {
    margin-top: 32px;
  }

  .orders-section-heading,
  .sanitaryware-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .order-card {
    border-radius: 18px;
  }

  .order-card-header {
    padding: 17px 16px 14px;
  }

  .order-card-header h3 {
    font-size: 1.05rem;
  }

  .order-status {
    padding: 6px 8px;
    font-size: 0.65rem;
  }

  .order-card-meta {
    grid-template-columns: 1fr;
  }

  .order-card-meta > span {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
  }

  .order-card-meta strong {
    text-align: right;
  }

  .order-card-layout > div {
    padding: 16px;
  }

  .order-transport > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .orders-signin,
  .sanitaryware-empty {
    grid-template-columns: 1fr;
  }

  .orders-signin-art {
    min-height: 140px;
  }

  .orders-signin-art svg {
    width: 66px;
  }

  .sanitaryware-hero {
    min-height: 0;
    border-radius: 22px;
  }

  .sanitaryware-hero-copy {
    padding: 32px 23px;
  }

  .sanitaryware-hero h1 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .sanitaryware-hero-actions,
  .sanitaryware-hero-actions .primary-button,
  .sanitaryware-hero-actions .secondary-button {
    width: 100%;
  }

  .sanitaryware-hero-actions .primary-button,
  .sanitaryware-hero-actions .secondary-button {
    justify-content: center;
  }

  .sanitaryware-hero-media {
    min-height: 280px;
  }

  .sanitaryware-categories,
  .sanitaryware-catalogue {
    margin-top: 38px;
  }

  .sanitaryware-category-grid {
    display: grid;
    grid-auto-columns: minmax(78vw, 310px);
    grid-template-columns: none;
    grid-auto-flow: column;
    gap: 10px;
    margin-right: -9px;
    padding-right: 9px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .sanitaryware-category-grid::-webkit-scrollbar {
    display: none;
  }

  .sanitaryware-category-grid article {
    min-height: 210px;
    scroll-snap-align: start;
  }

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

  .sanitaryware-empty-mark {
    min-height: 130px;
    font-size: 3.5rem;
  }

  .sanitaryware-assistance {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 23px;
    border-radius: 22px;
  }

  .sanitaryware-assistance .primary-button {
    width: 100%;
    justify-content: center;
  }
}


/* Weight and quantity pricing on product details (store v17). */
.detail-tier-pricing {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #d7e1dc;
  border-radius: 16px;
  background: linear-gradient(145deg, #f4f8f6, #ffffff);
}

.detail-tier-pricing .eyebrow {
  margin: 0 0 4px;
}

.detail-tier-pricing h2 {
  margin: 0;
  color: #10231e;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.detail-tier-table-wrap {
  overflow: hidden;
  border: 1px solid #d9e3de;
  border-radius: 12px;
  background: #fff;
}

.detail-tier-pricing table {
  width: 100%;
  border-collapse: collapse;
}

.detail-tier-pricing th,
.detail-tier-pricing td {
  padding: 11px 13px;
  text-align: left;
  border-bottom: 1px solid #e5ebe8;
}

.detail-tier-pricing th {
  color: #61716b;
  background: #eef4f1;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.detail-tier-pricing td {
  color: #17241f;
  font-weight: 750;
}

.detail-tier-pricing tbody tr:last-child td {
  border-bottom: 0;
}

.detail-tier-pricing tbody tr:last-child {
  background: #e8f5f0;
}

.detail-tier-pricing > p {
  margin: 0;
  color: #64736d;
  font-size: 0.8rem;
  line-height: 1.45;
}

@media (max-width: 560px) {
  .detail-tier-pricing {
    padding: 14px;
  }

  .detail-tier-pricing th,
  .detail-tier-pricing td {
    padding: 10px;
  }
}

.sanitaryware-category-card {
  position: relative;
  display: grid;
  min-height: 210px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d9e1dd;
  border-radius: 18px;
  color: #fff;
  background: #173c34;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 12px 30px rgba(17, 51, 43, 0.09);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.sanitaryware-category-card:hover,
.sanitaryware-category-card:focus-visible,
.sanitaryware-category-card.is-active {
  transform: translateY(-3px);
  border-color: #d4854e;
  box-shadow: 0 16px 34px rgba(17, 51, 43, 0.16);
}

.sanitaryware-category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transition: transform 300ms ease;
}

.sanitaryware-category-card:hover img,
.sanitaryware-category-card.is-active img {
  transform: scale(1.035);
}

.sanitaryware-category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 27, 23, 0.05), rgba(7, 27, 23, 0.92));
}

.sanitaryware-category-card > span {
  position: relative;
  z-index: 1;
  align-self: end;
  display: grid;
  gap: 5px;
  padding: 18px;
}

.sanitaryware-category-card strong {
  font-size: 1.1rem;
}

.sanitaryware-category-card small {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.35;
}


.calc-tier-saving {
  display: block;
  margin-top: 5px;
  color: #08715e;
  font-size: 0.75rem;
  font-weight: 750;
}

.metric .calc-tier-saving {
  line-height: 1.35;
}
@media (max-width: 640px) {
  .sanitaryware-category-card {
    min-width: 76vw;
    min-height: 190px;
    scroll-snap-align: start;
  }
}

/* Compact tile-first purchase hero (store v18). */
.home-main .home-hero {
  min-height: 0;
  height: clamp(480px, 48vw, 620px);
  align-items: center;
  padding: clamp(28px, 4vw, 56px);
}

.home-main .home-hero::before {
  background:
    linear-gradient(90deg, rgba(9, 22, 18, 0.88) 0%, rgba(9, 22, 18, 0.62) 40%, rgba(9, 22, 18, 0.1) 72%),
    linear-gradient(0deg, rgba(8, 18, 15, 0.2), transparent 48%),
    radial-gradient(circle at 67% 78%, rgba(255, 255, 255, 0.12), transparent 34%);
}

.home-main .home-hero-image {
  object-position: 48% 70%;
  filter: saturate(1.04) contrast(1.04);
}

.home-main .home-hero-copy {
  max-width: 620px;
}

.home-hero-kicker {
  grid-auto-flow: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 7px 10px;
}

.home-hero-kicker span {
  color: #f4d8aa;
}

.home-hero-kicker strong {
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.home-hero-kicker small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.67rem;
  letter-spacing: 0.01em;
  text-transform: none;
}

.home-main .home-hero-copy h1 {
  max-width: 11ch;
  font-size: clamp(2.8rem, 5.8vw, 5.4rem);
  line-height: 0.94;
}

.home-main .home-hero-copy > p:last-of-type {
  max-width: 540px;
  margin-top: 14px;
}

.home-main .home-hero-actions {
  margin-top: 20px;
}

.home-main .home-hero-actions .primary-button,
.home-main .hero-secondary-action {
  min-height: 44px;
}

.home-hero-note {
  right: 18px;
  bottom: 18px;
  grid-template-columns: 1fr;
  max-width: 230px;
}

.home-hero-note span {
  min-width: 0;
  padding: 10px 12px;
  border-left: 0;
}

.home-hero-note strong {
  font-size: 0.82rem;
}

@media (max-width: 620px) {
  .home-main {
    padding-top: 8px;
  }

  .home-main .home-hero {
    height: clamp(330px, 92vw, 380px);
    min-height: 0;
    align-items: flex-start;
    padding: 16px;
    border-radius: 12px;
  }

  .home-main .home-hero::before {
    background:
      linear-gradient(180deg, rgba(8, 20, 16, 0.94) 0%, rgba(8, 20, 16, 0.66) 48%, rgba(8, 20, 16, 0.04) 78%),
      linear-gradient(90deg, rgba(8, 20, 16, 0.28), transparent 72%);
  }

  .home-main .home-hero-image {
    object-position: 40% 68%;
    filter: saturate(1.06) contrast(1.05);
  }

  .home-main .home-hero-copy {
    max-width: none;
  }

  .home-hero-kicker {
    display: inline-grid;
    margin: 0 0 10px;
    gap: 6px;
    padding: 6px 8px;
    font-size: 0.58rem;
  }

  .home-hero-kicker strong {
    font-size: 0.66rem;
  }

  .home-hero-kicker small {
    font-size: 0.57rem;
  }

  .home-main .home-hero-copy h1 {
    max-width: 10ch;
    font-size: clamp(2.05rem, 10vw, 2.75rem);
    line-height: 0.95;
  }

  .home-main .home-hero-copy > p:last-of-type {
    max-width: 34ch;
    margin-top: 9px;
    font-size: 0.8rem;
    line-height: 1.35;
  }

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

  .home-main .home-hero-actions .primary-button,
  .home-main .home-hero-actions .hero-secondary-action {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    min-height: 40px;
    padding: 9px 8px;
    font-size: 0.75rem;
  }

  .home-hero-note {
    display: grid !important;
    right: 12px;
    bottom: 12px;
    max-width: 205px;
    font-size: 0.6rem;
  }

  .home-hero-note span {
    padding: 8px 10px;
  }

  .home-hero-note strong {
    font-size: 0.7rem;
  }
}

.calc-result .weight-metric {
  grid-column: 1 / -1;
  border: 1px solid #c7dcd4;
  background: linear-gradient(135deg, #e5f2ed, #f6faf8);
  color: #0f4d40;
}


.calc-result .calc-area-metric {
  grid-column: 1 / -1;
}

.calc-final-summary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid #d8e2de;
}

.calc-final-summary .metric {
  min-width: 0;
  padding: 14px;
}

.calc-final-summary .calc-final-rate {
  border: 1px solid #e6d7ca;
  background: linear-gradient(135deg, #fff4e9, #fffaf5);
  color: #8a3f27;
}

.calc-final-summary .calc-final-weight {
  border: 1px solid #c7dcd4;
  background: linear-gradient(135deg, #e5f2ed, #f6faf8);
  color: #0f4d40;
}

.calc-final-summary .calc-final-label {
  display: block;
  margin-bottom: 6px;
  color: currentColor;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.cart-final-card {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 13px;
  border-radius: 7px;
  color: #17241f;
  background: #fff;
}

.cart-final-card > span,
.cart-final-card > small {
  color: #61716b;
  font-size: 0.72rem;
}

.cart-final-card > strong {
  font-size: 1.05rem;
}

.cart-final-card.cart-final-rate {
  border-left: 4px solid #c34a2f;
}

.cart-final-card.cart-final-weight {
  border-left: 4px solid #08715e;
}

@media (max-width: 560px) {
  .calc-final-summary,
  .cart-final-summary {
    grid-template-columns: 1fr;
  }
}

/* Print layout */
@media print {
  .storefront-bottom-nav {
    display: none !important;
  }

  body.has-storefront-bottom-navigation {
    padding-bottom: 0;
  }
}

/* Compact cart estimates and product-detail actions (store v21). */
.cart-product-summary {
  display: block;
  padding: 0;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.cart-product-link {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 7px;
  color: inherit;
  text-decoration: none;
}

.cart-product-summary:hover {
  background: #f3f8f6;
  box-shadow: inset 3px 0 0 var(--teal);
}

.cart-product-link:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.24);
  outline-offset: -3px;
}

.calc-final-summary {
  gap: 6px;
  margin-top: 2px;
  padding-top: 8px;
}

.calc-final-summary .metric {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 8px 9px;
  border-radius: 6px;
}

.calc-final-summary .metric strong {
  font-size: 0.94rem;
  line-height: 1.2;
}

.calc-final-summary .metric span {
  font-size: 0.66rem;
  line-height: 1.3;
}

.calc-final-summary .calc-final-label {
  margin-bottom: 2px;
  font-size: 0.6rem;
  line-height: 1.25;
}

.calc-final-summary .calc-tier-saving {
  margin-top: 2px;
  font-size: 0.64rem;
}

.cart-final-card {
  gap: 3px;
  padding: 9px 10px;
}

.product-detail-copy {
  position: relative;
}

.product-detail-media > .detail-wishlist-icon {
  top: 12px;
  right: 12px;
}

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

.detail-experience-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.detail-experience-actions .secondary-button {
  width: 100%;
  min-width: 0;
  justify-content: center;
  text-align: center;
}

@media (max-width: 560px) {
  .calc-final-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cart-product-link {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .detail-experience-actions .secondary-button {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 0.78rem;
  }
}

/* Clear pack facts and wastage guidance (store v22). */
.cart-pack-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.cart-pack-facts > span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid #dce8e3;
  border-radius: 6px;
  background: #f3f8f6;
}

.cart-pack-facts small {
  color: #68766f;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cart-pack-facts strong {
  color: #173f35;
  font-size: 0.73rem;
  line-height: 1.25;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wastage-info-button {
  padding: 2px 0;
  border: 0;
  color: var(--teal);
  background: transparent;
  font-size: 0.7rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.wastage-info-button:hover,
.wastage-info-button:focus-visible {
  color: #084f46;
}

.wastage-info-dialog {
  width: min(700px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
}

.wastage-info-dialog::backdrop {
  background: rgba(12, 24, 21, 0.58);
}

.wastage-info-dialog > form:first-child {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
}

.wastage-info-layout {
  display: grid;
}

.wastage-visual {
  position: relative;
  min-height: 235px;
  overflow: hidden;
  background: linear-gradient(145deg, #dcebe5, #a9cabd);
}

.wastage-visual::before {
  position: absolute;
  right: -34px;
  bottom: -58px;
  width: 210px;
  height: 210px;
  border: 28px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  content: "";
}

.wastage-package {
  position: absolute;
  bottom: 42px;
  left: 34px;
  width: 125px;
  height: 92px;
  border: 3px solid #815a36;
  border-radius: 5px;
  background: linear-gradient(135deg, #c4935f, #a87343);
  box-shadow: 0 14px 24px rgba(63, 48, 33, 0.2);
}

.wastage-package::before,
.wastage-package::after {
  position: absolute;
  content: "";
}

.wastage-package::before {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 16px;
  background: rgba(244, 213, 155, 0.78);
  transform: translateX(-50%);
}

.wastage-package::after {
  top: 24px;
  right: 13px;
  width: 23px;
  height: 20px;
  border: 2px solid rgba(75, 45, 24, 0.62);
  border-top: 0;
}

.wastage-tile-sample {
  position: absolute;
  right: 42px;
  bottom: 46px;
  width: 82px;
  height: 112px;
  border: 5px solid rgba(255, 255, 255, 0.88);
  border-radius: 4px;
  background: linear-gradient(155deg, #f5f2eb 18%, #c9c3b8 19%, #f8f7f3 25%, #ded8cd 59%, #faf8f3 60%);
  box-shadow: -12px 12px 0 rgba(255, 255, 255, 0.42), 0 14px 24px rgba(40, 60, 53, 0.18);
  transform: rotate(7deg);
}

.wastage-crack {
  position: absolute;
  left: 39px;
  width: 2px;
  height: 38px;
  background: #8a6556;
  transform-origin: top;
}

.wastage-crack.crack-one {
  top: 32px;
  transform: rotate(24deg);
}

.wastage-crack.crack-two {
  top: 60px;
  transform: rotate(-31deg);
}

.wastage-visual > strong {
  position: absolute;
  right: 20px;
  bottom: 14px;
  left: 20px;
  color: #184b3e;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.wastage-info-copy {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 28px;
}

.wastage-info-copy h2,
.wastage-info-copy p {
  margin: 0;
}

.wastage-info-copy h2 {
  font-size: clamp(1.55rem, 5vw, 2.15rem);
}

.wastage-info-copy > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

.wastage-choice-note {
  padding: 10px 12px;
  border-left: 3px solid var(--teal);
  background: #f1f7f4;
  font-size: 0.82rem;
}

.wastage-info-copy > form .primary-button {
  width: 100%;
}

@media (min-width: 620px) {
  .wastage-info-layout {
    grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  }
}

@media (max-width: 619px) {
  .wastage-visual {
    min-height: 205px;
  }

  .wastage-info-copy {
    padding: 22px;
  }
}
