/* Product Shelf (LS) */
.ls-product-shelf {
  --ls-ps-wood: #c99b63;
  --ls-ps-wood-dark: color-mix(in srgb, var(--ls-ps-wood), #5a351d 42%);
  --ls-ps-wood-deep: color-mix(in srgb, var(--ls-ps-wood), #2f1a0d 56%);
  --ls-ps-wood-light: color-mix(in srgb, var(--ls-ps-wood), #fff7e7 52%);
  --ls-ps-wood-rail: color-mix(in srgb, var(--ls-ps-wood), #f8ddb0 28%);
  --ls-ps-shelf-bg: url("./shelf-cabinet-row-bg.jpg");
  --ls-ps-ink: #17231d;
  --ls-ps-muted: rgba(23, 35, 29, 0.68);
  --ls-ps-label-bg: rgba(255, 250, 240, 0.9);
  color: var(--ls-ps-ink);
  width: 100%;
}

.ls-ps__inner {
  margin: 0 auto;
}

.ls-ps__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--ls-ps-ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.ls-ps__header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 26px;
}

.ls-ps__eyebrow {
  margin: 0 0 8px;
  color: var(--ls-ps-muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ls-ps__term-logo {
  display: flex;
  justify-content: center;
  margin: 0 0 12px;
}

.ls-ps__term-logo-img {
  width: auto;
  max-width: 220px;
  max-height: 72px;
  object-fit: contain;
}

.ls-ps__term-mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(23, 35, 29, 0.12);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 12px 26px rgba(61, 39, 18, 0.12);
  font-size: 30px;
  font-weight: 800;
}

.ls-ps__heading {
  margin: 0;
  color: var(--ls-ps-ink);
  font-size: clamp(34px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: 0;
}

.ls-ps__intro {
  margin: 14px auto 0;
  color: var(--ls-ps-muted);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.45;
}

.ls-ps__intro p {
  margin: 0;
}

.ls-ps__cabinet {
  position: relative;
  overflow: hidden;
  border: clamp(4px, 0.8vw, 10px) solid rgba(118, 73, 32, 0.34);
  border-radius: 10px;
  background: #b98249;
  box-shadow:
    0 24px 58px rgba(62, 39, 17, 0.22),
    inset 0 0 0 1px rgba(255, 246, 225, 0.24);
}

.ls-ps__cabinet::before,
.ls-ps__cabinet::after {
  content: "";
  display: none;
}

.ls-ps__shelf-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--ls-ps-columns), minmax(0, 1fr));
  align-items: end;
  gap: clamp(22px, 4vw, 66px);
  min-height: clamp(260px, 31vw, 390px);
  padding: clamp(38px, 5vw, 76px) clamp(34px, 5.4vw, 82px) clamp(36px, 4.6vw, 58px);
  background-image:
    linear-gradient(180deg, rgba(255, 252, 243, 0.03), rgba(65, 36, 14, 0.04)),
    var(--ls-ps-shelf-bg);
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  isolation: isolate;
}

.ls-ps__shelf-row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(72% 36% at 50% 6%, rgba(255, 247, 226, 0.22), transparent 72%),
    linear-gradient(90deg, rgba(35, 20, 8, 0.22), transparent 17%, transparent 83%, rgba(35, 20, 8, 0.24));
}

.ls-ps__shelf-row::after {
  content: "";
  display: none;
}

.ls-ps__shelf-row + .ls-ps__shelf-row {
  box-shadow: none;
}

.ls-ps__product {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  align-self: end;
  min-width: 0;
  color: var(--ls-ps-ink);
  text-align: center;
  text-decoration: none;
  transform: translateY(0);
  transition: transform 180ms ease, filter 180ms ease;
}

.ls-ps__product:hover,
.ls-ps__product:focus-visible {
  transform: translateY(-10px);
  filter: brightness(1.03);
}

.ls-ps__product-visual {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: center;
  width: 100%;
  min-height: clamp(150px, 18vw, 245px);
}

.ls-ps__product-visual::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: clamp(4px, 0.8vw, 10px);
  width: min(78%, 168px);
  height: clamp(10px, 1.2vw, 18px);
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(46, 27, 11, 0.24), transparent 74%);
  transform: translateX(-50%);
}

.ls-ps__product-img {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  max-width: min(100%, 230px);
  max-height: clamp(150px, 19vw, 250px);
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 20px 16px rgba(48, 28, 12, 0.34));
}

.ls-ps__product-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 3px;
  width: 100%;
  max-width: 210px;
  min-height: 0;
  margin-top: 10px;
  padding: 9px 11px 10px;
  border: 1px solid rgba(71, 45, 21, 0.16);
  border-radius: 8px;
  background: var(--ls-ps-label-bg);
  box-shadow:
    0 10px 22px rgba(49, 29, 12, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  font-family: inherit;
  font-size: 13px;
  font-style: normal;
  line-height: 1.2;
  text-shadow: none;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.ls-ps__product:hover .ls-ps__product-copy,
.ls-ps__product:focus-visible .ls-ps__product-copy {
  background: rgba(255, 252, 246, 0.96);
  box-shadow:
    0 12px 26px rgba(49, 29, 12, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.ls-ps__product-store {
  color: #546157;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ls-ps__product-name {
  color: #102019;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.ls-ps__product-meta,
.ls-ps__product-price {
  color: #29372f;
  font-size: 12px;
  font-weight: 700;
}

.ls-ps__product-price,
.ls-ps__product-price .amount,
.ls-ps__product-price bdi {
  color: #0e2419;
}

.ls-ps__empty {
  position: relative;
  z-index: 2;
  padding: 70px 24px;
  text-align: center;
  font-weight: 700;
}

.ls-ps__badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 22px clamp(18px, 4vw, 42px);
  border: 1px solid rgba(23, 35, 29, 0.08);
  border-top: 0;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 46px rgba(65, 42, 18, 0.12);
}

.ls-ps__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
}

.ls-ps__badge-icon {
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--ls-ps-ink);
}

.ls-ps__badge-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ls-ps__badge-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.ls-ps__badge-copy strong {
  color: var(--ls-ps-ink);
  font-size: 13px;
  line-height: 1.1;
  text-transform: uppercase;
}

.ls-ps__badge-copy span {
  color: var(--ls-ps-muted);
  font-size: 13px;
  line-height: 1.2;
}

@media (max-width: 1024px) {
  .ls-ps__shelf-row {
    grid-template-columns: repeat(min(var(--ls-ps-columns), 3), minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .ls-ps__shelf-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 18px;
    padding-left: 24px;
    padding-right: 24px;
    min-height: 220px;
  }

  .ls-ps__product-img {
    max-height: 150px;
  }

  .ls-ps__badges {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ls-ps__badge {
    justify-content: flex-start;
  }
}

@media (max-width: 460px) {
  .ls-ps__shelf-row {
    grid-template-columns: 1fr;
  }
}
