/* Compact, complete product frames; transparent derivatives retain their aspect. */
.product-picture { aspect-ratio: 1; }
.product-picture > img { width: 100%; height: 100%; object-fit: contain; object-position: center; }

.size-guide-open { flex-shrink: 0; padding: 0; }
.size-guide-dialog {
  color: var(--ink, #22271e);
  background: var(--surface-raised, #fffefa);
  border: 1px solid var(--line-strong, #838779);
  border-radius: 16px;
  width: min(760px, calc(100vw - 40px));
  max-width: none;
  max-height: min(86dvh, 900px);
  padding: 28px;
  margin: auto;
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: 0 20px 80px rgb(20 28 15 / 20%);
}
.size-guide-dialog::backdrop { background: rgb(24 29 20 / 45%); }
.size-guide-dialog[open] { animation: retail-dialog-enter 160ms ease-out; }
.size-guide-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.size-guide-header h2 { font-size: clamp(25px, 3vw, 32px); line-height: 1.2; margin: 5px 0 14px; letter-spacing: -.025em; }
.size-guide-close { flex-shrink: 0; width: 44px; height: 44px; border: 1px solid var(--line-strong, #838779); border-radius: 8px; }
.size-guide-close > img { position: static; width: 18px; height: 18px; filter: none; }
.size-guide-product { font-size: 14px; line-height: 1.6; color: var(--muted, #64685f); margin: 0 0 22px; }
.size-guide-dialog #size-guide-note { font-size: 15px; line-height: 1.75; margin: 0 0 20px; }
.size-guide-empty { padding: 18px; background: var(--surface, #eeeee6); border-radius: 10px; }
.size-guide-table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; margin: 0 0 24px; padding: 5px; }
.size-guide-table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
.size-guide-table caption { text-align: left; font-size: 13px; color: var(--muted, #64685f); padding: 0 0 12px; }
.size-guide-table th, .size-guide-table td { padding: 14px 16px; border-bottom: 1px solid var(--line-strong, #838779); text-align: left; line-height: 1.5; }
.size-guide-table thead th { font-weight: 500; background: var(--surface, #eeeee6); min-width: 120px; }
.size-guide-table th:first-child { min-width: 80px; }
.size-guide-table tbody th { font-weight: 500; white-space: nowrap; }
.size-guide-section { margin: 24px 0; }
.size-guide-section h3 { font-size: 16px; line-height: 1.5; font-weight: 500; margin: 0 0 12px; }
.size-guide-available { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.size-guide-available span { border: 1px solid var(--line-strong, #838779); border-radius: 6px; padding: 8px 12px; font-size: 14px; line-height: 1.5; }
.size-guide-section ol { padding-left: 22px; margin: 0; }
.size-guide-section li { padding-left: 4px; margin: 10px 0; font-size: 14px; line-height: 1.75; }
.size-guide-disclaimer { font-size: 13px; line-height: 1.75; color: var(--muted, #64685f); margin: 14px 0 0; }
.size-guide-product, .size-guide-disclaimer, .size-guide-section li { overflow-wrap: anywhere; }
.size-guide-dialog :focus-visible { outline: 2px solid var(--accent, #596445); outline-offset: 3px; }

@keyframes retail-dialog-enter { from { opacity: .5; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 767px) {
  .size-guide-dialog { width: calc(100vw - 24px); max-height: 90dvh; border-radius: 12px; padding: 20px; }
  .size-guide-header { gap: 12px; }
  .size-guide-header h2 { font-size: 25px; }
  .size-guide-table th, .size-guide-table td { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { .size-guide-dialog[open] { animation: none; } }
/* Actual supplier looks: the whole garment stays visible, captions stay clear. */
.gender-edits .edit { display: block; height: auto; padding: 0; background: #eeede7; }
.gender-edits .edit > img { position: static; display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: contain; object-position: center; z-index: auto; }
.gender-edits .edit::after { display: none; }
.gender-edits .edit > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 28px; }
.gender-edits .edit h2 { margin: 0; color: var(--ink); font-size: clamp(30px, 3vw, 42px); }
.gender-edits .edit .text-link { color: var(--ink); border-color: currentColor; }
.gender-edits .edit .text-link > img { filter: none; }
@media (max-width: 640px) {
  .hero .hero-image { object-position: center top; }
  .editorial-note > img { height: auto; aspect-ratio: 1.18; object-position: center 42%; }
  .gender-edits .edit > div { display: block; padding: 16px 12px 20px; }
  .gender-edits .edit h2 { font-size: 26px; margin-bottom: 12px; }
  .gender-edits .edit .text-link { font-size: 11px; }
}

/* Keep the footer outside the first viewport while a route is unresolved.
   The rule belongs to the temporary loader, so loaded content keeps its own
   natural height and short pages do not acquire permanent empty space. */
.page-loading { min-height: 100vh; min-height: 100svh; }

/* White presentation canvas. The frame separates a white garment from the page;
   no CSS filter or rectangular image shadow changes the photographed fabric. */
.product-picture, .gallery-main, .thumbnail, .cart-image, .photo-viewer-stage { background: #fff; }
.product-picture { box-shadow: 0 0 0 1px #e5e6df; }
