.product-info > .store-photo-strip {
  display: flex;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 2px 2px 5px;
  margin: 0 0 14px;
}
.product-info > .store-photo-strip[hidden],
.product-info > .store-photo-strip > [hidden] {
  display: none;
}
.product-info > .store-photo-strip > button {
  flex-shrink: 0;
  min-inline-size: 44px;
}
.product-info > .store-photo-strip.product-gallery > button,
.product-info > .store-variant-photos > a {
  flex: 0 0 44px;
}
.product-info > .store-variant-photos > :is(button, a) {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 44px;
  height: 54px;
  padding: 2px;
  border: 1px solid #b7a58a;
  border-radius: 9px;
  background: transparent;
}
.product-info > .store-variant-photos > :is([aria-current="true"], [aria-pressed="true"]) {
  border: 2px solid #72522c;
  padding: 1px;
}
.product-info > .store-variant-photos img {
  width: 100%;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
}

/* Photos can still be changed by swiping the image or using its thumbnails. */
.product-image > button:is([aria-label="الصورة السابقة"], [aria-label="الصورة التالية"]) {
  display: none;
}

/* These covers and product photos already include the SAAD signature. */
#java-mix .hero:has(> img[src^="/assets/java-mix-set-"])::after,
#kitchen .hero.mixer-product:has(> img)::after,
[data-kitchen-mixer] > .product-image::after,
:is(.hero.mixer-product, .product-image):has(> img[src^="/assets/java-mix-cube-kitchen-mixer-"], > img[src^="/assets/java-mix-cube-wall-kitchen-mixer-"], > img[src^="/assets/java-mix-bath-cube-"], > img[src^="/assets/java-mix-mini-cube-"], > img[src^="/assets/java-mix-toilet-cube-"])::after {
  content: none;
}

#kitchen .cabinet-gallery {
  display: flex;
  direction: rtl;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  padding-bottom: 8px;
}

#kitchen .cabinet-gallery > .mixer-product {
  flex: 0 0 min(84%, 390px);
  scroll-snap-align: start;
}

#kitchen .kitchen-marquee {
  direction: ltr;
  scroll-snap-type: none;
  overflow-anchor: none;
  scroll-behavior: auto;
}
#kitchen .kitchen-marquee > a { direction: rtl; }

#kitchen .kitchen-explore {
  display: block;
  width: fit-content;
  place-self: center;
  margin: 0 auto;
  padding: 8px 28px;
  color: #e4cba3;
  border: 1px solid #ad9470;
  border-radius: 999px;
  background: transparent;
  text-decoration: none;
  font: 400 19px/1.2 "Baskerville", "Palatino Linotype", Georgia, serif;
  text-transform: none;
  letter-spacing: 0.025em;
}
#kitchen.kitchen-grid .kitchen-explore { display: none; }
#kitchen.kitchen-grid .cabinet-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: visible;
}
.app:has(#kitchen:not([hidden], .kitchen-grid)) {
  box-sizing: border-box;
  height: 100dvh;
  margin-block: 0;
  min-height: 0;
  overflow: hidden;
  padding-bottom: 0;
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
}
.app:has(#kitchen:not([hidden], .kitchen-grid)) > main { min-height: 0; overflow: hidden; }
.app:has(#kitchen:not([hidden], .kitchen-grid)) > .nav { position: static; margin: 0; }
#kitchen:not([hidden], .kitchen-grid) {
  box-sizing: border-box;
  display: grid;
  height: 100%;
  grid-template-rows: auto auto minmax(0,max-content) minmax(max-content,1fr);
  gap: 8px;
  padding-block: 8px;
}
#kitchen:not(.kitchen-grid) :is(.cabinet-heading,.catalog-intro) { margin-block: 0; }
#kitchen:not(.kitchen-grid) .cabinet-gallery { min-height: 0; overflow-y: hidden; scrollbar-width: none; padding-bottom: 0; }
#kitchen:not(.kitchen-grid) .mixer-product {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  height: 100%;
}
#kitchen:not(.kitchen-grid) .mixer-product img {
  flex: 0 1 auto;
  margin-block: 0;
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
  background: transparent;
}
#kitchen:not(.kitchen-grid) .mixer-product-copy { flex: none; }
html:has(#kitchen:not([hidden], .kitchen-grid)),
body:has(#kitchen:not([hidden], .kitchen-grid)) { overflow: hidden; overscroll-behavior-y: none; }
@media (max-height: 700px) {
  #kitchen:not([hidden], .kitchen-grid) { grid-template-rows: auto minmax(0,max-content) minmax(max-content,1fr); gap: 4px; padding-block-end: 4px; }
  #kitchen:not(.kitchen-grid) .catalog-intro { display: none; }
}

/* Toilet photos already carry their own signature. */
[data-toilet-chair] > .product-image::after,
:is([data-toilet-rail], [data-toilet-cards]) > .mixer-product::after { content: none; }

#toilets [data-toilet-rail] {
  display: flex;
  gap: 12px;
  margin-block-start: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  padding-block-end: 8px;
}
#toilets [data-toilet-rail] > .mixer-product {
  flex: 0 0 min(84%, 390px);
  scroll-snap-align: start;
}
#toilets [data-toilet-rail].kitchen-marquee {
  direction: ltr;
  scroll-snap-type: none;
}
#toilets [data-toilet-rail].kitchen-marquee > a { direction: rtl; }
[data-toilet-rail] img, [data-toilet-cards] img { aspect-ratio: 4 / 5; object-fit: contain; }

/* The granite photos already include the SAAD artwork. */
[data-granite-basin] > .product-image::after,
:is(#granite, #granite-classic) .hero.mixer-product::after {
  content: none;
}
