/* NOIR ATELIER: keep the campaign editorial, but let products and their images
   behave like a usable store. The source contact sheet is six square photos
   arranged in three columns and two rows. Its tiles must not be zoomed to 375%. */
.demo-store.boutique-store {
  --surface: #f8f5ef;
  --bg: #f1ede6;
  --ink: #241d1b;
  --muted: #665a54;
  --line: #d0c5ba;
}

.demo-store.boutique-store .boutique-hero {
  min-height: clamp(590px, 57vw, 780px);
  background: #261a19;
}
.demo-store.boutique-store .boutique-hero-visual {
  background-position: 61% 46%;
}
.demo-store.boutique-store .boutique-hero-visual::before {
  background: linear-gradient(90deg, rgba(20, 13, 12, .83), rgba(20, 13, 12, .42) 42%, transparent 80%),
              linear-gradient(0deg, rgba(20, 13, 12, .28), transparent 34%);
}
.demo-store.boutique-store .boutique-hero-copy {
  width: min(720px, 60%);
  padding-block: 100px 84px;
}
.demo-store.boutique-store .boutique-hero-copy h1 {
  font-size: clamp(70px, 7.5vw, 113px);
  line-height: .92;
  overflow-wrap: normal;
}
.demo-store.boutique-store .boutique-hero-copy p {
  max-width: 390px;
  color: #f4eae2;
  font-size: 15px;
}

/* Three equally legible, accurately framed category photos replace the
   oversized editorial tile which forced adjacent photos out of their cells. */
.demo-store.boutique-store .boutique-categories {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: none;
  gap: clamp(9px, 1.2vw, 18px);
  padding: clamp(12px, 2.8vw, 40px);
  background: #eee7dd;
}
.demo-store.boutique-store .boutique-categories > a,
.demo-store.boutique-store .boutique-categories > a:first-child {
  grid-column: auto;
  grid-row: auto;
  min-height: 0;
  aspect-ratio: 1 / 1;
  background-size: 300% 200%;
  background-repeat: no-repeat;
}
.demo-store.boutique-store .boutique-categories > a { padding: clamp(14px, 2vw, 26px); }
.demo-store.boutique-store .boutique-categories > a::after {
  background: linear-gradient(180deg, #20191858, transparent 34%, #201918cf);
}
.demo-store.boutique-store .boutique-categories > a b {
  right: 16px;
  bottom: clamp(17px, 2.2vw, 30px);
  left: clamp(17px, 2.2vw, 30px);
  font-size: clamp(27px, 3.1vw, 45px);
  line-height: 1.02;
  text-wrap: balance;
}
.demo-store.boutique-store .boutique-categories > a:focus-visible {
  outline: 3px solid #fff8ed;
  outline-offset: -7px;
}

.demo-store.boutique-store .demo-collection {
  padding: clamp(78px, 8vw, 122px) clamp(20px, 4.5vw, 72px) clamp(90px, 8vw, 130px);
}
.demo-store.boutique-store .demo-collection > header {
  padding-bottom: 29px;
  border-bottom: 1px solid var(--line);
}
.demo-store.boutique-store .demo-collection h2 {
  max-width: 760px;
  font-size: clamp(48px, 6.5vw, 88px);
  line-height: .98;
  overflow-wrap: normal;
}
.demo-store.boutique-store .demo-collection header p {
  max-width: 340px;
  font-size: 14px;
  line-height: 1.6;
}
.demo-store.boutique-store .demo-filter-row {
  padding: 22px 0 17px;
  gap: 7px;
}
.demo-store.boutique-store .demo-filter-row button {
  min-height: 40px;
  padding: 10px 16px;
  font-size: 11px;
  letter-spacing: .025em;
}
.demo-store.boutique-store .demo-filter-count { margin: 0; }

.demo-store.boutique-store .boutique-grid-toolbar {
  max-width: 1480px;
  min-height: 52px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  border-top: 1px solid var(--line);
}
.demo-store.boutique-store .boutique-grid-toolbar :is(.demo-page-count, .demo-filter-count) {
  margin: 0;
  font: 600 11px/1.5 var(--mono);
  color: var(--muted);
}
.demo-store.boutique-store .demo-grid-density {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.demo-store.boutique-store .demo-grid-density[hidden] { display: none; }
.demo-store.boutique-store .demo-grid-density button {
  min-width: 42px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 700 11px/1.2 var(--sans, Arial, sans-serif);
  cursor: pointer;
}
.demo-store.boutique-store .demo-grid-density button:is(.is-active, [aria-pressed="true"]) {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface);
}
.demo-store.boutique-store .demo-grid-density button:focus-visible {
  outline: 3px solid #7d3942;
  outline-offset: 2px;
}

/* Product photos use the exact 3x2 square sprite cell. No staggered rows,
   no vertical crop, and enough items visible without scrolling. */
.demo-store.boutique-store .demo-product-grid {
  max-width: 1480px;
  margin-inline: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(30px, 3vw, 46px) clamp(12px, 1.7vw, 25px);
}
.demo-store.boutique-store .demo-product-grid .demo-product-card:nth-child(even) { margin-top: 0; }
.demo-store.boutique-store .demo-product-grid .product-visual {
  aspect-ratio: 1 / 1;
  background-size: 300% 200% !important;
  background-color: #e4d8ca !important;
  transform: none;
}
.demo-store.boutique-store .demo-product-grid .demo-product-open:hover .product-visual { transform: none; }
.demo-store.boutique-store .demo-product-grid .demo-product-info {
  min-height: 190px;
  max-width: none;
  padding-top: 12px;
  grid-template-rows: auto minmax(42px, auto) minmax(31px, auto) auto 44px;
  gap: 5px;
}
.demo-store.boutique-store .demo-product-grid .demo-product-info > a:not(.quick-add) {
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.18;
}
.demo-store.boutique-store .demo-product-grid .demo-product-info > strong {
  font: 700 13px/1.4 var(--sans, Arial, sans-serif);
}
.demo-store.boutique-store .demo-product-grid .demo-product-info > .quick-add {
  width: 100%;
  min-height: 44px;
  padding-inline: 12px;
  font: 700 11px/1.2 var(--sans, Arial, sans-serif);
  letter-spacing: .01em;
  text-align: center;
}
@media (min-width: 1280px) {
  .demo-store.boutique-store .demo-product-grid.is-compact {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 27px clamp(10px, 1vw, 17px);
  }
  .demo-store.boutique-store .demo-product-grid.is-compact .demo-product-info > a:not(.quick-add) { font-size: clamp(15px, 1.15vw, 17px); }
  .demo-store.boutique-store .demo-product-grid.is-compact .demo-product-info > strong { font-size: 12px; }
  .demo-store.boutique-store .demo-product-grid.is-compact .quick-add { font-size: 10px; }
}
.demo-store.boutique-store .demo-product-grid.is-sparse,
.demo-store.boutique-store .demo-product-grid.is-compact.is-sparse {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.7vw, 25px);
}
.demo-store.boutique-store .boutique-category-next {
  margin-top: clamp(45px, 5vw, 78px);
  padding-top: 25px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 13px 25px;
  border-top: 1px solid var(--line);
}
.demo-store.boutique-store .boutique-category-next :is(h2, p) {
  margin: 0;
  font: 400 clamp(23px, 2.3vw, 33px)/1.12 Georgia, serif;
  letter-spacing: -.035em;
}
.demo-store.boutique-store .boutique-category-next a {
  min-height: 44px;
  padding: 10px 0;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid currentColor;
  font: 700 11px/1.4 var(--sans, Arial, sans-serif);
  text-decoration: none;
}
.demo-store.boutique-store .boutique-category-next a:focus-visible { outline: 3px solid #7d3942; outline-offset: 3px; }

.demo-store.boutique-store .demo-catalog-page {
  max-width: 1480px;
  padding-top: clamp(30px, 3.5vw, 55px);
  padding-inline: clamp(20px, 4.5vw, 72px);
}
.demo-store.boutique-store .demo-catalog-page .demo-page-heading { margin-bottom: 19px; padding-bottom: 22px; }
.demo-store.boutique-store .demo-catalog-page .demo-page-heading > a { margin-bottom: 20px; }
.demo-store.boutique-store .demo-catalog-page .demo-page-heading > small { margin-bottom: 12px; }
.demo-store.boutique-store .demo-catalog-page .demo-page-heading h1 {
  max-width: 100%;
  font-size: clamp(47px, 5.7vw, 80px);
  line-height: 1;
}
.demo-store.boutique-store .demo-catalog-page .demo-page-heading p { margin-top: 12px; font-size: 13px; }
.demo-store.boutique-store .demo-page-filters { margin-bottom: 0; padding-bottom: 12px; }
.demo-store.boutique-store .demo-catalog-page .boutique-grid-toolbar { border-top: 0; }
.demo-store.boutique-store .demo-page-filters a { padding-inline: 12px; font-size: 11px; }

.demo-store.boutique-store .boutique-editorial {
  min-height: 0;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
}
.demo-store.boutique-store .boutique-editorial > div:first-child { padding: clamp(58px, 6vw, 100px); }
.demo-store.boutique-store .boutique-editorial h2 {
  max-width: 640px;
  font-size: clamp(43px, 4.7vw, 70px);
  line-height: 1.02;
}
.demo-store.boutique-store .boutique-editorial p { font-size: 14px; line-height: 1.7; }
.demo-store.boutique-store .editorial-form {
  min-height: clamp(450px, 43vw, 680px);
  background-size: 300% 200%;
  background-position: 0 100%;
}

/* PDP and recommendations must use the same photo frame as the collection. */
.demo-store.boutique-store.product-view .store-product-detail {
  max-width: 1450px;
  padding-top: clamp(20px, 2.7vw, 38px);
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: clamp(28px, 4.5vw, 72px);
}
.demo-store.boutique-store.product-view .store-product-gallery { max-width: 620px; }
.demo-store.boutique-store.product-view .store-product-main {
  aspect-ratio: 1 / 1;
  max-width: 620px;
}
.demo-store.boutique-store.product-view .store-product-main > .product-visual,
.demo-store.boutique-store.product-view .store-product-main.has-sprite > .product-visual,
.demo-store.boutique-store.product-view .related-products article .product-visual:not(:has(img)) {
  aspect-ratio: 1 / 1;
  background-size: 300% 200% !important;
}
.demo-store.boutique-store.product-view .related-products article .product-visual { aspect-ratio: 1 / 1; }
.demo-store.boutique-store.product-view .store-product-buybox {
  padding: clamp(18px, 2vw, 28px);
}
.demo-store.boutique-store.product-view .store-product-buybox h1 {
  max-width: none;
  margin: 13px 0 11px;
  font-size: clamp(38px, 3.3vw, 50px);
  line-height: 1.03;
}
.demo-store.boutique-store.product-view .store-product-buybox > p.product-description {
  margin: 13px 0 15px;
  line-height: 1.55;
}
.demo-store.boutique-store.product-view .store-product-highlights {
  margin-bottom: 15px;
  padding-block: 10px;
}
.demo-store.boutique-store.product-view .sector-product-facts {
  margin-block: 14px;
  padding-block: 12px;
}
.demo-store.boutique-store.product-view .store-product-buybox fieldset { margin-bottom: 15px; }
.demo-store.boutique-store.product-view .store-product-buybox legend { margin-bottom: 7px; }
.demo-store.boutique-store.product-view .store-product-buybox .color-choice { min-height: 42px; padding: 8px 11px; }
.demo-store.boutique-store.product-view .store-product-buybox > p.product-stock { margin-bottom: 13px; }
.demo-store.boutique-store.product-view .related-products { padding-inline: clamp(20px, 4.5vw, 72px); }

@media (max-width: 1279px) {
  .demo-store.boutique-store .demo-grid-density { display: none; }
}
@media (max-width: 950px) {
  .demo-store.boutique-store .boutique-hero-copy { width: min(700px, 82%); }
  .demo-store.boutique-store .demo-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .demo-store.boutique-store .demo-product-grid.is-sparse { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-store.boutique-store .demo-collection > header { grid-template-columns: 1fr; gap: 14px; }
  .demo-store.boutique-store .demo-collection header p { max-width: 550px; margin: 0; }
  .demo-store.boutique-store .boutique-editorial { grid-template-columns: 1fr; }
  .demo-store.boutique-store .editorial-form { min-height: min(78vw, 600px); }
  .demo-store.boutique-store.product-view .store-product-detail { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .demo-store.boutique-store .boutique-hero {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .demo-store.boutique-store .boutique-hero-visual {
    position: relative;
    order: 0;
    min-height: clamp(300px, 88vw, 470px);
    background-position: 66% 42%;
  }
  .demo-store.boutique-store .boutique-hero-visual::before { background: linear-gradient(0deg, #21181754, transparent 32%); }
  .demo-store.boutique-store .boutique-hero-copy {
    order: 1;
    width: 100%;
    min-height: 0;
    padding: 39px 22px 52px;
    background: #251b19;
  }
  .demo-store.boutique-store .boutique-hero-copy h1 {
    margin: 18px 0 16px;
    font-size: clamp(51px, 10.8vw, 70px);
    line-height: .95;
  }
  .demo-store.boutique-store .boutique-hero-copy p { font-size: 14px; }
  .demo-store.boutique-store .boutique-hero-copy a { margin-top: 20px; }
  .demo-store.boutique-store .boutique-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
  }
  .demo-store.boutique-store .boutique-categories > a:first-child { grid-column: auto; min-height: 0; }
  .demo-store.boutique-store .boutique-categories > a:last-child {
    grid-column: 1 / -1;
    aspect-ratio: 2 / 1;
    background-size: 300% auto;
    background-position: 100% 14%;
  }
  .demo-store.boutique-store .boutique-categories > a b { right: 11px; bottom: 12px; left: 12px; font-size: clamp(20px, 5vw, 29px); }
  .demo-store.boutique-store .boutique-categories > a span { font-size: 8px; }
  .demo-store.boutique-store .demo-collection { padding: 67px 16px 88px; }
  .demo-store.boutique-store .demo-collection h2 { font-size: clamp(47px, 10vw, 68px); }
  .demo-store.boutique-store .demo-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 29px 10px; }
  .demo-store.boutique-store .demo-product-grid.is-sparse { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-store.boutique-store .demo-product-grid.is-sparse.is-single { grid-template-columns: minmax(0, 1fr); }
  .demo-store.boutique-store .demo-product-grid .demo-product-info > a:not(.quick-add) { font-size: 16px; }
  .demo-store.boutique-store .demo-product-grid .demo-product-info > strong { font-size: 12px; }
  .demo-store.boutique-store .demo-product-grid .demo-product-info > .quick-add { font-size: 10px; }
  .demo-store.boutique-store .demo-catalog-page { padding-inline: 16px; }
  .demo-store.boutique-store .demo-catalog-page .demo-page-heading h1 { font-size: clamp(48px, 10vw, 70px); }
  .demo-store.boutique-store .boutique-editorial > div:first-child { padding: 62px 22px; }
  .demo-store.boutique-store .boutique-editorial h2 { font-size: clamp(43px, 10vw, 60px); }
  .demo-store.boutique-store .editorial-form { min-height: min(95vw, 470px); }
  .demo-store.boutique-store.product-view .store-product-main,
  .demo-store.boutique-store.product-view .store-product-gallery { max-width: none; }
  .demo-store.boutique-store.product-view .store-product-buybox { padding: 20px; }
  .demo-store.boutique-store.product-view .store-product-buybox h1 { font-size: clamp(34px, 9vw, 44px); }
}
@media (max-width: 380px) {
  .demo-store.boutique-store .boutique-categories > a b { font-size: 18px; }
  .demo-store.boutique-store .demo-product-grid .demo-product-info > a:not(.quick-add) { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-store.boutique-store .boutique-categories > a,
  .demo-store.boutique-store .demo-product-grid .product-visual { transition: none; }
}
