/* Photography and a translucent glass label form two quiet planes.
   Bottle geometry stays untouched; no scroll handlers, tilt or continuous effects. */
.mainstream-theme :is(.ms-catalog, .ms-home-v2 .ms-home-product-grid) {
  --vitrine-paper: #faf9f5;
  --vitrine-ink: #2d3830;
  --vitrine-green: #405247;
  --vitrine-glass-highlight: inset 0 1px 0 #ffffffb3, inset 0 -1px 0 #40524708;
}
.mainstream-theme .ms-catalog .ms-catalog-body {
  padding-top: 46px;
  background: radial-gradient(ellipse at 15% 12%, #dce3d852, transparent 52%);
}
.mainstream-theme .ms-catalog .js-product-table.row-grid {
  align-items: start;
  gap: 58px 32px;
}
.mainstream-theme .ms-home-v2 .ms-home-product-grid { align-items: flex-start; row-gap: 26px; }
.mainstream-theme :is(.ms-catalog, .ms-home-v2 .ms-home-product-grid) .item-product {
  position: relative;
  min-width: 0;
}
.mainstream-theme :is(.ms-catalog, .ms-home-v2 .ms-home-product-grid) .item {
  position: relative;
  isolation: isolate;
  height: auto;
  overflow: visible;
}
/* Depth comes from a soft photograph shadow and the raised label, without a backplate. */
.mainstream-theme :is(.ms-catalog, .ms-home-v2 .ms-home-product-grid) .item::before {
  content: none;
}
/* Pagination adds a hidden marker before the last page: count products only. */
.mainstream-theme .ms-catalog .js-product-table > .item-product:nth-child(3n + 2 of .item-product) { padding-top: 46px; }
.mainstream-theme :is(.ms-catalog, .ms-home-v2 .ms-home-product-grid) .item-image,
.mainstream-theme .ms-home-v2 .ms-home-product-grid .item-product:nth-child(even) .item-image {
  position: relative;
  width: calc(100% - 20px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px 74px 4px 4px;
  background: #e7e9df;
  box-shadow: 0 14px 30px -18px #24242247;
}
.mainstream-theme :is(.ms-catalog, .ms-home-v2 .ms-home-product-grid) .js-item-image-padding {
  height: 100%;
  padding-bottom: 0 !important;
}
.mainstream-theme :is(.ms-catalog, .ms-home-v2 .ms-home-product-grid) .item-image img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  transition: none;
}
.mainstream-theme :is(.ms-catalog, .ms-home-v2 .ms-home-product-grid) .item-image:not(.item-image-slider):hover img {
  transform: translateX(-50%) !important;
}
/* An opaque fallback keeps the label readable when backdrop filtering is unavailable. */
.mainstream-theme :is(.ms-catalog, .ms-home-v2 .ms-home-product-grid) .item-description {
  position: relative;
  z-index: 3;
  width: calc(100% - 24px);
  margin: -25px 0 0 24px;
  padding: 22px 22px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--vitrine-paper);
  box-shadow: var(--vitrine-glass-highlight), 0 3px 6px -4px #26392f14, 0 18px 30px -23px #26392f66;
  text-align: left !important;
}
.mainstream-theme :is(.ms-catalog, .ms-home-v2 .ms-home-product-grid) .item-link { display: block; color: inherit; text-decoration: none; }
.mainstream-theme :is(.ms-catalog, .ms-home-v2 .ms-home-product-grid) .ms-item-brand {
  min-height: 0;
  margin: 0 0 7px;
  font: 400 10px/1.5 'DM Sans', sans-serif;
  letter-spacing: .09em;
  color: #36493c;
  text-transform: uppercase;
}
.mainstream-theme :is(.ms-catalog, .ms-home-v2 .ms-home-product-grid) .item-name {
  margin-bottom: 9px !important;
  font: 500 clamp(20px, 1.7vw, 25px)/1.18 'DM Sans', sans-serif;
  font-size: clamp(20px, 1.7vw, 25px) !important;
  letter-spacing: -.035em;
  color: var(--vitrine-ink);
  opacity: 1 !important;
  overflow: visible;
  overflow-wrap: anywhere;
  -webkit-line-clamp: unset;
}
.mainstream-theme .ms-item-reference { display: block; margin: 0 0 16px; }
.mainstream-theme .ms-item-reference-label {
  display: block;
  margin-bottom: 4px;
  color: #596b55;
  font: 400 10px/1.5 'DM Sans', sans-serif;
  letter-spacing: .015em;
}
.mainstream-theme .ms-item-reference-name {
  display: block;
  color: #405247;
  font: 400 13px/1.5 'DM Sans', sans-serif;
  overflow-wrap: anywhere;
}
.mainstream-theme :is(.ms-catalog, .ms-home-v2 .ms-home-product-grid) .ms-item-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 7px;
  padding-top: 12px;
  margin: 0 0 9px;
  border-top: 1px solid #dce2d6;
  color: #64715f;
  font: 400 10px/1.5 'DM Sans', sans-serif;
}
.mainstream-theme :is(.ms-catalog, .ms-home-v2 .ms-home-product-grid) .ms-item-formats > span + span::before { content: '·'; margin-right: 7px; color: #8c9984; }
.mainstream-theme :is(.ms-catalog, .ms-home-v2 .ms-home-product-grid) .item-price { font: 500 16px/1.5 'DM Sans', sans-serif; color: var(--vitrine-ink); }
.mainstream-theme :is(.ms-catalog, .ms-home-v2 .ms-home-product-grid) .ms-item-format-overlay { top: 14px; bottom: auto; left: 12px; right: auto; width: auto; max-width: calc(100% - 24px); transform: none; z-index: 2; }
.mainstream-theme :is(.ms-catalog, .ms-home-v2 .ms-home-product-grid) .ms-item-format-overlay {
  border-color: transparent;
  border-radius: 7px;
  background: var(--vitrine-paper);
  box-shadow: var(--vitrine-glass-highlight), 0 4px 12px #26392f0d;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .mainstream-theme :is(.ms-catalog, .ms-home-v2 .ms-home-product-grid) .item-description {
    background: rgb(250 249 245 / 72%);
    -webkit-backdrop-filter: blur(14px) saturate(112%);
    backdrop-filter: blur(14px) saturate(112%);
  }
  .mainstream-theme :is(.ms-catalog, .ms-home-v2 .ms-home-product-grid) .ms-item-format-overlay {
    background: rgb(250 249 245 / 68%);
    -webkit-backdrop-filter: blur(10px) saturate(112%);
    backdrop-filter: blur(10px) saturate(112%);
  }
}
.mainstream-theme .ms-home-v2 .ms-catalog-tile { align-self: stretch; }
.mainstream-theme .ms-home-v2 .ms-catalog-tile > a { border-radius: 4px 70px 4px 4px; box-shadow: 8px 16px 26px -18px #253b3299; }
@media (hover: hover) and (pointer: fine) {
  .mainstream-theme :is(.ms-catalog, .ms-home-v2 .ms-home-product-grid) .item-description { transition: box-shadow 180ms ease; }
  .mainstream-theme :is(.ms-catalog, .ms-home-v2 .ms-home-product-grid) .item:hover .item-description { box-shadow: var(--vitrine-glass-highlight), 0 3px 6px -4px #26392f14, 0 22px 34px -23px #26392f80; }
}
@media (min-width: 768px) {
  .mainstream-theme .ms-home-v2 .ms-home-product-grid > :nth-child(even) { margin-top: 30px; }
  .mainstream-theme .ms-home-v2 .ms-home-product-grid .item-description { width: calc(100% - 14px); margin-left: 14px; padding: 18px 14px; }
  .mainstream-theme .ms-home-v2 .ms-home-product-grid .item-name { font-size: clamp(18px, 1.5vw, 23px) !important; }
}
@media (max-width: 1000px) and (min-width: 768px) {
  .mainstream-theme .ms-catalog .js-product-table.row-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
  .mainstream-theme .ms-catalog .js-product-table > .item-product:nth-child(3n + 2 of .item-product) { padding-top: 0; }
  .mainstream-theme .ms-catalog .js-product-table > .item-product:nth-child(even of .item-product) { padding-top: 34px; }
  .mainstream-theme .ms-home-v2 .ms-home-product-grid > .col-grid { flex: 0 0 50%; max-width: 50%; }
}
@media (max-width: 767px) {
  .mainstream-theme .ms-catalog .ms-catalog-body { padding-top: 30px; }
  .mainstream-theme .ms-catalog .js-product-table.row-grid { gap: 30px 14px; }
  .mainstream-theme .ms-catalog .js-product-table > .item-product:nth-child(3n + 2 of .item-product) { padding-top: 0; }
  .mainstream-theme .ms-catalog .js-product-table > .item-product:nth-child(even of .item-product) { padding-top: 24px; }
  .mainstream-theme .ms-home-v2 .ms-home-product-grid { row-gap: 10px; }
  .mainstream-theme .ms-home-v2 .ms-home-product-grid > :nth-child(even) { margin-top: 24px; }
  .mainstream-theme :is(.ms-catalog, .ms-home-v2 .ms-home-product-grid) .item-image,
  .mainstream-theme .ms-home-v2 .ms-home-product-grid .item-product:nth-child(even) .item-image { width: calc(100% - 7px); border-radius: 3px 38px 3px 3px; box-shadow: 0 10px 22px -14px #24242240; }
  .mainstream-theme :is(.ms-catalog, .ms-home-v2 .ms-home-product-grid) .item-description { width: calc(100% - 7px); margin: -13px 0 0 7px; padding: 13px 10px 14px; }
  .mainstream-theme :is(.ms-catalog, .ms-home-v2 .ms-home-product-grid) .ms-item-brand { font-size: 8px; line-height: 1.5; letter-spacing: .035em; margin-bottom: 6px; }
  .mainstream-theme :is(.ms-catalog, .ms-home-v2 .ms-home-product-grid) .item-name { font-size: 18px !important; line-height: 1.22; margin-bottom: 8px !important; }
  .mainstream-theme .ms-item-reference { margin-bottom: 12px; }
  .mainstream-theme .ms-item-reference-label { font-size: 8px; margin-bottom: 3px; }
  .mainstream-theme .ms-item-reference-name { font-size: 10px; line-height: 1.5; }
  .mainstream-theme :is(.ms-catalog, .ms-home-v2 .ms-home-product-grid) .ms-item-formats { padding-top: 9px; font-size: 9px; }
  .mainstream-theme :is(.ms-catalog, .ms-home-v2 .ms-home-product-grid) .item-price { font-size: 14px; }
  .mainstream-theme :is(.ms-catalog, .ms-home-v2 .ms-home-product-grid) .ms-item-format-overlay { top: 10px; left: 7px; gap: 5px; padding: 6px 7px; }
  .mainstream-theme .ms-home-v2 .ms-catalog-tile > a { border-radius: 3px 38px 3px 3px; }
  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .mainstream-theme :is(.ms-catalog, .ms-home-v2 .ms-home-product-grid) :is(.item-description, .ms-item-format-overlay) {
      background: rgb(250 249 245 / 80%);
      -webkit-backdrop-filter: blur(10px) saturate(110%);
      backdrop-filter: blur(10px) saturate(110%);
    }
  }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more), (forced-colors: active) {
  .mainstream-theme :is(.ms-catalog, .ms-home-v2 .ms-home-product-grid) :is(.item-description, .ms-item-format-overlay) {
    background: var(--vitrine-paper);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mainstream-theme :is(.ms-catalog, .ms-home-v2 .ms-home-product-grid) .item-description { transition: none; }
}
