/* Small-screen layout for the collection and purchase flow. */
body { min-width:0; --gutter:16px; --header-height:56px; }
.reviewbar { display:none }
.header { height:auto; min-height:56px; flex-wrap:wrap; gap:0; padding:8px var(--gutter) 0 }
.header .logo { font-size:24px }
.header nav { order:3; width:100%; justify-content:space-between; gap:8px; border-top:1px solid var(--line); margin-top:4px; font-size:12px }
.header nav > * { padding-block:10px }
.header-actions { gap:2px }
.header-actions .icon-button { width:36px; height:40px }
.pdp-editorial-hero { display:flex; flex-direction:column; height:auto; overflow:visible; }
.pdp-editorial-hero .pdp-hero-copy { position:static; width:auto; padding:14px var(--gutter) 18px; order:2 }
.pdp-editorial-hero .pdp-hero-copy h2 { font-size:44px; margin:6px 0 12px }
.pdp-hero-copy p,.pdp-hero-mark,.pdp-hero-scroll { display:none }
.pdp-editorial-hero .pdp-hero-photo { position:relative; inset:auto; width:100%; height:min(43svh,380px); order:1 }
.pdp-editorial-hero .pdp-hero-photo img { object-position:center; }
.pdp-hero-photo figcaption { writing-mode:horizontal-tb; bottom:8px; right:12px; background:#fff; padding:3px 6px }
.pdp-hero-choice { width:100%; gap:12px; justify-content:space-between }
.pdp-hero-choice .button { min-width:0; min-height:44px }
.pdp-wayfinding { padding:14px var(--gutter); margin:0; flex-wrap:wrap; gap:6px }
.breadcrumbs { flex-wrap:wrap; }
body[data-page=product] .pdp { grid-template-columns:minmax(0,1fr); gap:18px; padding:0 0 32px }
body[data-page=product] .gallery { grid-template-columns:minmax(0,1fr); gap:8px }
body[data-page=product] .gallery-main { height:min(105vw,58svh) }
body[data-page=product] .gallery-main #main-image { object-position: center bottom; }
.thumbnail-nav { order:2; height:auto; display:block }
.thumbnail-scroll { display:none }
body[data-page=product] .thumbnail-nav .thumbnails { flex-direction:row; overflow-x:auto; overflow-y:hidden; overscroll-behavior:contain auto; height:auto; padding:2px; gap:6px }
.thumbnails button { flex:none }
.gallery-paging button,.zoom,.size { min-height:44px; min-width:44px }
.purchase h1,.page-heading h1 { font-size:38px; line-height:1.06 }
.purchase { scroll-margin-top:12px }
body[data-page=product] .sizes { flex-wrap:wrap }
.purchase-services,.purchase-facts,.spec-highlights,.outfit-items,.pdp-information,.pdp-material-story,.pdp-detail-story,.pdp-outfit,.pdp-story-portraits { grid-template-columns:minmax(0,1fr); gap:18px }
.pdp-information,.pdp-outfit,.pdp-story-heading,.pdp-detail-story>div { padding-block:32px; margin-bottom:0 }
.pdp-information h2,.pdp-outfit h2,.pdp-detail-story h2,.pdp-story-heading h2,.section-heading h2 { font-size:38px }
.pdp-return-choice,.section-heading,.footer-bottom { flex-wrap:wrap; gap:12px }
.pdp-return-choice .button { min-width:0 }
.product-grid,.footer-top { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px }
.footer-top>div:first-child { grid-column:1/-1 }
.footer-top { margin-bottom:24px }
footer { padding:28px var(--gutter) }
.related .card-bottom { flex-wrap:wrap }
.page-heading { padding:24px var(--gutter) }
.cart-layout,.checkout-layout,.form-grid { grid-template-columns:minmax(0,1fr); gap:16px }
.cart-summary { padding:16px; width:100%; min-width:0 }
.cart-row,.bag-dialog .cart-row { grid-template-columns:56px minmax(0,1fr) auto; gap:8px }
.cart-row img,.bag-dialog .cart-row img { width:56px; height:78px }
.cart-row h3,.bag-dialog .cart-row h3 { font-size:20px }
.field input,.field select { width:100%; min-width:0; font-size:16px }
.dialog,.dialog.bag-dialog,.dialog.zoom-dialog { width:100%; max-width:100%; padding:18px; max-height:95dvh; box-sizing:border-box }
.dialog.zoom-dialog { height:92dvh; margin:auto; }
.zoom-hint { display:none }
.dialog .button { min-width:0 }

.pdp-information .spec-highlights { grid-template-columns:minmax(0,1fr); gap:12px }
.summary-label { min-width:0 }
#main-image { touch-action:pan-y pinch-zoom }

/* Collection entry and browsing. Keep the same image proportions in related
   products, favorites and catalog cards so hats retain their natural shape. */
.catalog-wayfinding .breadcrumbs { padding-top:14px }
.catalog-navigation .catalog-toolbar { display:grid; gap:10px; margin-bottom:18px; padding:10px 0 }
.catalog-materials { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; padding-bottom:14px }
.catalog-materials a { justify-content:space-between; min-width:0; gap:4px; padding:8px; line-height:1.2 }
.catalog-shapes { flex-wrap:wrap; gap:2px }
.catalog-shapes button { min-height:44px; padding:6px 9px }
.catalog-tools { width:100%; margin:0; justify-content:space-between; gap:8px }
.catalog-sort { min-width:0 }
.catalog-sort summary { padding-left:0; gap:6px; min-height:44px }
.catalog-reset { justify-self:start }
.product-grid,body[data-page="home"] .home-silhouettes { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 10px }
.product-card { min-width:0 }
.product-card .card-media { height:auto; aspect-ratio:334/365; }
.product-card .card-media > a { position:absolute; inset:0 }
.product-card .card-body { padding:10px 0 0 }
.product-card .card-body h3 { font-size:clamp(20px,5vw,26px); line-height:1.1; margin:0 0 6px; max-width:none }
.product-card .card-choice { font-size:13px; line-height:1.4; margin-bottom:8px }
.product-card .card-bottom { flex-direction:column; align-items:flex-start; gap:4px }
.product-card .card-bottom .material { max-width:100% }
.product-card .card-number { top:5px; left:5px; font-size:9px }
.product-card .card-media .favorite { top:0; right:0; width:40px; height:40px }
.product-card .card-price .price-current { font-size:15px; color:var(--ink); font-weight:600 }
.product-card .card-price .price-before { font-size:11px }
.product-grid .product-card { display:flex; flex-direction:column }
.product-grid .product-card[hidden] { display:none }
.product-card .card-body { display:flex; flex-direction:column; flex:1 }
.product-card .card-bottom { margin-top:auto }
body[data-page=catalog] .page-heading { padding:16px var(--gutter) 18px }
body[data-page=catalog] .page-heading h1 { font-size:clamp(34px,9vw,46px); line-height:1.04; margin:8px 0 }
body[data-page=catalog] .page-heading .lead { font-size:15px; line-height:1.5; margin:8px 0 0 }
.catalog-body { padding-bottom:36px }
.section { padding:36px var(--gutter) }
.section-heading { align-items:baseline; gap:10px; margin-bottom:16px }
body[data-page="home"] .b-opener { padding:22px var(--gutter) 26px }
body[data-page="home"] .b-top { grid-template-columns:1fr; gap:14px; margin-bottom:18px }
body[data-page="home"] .b-top h1 { font-size:clamp(50px,13.7vw,80px); line-height:.92; animation:none }
body[data-page="home"] .b-top p { font-size:13px; margin:0 0 6px; line-height:1.4 }
body[data-page="home"] .b-top .text-link { min-height:42px }
body[data-page="home"] .b-film { grid-template-columns:1fr 1fr; grid-template-rows:auto auto; gap:5px; height:auto }
body[data-page="home"] .b-film .portrait { grid-column:1/-1; grid-row:1; height:clamp(230px,77vw,390px) }
body[data-page="home"] .b-film .portrait img { object-fit:contain; object-position:center }
body[data-page="home"] .b-film .macro,body[data-page="home"] .b-film .original { height:clamp(110px,35vw,180px) }
body[data-page="home"] .b-film .photo-label { left:5px; bottom:5px; font-size:8px; padding:4px 6px }
body[data-page="home"] .b-filmcaps { display:none }
body[data-page="home"] .b-productline { grid-template-columns:minmax(0,1fr) auto; gap:12px; align-items:end; margin-top:18px; padding-top:16px }
body[data-page="home"] .b-productline h2 { font-size:30px }
body[data-page="home"] .b-productline a { grid-column:1/-1; width:100% }
body[data-page="home"] .b-facts { grid-template-columns:1fr 1fr; gap:14px; padding-top:16px; margin-top:20px }
body[data-page="home"] .b-facts a { display:flex; width:fit-content; margin-left:0 }
body[data-page="home"] .b-editorial { padding:32px var(--gutter) 0 }
body[data-page="home"] .b-heading { grid-template-columns:1fr; gap:10px; margin-top:18px }
body[data-page="home"] .b-heading h2,body[data-page="home"] .b-proof h2 { font-size:clamp(37px,9vw,56px) }
body[data-page="home"] .b-selector { grid-template-columns:1fr; gap:0; margin-top:14px }
body[data-page="home"] .b-selector a { grid-template-columns:30px 1fr; gap:10px; padding:14px 0 }
body[data-page="home"] .b-selector h3 { font-size:30px; margin-bottom:4px }
body[data-page="home"] .b-proof { grid-template-columns:1fr; margin:24px var(--gutter) 0; padding-top:20px; gap:16px }
body[data-page="home"] .b-proof figure { height:280px }
body[data-page="home"] .b-proof .side-note { padding:12px 0 0 }
body[data-page="home"] .journal-grid { grid-template-columns:1fr; gap:20px }
body[data-page="home"] .home-silhouettes .product-card:first-child { grid-column:1/-1 }


/* On landscape phones and small tablets there is room for two working columns. */
@media (min-width:768px) {
  body { --gutter:24px }
  .header { flex-wrap:nowrap; gap:24px; min-height:66px; padding:8px var(--gutter) }
  .header nav { order:0; width:auto; border:0; margin:0; gap:18px }
  .pdp-editorial-hero { display:grid; grid-template-columns:1fr 1fr; align-items:center }
  .pdp-editorial-hero .pdp-hero-photo { order:2; height:min(62svh,520px); min-height:260px }
  .pdp-editorial-hero .pdp-hero-copy { order:1; width:auto; gap:10px; padding:22px var(--gutter) }
  .pdp-editorial-hero .pdp-hero-copy h2 { font-size:clamp(40px,6vw,68px) }
  .pdp-hero-copy p { display:block }
  .pdp-hero-choice { width:auto; justify-content:flex-start }
  body[data-page=product] .pdp { grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:24px }
  body[data-page=product] .gallery-main { height:clamp(320px,46vw,490px) }
  .purchase h1 { font-size:36px }
  .purchase-services { flex-wrap:wrap }
  .pdp-material-story,.pdp-detail-story,.pdp-outfit,.pdp-information { grid-template-columns:minmax(0,1fr) minmax(0,1fr) }
  .related .product-grid,.product-grid { grid-template-columns:repeat(3,minmax(0,1fr)) }
  .catalog-materials { display:flex }
  .catalog-materials a { gap:12px }
  .catalog-navigation .catalog-toolbar { display:flex; justify-content:space-between }
  .catalog-tools { width:auto; margin-left:auto; gap:16px }
  .cart-layout,.checkout-layout { grid-template-columns:minmax(0,1.4fr) minmax(250px,.8fr); gap:24px }
  .dialog,.dialog.bag-dialog { max-width:540px }
  .dialog.zoom-dialog { max-width:98vw; height:94dvh }
  .footer-top { grid-template-columns:repeat(4,minmax(0,1fr)) }
  .footer-top>div:first-child { grid-column:auto }
  body[data-page="home"] .b-film { grid-template-columns:1.15fr 1.35fr 1fr; grid-template-rows:auto; align-items:stretch }
  body[data-page="home"] .b-film .portrait { grid-column:auto; grid-row:auto }
  body[data-page="home"] .b-film :is(.macro,.portrait,.original) { height:clamp(250px,34vw,390px) }
  body[data-page="home"] .b-heading,body[data-page="home"] .b-proof { grid-template-columns:1fr 1fr }
  body[data-page="home"] .b-selector,body[data-page="home"] .journal-grid,body[data-page="home"] .home-silhouettes { grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px }
  body[data-page="home"] .home-silhouettes .product-card:first-child { grid-column:auto }
}

/* Guidance linked from product selections and from the checkout form. */
body:is([data-page=information],[data-page=legal],[data-page=journal],[data-page=article]) .page-heading h1 { font-size:clamp(32px,8vw,52px); overflow-wrap:break-word }
.info-layout { grid-template-columns:minmax(0,1fr); gap:26px; padding:0 var(--gutter) 42px }
.info-layout .reading { grid-row:1; min-width:0; overflow-wrap:anywhere }
.service-nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 14px }
.service-nav a { align-self:stretch; padding:12px 0; min-height:44px }
.article-body { padding:0 var(--gutter); overflow-wrap:anywhere }
.journal-grid { grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr)); gap:18px }
.header-actions .icon-button { width:40px; height:42px }
.legal-footer-links { gap:8px 16px }
@media (min-width:768px) {
  .info-layout { grid-template-columns:minmax(160px,.4fr) minmax(0,1fr); gap:28px }
  .info-layout .reading { grid-row:auto }
  .service-nav { display:flex }
}

.article>header { margin-bottom:26px }
.article h1 { font-size:clamp(32px,8vw,54px); overflow-wrap:break-word; margin:14px 0 }
.article-body { padding:0 }
.dialog button,.dialog a,.purchase button,.gallery button{touch-action:manipulation}

@media (max-width:540px) {
  .colors:has([data-color]:nth-child(3)) { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px }
  .colors .option { min-height:44px }
}
@media (max-width:370px) {
  body[data-page=product] .sizes { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px }
  body[data-page=product] .sizes button { width:100% }
}
.account-content,.login-panel{min-width:0}
.account-tiles{grid-template-columns:repeat(auto-fit,minmax(min(190px,100%),1fr))}
.login-panel{padding:0 var(--gutter);margin:32px auto}
.login-panel h1,.account-content h2{font-size:38px}
@media(max-width:767px){.account-content{grid-row:1}.account-tile{padding:18px;min-height:120px}}

@media(max-width:767px) {
  body[data-page="home"] .b-opener { padding-top:20px;padding-bottom:20px }
  body[data-page="home"] .b-top { grid-template-columns:1fr;gap:12px }
  body[data-page="home"] .home-intro { display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 }
  body[data-page="home"] .home-intro p { max-width:110px;margin:0;line-height:1.3 }
  body[data-page="home"] .b-film { grid-template-columns:1fr 1fr;gap:4px;height:auto }
  body[data-page="home"] .b-film .portrait { height:clamp(224px,70vw,360px) }
  body[data-page="home"] .b-film .macro,body[data-page="home"] .b-film .original { height:clamp(88px,27vw,155px) }
  body[data-page="home"] .home-selection,body[data-page="home"] .home-journal { padding-block:32px }
  .home-selection .section-heading,.home-journal .section-heading { align-items:start }
  .home-selection .section-heading p { font-size:14px }
  .home-materials { grid-template-columns:minmax(0,1fr) }
  .material-portrait { min-height:0;height:clamp(215px,66vw,340px) }
  .material-directory { padding:26px var(--gutter) 18px }
  .material-directory h2 { font-size:42px;margin-bottom:18px }
  .material-directory h2 br { display:none }
  .material-directory h2 em::before { content:" " }
  .home-journal .journal-grid { gap:0 }
  .home-journal .journal-card { display:grid;grid-template-columns:96px minmax(0,1fr);column-gap:16px;align-content:center;border-top:1px solid var(--line);padding:14px 0 }
  .home-journal .journal-cover { grid-column:1;grid-row:1/4;height:108px }
  .home-journal .journal-card .eyebrow,.home-journal .journal-card h3,.home-journal .journal-card .text-link { grid-column:2;margin:0 }
  .home-journal .journal-card h3 { font-size:23px;align-self:center }
  .home-journal .journal-card .text-link { justify-self:start;align-self:end }
  .home-journal .journal-card p { display:none }
}
body[data-page="home"] .home-intro .text-link{font-size:13px}.home-journal .journal-card{min-width:0}

@media(max-width:767px) {
  body[data-page=catalog] .page-heading { display:block;padding-block:14px }
  body[data-page=catalog] .page-heading h1 { font-size:clamp(36px,10vw,54px);margin:6px 0 }
  body[data-page=catalog] .page-heading .lead { font-size:14px;line-height:1.4 }
  .catalog-materials { grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:0 }
  .catalog-materials a,.catalog-materials a:last-child { border:1px solid var(--line);min-height:40px;padding:8px 9px;font-size:12px }
  .catalog-navigation .catalog-toolbar { display:flex;flex-wrap:wrap;align-items:center;gap:5px 12px;padding:6px 0;margin-bottom:14px }
  .catalog-shapes { display:none }
  .catalog-shape-select:not([hidden]) { display:flex;align-items:center;gap:5px;font-size:11px;color:var(--muted) }
  .catalog-shape-select select { font:inherit;font-size:13px;color:var(--ink);background:transparent;border:0;max-width:135px;min-height:44px }
  .catalog-tools { flex:1;display:flex;justify-content:flex-end;gap:8px }
  .catalog-count { margin-right:auto }
  .catalog-sort .sort-caption { display:none }
  .catalog-sort summary { font-size:12px }
  #catalog-grid { row-gap:22px }
  #catalog-grid .card-choice { font-size:12px;line-height:1.4;margin:0 0 8px }
}
@media(max-width:767px){.catalog-sort:has([data-catalog-sort="default"][aria-pressed=true]) .sort-caption{display:inline}.catalog-sort:has([data-catalog-sort="default"][aria-pressed=true]) [data-sort-label]{display:none}.catalog-sort summary{white-space:nowrap}.catalog-navigation .catalog-toolbar:has(.catalog-shape-select[hidden]):not(:has(.catalog-sort)) .catalog-tools{min-height:30px}}

@media(max-width:767px){
  .checkout-layout,.cart-layout{grid-template-columns:minmax(0,1fr);gap:18px}
  .checkout-layout{grid-template-areas:"summary" "form"}
  .cart-layout .cart-summary{grid-row:1}
  .cart-layout .cart-summary h2{display:none}
  .cart-layout .cart-summary .total{border:0;padding:0}
  .cart-layout .cart-summary .button{margin-top:12px}
  .order-item.cart-row,.bag-dialog .order-item,.checkout-summary .order-item{grid-template-columns:66px minmax(0,1fr);grid-template-areas:"photo info" "photo calc" "photo sum";gap:6px 12px;padding:14px 0}
  .order-item .line-photo img{height:85px;width:66px}
  .order-item .line-info h3{font-size:22px}
  .order-item .line-variant{font-size:13px}
  .order-item .cart-row-right{flex-direction:row;align-items:center;gap:10px}
  .order-item .qty button{min-width:36px;min-height:36px}
  .checkout-summary .line-sum{font-size:17px}
  .checkout-summary .line-calculation{align-items:baseline}
}
@media(min-width:768px) and (max-width:1179px){
  .checkout-layout{grid-template-columns:minmax(0,1fr) minmax(320px,.88fr);gap:20px}
  .order-item.cart-row{grid-template-columns:62px minmax(0,1fr) auto;column-gap:10px}
}

@media (max-width: 767px) {
  .pdp-editorial-hero:not(.pdp-editorial-hero--scene) {
    --hero-photo-height: clamp(190px, 34svh, 340px);
  }

  .pdp-editorial-hero:not(.pdp-editorial-hero--scene) .pdp-hero-photo {
    height: var(--hero-photo-height);
  }

  .pdp-editorial-hero:not(.pdp-editorial-hero--scene)::after {
    top: var(--hero-photo-height);
  }

  .pdp-editorial-hero:not(.pdp-editorial-hero--scene) .pdp-hero-photo figcaption {
    right: var(--gutter);
    bottom: 8px;
    writing-mode: vertical-rl;
    background: transparent;
    padding: 0;
  }

  .pdp-editorial-hero:not(.pdp-editorial-hero--scene) .pdp-hero-copy h2 {
    margin: 8px 0 12px;
    font-size: clamp(40px, 11.6vw, 64px);
    line-height: .92;
  }

  .pdp-editorial-hero:not(.pdp-editorial-hero--scene) .pdp-hero-copy p {
    display: block;
    max-width: 38ch;
    margin: 0 0 14px;
    color: #494442;
    font-size: 14px;
    line-height: 1.45;
  }

  .pdp-editorial-hero .pdp-hero-choice {
    justify-content: flex-start;
    gap: 16px;
  }

  .pdp-editorial-hero .pdp-hero-choice > span {
    order: -1;
  }

}

@media (min-width: 560px) and (max-width: 767px) {
  .pdp-editorial-hero:not(.pdp-editorial-hero--scene) {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
    align-items: center;
  }

  .pdp-editorial-hero:not(.pdp-editorial-hero--scene) .pdp-hero-copy {
    order: 0;
  }

  .pdp-editorial-hero:not(.pdp-editorial-hero--scene) .pdp-hero-photo {
    height: clamp(250px, 60svh, 410px);
    align-self: end;
  }

  .pdp-editorial-hero:not(.pdp-editorial-hero--scene)::after {
    inset: 0 48% 0 0;
    mask-image: linear-gradient(to right, transparent, #000 45%, transparent);
  }

  .pdp-editorial-hero:not(.pdp-editorial-hero--scene) .pdp-hero-copy h2 {
    font-size: clamp(40px, 6.6vw, 50px);
  }
}

@media (min-width: 768px) and (max-width: 1179px) {
  body[data-page="product"] .pdp-editorial-hero--portrait .pdp-hero-photo picture {
    width: 94%;
    height: calc(100% - 24px);
    margin: 24px auto 0;
  }
}

@media (max-width: 559px) {
  body[data-page="product"] { --phone-header-height: 100px; }
  body[data-page="product"] .header { min-height: var(--phone-header-height); }
  .pdp-editorial-hero:not(.pdp-editorial-hero--scene) {
    display: grid;
    height: calc(100svh - var(--phone-header-height));
    grid-template-rows: minmax(0, 111.12vw) minmax(min-content, 1fr);
  }
  .pdp-editorial-hero:not(.pdp-editorial-hero--scene) .pdp-hero-photo {
    grid-row: 1;
    height: 100%;
    min-height: 0;
  }
  .pdp-editorial-hero:not(.pdp-editorial-hero--scene)::after {
    grid-row: 2;
    inset-block: 0;
  }
  .pdp-editorial-hero:not(.pdp-editorial-hero--scene) .pdp-hero-copy {
    grid-row: 2;
    align-self: stretch;
    border-top: 1px solid #d3cfc9;
    background: linear-gradient(to bottom, #eeebe6 0%, rgb(242 239 234 / 84%) 45%, var(--paper) 100%);
    padding-block: 14px;
  }
  .pdp-editorial-hero:not(.pdp-editorial-hero--scene) .pdp-hero-copy > .eyebrow {
    margin-top: auto;
  }
  .pdp-editorial-hero:not(.pdp-editorial-hero--scene) .pdp-hero-copy h2 {
    font-size: clamp(31px, 10vw, 55px);
    margin: 6px 0 8px;
  }
  .pdp-editorial-hero:not(.pdp-editorial-hero--scene) .pdp-hero-photo img {
    object-fit: contain;
    object-position: center bottom;
  }
  .pdp-editorial-hero:not(.pdp-editorial-hero--scene) .pdp-hero-photo figcaption {
    top: var(--gutter);
    bottom: auto;
  }
  .pdp-hero-copy h2 br { display: none; }
  .pdp-editorial-hero .pdp-hero-choice .button {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    gap: 8px;
    padding-inline: clamp(12px, 4vw, 20px);
    justify-content: space-between;
  }
  .pdp-hero-choice .price-current {
    color: var(--ink);
    font-size: clamp(20px, 5.4vw, 24px);
    font-weight: 600;
    line-height: 1.2;
  }
  .pdp-hero-choice .price-before {
    font-size: 12px;
    line-height: 1.4;
  }
  .pdp-wayfinding { display: block; padding-block: 2px; }
  .pdp-wayfinding .breadcrumbs ol {
    flex-wrap: nowrap;
    gap: 5px;
    overflow-x: auto;
    white-space: nowrap;
  }
  .pdp-wayfinding .breadcrumbs li { gap: 5px; }
  .pdp-wayfinding .breadcrumbs a, .pdp-wayfinding > .text-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    min-width: 44px;
  }
}

@media (max-width: 559px) {
  .pdp-editorial-hero--mobile-labels .hero-original-label { display: none; }
  .pdp-editorial-hero--mobile-labels .hero-phone-label[hidden] { display: inline !important; }
  .pdp-editorial-hero.pdp-editorial-hero--mobile-labels::after {
    mask-image: linear-gradient(to bottom, transparent, #000 44px, #000 32%, transparent 80%);
  }
  body:has(.pdp-editorial-hero--mobile-labels) .header {
    padding-top: 6px;
    .logo, .icon-button, nav > * { min-height: 44px; }
    .logo, nav > * { display: inline-flex; align-items: center; }
    nav { gap: 0; }
    nav > * { flex: 1 0 auto; justify-content: center; }
    nav > :first-child { justify-content: flex-start; }
    nav > :last-child { justify-content: flex-end; }
  }
}

/* Phone purchase and editorial sections. */
@media (max-width: 767px) {
  body[data-page="product"] {
    .thumbnails button { opacity: 1; }
    .purchase .size-heading button, .purchase-services a, .purchase-styling .text-link {
      min-height: 44px;
      align-items: center;
      display: inline-flex;
    }
    .purchase:not(:has(.size[aria-pressed="true"])) .choose-size-label[hidden] { display: inline !important; }
    .purchase:not(:has(.size[aria-pressed="true"])) .add-label { display: none; }
    .favorite[aria-pressed="true"] .icon { fill: currentColor; }
    .related .favorite { width: 44px; height: 44px; }
    .related .price-current { order: 0; }
    .purchase-price .price-markup {
      display: grid;
      grid-template-columns: auto auto;
      justify-content: start;
      align-items: center;
      gap: 2px 6px;
    }
    .purchase-price .price-current { grid-column: 1 / -1; order: 0; }

    .pdp-story-portraits figure, .pdp-detail-story figure { height: auto; }
    .pdp-story-portraits picture, .pdp-detail-story picture { display: block; height: auto; }
    .pdp-story-portraits img, .pdp-detail-story figure img {
      height: clamp(245px, 105vw, 440px);
      object-fit: contain;
      object-position: var(--detail-x, var(--portrait-x, center)) bottom;
    }
    .pdp-story-portraits figcaption, .pdp-detail-story figcaption {
      position: static;
      padding: 7px var(--gutter) 12px;
      font-size: 12px;
    }
    .pdp-detail-story figure { background: var(--soft); isolation: isolate; }
    .pdp-detail-story img { mix-blend-mode: multiply; }
    .outfit-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
    .outfit-actions .button { width: 100%; justify-content: space-between; }
    .pdp-information--editorial .pdp-information-title { padding-top: 28px; }
    .pdp-information--editorial .pdp-return-choice {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr);
      gap: 12px;
      align-items: center;
    }
    .pdp-return-choice .button { padding-inline: 12px; gap: 6px; }
    .pdp-return-choice .button span { white-space: normal; }
  }
}

@media (min-width: 560px) and (max-width: 767px) {
  body[data-page="product"] .pdp-story-portraits {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  body[data-page="product"] .pdp-story-portraits img { height: min(60vw, 420px); }
}

@media (min-width: 768px) and (max-width: 1179px) {
  body[data-page="product"] #purchase .sizes {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
  }
  body[data-page="product"] #purchase .sizes .size {
    min-width: 0;
    padding-inline: 0;
  }
  body[data-page="product"] .pdp-material-story {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  body[data-page="product"] .pdp-story-heading {
    padding: 36px var(--gutter) 20px;
  }
  body[data-page="product"] .pdp-story-portraits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }
  body[data-page="product"] .pdp-story-portraits figure,
  body[data-page="product"] .pdp-story-portraits figure:nth-child(2) {
    height: clamp(310px, 43vw, 480px);
    margin: 0;
  }
  body[data-page="product"] .pdp-story-portraits picture {
    display: block;
    height: 100%;
    padding-top: 32px;
  }
  body[data-page="product"] .pdp-story-portraits figcaption {
    top: 6px;
  }
  body[data-page="product"] .outfit-caption h2 {
    font-size: clamp(48px, 6vw, 70px);
    line-height: .9;
    text-indent: 0;
  }
  body[data-page="product"] #product-details {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 32px;
  }
  body[data-page="product"] .related .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body[data-page="product"] .related .card-price .price-markup {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: start;
    align-items: center;
    gap: 3px 5px;
  }
  body[data-page="product"] .related .price-current {
    order: 0;
    grid-column: 1 / -1;
  }
}


@media (min-width: 768px) and (max-width: 1179px) {
  .purchase:not(:has(.size[aria-pressed="true"])) .choose-size-label[hidden] { display: inline !important; }
  .purchase:not(:has(.size[aria-pressed="true"])) .add-label { display: none; }
}
@media (max-width: 767px) {
  body[data-page="product"] {
    .pdp-wayfinding { display: flex; flex-wrap: nowrap; align-items: center; gap: 12px; }
    .pdp-wayfinding .breadcrumbs { min-width: 0; flex: 1; }
    .pdp-wayfinding > .text-link { white-space: nowrap; flex: none; }
    .pdp > .purchase { grid-row: 1; }
    .purchase h1 { font-size: clamp(32px, 8.5vw, 42px); margin: 8px 0; }
    .purchase-intro { margin: 0; font-size: 14px; line-height: 1.45; }
    .purchase-price { margin: 16px 0 6px; }
    .purchase-price + .purchase-actions { margin-top: 0; }
    .purchase .form-message:empty { min-height: 0; margin: 0; }
    .purchase .gallery { margin-top: 24px; }
    .purchase-services { flex-wrap: wrap; }
    .pdp-editorial-hero h2 br, .outfit-caption h2 br,
    .pdp-story-heading h2 br, .pdp-detail-story h2 br,
    .pdp-information-title h2 br { display: none; }
    .outfit-caption h2 { max-width: none; }
    .purchase .sizes { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-columns: none; gap: clamp(3px, 1vw, 7px); }
    .purchase .size { min-width: 0; width: 100%; padding-inline: 0; font-size: 15px; font-weight: 400; line-height: 1.2; font-variant-numeric: tabular-nums; }
    .purchase-actions { margin-top: 12px; align-items: stretch; }
    .purchase-actions .button { font-size: 15px; }
    .purchase-actions .favorite { height: auto; }
    .purchase-price .price-current { font-weight: 600; }
    .purchase .option-heading, .purchase .option-heading button { font-size: 13px; }
    .purchase .option-heading { margin-block: 12px 6px; }
    .purchase .colors:has(> button:only-child) { display: none; }
    .outfit-caption h2 { white-space: normal; }
  }
}

@media (max-width: 370px) {
  body[data-page="product"] .purchase {
    display: flex;
    flex-direction: column;
    .purchase-intro { margin-top: 6px; }
    h1 { margin-block: 4px; }
    .purchase-price { margin-block: 12px 6px; }
  }
}

/* Shared mobile reading scale and purchase controls. */
@media (max-width: 767px) {
  body[data-page="product"] {
    .pdp-editorial-hero .pdp-hero-choice,
    .pdp-information--editorial .pdp-return-choice {
      display: grid;
      grid-template-columns: minmax(max-content, 30%) minmax(0, 1fr);
      align-items: center;
      gap: 12px;
    }
    .pdp-editorial-hero .pdp-hero-choice .button,
    .purchase-actions .button,
    .outfit-actions .button,
    .pdp-information--editorial .pdp-return-choice .button {
      box-sizing: border-box;
      min-width: 0;
      min-height: 52px;
      padding: 5px clamp(12px, 4vw, 16px);
      gap: 8px;
      justify-content: space-between;
      font: 600 16px/1.2 var(--sans);
    }
    .pdp-hero-choice .button .icon, .purchase-actions .button .icon,
    .outfit-actions .button .icon, .pdp-return-choice .button .icon {
      width: 18px;
      height: 18px;
      flex: none;
    }
    .pdp-editorial-hero .pdp-hero-copy p, .purchase-intro, .purchase-styling p,
    .pdp-story-heading p, .pdp-detail-story p, .outfit-caption p,
    .pdp-information-title > p, .accordions details p {
      font-size: 16px;
      line-height: 1.5;
    }
    .purchase-facts > div, .purchase-facts li, .purchase-services a,
    .pdp-story-portraits figcaption, .pdp-detail-story figcaption,
    .outfit-items dd, .accordions .spec-list, .spec-highlights strong {
      font-size: 14px;
      line-height: 1.45;
    }
    .pdp-story-heading, .pdp-detail-story > div {
      padding: 28px var(--gutter);
    }
    .pdp-detail-story > div { grid-row: 1; }
    .pdp-wayfinding .breadcrumbs, .pdp-wayfinding > .text-link,
    .gallery-caption, .purchase .option-heading .muted { font-size: 12px; }
    .pdp-story-heading h2, .pdp-detail-story h2 { margin: 12px 0 16px; }
    .pdp-story-heading p, .pdp-detail-story p { max-width: 44ch; margin: 0; }
    .pdp-story-portraits {
      grid-template-columns: none;
      grid-auto-flow: column;
      grid-auto-columns: 88%;
      align-items: start;
      gap: 8px;
      padding-inline: var(--gutter);
      scroll-padding-inline: var(--gutter);
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      overscroll-behavior-x: contain;
    }
    .pdp-story-portraits figure,
    .pdp-story-portraits figure:nth-child(2) {
      height: auto;
      scroll-snap-align: start;
    }
    .pdp-story-portraits img { height: min(98vw, 420px); }
    .pdp-story-portraits figcaption { padding: 8px 0 14px; }
  }
}

@media (max-width: 767px) {
  body[data-page="product"] .related {
    .section-heading { align-items: baseline; justify-content: space-between; gap: 6px 16px; }
    .section-heading h2 { margin: 0; }
  }
  body[data-page="product"] .related .product-grid, #catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px;
  }
  body[data-page="product"] .related, #catalog-grid {
    .product-card { background: #fff; border: 1px solid var(--line); }
    .card-body { padding: 12px clamp(8px, 2.8vw, 14px) 14px; }
    .card-body h3 { font-size: clamp(20px, 5.2vw, 25px); line-height: 1.08; margin: 0 0 5px; }
    .card-bottom { flex: 1; margin: 0; align-items: stretch; gap: 12px; }
    .card-bottom .material { font-size: 13px; line-height: 1.3; max-width: none; }
    .card-price { margin-top: auto; padding-top: 9px; border-top: 1px solid var(--line); }
    .card-price .price-markup { display: grid; grid-template-columns: auto auto; justify-content: start; align-items: baseline; gap: 3px 6px; }
    .card-price .price-current { grid-column: 1 / -1; font-size: 19px; font-weight: 600; line-height: 1.2; }
    .card-price .price-before { color:#68635f; font:400 12px/1.35 var(--sans); }
  }
}

@media (max-width: 767px) {
  body[data-page="product"] {
    .pdp-story-heading h2, .pdp-detail-story h2, .outfit-caption h2,
    .pdp-information-title h2, .related .section-heading h2 {
      font-size: clamp(36px, 10vw, 46px);
      line-height: .98;
    }
    .related .section-heading { align-items: flex-end; }
    .purchase-styling h2 { font-size: 18px; line-height: 1.25; }
  }
}
@media (max-width: 767px) {
  body[data-page="product"] {
    .purchase-services { padding-top: 12px; row-gap: 0; }
    .purchase-facts { margin-top: 12px; padding-top: 9px; }
    .purchase-facts > div {
      display: grid;
      grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
      gap: 12px;
      align-items: baseline;
      padding-block: 7px;
    }
    .purchase-facts ul { max-width: none; }
    .purchase-styling {
      margin: 20px 0 0;
      padding: 18px var(--gutter) 10px;
      background: #edeae5;
    }
    .purchase-styling h2 { font: 400 26px/1.08 var(--serif); margin: 0 0 8px; }
    .purchase-styling .text-link { font-size: 14px; margin-top: 6px; }
  }
}

@media (max-width: 767px) {
  .pdp-information--editorial {
    --spec-icon-width: 22px;
    --spec-label-gap: 12px;
    .summary-label { gap: var(--spec-label-gap); }
    .summary-label .icon { width: var(--spec-icon-width); }
    .spec-feature { grid-template-columns: var(--spec-icon-width) minmax(0, 1fr); column-gap: var(--spec-label-gap); }
    .spec-list > div {
      padding-inline-start: calc(var(--spec-icon-width) + var(--spec-label-gap));
      grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
      column-gap: 12px;
    }
  }
}

@media (max-width: 767px) {
  body[data-page="product"] .purchase-color-swatches {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    .option-heading { order: 1; margin: 0; }
    .option-heading > span:first-child { display: none; }
    .option-heading [data-selected-color] { color: var(--ink); font-size: 14px; text-transform: capitalize; }
    .colors { display: flex; gap: 2px; margin: 0; }
    .colors .option { display: grid; place-items: center; width: 44px; height: 44px; min-width: 0; padding: 0; border: 0; background: transparent; font-size: 0; }
    .colors .option::before { content: ""; display: block; width: 24px; height: 24px; margin: 0; border: 1px solid #0002; border-radius: 0; background: var(--fur-color); }
    .colors .option[aria-pressed="true"]::before { outline: 1px solid var(--ink); outline-offset: 3px; }
  }
}

@media (max-width:767px) {
  body[data-page=catalog] .page-heading { padding-block:18px 22px; }
  body[data-page=catalog] .page-heading h1 { font-size:clamp(40px,10vw,46px); }
  .catalog-navigation .catalog-materials a { min-height:44px; font-size:13px; }
  .catalog-navigation .catalog-toolbar { justify-content:space-between; padding-block:8px; }
  .catalog-navigation .catalog-tools { flex:0 1 auto; flex-wrap:wrap; margin-left:auto; }
  .catalog-navigation .catalog-sort summary { font-size:13px; }
  :is(#catalog-grid, #favorites-grid) .card-media .favorite { width:44px; height:44px; background:transparent; color:var(--ink); }
  :is(#catalog-grid, #favorites-grid) .card-media .favorite .icon { filter:drop-shadow(0 0 1px #fff); }
}
@media (min-width:768px) and (max-width:1179px) {
  #catalog-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:767px) {
  #catalog-grid .card-bottom { flex:0; grid-template-columns:1fr; align-content:end; gap:4px; }
  #catalog-grid .card-bottom > :not(.card-price) { grid-column:1; justify-self:start; text-align:left; }
  #catalog-grid .card-price { grid-column:1; grid-row:auto; justify-self:stretch; margin-top:5px; }
  #catalog-grid .card-price .price-markup { justify-content:start; justify-items:start; }
  #catalog-grid .card-swatches { width:100%; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); max-width:132px; }
  #catalog-grid .card-swatches a { width:100%; }
}

@media (max-width:359px) {
  .header nav { width:calc(100% + 16px); margin-inline:-8px; gap:2px; }
  .header nav > :is(a,button) { font-size:11.5px; white-space:nowrap; }
}
