}

/* Home: let the grid set the distance between merchandising sections. */
#index #content.page-content--home {
  row-gap: clamp(20px, 2vw, 24px);
}

#index #content > .ph-home-aisles {
  margin-bottom: 0;
}

#index #content > .phfp {
  /* Featured Products sets its margin shorthand with !important. */
  margin-block: 0 !important;
}

#index #content > .ph-bestsellers--home {
  margin-block: 0;
  padding-block: 4px;
}

#index #content > .ps-newproducts > .module-products {
  padding-top: 0;
}

/* Product pages: keep more breathing room than on category pages. */
#product #wrapper > .w121-breadcrumb-wrap {
  margin-bottom: 16px;
}
@media (max-width: 767.98px) {
  #product .w121-breadcrumb__item.is-current {
    max-width: 100%;
  }

  #product .w121-breadcrumb__current {
    display: block;
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
  }
}
/* Wilderness 1-2-1 — Desktop product reform v1.0.2 | 2026-11-27 */
@media (min-width: 992px) {
  body#product {
    --w121-product-max-width: 1280px;
    --w121-product-clay: #bd4030;
    --w121-product-canvas: #f3f5f1;
  }
  body#product :is(.product__container,.w121-product-merchandising,.w121-product-tabs) {
    width:100%; max-width:var(--w121-product-max-width); margin-inline:auto; box-sizing:border-box;
  }
  body#product .product__container {
    margin-bottom:0!important; border-bottom:0!important;
    border-bottom-left-radius:0!important; border-bottom-right-radius:0!important;
    background:var(--w121-product-canvas); box-shadow:none; padding-bottom:12px;
  }
  body#product .w121-product-merchandising {
    margin-top:0!important; border-top:0!important;
    border-top-left-radius:0!important; border-top-right-radius:0!important;
    background:var(--w121-product-canvas)!important; box-shadow:none;
    padding:12px 20px 20px!important;
  }
  body#product .product__right { min-width:0; }
  body#product .product__right .product__name { font-size:clamp(26px,2.25vw,32px)!important; line-height:1.12; letter-spacing:-.025em; margin-bottom:8px; }
  body#product .product__right .product__manufacturer a,
  body#product .product__right .w121-know-more { color:var(--w121-product-clay)!important; }
  body#product .product__right :is(.product__price,.current-price,.w121-price-current,.phpc-money,.phpc-amount,.phpc-decimals,.phpc-currency) { color:var(--w121-product-clay)!important; }
  body#product .product__right :is(.product__tax-infos,.product__tax-label,.w121-sale-summary__was) { color:#536358!important; }
  body#product .product__right .product__description-short :is(h1,h2,h3,h4) { font-size:21px!important; line-height:1.24; margin:0 0 8px; }
  body#product .product__right .product__description-short p { font-size:14px; line-height:1.48; margin:0 0 9px; }
  body#product .product__right .w121-know-more { display:inline-flex; margin-block:4px 8px; }
  body#product .product__left :is(button,a,img):is([aria-current="true"],[aria-selected="true"],.selected,.active):not(.carousel-item) { border-color:var(--w121-product-clay)!important; }
  body#product .w121-product-merchandising .w121-related-mini { border-top:1px solid #cbd7c9; padding-top:14px; }
  body#product .w121-product-merchandising .phwj-mini__title { font-size:16px; font-weight:700; }
  body#product .w121-product-merchandising .phwj-mini__title i { color:var(--w121-product-clay); }
  body#product .w121-product-merchandising .phwj-mini__saving { background:var(--w121-product-clay); color:white; padding:3px 10px; }
  body#product .w121-product-merchandising .phwj-mini__track { gap:8px; }
  body#product .w121-product-merchandising .phwj-mini .phwj-mini__card { flex:0 0 calc((100% - 48px)/7)!important; width:calc((100% - 48px)/7)!important; min-width:120px!important; max-width:none!important; padding:7px!important; }
  body#product .w121-product-merchandising .phwj-mini__image,
  body#product .w121-product-merchandising .phwj-mini__image img { height:60px; }
  body#product .w121-product-merchandising .phwj-mini__name { font-size:12px; }
  body#product .w121-product-merchandising .phwj-mini__status { font-size:12px; }
  body#product .w121-product-merchandising .phwj-product-bundles { border-top:1px solid #d5ded2; padding-top:8px; margin-bottom:0; }
  body#product .w121-product-tabs .nav-tabs .nav-link.active { color:#fff!important; border-bottom:3px solid var(--w121-product-clay)!important; box-shadow:inset 0 -3px 0 var(--w121-product-clay); }
  body#product .w121-product-tabs .nav-tabs .nav-link:not(.active) { color:#d9e1d7!important; }
}


/* Wilderness 1-2-1 — Product overview v1.0.3 | 2026-11-27 */
body#product .product__right .w121-overview [hidden] { display:none !important; }
@media (min-width: 992px) {
  body#product .product__right .w121-overview__viewport { display:flow-root; }
  body#product .product__right .w121-overview.is-collapsed .w121-overview__viewport {
    max-height:var(--w121-overview-preview,100px); overflow:hidden; position:relative;
    mask-image:none;
  }
  body#product .product__right .w121-overview__toggle {
    display:inline-flex; align-items:center; gap:4px; padding:4px 0;
    margin:2px 0 8px; border:0; background:transparent;
    color:var(--w121-product-clay,#bd4030); font-size:13px; font-weight:700;
    cursor:pointer;
  }
  body#product .product__right .w121-overview__toggle .material-icons { font-size:18px; }
  body#product .product__right .w121-overview__toggle[aria-expanded="true"] .material-icons { transform:rotate(180deg); }
  body#product .product__right .w121-overview__toggle:focus-visible { outline:2px solid #bd4030; outline-offset:3px; }
  body#product .product__right .w121-full-details { margin:12px 0 0; }
}

/* Wilderness 1-2-1 — compact purchase column v1.0.4 */
@media (min-width: 992px) {
  body#product .product__container .product__right .product__name { font-size:28px!important; line-height:1.15; margin-bottom:6px!important; }
  body#product .product__container .product__right .product__manufacturer { margin-bottom:8px; }
  body#product .product__container .product__right .product__description-short :is(h1,h2,h3,h4) { font-size:18px!important; line-height:1.25; margin:0 0 5px; }
  body#product .product__container .product__right .w121-overview { margin-block:8px 10px; }
  body#product .product__container .product__right .w121-overview__links { display:flex; align-items:center; flex-wrap:wrap; gap:4px 14px; margin-top:2px; }
  body#product .product__container .product__right .w121-overview__links :is(.w121-overview__toggle,.w121-full-details) { color:#2d673b!important; margin:0!important; padding:4px 0!important; font-size:13px; line-height:1.3; font-weight:700; display:inline-flex; align-items:center; gap:4px; }
  body#product .product__container .product__right .w121-overview__links .w121-full-details .material-icons { font-size:16px; }
  body#product .product__container .product__right .product__actions { margin-top:8px!important; padding-top:8px!important; }
  body#product .product__container .product__right .w121-stock-card { padding:6px 12px!important; margin-block:8px 12px!important; min-height:40px; }
  body#product .product__container .product__right .w121-stock-card--dispatch { min-height:0!important; padding-block:0!important; }
  body#product .product__container .product__right .w121-stock-card__icon { width:30px; height:30px; min-width:30px; }
  body#product .product__container .product__right .product-add-to-cart[data-w121-product-cart-state-root] .product__actions-qty-add { width:100%!important; }
  body#product .product__container .product__right .product-add-to-cart[data-w121-product-cart-state-root] .product__actions-qty-add > .add { flex:1 1 150px!important; width:auto!important; }
  body#product .product__container .product__right .product__add-to-cart-button { width:100%; }
  body#product .product__container .product__right .w121-product-reassurance:empty { display:none; }
  body#product .product__container .product__left :is(.thumb-container,.product-images li,.product__thumbnail):is(.selected,.active,:has(.selected),:has([aria-current="true"])) { border-color:var(--w121-product-clay)!important; }
}
/* W121 — Product information tab scrollbar correction */
body#product .w121-product-tabs .nav-tabs {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none;
}

body#product .w121-product-tabs .nav-tabs::-webkit-scrollbar {
    display: none;
}

body#product .w121-product-tabs .nav-tabs .nav-link {
    margin-bottom: 0 !important;
}
/* Wilderness 1-2-1 | Product Reform v1.0.6 — Editorial description
   Append to active theme assets/css/custom.css. Long description only. */
body#product #w121-description-pane > .product__description.rich-text {
  --w121-editorial-green: #23432b;
  --w121-editorial-clay: #bd4030;
  --w121-editorial-ink: #34463a;
  box-sizing: border-box;
  width: 100%;
  max-width: 920px;
  margin-inline: auto;
  padding: clamp(12px, 2vw, 28px) clamp(4px, 1.4vw, 18px);
  font-size: 16px;
  line-height: 1.75;
  color: var(--w121-editorial-ink);
  overflow-wrap: anywhere;
}
body#product #w121-description-pane .product__description :is(h1,h2,h3,h4,h5,h6) {
  color: var(--w121-editorial-green);
  line-height: 1.28;
  font-weight: 700;
  margin: 1.65em 0 .65em;
  text-transform: none;
  letter-spacing: -.015em;
}
body#product #w121-description-pane .product__description :is(h1,h2) {
  font-size: clamp(23px, 2.1vw, 29px);
  padding-bottom: 12px;
  background: linear-gradient(var(--w121-editorial-clay),var(--w121-editorial-clay)) left bottom / 38px 3px no-repeat;
}
body#product #w121-description-pane .product__description h3 { font-size: 21px; }
body#product #w121-description-pane .product__description :is(h4,h5,h6) { font-size: 17px; }
body#product #w121-description-pane .product__description > :first-child { margin-top: 0; }
body#product #w121-description-pane .product__description p { margin: 0 0 1em; line-height: 1.75; }
body#product #w121-description-pane .product__description :is(ul,ol) { padding-inline-start: 1.55em; margin: 0 0 1.2em; }
body#product #w121-description-pane .product__description ul { list-style: disc outside; }
body#product #w121-description-pane .product__description ol { list-style: decimal outside; }
body#product #w121-description-pane .product__description li { margin-block: .4em; padding-inline-start: .2em; }
body#product #w121-description-pane .product__description li::marker { color: #2d673b; font-weight: 700; }
body#product #w121-description-pane .product__description strong { color: var(--w121-editorial-green); }
body#product #w121-description-pane .product__description a { color: #285b35; text-decoration: underline; text-underline-offset: 3px; }
body#product #w121-description-pane .product__description a:hover { color: var(--w121-editorial-clay); }
body#product #w121-description-pane .product__description a:focus-visible { outline: 2px solid var(--w121-editorial-clay); outline-offset: 3px; }
body#product #w121-description-pane .product__description blockquote { margin: 1.4em 0; padding: 14px 20px; border-inline-start: 3px solid var(--w121-editorial-clay); background: #e9efe6; border-radius: 0 8px 8px 0; color: var(--w121-editorial-green); }
body#product #w121-description-pane .product__description blockquote > :last-child { margin-bottom: 0; }
body#product #w121-description-pane .product__description img { max-width: 100% !important; height: auto !important; border-radius: 8px; }
body#product #w121-description-pane .product__description :is(iframe,video) { max-width: 100% !important; }
body#product #w121-description-pane .product__description :is(iframe[src*="youtube.com/embed/"],iframe[src*="youtube-nocookie.com/embed/"],iframe[src*="player.vimeo.com/video/"]) { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 8px; }
body#product #w121-description-pane .product__description table { display: block; max-width: 100% !important; overflow-x: auto; border-collapse: collapse; margin-block: 1.25em; font-size: .94em; background: #fff; }
body#product #w121-description-pane .product__description :is(th,td) { padding: 10px 14px; border: 1px solid #d5ded2; vertical-align: top; }
body#product #w121-description-pane .product__description th { background: #23432b; color: #fff; text-align: start; }
body#product #w121-description-pane .product__description tbody tr:nth-child(even) td { background: #edf2ea; }
body#product #w121-description-pane .product__description hr { border: 0; border-top: 1px solid #ccd8ca; margin-block: 24px; opacity: 1; }
body#product #w121-description-pane .product__description pre { max-width: 100%; overflow-x: auto; }
@media (max-width: 767.98px) {
  body#product #w121-description-pane > .product__description.rich-text { font-size: 15px; line-height: 1.65; padding-inline: 4px; }
  body#product #w121-description-pane .product__description :is(th,td) { padding: 8px 10px; }
}
/* Wilderness 1-2-1 — Editorial v1.0.7. Append after v1.0.6. */
body#product #w121-description-pane {
  padding: 0 !important;
}
body#product #w121-description-pane > .product__description.rich-text {
  max-width: none !important;
  padding: 24px clamp(18px, 3vw, 40px) !important;
  margin: 0 !important;
  font-size: 16px;
  line-height: 1.65;
}
body#product #w121-description-pane .product__description .w121-editorial-empty { display: none; }
body#product #w121-description-pane .product__description :is(h1,h2,h3,h4,h5,h6) {
  color: #23432b !important;
  border-inline-start: 4px solid #bd4030;
  padding: 2px 0 2px 12px !important;
  background: none !important;
  margin: 26px 0 12px;
  line-height: 1.3;
}
body#product #w121-description-pane .product__description :is(h1,h2) { font-size: 25px; }
body#product #w121-description-pane .product__description :is(h3,h4) { font-size: 21px; }
body#product #w121-description-pane .product__description > :first-child,
body#product #w121-description-pane .product__description > .w121-editorial-empty + :not(.w121-editorial-empty) { margin-top: 0; }
body#product #w121-description-pane .product__description p { max-width: 100ch; line-height: 1.65; margin-bottom: 12px; }
body#product #w121-description-pane .product__description ul:not(.w121-editorial-features) > li { max-width: 100ch; }
body#product #w121-description-pane .product__description ul.w121-editorial-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
body#product #w121-description-pane .product__description ul.w121-editorial-features > li {
  position: relative;
  background: #e7ede3;
  border: 1px solid #d9e4d5;
  border-radius: 7px;
  padding: 10px 12px 10px 36px;
  margin: 0;
  min-width: 0;
  color: #23432b;
  line-height: 1.45;
}
body#product #w121-description-pane .product__description ul.w121-editorial-features > li::before {
  content: '';
  position: absolute;
  inset-inline-start: 13px;
  top: 14px;
  width: 7px;
  height: 12px;
  border: solid #2d673b;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
body#product #w121-description-pane .product__description ul.w121-editorial-features > li p { margin: 0; }
@media (max-width: 767.98px) {
  body#product #w121-description-pane > .product__description.rich-text { padding: 18px !important; font-size: 15px; }
  body#product #w121-description-pane .product__description ul.w121-editorial-features { grid-template-columns: minmax(0, 1fr); }
}
/* Wilderness 1-2-1 — Product merchandising contrast */

body#product .product-accessories h2,
body#product .product-accessories .products-section-title,
body#product .ph-bestsellers--product .ph-bestsellers__title {
    color: #f5f7f4 !important;
}
/* Wilderness 1-2-1 — Mobile Search Reform v1.0.0 */
@media (max-width: 767.98px) {

  #searchCanvas .offcanvas-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f6f8f4;
  }

  #searchCanvas #_mobile_ps_searchbar {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
  }

  #searchCanvas #ps_searchbar {
    position: static;
    width: 100%;
    min-width: 0;
  }

  #searchCanvas .ps-searchbar__form {
    position: relative;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    width: 100%;
    margin: 0;
  }

  #searchCanvas .ps-searchbar__input {
    width: 100% !important;
    min-width: 0;
    height: 44px;
    padding: 0 36px !important;
    border: 1px solid #648451;
    border-radius: 8px;
    background: #fff;
    color: #23432b;
    font-size: 16px;
    box-sizing: border-box;
  }

  /* Integrated magnifying glass */
  #searchCanvas .w121-search__submit {
    position: absolute !important;
    inset: auto !important;
    left: 8px !important;
    top: 50% !important;
    transform: translateY(-50%);
    width: 24px !important;
    height: 32px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    color: #536358 !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #searchCanvas .w121-search__submit i {
    font-size: 19px;
  }

  /* Integrated clear-search control */
  #searchCanvas .ps-searchbar__clear {
    position: absolute !important;
    inset: auto !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%);
    width: 24px;
    height: 32px;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0;
    color: #536358;
  }

  #searchCanvas .ps-searchbar__clear i {
    font-size: 18px;
  }

  /* Cancel */
  #searchCanvas .offcanvas-header > .btn-link {
    flex: 0 0 auto;
    padding: 0 !important;
    margin: 0 !important;
    white-space: nowrap;
    color: #23432b;
    font-weight: 600;
    text-decoration: none;
  }

  /* Autocomplete results */
  #searchCanvas .ps-searchbar__dropdown {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 0 0 8px 8px;
    background: #fff;
  }
}
}
/* Wilderness 1-2-1 | Attribute pills v1.0.1
   Append to the current theme's custom.css. Native input semantics retained. Supports original and upgraded radio markup. */
body#product .product__variants .product-variant__radios {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center;
  gap: 7px 8px !important;
  margin: 4px 0 0;
  padding: 0;
}
body#product .product__variants .product-variant__radios > .product-variant__radio.form-check {
  position: relative;
  display: inline-flex !important;
  flex: 0 1 auto;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}
/* Visually hide only, not display:none: preserve radio keyboard and form behaviour. */
body#product .product__variants .product-variant__radios > .product-variant__radio > input.form-check-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  clip-path: inset(50%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  white-space: nowrap !important;
  border: 0 !important;
}
body#product .product__variants .product-variant__radios > .product-variant__radio > label {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  max-width: 100%;
  padding: 6px 15px !important;
  margin: 0 !important;
  border: 1px solid #c5d1c2 !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #23432b !important;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 650;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
}
body#product .product__variants .product-variant__radios > .product-variant__radio > label .form-check-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3px 7px;
  color: inherit !important;
  font-size: inherit;
  font-weight: inherit;
  white-space: normal;
  overflow-wrap: anywhere;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  text-decoration: none;
}
body#product .product__variants .product-variant__radios > .product-variant__radio > label:hover {
  border-color: #77916e !important;
  background: #f3f7f1 !important;
}
body#product .product__variants .product-variant__radios > .product-variant__radio.w121-radio-pill--out > label {
  background: #edf0eb !important;
  border-color: #d0d5cc !important;
  color: #5c665b !important;
  font-weight: 500;
}
body#product .product__variants .product-variant__radios .w121-radio-pill--out .w121-radio-pill__value {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
body#product .product__variants .product-variant__radios .w121-radio-pill__status {
  font-size: 11px;
  font-weight: 500;
  color: #586358;
}
body#product .product__variants .product-variant__radios > .product-variant__radio.w121-radio-pill--backorder > label {
  border-style: dashed !important;
}
body#product .product__variants .product-variant__radios > .product-variant__radio > input:checked + label {
  background: #e5eee1 !important;
  border-color: #bd4030 !important;
  box-shadow: inset 0 0 0 1px #bd4030;
}
body#product .product__variants .product-variant__radios > .product-variant__radio.w121-radio-pill--out > input:checked + label {
  background: #edf0eb !important;
}
body#product .product__variants .product-variant__radios > .product-variant__radio > input:focus-visible + label {
  outline: 2px solid #2d673b !important;
  outline-offset: 3px;
}
body#product .product__variants .product-variant__radios > .product-variant__radio > input:disabled + label {
  cursor: not-allowed;
  opacity: .7;
}
@media (max-width: 767.98px) {
  body#product .product__variants .product-variant__radios > .product-variant__radio > label { min-height: 44px; }
}
/* Wilderness 1-2-1 | Product pricing reform v1.0.0
   Append to custom.css. Product page only; no header, cart or catalogue effects. */
body#product .product__right .w121-product-prices .product__prices-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  text-align: start;
}
body#product .product__right .w121-product-prices .w121-price-line {
  display: flex !important;
  flex-flow: row wrap;
  justify-content: flex-start;
  align-items: baseline;
  column-gap: 10px;
  row-gap: 4px;
  margin: 0;
  text-align: start;
}
body#product .product__right .w121-product-prices .w121-price-line__main {
  display: inline-flex;
  align-items: baseline;
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  margin: 0;
}
body#product .product__right .w121-product-prices :is(.product__price,.phpc-money,.phpc-amount,.phpc-decimals,.phpc-currency) {
  color: #bd4030 !important;
}
body#product .product__right .w121-product-prices .product__price {
  font-size: 32px;
  line-height: 1.15;
  font-weight: 750;
  margin: 0;
}
body#product .product__right .w121-product-prices .w121-price-line__tax {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: #536358 !important;
  font-size: 12px;
  font-weight: 400;
  text-align: start;
}
body#product .product__right .w121-product-prices .product__tax-label {
  font-size: 12px;
  font-weight: 400;
  color: #536358 !important;
}
body#product .product__right .w121-product-prices .w121-sale-summary {
  flex: 0 0 100%;
  margin: 0;
}
body#product .product__right .w121-product-prices .w121-price-line__after {
  display: block;
  width: 100%;
  min-width: 0;
  text-align: start;
}
body#product .product__right .w121-product-prices {
  margin-bottom: 12px;
}
@media (max-width: 767.98px) {
  body#product .product__right .w121-product-prices .product__price { font-size: 28px; }
}
/* W121 enhanced product gallery v1.0.10 — no changes to the normal gallery geometry. */
body#product .w121-gallery-enhanced .js-product-carousel .carousel-item picture img {
  cursor: zoom-in;
  -webkit-user-drag: none;
  user-select: none;
}
body#product .w121-gallery-enhanced .js-product-carousel .carousel-item picture img:focus-visible {
  outline: 3px solid #bd4030;
  outline-offset: -4px;
}
body#product .w121-gallery-modal {
  --w121-viewer-margin: 12px;
  --bs-modal-bg: #fff;
  --bs-modal-color: #172019;
}
body#product .w121-gallery-modal .modal-dialog {
  width: min(100% - 24px, 1180px);
  max-width: 1180px;
  height: min(calc(100vh - 24px), 960px);
  height: min(calc(100dvh - 24px), 960px);
  min-height: 0;
  margin: var(--w121-viewer-margin) auto;
  display: flex;
  align-items: center;
}
body#product .w121-gallery-modal .modal-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  background: #fff;
  color: #172019;
  overflow: hidden;
  border-radius: 10px;
}
body#product .w121-gallery-modal .modal-header {
  flex: 0 0 auto;
  gap: 12px;
  padding: 12px 18px;
  background: #f3f5f1;
  border-bottom: 1px solid #dce4da;
}
body#product .w121-gallery-modal .modal-title {
  min-width: 0;
  margin: 0;
  font-size: clamp(15px, 1.45vw, 21px);
  line-height: 1.25;
  color: #172019;
  font-weight: 700;
  overflow-wrap: anywhere;
  max-height: 3.75em;
  overflow: auto;
}
body#product .w121-gallery-modal .btn-close { flex: 0 0 auto; filter: none; }
body#product .w121-gallery-modal .product-images-modal__body {
  display: flex;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  padding: 8px;
  background: #fff;
}
body#product .w121-gallery-modal .product-images-modal__carousel,
body#product .w121-gallery-modal .carousel-inner,
body#product .w121-gallery-modal .carousel-item {
  width: 100%; height: 100%; min-height: 0; background: #fff;
}
body#product .w121-gallery-modal .carousel-item picture {
  display: flex; width: 100%; height: 100%; align-items: center; justify-content: center;
}
body#product .w121-gallery-modal .carousel-item picture img {
  display: block;
  width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  object-fit: contain;
  cursor: grab; user-select: none; -webkit-user-drag: none;
}
body#product .w121-gallery-modal .carousel-item picture img:active { cursor: grabbing; }
body#product .w121-gallery-modal :is(.carousel-control-prev,.carousel-control-next) {
  top: 50%; bottom: auto; transform: translateY(-50%);
  width: 44px; height: 44px; padding: 8px; opacity: .95;
  background: #fff; border: 1px solid #c5d1c2; border-radius: 50%;
  box-shadow: 0 2px 8px #17201920;
}
body#product .w121-gallery-modal .carousel-control-prev { left: 8px; }
body#product .w121-gallery-modal .carousel-control-next { right: 8px; }
body#product .w121-gallery-modal :is(.carousel-control-prev-icon,.carousel-control-next-icon) { filter: brightness(0); }
body#product .w121-gallery-modal__thumbs {
  display: flex; flex: 0 0 auto; align-items: center;
  gap: 8px; overflow-x: auto; overflow-y: hidden;
  padding: 8px 12px 10px; margin: 0;
  background: #f3f5f1; border-top: 1px solid #dce4da;
  scrollbar-width: thin;
}
body#product .w121-gallery-modal__thumbs::before,
body#product .w121-gallery-modal__thumbs::after { content: ''; margin: auto; flex: 0 0 0; }
body#product .w121-gallery-modal__thumb {
  flex: 0 0 68px; width: 68px; height: 68px;
  padding: 2px; border: 1px solid #c5d1c2; border-radius: 6px;
  background: #fff; overflow: hidden;
}
body#product .w121-gallery-modal__thumb.active { border: 2px solid #bd4030; }
body#product .w121-gallery-modal__thumb:focus-visible { outline: 2px solid #2d673b; outline-offset: 2px; }
body#product .w121-gallery-modal__thumb picture,
body#product .w121-gallery-modal__thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 575.98px), (max-height: 500px) {
  body#product .w121-gallery-modal .modal-header { padding: 8px 12px; }
  body#product .w121-gallery-modal__thumb { flex-basis: 48px; width: 48px; height: 48px; }
  body#product .w121-gallery-modal__thumbs { padding-block: 5px; }
}
/* Wilderness 1-2-1 — Desktop horizontal thumbnails v1.0.11
   Append after the v1.0.10 gallery restoration in assets/css/custom.css.
   Preserve the original main-image width (78px rail + 13px gap removed
   from the available width), purchase column, and native carousel markup. */
@media (min-width: 992px) {
  body#product .product__container[data-ps-ref="product-container"] > .product__left > .js-images-container:has(> .js-product-carousel) {
    grid-template-columns: minmax(0, calc(100% - 91px));
    grid-template-areas: "stage" "thumbs";
    justify-content: center;
    gap: 10px;
  }

  body#product .product__container[data-ps-ref="product-container"] > .product__left > .js-images-container > .product__carousel,
  body#product .product__container[data-ps-ref="product-container"] > .product__left > .js-images-container > .product__thumbnails {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  body#product .product__container[data-ps-ref="product-container"] > .product__left > .js-images-container > .product__thumbnails > .product__thumbnails-list {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 9px !important;
    width: 100%;
    max-width: 100%;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 4px 6px;
    box-sizing: border-box;
    list-style: none;
    scrollbar-width: thin;
  }

  /* Centre short lists, without clipping the first item in long lists. */
  body#product .product__container[data-ps-ref="product-container"] > .product__left > .js-images-container > .product__thumbnails > .product__thumbnails-list::before,
  body#product .product__container[data-ps-ref="product-container"] > .product__left > .js-images-container > .product__thumbnails > .product__thumbnails-list::after {
    content: "";
    flex: 0 0 0;
    margin-inline: auto;
  }

  body#product .product__container[data-ps-ref="product-container"] > .product__left > .js-images-container > .product__thumbnails .product__thumbnail {
    flex: 0 0 70px;
    width: 70px;
    min-width: 70px;
  }
}
/* Wilderness 1-2-1 — Gallery arrow contrast v1.0.12
   Append to assets/css/custom.css after existing gallery rules.
   Enhanced image modal only; preserve all carousel behaviour. */
body#product .w121-gallery-modal :is(.carousel-control-prev-icon, .carousel-control-next-icon) {
  filter: none !important;
  background: transparent !important;
  color: #23432b !important;
  width: 22px;
  height: 22px;
}

body#product .w121-gallery-modal :is(.carousel-control-prev-icon, .carousel-control-next-icon)::before {
  color: #23432b !important;
}

body#product .w121-gallery-modal :is(.carousel-control-prev, .carousel-control-next):focus-visible {
  outline: 2px solid #2d673b;
  outline-offset: 2px;
}
/* Wilderness 1-2-1 v1.0.14 — Compact Journey below Add to Cart.
   Use instead of v1.0.13 (or append after it). Gallery and other merchandising unchanged. */
body#product .product__right > #w121-journey-mount {
  min-width: 0;
  max-width: 100%;
}
body#product .product__right > #w121-journey-mount:empty,
body#product .product__right > #w121-journey-mount:has(> .phwj-product-bundles:empty) {
  display: none;
}
@media (min-width: 992px) {
  body#product .product__right > #w121-journey-mount .phwj-product-bundles {
    border: 0 !important;
    padding: 0 !important;
    margin: 10px 0 0 !important;
  }
  body#product .product__right > #w121-journey-mount .phwj-mini__title {
    font-size: 15px;
    font-weight: 700;
  }
  body#product .product__right > #w121-journey-mount .phwj-mini__title i {
    color: var(--w121-product-clay, #bd4030);
  }
  body#product .product__right > #w121-journey-mount .phwj-mini__saving {
    background: var(--w121-product-clay, #bd4030);
    color: #fff;
    padding: 3px 10px;
  }
  body#product .product__right > #w121-journey-mount .phwj-mini__track {
    gap: 8px;
  }
  body#product .product__right > #w121-journey-mount .phwj-mini .phwj-mini__card {
    flex: 0 0 clamp(124px, calc((100% - 24px) / 4), 160px) !important;
    width: clamp(124px, calc((100% - 24px) / 4), 160px) !important;
    min-width: 124px !important;
    max-width: 160px !important;
    padding: 5px !important;
  }
  body#product .product__right > #w121-journey-mount .phwj-mini__status {
    font-size: 12px;
  }
}

/* Tighten only the purchase-to-bundle transition on desktop. A product
   without a populated Journey panel retains its existing purchase spacing. */
@media (min-width: 992px) {
  body#product .product__container .product__right:has(> #w121-journey-mount > .phwj-product-bundles:not(:empty)) > .product__actions,
  body#product .product__container .product__right:has(> #w121-journey-mount > .phwj-product-bundles:not(:empty)) > .product__actions #add-to-cart-or-refresh,
  body#product .product__container .product__right:has(> #w121-journey-mount > .phwj-product-bundles:not(:empty)) > .product__actions .product__add-to-cart-container {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
  }
  body#product .product__right > #w121-journey-mount .phwj-bundle-offer.phwj-mini {
    margin: 0 !important;
    padding: 0 !important;
  }
  body#product .product__right > #w121-journey-mount .phwj-bundle-offer.phwj-mini + .phwj-bundle-offer.phwj-mini {
    margin-top: 8px !important;
  }
  body#product .product__right > #w121-journey-mount .phwj-mini__head {
    min-height: 20px;
    margin-bottom: 2px;
  }
  body#product .product__right > #w121-journey-mount .phwj-mini__saving {
    padding: 2px 8px;
    line-height: 16px;
  }
  body#product .product__right > #w121-journey-mount .phwj-mini__progress {
    height: 3px;
    margin: 2px 0;
  }
  body#product .product__right > #w121-journey-mount .phwj-mini__status {
    font-size: 11px;
    line-height: 1.3;
  }
  body#product .product__right > #w121-journey-mount .phwj-mini__nav button {
    font-size: 20px;
    line-height: 22px;
  }
}
/* Wilderness v1.0.15 — compact related gear after Journey.
   Append after journey-placement-v1.0.14.css. No gallery or module changes. */
body#product .product__right > .w121-related-mini {
  min-width: 0;
  max-width: 100%;
}
/* Keep the native AJAX additional-info container in the DOM. Remove its
   blank visual shell only when it has no visible element content (the
   theme already hides product-comments-additional-info). */
body#product .w121-product-merchandising:has(> .product__additional-info):not(:has(> .product__additional-info > :not(.product-comments-additional-info):not([hidden]))) {
  display: none !important;
}
@media (min-width: 992px) {
  body#product .product__container:has(+ .w121-product-merchandising:has(> .product__additional-info):not(:has(> .product__additional-info > :not(.product-comments-additional-info):not([hidden])))) {
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    border-bottom: 1px solid #dfe4dd !important;
    padding-bottom: 20px;
  }
  /* Match compact Journey cards and heading. No extra separator. */
  body#product .product__right > .w121-related-mini {
    margin: 10px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }
  body#product .product__right > .w121-related-mini .w121-related-mini__title {
    font-size: 15px;
    font-weight: 700;
  }
  body#product .product__right > .w121-related-mini .w121-related-mini__track {
    gap: 8px;
  }
  body#product .product__right > .w121-related-mini .w121-related-mini__card {
    flex: 0 0 clamp(124px, calc((100% - 24px) / 4), 160px) !important;
    width: clamp(124px, calc((100% - 24px) / 4), 160px) !important;
    min-width: 124px !important;
    max-width: 160px !important;
  }
  /* Products with related gear but no Journey get the same tight transition. */
  body#product .product__container .product__right:has(> .w121-related-mini) > .product__actions,
  body#product .product__container .product__right:has(> .w121-related-mini) > .product__actions #add-to-cart-or-refresh,
  body#product .product__container .product__right:has(> .w121-related-mini) > .product__actions .product__add-to-cart-container {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
  }
}