/* Reference photography only: preserve colour, construction and complete edges. */
.ih-v1-site .ih-colour-guide {
  width: min(1200px, calc(100% - 80px));
  margin: 0 auto;
  padding: 60px 0 80px;
  gap: 24px;
}
.ih-v1-site .ih-colour-guide h1 { font-size: clamp(42px, 5vw, 70px); }
.ih-v1-site .ih-colour-guide h2 { font-size: clamp(32px, 3.5vw, 48px); }
.ih-v1-site .ih-colour-guide-section {
  padding-top: 32px;
  gap: 16px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 30px;
}
.ih-v1-site .ih-colour-guide img {
  width: 100%;
  height: auto;
  display: block;
}
.ih-v1-site .ih-colour-guide-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 24px; }
.ih-v1-site .ih-colour-guide-nav a,
.ih-v1-site .icon-hair-colour-guide-link { text-decoration: underline; text-underline-offset: 5px; }
.ih-v1-site .icon-hair-colour-guide-link { display: inline-block; margin: 0 0 20px; font: 500 14px/1.6 var(--sans); }
.ih-v1-site .ih-colour-guide-fullsize .elementor-button { background: var(--ink); color: white; border-radius: 0; }
@media(max-width: 760px) {
  .ih-v1-site .ih-colour-guide { width: calc(100% - 40px); padding: 36px 0 50px; }
}
.ih-v1-site .variations_form .icon-hair-choice--texture {
  width: calc((100% - 1rem) / 3);
  min-width: 0;
  border-radius: 0;
  padding: 8px;
}
.ih-v1-site .icon-hair-choice__texture-image {
  height: 120px;
  border-radius: 0;
  object-fit: contain;
}
.ih-v1-site .icon-hair-choice__reference-type {
  font-size: 10px;
  opacity: .75;
}
.ih-v1-site .icon-hair-texture-note {
  color: var(--muted);
  font: 400 12px/1.6 var(--sans);
  margin: 0 0 20px;
}
@media(max-width: 760px) {
  .ih-v1-site .variations_form .icon-hair-choice--texture {
    width: calc((100% - .5rem) / 2);
  }
}
.ih-v1-site .ih-shade-preview-label {
  display: block;
  padding: 5px 0;
  font: 500 12px/1.4 var(--sans);
  color: var(--ink);
}
.ih-v1-site .ih-shop-category-card .shop-photo,
.ih-v1-site .ih-drilldown-image,
.ih-v1-site .shop-photo {
  background: #fff;
}
.ih-v1-site .shop-photo img {
  object-fit: contain;
}
.ih-v1-site .ih-card-reference {
  margin: 0 0 12px;
  color: var(--muted);
  font: 400 12px/1.6 var(--sans);
}
.ih-v1-site .ih-v1-product .main-product-image {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
}
.ih-v1-site .ih-v1-product .main-product-image > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}
/* Keep the preview beside long option forms; lower gallery content stays reachable. */
@media (min-width: 1025px) {
  .ih-v1-site .ih-v1-product .product-gallery.e-con {
    position: sticky;
    top: 24px;
    align-self: start;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    scrollbar-width: thin;
  }
  .ih-v1-site .ih-v1-product .product-gallery .main-product-image {
    width: min(100%, calc(100vh - 72px));
    width: min(100%, calc(100dvh - 72px));
    margin-inline: auto;
    flex-shrink: 0;
  }
  body.admin-bar.ih-v1-site .ih-v1-product .product-gallery.e-con {
    top: 56px;
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px);
  }
  body.admin-bar.ih-v1-site .ih-v1-product .product-gallery .main-product-image {
    width: min(100%, calc(100vh - 104px));
    width: min(100%, calc(100dvh - 104px));
  }
}
.ih-v1-site .ih-v1-product .ih-v1-thumbnails button {
  background: #fff;
  border-radius: 0;
}
.ih-v1-site .ih-v1-product .ih-v1-thumbnails img {
  display: block;
  width: 100%;
  height: 70px;
  object-fit: contain;
  object-position: center;
  background: #fff;
}
.ih-v1-site .ih-v1-category .catalog-intro-photo {
  height: auto;
  min-height: 0;
  display: block;
  overflow: visible;
  background: transparent;
}
.ih-v1-site .ih-v1-category .catalog-intro-photo .elementor-widget,
.ih-v1-site .ih-v1-category .catalog-intro-photo .elementor-widget-container {
  height: auto;
  min-height: 0;
}
.ih-v1-site .ih-v1-category .catalog-intro-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border: 1px solid var(--line);
}
.ih-v1-site .ih-v1-category .catalog-intro-photo figure { margin: 0; }
/* Captions are real merchant-provided text, never a label drawn over the photo. */
.ih-v1-site .ih-v1-product .ih-v1-gallery > .image-note,
.ih-v1-site .ih-reference-caption,
.ih-v1-site .ih-v1-reference-caption {
  position: static;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 12px 0 0;
  padding: 12px 14px;
  background: #f5f3ee;
  color: var(--muted);
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  border-radius: 0;
  font: 400 13px/1.7 var(--sans);
  letter-spacing: normal;
  text-transform: none;
  overflow-wrap: anywhere;
}
.ih-v1-site .ih-v1-category .catalog-intro-photo .ih-v1-photo-caption {
  position: static;
  inset: auto;
  width: 100%;
  margin: 10px 0 0;
  color: var(--muted);
}
.ih-v1-site .ih-reference-caption :is(p, strong),
.ih-v1-site .ih-v1-reference-caption :is(p, strong),
.ih-v1-site .ih-v1-gallery > .image-note :is(p, strong) {
  font-size: inherit;
  line-height: inherit;
}
.ih-v1-site .ih-reference-caption p,
.ih-v1-site .ih-v1-reference-caption p { margin: 0; }
.ih-v1-site .ih-reference-caption strong,
.ih-v1-site .ih-v1-reference-caption strong,
.ih-v1-site .ih-v1-gallery > .image-note strong { font-weight: 600; }
@media (max-width: 760px) {
  .ih-v1-site .ih-v1-product .ih-v1-gallery > .image-note,
  .ih-v1-site .ih-reference-caption,
  .ih-v1-site .ih-v1-reference-caption { padding: 11px 12px; }
}

/* Closure coverage diagrams stay independent of the hair preview. */
.ih-v1-site .variations_form .icon-hair-choices.icon-hair-lace-sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ih-v1-site .variations_form .icon-hair-choice--lace { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 6px 12px; }
.ih-v1-site .icon-hair-lace-diagram { width: 100%; height: 80px; max-width: 100px; color: #947c4c; }
.ih-v1-site .icon-hair-choice--lace[aria-pressed="true"] .icon-hair-lace-diagram { color: #e1c991; }
.ih-v1-site .ih-lace-construction { margin: 20px 0; border-top: 1px solid #ded9cf; border-bottom: 1px solid #ded9cf; padding: 16px 0; }
.ih-v1-site .ih-lace-construction summary { cursor: pointer; font-weight: 500; font-size: 14px; }
.ih-v1-site .ih-lace-construction figure { margin: 16px 0 0; }
.ih-v1-site .ih-lace-construction img { display: block; width: 240px; max-width: 100%; height: auto; background: #fff; }
.ih-v1-site .ih-lace-construction figcaption { font-size: 12px; color: #6b675f; line-height: 1.6; max-width: 400px; margin-top: 10px; }
@media(max-width: 767px) { .ih-v1-site .variations_form .icon-hair-choices.icon-hair-lace-sizes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.ih-v1-site .ih-mobile-preview[hidden] { display: none; }
.ih-mobile-preview { display: none; }
.ih-v1-site .ih-mobile-preview-dialog {
  width: min(92vw, 620px); max-height: 92vh; max-height: 92dvh;
  padding: 48px 18px 18px; border: 1px solid #ded9cf; background: #faf9f6;
  color: #27231e; overflow: auto;
}
.ih-mobile-preview-dialog::backdrop { background: rgb(39 35 30 / 65%); }
.ih-v1-site .ih-mobile-preview-dialog > img { display: block; width: 100%; max-height: 65vh; max-height: 65dvh; object-fit: contain; background: #fff; }
.ih-v1-site .ih-mobile-preview-close { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #27231e; font-size: 28px; }
.ih-mobile-preview-description { font-size: 14px; font-weight: 600; margin: 12px 0 6px; }
.ih-mobile-preview-disclaimer { font-size: 12px; line-height: 1.5; margin: 0; }
@media (max-width: 767px) {
  .ih-v1-site .ih-mobile-preview {
    display: flex; position: fixed; z-index: 90; top: calc(12px + env(safe-area-inset-top)); right: 12px;
    width: 238px; max-width: calc(100vw - 24px); background: #faf9f6;
    border: 1px solid #b9a477; box-shadow: 0 4px 20px rgb(39 35 30 / 12%);
  }
  body.admin-bar.ih-v1-site .ih-mobile-preview { top: calc(58px + env(safe-area-inset-top)); }
  .ih-v1-site .ih-mobile-preview-open {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 44px 8px 8px;
    border: 0; background: transparent; color: #27231e; text-align: left; font: inherit;
  }
  .ih-v1-site .ih-mobile-preview-open img { flex: 0 0 64px; width: 64px; height: 76px; object-fit: contain; background: #fff; }
  .ih-mobile-preview-open > span { display: grid; gap: 3px; }
  .ih-mobile-preview-open strong { font-size: 12px; font-weight: 600; }
  .ih-mobile-preview-selection { font-size: 11px; line-height: 1.4; }
  .ih-mobile-preview-open small { font-size: 10px; color: #655f55; }
  .ih-v1-site .ih-mobile-preview-dismiss { position: absolute; top: 0; right: 0; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #27231e; font-size: 22px; }
  .ih-mobile-preview button:focus-visible, .ih-mobile-preview-dialog button:focus-visible { outline: 2px solid #947c4c; outline-offset: -3px; }
}

.ih-v1-site .ih-v1-category .catalog-intro-photo .ih-shop-lifestyle img { object-fit: cover; border: 0; }
.ih-v1-site .ih-origin-guide { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 32px; max-width: 900px; }
.ih-v1-site .ih-origin-guide h2 { font-size: clamp(28px, 3vw, 40px); margin: 0 0 18px; }
.ih-v1-site .ih-origin-guide h3 { font-size: 24px; margin: 28px 0 12px; }
.ih-v1-site .ih-origin-guide p { color: var(--muted); line-height: 1.8; margin: 0 0 18px; }
.ih-v1-site .ih-origin-guide a { text-decoration: underline; text-underline-offset: 4px; }

.ih-v1-site .ih-v1-category .catalog-intro-photo .ih-lace-category-reference img { aspect-ratio: 1 / 1; object-fit: contain; }

.ih-v1-site .ih-shop-category-card.ih-lace-square-card .shop-photo { aspect-ratio: 1 / 1; }
