/* The buying action remains reachable while the garment stays in view. */
.product-detail-grid{grid-template-areas:"gallery heading" "gallery copy";row-gap:22px;grid-template-rows:auto 1fr}
.product-gallery{grid-area:gallery;min-width:0}.product-heading{grid-area:heading;padding-top:12px;min-width:0}
.product-heading .eyebrow{margin-bottom:12px}.product-heading h1{font:44px/1.15 var(--serif);letter-spacing:-.025em;overflow-wrap:anywhere}
.product-status{font-size:12px;color:#52634c;margin:15px 0 0;line-height:1.7}
.detail-copy{grid-area:copy;min-width:0;padding-top:0}.detail-note{margin-top:0}
.product-specifications{border-block:1px solid var(--line);margin-block:20px}
.product-specifications summary{display:flex;justify-content:space-between;gap:18px;align-items:center;min-height:52px;list-style:none;font-size:13px;cursor:pointer}
.product-specifications summary::-webkit-details-marker{display:none}.product-specifications[open] summary .icon{transform:rotate(45deg)}
.product-specifications .spec-list{margin:0 0 16px}.product-assortment h2{font:24px/1.3 var(--serif);margin-bottom:22px;overflow-wrap:anywhere}
.product-assortment{scroll-margin-top:100px}.product-review-selection{display:flex;justify-content:center;min-height:44px;margin:12px auto 0;width:fit-content;max-width:100%;text-align:center}
.gallery-status{font-size:12px;line-height:1.8;color:#52634c;margin:12px 0 0}.gallery-status:empty{display:none}
.product-mobile-actions{display:none}
@media screen and (max-width:760px){
 .product-detail-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"heading" "gallery" "copy";gap:22px}
 .product-heading{padding-top:0}.product-heading .eyebrow{font-size:10px;margin-bottom:9px}.product-heading h1{font-size:34px;line-height:1.15}
 .product-status{margin-top:11px;font-size:12px}.product-detail{padding-top:22px}.product-detail .breadcrumb{margin-bottom:23px;min-height:24px;align-items:center}
 .product-gallery .detail-photo img{height:auto;aspect-ratio:4/5;object-fit:contain}.product-gallery .image-label{font-size:9px;line-height:1.5;inset-inline:9px;top:9px;max-width:none;padding:5px 7px}
 .detail-copy .detail-note{font-size:13px;line-height:1.8;margin-bottom:18px}.product-specifications{margin-block:18px}
 .product-assortment{padding:18px;margin-top:22px;scroll-margin-top:12px}.product-assortment h2{font-size:25px;margin-bottom:20px}
 .product-variant{grid-template-columns:repeat(2,minmax(0,1fr)) 44px;gap:12px 10px;padding-block:16px;border-bottom:1px solid #dce1d3;margin:0}
 .product-variant>label:first-child{grid-column:1/3}.product-variant>label:nth-child(2){grid-column:1}.product-variant>label:nth-child(3){grid-column:2}
 .product-variant>button{grid-column:3;grid-row:1/3;align-self:start;margin-top:22px;min-width:44px;min-height:44px}
 .product-variant label{font-size:12px;line-height:1.6}.product-variant input,.product-variant select{margin-top:6px;font-size:16px;min-height:46px;padding:10px}
 .product-assortment>[data-add-product-variant]{min-height:48px;font-size:12px;margin-top:8px}.assortment-summary{font-size:13px;margin-block:18px}
 .product-assortment .button{min-height:50px;font-size:13px;gap:16px}.detail-secondary{display:grid;grid-template-columns:1fr;gap:14px}.detail-secondary .text-link{min-height:44px;justify-content:space-between}
 .product-mobile-actions{position:fixed;inset-inline:0;bottom:0;z-index:25;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:10px;align-items:stretch;background:var(--paper);border-top:1px solid #cdd5c5;padding:12px 16px max(12px,env(safe-area-inset-bottom));box-shadow:0 -4px 18px #263a300b}
 .product-mobile-actions .button{font-size:12px;min-height:50px;gap:10px;padding:10px 12px;overflow-wrap:anywhere;text-align:center}
 .product-mobile-actions [data-quote-count]{font-size:11px;min-width:20px;font-variant-numeric:tabular-nums}.page-product{padding-bottom:110px}
 body:has(.inquiry-dialog[open]) .product-mobile-actions{visibility:hidden}
 [dir=rtl] .product-heading h1,[dir=rtl] .product-assortment h2{font-family:Tahoma,Arial,sans-serif;line-height:1.5}
 [dir=rtl] .product-mobile-actions .icon,[dir=rtl] .product-review-selection .icon{transform:scaleX(-1)}
}
@media screen and (max-width:640px){
 .header-inner{gap:8px;padding-inline:16px}.brand{gap:9px}.site-header .brand-word{font-size:12px}.site-header .brand-word>span{font-size:6px;letter-spacing:.12em}
 .site-header .brand-mark{font-size:36px;letter-spacing:-7px;padding-right:7px}.site-header .brand-mark span{font-size:25px}
 .header-tools{gap:4px;min-width:0}.language-switch{min-width:0;gap:0}.language-switch select{max-width:96px;min-height:44px;font-size:11px}
 .bag-button,.menu-button{min-width:44px;min-height:44px}.bag-count{top:2px;inset-inline-end:0}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition-duration:0s!important}}
@media print{.product-mobile-actions,.product-review-selection{display:none!important}.product-detail-grid{grid-template-areas:"gallery heading" "gallery copy"!important;grid-template-rows:auto 1fr!important;row-gap:4mm!important}.product-heading h1{font-size:23pt!important}.product-heading{padding:0!important}.product-status{font-size:8pt!important;margin-top:2mm!important}.product-specifications>summary{display:none!important}.product-specifications:not([open])>*:not(summary){display:block!important}.product-specifications{border:0;margin:0!important}.page-product{padding-bottom:0!important}}
/* Arabic and Persian need a little more type size at phone viewing distance. */
@media screen and (max-width:640px){
 [dir=rtl] .page-home .buyer-home-hero .hero-actions .button,[dir=rtl] .home-category-links>a{font-size:14px}
 [dir=rtl] .product-mobile-actions .button{font-size:13px}
 [dir=rtl] .inquiry-dialog .inquiry-tabs button{font-size:14px}
 [dir=rtl] .inquiry-dialog label,[dir=rtl] .inquiry-dialog .text-link,[dir=rtl] .inquiry-dialog .inquiry-context,[dir=rtl] .inquiry-dialog .sku-group-heading p,[dir=rtl] .inquiry-dialog .sku-group .quote-line-controls label{font-size:13px;line-height:1.8}
 [dir=rtl] .inquiry-dialog .wizard-footer>span{font-size:12px}
}

.product-kind {
  display: inline-block;
  margin-block: 0 8px;
  padding: 3px 9px;
  border-inline-start: 3px solid #466149;
  background: #e8ede4;
  color: #2c4835;
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.5;
}
[data-product-kind="reference"] .product-kind {
  border-color: #997749;
  background: #f0e8d9;
  color: #674d2d;
}
.reference-detail-actions { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.reference-detail-actions .text-link { min-height: 44px; }
.product-variant [data-remove-product-variant]:disabled { display: none; }
#product-assortment[data-selection-state="added"] .ybx-quick-chat { display: none; }
@media screen and (max-width:760px) {
  .reference-detail-bar,
  #product-assortment[data-selection-state="added"] .product-contact-actions [data-add-configured] {
    position: fixed;
    z-index: 25;
    inset-inline: 0;
    bottom: 0;
  }
  .reference-detail-bar {
    background: var(--paper);
    border-block-start: 1px solid var(--line);
    padding: 6px 16px max(6px,env(safe-area-inset-bottom));
  }
  .product-detail .detail-secondary .text-link { scroll-margin-block-end: calc(76px + env(safe-area-inset-bottom)); }
  .reference-detail-bar .button { width: 100%; min-height: 44px; white-space: normal; }
  #product-assortment[data-selection-state="added"] .product-contact-actions [data-add-configured] {
    inset-inline: 12px;
    bottom: max(8px,env(safe-area-inset-bottom));
    width: auto;
  }
  .page-product .product-mobile-actions:has([data-configure-product][hidden]) { display: none; }
  body:has(.inquiry-dialog[open]) .reference-detail-bar,
  body:has(.inquiry-dialog[open]) #product-assortment[data-selection-state="added"] [data-add-configured] { visibility: hidden; }
}
@media print { .reference-detail-actions { display: none; } }

/* Keep the whole silhouette visible between the navigation and buying action on short screens. */
@media screen and (max-height: 550px) {
  .product-gallery .detail-photo img {
    max-height: calc(100svh - 130px);
  }
}
@media screen and (max-width: 760px) and (max-height: 550px) {
  .product-gallery .detail-photo {
    scroll-margin-block-end: calc(100px + env(safe-area-inset-bottom));
  }
  .product-gallery .detail-photo img {
    max-height: calc(100svh - 160px - env(safe-area-inset-bottom));
  }
}
