/* Public product detail gallery. Loaded only by public index.html. */
.product-dialog {
  width: min(61rem, calc(100vw - 2rem));
  max-height: min(82dvh, 43rem);
  padding: 0;
  overflow: hidden;
}

.product-dialog__panel {
  position: relative;
  max-height: min(82dvh, 43rem);
  overflow: hidden;
}

.product-dialog__mobile-topbar {
  position: absolute;
  z-index: 7;
  top: 0.85rem;
  right: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

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

.product-dialog__close {
  position: relative;
  z-index: 1;
  display: grid;
  width: 2.65rem;
  min-width: 2.65rem;
  height: 2.65rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--color-text);
  cursor: pointer;
  font-size: 1.55rem;
  line-height: 1;
  pointer-events: auto;
  place-items: center;
  box-shadow: 0 0.35rem 1rem rgba(48, 33, 21, 0.08);
}

.product-detail {
  grid-template-columns: minmax(0, 0.92fr) minmax(20rem, 1.08fr);
  min-height: 0;
  align-items: stretch;
}

.product-detail__media {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0.75rem;
  min-width: 0;
  min-height: 0;
  padding: 1rem 1rem 0.9rem;
  aspect-ratio: auto;
  background: #f7f4f0;
}

.product-gallery__stage {
  position: relative;
  display: grid;
  min-height: 20rem;
  height: clamp(20rem, 43dvh, 27rem);
  grid-template-columns: 3rem minmax(0, 1fr) 3rem;
  align-items: center;
}

.product-gallery__canvas {
  display: grid;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  border-radius: calc(var(--radius-large) * 0.72);
  background: #ffffff;
}

.product-gallery__canvas img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.product-gallery__nav {
  position: relative;
  z-index: 2;
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 1px solid rgba(103, 84, 68, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-text);
  cursor: pointer;
  font-size: 1.65rem;
  line-height: 1;
  place-items: center;
  box-shadow: 0 0.25rem 0.8rem rgba(48, 33, 21, 0.08);
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease;
}

.product-gallery__nav--prev { justify-self: start; }
.product-gallery__nav--next { justify-self: end; }

.product-gallery__nav:hover:not(:disabled),
.product-gallery__nav:focus-visible:not(:disabled) {
  background: #ffffff;
  transform: scale(1.06);
}

.product-gallery__nav:disabled,
.product-gallery__nav[hidden] {
  opacity: 0;
  pointer-events: none;
}

.product-gallery__thumbs {
  display: grid;
  width: min(100%, 15rem);
  min-height: 4rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  justify-self: center;
}

.product-gallery__thumbs:empty,
.product-gallery__thumbs[hidden] {
  min-height: 0;
}

.product-gallery__thumb {
  display: grid;
  aspect-ratio: 1 / 1;
  min-width: 0;
  padding: 0.2rem;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 0.7rem;
  background: #ffffff;
  cursor: pointer;
  place-items: center;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.product-gallery__thumb:hover,
.product-gallery__thumb:focus-visible {
  border-color: var(--color-primary-strong);
  transform: translateY(-1px);
  box-shadow: 0 0.3rem 0.9rem rgba(48, 33, 21, 0.08);
}

.product-gallery__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  border-radius: 0.5rem;
  object-fit: contain;
  object-position: center;
}

.product-detail__image-placeholder {
  min-height: 12rem;
}

.product-detail__content {
  align-self: center;
  max-height: min(35rem, calc(82dvh - 2rem));
  min-width: 0;
  padding: clamp(1.5rem, 2.4vw, 2.5rem);
  padding-right: clamp(3.5rem, 4.2vw, 4.25rem);
  overflow: auto;
  overscroll-behavior: contain;
}


/* v1.9.79 — desktop 3:4 hero + flush vertical 1:1 thumbnail rail */
@media (min-width: 48.001rem) {
  .product-dialog {
    width: min(69rem, calc(100vw - 2rem));
    max-height: min(90dvh, 46rem);
  }

  .product-dialog__panel {
    max-height: min(90dvh, 46rem);
  }

  .product-detail {
    grid-template-columns: max-content minmax(25rem, 28rem);
    justify-content: center;
    min-height: min(74dvh, 42rem);
  }

  .product-detail__media.product-detail__media--rail {
    --gallery-hero-height: clamp(30rem, 66dvh, 35.5rem);
    --gallery-thumb-gap: 0.8rem;
    --gallery-thumb-size: calc((var(--gallery-hero-height) - (var(--gallery-thumb-gap) * 2)) / 3);
    display: grid;
    grid-template-columns: var(--gallery-thumb-size) auto;
    grid-template-rows: minmax(0, 1fr);
    gap: var(--gallery-thumb-gap);
    align-items: center;
    align-content: center;
    justify-content: start;
    padding: 1rem 0.5rem 1rem 0.9rem;
    background: #f7f4f0;
  }

  .product-detail__media--rail .product-gallery__stage {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    display: grid;
    width: calc(var(--gallery-hero-height) * 0.75);
    height: var(--gallery-hero-height);
    max-width: 100%;
    min-height: 0;
    aspect-ratio: 3 / 4;
    justify-self: start;
    align-self: center;
    grid-template-columns: minmax(0, 1fr);
    place-items: stretch;
  }

  .product-detail__media--rail .product-gallery__canvas {
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 1rem;
    box-shadow: 0 0.55rem 1.8rem rgba(49, 34, 22, 0.08);
  }

  .product-detail__media--rail .product-gallery__canvas img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .product-detail__media--rail .product-gallery__nav {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 2.75rem;
    min-width: 2.75rem;
    height: 2.75rem;
    transform: translateY(-50%);
    backdrop-filter: blur(0.45rem);
    -webkit-backdrop-filter: blur(0.45rem);
  }

  .product-detail__media--rail .product-gallery__nav:hover:not(:disabled),
  .product-detail__media--rail .product-gallery__nav:focus-visible:not(:disabled) {
    transform: translateY(-50%) scale(1.06);
  }

  .product-detail__media--rail .product-gallery__nav--prev { left: 0.65rem; }
  .product-detail__media--rail .product-gallery__nav--next { right: 0.65rem; }

  .product-detail__media--rail .product-gallery__thumbs {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    width: var(--gallery-thumb-size);
    max-width: none;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: var(--gallery-thumb-size);
    align-content: start;
    align-self: center;
    gap: var(--gallery-thumb-gap);
    padding: 0;
    overflow: visible;
  }

  .product-detail__media--rail .product-gallery__thumb {
    width: 100%;
    height: var(--gallery-thumb-size);
    aspect-ratio: 1 / 1;
    padding: 0.22rem;
    border-radius: 0.8rem;
  }

  .product-detail__media--rail .product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .product-detail__content {
    align-self: stretch;
    max-height: none;
    min-width: 0;
    padding: clamp(1.75rem, 2.3vw, 2.5rem);
    padding-right: clamp(3.4rem, 4vw, 4rem);
    overflow: auto;
  }

  /* v1.9.111 — single-image products do not reserve the thumbnail rail. */
  .product-dialog[data-gallery-mode='single'] {
    width: min(58rem, calc(100vw - 2rem));
  }

  .product-dialog[data-gallery-mode='single'] .product-detail {
    grid-template-columns: max-content minmax(23rem, 27rem);
  }

  .product-dialog[data-gallery-mode='single'] .product-detail__media.product-detail__media--rail {
    grid-template-columns: auto;
    gap: 0;
    padding: 1rem 0.6rem 1rem 1rem;
  }

  .product-dialog[data-gallery-mode='single'] .product-detail__media--rail .product-gallery__stage {
    grid-column: 1;
  }

  .product-dialog[data-gallery-mode='single'] .product-detail__media--rail .product-gallery__thumbs {
    display: none !important;
  }
}

@media (max-width: 48rem) {
  .product-dialog {
    position: fixed;
    inset: 0;
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #ffffff;
  }

  .product-dialog::backdrop {
    background: rgba(30, 22, 16, 0.24);
  }

  .product-dialog__panel {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
  }

  .product-dialog__mobile-topbar {
    position: sticky;
    top: 0;
    right: auto;
    display: flex;
    width: 100%;
    min-height: 3.55rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: max(0.45rem, env(safe-area-inset-top, 0px)) max(0.8rem, env(safe-area-inset-right, 0px)) 0.45rem max(0.9rem, env(safe-area-inset-left, 0px));
    border-bottom: 1px solid rgba(232, 226, 220, 0.9);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(0.8rem);
    -webkit-backdrop-filter: blur(0.8rem);
    pointer-events: auto;
  }

  .product-dialog__mobile-label {
    display: inline-block;
    min-width: 0;
    overflow: hidden;
    color: var(--color-text);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .product-dialog__close {
    width: 2.55rem;
    min-width: 2.55rem;
    height: 2.55rem;
    background: #ffffff;
    font-size: 1.45rem;
  }

  .product-detail {
    display: block;
    min-width: 0;
    min-height: 0;
  }

  .product-detail__media {
    gap: 0.6rem;
    min-height: 0;
    padding: 0.75rem max(0.75rem, env(safe-area-inset-right, 0px)) 0.7rem max(0.75rem, env(safe-area-inset-left, 0px));
    aspect-ratio: auto;
  }

  .product-gallery__stage {
    min-height: 13rem;
    height: clamp(13rem, 40dvh, 20rem);
    grid-template-columns: 2.7rem minmax(0, 1fr) 2.7rem;
    gap: 0.25rem;
  }

  .product-gallery__canvas {
    border-radius: 0.85rem;
  }

  .product-gallery__nav {
    width: 2.35rem;
    min-width: 2.35rem;
    height: 2.35rem;
    font-size: 1.45rem;
  }

  .product-gallery__thumbs {
    width: min(100%, 13rem);
    min-height: 3.5rem;
    gap: 0.42rem;
  }

  .product-gallery__thumb {
    border-radius: 0.65rem;
  }

  .product-detail__content {
    max-height: none;
    padding: 1.15rem max(1rem, env(safe-area-inset-right, 0px)) calc(1.5rem + env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
    overflow: visible;
  }

  .product-detail__content h2 {
    margin-block-end: 0.8rem;
    font-size: clamp(1.55rem, 7vw, 2rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  .product-detail__description,
  .product-detail__features,
  .product-detail__sizes {
    overflow-wrap: anywhere;
  }

  .product-detail__section {
    padding-block-start: 0.9rem;
    margin-block-start: 0.9rem;
  }

  .size-chip {
    min-height: 2.5rem;
  }
}

@media (max-width: 23.4375rem) {
  .product-gallery__stage {
    height: clamp(12rem, 37dvh, 17rem);
    grid-template-columns: 2.45rem minmax(0, 1fr) 2.45rem;
  }

  .product-gallery__nav {
    width: 2.2rem;
    min-width: 2.2rem;
    height: 2.2rem;
  }

  .product-gallery__thumbs {
    width: min(100%, 11.5rem);
  }
}

@media (max-height: 34rem) and (orientation: landscape) and (max-width: 48rem) {
  .product-gallery__stage {
    min-height: 10rem;
    height: 46dvh;
    max-height: 15rem;
  }

  .product-detail__media {
    padding-block: 0.5rem;
  }
}

/* v1.9.79 — touch target and short-screen hardening */
@media (max-width: 48rem) {
  .product-dialog__close,
  .product-gallery__nav {
    width: 2.75rem;
    min-width: 2.75rem;
    height: 2.75rem;
  }

  .product-gallery__stage {
    grid-template-columns: 2.9rem minmax(0, 1fr) 2.9rem;
  }

  .size-chip {
    min-height: 2.75rem;
  }
}

@media (max-width: 23.4375rem) {
  .product-gallery__stage {
    grid-template-columns: 2.8rem minmax(0, 1fr) 2.8rem;
  }

  .product-gallery__nav {
    width: 2.75rem;
    min-width: 2.75rem;
    height: 2.75rem;
  }
}


/* v1.9.79 — mobile keeps horizontal thumbnails and full-width hero */
@media (max-width: 48rem) {
  .product-detail__media.product-detail__media--rail {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .product-detail__media--rail .product-gallery__stage {
    grid-column: 1;
    grid-row: 1;
  }

  .product-detail__media--rail .product-gallery__thumbs {
    grid-column: 1;
    grid-row: 2;
  }
}

/* v1.9.89 — catalog header banners with centered overlay title */
.catalog-page .catalog__header--meta-only {
  min-height: 0;
  justify-content: flex-end;
  gap: 0;
  padding-bottom: 1rem;
  margin-bottom: 1.1rem;
}

.catalog-page .catalog__header--meta-only .catalog__meta {
  position: static;
  width: 100%;
  justify-content: flex-end;
  text-align: right;
}

.catalog-hero {
  position: relative;
  display: block;
  margin: 0 0 1.35rem;
  overflow: hidden;
  aspect-ratio: 21 / 3;
  min-height: clamp(7rem, 12vw, 10.5rem);
  border: 1px solid rgba(114, 88, 62, 0.12);
  background: linear-gradient(135deg, rgba(245, 235, 224, 0.98), rgba(233, 217, 201, 0.96));
  box-shadow: 0 0.55rem 1.5rem rgba(49, 34, 22, 0.06);
}

.catalog-hero[data-layout='contained'] {
  border-radius: 1.35rem;
}

.catalog-hero[data-layout='full-width'] {
  width: var(--atolye-layout-viewport-width, 100%);
  max-width: var(--atolye-layout-viewport-width, 100%);
  margin-inline: calc(50% - var(--atolye-layout-viewport-half, 50%));
  border-left: none;
  border-right: none;
  border-radius: 0;
  box-shadow: none;
  min-height: clamp(8rem, 13vw, 11.5rem);
}

.catalog-hero[hidden] {
  display: none !important;
}

.catalog-hero__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.catalog-hero__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.35));
}

.catalog-hero[data-has-image='false'] .catalog-hero__overlay {
  background: linear-gradient(135deg, rgba(255, 250, 245, 0.32), rgba(255, 255, 255, 0.08));
}

.catalog-hero__zone {
  min-width: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
}

.catalog-hero__zone--left {
  align-items: flex-start;
  text-align: left;
}

.catalog-hero__zone--center {
  align-items: center;
  text-align: center;
}

.catalog-hero__zone--right {
  align-items: flex-end;
  text-align: right;
}

.catalog-hero__logo {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: min(100%, 15rem);
}

.catalog-hero__logo[hidden] {
  display: none !important;
}

.catalog-hero__logo-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: clamp(2.4rem, 4.6vw, 4.5rem);
  object-fit: contain;
  filter: drop-shadow(0 0.18rem 0.45rem rgba(28, 17, 8, 0.12));
}

.catalog-hero__title {
  position: relative;
  z-index: 1;
  display: block;
  max-width: min(100%, 18ch);
  margin: 0;
  color: #4c3524;
  font-size: clamp(1.9rem, 1.45rem + 1.5vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-shadow: 0 0.08rem 0.24rem rgba(255, 255, 255, 0.55);
}

.catalog-hero[data-title-color='white'] .catalog-hero__title {
  color: #ffffff;
  text-shadow: 0 0.14rem 0.5rem rgba(49, 34, 22, 0.4);
}

.catalog-hero[data-title-font='site'] .catalog-hero__title {
  font-family: inherit;
}

.catalog-hero[data-title-font='elegant-serif'] .catalog-hero__title {
  font-family: Georgia, 'Times New Roman', serif;
}

.catalog-hero[data-title-font='clean-sans'] .catalog-hero__title {
  font-family: Arial, Helvetica, sans-serif;
}

.catalog-hero[data-title-font='classic-serif'] .catalog-hero__title {
  font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
}

.catalog-hero[data-title-font='modern-display'] .catalog-hero__title {
  font-family: 'Trebuchet MS', 'Gill Sans', Arial, sans-serif;
}

.catalog-hero[data-title-size='small'] .catalog-hero__title {
  font-size: clamp(1.45rem, 1.15rem + 1vw, 2.2rem);
}

.catalog-hero[data-title-size='medium'] .catalog-hero__title {
  font-size: clamp(1.9rem, 1.45rem + 1.5vw, 3rem);
}

.catalog-hero[data-title-size='large'] .catalog-hero__title {
  font-size: clamp(2.25rem, 1.65rem + 2vw, 3.8rem);
}

.catalog-hero[data-logo-size='small'] .catalog-hero__logo-image {
  max-height: clamp(1.8rem, 3.4vw, 3rem);
}

.catalog-hero[data-logo-size='medium'] .catalog-hero__logo-image {
  max-height: clamp(2.4rem, 4.6vw, 4.5rem);
}

.catalog-hero[data-logo-size='large'] .catalog-hero__logo-image {
  max-height: clamp(3rem, 5.8vw, 5.6rem);
}

.catalog-hero[data-layout='full-width'][data-title-size='small'] .catalog-hero__title {
  font-size: clamp(1.65rem, 1.2rem + 1.25vw, 2.5rem);
}

.catalog-hero[data-layout='full-width'][data-title-size='medium'] .catalog-hero__title {
  font-size: clamp(2rem, 1.35rem + 2vw, 3.4rem);
}

.catalog-hero[data-layout='full-width'][data-title-size='large'] .catalog-hero__title {
  font-size: clamp(2.45rem, 1.6rem + 2.6vw, 4.25rem);
}

@media (max-width: 48rem) {
  .catalog-page .catalog__header--meta-only {
    padding-bottom: 0.8rem;
  }

  .catalog-page .catalog__header--meta-only .catalog__meta {
    justify-content: center;
    text-align: center;
  }

  .catalog-hero {
    margin-bottom: 1rem;
    border-radius: 1rem;
    min-height: clamp(6.5rem, 24vw, 8rem);
  }

  .catalog-hero[data-layout='full-width'] {
    min-height: clamp(7rem, 28vw, 8.75rem);
  }

  .catalog-hero__overlay {
    gap: 0.65rem;
    padding: 0.85rem 1rem;
  }

  .catalog-hero__logo-image {
    max-height: clamp(2rem, 8vw, 3rem);
  }

  .catalog-hero[data-logo-size='small'] .catalog-hero__logo-image {
    max-height: clamp(1.55rem, 6vw, 2.35rem);
  }

  .catalog-hero[data-logo-size='medium'] .catalog-hero__logo-image {
    max-height: clamp(2rem, 8vw, 3rem);
  }

  .catalog-hero[data-logo-size='large'] .catalog-hero__logo-image {
    max-height: clamp(2.35rem, 9vw, 3.55rem);
  }

  .catalog-hero__title {
    max-width: 100%;
    font-size: clamp(1.55rem, 5.8vw, 2.1rem);
  }

  .catalog-hero[data-title-size='small'] .catalog-hero__title {
    font-size: clamp(1.2rem, 4.8vw, 1.7rem);
  }

  .catalog-hero[data-title-size='medium'] .catalog-hero__title {
    font-size: clamp(1.55rem, 5.8vw, 2.1rem);
  }

  .catalog-hero[data-title-size='large'] .catalog-hero__title {
    font-size: clamp(1.8rem, 6.5vw, 2.45rem);
  }
}

.product-detail__serial {
  margin: -0.15rem 0 0.35rem;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.product-detail__whatsapp {
  display: inline-flex;
  width: 100%;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  margin-top: 1.25rem;
  padding: .8rem 1rem;
  border: 1px solid rgba(26, 122, 69, .32);
  border-radius: .85rem;
  background: #1f7a45;
  color: #fff;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 .35rem 1rem rgba(31, 122, 69, .12);
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.product-detail__whatsapp[hidden] { display: none !important; }
.product-detail__whatsapp:hover,
.product-detail__whatsapp:focus-visible {
  background: #17643a;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 .5rem 1.2rem rgba(31, 122, 69, .18);
}
.product-detail__whatsapp > span:first-child { font-size: 1.05em; }

@media (max-width: 48rem) {
  .product-detail__whatsapp { margin-top: 1rem; min-height: 3.15rem; }
}


/* v1.9.118 — mobile product detail uses a true 3:4 hero frame and suppresses sticky touch focus rings. */
@media (max-width: 48rem) {
  .product-gallery__stage {
    min-height: 0;
    height: auto;
    align-items: center;
  }

  .product-gallery__canvas {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .product-gallery__canvas img {
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center;
  }
}

@media (hover: none) and (pointer: coarse) {
  .product-dialog button,
  .product-dialog button:focus,
  .product-dialog button:focus-visible,
  .product-card__button,
  .product-card__button:focus,
  .product-card__button:focus-visible {
    outline: none !important;
    outline-offset: 0 !important;
    -webkit-tap-highlight-color: transparent;
  }

  .product-dialog__close:focus,
  .product-dialog__close:focus-visible,
  .product-gallery__nav:focus,
  .product-gallery__nav:focus-visible,
  .product-gallery__thumb:focus,
  .product-gallery__thumb:focus-visible {
    border-color: var(--color-border) !important;
    box-shadow: none !important;
    transform: none !important;
  }
}


/* v1.9.120 — product waist / weight metadata */
.product-detail__measurements {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .75rem;
}
.product-detail__measurements[hidden] { display: none !important; }
.product-detail__measurements span {
  padding: .42rem .72rem;
  border: 1px solid rgba(110, 86, 64, .18);
  border-radius: 999px;
  background: rgba(250, 248, 245, .9);
  font-size: .88rem;
  font-weight: 700;
}


/* v1.9.122 — simplified mobile product gallery: no thumbnail rail, dark 3:4 stage, frosted controls. */
@media (max-width: 48rem) {
  .product-detail__media.product-detail__media--rail {
    display: block;
    padding: clamp(.8rem, 3vw, 1rem) max(.55rem, env(safe-area-inset-right, 0px)) clamp(.85rem, 3vw, 1rem) max(.55rem, env(safe-area-inset-left, 0px));
    background: #181411;
  }

  .product-detail__media--rail .product-gallery__stage,
  .product-gallery__stage {
    display: grid;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    height: auto;
    grid-template-columns: clamp(2.8rem, 12vw, 3.25rem) minmax(0, 1fr) clamp(2.8rem, 12vw, 3.25rem);
    align-items: center;
    gap: clamp(.2rem, 1.2vw, .45rem);
    padding: 0;
  }

  .product-detail__media--rail .product-gallery__canvas,
  .product-gallery__canvas {
    grid-column: 2;
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 1rem;
    background: #211c18;
    box-shadow: 0 .8rem 2.1rem rgba(0, 0, 0, .22);
  }

  .product-detail__media--rail .product-gallery__canvas img,
  .product-gallery__canvas img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 3 / 4;
    object-fit: contain;
    object-position: center;
    background: #211c18;
  }

  /* Mobile intentionally hides the 2–3 secondary thumbnail frames. Desktop rail remains unchanged. */
  .product-detail__media--rail .product-gallery__thumbs,
  .product-gallery__thumbs {
    display: none !important;
  }

  .product-detail__media--rail .product-gallery__nav,
  .product-gallery__nav {
    position: relative;
    top: auto;
    z-index: 4;
    display: grid;
    width: clamp(2.55rem, 11vw, 3rem);
    min-width: clamp(2.55rem, 11vw, 3rem);
    height: clamp(2.55rem, 11vw, 3rem);
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 50%;
    background: rgba(255, 255, 255, .68);
    color: #2f241d;
    box-shadow: 0 .4rem 1.3rem rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255,255,255,.45);
    backdrop-filter: blur(14px) saturate(115%);
    -webkit-backdrop-filter: blur(14px) saturate(115%);
    transform: none;
    place-items: center;
    font-size: 1.65rem;
  }

  .product-detail__media--rail .product-gallery__nav--prev,
  .product-gallery__nav--prev {
    grid-column: 1;
    justify-self: center;
    left: auto;
  }

  .product-detail__media--rail .product-gallery__nav--next,
  .product-gallery__nav--next {
    grid-column: 3;
    justify-self: center;
    right: auto;
  }

  .product-gallery__nav:active:not(:disabled) {
    transform: scale(.95);
    background: rgba(255, 255, 255, .78);
  }

  .product-gallery__nav:disabled,
  .product-gallery__nav[hidden] {
    visibility: hidden;
    pointer-events: none;
  }
}


/* v1.9.123 — mobile gallery: naked white chevrons + pinch zoom with snap-back. */
@media (max-width: 48rem) {
  .product-detail__media--rail .product-gallery__nav,
  .product-gallery__nav {
    width: clamp(2.25rem, 10vw, 2.8rem);
    min-width: clamp(2.25rem, 10vw, 2.8rem);
    height: clamp(2.75rem, 12vw, 3.25rem);
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    font-size: clamp(2rem, 8vw, 2.55rem);
    font-weight: 600;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .75);
  }

  .product-gallery__nav:hover:not(:disabled),
  .product-gallery__nav:focus:not(:disabled),
  .product-gallery__nav:focus-visible:not(:disabled),
  .product-gallery__nav:active:not(:disabled) {
    border: 0;
    background: transparent;
    color: #fff;
    box-shadow: none;
    outline: none;
    transform: none;
  }

  .product-gallery__canvas {
    touch-action: pan-y;
  }

  .product-gallery__canvas img {
    transform-origin: 50% 50%;
    will-change: transform;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
  }

  .product-gallery__canvas img[data-zoomed='true'] {
    cursor: zoom-out;
  }
}


/* v1.9.125 — selectable product size measurements */
.product-detail__sizes .size-chip {
  appearance: none;
  cursor: pointer;
  color: var(--color-text);
  transition: border-color .16s ease, background-color .16s ease, color .16s ease, transform .16s ease;
}
.product-detail__sizes .size-chip.is-active,
.product-detail__sizes .size-chip[aria-pressed='true'] {
  border-color: rgba(242,140,40,.72);
  background: rgba(242,140,40,.12);
  color: var(--color-primary-strong);
  box-shadow: inset 0 0 0 1px rgba(242,140,40,.12);
}
@media (hover:hover) and (pointer:fine) {
  .product-detail__sizes .size-chip:hover { border-color: rgba(242,140,40,.48); }
}
@media (max-width:48rem) {
  .product-detail__sizes .size-chip { min-width: 3rem; justify-content: center; }
  .product-detail__measurements { margin-top: .6rem; }
}


/* v1.9.126 — active public size uses a thin underline */
.product-detail__sizes .size-chip {
  position: relative;
  box-shadow: none !important;
}
.product-detail__sizes .size-chip.is-active,
.product-detail__sizes .size-chip[aria-pressed='true'] {
  border-color: rgba(242,140,40,.42);
  background: rgba(242,140,40,.06);
  box-shadow: none !important;
}
.product-detail__sizes .size-chip.is-active::after,
.product-detail__sizes .size-chip[aria-pressed='true']::after {
  content: '';
  position: absolute;
  left: .45rem;
  right: .45rem;
  bottom: -.38rem;
  height: 2px;
  border-radius: 999px;
  background: var(--color-primary-strong);
}
.product-detail__measurements {
  padding-top: .55rem;
}

/* Shared desktop Products layout. Mobile now keeps the standard public header visible. */
@media (min-width: 48.001rem) {
  body[data-page='products'].catalog-all-focus .site-header:not(.admin-site-header) {
    top: calc(-1 * var(--catalog-main-header-height, var(--header-height))) !important;
    transform: none !important;
    transition: none !important;
  }

  body[data-page='products'].catalog-all-focus .site-header:not(.admin-site-header).is-scroll-hidden {
    transform: none !important;
    pointer-events: auto;
  }

  body[data-page='products'].catalog-all-focus .site-shell[data-public-header-managed='true'] {
    grid-template-rows: var(--catalog-category-height, 3.1rem) 1fr auto !important;
  }

  body[data-page='products'].catalog-all-focus .catalog__inner {
    padding-top: 0;
  }

  body[data-page='products'].catalog-all-focus .catalog-hero {
    margin-top: 0;
  }
}

.mobile-photo-open { display:none; }
@media(max-width:48rem) {
 html body .product-dialog[open] { position:fixed!important; inset:0!important; width:100%!important; max-width:100%!important; height:100dvh!important; max-height:100dvh!important; margin:0!important; padding:0!important; overflow:hidden!important; border:0!important; border-radius:0!important; overscroll-behavior:none; }
 html body .product-dialog .product-dialog__panel { height:100%!important; max-height:100%!important; min-height:0!important; overflow-x:hidden!important; overflow-y:auto!important; overscroll-behavior:none; padding:0!important; border-radius:0!important; -webkit-overflow-scrolling:touch; }
 html body .product-dialog .product-detail { min-height:0!important; height:auto!important; overflow:visible!important; }
 html body .product-dialog .product-detail__media { width:100%!important; padding:0!important; margin:0!important; min-height:0!important; height:auto!important; border-radius:0!important; }
 html body .product-dialog .product-gallery__stage { position:relative; display:block!important; width:100%!important; height:auto!important; min-height:0!important; padding:0!important; margin:0!important; border:0!important; border-radius:var(--mobile-detail-radius,0px)!important; overflow:hidden; }
 html body .product-dialog .product-gallery__canvas { width:100%!important; max-width:none!important; height:auto!important; min-height:0!important; max-height:none!important; aspect-ratio:3/4!important; padding:0!important; margin:0!important; border-radius:var(--mobile-detail-radius,0px)!important; overflow:hidden!important; }
 html body .product-dialog .product-gallery__canvas img { width:100%!important; height:100%!important; max-width:none!important; max-height:none!important; object-fit:var(--mobile-detail-fit,cover)!important; border-radius:0!important; transform:var(--inline-photo-transform,none)!important; touch-action:pan-y!important; }
 .mobile-photo-open { display:grid; place-items:center; position:absolute; right:12px; bottom:12px; z-index:8; width:38px; height:38px; padding:8px; border:1px solid #ddd; border-radius:50%; color:#fff; background:#0009; }
 .mobile-photo-open svg { fill:none; stroke:currentColor; stroke-width:1.8; }
 html body .mobile-photo-viewer[open] { position:fixed; inset:0; width:100vw; max-width:100vw; height:100dvh; max-height:100dvh; margin:0; padding:0; border:0; border-radius:0; background:#000; overflow:hidden; touch-action:none; overscroll-behavior:none; }
 .mobile-photo-surface { position:absolute; inset:0; overflow:hidden; touch-action:none; }
 .mobile-photo-surface img { width:100%; height:100%; object-fit:contain; max-width:none; transform-origin:center; user-select:none; }
 .mobile-photo-viewer button { position:absolute; z-index:2; width:44px; height:44px; display:grid; place-items:center; padding:0; line-height:1; color:white; background:#0009; border:1px solid #888; border-radius:50%; font-size:30px; }
 .mobile-photo-viewer .photo-close { top:max(12px,env(safe-area-inset-top)); right:12px; }
 .mobile-photo-viewer .photo-prev { left:12px; top:50%; }
 .mobile-photo-viewer .photo-next { right:12px; top:50%; }
}
@media(max-width:48rem) {
 html body .product-dialog .product-gallery__nav { position:absolute!important; top:50%!important; transform:translateY(-50%); z-index:5; }
 html body .product-dialog .product-gallery__nav--prev { left:8px!important; right:auto!important; }
 html body .product-dialog .product-gallery__nav--next { right:8px!important; left:auto!important; }
}

@media(max-width:48rem) {
 html body .product-dialog .product-dialog__mobile-topbar { display:flex!important; align-items:center!important; justify-content:space-between; }
 html body .product-dialog .product-dialog__close { position:relative!important; inset:auto!important; transform:none!important; margin:0!important; align-self:center!important; flex:0 0 40px; width:40px; height:40px; min-width:40px; padding:0!important; display:grid!important; place-items:center; font-size:0!important; line-height:1; }
 html body .product-dialog .product-dialog__close::before,
 html body .product-dialog .product-dialog__close::after { content:''; position:absolute; left:50%; top:50%; width:17px; height:2px; background:currentColor; border-radius:1px; transform:translate(-50%,-50%) rotate(45deg); }
 html body .product-dialog .product-dialog__close::after { transform:translate(-50%,-50%) rotate(-45deg); }
}

/* v1.9.157 — detail favorite button mirrors the card state without adding a separate favorites page. */
.product-detail__favorite {
  display: inline-flex;
  min-height: 2.65rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: -0.2rem 0 1rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--color-text);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0.25rem 0.8rem rgba(48, 33, 21, 0.06);
  transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.product-detail__favorite[hidden] { display: none !important; }
.product-detail__favorite:hover,
.product-detail__favorite:focus-visible {
  border-color: rgba(242, 140, 40, 0.46);
  transform: translateY(-1px);
}
.product-detail__favorite.is-favorite { color: var(--color-primary-strong); }
.product-detail__favorite .product-favorite-toggle__icon { font-size: 1.2rem; }

@media (max-width: 48rem) {
  .product-detail__favorite {
    min-height: 2.75rem;
    margin-bottom: 0.85rem;
  }
}


/* v1.9.160 — product sharing + fixed mobile Save / Share / WhatsApp action bar. */
.product-detail__desktop-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin: -.2rem 0 1rem;
}
.product-detail__desktop-actions .product-detail__favorite { margin: 0; }
.product-detail__share {
  display: inline-flex;
  min-height: 2.65rem;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .55rem .85rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  color: var(--color-text);
  cursor: pointer;
  font: inherit;
  font-size: .84rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 .25rem .8rem rgba(48,33,21,.06);
  transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease;
}
.product-detail__share[hidden] { display:none !important; }
.product-detail__share:hover,
.product-detail__share:focus-visible { border-color: rgba(242,140,40,.46); transform: translateY(-1px); }
.product-detail__share:disabled { cursor: default; opacity: .68; transform: none; }

.product-mobile-actions { display:none; }
.product-mobile-actions[hidden] { display:none !important; }

@media (max-width:48rem) {
  .product-detail__desktop-actions { display:none; }
  html body .product-dialog .product-detail__content {
    padding-bottom: calc(6rem + env(safe-area-inset-bottom)) !important;
  }
  .product-mobile-actions:not([hidden]) {
    position: fixed;
    z-index: calc(var(--z-modal,220) + 8);
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    gap: 0;
    padding: .48rem max(.55rem,env(safe-area-inset-right)) calc(.48rem + env(safe-area-inset-bottom)) max(.55rem,env(safe-area-inset-left));
    border-top: 1px solid var(--color-border);
    background: color-mix(in srgb, var(--color-surface) 92%, transparent);
    box-shadow: 0 -.6rem 1.7rem rgba(38,27,18,.11);
    backdrop-filter: blur(16px) saturate(135%);
    -webkit-backdrop-filter: blur(16px) saturate(135%);
  }
  .product-mobile-actions__item {
    flex: 1 1 0;
    min-width: 0;
    min-height: 3.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .18rem;
    padding: .35rem .2rem;
    border: 0;
    border-right: 1px solid color-mix(in srgb,var(--color-border) 72%,transparent);
    border-radius: 0;
    background: transparent;
    color: var(--color-text);
    text-decoration: none;
    font: inherit;
    font-size: .73rem;
    font-weight: 800;
    line-height: 1.05;
    text-align: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .product-mobile-actions__item:last-child { border-right:0; }
  .product-mobile-actions__item[hidden] { display:none !important; }
  .product-mobile-actions__item:disabled { opacity:.64; cursor:default; }
  .product-mobile-actions__icon,
  .product-mobile-actions__favorite .product-favorite-toggle__icon {
    min-height: 1.15rem;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
  }
  .product-mobile-actions__favorite.is-favorite { color: var(--color-primary-strong); }
  .product-mobile-actions__whatsapp { color: #176e40; }
  .product-mobile-actions__item:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
}

/* v1.9.160 — mobile gallery follows the finger; adjacent image is revealed during drag. */
@media (max-width:48rem) {
  html body .product-dialog .product-gallery__canvas { position:relative; }
  html body .product-dialog .product-gallery__canvas > img:not(.product-gallery__swipe-preview) {
    position:relative;
    z-index:2;
  }
  html body .product-dialog .product-gallery__swipe-preview {
    position:absolute!important;
    inset:0;
    z-index:1;
    display:block;
    width:100%!important;
    height:100%!important;
    max-width:none!important;
    max-height:none!important;
    object-fit:var(--mobile-detail-fit,cover)!important;
    object-position:center!important;
    border-radius:0!important;
    pointer-events:none;
    user-select:none;
    -webkit-user-select:none;
    -webkit-user-drag:none;
    will-change:transform;
  }
  html body .product-dialog .product-gallery__swipe-preview[hidden] { display:none!important; }
  html body .product-dialog .product-gallery__canvas > img[data-gallery-dragging='true'] { cursor:grabbing; }
}
@media (max-width:48rem) {
  html body .product-dialog .product-gallery__swipe-preview {
    transform:var(--swipe-preview-transform,translate3d(100%,0,0))!important;
  }
}


/* v1.9.163 — mobile detail action reflow: top-right favorite/share, inline size WhatsApp, bottom bar removed. */
.product-detail__section--sizes .product-detail__size-contact-row {
  display: flex;
  align-items: flex-end;
  gap: .85rem;
}
.product-detail__section--sizes .product-detail__size-meta {
  flex: 1 1 auto;
  min-width: 0;
}
.product-detail__section--sizes .product-detail__whatsapp {
  width: auto;
  min-width: 0;
  margin-top: 0;
  white-space: nowrap;
  border-radius: 999px;
}

@media (max-width:48rem) {
  .product-mobile-actions,
  .product-mobile-actions:not([hidden]),
  .product-mobile-actions[hidden] {
    display: none !important;
  }

  html body .product-dialog .product-detail__content {
    position: relative;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)) !important;
  }

  .product-detail__desktop-actions {
    position: absolute;
    top: 1rem;
    right: max(1rem, env(safe-area-inset-right, 0px));
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .55rem;
    margin: 0;
  }

  .product-detail__content h2 {
    padding-right: 6.2rem;
    margin-block-end: 0.8rem;
  }

  .product-detail__favorite,
  .product-detail__share {
    margin: 0;
    width: 2.9rem;
    min-width: 2.9rem;
    height: 2.9rem;
    min-height: 2.9rem;
    padding: 0;
    border-radius: 999px;
    box-shadow: 0 .25rem .8rem rgba(48, 33, 21, .08);
  }

  .product-detail__favorite .product-favorite-toggle__label,
  .product-detail__share [data-product-share-label] {
    display: none;
  }

  .product-detail__favorite .product-favorite-toggle__icon,
  .product-detail__share > span:first-child {
    font-size: 1.18rem;
    line-height: 1;
  }

  .product-detail__section--sizes .product-detail__size-contact-row {
    align-items: center;
    gap: .75rem;
  }

  .product-detail__section--sizes .product-detail__whatsapp {
    flex: 0 0 auto;
    min-height: 2.8rem;
    padding: .72rem .95rem;
    margin-top: .35rem;
    font-size: .8rem;
    line-height: 1;
    box-shadow: 0 .3rem .9rem rgba(31, 122, 69, .12);
  }

  .product-detail__section--sizes .product-detail__whatsapp > span:first-child {
    margin-right: .15rem;
  }
}

@media (max-width:23.4375rem) {
  .product-detail__content h2 {
    padding-right: 5.8rem;
  }

  .product-detail__section--sizes .product-detail__size-contact-row {
    gap: .55rem;
  }

  .product-detail__section--sizes .product-detail__whatsapp {
    padding-inline: .82rem;
    font-size: .76rem;
  }
}


/* WhatsApp brand treatment — centered label, no arrow, official brand green on desktop/mobile. */
.product-detail__whatsapp {
  justify-content: center !important;
  gap: 0 !important;
  border-color: #25D366 !important;
  background: #25D366 !important;
  color: #fff !important;
  text-align: center !important;
  box-shadow: 0 .32rem .95rem rgba(37, 211, 102, .18) !important;
}
.product-detail__whatsapp:hover,
.product-detail__whatsapp:focus-visible {
  border-color: #20C85A !important;
  background: #20C85A !important;
  color: #fff !important;
  box-shadow: 0 .45rem 1.1rem rgba(37, 211, 102, .24) !important;
}
.product-detail__whatsapp > span:first-child {
  margin: 0 !important;
  font-size: inherit !important;
}


/* v1.9.178 — desktop detail polish only; mobile behavior remains untouched. */
@media (min-width: 48.001rem) {
  .product-detail__section--sizes .product-detail__size-contact-row {
    width: 100%;
    align-items: center;
  }

  .product-detail__section--sizes .product-detail__whatsapp {
    flex: 0 0 auto;
    margin-left: auto !important;
    margin-right: 0 !important;
    align-self: center;
  }

  .product-dialog[data-gallery-mode='single'] .product-detail {
    grid-template-columns: minmax(24rem, 28rem) minmax(23rem, 27rem);
    align-items: stretch;
  }

  .product-dialog[data-gallery-mode='single'] .product-detail__media.product-detail__media--rail {
    width: 100%;
    min-width: 0;
    padding: 1rem;
    align-items: center;
    justify-items: center;
    justify-content: center;
  }

  .product-dialog[data-gallery-mode='single'] .product-detail__media--rail .product-gallery__stage {
    width: min(100%, 27rem);
    height: auto;
    min-height: 0;
    aspect-ratio: 3 / 4;
    justify-self: center;
  }

  .product-dialog[data-gallery-mode='single'] .product-detail__media--rail .product-gallery__canvas {
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 4;
  }

  .product-dialog[data-gallery-mode='single'] .product-detail__media--rail .product-gallery__canvas img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }
}

/* v1.9.209 — desktop product-detail media visibility hardening.
   The visible image must own a real 3:4 canvas and cannot inherit stale opacity/visibility
   from any previous image state. Mobile rules below remain unchanged. */
@media (min-width: 48.001rem) {
  .product-dialog[open] .product-gallery__canvas {
    min-width: 12rem;
    min-height: 16rem;
  }

  .product-dialog[open] .product-gallery__canvas img:not([hidden]) {
    position: relative;
    z-index: 1;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .product-dialog[open] .product-detail__image-placeholder[hidden] {
    display: none !important;
  }
}

/* v1.9.209 — catalog banner/logo slots keep their declared geometry while media loads. */
.catalog-hero { width: 100%; min-width: 0; }
.catalog-hero__image { max-width: 100%; }
.catalog-hero__logo { min-width: 0; min-height: 0; }


/* v1.9.209 mobile Products header/category placement hotfix.
   Mobile uses the exact shared Home header row; the existing Products category shell
   is re-parented beneath the banner, replacing the former count/page-size summary. */
@media (max-width: 48rem) {
  body[data-page='products'].catalog-all-focus .catalog__inner {
    padding-top: 0;
  }

  body[data-page='products'].catalog-all-focus .catalog-hero {
    margin-top: 0;
  }

  body[data-page='products'] .catalog__header--mobile-navigation {
    display: block;
    width: 100%;
    min-height: 0;
    padding: 0;
    margin: 0 0 1.1rem;
    border-bottom: 1px solid var(--color-border);
  }

  body[data-page='products'] .catalog__header--mobile-navigation > [data-catalog-count],
  body[data-page='products'] .catalog__header--mobile-navigation > [data-grid-label] {
    display: none !important;
  }

  body[data-page='products'] .catalog__header--mobile-navigation > .header-category-shell {
    position: relative;
    z-index: 2;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    border-top: 0;
    background: #fff;
  }

  body[data-page='products'] .catalog__header--mobile-navigation .header-category-inner {
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 3.1rem;
    align-items: center;
    gap: 0;
    padding: 0;
  }

  body[data-page='products'] .catalog__header--mobile-navigation .header-category-inner > .catalog-menu-trigger,
  body[data-page='products'] .catalog__header--mobile-navigation .header-category-brand {
    display: none !important;
  }

  body[data-page='products'] .catalog__header--mobile-navigation .header-category-nav {
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-start;
    gap: .3rem;
    padding: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 0;
    scrollbar-width: none;
  }

  body[data-page='products'] .catalog__header--mobile-navigation .header-category-nav::-webkit-scrollbar,
  body[data-page='products'] .catalog__header--mobile-navigation .header-subcategory-nav::-webkit-scrollbar {
    display: none;
  }

  body[data-page='products'] .catalog__header--mobile-navigation .header-category-nav button,
  body[data-page='products'] .catalog__header--mobile-navigation .header-category-nav a {
    min-height: 2.2rem;
    padding: .42rem .78rem;
  }

  body[data-page='products'] .catalog__header--mobile-navigation .header-subcategory-panel {
    display: none;
  }

  body[data-page='products'] .catalog__header--mobile-navigation .header-subcategory-panel.is-mobile-open {
    position: static;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    border: 0;
    border-top: 1px solid #f1ece7;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: none;
  }

  body[data-page='products'] .catalog__header--mobile-navigation .header-subcategory-panel.is-mobile-open::before {
    display: none;
  }

  body[data-page='products'] .catalog__header--mobile-navigation .header-subcategory-panel.is-mobile-open .header-subcategory-panel__inner {
    max-height: none;
    padding: .35rem 0 .45rem;
    overflow: hidden;
  }

  body[data-page='products'] .catalog__header--mobile-navigation .header-subcategory-panel.is-mobile-open .header-subcategory-nav {
    display: flex;
    width: 100%;
    gap: .35rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  body[data-page='products'] .catalog__header--mobile-navigation .header-subcategory-panel.is-mobile-open .catalog-subfilter-button {
    width: auto;
    min-width: max-content;
    min-height: 2.35rem;
    flex: 0 0 auto;
    justify-content: center;
    padding: .5rem .8rem;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    text-align: center;
    white-space: nowrap;
  }

  body[data-page='products'] .catalog__header--mobile-navigation .header-subcategory-panel.is-mobile-open .catalog-subfilter-button.is-active {
    border-color: rgba(242, 140, 40, .32);
  }
}

/* v1.9.209 — Products banner must span the real browser viewport.
   Do not use the measured layout-width variable here: on Products that variable
   follows the centered catalog container, which leaves a large blank strip on desktop. */
body[data-page='products'] .catalog-hero {
  position: relative;
  left: auto;
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Products mobile header uses exactly one control row: shared Menu on the left,
   the shared brand in its normal Home position, and Search on the right. The
   legacy primary-nav hamburger is intentionally hidden; it is not part of the
   requested Products mobile header. */
@media (max-width: 48rem) {
  body[data-page='products'] .site-header:not(.admin-site-header) .header-controls {
    position: relative;
    z-index: 5;
    display: flex !important;
    width: 100% !important;
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
  }

  body[data-page='products'] .site-header:not(.admin-site-header) .header-controls > * {
    pointer-events: auto;
  }

  body[data-page='products'] .site-header:not(.admin-site-header) .catalog-menu-trigger--mobile {
    display: inline-flex !important;
    margin: 0 !important;
    flex: 0 0 auto;
  }

  body[data-page='products'] .site-header:not(.admin-site-header) .header-search-trigger--mobile {
    display: inline-grid !important;
    margin-left: auto !important;
    flex: 0 0 auto;
  }

  body[data-page='products'] .site-header:not(.admin-site-header) .menu-toggle {
    display: none !important;
  }
}

/* v1.9.209 — desktop single-image detail should fully occupy the 3:4 media area.
   The desktop Products dialog was leaving the single-image stage visually undersized
   inside the left media column. Keep the 3:4 ratio, but let the stage stretch to the
   full available media pane so the image fills the intended space. */
@media (min-width: 48.001rem) {
  .product-dialog[data-gallery-mode='single'] {
    width: min(66rem, calc(100vw - 2rem));
  }

  .product-dialog[data-gallery-mode='single'] .product-detail {
    grid-template-columns: minmax(0, 1fr) minmax(23rem, 27rem);
    min-height: min(74dvh, 42rem);
  }

  .product-dialog[data-gallery-mode='single'] .product-detail__media.product-detail__media--rail {
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    justify-items: stretch;
    align-items: stretch;
    align-content: stretch;
    padding: 1rem;
  }

  .product-dialog[data-gallery-mode='single'] .product-detail__media--rail .product-gallery__stage {
    width: 100%;
    max-width: none;
    min-height: clamp(28rem, 66dvh, 35.5rem);
    height: auto;
    aspect-ratio: 3 / 4;
    justify-self: stretch;
    align-self: stretch;
  }

  .product-dialog[data-gallery-mode='single'] .product-detail__media--rail .product-gallery__canvas {
    width: 100%;
    height: 100%;
    min-height: inherit;
    max-width: none;
    aspect-ratio: 3 / 4;
  }

  .product-dialog[data-gallery-mode='single'] .product-detail__media--rail .product-gallery__canvas img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover;
    object-position: center;
  }
}

/* v1.9.209 — desktop-only product detail proportion refinement.
   Keep the 3:4 media geometry, but cap the single-image dialog to a balanced desktop
   footprint so the popup has even top/bottom breathing room and does not dominate
   the viewport. Mobile rules are intentionally untouched. */
@media (min-width: 48.001rem) {
  .product-dialog[data-gallery-mode='single'] {
    width: min(61rem, calc(100vw - 2rem));
    max-height: min(78dvh, 39rem);
  }

  .product-dialog[data-gallery-mode='single'] .product-dialog__panel {
    max-height: min(78dvh, 39rem);
  }

  .product-dialog[data-gallery-mode='single'] .product-detail {
    grid-template-columns: minmax(22rem, 24rem) minmax(23rem, 27rem);
    min-height: 0;
    align-items: stretch;
    justify-content: center;
  }

  .product-dialog[data-gallery-mode='single'] .product-detail__media.product-detail__media--rail {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    align-content: center;
    justify-items: center;
    justify-content: center;
    padding: 1rem;
  }

  .product-dialog[data-gallery-mode='single'] .product-detail__media--rail .product-gallery__stage {
    width: auto;
    height: clamp(26rem, 58dvh, 32rem);
    min-height: 0;
    max-height: calc(min(78dvh, 39rem) - 2rem);
    max-width: 100%;
    aspect-ratio: 3 / 4;
    justify-self: center;
    align-self: center;
  }

  .product-dialog[data-gallery-mode='single'] .product-detail__media--rail .product-gallery__canvas {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 3 / 4;
  }

  .product-dialog[data-gallery-mode='single'] .product-detail__media--rail .product-gallery__canvas img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover;
    object-position: center;
  }

  .product-dialog[data-gallery-mode='single'] .product-detail__content {
    max-height: min(78dvh, 39rem);
    overflow: auto;
  }
}

/* v1.9.209 — desktop-only 25px media fit refinement.
   Keep the current popup footprint, but make the single 3:4 image frame consume the
   available left pane with exactly 25px vertical breathing room inside the dialog. */
@media (min-width: 48.001rem) {
  .product-dialog[data-gallery-mode='single'] {
    width: min(61rem, calc(100vw - 2rem));
    height: min(78dvh, 39rem);
    max-height: min(78dvh, 39rem);
  }

  .product-dialog[data-gallery-mode='single'] .product-dialog__panel {
    height: 100%;
    max-height: none;
  }

  .product-dialog[data-gallery-mode='single'] .product-detail {
    height: 100%;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) minmax(23rem, 27rem);
    align-items: stretch;
    justify-content: stretch;
  }

  .product-dialog[data-gallery-mode='single'] .product-detail__media.product-detail__media--rail {
    height: 100%;
    min-height: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 25px 18px;
    box-sizing: border-box;
  }

  .product-dialog[data-gallery-mode='single'] .product-detail__media--rail .product-gallery__stage {
    height: 100%;
    width: auto;
    max-width: 100%;
    min-height: 0;
    aspect-ratio: 3 / 4;
    flex: 0 1 auto;
    align-self: stretch;
    justify-self: center;
  }

  .product-dialog[data-gallery-mode='single'] .product-detail__media--rail .product-gallery__canvas {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-width: none;
    max-height: none;
    aspect-ratio: 3 / 4;
  }

  .product-dialog[data-gallery-mode='single'] .product-detail__media--rail .product-gallery__canvas img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover;
    object-position: center;
  }

  .product-dialog[data-gallery-mode='single'] .product-detail__content {
    height: 100%;
    max-height: none;
    overflow: auto;
  }
}

/* v1.9.209 — desktop-only single-image dialog horizontal 25px fit.
   Make the left media pane hug the 3:4 frame with ~25px left/right breathing room,
   so the frame sits 25px from the popup's left edge and ~25px from the center divider. */
@media (min-width: 48.001rem) {
  .product-dialog[data-gallery-mode='single'] {
    width: min(58rem, calc(100vw - 2rem));
    height: min(78dvh, 39rem);
    max-height: min(78dvh, 39rem);
  }

  .product-dialog[data-gallery-mode='single'] .product-detail {
    height: 100%;
    min-height: 0;
    grid-template-columns: 30rem minmax(25rem, 1fr);
    align-items: stretch;
  }

  .product-dialog[data-gallery-mode='single'] .product-detail__media.product-detail__media--rail {
    height: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 25px;
    box-sizing: border-box;
  }

  .product-dialog[data-gallery-mode='single'] .product-detail__media--rail .product-gallery__stage {
    width: 100%;
    height: auto;
    max-width: none;
    max-height: calc(100% - 50px);
    min-height: 0;
    aspect-ratio: 3 / 4;
    align-self: center;
    justify-self: stretch;
  }

  .product-dialog[data-gallery-mode='single'] .product-detail__media--rail .product-gallery__canvas {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-width: none;
    max-height: none;
    aspect-ratio: 3 / 4;
  }
}


/* v1.9.209 — desktop-only exact four-side 25px image-frame fit.
   Single-image product details use the image frame as the sizing reference:
   25px on top, bottom, left and at the center divider. The popup then shrink-wraps
   that media block plus the existing information column. Mobile remains untouched. */
@media (min-width: 48.001rem) {
  .product-dialog[data-gallery-mode='single'] {
    --desktop-detail-dialog-height: min(78dvh, 39rem);
    width: fit-content;
    max-width: calc(100vw - 2rem);
    height: var(--desktop-detail-dialog-height);
    max-height: var(--desktop-detail-dialog-height);
  }

  .product-dialog[data-gallery-mode='single'] .product-dialog__panel {
    width: auto;
    height: 100%;
    max-height: none;
    overflow: hidden;
  }

  .product-dialog[data-gallery-mode='single'] .product-detail {
    width: auto;
    height: 100%;
    min-height: 0;
    grid-template-columns: max-content minmax(25rem, 28rem);
    align-items: stretch;
    justify-content: start;
  }

  .product-dialog[data-gallery-mode='single'] .product-detail__media.product-detail__media--rail {
    width: max-content;
    height: 100%;
    min-width: 0;
    min-height: 0;
    padding: 25px;
    box-sizing: border-box;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    overflow: hidden;
  }

  .product-dialog[data-gallery-mode='single'] .product-detail__media--rail .product-gallery__stage {
    flex: 0 0 auto;
    width: auto !important;
    height: 100% !important;
    min-width: 0;
    min-height: 0;
    max-width: none !important;
    max-height: none !important;
    aspect-ratio: 3 / 4;
    align-self: stretch;
    justify-self: start;
  }

  .product-dialog[data-gallery-mode='single'] .product-detail__media--rail .product-gallery__canvas {
    width: 100% !important;
    height: 100% !important;
    min-width: 0;
    min-height: 0;
    max-width: none !important;
    max-height: none !important;
    aspect-ratio: 3 / 4;
    overflow: hidden;
  }

  .product-dialog[data-gallery-mode='single'] .product-detail__media--rail .product-gallery__canvas img:not([hidden]) {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .product-dialog[data-gallery-mode='single'] .product-detail__content {
    width: 28rem;
    min-width: 25rem;
    max-width: 28rem;
    height: 100%;
    min-height: 0;
    max-height: none;
    overflow: auto;
    box-sizing: border-box;
  }
}


/* v1.9.209 — DESKTOP multi-image mode uses the exact same popup and 3:4 main-frame
   geometry as single-image mode. The main frame is NOT reduced and the popup is NOT
   widened. Images 2/3/4 are overlaid inside the main frame at upper-left.
   Rest opacity: 25%. Hover/focus or the arrow-selected thumbnail: 100%.
   Mobile behavior is intentionally untouched. */
@media (min-width: 48.001rem) {
  .product-dialog[data-gallery-mode='multiple'] {
    --desktop-detail-dialog-height: min(78dvh, 39rem);
    width: fit-content;
    max-width: calc(100vw - 2rem);
    height: var(--desktop-detail-dialog-height);
    max-height: var(--desktop-detail-dialog-height);
  }

  .product-dialog[data-gallery-mode='multiple'] .product-dialog__panel {
    width: auto;
    height: 100%;
    max-height: none;
    overflow: hidden;
  }

  .product-dialog[data-gallery-mode='multiple'] .product-detail {
    width: auto;
    height: 100%;
    min-height: 0;
    grid-template-columns: max-content minmax(25rem, 28rem);
    align-items: stretch;
    justify-content: start;
  }

  .product-dialog[data-gallery-mode='multiple'] .product-detail__media.product-detail__media--rail {
    position: relative;
    width: max-content;
    height: 100%;
    min-width: 0;
    min-height: 0;
    padding: 25px;
    box-sizing: border-box;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    overflow: hidden;
  }

  .product-dialog[data-gallery-mode='multiple'] .product-detail__media--rail .product-gallery__stage {
    position: relative;
    flex: 0 0 auto;
    width: auto !important;
    height: 100% !important;
    min-width: 0;
    min-height: 0;
    max-width: none !important;
    max-height: none !important;
    aspect-ratio: 3 / 4;
    align-self: stretch;
    justify-self: start;
  }

  .product-dialog[data-gallery-mode='multiple'] .product-detail__media--rail .product-gallery__canvas {
    width: 100% !important;
    height: 100% !important;
    min-width: 0;
    min-height: 0;
    max-width: none !important;
    max-height: none !important;
    aspect-ratio: 3 / 4;
    overflow: hidden;
  }

  .product-dialog[data-gallery-mode='multiple'] .product-detail__media--rail .product-gallery__canvas img:not([hidden]) {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .product-dialog[data-gallery-mode='multiple'] .product-detail__media--rail .product-gallery__thumbs {
    position: absolute;
    z-index: 7;
    top: 41px;
    left: 41px;
    width: 72px;
    height: auto;
    min-height: 0;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 72px;
    grid-auto-rows: 72px;
    gap: 12px;
    align-content: start;
    justify-content: start;
    overflow: visible;
    pointer-events: auto;
  }

  .product-dialog[data-gallery-mode='multiple'] .product-detail__media--rail .product-gallery__thumb {
    width: 72px;
    height: 72px;
    min-width: 72px;
    min-height: 72px;
    max-width: 72px;
    max-height: 72px;
    aspect-ratio: 1 / 1;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 8px;
    opacity: 0.25;
    transition: opacity 150ms ease, transform 150ms ease, border-color 150ms ease;
  }

  .product-dialog[data-gallery-mode='multiple'] .product-detail__media--rail .product-gallery__thumb:hover,
  .product-dialog[data-gallery-mode='multiple'] .product-detail__media--rail .product-gallery__thumb:focus-visible,
  .product-dialog[data-gallery-mode='multiple'] .product-detail__media--rail .product-gallery__thumb.is-active,
  .product-dialog[data-gallery-mode='multiple'] .product-detail__media--rail .product-gallery__thumb[aria-pressed='true'] {
    opacity: 1;
  }

  .product-dialog[data-gallery-mode='multiple'] .product-detail__media--rail .product-gallery__thumb:hover,
  .product-dialog[data-gallery-mode='multiple'] .product-detail__media--rail .product-gallery__thumb:focus-visible {
    transform: translateY(-1px);
  }

  .product-dialog[data-gallery-mode='multiple'] .product-detail__media--rail .product-gallery__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .product-dialog[data-gallery-mode='multiple'] .product-detail__content {
    width: 28rem;
    min-width: 25rem;
    max-width: 28rem;
    height: 100%;
    min-height: 0;
    max-height: none;
    overflow: auto;
    box-sizing: border-box;
  }
}
