.cookware-section {
  --cookware-ink: #32252a;
  --cookware-accent: #5b3946;
  --cookware-paper: #f8f2eb;
  color: var(--cookware-ink);
  margin: clamp(30px, 4vw, 64px) auto;
  max-width: 1530px;
  padding-inline: clamp(16px, 4vw, 62px);
  position: relative;
}
.cookware-section--hero { margin-top: 18px; }
.cookware-section__heading {
  margin: 0 0 20px;
  border-bottom: 1px solid #d7c8bc;
  padding: 0 0 12px;
}
.cookware-section__heading h2,
.cookware-card__text :is(h1,h2) {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.07;
}
.cookware-section__heading h2 { color: inherit; font-size: clamp(27px, 3vw, 43px); margin: 0; }
.cookware-section__heading p { margin: 6px 0 0; }
.cookware-track { display: grid; gap: clamp(12px, 2vw, 30px); }
[data-cookware-track] {
  grid-auto-columns: calc((100% - 3 * clamp(12px, 2vw, 30px)) / 4);
  grid-auto-flow: column;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
[data-cookware-track]::-webkit-scrollbar { display: none; }
.cookware-card { min-width: 0; position: relative; scroll-snap-align: start; background: var(--cookware-paper); }
.cookware-card__media { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: #efe2d5; }
.cookware-card__media picture,
.cookware-card__media img { display: block; width: 100%; height: 100%; }
.cookware-card__media img { object-fit: cover; object-position: var(--cookware-position, 50% 50%); }
.cookware-card__text { padding: clamp(12px, 2vw, 30px); }
.cookware-card__text :is(h1,h2,h3,p) { color: inherit; margin: 0 0 8px; }
.cookware-card__text p:last-child { margin-bottom: 0; }
.cookware-card__text h3 { font-size: clamp(15px, 1.5vw, 22px); font-weight: 600; }
.cookware-card__text h3 a { color: inherit; }
.cookware-card__button {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 12px;
  padding: 10px 20px;
  min-height: 44px;
  border-radius: 5px;
  background: var(--cookware-accent);
  color: #fff;
  font-weight: 650;
}
.cookware-card__button:hover { background: #442934; color: #fff; }
.cookware-section :is(a,button,[tabindex]):focus-visible { outline: 3px solid #936443; outline-offset: -3px; }
.cookware-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 14px;
}
.cookware-controls[hidden] { display: none; }
.cookware-controls button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 1px solid #cbb9a9;
  border-radius: 7px;
  background: white;
  color: var(--cookware-ink);
  font-size: 21px;
  line-height: 1;
}
.cookware-controls [aria-disabled=true] { opacity: .48; }
.cookware-controls__progress { display: flex; margin-inline-end: auto; }
.cookware-controls__progress button { width: 27px; height: 30px; border: 0; background: transparent; }
.cookware-controls__progress button::before {
  content: '';
  width: 11px;
  height: 4px;
  border-radius: 6px;
  background: #c8b6ad;
}
.cookware-controls__progress [aria-current=true]::before { width: 18px; background: var(--cookware-accent); }
.cookware-section--hero [data-cookware-track] { grid-auto-columns: 100%; }
.cookware-section--triptych .cookware-track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
:is(.cookware-section--colors,.cookware-section--categories) [data-cookware-track] {
  grid-auto-columns: calc((100% - 5 * clamp(12px, 2vw, 30px)) / 6.18);
}
:is(.cookware-section--colors,.cookware-section--categories) .cookware-card__media { aspect-ratio: 1; }
:is(.cookware-section--colors,.cookware-section--categories) .cookware-card__text { padding: 10px; }
:is(.cookware-section--colors,.cookware-section--categories) .cookware-card__text h3 { font-size: 15px; margin: 0; }
:is(.cookware-section--hero,.cookware-section--feature) .cookware-card__media { aspect-ratio: 3 / 1; }
:is(.cookware-section--hero,.cookware-section--feature) .cookware-card__text {
  margin: -56px clamp(16px, 4vw, 58px) 0;
  padding: 22px clamp(20px, 3vw, 46px);
  position: relative;
  background: var(--cookware-paper);
  max-width: 670px;
  pointer-events: none;
}
:is(.cookware-section--hero,.cookware-section--feature) .cookware-card__button { pointer-events: auto; }
:is(.cookware-section--hero,.cookware-section--feature) .cookware-card__text :is(h1,h2) {
  font-size: clamp(34px, 4.3vw, 66px);
}
.cookware-section--feature .cookware-card { background: #4c303b; }
.cookware-section--feature .cookware-card__text { background: #4c303b; color: white; margin-inline-start: auto; }
@media (max-width: 767px) {
  .cookware-section { margin-block: 30px; }
  .cookware-section--hero { margin-block-start: 12px; }
  .cookware-controls { justify-content: center; gap: 0; padding-top: 6px; }
  .cookware-controls > [data-cookware-dir] { display: none; }
  .cookware-controls__progress { margin: 0; }
  [data-cookware-track],
  :is(.cookware-section--colors,.cookware-section--categories) [data-cookware-track] { grid-auto-columns: 45%; }
  .cookware-section--triptych .cookware-track { grid-template-columns: 1fr; }
  :is(.cookware-section--hero,.cookware-section--feature) .cookware-card__media { aspect-ratio: 4 / 5; }
  :is(.cookware-section--hero,.cookware-section--feature) .cookware-card__text { margin: 0; max-width: none; }
}

@media (max-width: 767px) {
  /* Lift the first-screen shopping controls above the fixed mobile navigation. */
  #cookware-m01 .cookware-card__text {
    margin-block-start: -64px;
    padding-block: 18px 12px;
  }
}

.cookware-section--triptych .cookware-card__media {
  aspect-ratio: 4 / 5;
}

/* Explore STAUB shows part of the next portrait card at every width. */
#cookware-m06 [data-cookware-track] {
  --editorial-gap: clamp(18px, 2vw, 30px);
  gap: var(--editorial-gap);
  grid-auto-columns: calc((100% - 3 * var(--editorial-gap)) / 3.5);
}

#cookware-m06 .cookware-card__media {
  aspect-ratio: 4 / 5;
}

#cookware-m06 .cookware-card__text {
  border-top: 1px solid #e2d2c5;
  padding: clamp(14px, 1.6vw, 23px);
}

#cookware-m06 .cookware-card__text h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
}

@media (max-width: 767px) {
  #cookware-m06 [data-cookware-track] {
    --editorial-gap: 16px;
    grid-auto-columns: calc((100% - var(--editorial-gap)) / 1.2);
  }
}
