/* Catalog filtering: a compact, readable control surface on desktop and mobile. */
@media(min-width:1025px){
  .listing-layout-advanced .desktop-filters{top:145px;max-height:calc(100dvh - 164px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
}
.listing-layout-advanced .desktop-filters,.filter-drawer{background:#fbf8f3;border-color:#e5dcd0}
.listing-layout-advanced .desktop-filters{border-radius:16px;padding:20px;box-shadow:0 14px 36px rgba(64,42,23,.06)}
.listing-layout-advanced .advanced-filter-form{gap:0;padding-bottom:12px}
.advanced-filter-form .filter-headline{align-items:center;padding:0 0 17px;margin:0 0 18px;border-bottom:1px solid #e5dcd0}
.advanced-filter-form .filter-headline h3{font-size:27px;line-height:1.05}
.advanced-filter-form .filter-search-box,.advanced-filter-form .filter-sort-select{margin-bottom:16px}
.advanced-filter-form .filter-search-box input,.advanced-filter-form .filter-sort-select select,.advanced-filter-form .price-filter-grid input{border-radius:10px;border-color:#ded4c7;min-height:44px;background:#fffdf9}
.advanced-filter-form .filter-section{padding:15px 0;border-color:#e5dcd0}
.advanced-filter-form .filter-section summary{min-height:30px;gap:8px;font-size:12px;letter-spacing:.08em}
.advanced-filter-form .filter-section summary:after{margin-left:auto;font-size:20px;font-weight:400;line-height:1;color:#7c614c}
.advanced-filter-form .filter-section summary small{margin-left:3px;padding:4px 7px;border-radius:999px;background:#eaded0;color:#513924;font-size:10px;letter-spacing:0;text-transform:none;white-space:nowrap}
.advanced-filter-form .filter-section summary [hidden]{display:none}
.advanced-filter-form .filter-color-grid{grid-template-columns:1fr;gap:7px;margin-top:12px}
.advanced-filter-form .filter-color-pill{flex-direction:row;align-items:center;min-height:42px;border-radius:9px;padding:8px 10px;gap:10px;background:#fffdf9}
.advanced-filter-form .filter-color-pill span{width:24px;height:24px}
.advanced-filter-form .filter-color-pill em{font-size:12px;letter-spacing:0;text-transform:none}
.advanced-filter-form .filter-color-pill.is-selected,.advanced-filter-form .filter-size-grid label.is-selected{border-color:#554031;box-shadow:inset 0 0 0 1px #554031}
.advanced-filter-form .filter-size-grid label{min-width:44px;min-height:44px;height:auto;border-radius:9px}
.advanced-filter-form .filter-toggle-list label{min-height:46px;border-radius:9px;background:#fffdf9;text-transform:none;letter-spacing:0}
.advanced-filter-form .filter-color-pill:focus-within,.advanced-filter-form .filter-size-grid label:focus-within,.advanced-filter-form .filter-toggle-list label:focus-within,.advanced-filter-form .filter-section summary:focus-visible,.advanced-filter-form input:focus-visible,.advanced-filter-form select:focus-visible{outline:2px solid #744b32;outline-offset:2px}
.advanced-filter-form .filter-actions-sticky{bottom:0;z-index:2;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:14px 0 2px;border-top:1px solid #e5dcd0;background:#fbf8f3}
.advanced-filter-form .filter-actions-sticky .btn{border-radius:9px;min-height:44px;padding:0 10px;font-size:11px;letter-spacing:.03em;white-space:nowrap}
.advanced-filter-form .filter-actions-sticky .link-under{white-space:nowrap;font-size:12px}
@media(max-width:1024px){
  .filter-drawer{height:100dvh;padding:18px 20px max(20px,env(safe-area-inset-bottom));border-radius:0}
  .filter-drawer .advanced-filter-form{padding-top:14px}
  .filter-drawer .filter-actions-sticky{bottom:0;padding-bottom:8px}
}

/* Search results: keep the query readable and give suggestions explicit contrast. */
.search-hero-advanced.has-query{min-height:320px;padding-top:140px;padding-bottom:38px}
.search-hero-advanced.has-query h1{font-size:clamp(36px,5vw,66px);line-height:1.02;letter-spacing:-.045em;overflow-wrap:anywhere}
.search-hero-advanced .search-query-summary{max-width:760px;margin:14px 0 0;line-height:1.55}
.search-query-summary span{color:#fff;font-weight:800;overflow-wrap:anywhere}
.search-hero-advanced .popular-search-row{margin-top:18px}
.search-hero-advanced .popular-search-row a{display:inline-flex;align-items:center;min-height:36px;padding:7px 12px;border:1px solid rgba(255,255,255,.62);border-radius:999px;background:rgba(255,255,255,.12);color:#fff;line-height:1.25;transition:background .2s ease,color .2s ease}
.search-hero-advanced .popular-search-row a:hover,.search-hero-advanced .popular-search-row a:focus-visible{background:#fff;color:#211912}
.search-hero-advanced .popular-search-row a:focus-visible{outline:2px solid #fff;outline-offset:3px}
.search-hero-advanced .popular-search-row strong{color:rgba(255,255,255,.76)}
.listing-layout-advanced .advanced-listing-top>div:first-child>span{font-weight:800}

/* Cart count is a small status cue alongside the introduction. */
.commerce-intro .commerce-intro-meta{width:70px;height:70px;flex:0 0 70px;box-shadow:0 10px 28px rgba(17,17,17,.13)}
.commerce-intro .commerce-intro-meta strong{font-size:25px}
.commerce-intro .commerce-intro-meta span{font-size:8px;letter-spacing:.1em;margin-top:3px}
@media(max-width:720px){
  .search-hero-advanced.has-query{min-height:300px;padding:124px 18px 32px}
  .search-hero-advanced.has-query h1{font-size:clamp(35px,9vw,48px)}
  .search-hero-advanced .popular-search-row{gap:8px}
  .commerce-intro .commerce-intro-meta{width:58px;height:58px;flex-basis:58px}
  .commerce-intro .commerce-intro-meta strong{font-size:21px}
  .commerce-intro .commerce-intro-meta span{font-size:7px}
}

/* Portrait product photography fills the mobile gallery without cropping. */
@media(max-width:820px){
  .sc-pdp-gallery .sc-pdp-media,.sc-pdp-gallery>.sz-pdp-media{flex:0 0 min(80vw,380px)!important;width:min(80vw,380px)!important;aspect-ratio:3/4!important}
  .sc-pdp-gallery .sc-pdp-media img,.sc-pdp-gallery>.sz-pdp-media img{object-fit:contain!important}
}


/* FAZ 39B — Cart summary panels: match shipping + campaign widths and surface */
.commerce-summary-card-v2 .commerce-summary-lines {
  display:grid!important;
  width:100%!important;
  min-width:0!important;
  grid-template-columns:minmax(0,1fr)!important;
  justify-content:stretch!important;
  justify-items:stretch!important;
}
.commerce-summary-card-v2 .commerce-shipping-progress,
.commerce-summary-card-v2 .commerce-summary-lines>.commerce-campaign-savings {
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  padding:14px 15px!important;
  border:1px solid #e7ddd1!important;
  border-radius:12px!important;
  background:#faf5ee!important;
}
.commerce-summary-card-v2 .commerce-summary-lines>.commerce-campaign-savings {
  display:grid!important;
  grid-template-columns:minmax(0,1fr) max-content!important;
  align-items:center!important;
  justify-content:stretch!important;
  column-gap:12px!important;
  row-gap:7px!important;
  margin:12px 0!important;
}
.commerce-summary-card-v2 .commerce-summary-lines>.commerce-campaign-savings>span {min-width:0;}
.commerce-summary-card-v2 .commerce-summary-lines>.commerce-campaign-savings>strong {
  max-width:100%;
  text-align:right;
}
.commerce-summary-card-v2 .commerce-summary-lines>.commerce-campaign-savings>small {
  display:block;
  grid-column:1/-1;
  min-width:0;
  flex-basis:auto;
  line-height:1.5;
}
@media(max-width:420px){
  .commerce-summary-card-v2 .commerce-shipping-progress,
  .commerce-summary-card-v2 .commerce-summary-lines>.commerce-campaign-savings {padding:12px!important;}
}

/* FAZ39D / PDP: related-product grid alignment only.
   Scoped to the product-detail recommendations; no shared product-card changes. */
.sc-pdp-related.section-padding {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  padding-inline: clamp(16px, 5vw, 88px);
}
.sc-pdp-related .sc-pdp-related__inner {
  --sc-related-columns: var(--sc-related-desktop, 4);
  width: 100%;
  max-width: 1320px;
  min-width: 0;
  margin-inline: auto;
}
.sc-pdp-related--count-1 .sc-pdp-related__inner { max-width: 310px; }
.sc-pdp-related--count-2 .sc-pdp-related__inner { max-width: 646px; }
.sc-pdp-related--count-3 .sc-pdp-related__inner { max-width: 982px; }
.sc-pdp-related .sc-pdp-related__heading {
  width: 100%;
  min-width: 0;
  margin-bottom: clamp(20px, 2.2vw, 30px);
}
.sc-pdp-related .sc-pdp-related__heading h2 {
  max-width: 100%;
  overflow-wrap: break-word;
}
.sc-pdp-related .sc-pdp-related__grid.product-grid.four {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  grid-template-columns: repeat(var(--sc-related-columns), minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 24px);
  margin: 0;
  align-items: start;
}
.sc-pdp-related .sc-pdp-related__grid > .product-card,
.sc-pdp-related .sc-pdp-related__grid .product-image-wrap,
.sc-pdp-related .sc-pdp-related__grid .product-meta {
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 1024px) {
  .sc-pdp-related .sc-pdp-related__inner {
    --sc-related-columns: var(--sc-related-tablet, 2);
  }
  .sc-pdp-related--count-4 .sc-pdp-related__inner { max-width: 646px; }
}
@media (max-width: 700px) {
  .sc-pdp-related.section-padding { padding-inline: 16px; }
  .sc-pdp-related .sc-pdp-related__inner {
    --sc-related-columns: var(--sc-related-mobile, 2);
    max-width: 612px;
  }
  .sc-pdp-related .sc-pdp-related__grid.product-grid.four {
    gap: 12px;
  }
  .sc-pdp-related--count-1 .sc-pdp-related__inner { max-width: 300px; }
  .sc-pdp-related--count-3 .sc-pdp-related__grid.product-grid.four > .product-card:last-child {
    grid-column: 1 / -1;
    width: min(100%, 300px);
    justify-self: center;
  }
}

/* PDP RELATED HEAD / ALIGNMENT V2 20261015: product-page section only. */
.sc-pdp-related.section-padding {
  padding-top: clamp(44px, 5vw, 78px);
  padding-bottom: clamp(48px, 6vw, 92px);
}
.sc-pdp-related .sc-pdp-related__inner {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
}
.sc-pdp-related--count-1 .sc-pdp-related__inner { max-width: 390px; }
.sc-pdp-related--count-2 .sc-pdp-related__inner { max-width: 780px; }
.sc-pdp-related--count-3 .sc-pdp-related__inner { max-width: 1092px; }
.sc-pdp-related .sc-pdp-related__heading.section-heading {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  text-align: left !important;
  margin: 0 0 clamp(18px, 2.2vw, 28px) !important;
}
.sc-pdp-related .sc-pdp-related__heading .eyebrow {
  display: inline-flex;
  align-items: center;
  line-height: 1.4;
  margin: 0;
  text-align: left;
}
.sc-pdp-related .sc-pdp-related__heading h2 {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 10px 0 0 !important;
  font-family: Georgia, serif;
  font-size: clamp(28px, 2.7vw, 42px) !important;
  font-weight: 700;
  line-height: 1.15 !important;
  letter-spacing: -0.035em !important;
  text-align: left !important;
  overflow-wrap: normal;
  text-wrap: balance;
}
.sc-pdp-related .sc-pdp-related__grid.product-grid.four {
  width: 100%;
  margin: 0;
  justify-items: stretch;
  align-items: start;
}
@media (max-width: 1024px) {
  .sc-pdp-related--count-3 .sc-pdp-related__inner { max-width: 920px; }
}
@media (max-width: 700px) {
  .sc-pdp-related.section-padding { padding: 42px 16px 64px; }
  .sc-pdp-related .sc-pdp-related__inner { max-width: 612px; }
  .sc-pdp-related--count-1 .sc-pdp-related__inner { max-width: 300px; }
  .sc-pdp-related .sc-pdp-related__heading.section-heading { margin-bottom: 18px !important; }
  .sc-pdp-related .sc-pdp-related__heading h2 {
    font-size: clamp(25px, 6.2vw, 33px) !important;
    line-height: 1.16 !important;
  }
}
