/* shelves.css — split from the storefront stylesheet, same rules and order */
/* Department shelves use real product cards in varied, responsive grid layouts. */
.nm-product-shelf {
  padding: 34px 0;
}

.nm-product-shelf .section-header {
  min-height: 58px;
}

.nm-shelf-note {
  color: #777;
  font-size: .9rem;
  line-height: 1.4;
}

.nm-product-shelf .section-title {
  color: #222;
}

.nm-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.nm-product-slot {
  min-width: 0;
}

.nm-shelf-product {
  height: calc(100% - 30px);
  margin-bottom: 30px;
}

.nm-products-five .nm-products-grid,
.nm-products-four .nm-products-grid,
.nm-products-three .nm-products-grid,
.nm-products-two .nm-products-grid,
.nm-products-rail .nm-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  overflow: hidden;
}

.nm-products-rail .nm-product-slot {
  flex: none;
}

.nm-shelf-product {
  height: auto;
  margin-bottom: 0;
  padding: 12px 12px 14px;
}

.nm-shelf-product figure {
  aspect-ratio: 1 / 1;
  min-height: 0;
  margin-bottom: 8px;
}

.nm-shelf-product h3 {
  min-height: 2.6em;
  margin-bottom: 4px;
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 1.45;
}

.nm-shelf-product .button-area {
  position: static;
  width: auto;
  margin: 10px 0 0;
  padding: 0 !important;
  border: 0;
  background: transparent;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.nm-shelf-product .button-area .col-3,
.nm-shelf-product .button-area .col-2 {
  display: none;
}

.nm-shelf-product .button-area .col-7 {
  flex: 0 0 100%;
  max-width: 100%;
}

.nm-shelf-product .btn-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 6px;
}

.nm-offer-row {
  padding: 24px 0 38px !important;
}

.nm-offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.nm-offer-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  padding: clamp(22px, 4vw, 40px);
  border-radius: 8px;
  background-position: center;
  background-size: cover;
  color: #fff;
  text-decoration: none;
  transition: background-position .3s ease;
}

.nm-offer-card:hover {
  color: #fff;
  background-position: 55% center;
}

.nm-offer-card span {
  font-size: .86rem;
}

.nm-offer-card strong {
  max-width: 320px;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 500;
  line-height: 1.25;
}

.nm-offer-card b {
  margin-top: 7px;
  font-size: .86rem;
  font-weight: 400;
}

.nm-offer-card i {
  margin-left: 5px;
  font-style: normal;
}

@media (max-width: 991.98px) {

  .nm-products-grid,
  .nm-products-five .nm-products-grid,
  .nm-products-four .nm-products-grid,
  .nm-products-three .nm-products-grid,
  .nm-products-two .nm-products-grid,
  .nm-products-rail .nm-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .nm-product-shelf {
    padding: 26px 0;
  }

  .nm-products-grid,
  .nm-products-five .nm-products-grid,
  .nm-products-four .nm-products-grid,
  .nm-products-three .nm-products-grid,
  .nm-products-two .nm-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .nm-shelf-product figure,
  .product-item.nm-shelf-product figure {
    min-height: 0;
  }

  .nm-offer-grid {
    gap: 10px;
  }

  .nm-offer-card {
    min-height: 190px;
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .nm-shelf-note {
    max-width: 235px;
    font-size: .75rem;
  }

  .nm-product-shelf .section-header {
    gap: 10px;
  }

  .nm-product-shelf .section-header .btn {
    padding: .45rem .7rem;
    font-size: .78rem;
  }

  .nm-shelf-product figure,
  .product-item.nm-shelf-product figure {
    min-height: 0;
  }

  .nm-offer-grid {
    grid-template-columns: 1fr;
  }

  .nm-offer-card {
    min-height: 175px;
  }
}

