/* BLP Beauty brand palette (per client): #7f5846 / #efe2d2 / #222222 / #ffffff,
   Lato sans-serif -- matching blpbeauty.com's tone. */
:root {
  color-scheme: light;
  --bg: #efe2d2;
  --surface: #f8f1e6;
  --surface-strong: #ffffff;
  --text: #222222;
  --muted: #7a6a5c;
  --line: #ddcdb9;
  --accent: #7f5846;
  --accent-strong: #5e3f30;
  --accent-soft: #efe2d2;
  --shadow: 0 20px 55px rgba(64, 44, 34, 0.14);
}

.blush-placement-chooser {
  display: grid;
  gap: 0.55rem;
  border: 1px solid #eadfd9;
  border-radius: 12px;
  padding: 0.7rem;
  background: #fffaf7;
}

.blush-placement-chooser[hidden] {
  display: none !important;
}

.blush-placement-summary {
  display: grid;
  width: 100%;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto 0.55rem;
  align-items: center;
  gap: 0.55rem;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.blush-placement-preview {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid #ecdcd5;
  border-radius: 8px;
  background: white;
  overflow: hidden;
}

.blush-placement-preview svg {
  width: 2.25rem;
  height: 2rem;
}

.blush-placement-summary-copy {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.blush-placement-summary-copy strong {
  color: #3a211e;
  font-size: 0.76rem;
}

.blush-placement-summary-copy small,
.blush-placement-guidance {
  color: #8a756c;
  font-size: 0.62rem;
}

.blush-placement-guidance {
  display: none;
}

.blush-placement-action {
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  background: #f6eae4;
  color: #76483e;
  font-size: 0.65rem;
  font-weight: 700;
  white-space: nowrap;
}

.blush-placement-chevron {
  width: 0.42rem;
  height: 0.42rem;
  border-right: 1.5px solid #7f5846;
  border-bottom: 1.5px solid #7f5846;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 150ms ease;
}

.blush-placement-chooser.is-expanded .blush-placement-summary {
  grid-template-columns: minmax(0, 1fr) auto 0.55rem;
}

.blush-placement-chooser.is-expanded .blush-placement-preview,
.blush-placement-chooser.is-expanded .blush-placement-summary-copy small,
.blush-placement-chooser.is-expanded .blush-placement-action {
  display: none;
}

.blush-placement-chooser.is-expanded .blush-placement-guidance {
  display: block;
  text-align: right;
}

.blush-placement-chooser.is-expanded .blush-placement-chevron {
  transform: rotate(225deg) translate(-2px, -2px);
}

.blush-placement-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(68px, 1fr));
  gap: 0.45rem;
  overflow-x: auto;
  padding: 2px 1px 0.2rem;
  scrollbar-width: thin;
}

.blush-placement-chooser:not(.is-expanded) .blush-placement-options {
  display: none;
}

.blush-placement-option {
  display: grid;
  gap: 0.25rem;
  min-width: 68px;
  border: 1px solid #e6dbd5;
  border-radius: 9px;
  padding: 0.3rem;
  background: white;
  color: #6b554d;
  cursor: pointer;
}

.blush-placement-option:hover {
  border-color: #bd7c8f;
}

.blush-placement-option.is-active {
  border-color: #c94f70;
  box-shadow: 0 0 0 1px #c94f70;
  color: #9c3e59;
}

.blush-placement-option svg {
  width: 100%;
  height: 48px;
}

.blush-placement-face {
  fill: #fff;
  stroke: #b9aaa3;
  stroke-width: 1.5;
}

.blush-placement-line {
  fill: none;
  stroke: #a08f87;
  stroke-width: 1.2;
  stroke-linecap: round;
}

.blush-placement-patches {
  fill: #d55c78;
  opacity: 0.62;
}

.blush-placement-option span {
  overflow: hidden;
  font-size: 0.6rem;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(127, 88, 70, 0.12), transparent 34rem),
    linear-gradient(145deg, #f7efe1 0%, var(--bg) 56%, #e9d9c3 100%);
  color: var(--text);
  font-family:
    "Lato", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  background: var(--surface-strong);
  color: var(--text);
  cursor: pointer;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
}

button:hover {
  border-color: rgba(127, 88, 70, 0.42);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

button.is-loading {
  cursor: progress;
}

button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

button.is-loading::before {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-right: 0.45rem;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: white;
  border-radius: 999px;
  content: "";
  vertical-align: -0.12em;
  animation: spin 780ms linear infinite;
}

.app-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 1.2rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(64, 44, 34, 0.06);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: max-content;
}

.topbar-logo {
  width: 2rem;
  height: 2rem;
  overflow: visible;
  fill: #df5c43;
  stroke: #d84f38;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.topbar h1 {
  margin: 0;
  color: #2c2624;
  font-family: "Lato", sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 0.55rem;
  min-width: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent-strong);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.58rem 0.72rem;
  background: white;
}

.topbar-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.35rem;
  border-radius: 7px;
  padding: 0.5rem 0.68rem;
  background: white;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.topbar-camera-action {
  border-color: #c97e78;
  background: #c97e78;
  color: white;
}

.topbar-action > span[aria-hidden="true"] {
  display: grid;
  place-items: center;
  width: 1rem;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.icon-camera svg {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.nav-link:hover {
  border-color: var(--accent);
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: fit-content;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.55rem 0.7rem;
  background: white;
  color: var(--muted);
  font-size: 0.74rem;
  white-space: nowrap;
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: #b9a894;
}

.status-pill.ready .status-dot {
  background: #3f9b5f;
}

.status-pill.loading .status-dot {
  background: #d99a3d;
  animation: status-pulse 1.1s ease-in-out infinite;
}

.status-pill.warn .status-dot {
  background: #c95b4e;
}

@keyframes status-pulse {
  50% {
    opacity: 0.35;
  }
}

.status-pill.ready {
  border-color: rgba(74, 136, 88, 0.28);
  color: #316b41;
}

.status-pill.warn {
  border-color: rgba(190, 111, 48, 0.3);
  color: #8a4a18;
}

.status-pill.loading {
  border-color: rgba(127, 88, 70, 0.32);
  color: var(--accent-strong);
}

.studio {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr) 330px;
  gap: 1rem;
  align-items: start;
  min-width: 0;
  min-height: calc(100vh - 6.4rem);
}

.selection-panel {
  position: sticky;
  top: 1rem;
  display: grid;
  gap: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  padding: 0.85rem;
}

.selection-list {
  display: grid;
  gap: 0.6rem;
}

.selection-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
  background: var(--surface-strong);
}

.selection-dot {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(64, 44, 34, 0.18);
}

.selection-info {
  display: grid;
  gap: 0.1rem;
  font-size: 0.82rem;
  color: var(--muted);
  min-width: 0;
}

.selection-info a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selection-info a:hover {
  color: var(--accent-strong);
}

.topbar-icon svg {
  display: block;
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.selection-quantity {
  display: grid;
  grid-template-columns: 1fr 1.75rem 2rem 1.75rem;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.45rem;
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 700;
}

.selection-quantity button {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border-radius: 6px;
  background: white;
  color: var(--accent-strong);
  font-size: 1rem;
  line-height: 1;
}

.selection-quantity output {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.selection-cancel {
  min-width: 4.25rem;
  min-height: 2rem;
  border-color: #ead8d1;
  padding: 0.35rem 0.65rem;
  background: #fffaf7;
  color: #9c3e59;
  font-size: 0.72rem;
  font-weight: 700;
}

.blp-products {
  display: grid;
  gap: 0.6rem;
}

.blp-products-list {
  display: grid;
  gap: 0.75rem;
  max-height: 24rem;
  overflow-y: auto;
  scrollbar-gutter: stable;
  padding-right: 0.15rem;
}

.blp-search {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  background: var(--surface-strong);
  color: var(--text);
  font-size: 0.86rem;
}

.blp-search:focus {
  outline: none;
  border-color: var(--accent);
}

.blp-card[hidden] {
  /* display: grid below would otherwise override the UA's [hidden] rule
     and defeat the search filter. */
  display: none;
}

.blp-card {
  display: grid;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem;
  background: var(--surface-strong);
}

.blp-card-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

.blp-card-image-button {
  min-width: 0;
  border: 0;
  border-radius: 6px;
  padding: 0;
  background: transparent;
  overflow: hidden;
}

.blp-card-image-button img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  transition:
    filter 150ms ease,
    transform 150ms ease;
}

.blp-card-image-button:hover img {
  filter: brightness(1.04);
  transform: scale(1.04);
}

.blp-thumb-zoom-preview {
  position: fixed;
  z-index: 999;
  width: 220px;
  height: 220px;
  border: 2px solid var(--accent);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-strong);
  box-shadow: 0 16px 40px rgba(64, 44, 34, 0.34);
  pointer-events: none;
}

.blp-thumb-zoom-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blp-card-title {
  color: var(--text);
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.3;
  text-decoration: none;
}

.blp-card-title:hover {
  color: var(--accent-strong);
}

.blp-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blp-card-finish {
  border-radius: 999px;
  padding: 0.14rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface);
}

.blp-card-finish.is-glossy {
  border-color: rgba(127, 88, 70, 0.45);
  color: var(--accent-strong);
}

.blp-card-finish.is-matte {
  background: var(--line);
  color: var(--text);
}

.blp-card-finish.is-satin {
  color: var(--accent);
}

.blp-card-price {
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 600;
}

.blp-card-shades {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.selected-product-source {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.selected-product-label {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.selected-product-status {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 0.8rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
  text-align: center;
}

.selected-product-status.is-error {
  border-color: #cf8f83;
  color: #9f2f2f;
  background: #fff3ef;
}

#selectedProductContainer {
  transition: opacity 140ms ease;
}

#selectedProductContainer[hidden] {
  display: none !important;
}

#selectedProductContainer.is-loading {
  pointer-events: none;
}

.selected-product-status.is-loading,
.vto-catalog-status.is-loading {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  overflow: hidden;
  padding: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skeleton-block {
  display: block;
  border-radius: 6px;
  background: linear-gradient(100deg, #f2e9e4 25%, #fbf7f4 42%, #f2e9e4 59%);
  background-size: 220% 100%;
  animation: skeleton-shimmer 1.25s ease-in-out infinite;
}

.product-card-skeleton {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  min-height: 88px;
}

.product-skeleton-media {
  width: 116px;
  height: 88px;
}

.product-skeleton-copy,
.catalog-skeleton-copy {
  display: grid;
  align-content: center;
  gap: 0.55rem;
  min-width: 0;
}

.skeleton-line {
  width: 72%;
  height: 0.7rem;
}

.skeleton-line.is-title {
  width: min(84%, 20rem);
  height: 0.85rem;
}

.skeleton-line.is-price {
  width: min(34%, 6rem);
  height: 0.58rem;
}

.product-skeleton-swatches {
  display: flex;
  gap: 0.55rem;
  padding-top: 0.15rem;
}

.product-skeleton-swatches .skeleton-block {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.catalog-tab-skeleton {
  width: 58px;
  height: 34px;
  flex: 0 0 58px;
  border-radius: 999px;
}

.catalog-tab-skeleton.is-short {
  width: 46px;
  flex-basis: 46px;
}

.catalog-group-skeleton {
  display: grid;
  gap: 0.55rem;
}

.catalog-group-skeleton > .is-category {
  width: 5rem;
  height: 0.68rem;
  margin: 0.25rem 0 0.1rem;
}

.catalog-row-skeleton {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 0.65rem;
  min-height: 62px;
  border: 1px solid #ece2dc;
  border-radius: 10px;
  padding: 0.36rem 0.45rem;
  background: rgba(255, 255, 255, 0.74);
}

.catalog-skeleton-media {
  width: 56px;
  height: 48px;
}

.catalog-skeleton-copy .skeleton-line {
  width: min(72%, 15rem);
}

.catalog-skeleton-copy .skeleton-line.is-price {
  width: min(28%, 4.5rem);
}

.catalog-skeleton-action {
  width: 72px;
  height: 36px;
  border-radius: 10px;
}

@keyframes skeleton-shimmer {
  to {
    background-position-x: -220%;
  }
}

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

.related-products {
  display: grid;
  gap: 0.65rem;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

.related-products[hidden] {
  display: none;
}

.related-products-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.related-products-heading h2 {
  margin: 0;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.related-products-heading span {
  color: var(--muted);
  font-size: 0.7rem;
}

.related-products-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.related-product-card {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.45rem;
  border-radius: 10px;
  background: var(--surface-strong);
  text-align: left;
}

.related-product-card:hover,
.related-product-card:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.related-product-card.is-loading {
  cursor: progress;
  opacity: 1;
  pointer-events: none;
}

.related-product-card.is-loading::before {
  display: none;
  content: none;
}

.related-product-card:active {
  transform: none;
}

.related-product-media {
  display: grid;
  place-items: center;
  width: 3.25rem;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: white;
}

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

.related-product-media.is-placeholder {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 900;
}

.related-product-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.related-product-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: 0.72rem;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-product-copy > span {
  color: var(--accent-strong);
  font-size: 0.68rem;
  font-weight: 700;
}

.blp-variant-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
}

.blp-variant-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 36px;
  width: 100%;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.75rem;
  text-align: left;
}

.blp-variant-option.has-color::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 1px solid rgba(34, 34, 34, 0.16);
  border-radius: 50%;
  background: var(--variant-color);
}

.blp-active-variant-summary {
  display: grid;
  gap: 0.2rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 0.75rem;
}

.blp-variant-option.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  font-weight: 700;
}

.blp-variant-option.is-unavailable {
  opacity: 0.45;
}

.selection-cat {
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 0.25rem;
}

.selection-total {
  border-top: 1px solid var(--line);
  padding-top: 0.6rem;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: right;
}

.selection-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

.selection-actions button {
  width: 100%;
}

.selection-actions button:not(.primary) {
  background: rgba(255, 255, 255, 0.66);
  color: var(--accent-strong);
  font-weight: 700;
}

#addToCartBtn.is-success {
  border-color: #3f9b5f;
  background: #3f9b5f;
  color: white;
  opacity: 1;
}

.cart-count.bump {
  animation: cart-bump 420ms ease;
}

@keyframes cart-bump {
  30% {
    transform: scale(1.5);
  }
}

.selection-thumb {
  width: 2.3rem;
  height: 2.3rem;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.blp-shade {
  width: 1.8rem;
  height: 1.8rem;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(64, 44, 34, 0.18);
}

.blp-shade.is-active {
  box-shadow:
    0 0 0 3px var(--surface-strong),
    0 0 0 5px var(--accent);
}

.blp-shade.is-unavailable {
  opacity: 0.35;
}

.cart-anchor {
  position: relative;
}

.cart-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border-radius: 7px;
  background: white;
  color: var(--accent-strong);
}

.cart-button > svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.cart-count {
  position: absolute;
  top: -0.42rem;
  right: -0.42rem;
  min-width: 1.05rem;
  border-radius: 999px;
  padding: 0.03rem 0.27rem;
  background: #c97e78;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  text-align: center;
}

.cart-dropdown[hidden] {
  /* display: grid below would otherwise override the UA's [hidden] rule
     and leave the dropdown permanently open. */
  display: none;
}

.cart-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  z-index: 40;
  width: 20rem;
  max-height: 24rem;
  overflow-y: auto;
  display: grid;
  gap: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  padding: 0.85rem;
}

.cart-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
  font-weight: 600;
}

.panel,
.preview {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.panel {
  display: grid;
  gap: 0.85rem;
  padding: 0.85rem;
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  scrollbar-gutter: stable;
}

/* The storefront VTO is URL-driven, so the left column only presents the
   selected backend product. Keep the controls mounted for the rendering
   pipeline, but remove them from the visible layout. */
.panel.selected-product-only {
  max-height: none;
  overflow: visible;
  scrollbar-gutter: auto;
}

.panel.selected-product-only > :not(.selected-product-source) {
  display: none !important;
}

.panel.selected-product-only .selected-product-source {
  margin-bottom: 0;
}

.preview {
  position: sticky;
  top: 1rem;
  height: calc(100vh - 6.4rem);
  min-height: 38rem;
}

.control-group {
  display: grid;
  gap: 0.95rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}

.control-group.compact {
  border-bottom: 0;
  padding-bottom: 0;
}

.panel-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.panel-filter button {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.panel-filter button.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

details.control-group[hidden] {
  /* display: block below would otherwise override the UA's [hidden] rule
     and defeat the panel filter. */
  display: none;
}

details.control-group {
  display: block;
}

details.camera-control-group {
  display: none;
}

details.control-group[open] > summary.section-heading {
  margin-bottom: 1rem;
}

details.control-group[open] > :not(summary) + :not(summary) {
  margin-top: 1rem;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

summary.section-heading {
  cursor: pointer;
  list-style: none;
}

summary.section-heading::-webkit-details-marker {
  display: none;
}

summary.section-heading::marker {
  content: "";
}

summary.section-heading::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  flex-shrink: 0;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 150ms ease;
}

details[open] > summary.section-heading::after {
  transform: rotate(-135deg);
}

.section-heading h2 {
  margin: 0;
  font-size: 0.98rem;
}

.section-heading span {
  color: var(--muted);
  font-size: 0.82rem;
}

/* Your look card */
.selection-panel {
  gap: 1rem;
  border-radius: 18px;
  padding: 1.15rem;
  background: rgba(255, 255, 255, 0.94);
}

.selection-panel .selection-panel-heading {
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 0.15rem 0 1rem;
}

.selection-panel .selection-panel-heading h2 {
  font-size: 1.55rem;
  letter-spacing: -0.035em;
}

.selection-summary {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.selection-summary span {
  font-size: 0.78rem;
  white-space: nowrap;
}

.selection-summary strong {
  display: grid;
  place-items: center;
  min-width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #ca817d;
  color: white;
  font-size: 0.92rem;
}

.selection-panel .selection-list {
  gap: 0.9rem;
}

.selection-panel .selection-cat {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 0;
  padding: 0;
  color: #bc7671;
  font-size: 0.9rem;
}

.selection-cat-icon {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  color: currentColor;
  font-size: 1.1rem;
}

.selection-cat-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.selection-look-item {
  grid-template-columns: 4.6rem minmax(0, 1fr) 2.5rem;
  align-items: start;
  gap: 0.8rem;
  border-radius: 16px;
  padding: 0.9rem;
  box-shadow: 0 8px 22px rgba(82, 54, 45, 0.04);
}

.selection-look-item .selection-thumb {
  width: 4.6rem;
  height: 4.6rem;
  border: 0;
  border-radius: 12px;
}

.selection-look-item .selection-info {
  gap: 0.22rem;
  font-size: 0.84rem;
}

.selection-look-item .selection-info a {
  font-size: 0.94rem;
  font-weight: 800;
}

.selection-shade-name {
  color: #bd746f;
  font-size: 0.88rem;
  font-weight: 600;
}

.selection-item-price {
  color: var(--text);
  font-size: 0.95rem;
}

.selection-look-item .selection-quantity {
  grid-template-columns: 2rem 2.4rem 2rem;
  width: fit-content;
  gap: 0.15rem;
  margin-top: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.22rem;
  background: white;
}

.selection-look-item .selection-quantity > span:first-child {
  display: none;
}

.selection-look-item .selection-quantity button {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 8px;
  background: #fbf5f3;
  color: #b96f69;
  font-size: 1.2rem;
}

.selection-look-item .selection-quantity output {
  align-self: center;
  font-size: 0.92rem;
}

.selection-panel .selection-total {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem;
  background: #fffcfa;
  text-align: left;
}

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

.selection-total-icon {
  color: #b7a29a;
  font-size: 1.55rem;
}

.selection-total-copy {
  display: grid;
  gap: 0.15rem;
}

.selection-total-copy strong {
  font-size: 0.95rem;
}

.selection-total-copy small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.selection-total-amount {
  font-size: 1rem;
  white-space: nowrap;
}

.selection-panel .selection-actions {
  gap: 0.65rem;
}

.selection-panel .selection-actions button {
  display: grid;
  grid-template-columns: 1.4rem 1fr 1.4rem;
  align-items: center;
  min-height: 3.4rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
}

.selection-panel #addToCartBtn {
  border: 0;
  background: linear-gradient(110deg, #c97e78, #d48c87);
}

.selection-cart-icon {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.selection-action-icon {
  font-size: 1.5rem;
}

.selection-action-arrow {
  justify-self: end;
  color: white !important;
  font-size: 1.8rem !important;
  line-height: 1;
}

.selection-store-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
}

.selection-store-note svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.selection-store-note strong {
  color: #bc7671;
}

.mobile-cart-close {
  display: none;
}

.subheading {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--line);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.subheading:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.subheading span {
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--muted);
}

.button-row,
.swatches {
  display: flex;
  flex-wrap: wrap;
  /* Wide enough to clear the is-active ring (8px total) with room to spare,
     so an active swatch's ring doesn't collide with its neighbor. */
  gap: 1rem 1.05rem;
}

.button-row button {
  flex: 1 1 9rem;
  min-width: 0;
}

.file-picker {
  display: grid;
  place-items: center;
  min-height: 2.85rem;
  border: 1px dashed rgba(127, 88, 70, 0.48);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  cursor: pointer;
  text-align: center;
}

.file-picker input {
  display: none;
}

.reference-canvas {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(127, 88, 70, 0.1), rgba(255, 255, 255, 0.84)),
    var(--surface-strong);
  cursor: crosshair;
}

.swatch,
.hair-swatch,
.foundation-swatch,
.blush-swatch,
.brow-swatch,
.eyeshadow-swatch {
  width: 2.2rem;
  height: 2.2rem;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(64, 44, 34, 0.18);
}

.swatch-none {
  width: auto;
  min-width: 3.25rem;
  padding: 0 0.7rem;
  background: var(--surface-strong) !important;
  color: var(--muted) !important;
  font-size: 0.78rem;
  font-weight: 700;
}

.swatch.is-active,
.hair-swatch.is-active,
.foundation-swatch.is-active,
.blush-swatch.is-active,
.brow-swatch.is-active,
.eyeshadow-swatch.is-active {
  box-shadow:
    0 0 0 3px var(--surface-strong),
    0 0 0 5px var(--accent);
}

.inline-field,
.slider-field,
.select-field,
.toggle-field {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.toggle-field {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.6rem;
}

.toggle-field input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
}

.toggle-field strong {
  color: var(--text);
}

.inline-field {
  grid-template-columns: auto 3.6rem 1fr;
  align-items: center;
}

.inline-field strong,
.slider-field strong {
  color: var(--text);
}

.inline-field input[type="color"] {
  width: 3.3rem;
  height: 2.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.slider-field span {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.select-field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 0.75rem;
  background: var(--surface-strong);
  color: var(--text);
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.45;
}

.preview {
  overflow: hidden;
}

.mobile-editor-ui {
  display: none;
}

.mobile-brand-splash {
  display: none;
}

.mobile-sheet-backdrop,
.mobile-sheet-handle,
.mobile-sheet-header,
.mobile-sheet-close {
  display: none;
}

.brand-splash {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  place-items: center;
  padding: 2rem;
  background:
    radial-gradient(circle at 50% 42%, #fffdf9 0, #f3e8d7 40%, transparent 41%),
    linear-gradient(135deg, #f9f2e6 0%, #e9d5ba 54%, #cfb391 100%);
}

.show-brand-splash .brand-splash {
  display: grid;
}

.brand-splash img {
  width: min(46vw, 30rem);
  max-width: 78%;
  filter: drop-shadow(0 20px 42px rgba(64, 44, 34, 0.18));
}

.canvas-shell {
  --comparison-position: 50%;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 100%;
  height: 100%;
  background:
    linear-gradient(45deg, rgba(127, 88, 70, 0.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(127, 88, 70, 0.08) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(127, 88, 70, 0.08) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(127, 88, 70, 0.08) 75%),
    #f4edf0;
  background-position:
    0 0,
    0 12px,
    12px -12px,
    -12px 0;
  background-size: 24px 24px;
}

#cameraVideo {
  display: none;
}

#beforeCanvas,
#outputCanvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#beforeCanvas {
  position: relative;
  z-index: 0;
}

#outputCanvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  clip-path: inset(0 0 0 var(--comparison-position));
  will-change: clip-path;
}

.comparison-label {
  position: absolute;
  top: 1rem;
  z-index: 4;
  padding: 0.42rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  background: rgba(22, 20, 20, 0.62);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 1;
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(8px);
}

.comparison-label-before {
  left: 1rem;
}

.comparison-label-after {
  right: 1rem;
}

.comparison-label.is-hidden {
  opacity: 0;
  transform: translateY(-0.35rem);
}

.comparison-slider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--comparison-position);
  z-index: 4;
  width: 44px;
  min-width: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #383230;
  box-shadow: none;
  cursor: ew-resize;
  touch-action: none;
  transform: translateX(-50%);
}

.comparison-slider:hover,
.comparison-slider:active {
  background: transparent;
  box-shadow: none;
  transform: translateX(-50%);
}

.comparison-slider:focus-visible {
  outline: 3px solid rgba(239, 36, 87, 0.72);
  outline-offset: -3px;
}

.comparison-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 0 1px rgba(33, 26, 24, 0.18);
  transform: translateX(-50%);
  pointer-events: none;
}

.comparison-handle {
  position: absolute;
  bottom: 3.5rem;
  left: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 36px;
  border: 1px solid rgba(56, 50, 48, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 22px rgba(31, 24, 22, 0.22);
  transform: translateX(-50%);
  pointer-events: none;
}

.comparison-handle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.show-brand-splash .comparison-label,
.show-brand-splash .comparison-slider {
  display: none;
}

.empty-state {
  position: absolute;
  inset: auto 1rem 1rem;
  z-index: 5;
  display: grid;
  gap: 0.2rem;
  max-width: 24rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.8rem 0.95rem;
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.empty-state strong {
  color: var(--text);
}

.empty-state.is-hidden {
  display: none;
}

.loading-state {
  position: absolute;
  inset: auto 1rem 1rem;
  z-index: 5;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.75rem;
  max-width: 25rem;
  border: 1px solid rgba(127, 88, 70, 0.28);
  border-radius: 8px;
  padding: 0.85rem 0.95rem;
  background: rgba(255, 255, 255, 0.93);
  color: var(--muted);
  backdrop-filter: blur(10px);
}

.loading-state[hidden] {
  display: none;
}

.loading-state strong {
  color: var(--text);
}

.loading-state span:last-child {
  grid-column: 2;
}

.loading-spinner {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid rgba(127, 88, 70, 0.22);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: spin 780ms linear infinite;
}

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

.preview-footer {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: block;
  border-top: 0;
  padding: 0;
  pointer-events: none;
  color: var(--muted);
  font-size: 0.88rem;
}

.preview-footer-actions {
  display: contents;
}

#trackingStatus {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  width: fit-content;
  max-width: min(18rem, calc(100vw - 9rem));
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 0.28rem 0.52rem;
  background: rgba(255, 255, 255, 0.86);
  color: rgba(34, 34, 34, 0.72);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  pointer-events: none;
}

#trackingStatus::before {
  content: "";
  width: 0.48rem;
  height: 0.48rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #aaa09a;
}

#trackingStatus[data-state="ready"]::before {
  background: #31bd69;
  box-shadow: 0 0 0 3px rgba(49, 189, 105, 0.15);
}

#trackingStatus[data-state="loading"]::before {
  background: #d99a3d;
  animation: status-pulse 1.1s ease-in-out infinite;
}

#trackingStatus[data-state="warn"]::before {
  background: #cf5d55;
  box-shadow: 0 0 0 3px rgba(207, 93, 85, 0.14);
}

#trackingStatus:empty {
  display: none;
}

.desktop-mirror-copy {
  display: grid;
  flex: 1 1 auto;
  justify-items: start;
  gap: 0.42rem;
  min-width: 0;
}

.desktop-mirror-title {
  line-height: 1.25;
  text-transform: none;
  overflow-wrap: anywhere;
}

.desktop-mirror-status {
  flex: 0 0 auto;
  white-space: nowrap;
}

.benefit-copy strong,
.benefit-copy small {
  display: block;
}

.benefit-copy strong {
  font-size: 1em;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.benefit-copy small {
  margin-top: 0.18rem;
  color: inherit;
  font-size: 0.9em;
  font-weight: 400;
  line-height: 1.2;
}

#fpsStatus {
  position: static;
  border-left: 1px solid rgba(127, 88, 70, 0.18);
  padding-left: 0.45rem;
  color: rgba(34, 34, 34, 0.58);
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.preview-save {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  padding: 0;
  border-color: var(--accent);
  background: var(--accent);
  color: white;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  pointer-events: auto;
  box-shadow: 0 14px 28px rgba(64, 44, 34, 0.22);
}

@media (max-width: 1280px) {
  .studio {
    grid-template-columns: 360px minmax(0, 1fr);
  }

  /* Selection panel drops below the preview as a full-width row. */
  .selection-panel {
    grid-column: 1 / -1;
    position: static;
  }
}

@media (max-width: 980px) {
  .studio {
    grid-template-columns: 1fr;
  }

  .panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: static;
    max-height: none;
    overflow-y: visible;
  }

  .related-products-list {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .related-products-list::-webkit-scrollbar {
    display: none;
  }

  .related-product-card {
    grid-template-columns: 1fr;
    align-content: start;
    flex: 0 0 8.25rem;
    scroll-snap-align: start;
  }

  .related-product-media {
    width: 100%;
  }

  .preview {
    position: static;
  }

  .control-group {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1rem;
  }

  .control-group.compact {
    border: 1px solid var(--line);
  }
}

@media (max-width: 820px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  body {
    background: var(--surface);
  }

  /* Mobile has its own feature rail; the desktop filter chips would fight
     the sheet's own per-section open/close logic. */
  .panel-filter {
    display: none;
  }

  .app-shell {
    padding: 0;
  }

  .topbar {
    display: none;
  }

  .studio {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  body.mobile-sheet-open,
  body.mobile-cart-open {
    overflow: hidden;
  }

  .preview {
    order: -1;
    position: relative;
    top: auto;
    min-height: 100svh;
    border: 0;
    border-radius: 0;
    background: #111;
    box-shadow: none;
  }

  .canvas-shell {
    min-height: 100svh;
    height: 100svh;
    background:
      linear-gradient(45deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%),
      linear-gradient(-45deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%),
      linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.06) 75%),
      linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.06) 75%),
      #2a2a2d;
    background-position:
      0 0,
      0 12px,
      12px -12px,
      -12px 0;
    background-size: 24px 24px;
  }

  #beforeCanvas,
  #outputCanvas {
    height: 100svh;
    object-fit: cover;
  }

  .comparison-label {
    top: calc(4.9rem + env(safe-area-inset-top));
    z-index: 2;
  }

  .comparison-slider {
    z-index: 2;
  }

  .comparison-handle {
    bottom: calc(8.5rem + env(safe-area-inset-bottom));
  }

  .preview-footer {
    display: none;
  }

  .mobile-editor-ui {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: block;
    color: white;
    pointer-events: none;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.42);
  }

  .brand-splash {
    display: none !important;
  }

  .mobile-editor-top {
    position: absolute;
    top: calc(1rem + env(safe-area-inset-top));
    right: 1rem;
    left: 1rem;
    z-index: 2;
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr) 3rem;
    align-items: center;
    gap: 0.55rem;
    pointer-events: auto;
  }

  .mobile-icon-button,
  .mobile-capture,
  .mobile-shutter,
  .mobile-cart-button {
    border: 0;
    color: white;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  }

  .mobile-feature-button,
  .mobile-tool-button {
    border: 0;
    color: white;
    box-shadow: none;
  }

  .mobile-icon-button {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.82);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.22);
    font-size: 2.4rem;
    line-height: 1;
  }

  .mobile-icon-button svg {
    width: 1.55rem;
    height: 1.55rem;
    fill: rgba(255, 255, 255, 0.18);
    stroke: currentColor;
    stroke-width: 1.7;
  }

  .mobile-title {
    grid-column: 2;
    display: grid;
    justify-items: center;
    min-width: 0;
    line-height: 1.1;
  }

  .mobile-title strong {
    font-size: 0.92rem;
  }

  .mobile-title span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .mobile-brand-splash {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: none;
    place-items: center;
    padding: 2rem 5.6rem 2rem 1.25rem;
    background:
      radial-gradient(circle at 42% 38%, #fffdf9 0, #f0e3d0 44%, transparent 45%),
      linear-gradient(180deg, #faf3e8 0%, #ead6bb 58%, #cfb391 100%);
  }

  .show-brand-splash .mobile-brand-splash {
    display: grid;
  }

  .mobile-brand-splash img {
    width: min(66vw, 17rem);
    max-height: 36vh;
    filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.18));
  }

  .mobile-capture {
    grid-column: 3;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    padding: 0;
    background: #ef2457;
  }

  .mobile-capture svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
  }

  .mobile-feature-rail {
    position: absolute;
    top: 16%;
    right: 0.55rem;
    z-index: 2;
    display: grid;
    gap: 0.5rem;
    width: 4.6rem;
    pointer-events: auto;
  }

  .mobile-feature-button,
  .mobile-tool-button {
    display: grid;
    justify-items: center;
    gap: 0.2rem;
    min-width: 0;
    padding: 0.3rem 0.25rem;
    background: transparent;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.05;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.42);
  }

  .feature-icon {
    display: grid;
    place-items: center;
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    color: white;
    font-size: 1.28rem;
    font-weight: 900;
  }

  .mobile-feature-button.is-active .feature-icon,
  .mobile-tool-button.is-active .feature-icon {
    background: #ef2457;
  }

  .mobile-bottom-tools {
    position: absolute;
    right: 1rem;
    bottom: calc(1.25rem + env(safe-area-inset-bottom));
    left: 1rem;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    gap: 1rem;
    pointer-events: auto;
  }

  .mobile-shutter {
    grid-column: 2;
    justify-self: center;
    display: grid;
    place-items: center;
    width: 6.5rem;
    height: 6.5rem;
    padding: 0;
    border: 8px solid rgba(239, 36, 87, 0.38);
    border-radius: 999px;
    background:
      radial-gradient(circle at center, #ef2457 0 58%, rgba(239, 36, 87, 0.18) 59% 100%);
    font-size: 0.95rem;
    font-weight: 900;
  }

  .mobile-variant-picker {
    grid-column: 2;
    justify-self: center;
    display: none;
    place-items: center;
    align-content: center;
    gap: 0.35rem;
    width: 6.5rem;
    height: 6.5rem;
    border: 8px solid rgba(239, 36, 87, 0.38);
    border-radius: 999px;
    padding: 0;
    background:
      radial-gradient(circle at center, #ef2457 0 58%, rgba(239, 36, 87, 0.18) 59% 100%);
    color: white;
    font-size: 0.72rem;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  }

  .mobile-variant-picker svg {
    width: 1.7rem;
    height: 1.7rem;
    fill: rgba(255, 255, 255, 0.18);
    stroke: currentColor;
    stroke-width: 1.7;
  }

  .camera-active .mobile-shutter {
    display: none;
  }

  .camera-active .mobile-variant-picker {
    display: grid;
  }

  .mobile-shutter:disabled {
    cursor: default;
    opacity: 1;
  }

  .mobile-cart-button {
    position: relative;
    grid-column: 3;
    justify-self: end;
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 0.35rem;
    border: 2px solid rgba(255, 255, 255, 0.82);
    border-radius: 999px;
    padding: 0;
    background: rgba(0, 0, 0, 0.32);
  }

  .mobile-cart-button svg {
    width: 1.55rem;
    height: 1.55rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }

  .mobile-cart-button span {
    position: absolute;
    top: -0.4rem;
    right: -0.35rem;
    display: grid;
    place-items: center;
    min-width: 1.45rem;
    height: 1.45rem;
    border: 2px solid white;
    border-radius: 999px;
    padding: 0 0.28rem;
    background: #ef2457;
    color: white;
    font-size: 0.7rem;
    font-weight: 900;
    line-height: 1;
  }

  .mobile-upload {
    cursor: pointer;
  }

  .panel {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 8;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    max-height: min(52svh, 28rem);
    margin: 0;
    border: 0;
    border-radius: 24px 24px 0 0;
    padding: 0.55rem 1rem calc(1.15rem + env(safe-area-inset-bottom));
    background: var(--surface);
    box-shadow: 0 -16px 36px rgba(64, 44, 34, 0.16);
    overflow-y: auto;
    overscroll-behavior: contain;
    pointer-events: none;
    transform: translateY(calc(100% + 1rem));
    transition: transform 220ms ease;
  }

  .mobile-sheet-open .panel {
    pointer-events: auto;
    transform: translateY(0);
  }

  body[data-mobile-sheet="variants"] .panel.selected-product-only {
    max-height: min(78svh, 42rem);
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: auto;
  }

  body[data-mobile-sheet="camera"] .panel,
  body[data-mobile-sheet="beautify"] .panel {
    max-height: min(36svh, 19rem);
  }

  body[data-mobile-sheet="lip"] .panel,
  body[data-mobile-sheet="eyes"] .panel {
    max-height: min(64svh, 36rem);
  }

  body[data-mobile-sheet="base"] .panel,
  body[data-mobile-sheet="sculpt"] .panel,
  body[data-mobile-sheet="finish"] .panel {
    max-height: min(58svh, 31rem);
  }

  .mobile-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 7;
    display: block;
    background: rgba(36, 25, 28, 0.32);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .mobile-sheet-open .mobile-sheet-backdrop,
  .mobile-cart-open .mobile-sheet-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .selection-panel {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 8;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    gap: 0.8rem;
    width: auto;
    max-height: min(78dvh, 42rem);
    margin: 0;
    border: 0;
    border-radius: 24px 24px 0 0;
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
    background: var(--surface);
    box-shadow: 0 -16px 36px rgba(64, 44, 34, 0.2);
    overflow: hidden;
    overscroll-behavior: contain;
    pointer-events: none;
    transform: translateY(calc(100% + 1rem));
    transition: transform 220ms ease;
  }

  .mobile-cart-open .selection-panel {
    pointer-events: auto;
    transform: translateY(0);
  }

  .selection-panel .selection-panel-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.65rem;
    padding: 0 0 0.8rem;
  }

  .selection-panel .selection-panel-heading h2 {
    font-size: 1.3rem;
  }

  .selection-panel .selection-summary span {
    display: none;
  }

  .mobile-cart-close {
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: rgba(36, 25, 28, 0.08);
    color: var(--text);
    font-size: 1.55rem;
    line-height: 1;
  }

  .selection-panel .selection-list {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .selection-panel .selection-actions,
  .selection-panel .selection-store-note {
    flex-shrink: 0;
  }

  .mobile-sheet-handle {
    display: block;
    width: 2.8rem;
    height: 0.28rem;
    margin: 0 auto 0.15rem;
    border-radius: 999px;
    background: rgba(116, 97, 104, 0.28);
  }

  .mobile-sheet-header {
    position: sticky;
    top: -0.55rem;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 -0.1rem 0.25rem;
    border-bottom: 1px solid var(--line);
    padding: 0.35rem 0 0.7rem;
    background: linear-gradient(180deg, var(--surface) 0%, rgba(255, 255, 255, 0.94) 100%);
  }

  .mobile-sheet-header > div:first-child {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
  }

  .mobile-sheet-header span {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .mobile-sheet-header h2 {
    margin: 0;
    color: var(--text);
    font-size: 1.18rem;
    line-height: 1.05;
  }

  .mobile-sheet-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
    flex-wrap: nowrap;
    width: max-content;
    white-space: nowrap;
  }

  .mobile-sheet-reset {
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: rgba(36, 25, 28, 0.08);
    color: var(--accent-strong);
    font-size: 1.12rem;
    font-weight: 900;
  }

  .mobile-sheet-close {
    display: grid;
    place-items: center;
    width: auto;
    min-width: 4.75rem;
    margin: 0;
    border: 0;
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    background: rgba(127, 88, 70, 0.12);
    color: var(--accent-strong);
    font-size: 0.82rem;
    font-weight: 800;
  }

  .panel > .control-group {
    display: none;
  }

  .panel > .control-group.is-mobile-active {
    display: block;
  }

  .panel > .control-group.is-mobile-active > summary.section-heading {
    display: none;
  }

  .control-group {
    border: 0;
    padding: 0.25rem 0 0;
    background: transparent;
  }

  .loading-state,
  .empty-state {
    right: 5.5rem;
    bottom: 8.25rem;
    left: 1rem;
  }

  .loading-state {
    z-index: 6;
    right: 1rem;
    bottom: calc(8.5rem + env(safe-area-inset-bottom));
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
  }

  .camera-loading .mobile-feature-rail,
  .camera-loading .mobile-editor-top {
    opacity: 0.55;
  }

}

/* Configuration is authored in RedPumpkin Suite. The public VTO is a
   read-only consumer; keep the controls mounted for the rendering engine. */
.panel.selected-product-only > .panel-filter,
.panel.selected-product-only > details.control-group:not([data-panel-key="camera"]),
.panel.selected-product-only > section.control-group.compact {
  display: none !important;
}

.mobile-feature-rail,
.mobile-bottom-tools > .mobile-tool-button {
  display: none !important;
}

/* 2026 BLP visual refresh. The AR and commerce controls above remain the
   source of truth; this layer only reshapes them into the brand layout. */
:root {
  --bg: #f1eef4;
  --surface: #faf8f5;
  --surface-strong: #ffffff;
  --text: #562f27;
  --muted: #806e69;
  --line: #ded5d1;
  --accent: #9c3e59;
  --accent-strong: #562f27;
  --accent-soft: #f5e9ec;
  --shadow: 0 14px 34px rgba(86, 47, 39, 0.09);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Lato", ui-sans-serif, system-ui, sans-serif;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

.app-shell {
  width: 100%;
  padding: 0;
}

.topbar {
  height: 64px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0 1.5rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
}

.topbar-brand {
  gap: 1rem;
}

.topbar-logo {
  width: 58px;
  height: 28px;
  object-fit: contain;
}

.topbar-divider {
  width: 1px;
  height: 28px;
  background: var(--line);
}

.topbar h1 {
  color: var(--muted);
  font-family: "Lato", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.topbar-camera-action {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.studio {
  grid-template-columns: minmax(0, 1fr) 420px;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0;
  height: calc(100vh - 64px);
  min-height: 0;
  background: var(--surface);
}

.preview {
  grid-column: 1;
  grid-row: 1 / 3;
  position: relative;
  top: auto;
  height: 100%;
  min-height: 0;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.panel.selected-product-only {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  top: auto;
  align-content: start;
  min-height: 0;
  max-height: none;
  border: 0;
  border-radius: 0;
  padding: 1.4rem 1.35rem 1rem;
  background: var(--surface);
  box-shadow: none;
  overflow-x: hidden;
  overflow-y: auto;
}

.selection-panel {
  grid-column: 2;
  grid-row: 2;
  position: relative;
  top: auto;
  gap: 0.55rem;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 0.8rem 1.35rem 1rem;
  background: var(--surface);
  box-shadow: 0 -8px 18px rgba(86, 47, 39, 0.04);
}

.selected-product-source {
  gap: 1rem;
}

.selected-product-label {
  color: var(--text);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}

.blp-card {
  grid-template-columns: 112px minmax(0, 1fr);
  grid-template-rows: auto auto auto 1fr;
  column-gap: 1rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0 0 1.1rem;
  background: transparent;
}

.blp-card-gallery {
  grid-column: 1;
  grid-row: 1 / 5;
  grid-template-columns: 1fr;
}

.blp-card-image-button img {
  aspect-ratio: 0.82;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  background: white;
}

.blp-card-title {
  grid-column: 2;
  align-self: end;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
}

.blp-card-meta,
.blp-active-variant-summary,
.blp-card-shades {
  grid-column: 2;
}

.blp-card-meta {
  flex-wrap: wrap;
}

.blp-card-price {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
}

.blp-card-finish {
  border-color: var(--line) !important;
  background: transparent !important;
  color: var(--muted) !important;
  font-weight: 600;
  text-transform: none;
}

.blp-variant-options {
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 0.7rem;
  margin-top: 0;
  padding-top: 0.25rem;
  padding-bottom: 0.4rem;
  border-top: 0;
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.blp-variant-options::-webkit-scrollbar {
  display: none;
}

.blp-shade-title {
  grid-column: 1 / -1;
  margin: 0.45rem 0 0;
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.blp-variant-option {
  display: grid;
  justify-items: center;
  gap: 0.38rem;
  flex: 0 0 58px;
  width: 58px;
  min-height: 72px;
  border: 0;
  padding: 0;
  background: transparent !important;
  font-size: 0.66rem;
  line-height: 1.15;
  text-align: center;
  scroll-snap-align: start;
}

.blp-variant-option.has-color::before {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  border: 3px solid white;
  box-shadow: 0 0 0 1px var(--line);
}

.blp-variant-option.is-active {
  color: var(--accent);
}

.blp-variant-option.is-active.has-color::before {
  box-shadow: 0 0 0 2px white, 0 0 0 4px var(--accent);
}

.related-products {
  gap: 0.7rem;
  padding-top: 0.9rem;
}

.related-products-heading h2 {
  font-size: 0.75rem;
}

.related-products-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  padding-bottom: 0.3rem;
  overflow: visible;
}

.related-product-card {
  grid-template-columns: 1fr;
  align-content: start;
  gap: 0.45rem;
  width: 100%;
  min-height: 170px;
  border: 0;
  border-radius: 6px;
  padding: 0.55rem;
  background: white;
}

.related-product-media {
  width: 100%;
  aspect-ratio: 1.55;
  border-radius: 2px;
}

.related-product-media img {
  object-fit: contain;
}

.related-product-copy strong {
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.mobile-explore-trigger {
  display: none;
}

.selection-panel .selection-panel-heading {
  border: 0;
  padding: 0;
}

.selection-panel .selection-panel-heading h2 {
  font-size: 1rem;
}

.selection-panel .selection-total,
.selection-store-note {
  display: none !important;
}

.selection-panel .selection-list {
  display: grid;
}

.selection-panel .selection-cat {
  display: none;
}

.selection-panel .selection-look-item {
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 0.7rem;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.selection-panel .selection-look-item .selection-thumb {
  width: 48px;
  height: 48px;
  border-radius: 2px;
  object-fit: contain;
  background: white;
}

.selection-panel .selection-look-item .selection-quantity {
  display: none;
}

.selection-panel #addToCartBtn {
  min-height: 42px;
  border-radius: 6px;
  background: var(--accent-strong);
}

.comparison-label {
  top: 1rem;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  background: rgba(55, 50, 49, 0.7);
  color: white;
  font-size: 0.67rem;
  letter-spacing: 0;
  text-transform: none;
}

.comparison-handle {
  bottom: 4.6rem;
  width: 34px;
  height: 34px;
}

.brand-splash {
  background: var(--bg);
}

.brand-splash img {
  width: min(20vw, 180px);
  filter: none;
}

.preview-reset,
.preview-save {
  bottom: 1.1rem;
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  width: auto;
  height: auto;
  border: 0;
  padding: 0;
  background: transparent;
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  box-shadow: none;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
  pointer-events: auto;
}

.preview-reset {
  position: absolute;
  left: 1.2rem;
}

.preview-reset > span:first-child,
.preview-save .icon-camera {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid white;
  border-radius: 50%;
  background: rgba(50, 42, 40, 0.35);
  font-size: 1.4rem;
}

.preview-save {
  right: 1.2rem;
}

.preview-save:hover,
.preview-reset:hover {
  background: transparent;
  transform: none;
}

@media (max-width: 980px) and (min-width: 821px) {
  .studio {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
}

@media (min-width: 821px) {
  .panel.selected-product-only {
    height: 100%;
    overflow: hidden;
  }

  .selected-product-source {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }

  .selected-product-status {
    grid-row: 1;
  }

  #selectedProductContainer {
    grid-row: 2;
  }

  .related-products {
    grid-row: 3;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
    overflow: hidden;
  }

  .related-products-list {
    align-content: start;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: scroll;
    overscroll-behavior: contain;
    padding-right: 0.3rem;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    touch-action: pan-y;
  }
}

@media (max-width: 820px) {
  body {
    background: var(--bg);
  }

  .studio {
    height: 100svh;
    min-height: 0;
  }

  .preview {
    min-height: 100svh;
    border: 0;
  }

  .canvas-shell,
  #beforeCanvas,
  #outputCanvas {
    height: 100svh;
    min-height: 100svh;
  }

  .mobile-editor-top {
    top: 0;
    right: 0;
    left: 0;
    height: calc(58px + env(safe-area-inset-top));
    grid-template-columns: 3rem 1fr 3rem;
    padding: env(safe-area-inset-top) 0.75rem 0;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--line);
    text-shadow: none;
  }

  .mobile-title img {
    display: block;
    width: 48px;
    height: 30px;
    object-fit: contain;
  }

  .mobile-capture {
    position: fixed;
    right: 1rem;
    bottom: calc(43svh + env(safe-area-inset-bottom));
    width: 44px;
    height: 44px;
    border: 1px solid white;
    background: rgba(86, 47, 39, 0.78);
  }

  .mobile-cart-button {
    position: fixed;
    top: calc(9px + env(safe-area-inset-top));
    right: 0.75rem;
    bottom: auto;
    width: 40px;
    height: 40px;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    box-shadow: none;
  }

  .mobile-cart-button span {
    top: 0;
    right: -0.15rem;
    background: var(--accent-strong);
  }

  .comparison-label {
    top: calc(70px + env(safe-area-inset-top));
  }

  .comparison-handle {
    bottom: calc(45svh + env(safe-area-inset-bottom));
  }

  .mobile-brand-splash {
    padding: 4rem 4rem 9rem;
    background: var(--bg);
  }

  .mobile-brand-splash img {
    width: min(38vw, 120px);
    filter: none;
  }

  .mobile-bottom-tools {
    right: 1rem;
    bottom: calc(43svh + env(safe-area-inset-bottom));
    left: 1rem;
    grid-template-columns: 1fr auto 1fr;
  }

  .mobile-bottom-tools > .mobile-reset {
    grid-column: 1;
    justify-self: start;
    display: grid !important;
    color: white;
  }

  .mobile-reset .feature-icon {
    border: 1px solid white;
    background: rgba(50, 42, 40, 0.35);
  }

  .mobile-shutter {
    width: 72px;
    height: 72px;
    border: 6px solid rgba(156, 62, 89, 0.25);
    background: radial-gradient(circle, var(--accent) 0 58%, rgba(156, 62, 89, 0.2) 59% 100%);
  }

  .mobile-variant-picker {
    display: none !important;
  }

  .tryon-active .panel.selected-product-only,
  .mobile-sheet-open .panel.selected-product-only {
    display: grid;
    pointer-events: auto;
    transform: translateY(0);
  }

  .panel.selected-product-only {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    max-height: min(41svh, 25rem);
    border-radius: 12px 12px 0 0;
    padding: 0.45rem 0.85rem calc(4.8rem + env(safe-area-inset-bottom));
    background: var(--surface);
    overflow-y: auto;
  }

  .panel.selected-product-only > .mobile-sheet-handle {
    display: block !important;
  }

  .panel.selected-product-only > .mobile-sheet-header {
    display: none !important;
  }

  .panel.selected-product-only > .selected-product-source {
    display: grid !important;
  }

  .selected-product-label {
    display: none;
  }

  .selected-product-source {
    gap: 0.55rem;
  }

  .blp-card {
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 0.75rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.7rem;
  }

  .blp-card-gallery {
    grid-row: 1 / 4;
  }

  .blp-card-image-button img {
    aspect-ratio: 0.9;
  }

  .blp-card-title {
    font-size: 0.83rem;
  }

  .blp-card-price {
    font-size: 0.76rem;
  }

  .blp-card-finish {
    font-size: 0.58rem;
  }

  .blp-variant-options {
    grid-column: 1 / -1;
    gap: clamp(0.35rem, 3vw, 0.8rem);
    margin-top: 0;
    padding-top: 0.2rem;
    justify-content: flex-start;
  }

  .blp-shade-title {
    margin-top: 0.15rem;
    padding-top: 0.65rem;
  }

  .blp-variant-option {
    flex-basis: 54px;
    width: 54px;
    min-height: 62px;
  }

  .blp-variant-option.has-color::before {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .mobile-explore-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: 0;
    padding: 0.25rem 0;
    background: transparent;
    color: var(--text);
    text-align: left;
  }

  .mobile-explore-trigger > span:first-child {
    display: grid;
    gap: 0.05rem;
  }

  .mobile-explore-trigger strong {
    font-size: 0.75rem;
    text-transform: uppercase;
  }

  .mobile-explore-trigger small {
    color: var(--muted);
    font-size: 0.67rem;
  }

  .related-products {
    display: none;
  }

  body[data-mobile-sheet="variants"] .panel.selected-product-only {
    max-height: min(52svh, 34rem);
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  }

  body[data-mobile-sheet="variants"] .panel.selected-product-only > .mobile-sheet-header {
    display: flex !important;
    border: 0;
    padding-bottom: 0.45rem;
    background: var(--surface);
  }

  body[data-mobile-sheet="variants"] .mobile-sheet-header > div:first-child {
    display: flex;
    flex-direction: column-reverse;
  }

  body[data-mobile-sheet="variants"] .mobile-sheet-header h2 {
    font-size: 1rem;
    text-transform: uppercase;
  }

  body[data-mobile-sheet="variants"] .mobile-sheet-header {
    padding-left: 3rem;
  }

  body[data-mobile-sheet="variants"] .mobile-sheet-actions {
    position: absolute;
    left: 0;
  }

  body[data-mobile-sheet="variants"] .mobile-sheet-reset {
    display: none;
  }

  body[data-mobile-sheet="variants"] .mobile-sheet-close {
    min-width: 38px;
    width: 38px;
    height: 38px;
    padding: 0;
    background: transparent;
    color: var(--text);
  }

  body[data-mobile-sheet="variants"] .mobile-sheet-close svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }

  body[data-mobile-sheet="variants"] #selectedProductContainer,
  body[data-mobile-sheet="variants"] .mobile-explore-trigger,
  body[data-mobile-sheet="variants"] .selected-product-status {
    display: none !important;
  }

  body[data-mobile-sheet="variants"] .related-products:not([hidden]) {
    display: grid;
    border: 0;
    padding-top: 0;
  }

  body[data-mobile-sheet="variants"] .related-products-heading {
    display: none;
  }

  body[data-mobile-sheet="variants"] .related-products-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    overflow: visible;
  }

  body[data-mobile-sheet="variants"] .related-product-card {
    min-height: 142px;
  }

  .tryon-active .selection-panel {
    display: block;
    pointer-events: auto;
    transform: translateY(0);
  }

  .selection-panel {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9;
    max-height: none;
    border: 0;
    border-radius: 0;
    padding: 0.55rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom));
    background: var(--surface);
    box-shadow: none;
  }

  .selection-panel .selection-panel-heading,
  .selection-panel .selection-list,
  .selection-panel .selection-total,
  .selection-panel .selection-store-note {
    display: none !important;
  }

  .selection-panel #addToCartBtn {
    min-height: 42px;
  }

  body[data-mobile-sheet="variants"] .selection-panel {
    transform: translateY(calc(100% + 1rem));
    pointer-events: none;
  }

  .mobile-sheet-open .mobile-sheet-backdrop {
    opacity: 0;
    pointer-events: none;
  }

  .preview-footer {
    display: none;
  }

  .empty-state,
  .loading-state {
    right: 1rem;
    bottom: calc(45svh + env(safe-area-inset-bottom));
  }

  .show-brand-splash .panel,
  .show-brand-splash .selection-panel,
  .show-brand-splash .mobile-reset,
  .show-brand-splash .mobile-capture,
  .show-brand-splash .mobile-cart-button {
    display: none !important;
  }

  .show-brand-splash .mobile-bottom-tools {
    bottom: calc(1.25rem + env(safe-area-inset-bottom));
  }
}

/* Mobile panels stay collapsed during try-on. The center Product control
   restores the earlier interaction pattern and toggles the primary sheet. */
@media (max-width: 820px) {
  .panel.selected-product-only {
    transition:
      transform 220ms ease,
      height 320ms cubic-bezier(0.22, 1, 0.36, 1),
      max-height 320ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .mobile-sheet-handle {
    border: 0;
    padding: 0;
    cursor: pointer;
  }

  body.tryon-active:not(.mobile-sheet-open) .panel.selected-product-only,
  body.tryon-active:not(.mobile-sheet-open) .selection-panel {
    pointer-events: none;
    transform: translateY(calc(100% + 1rem));
  }

  .tryon-active .mobile-variant-picker {
    display: grid !important;
    width: 72px;
    height: 72px;
    border: 6px solid rgba(156, 62, 89, 0.25);
    background: radial-gradient(circle, var(--accent) 0 58%, rgba(156, 62, 89, 0.2) 59% 100%);
  }

  .mobile-capture,
  .mobile-bottom-tools {
    bottom: calc(1.25rem + env(safe-area-inset-bottom));
    transition: bottom 320ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .comparison-handle {
    bottom: calc(5.6rem + env(safe-area-inset-bottom));
    transition: bottom 320ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .mobile-sheet-open .mobile-capture,
  .mobile-sheet-open .mobile-bottom-tools {
    bottom: calc(43svh + env(safe-area-inset-bottom));
  }

  .mobile-sheet-open .mobile-variant-picker {
    display: none !important;
  }

  .mobile-sheet-open .comparison-handle {
    bottom: calc(45svh + env(safe-area-inset-bottom));
  }

  body[data-mobile-sheet="variants"] .mobile-capture,
  body[data-mobile-sheet="variants"] .mobile-bottom-tools {
    bottom: calc(54svh + env(safe-area-inset-bottom));
  }

  body[data-mobile-sheet="variants"] .comparison-handle {
    bottom: calc(56svh + env(safe-area-inset-bottom));
  }

  .empty-state,
  .loading-state {
    bottom: calc(7.5rem + env(safe-area-inset-bottom));
  }

  body[data-mobile-sheet="product"] .selection-panel {
    display: block;
    pointer-events: auto;
    transform: translateY(0);
  }

  body[data-mobile-sheet="product"] .panel.selected-product-only {
    height: min(41svh, 25rem);
  }

  body[data-mobile-sheet="variants"] .panel.selected-product-only {
    height: min(52svh, 34rem);
  }
}

@media (min-width: 821px) {
  .selected-product-label {
    display: none;
  }

  .blp-card {
    grid-template-columns: 120px minmax(0, 1fr);
    grid-template-rows: auto auto auto auto auto;
    column-gap: 1.1rem;
  }

  .blp-card-gallery {
    grid-row: 1 / 4;
  }

  .blp-card-title {
    align-self: end;
    font-size: 1.05rem;
  }

  .blp-shade-title {
    grid-column: 1 / -1;
    grid-row: 4;
    margin-top: 0.45rem;
  }

  .blp-card-shades {
    grid-column: 1 / -1;
    grid-row: 5;
    margin-top: 0;
    padding-top: 0.25rem;
  }

  .related-products {
    margin-top: 0.5rem;
    border-top: 0;
    padding-top: 0.8rem;
  }

  .related-products-list {
    grid-auto-rows: 190px;
    gap: 0.75rem;
    padding-top: 0.5rem;
    scroll-padding-top: 0.5rem;
  }

  .related-product-card {
    position: relative;
    grid-template-rows: 112px minmax(0, 1fr);
    align-content: stretch;
    gap: 0.55rem;
    height: 190px;
    min-height: 190px;
    padding: 0.55rem 0.55rem 1.45rem;
    border: 1px solid rgba(222, 213, 209, 0.45);
    box-shadow: 0 5px 15px rgba(86, 47, 39, 0.035);
    overflow: hidden;
  }

  .related-product-media {
    width: 100%;
    height: 112px;
    aspect-ratio: auto;
    overflow: hidden;
  }

  .related-product-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .related-product-copy {
    align-content: start;
    gap: 0.3rem;
    min-height: 0;
    padding: 0 0.1rem;
  }

  .related-product-copy strong {
    min-height: 1.8em;
    line-height: 1.2;
    -webkit-line-clamp: 2;
  }

  .related-product-card::after {
    content: "›";
    position: absolute;
    right: 0.7rem;
    bottom: 0.45rem;
    color: var(--text);
    font-size: 1.2rem;
    line-height: 1;
  }

  .selection-summary span {
    display: none;
  }

  .selection-summary strong {
    display: inline;
    min-width: 0;
    height: auto;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
  }

  .selection-summary strong::after {
    content: " item";
  }
}

.blp-variant-option {
  position: relative;
}

/* Product information layout -- desktop mirrors the BLP editorial concept,
   while the existing mobile sheet remains the compact interaction surface. */
.desktop-brand-nav,
.desktop-page-intro,
.desktop-product-heading,
.desktop-mirror-labels,
.desktop-tryon-dock,
.desktop-brand-footer,
.desktop-empty-start {
  display: none;
}

.desktop-empty-camera {
  display: none;
}

.blp-product-description {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

.blp-product-description > :first-child {
  margin-top: 0;
}

.blp-product-description > :last-child {
  margin-bottom: 0;
}

@media (min-width: 821px) {
  .app-shell {
    display: grid;
    grid-template-rows: 58px 72px minmax(0, 1fr) 30px;
    height: 100vh;
  }

  .topbar {
    height: 58px;
    padding: 0 max(2rem, calc((100vw - 1440px) / 2));
  }

  .topbar-logo {
    width: 72px;
    height: 31px;
  }

  .topbar-divider {
    height: 25px;
  }

  .topbar h1 {
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
  }

  .desktop-brand-nav {
    display: flex;
    align-items: center;
    gap: 2.2rem;
    margin-left: auto;
    color: var(--muted);
    font-size: 0.72rem;
  }

  .desktop-brand-nav a {
    color: var(--text);
    text-decoration: none;
  }

  .topbar-actions {
    display: none;
  }

  .desktop-page-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1380px, calc(100% - 4rem));
    margin: 0 auto;
  }

  .desktop-page-intro h2,
  .desktop-page-intro p {
    margin: 0;
  }

  .desktop-page-intro h2 {
    font-size: clamp(1.45rem, 2vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.035em;
  }

  .desktop-page-intro p {
    color: var(--muted);
    font-size: 0.72rem;
  }

  .studio {
    grid-template-columns: minmax(0, 1.55fr) minmax(380px, 0.95fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 1.5rem;
    width: min(1380px, calc(100% - 4rem));
    height: auto;
    min-height: 0;
    margin: 0 auto;
    padding: 0 0 0.75rem;
    background: transparent;
  }

  .preview {
    grid-column: 1;
    grid-row: 1;
    height: 100%;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #f2efe5;
    overflow: hidden;
  }

  .canvas-shell {
    background: #f2efe5;
  }

  .brand-splash {
    background: #f2efe5;
  }

  .brand-splash img {
    display: none;
  }

  .desktop-mirror-labels {
    position: absolute;
    top: 1.25rem;
    right: 1.35rem;
    left: 1.35rem;
    z-index: 5;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    color: var(--muted);
    font-size: 0.64rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    pointer-events: none;
  }

  .desktop-mirror-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.22rem 0.5rem;
    background: rgba(255, 255, 255, 0.76);
    letter-spacing: 0;
    text-transform: none;
  }

  .comparison-label {
    top: 5rem;
  }

  .comparison-handle {
    bottom: 7.6rem;
  }

  .empty-state {
    inset: 50% auto auto 50%;
    justify-items: center;
    width: min(22rem, calc(100% - 3rem));
    border: 0;
    padding: 0;
    background: transparent;
    text-align: center;
    transform: translate(-50%, -50%);
    backdrop-filter: none;
  }

  .empty-state::before {
    content: none;
  }

  .desktop-empty-camera {
    display: block;
    width: 46px;
    height: 38px;
    fill: none;
    stroke: var(--accent);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.5;
  }

  .empty-state strong {
    display: none;
  }

  .empty-state span {
    max-width: 18rem;
    color: var(--muted);
    line-height: 1.45;
  }

  .loading-state {
    inset: 50% auto auto 50%;
    z-index: 8;
    width: min(22rem, calc(100% - 3rem));
    max-width: none;
    border-color: rgba(156, 62, 89, 0.24);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 42px rgba(86, 47, 39, 0.12);
    transform: translate(-50%, -50%);
  }

  .loading-state strong {
    align-self: center;
    line-height: 1.25;
  }

  .loading-state span:last-child {
    line-height: 1.4;
  }

  .camera-loading .desktop-tryon-dock {
    opacity: 0.55;
    pointer-events: none;
  }

  .desktop-empty-start {
    display: inline-flex;
    justify-content: center;
    min-width: 148px;
    margin-top: 0.55rem;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    pointer-events: auto;
  }

  .panel.selected-product-only {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100%;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    gap: 0;
    overflow: hidden;
  }

  .panel.selected-product-only > .desktop-product-heading {
    display: flex !important;
  }

  .desktop-product-heading {
    align-items: center;
    gap: 0.6rem;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    padding: 1rem 1.15rem 0.6rem;
    background: white;
  }

  .desktop-product-heading h2 {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
  }

  .desktop-product-heading span {
    border-radius: 999px;
    padding: 0.16rem 0.5rem;
    background: #f3e9df;
    color: var(--accent-strong);
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .panel.selected-product-only .selected-product-source {
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 0;
    height: 100%;
  }

  .selected-product-status {
    margin: 0 0 1rem;
  }

  .selected-product-status[hidden] {
    display: none !important;
    margin: 0;
  }

  #selectedProductContainer {
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 12px 12px;
    padding: 0 1.15rem 1rem;
    background: white;
    overflow: hidden;
  }

  #selectedProductContainer .blp-card {
    grid-template-columns: 82px minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    column-gap: 0.9rem;
    row-gap: 0.3rem;
    align-items: start;
    border: 0;
    padding: 0;
  }

  #selectedProductContainer .blp-card-gallery {
    grid-column: 1;
    grid-row: 1 / 4;
    grid-template-columns: 1fr;
    overflow: hidden;
  }

  #selectedProductContainer .blp-card-image-button:not(:first-child) {
    display: none;
  }

  #selectedProductContainer .blp-card-image-button img {
    width: 82px;
    height: 82px;
    aspect-ratio: 1;
    object-fit: cover;
  }

  #selectedProductContainer .blp-card-title {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    font-size: 0.9rem;
  }

  #selectedProductContainer .blp-shade-title {
    display: none;
  }

  #selectedProductContainer .blp-card-shades {
    grid-column: 2;
    grid-row: 3;
    gap: 0.55rem;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.3rem 0.25rem;
    flex-wrap: nowrap;
  }

  #selectedProductContainer .blp-variant-option {
    flex: 0 0 28px;
    width: 28px;
    min-height: 28px;
    font-size: 0;
  }

  #selectedProductContainer .blp-variant-option.has-color::before {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
    border-width: 2px;
  }

  #selectedProductContainer .blp-active-variant-summary {
    display: none;
  }

  .blp-product-description {
    grid-column: 1 / -1;
    grid-row: 4;
    max-height: 12.5rem;
    margin-top: 0.8rem;
    overflow-y: auto;
    padding-right: 0.35rem;
  }

  .blp-product-description h3,
  .blp-product-description h4 {
    margin: 0.8rem 0 0.35rem;
    color: var(--text);
    font-size: 0.78rem;
  }

  .blp-product-description p,
  .blp-product-description ul,
  .blp-product-description ol {
    margin: 0.55rem 0;
  }

  .related-products {
    grid-row: 3;
    grid-template-rows: auto minmax(0, 1fr);
    margin-top: 1.15rem;
    padding-top: 0;
    overflow: hidden;
  }

  .related-products-heading h2 {
    font-size: 1.05rem;
    letter-spacing: 0;
    text-transform: none;
  }

  .related-products-heading span {
    display: none;
  }

  .related-products-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 82px;
    gap: 0.7rem;
    padding-top: 0.75rem;
    overflow-y: auto;
  }

  .related-product-card {
    grid-template-columns: 58px minmax(0, 1fr);
    grid-template-rows: 1fr;
    align-items: center;
    gap: 0.7rem;
    height: 82px;
    min-height: 82px;
    padding: 0.55rem 1.7rem 0.55rem 0.55rem;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: white;
  }

  .related-product-media {
    width: 58px;
    height: 58px;
  }

  .related-product-copy strong {
    min-height: 0;
    font-size: 0.66rem;
  }

  .related-product-card::after {
    right: 0.65rem;
    bottom: 50%;
    transform: translateY(50%);
  }

  .selection-panel {
    display: none;
  }

  .desktop-tryon-dock {
    position: absolute;
    right: 1.25rem;
    bottom: 1.2rem;
    left: 1.25rem;
    z-index: 7;
    display: grid;
    gap: 0.3rem;
  }

  .desktop-dock-hint {
    display: flex;
    justify-content: space-between;
    padding: 0 0.35rem;
    color: var(--muted);
    font-size: 0.6rem;
  }

  .desktop-dock-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.6rem;
    height: 62px;
    min-height: 62px;
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 0.3rem 0.45rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 26px rgba(86, 47, 39, 0.08);
  }

  .desktop-dock-product {
    height: 50px;
    min-width: 0;
  }

  .desktop-dock-product .blp-card {
    grid-template-columns: 158px minmax(108px, 1fr);
    grid-template-rows: 50px;
    align-items: center;
    gap: 0.9rem;
    height: 50px;
    border: 0;
    padding: 0;
  }

  .desktop-dock-product-summary {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 0.5rem;
    row-gap: 0.08rem;
    align-items: center;
    height: 50px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 0.3rem 0.4rem;
    background: white;
  }

  .desktop-dock-shade-picker {
    display: grid;
    align-content: center;
    gap: 0.18rem;
    height: 50px;
    min-width: 0;
    overflow: hidden;
    padding-left: 0.15rem;
  }

  .desktop-dock-product-summary .blp-card-gallery {
    grid-column: 1;
    grid-row: 1 / 3;
    grid-template-columns: 1fr;
    overflow: hidden;
  }

  .desktop-dock-product .blp-card-image-button:not(:first-child) {
    display: none;
  }

  .desktop-dock-product .blp-card-image-button img {
    width: 40px;
    height: 40px;
    aspect-ratio: auto;
  }

  .desktop-dock-product-summary .blp-card-title {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    overflow: hidden;
    font-size: 0.64rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .desktop-dock-product-summary .blp-card-meta {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    gap: 0.25rem;
    white-space: nowrap;
  }

  .desktop-dock-product .blp-card-price {
    font-size: 0.58rem;
  }

  .desktop-dock-product .blp-card-finish {
    padding: 0.05rem 0.26rem;
    font-size: 0.46rem;
  }

  .desktop-dock-product .blp-shade-title {
    margin: 0;
    border: 0;
    padding: 0;
    font-size: 0.54rem;
    text-transform: none;
  }

  .desktop-dock-product .blp-card-shades {
    gap: 0.32rem;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.25rem 0.2rem 0.2rem;
    flex-wrap: nowrap;
  }

  .desktop-dock-product .blp-variant-option {
    flex: 0 0 26px;
    width: 26px;
    min-height: 26px;
    font-size: 0;
  }

  .desktop-dock-product .blp-variant-option.has-color::before {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
    border-width: 2px;
  }

  .desktop-dock-product .blp-product-description,
  .desktop-dock-product .blp-active-variant-summary {
    display: none;
  }

  .desktop-dock-reset {
    border: 0;
    background: transparent;
    padding: 0.35rem 0.45rem;
    font-size: 0.58rem;
  }

  .desktop-dock-bag {
    position: relative;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 9px;
    padding: 0;
    background: #171615;
    color: white;
  }

  .desktop-dock-bag svg {
    width: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
  }

  .desktop-dock-bag span {
    position: absolute;
    top: -0.35rem;
    right: -0.35rem;
    display: grid;
    place-items: center;
    min-width: 1.05rem;
    height: 1.05rem;
    border: 2px solid white;
    border-radius: 999px;
    background: var(--accent);
    font-size: 0.52rem;
  }

  .preview-reset,
  .preview-save {
    display: none;
  }

  .desktop-brand-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1380px, calc(100% - 4rem));
    margin: 0 auto;
    color: var(--muted);
    font-size: 0.58rem;
  }
}

@media (max-width: 820px) {
  .blp-product-description {
    display: none;
  }
}

/* Camera idle state: preserve the original BLP mobile entry screen until
   either the live camera or demo try-on becomes active. */
@media (max-width: 820px) {
  body:not(.tryon-active) {
    background: #f5e8ee;
  }

  body:not(.tryon-active) .app-shell {
    width: 100%;
    height: 100svh;
    min-height: 0;
    margin: 0;
  }

  body:not(.tryon-active) .studio,
  body:not(.tryon-active) .preview,
  body:not(.tryon-active) .canvas-shell,
  body:not(.tryon-active) #beforeCanvas,
  body:not(.tryon-active) #outputCanvas {
    height: 100%;
    min-height: 0;
  }

  body:not(.tryon-active) .preview {
    border: 0;
    background: #f3f1f7;
    box-shadow: none;
  }

  body:not(.tryon-active) .mobile-editor-top {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 6;
    display: grid;
    height: 58px;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    align-items: center;
    padding: 0;
    border-bottom: 1px solid rgba(94, 63, 48, 0.16);
    background: #fff;
    text-shadow: none;
  }

  body:not(.tryon-active) .mobile-title {
    grid-column: 2;
  }

  body:not(.tryon-active) .mobile-title img {
    display: block;
    width: 48px;
    height: auto;
    object-fit: contain;
  }

  body:not(.tryon-active) .mobile-brand-splash {
    position: absolute;
    inset: 58px 0 0;
    z-index: 4;
    display: grid;
    place-items: center;
    padding: clamp(1.5rem, 5vh, 3rem) 1.5rem calc(7.5rem + env(safe-area-inset-bottom));
    overflow-y: auto;
    background: #fbf7f0;
    color: #654944;
    text-align: center;
    text-shadow: none;
  }

  body:not(.tryon-active) .mobile-welcome-content {
    display: grid;
    justify-items: center;
    gap: 1.1rem;
    width: min(28rem, 100%);
  }

  body:not(.tryon-active) .mobile-welcome-portrait {
    position: static;
    width: clamp(170px, 48vw, 230px);
    max-width: 70vw;
    max-height: none;
    filter: none;
    transform: none;
  }

  body:not(.tryon-active) .mobile-welcome-copy {
    max-width: 22rem;
    margin: -0.2rem 0 0;
    font-size: clamp(0.86rem, 3.5vw, 1rem);
    line-height: 1.45;
  }

  body:not(.tryon-active) .mobile-welcome-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    margin-top: 0.35rem;
  }

  body:not(.tryon-active) .mobile-welcome-benefits > div {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 0.45rem;
    min-width: 0;
    padding-inline: 0.55rem;
  }

  body:not(.tryon-active) .mobile-welcome-benefits > div + div {
    border-left: 1px solid #eadfd7;
  }

  body:not(.tryon-active) .mobile-welcome-benefits img {
    position: static;
    width: 32px;
    height: 32px;
    max-width: none;
    max-height: none;
    object-fit: contain;
    filter: none;
    transform: none;
  }

  body:not(.tryon-active) .mobile-welcome-benefits span {
    color: #766761;
    font-size: clamp(0.66rem, 2.8vw, 0.78rem);
    line-height: 1.15;
  }

  body:not(.tryon-active) .desktop-mirror-labels,
  body:not(.tryon-active) .comparison-label,
  body:not(.tryon-active) .comparison-slider,
  body:not(.tryon-active) .empty-state,
  body:not(.tryon-active) .mobile-capture,
  body:not(.tryon-active) .mobile-feature-rail,
  body:not(.tryon-active) .mobile-reset,
  body:not(.tryon-active) .mobile-upload,
  body:not(.tryon-active) .mobile-cart-button,
  body:not(.tryon-active) .mobile-variant-picker,
  body:not(.tryon-active) .mobile-variant-list-button,
  body:not(.tryon-active) .panel,
  body:not(.tryon-active) .selection-panel {
    display: none !important;
  }

  body:not(.tryon-active) .mobile-shutter {
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom));
    left: 50%;
    z-index: 9;
    display: grid;
    width: 72px;
    height: 72px;
    border: 6px solid rgba(156, 62, 89, 0.25);
    background: radial-gradient(circle, var(--accent) 0 58%, rgba(156, 62, 89, 0.2) 59% 100%);
    font-size: 0.85rem;
    transform: translateX(-50%);
  }

  body:not(.tryon-active) .mobile-bottom-tools {
    z-index: 8;
  }
}

.related-product-action,
.mobile-selection-checkout,
.selection-finish {
  display: none;
}

.vto-catalog {
  display: grid;
  gap: 0.75rem;
  min-height: 0;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

.vto-catalog-heading,
.vto-catalog-group-heading,
.vto-catalog-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.vto-catalog-heading h2 {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vto-catalog-heading span,
.vto-catalog-status {
  color: var(--muted);
  font-size: 0.7rem;
}

.vto-category-tabs {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-top: 0.1rem;
  overflow-x: auto;
  padding: 0.2rem 0 0.15rem;
  scrollbar-width: none;
}

.vto-category-tabs::-webkit-scrollbar {
  display: none;
}

.vto-category-tab {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.4rem;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  color: var(--muted);
  background: white;
  font-size: 0.72rem;
  font-weight: 700;
}

.vto-category-tab.is-active {
  border-color: var(--accent-strong);
  color: white;
  background: var(--accent-strong);
}

.vto-category-dot {
  width: 0.55rem;
  height: 0.55rem;
  flex: 0 0 auto;
  border-radius: 999px;
}

.vto-catalog-search input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  color: var(--text);
  background: white;
  font: inherit;
  font-size: 0.75rem;
  outline: none;
}

.vto-catalog-search > svg {
  display: none;
}

.vto-catalog-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.vto-catalog-list,
.vto-catalog-group,
.vto-catalog-products {
  display: grid;
  gap: 0.55rem;
}

.vto-catalog-group + .vto-catalog-group {
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
}

.vto-initial-product-group {
  gap: 0.4rem;
  border: 1px solid #e2d4cb;
  border-radius: 10px;
  padding: 0.55rem;
  background: #fbf7f3;
}

.vto-initial-product-group + .vto-catalog-group {
  border-top: 0;
}

.vto-initial-product-dot {
  width: 0.55rem;
  height: 0.55rem;
  flex: 0 0 auto;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #a98270;
  box-shadow: 0 0 0 1px #cdb7aa;
}

.vto-initial-product-group .vto-catalog-group-heading {
  padding: 0 0.15rem;
  color: #6b4036;
}

.vto-catalog-group-heading strong {
  font-size: 0.76rem;
}

.vto-catalog-group-heading {
  position: relative;
}

.vto-catalog-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  padding: 0.2rem 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.vto-catalog-group-toggle:focus-visible {
  border-radius: 5px;
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.vto-catalog-group-title {
  justify-content: flex-start;
  min-width: 0;
}

.vto-catalog-group-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vto-catalog-group-heading.has-selection .vto-catalog-group-title {
  margin-right: 8.5rem;
}

.vto-catalog-chevron {
  width: 0.48rem;
  height: 0.48rem;
  flex: 0 0 auto;
  margin: 0 0.3rem 0.2rem 0.5rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  color: var(--muted);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.vto-catalog-group.is-collapsed {
  gap: 0;
}

.vto-catalog-group.is-collapsed .vto-catalog-chevron {
  margin-bottom: 0;
  transform: rotate(-45deg);
}

.vto-catalog-products[hidden] {
  display: none;
}

.vto-category-clear {
  position: absolute;
  right: 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  appearance: none;
  border: 0;
  border-radius: 0;
  padding: 0.25rem 0.4rem;
  color: var(--accent);
  background: transparent;
  box-shadow: none;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.vto-category-clear::after {
  margin-left: 0.45rem;
  color: var(--line);
  content: "|";
  font-weight: 400;
}

.vto-category-clear:hover {
  color: #6b4036;
}

.vto-category-clear:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.vto-category-clear svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.vto-catalog-product {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 60px;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.3rem 0.38rem;
  color: var(--text);
  background: white;
  text-align: left;
}

.vto-catalog-product:hover,
.vto-catalog-product:focus-visible {
  border-color: #cdb7aa;
  background: #faf4ef;
}

.vto-catalog-product.is-selected {
  border-color: #bfa294;
  background: #f5ebe4;
}

.vto-catalog-product.is-catalog-loading {
  cursor: progress;
  opacity: 0.65;
}

.vto-catalog-product.is-catalog-loading .vto-catalog-product-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.vto-catalog-product.is-catalog-loading .vto-catalog-product-marker::before {
  width: 0.7rem;
  height: 0.7rem;
  flex: 0 0 auto;
  border: 1.5px solid rgba(127, 88, 70, 0.22);
  border-top-color: var(--accent);
  border-radius: 999px;
  content: "";
  animation: spin 780ms linear infinite;
}

.vto-catalog-product-media {
  display: grid;
  place-items: center;
  width: 44px;
  height: 40px;
  overflow: hidden;
  border-radius: 6px;
  background: #f7f3f1;
  font-weight: 800;
}

.vto-catalog-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vto-catalog-product-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.vto-catalog-product-copy strong {
  overflow: hidden;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vto-catalog-product-copy span,
.vto-catalog-product-marker {
  color: var(--muted);
  font-size: 0.64rem;
}

.vto-catalog-product-marker {
  min-width: 58px;
  text-align: center;
}

.vto-catalog-product.is-selected .vto-catalog-product-marker {
  color: #6b4036;
  font-weight: 800;
}

.vto-catalog-product-entry {
  display: grid;
  min-width: 0;
}

.vto-catalog-product-entry.has-variant-row {
  border: 1px solid #bfa294;
  border-radius: 8px;
  overflow: hidden;
  background: #f5ebe4;
}

.vto-catalog-product-entry.has-variant-row > .vto-catalog-product {
  border: 0;
  border-radius: 0;
}

.vto-catalog-product-entry.has-variant-row > .vto-product-variant-row {
  margin: 0;
  border: 0;
  border-top: 1px solid #dccbc1;
  border-radius: 0;
}

.vto-product-variant-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  margin-top: -1px;
  border: 1px solid #d9c8be;
  border-radius: 0 0 9px 9px;
  padding: 0.32rem 0.45rem;
  background: #fffaf7;
}

.vto-product-variant-count {
  grid-column: 1;
  color: #76534c;
  font-size: 0.65rem;
  font-weight: 700;
  white-space: nowrap;
}

.vto-product-variants {
  display: flex;
  grid-column: 2;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  overflow-x: auto;
  padding: 0.1rem 0;
  scrollbar-width: none;
}

.vto-product-variants::-webkit-scrollbar {
  display: none;
}

.vto-product-variant {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  flex: 0 0 20px;
  border: 1px solid #d2bdb2;
  border-radius: 50%;
  padding: 1px;
  background: white;
  box-shadow: inset 0 0 0 1px white;
}

.vto-product-variant:hover,
.vto-product-variant:focus-visible {
  border-color: #b9857d;
  background: white;
  box-shadow: inset 0 0 0 1px white;
}

.vto-product-variant.is-active {
  border-color: var(--accent);
  border-width: 2px;
  padding: 0;
  background: white;
  box-shadow: inset 0 0 0 1px white;
}

.vto-product-variant.is-active:disabled {
  opacity: 1;
}

.vto-product-variant.is-loading::before {
  display: none;
}

.vto-product-variant-swatch {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
  background: #eadfd9;
}

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

@media (max-width: 820px) {
  body:not([data-mobile-sheet="variants"]) .vto-catalog {
    display: none;
  }

  body[data-mobile-sheet="variants"] .vto-catalog {
    grid-template-rows: auto auto auto auto minmax(0, 1fr);
    align-content: start;
    height: 100%;
    border-top: 0;
    padding-top: 0;
    overflow: hidden;
  }

  body[data-mobile-sheet="variants"] .vto-catalog.is-error {
    grid-template-rows: auto auto;
    align-content: start;
  }

  body[data-mobile-sheet="variants"] .vto-catalog.is-error .vto-category-tabs,
  body[data-mobile-sheet="variants"] .vto-catalog.is-error .vto-catalog-list {
    display: none;
  }

  body[data-mobile-sheet="variants"] .vto-catalog-heading {
    display: none;
  }

  body[data-mobile-sheet="variants"] .vto-catalog-list {
    align-content: start;
    min-height: 0;
    gap: 0.5rem;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  body[data-mobile-sheet="variants"] .vto-initial-product-group {
    gap: 0.3rem;
    padding: 0.4rem;
  }

  body[data-mobile-sheet="variants"] .vto-catalog-products {
    gap: 0.4rem;
  }

  body[data-mobile-sheet="variants"] .vto-catalog-product {
    grid-template-columns: 46px minmax(0, 1fr) 60px;
    gap: 0.55rem;
    min-height: 54px;
    padding: 0.28rem 0.38rem;
  }

  body[data-mobile-sheet="variants"] .vto-catalog-product-media {
    width: 46px;
    height: 44px;
    border-radius: 6px;
  }

  body[data-mobile-sheet="variants"] .vto-catalog-product-copy {
    gap: 0.15rem;
  }

  body[data-mobile-sheet="variants"] .vto-catalog-product-copy strong {
    font-size: 0.72rem;
  }

  body[data-mobile-sheet="variants"] .vto-catalog-product-copy span,
  body[data-mobile-sheet="variants"] .vto-catalog-product-marker {
    font-size: 0.62rem;
  }

  body[data-mobile-sheet="variants"] .vto-catalog-product-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 34px;
    border: 1px solid #e7ddd8;
    border-radius: 9px;
    background: #fffdfc;
    font-weight: 700;
  }

  body[data-mobile-sheet="variants"] .vto-catalog-product.is-selected .vto-catalog-product-marker {
    border-color: transparent;
    background: #eadbd1;
  }

  body[data-mobile-sheet="variants"] .vto-product-variant-row {
    gap: 0.5rem;
    padding: 0.32rem 0.45rem;
  }

  body[data-mobile-sheet="variants"] .vto-product-variant-count {
    font-size: 0.64rem;
  }

  body[data-mobile-sheet="variants"] .vto-product-variants {
    gap: 0.4rem;
    padding: 0.1rem 0;
  }

  body[data-mobile-sheet="variants"] .vto-product-variant {
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    flex-basis: 26px;
    padding: 1px;
  }

  body[data-mobile-sheet="variants"] .vto-product-variant.is-active {
    padding: 0;
  }
}

/* Active mobile try-on. The camera idle screen above remains untouched. */
@media (max-width: 820px) {
  body.tryon-active .app-shell,
  body.tryon-active .studio,
  body.tryon-active .preview,
  body.tryon-active .canvas-shell,
  body.tryon-active #beforeCanvas,
  body.tryon-active #outputCanvas {
    width: 100%;
    height: 100svh;
    min-height: 100svh;
  }

  body.tryon-active .comparison-slider {
    bottom: calc(68px + env(safe-area-inset-bottom));
    width: 64px;
    min-width: 64px;
    z-index: 9;
  }

  body.tryon-active.mobile-sheet-open .comparison-slider {
    z-index: 7;
  }

  body.tryon-active .comparison-handle {
    bottom: 0.75rem;
    width: 32px;
    height: 32px;
    box-shadow: 0 5px 14px rgba(31, 24, 22, 0.18);
  }

  body.tryon-active .comparison-handle svg {
    width: 16px;
    height: 16px;
  }

  body.tryon-active .app-shell {
    margin: 0;
    padding: 0;
  }

  body.tryon-active .studio,
  body.tryon-active .preview {
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 0;
  }

  body.tryon-active .mobile-editor-top,
  body.tryon-active .mobile-feature-rail,
  body.tryon-active .mobile-capture,
  body.tryon-active .mobile-reset,
  body.tryon-active .mobile-upload,
  body.tryon-active .mobile-shutter,
  body.tryon-active .preview-footer {
    display: none !important;
  }

  body.tryon-active .desktop-mirror-labels {
    position: absolute;
    top: calc(1rem + env(safe-area-inset-top));
    right: 1rem;
    left: 1rem;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: space-between;
    color: var(--text);
    font-size: 0.61rem;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    pointer-events: none;
  }

  body.tryon-active .desktop-mirror-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 999px;
    padding: 0.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--muted);
    letter-spacing: 0;
    text-transform: none;
  }

  body.tryon-active #fpsStatus {
    display: none;
  }

  body.tryon-active .mobile-bottom-tools {
    position: absolute;
    right: 0.75rem;
    bottom: calc(68px + 4.5rem + env(safe-area-inset-bottom));
    left: auto;
    z-index: 8;
    display: grid;
    width: 38px;
    grid-template-columns: 38px;
    gap: 0.4rem;
    pointer-events: none;
  }

  body.tryon-active .mobile-variant-list-button {
    position: relative;
    inset: auto;
    display: grid !important;
    place-items: center;
    width: 38px !important;
    height: 38px !important;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 999px;
    padding: 0;
    background: rgba(60, 58, 65, 0.62) !important;
    color: white;
    box-shadow: none;
    pointer-events: auto;
  }

  body.tryon-active .mobile-variant-list-button {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
  }

  body.tryon-active .desktop-tryon-dock {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 7;
    display: block;
  }

  body.tryon-active .desktop-dock-hint,
  body.tryon-active .desktop-dock-reset {
    display: none;
  }

  body.tryon-active .desktop-dock-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem;
    height: 68px;
    min-height: 68px;
    border: 0;
    border-radius: 0;
    padding: 0.5rem 1rem calc(0.5rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -8px 24px rgba(39, 28, 25, 0.08);
  }

  body.tryon-active .desktop-dock-bag {
    position: relative;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    min-width: 40px;
    min-height: 40px;
    border: 0;
    border-radius: 9px;
    padding: 0;
    background: #171615;
    color: white;
    box-shadow: none;
  }

  body.tryon-active .desktop-dock-bag:hover,
  body.tryon-active .desktop-dock-bag:focus-visible {
    border: 0;
    background: #292624;
    transform: none;
  }

  body.tryon-active .desktop-dock-bag svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }

  body.tryon-active .desktop-dock-bag span {
    position: absolute;
    top: -6px;
    right: -6px;
    display: grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    border: 2px solid white;
    border-radius: 999px;
    padding: 0 4px;
    background: var(--accent);
    color: white;
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1;
  }

  body.tryon-active .desktop-dock-product,
  body.tryon-active .desktop-dock-product .blp-card {
    height: 48px;
    min-width: 0;
  }

  body.tryon-active .desktop-dock-product .blp-card {
    display: block;
    border: 0;
    padding: 0;
  }

  body.tryon-active .desktop-dock-product-summary {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0.08rem 0.55rem;
    height: 48px;
    min-width: 0;
    border: 0;
    padding: 0;
  }

  body.tryon-active .desktop-dock-product-summary .blp-card-gallery {
    grid-column: 1;
    grid-row: 1 / 3;
    grid-template-columns: 1fr;
    overflow: hidden;
  }

  body.tryon-active .desktop-dock-product .blp-card-image-button:not(:first-child) {
    display: none;
  }

  body.tryon-active .desktop-dock-product .blp-card-image-button img {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 2px;
    object-fit: cover;
  }

  body.tryon-active .desktop-dock-product-summary .blp-card-title {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    overflow: hidden;
    font-size: 0.66rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.tryon-active .desktop-dock-product-summary .blp-card-meta {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    flex-wrap: nowrap;
    gap: 0.35rem;
    white-space: nowrap;
  }

  body.tryon-active .desktop-dock-product .blp-card-price {
    font-size: 0.59rem;
  }

  body.tryon-active .desktop-dock-product .blp-card-finish {
    padding: 0.05rem 0.3rem;
    font-size: 0.45rem;
  }

  body.tryon-active .desktop-dock-shade-picker {
    position: absolute;
    right: 4.4rem;
    bottom: calc(68px + env(safe-area-inset-bottom));
    left: 1rem;
    display: grid;
    gap: 0.3rem;
    height: auto;
    min-width: 0;
    overflow: visible;
    padding: 0 0 0.7rem;
    color: white;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.42);
  }

  body.tryon-active .desktop-dock-shade-picker .blp-shade-title {
    margin: 0;
    border: 0;
    padding: 0;
    color: white;
    font-size: 0;
    letter-spacing: 0;
    line-height: 1;
    text-transform: none;
  }

  body.tryon-active .desktop-dock-shade-picker .blp-shade-title::after {
    content: "Select your tone";
    font-size: 0.6rem;
    font-weight: 500;
  }

  body.tryon-active .desktop-dock-product .blp-card-shades {
    gap: 0.45rem;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.25rem;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  body.tryon-active .desktop-dock-product .blp-card-shades::-webkit-scrollbar {
    display: none;
  }

  body.tryon-active .desktop-dock-product .blp-variant-option {
    flex: 0 0 24px;
    width: 24px;
    min-height: 24px;
    color: transparent;
    font-size: 0;
  }

  body.tryon-active .desktop-dock-product .blp-variant-option.has-color::before {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
    border: 1px solid white;
    box-shadow: none;
  }

  body.tryon-active .desktop-dock-product .blp-variant-option.is-active.has-color::before {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
  }

  body.tryon-active .desktop-dock-product .blp-product-description,
  body.tryon-active .desktop-dock-product .blp-active-variant-summary {
    display: none;
  }

  body.tryon-active .mobile-sheet-backdrop,
  body.tryon-active.mobile-sheet-open .mobile-sheet-backdrop,
  body.tryon-active.mobile-cart-open .mobile-sheet-backdrop {
    opacity: 0;
    pointer-events: none;
  }

  body.tryon-active.mobile-sheet-open .mobile-bottom-tools,
  body.tryon-active.mobile-cart-open .mobile-bottom-tools {
    display: none !important;
  }

  body.tryon-active .panel.selected-product-only,
  body.tryon-active .selection-panel {
    pointer-events: none;
    transform: translateY(calc(100% + 1rem));
  }

  body.tryon-active[data-mobile-sheet="variants"] .panel.selected-product-only {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr);
    height: min(68svh, 42rem);
    max-height: min(68svh, 42rem);
    border: 0;
    border-radius: 12px 12px 0 0;
    padding: 0.85rem 0.85rem calc(0.85rem + env(safe-area-inset-bottom));
    background: white;
    box-shadow: 0 -10px 28px rgba(44, 31, 28, 0.1);
    overflow: hidden;
    pointer-events: auto;
    transform: translateY(0);
  }

  body.tryon-active[data-mobile-sheet="variants"] .mobile-sheet-handle {
    display: none !important;
  }

  body.tryon-active[data-mobile-sheet="variants"] .mobile-sheet-header {
    position: static;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    border: 0;
    padding: 0 0 0.65rem;
    background: white;
  }

  body.tryon-active[data-mobile-sheet="variants"] .mobile-sheet-header > div:first-child {
    display: block;
  }

  body.tryon-active[data-mobile-sheet="variants"] .mobile-sheet-header h2 {
    margin: 0;
    font-size: 1rem;
    text-transform: none;
  }

  body.tryon-active[data-mobile-sheet="variants"] #mobileSheetMeta,
  body.tryon-active[data-mobile-sheet="variants"] .mobile-sheet-reset {
    display: none;
  }

  body.tryon-active[data-mobile-sheet="variants"] .mobile-sheet-actions {
    position: static;
  }

  body.tryon-active[data-mobile-sheet="variants"] .mobile-sheet-close {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: #faf9f7;
  }

  body.tryon-active[data-mobile-sheet="variants"] .mobile-sheet-close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
  }

  body.tryon-active[data-mobile-sheet="variants"] .selected-product-source {
    min-height: 0;
    overflow: hidden;
  }

  body.tryon-active[data-mobile-sheet="variants"] #selectedProductContainer,
  body.tryon-active[data-mobile-sheet="variants"] .mobile-explore-trigger,
  body.tryon-active[data-mobile-sheet="variants"] .selected-product-status {
    display: none !important;
  }

  body.tryon-active[data-mobile-sheet="variants"] .related-products:not([hidden]) {
    display: block;
    height: 100%;
    margin: 0;
    border: 0;
    padding: 0;
    overflow: hidden;
  }

  body.tryon-active[data-mobile-sheet="variants"] .related-products-heading {
    display: none;
  }

  body.tryon-active[data-mobile-sheet="variants"] .related-products-list {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 60px;
    gap: 0.55rem;
    height: 100%;
    padding: 0;
    overflow-y: auto;
    scrollbar-width: none;
  }

  body.tryon-active[data-mobile-sheet="variants"] .related-products-list::-webkit-scrollbar {
    display: none;
  }

  body.tryon-active[data-mobile-sheet="variants"] .related-product-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    height: 60px;
    min-height: 60px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.35rem 0.45rem;
    background: white;
  }

  body.tryon-active[data-mobile-sheet="variants"] .related-product-card::after {
    content: none;
  }

  body.tryon-active[data-mobile-sheet="variants"] .related-product-media {
    width: 42px;
    height: 42px;
    border-radius: 2px;
  }

  body.tryon-active[data-mobile-sheet="variants"] .related-product-copy {
    display: grid;
    grid-template-columns: auto 1fr;
    align-content: center;
    gap: 0.15rem 0.35rem;
    min-width: 0;
    text-align: left;
  }

  body.tryon-active[data-mobile-sheet="variants"] .related-product-copy strong {
    grid-column: 1 / -1;
    overflow: hidden;
    min-height: 0;
    font-size: 0.61rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.tryon-active[data-mobile-sheet="variants"] .related-product-copy > span {
    font-size: 0.56rem;
  }

  body.tryon-active[data-mobile-sheet="variants"] .related-product-finish {
    display: inline-flex;
    width: max-content;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.04rem 0.28rem;
    color: var(--muted);
    background: #f8f3ed;
    text-transform: uppercase;
  }

  body.tryon-active[data-mobile-sheet="variants"] .related-product-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    height: 34px;
    border-radius: 9px;
    background: #f3efe6;
    color: var(--text);
    font-size: 0.62rem;
    font-weight: 700;
  }

  body.tryon-active .selection-panel {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 0.55rem;
    height: min(52svh, 30rem);
    max-height: min(52svh, 30rem);
    border: 0;
    border-radius: 12px 12px 0 0;
    padding: 0.75rem 0.85rem calc(0.85rem + env(safe-area-inset-bottom));
    background: white;
    box-shadow: 0 -10px 28px rgba(44, 31, 28, 0.1);
  }

  body.tryon-active.mobile-cart-open .selection-panel {
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  body.tryon-active .selection-panel .selection-panel-heading {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    border: 0;
    padding: 0 0 0.55rem;
  }

  body.tryon-active .selection-panel .selection-panel-heading h2 {
    margin: 0;
    font-size: 1rem;
  }

  body.tryon-active .selection-panel .selection-summary {
    display: flex;
    margin-left: auto;
  }

  body.tryon-active .selection-panel .selection-summary span {
    display: none;
  }

  body.tryon-active .selection-panel .selection-summary strong {
    display: inline;
    min-width: 0;
    height: auto;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
  }

  body.tryon-active .selection-panel .selection-summary strong::after {
    content: " items";
  }

  body.tryon-active .selection-panel .mobile-cart-close {
    display: grid;
    width: 34px;
    height: 34px;
    font-size: 1.25rem;
  }

  body.tryon-active .selection-panel .selection-list {
    display: block !important;
    min-height: 0;
    overflow-y: auto;
  }

  body.tryon-active .selection-panel .selection-cat,
  body.tryon-active .selection-panel .selection-total,
  body.tryon-active .selection-panel .selection-store-note {
    display: none !important;
  }

  body.tryon-active .selection-panel .selection-actions {
    display: grid !important;
  }

  body.tryon-active .selection-panel .selection-actions button {
    min-height: 44px;
    border-radius: 9px;
    font-size: 0.78rem;
  }

  body.tryon-active .selection-panel .selection-look-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.55rem;
    min-height: 58px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.4rem;
    background: white;
  }

  body.tryon-active .selection-panel .selection-thumb {
    width: 44px;
    height: 44px;
    border-radius: 2px;
  }

  body.tryon-active .selection-panel .selection-info {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.1rem 0.35rem;
    min-width: 0;
  }

  body.tryon-active .selection-panel .selection-info a {
    grid-column: 1 / -1;
    overflow: hidden;
    font-size: 0.61rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.tryon-active .selection-panel .selection-shade-name,
  body.tryon-active .selection-panel .selection-quantity {
    display: none;
  }

  body.tryon-active .selection-panel .selection-item-price {
    font-size: 0.56rem;
  }

  body.tryon-active .selection-panel .selection-finish {
    display: inline-flex;
    width: max-content;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.04rem 0.28rem;
    color: var(--muted);
    background: #f8f3ed;
    font-size: 0.5rem;
    text-transform: uppercase;
  }

  body.tryon-active .selection-panel .mobile-selection-checkout {
    display: none;
  }

  body.tryon-active .selection-panel .selection-cancel {
    min-width: 64px;
    min-height: 34px;
    border: 1px solid #ead8d1;
    border-radius: 9px;
    padding: 0.35rem 0.55rem;
    background: #fffaf7;
    color: #9c3e59;
    font-size: 0.65rem;
  }

  body.tryon-active[data-mobile-sheet="product"] .panel.selected-product-only {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr);
    height: min(48svh, 28rem);
    max-height: min(48svh, 28rem);
    border: 0;
    border-radius: 12px 12px 0 0;
    padding: 0.85rem 0.85rem calc(0.85rem + env(safe-area-inset-bottom));
    background: white;
    box-shadow: 0 -10px 28px rgba(44, 31, 28, 0.1);
    overflow: hidden;
    pointer-events: auto;
    transform: translateY(0);
  }

  body.tryon-active[data-mobile-sheet="product"] .mobile-sheet-handle {
    display: none !important;
  }

  body.tryon-active[data-mobile-sheet="product"] .mobile-sheet-header {
    position: static;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    border: 0;
    padding: 0 0 0.65rem;
    background: white;
  }

  body.tryon-active[data-mobile-sheet="product"] .mobile-sheet-header > div:first-child {
    display: block;
  }

  body.tryon-active[data-mobile-sheet="product"] .mobile-sheet-header h2 {
    margin: 0;
    font-size: 1rem;
    text-transform: none;
  }

  body.tryon-active[data-mobile-sheet="product"] #mobileSheetMeta,
  body.tryon-active[data-mobile-sheet="product"] .mobile-sheet-reset {
    display: none;
  }

  body.tryon-active[data-mobile-sheet="product"] .mobile-sheet-actions {
    position: static;
  }

  body.tryon-active[data-mobile-sheet="product"] .mobile-sheet-close {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: #faf9f7;
  }

  body.tryon-active[data-mobile-sheet="product"] .mobile-sheet-close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
  }

  body.tryon-active[data-mobile-sheet="product"] .selected-product-source {
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: none;
  }

  body.tryon-active[data-mobile-sheet="product"] .selected-product-source::-webkit-scrollbar {
    display: none;
  }

  body.tryon-active[data-mobile-sheet="product"] .selected-product-label,
  body.tryon-active[data-mobile-sheet="product"] .mobile-explore-trigger,
  body.tryon-active[data-mobile-sheet="product"] .related-products,
  body.tryon-active[data-mobile-sheet="product"] .blp-shade-title,
  body.tryon-active[data-mobile-sheet="product"] .blp-variant-options,
  body.tryon-active[data-mobile-sheet="product"] .blp-active-variant-summary {
    display: none !important;
  }

  body.tryon-active[data-mobile-sheet="product"] .blp-product-description {
    display: block;
    grid-column: 1 / -1;
    margin-top: 0.75rem;
    border-top: 1px solid var(--line);
    padding-top: 0.75rem;
    font-size: 0.72rem;
    line-height: 1.5;
  }
}

/* --------------------------------------------------------------------------
   Desktop art direction — aligned with the approved BLP VTO composition.
   Kept as a final override so the camera, catalog and mobile interaction rules
   above remain intact.
   -------------------------------------------------------------------------- */

@media (min-width: 821px) {
  :root {
    --expected-shell: min(1720px, calc(100vw - 10rem));
    --expected-ink: #3a1714;
    --expected-line: #e8ddd7;
    --expected-paper: #fffcfa;
  }

  html {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body {
    height: auto;
    min-height: 100%;
    overflow-x: clip;
    overflow-y: visible;
  }

  body {
    background: #f8f2ef;
  }

  .app-shell {
    grid-template-rows: 148px auto 34px;
    height: auto;
    min-height: 100vh;
    background: #f8f2ef;
  }

  .topbar {
    display: none;
  }

  .topbar-logo {
    width: 80px;
    height: auto;
  }

  .topbar-divider {
    height: 36px;
    margin-inline: 0.4rem;
    background: #ded4cf;
  }

  .topbar h1 {
    color: #171211;
    font-size: 0.93rem;
    font-weight: 700;
  }

  .desktop-brand-nav {
    gap: 2.2rem;
    color: #171211;
    font-size: 0.8rem;
    font-weight: 600;
  }

  .desktop-brand-nav a {
    color: #171211;
  }

  .desktop-nav-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-left: -0.7rem;
    border: 0;
    padding: 0;
    color: #171211;
    background: transparent;
  }

  .desktop-nav-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
  }

  .desktop-account {
    width: 42px;
    height: 42px;
    margin-left: -0.85rem;
    border-radius: 50%;
    background: #f2d9d5;
  }

  .desktop-page-intro {
    width: 100%;
    height: 148px;
    padding: 0 max(5rem, calc((100vw - 1720px) / 2));
    background-color: #f8f2ef;
    background-image:
      linear-gradient(
        to bottom,
        rgba(248, 242, 239, 0) 38%,
        rgba(248, 242, 239, 0.18) 60%,
        rgba(248, 242, 239, 0.72) 84%,
        #f8f2ef 100%
      ),
      linear-gradient(90deg, rgba(255, 250, 247, 0.98) 0%, rgba(255, 250, 247, 0.92) 38%, rgba(255, 250, 247, 0.16) 66%),
      url("../assets/Iklan Lipstik BLP dengan Sapuan Warna.png");
    background-position: center, center, calc(100% - 160px) calc(90% + 22px);
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-size: cover, cover, auto 148%;
  }

  .desktop-intro-copy {
    display: grid;
    gap: 0.2rem;
    align-content: center;
  }

  .desktop-page-intro h2 {
    color: var(--expected-ink);
    font-family: "Lato", sans-serif;
    font-size: clamp(2.35rem, 3vw, 3.15rem);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.035em;
  }

  .desktop-page-intro .desktop-intro-copy p {
    max-width: none;
    color: #624a45;
    font-family: "Lato", sans-serif;
    font-size: 1rem;
    line-height: 1.25;
    white-space: nowrap;
  }

  .desktop-page-intro .desktop-intro-tagline {
    display: none;
  }

  .studio {
    width: var(--expected-shell);
    min-height: 690px;
    height: auto;
    max-height: none;
    grid-template-columns: minmax(0, 1.46fr) minmax(520px, 1fr);
    align-items: start;
    gap: 1.15rem;
    margin-top: 0;
    padding: 0 0 0.75rem;
    position: relative;
    z-index: 3;
    transform: translateY(-2px);
  }

  .preview {
    position: sticky;
    top: 1rem;
    align-self: start;
    width: 100%;
    height: min(760px, calc(100vh - 2rem));
    min-height: 620px;
    border-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    background: #fbf7f0;
    box-shadow: 0 0 0 1px #e4d9d1, 0 15px 34px rgba(74, 43, 34, 0.05);
  }

  .canvas-shell,
  .brand-splash {
    background: radial-gradient(circle at 50% 42%, #fffdf9 0, #fbf6ee 53%, #f5eee4 100%);
  }

  .desktop-mirror-labels {
    top: 1.65rem;
    right: 1.8rem;
    left: 1.8rem;
    align-items: flex-end;
    color: #6f6662;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.09em;
  }

  .comparison-label-before {
    left: 1.8rem;
  }

  .comparison-label-after {
    right: 1.8rem;
  }

  .desktop-mirror-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-color: #eee4de;
    padding: 0.42rem 0.65rem;
    color: #3f302d;
    background: rgba(255, 255, 255, 0.88);
    text-align: center;
  }

  .empty-state {
    top: 48%;
    width: min(650px, calc(100% - 4rem));
    color: var(--expected-ink);
    transform: translate(-50%, -46%);
  }

  .desktop-empty-camera {
    display: none;
  }

  .desktop-empty-portrait {
    display: block;
    width: 270px;
    height: 190px;
    margin: 0 auto -0.45rem;
    object-fit: contain;
  }

  .empty-state span:not(.benefit-icon) {
    max-width: 31rem;
    color: #654944;
    font-family: "Lato", sans-serif;
    font-size: 1.2rem;
    line-height: 1.35;
  }

  .desktop-empty-start {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 248px;
    min-height: 49px;
    margin-top: 1rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #a94057, #bd5964);
    font-size: 0.86rem;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(154, 55, 79, 0.14);
  }

  .desktop-empty-start svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
  }

  .desktop-mirror-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    margin-top: 1.9rem;
  }

  .desktop-mirror-benefits > div {
    min-width: 0;
    padding: 0 1.6rem;
  }

  .desktop-mirror-benefits > div + div {
    border-left: 1px solid #eadfd7;
  }

  .desktop-mirror-benefits .benefit-icon {
    display: block;
    min-height: 32px;
    color: #8e4d42;
    font-size: 1.85rem;
    line-height: 1;
  }

  .desktop-mirror-benefits p {
    margin: 0.4rem 0 0;
    color: #766761;
    font-family: "Lato", sans-serif;
    font-size: 0.92rem;
    line-height: 1.08;
  }

  .desktop-mirror-benefits .benefit-asset {
    display: grid;
    place-items: center;
    align-content: start;
    gap: 0.45rem;
    min-height: 84px;
    padding-block: 0;
  }

  .desktop-mirror-benefits .benefit-asset img {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
  }

  .desktop-mirror-benefits .benefit-asset p {
    margin: 0;
  }

  .desktop-tryon-dock {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    gap: 0.45rem;
  }

  .desktop-dock-hint {
    padding: 0 0.75rem;
    color: #776d68;
    font-size: 0.58rem;
  }

  .desktop-dock-bar {
    height: 74px;
    min-height: 74px;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: 0.8rem;
    border-color: #e8ddd6;
    border-radius: 14px;
    padding: 0.45rem 0.65rem;
    box-shadow: 0 12px 32px rgba(86, 47, 39, 0.08);
  }

  .desktop-dock-product,
  .desktop-dock-product .blp-card,
  .desktop-dock-product-summary,
  .desktop-dock-shade-picker {
    height: 58px;
  }

  .desktop-dock-product .blp-card {
    grid-template-columns: minmax(210px, 0.8fr) minmax(180px, 1.2fr);
  }

  .desktop-dock-product-summary {
    grid-template-columns: 58px minmax(0, 1fr);
    border: 0;
    border-right: 1px solid #eadfd9;
    border-radius: 0;
    padding: 0 1.1rem 0 0;
  }

  .desktop-dock-product .blp-card-image-button img {
    width: 58px;
    height: 58px;
    border-radius: 7px;
  }

  .desktop-dock-product-summary .blp-card-title {
    font-size: 0.72rem;
  }

  .desktop-dock-shade-picker {
    padding-left: 0.35rem;
  }

  .desktop-dock-product .blp-shade-title {
    font-size: 0.62rem;
  }

  .desktop-dock-reset,
  .desktop-dock-bag {
    min-height: 46px;
  }

  .desktop-dock-reset {
    min-width: 96px;
    border: 1px solid #e8ddd7;
    border-radius: 11px;
    font-size: 0.7rem;
  }

  .desktop-dock-bag {
    width: 46px;
    height: 46px;
    border-radius: 11px;
  }

  .preview .selection-panel {
    position: absolute;
    top: auto;
    right: 1rem;
    bottom: 6.7rem;
    left: auto;
    z-index: 12;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    gap: 0.75rem;
    width: min(430px, calc(100% - 2rem));
    max-height: min(520px, calc(100% - 8.5rem));
    border: 1px solid #e6dbd5;
    border-radius: 16px;
    padding: 1rem;
    background: rgba(255, 253, 251, 0.98);
    box-shadow: 0 20px 50px rgba(74, 43, 34, 0.18);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(0.75rem) scale(0.98);
    transform-origin: right bottom;
    transition:
      opacity 160ms ease,
      transform 160ms ease,
      visibility 160ms ease;
  }

  body.desktop-cart-open .preview .selection-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .preview .selection-panel .selection-panel-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.65rem;
    padding-bottom: 0.7rem;
  }

  .preview .selection-panel .mobile-cart-close {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: #f4ebe6;
    color: #4a2824;
    font-size: 1.25rem;
  }

  .preview .selection-panel .selection-list {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .panel.selected-product-only {
    grid-template-rows: auto auto;
    align-self: start;
    height: auto;
    border: 1px solid #e6dbd5;
    border-radius: 19px;
    background: rgba(255, 253, 251, 0.96);
    box-shadow: 0 15px 34px rgba(74, 43, 34, 0.05);
    overflow: visible;
  }

  .desktop-product-heading {
    min-height: 72px;
    border: 0;
    border-bottom: 1px solid #ece2dc;
    border-radius: 19px 19px 0 0;
    padding: 0.8rem 1.35rem;
    background: rgba(255, 255, 255, 0.82);
  }

  .desktop-product-heading h2 {
    color: var(--expected-ink);
    font-family: "Lato", sans-serif;
    font-size: 1.85rem;
    font-weight: 600;
  }

  .desktop-product-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-left: auto;
  }

  .desktop-product-heading .desktop-product-brand span {
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    color: #5b3831;
    background: #f5ece6;
    font-size: 0.58rem;
    letter-spacing: 0.04em;
  }

  .desktop-product-brand small {
    color: #756862;
    font-size: 0.62rem;
    line-height: 1.35;
  }

  .desktop-product-heading > #desktopProductCategory {
    display: none;
  }

  .panel.selected-product-only .selected-product-source {
    display: grid;
    grid-template-rows: auto auto auto auto;
    gap: 0.45rem;
    min-height: 0;
    height: auto;
    padding: 0.6rem 1.15rem 1rem;
    overflow: visible;
  }

  .selected-product-label {
    display: block;
    grid-row: 1;
    margin: 0;
    color: #3a211e;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
  }

  .panel.selected-product-only .selected-product-status {
    grid-row: 2;
  }

  .panel.selected-product-only #selectedProductContainer {
    grid-row: 3;
  }

  .panel.selected-product-only .vto-catalog {
    grid-row: 4;
  }

  #selectedProductContainer {
    min-height: 110px;
    border: 1px solid #ece2dc;
    border-radius: 12px;
    padding: 0.65rem;
    background: rgba(255, 255, 255, 0.82);
  }

  #selectedProductContainer.is-query-empty {
    display: grid;
    min-height: 230px;
    padding: 1.5rem;
    background:
      radial-gradient(circle at 50% 38%, rgba(245, 226, 218, 0.72), transparent 42%),
      rgba(255, 255, 255, 0.82);
  }

  .product-query-empty {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0.55rem;
    max-width: 22rem;
    margin: auto;
    color: #735851;
    text-align: center;
  }

  .product-query-empty-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    color: #a65a54;
    background: #f7e9e3;
  }

  .product-query-empty-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
  }

  .product-query-empty strong {
    color: #4a2824;
    font-size: 1rem;
  }

  .product-query-empty > span:last-child {
    max-width: 19rem;
    font-size: 0.75rem;
    line-height: 1.5;
  }

  body.no-product-query .desktop-tryon-dock {
    display: none;
  }

  #selectedProductContainer .blp-card {
    grid-template-columns: 116px minmax(0, 1fr);
    min-height: 88px;
    column-gap: 1rem;
  }

  #selectedProductContainer .blp-card-gallery {
    grid-row: 1 / 5;
  }

  #selectedProductContainer .blp-card-image-button img {
    width: 116px;
    height: 88px;
    border-radius: 7px;
  }

  #selectedProductContainer .blp-card-title {
    font-size: 0.9rem;
  }

  #selectedProductContainer .blp-card-shades {
    gap: 0.65rem;
    padding: 0.3rem;
  }

  .vto-catalog {
    grid-template-rows: auto auto auto auto auto;
    gap: 0.65rem;
    min-height: 0;
    border-top: 0;
    padding-top: 0.35rem;
    overflow: visible;
  }

  .vto-catalog-heading h2 {
    color: #3b211e;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
  }

  .vto-catalog-heading span {
    font-size: 0.64rem;
  }

  .vto-category-tab {
    min-height: 34px;
    padding: 0.35rem 0.8rem;
    font-size: 0.68rem;
  }

  .vto-category-tab.is-active {
    border-color: #56312d;
    background: #56312d;
  }

  .vto-catalog-search {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 0.95rem;
    background: white;
  }

  .vto-catalog-search svg {
    position: static;
    display: block;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #553a35;
    stroke-linecap: round;
    stroke-width: 1.7;
    transform: none;
    pointer-events: none;
  }

  .vto-catalog-search input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 40px;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    font-size: 0.73rem;
    line-height: 1.2;
  }

  .vto-catalog-search:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-soft);
  }

  .vto-catalog-search input:focus {
    border: 0;
    box-shadow: none;
  }

  .vto-catalog-status {
    min-height: 0;
  }

  .vto-catalog-status:empty,
  .vto-catalog-status[hidden] {
    display: none;
  }

  .vto-catalog-list {
    min-height: 0;
    gap: 0.55rem;
    overflow: visible;
    padding-right: 0.15rem;
  }

  .vto-catalog-group {
    gap: 0.35rem;
  }

  .vto-catalog-group + .vto-catalog-group {
    padding-top: 0.45rem;
  }

  .vto-catalog-group-heading strong {
    font-size: 0.74rem;
  }

  .vto-catalog-product {
    grid-template-columns: 44px minmax(0, 1fr) 60px;
    min-height: 50px;
    border-radius: 8px;
    padding: 0.3rem 0.38rem;
  }

  .vto-catalog-product-media {
    width: 44px;
    height: 40px;
    border-radius: 6px;
  }

  .vto-catalog-product-copy strong {
    color: #2c1a18;
    font-size: 0.7rem;
  }

  .vto-catalog-product-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    min-height: 30px;
    border: 1px solid #e7ddd8;
    border-radius: 8px;
    color: #281916;
    background: #fffdfc;
    font-size: 0.64rem;
    font-weight: 700;
  }

  .vto-catalog-product.is-selected {
    border-color: #bfa294;
    background: #f5ebe4;
  }

  .vto-catalog-product.is-selected .vto-catalog-product-marker {
    border-color: transparent;
    color: #6b4036;
    background: #eadbd1;
  }

  .desktop-brand-footer {
    width: var(--expected-shell);
    color: #7a6964;
    font-size: 0.58rem;
  }
}

@media (min-width: 821px) and (max-width: 1250px) {
  :root {
    --expected-shell: calc(100vw - 3rem);
  }

  .topbar,
  .desktop-page-intro {
    padding-inline: 1.5rem;
  }

  .studio {
    grid-template-columns: minmax(0, 1.25fr) minmax(420px, 1fr);
  }

  .desktop-brand-nav {
    gap: 1rem;
  }

  .desktop-mirror-benefits > div {
    padding-inline: 0.75rem;
  }
}

/* The VTO is also embedded in narrower storefront/admin frames. At these
   widths the full desktop composition still works, but its fixed product and
   dock columns do not. Keep the two-pane experience and let both panes and
   their contents shrink without creating a horizontal overflow. */
@media (min-width: 821px) and (max-width: 1100px) {
  :root {
    --expected-shell: calc(100vw - 1.5rem);
  }

  .app-shell {
    grid-template-rows: 132px auto 30px;
  }

  .desktop-page-intro {
    height: 132px;
    padding-inline: 0.75rem;
    background-position: center, center, calc(100% - 40px) center;
  }

  .desktop-page-intro h2 {
    font-size: clamp(1.9rem, 4vw, 2.45rem);
  }

  .desktop-page-intro .desktop-intro-copy p {
    max-width: none;
    font-size: clamp(0.75rem, 1.35vw, 0.9rem);
  }

  .studio {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 42%);
    gap: 0.75rem;
  }

  .preview {
    min-width: 0;
    min-height: 560px;
    height: min(760px, calc(100vh - 1rem));
  }

  .panel.selected-product-only {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .panel.selected-product-only > .desktop-product-heading {
    grid-column: 1;
    grid-row: 1;
  }

  .desktop-product-heading {
    min-width: 0;
    min-height: 62px;
    padding: 0.7rem 0.8rem;
  }

  .desktop-product-heading h2 {
    min-width: 0;
    font-size: 1.35rem;
    white-space: nowrap;
  }

  .desktop-product-brand {
    min-width: 0;
    gap: 0.45rem;
  }

  .desktop-product-heading .desktop-product-brand span {
    flex: 0 0 auto;
    padding: 0.35rem 0.55rem;
  }

  .desktop-product-brand small {
    display: none;
  }

  .panel.selected-product-only .selected-product-source {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    padding: 0.55rem 0.75rem 0.8rem;
  }

  #selectedProductContainer {
    min-width: 0;
    padding: 0.55rem;
  }

  #selectedProductContainer .blp-card {
    grid-template-columns: 88px minmax(0, 1fr);
    column-gap: 0.7rem;
  }

  #selectedProductContainer .blp-card-image-button img {
    width: 88px;
    height: 76px;
  }

  #selectedProductContainer .blp-card-title,
  #selectedProductContainer .blp-card-price,
  #selectedProductContainer .blp-card-finish {
    min-width: 0;
  }

  .vto-catalog,
  .vto-catalog-heading,
  .vto-catalog-list,
  .vto-catalog-group,
  .vto-catalog-product,
  .vto-catalog-product-copy {
    min-width: 0;
  }

  .vto-catalog-heading {
    align-items: start;
    gap: 0.5rem;
  }

  .vto-catalog-heading span {
    max-width: 7rem;
    line-height: 1.25;
    text-align: right;
  }

  .desktop-tryon-dock {
    right: 0.65rem;
    left: 0.65rem;
  }

  .desktop-dock-bar {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.45rem;
    padding-inline: 0.45rem;
  }

  .desktop-dock-product,
  .desktop-dock-product .blp-card,
  .desktop-dock-product-summary,
  .desktop-dock-shade-picker {
    min-width: 0;
  }

  .desktop-dock-product .blp-card {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 0.5rem;
  }

  .desktop-dock-product-summary {
    grid-template-columns: 48px minmax(0, 1fr);
    padding-right: 0.55rem;
  }

  .desktop-dock-product .blp-card-image-button img {
    width: 48px;
    height: 48px;
  }

  .desktop-dock-shade-picker {
    max-width: 92px;
    padding-left: 0;
  }

  .desktop-dock-product .blp-card-finish {
    display: none;
  }

  .desktop-dock-reset {
    min-width: 74px;
  }
}

@media (max-width: 820px) {
  #selectedProductContainer.is-query-empty {
    display: grid;
    min-height: 190px;
    padding: 1.25rem;
    background:
      radial-gradient(circle at 50% 38%, rgba(245, 226, 218, 0.72), transparent 46%),
      rgba(255, 255, 255, 0.82);
  }

  .product-query-empty {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0.5rem;
    max-width: 19rem;
    margin: auto;
    color: #735851;
    text-align: center;
  }

  .product-query-empty-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #a65a54;
    background: #f7e9e3;
  }

  .product-query-empty-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
  }

  .product-query-empty strong {
    color: #4a2824;
    font-size: 0.95rem;
  }

  .product-query-empty > span:last-child {
    max-width: 17rem;
    font-size: 0.72rem;
    line-height: 1.5;
  }

  body[data-mobile-sheet="variants"] .blush-placement-chooser {
    margin-top: 0.75rem;
  }
}

@media (min-width: 821px) {
  .panel.selected-product-only .selected-product-source {
    grid-template-rows: auto auto auto auto minmax(0, 1fr);
  }

  .panel.selected-product-only .blush-placement-chooser {
    grid-row: 4;
  }

  .panel.selected-product-only .vto-catalog {
    grid-row: 5;
  }
}
