/* Private Divi Apparel shop. Keep all styles within this page. */
.ih-shop-page {
  --paper: #f7f4ee;
  --panel: #fff;
  --line: #ddd6cd;
  --type: #211f1d;
  --soft: #58534d;
  --accent: #ff8647;
  --link: #9b3914;
  --focus: #a54219;
  --control-line: #8e8479;
  --control-hover: #f5ebe0;
  background: var(--paper);
  color: var(--type);
  font: 400 16px/1.55 "Segoe UI", Arial, sans-serif;
}

.ih-shop-page, .ih-shop-page * { box-sizing: border-box; }
.ih-shop-page [hidden] { display: none; }
.ih-shop-page :is(h1,h2,h3,h4) {
  color: var(--type);
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  line-height: 1.07;
  margin: 0;
  padding: 0;
  letter-spacing: -.035em;
}
.ih-shop-page p { margin: 0; padding: 0; }
.ih-shop-page a { color: inherit; }
.ih-shop-page a:hover { color: var(--link); }
.ih-shop-page :focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.ih-shop-width { width: min(1320px, calc(100% - 80px)); margin-inline: auto; }
.ih-shop-header, .ih-shop-hero {
  --line: #343741;
  --type: #fbfaf7;
  --soft: #c4c6ce;
  --link: var(--accent);
  --focus: var(--accent);
  --control-line: #818695;
  --control-hover: #2a2d37;
  color: var(--type);
}
.ih-shop-header { border-bottom: 1px solid var(--line); background: #000; }
.ih-shop-header-inner { min-height: 75px; display: flex; align-items: center; gap: 34px; }
.ih-shop-logo { display: flex; flex: 0 0 auto; align-items: center; }
.ih-shop-logo img { display: block; width: clamp(205px, 24vw, 315px); height: auto; }
.ih-shop-header nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; font-weight: 650; }

.ih-shop-page .ih-shop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: 700 14px/1.25 "Segoe UI", Arial, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.ih-shop-page .ih-shop-btn-main { background: var(--accent); color: #1b130d; }
.ih-shop-page .ih-shop-btn-main:hover { background: #ffa674; color: #1b130d; }
.ih-shop-page .ih-shop-btn-outline { color: var(--type); border-color: var(--control-line); background: transparent; }
.ih-shop-page .ih-shop-btn-outline:hover { color: var(--type); background: var(--control-hover); }

.ih-shop-hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: stretch;
  margin-block: 30px 38px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #191b22;
}
.ih-shop-hero-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(26px, 4vw, 62px); }
.ih-shop-page .ih-shop-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--accent); margin-bottom: 15px; }
.ih-shop-hero h1 { font-size: clamp(40px, 4.8vw, 74px); }
.ih-shop-hero h1 em { font-style: normal; color: var(--accent); }
.ih-shop-page .ih-shop-intro { max-width: 38ch; color: var(--soft); font-size: clamp(15px, 1.4vw, 19px); margin-top: 19px; }
.ih-shop-hero-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 25px; }
.ih-shop-hero-image { display: block; width: 100%; height: 100%; min-height: 320px; max-height: 520px; object-fit: cover; object-position: center; }

.ih-shop-catalog { margin-block: 0 50px; scroll-margin-top: 15px; }
.ih-shop-catalog :is(h1,h2) { font-size: clamp(29px, 3vw, 42px); }
.ih-shop-catalog h1 { margin-top: 28px; }
.ih-shop-collections { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 18px; }
.ih-shop-page .ih-shop-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border-radius: 40px;
  border: 1px solid var(--control-line);
  background: var(--panel);
  padding: 6px 15px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.ih-shop-page .ih-shop-pill[aria-current] { color: #20160f; background: var(--accent); border-color: var(--link); }
.ih-shop-page .ih-shop-pill:hover:not([aria-current]) { color: var(--type); background: var(--control-hover); }

.ih-shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.ih-shop-page label { display: grid; gap: 5px; font-size: 13px; font-weight: 650; min-width: 0; }
.ih-shop-filters label:first-of-type { flex: 1 1 260px; }
.ih-shop-filters label:not(:first-of-type) { flex: 0 1 210px; }
.ih-shop-page :is(input[type=search],select) {
  min-width: 0;
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--control-line);
  border-radius: 7px;
  background: #fff;
  color: var(--type);
  padding: 8px 10px;
  font: inherit;
  font-weight: 400;
  color-scheme: light;
}
.ih-shop-page input::placeholder { color: var(--soft); opacity: 1; }
.ih-shop-reset { align-self: center; margin-top: 20px; padding: 4px; font-size: 14px; text-decoration: underline; }
.ih-shop-count { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-block: 24px 13px; }
.ih-shop-count h3 { font-size: 26px; }
.ih-shop-count span { color: var(--soft); font-size: 14px; }
.ih-shop-collection { margin-top: 34px; scroll-margin-top: 14px; }
.ih-shop-collection + .ih-shop-collection { border-top: 1px solid var(--line); padding-top: 8px; }
.ih-shop-collection .ih-shop-count { justify-content: space-between; }
.ih-shop-collection .ih-shop-more { color: var(--link); font-weight: 700; }
.ih-shop-page .ih-shop-tier-note { margin-top: 14px; color: var(--soft); font-size: 14px; }
.ih-shop-tier {
  align-self: flex-start;
  margin-bottom: 9px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--soft);
  background: var(--paper);
  font-size: 12px;
  font-weight: 700;
}
.ih-shop-card[data-tier="premium"] .ih-shop-tier { color: var(--link); border-color: #d2a390; background: #fff0e6; }
.ih-shop-editorial-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

.ih-shop-brands { margin-bottom: 44px; scroll-margin-top: 15px; }
.ih-shop-brands h2 { font-size: clamp(29px, 3vw, 42px); }
.ih-shop-brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr));
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.ih-shop-page .ih-shop-brand-grid a {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  min-height: 100%;
  background: #fff;
  color: #181a21;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}
.ih-shop-brand-grid img { width: 120px; height: 55px; max-width: 100%; object-fit: contain; }
.ih-shop-page .ih-shop-brand-grid a:hover { background: #ffe9dc; }

.ih-shop-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.ih-shop-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 12px;
  overflow: hidden;
}
.ih-shop-product-art { position: relative; display: grid; place-items: center; container-type: inline-size; background: var(--panel); border-bottom: 1px solid #eee8e0; aspect-ratio: 1.42; min-height: 0; overflow: hidden; }
.ih-shop-product-art img { display: block; height: 100%; width: 100%; object-fit: contain; }
.ih-shop-photo-status { color: #343741; font-size: 14px; text-align: center; padding: 14px; }
.ih-shop-preview-swatch {
  display: block; width: clamp(44px, 40cqw, 100px); aspect-ratio: 1;
  margin: 0 auto 10px; border: 1px solid var(--line); border-radius: 50%;
  background: var(--preview-color);
}
.ih-shop-photo-status[hidden], .ih-shop-preview-swatch[hidden], .ih-shop-product-art img[hidden] { display: none; }
.ih-shop-card-details { padding: 15px; flex: 1; display: flex; flex-direction: column; }
.ih-shop-card h4 { font-size: 19px; overflow-wrap: anywhere; }
.ih-shop-page .ih-shop-card p { margin-block: 6px 12px; color: var(--soft); font-size: 14px; line-height: 1.35; }
.ih-shop-card-form { display: grid; gap: 10px; margin-top: auto; }
.ih-shop-page .ih-shop-chest {
  position: absolute;
  left: var(--design-x);
  top: var(--design-y);
  transform: translate(-50%, -50%);
  color: var(--design-ink, #f8f5ef);
  font-family: "Arial Black", "Segoe UI", sans-serif;
  text-align: center;
  text-transform: uppercase;
  font-size: var(--design-size);
  font-weight: 900;
  letter-spacing: .07em;
  line-height: .96;
  opacity: .9;
  pointer-events: none;
}
.ih-shop-chest:not([data-aligned]), .ih-shop-chest[hidden] { visibility: hidden; }
.ih-shop-chest :is(span,strong) { display: block; }
.ih-shop-chest strong { font: inherit; font-size: 1.32em; font-style: italic; letter-spacing: -.025em; }
.ih-shop-color { border: 0; padding: 0; margin: 0; min-width: 0; }
.ih-shop-color legend { font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.ih-shop-color legend span { color: var(--soft); font-weight: 400; margin-left: 3px; }
.ih-shop-swatches { display: flex; gap: 2px; width: 100%; padding: 3px 0 6px; overflow-x: auto; scrollbar-color: var(--control-line) var(--paper); scrollbar-width: thin; }
.ih-shop-page .ih-shop-swatch { display: block; position: relative; flex: 0 0 34px; margin: 0; cursor: pointer; }
.ih-shop-swatch input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 34px; height: 34px; cursor: pointer; }
.ih-shop-swatch span { display: grid; place-items: center; min-width: 32px; min-height: 32px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--control-line); border-radius: 50%; background: var(--swatch, #424650); margin: 1px; color: #fff; font-size: 10px; text-transform: uppercase; }
.ih-shop-swatch input:checked + span { box-shadow: 0 0 0 1px var(--focus), inset 0 0 0 1px var(--focus); }
.ih-shop-swatch input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: -2px; }
.ih-shop-card .ih-shop-btn { width: 100%; }
.ih-shop-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 22px; }
.ih-shop-pagination span { font-size: 14px; color: var(--soft); }
.ih-shop-empty { border: 1px solid var(--line); border-radius: 12px; padding: 22px; background: var(--panel); }
.ih-shop-empty p { margin-top: 8px; }
.ih-shop-empty a { text-decoration: underline; }

.ih-shop-help { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; border: 1px solid var(--line); border-radius: 12px; padding: 24px 27px; background: var(--panel); }
.ih-shop-help h2 { font-size: 25px; }
.ih-shop-help p { margin-top: 7px; color: var(--soft); }
.ih-shop-footer { padding-block: 24px; color: var(--soft); display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; }
.ih-shop-footer a { color: var(--type); }

.ih-shop-page .ih-shop-hero-group {
  margin-top: 15px;
  font-size: 14px;
  font-weight: 650;
  color: var(--soft);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.ih-shop-page .ih-shop-hero-group:hover { color: var(--accent); }
.ih-shop-groups { margin: 0 0 44px; scroll-margin-top: 15px; }
.ih-shop-groups h2 { font-size: clamp(29px,3vw,42px); }
.ih-shop-group-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; margin-top: 16px; }
.ih-shop-group-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 11px; padding: 19px; background: var(--panel); }
.ih-shop-group-card h3 { font-size: 21px; }
.ih-shop-page .ih-shop-group-card p { color: var(--soft); margin: 8px 0 16px; font-size: 14px; line-height: 1.5; }
.ih-shop-group-links { margin-top: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 13px; }
.ih-shop-more { font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 830px) { .ih-shop-group-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 520px) { .ih-shop-group-grid { grid-template-columns: 1fr; } }

@media (max-width: 1020px) {
  .ih-shop-width { width: calc(100% - 46px); }
  .ih-shop-hero { grid-template-columns: 1fr 1fr; }
  .ih-shop-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .ih-shop-header-inner { gap: 18px; }
  .ih-shop-header nav { gap: 16px; }
}
@media (max-width: 740px) {
  .ih-shop-width { width: calc(100% - 30px); }
  .ih-shop-header-inner { min-height: 61px; justify-content: space-between; gap: 7px; }
  .ih-shop-logo img { width: clamp(145px, 51vw, 225px); }
  .ih-shop-header nav { display: none; }
  .ih-shop-hero { grid-template-columns: 1fr; margin-block: 16px 24px; }
  .ih-shop-hero h1 { font-size: clamp(35px, 7.5vw, 53px); }
  .ih-shop-hero-copy { padding: 21px; }
  .ih-shop-hero-image { max-height: 280px; min-height: 0; aspect-ratio: 1.74; }
  .ih-shop-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .ih-shop-filters label { flex: 1 1 180px; }
  .ih-shop-card-details { padding: 11px; }
}
@media (max-width: 430px) {
  .ih-shop-width { width: calc(100% - 22px); }
  .ih-shop-hero-actions .ih-shop-btn { flex: 1 1 auto; }
  .ih-shop-header-action { padding-inline: 8px !important; font-size: 13px !important; }
  .ih-shop-grid { grid-template-columns: 1fr; }
  .ih-shop-product-art { aspect-ratio: 1.36; }
  .ih-shop-filters label { flex-basis: 100% !important; }
  .ih-shop-help { padding: 19px; }
}
@media (prefers-reduced-motion: reduce) { .ih-shop-page .ih-shop-btn { transition: none; } }
