/* cards.css — split from the storefront stylesheet, same rules and order */
/* Product cards use an intentional image lift and an accessible quick action reveal. */
.product-item {
  overflow: hidden;
  padding: 16px 16px 72px;
  border: 1px solid #edf0e9;
  border-radius: 8px;
  box-shadow: none;
  transition: border-color .2s ease;
}

.product-item:hover,
.product-item:focus-within {
  border-color: #c5d4bc;
}

.product-item figure {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: auto;
  margin: 0 0 12px;
  overflow: hidden;
  border-radius: 6px;
  background: #f8f9f5;
}

.product-item figure a {
  position: absolute;
  inset: 4px;
  display: block;
  min-width: 0;
  min-height: 0;
}

.product-item figure img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.product-item .button-area {
  display: block;
  bottom: 0;
  padding: 12px 14px 14px !important;
  border-top: 1px solid #eff1ed;
  background: #fff;
  box-shadow: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}

.product-item:hover .button-area,
.product-item:focus-within .button-area {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.product-item .button-area .btn-cart {
  width: 100%;
  white-space: nowrap;
}

.product-item .button-area .btn-outline-dark {
  border-color: #e3e8df;
}

.product-item .button-area .btn-outline-dark:hover {
  color: #6BB252;
  background: #edf3e8;
}

@media (hover: none) {
  .product-item .button-area {
    position: static;
    margin: 12px -16px -72px;
    width: calc(100% + 32px);
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

.nm-shelf-product .button-area {
  margin: 10px 0 0;
  width: auto;
}

.product-item.nm-shelf-product {
  padding: 12px 12px 14px;
}

.product-item.nm-shelf-product figure {
  aspect-ratio: 1 / 1;
  min-height: 0;
}

.nm-needs {
  padding: 8px 0 10px;
}

.nm-needs-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 148px 148px;
  gap: 12px;
}

.nm-need {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 148px;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
}

.nm-need img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nm-need span {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 16px;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0), rgba(17, 17, 17, .72));
}

.nm-need small {
  font-size: .75rem;
  letter-spacing: .02em;
}

.nm-need strong {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
}

.nm-need em {
  font-style: normal;
  font-size: .86rem;
  opacity: .9;
}

.nm-need-lead {
  grid-row: 1 / span 2;
  min-height: 308px;
}

.nm-need-lead strong {
  font-size: 1.25rem;
  font-weight: 500;
}

.nm-need:hover {
  color: #fff;
}

.nm-need:hover img {
  transform: none;
}

.nm-drops {
  padding: 8px 0 18px;
  line-height: 1.4;
}

.nm-drops-panel {
  padding: 20px 22px 16px;
  border: 1px solid #e7ebe3;
  border-radius: 8px;
  background: #fff;
}

.nm-drops-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.nm-drops-head .section-title {
  margin-bottom: 2px;
}

.nm-drops-lead {
  max-width: 460px;
  margin: 0;
  color: #666;
  font-size: .92rem;
  line-height: 1.45;
}

.nm-drops-head .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.nm-drop-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nm-drop-list li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 8px;
  border-radius: 8px;
  background: #f6f8f3;
}

.nm-drop-list img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.nm-drop-list li > div:first-of-type {
  min-width: 0;
}

.nm-drop-list strong {
  display: block;
  overflow: hidden;
  color: #222;
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nm-drop-list span {
  display: block;
  color: #777;
  font-size: .75rem;
  line-height: 1.3;
}

.nm-drop-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
  text-align: right;
}

.nm-drop-price s {
  color: #999;
  font-size: .72rem;
  text-decoration: line-through;
}

.nm-drop-price b {
  color: #6BB252;
  font-size: .95rem;
  font-weight: 600;
}

.nm-basket {
  padding: 28px 0 36px;
  overflow: hidden;
  background: #fff;
  color: #747474;
  line-height: 1.5;
}

.nm-basket-lead {
  margin: 4px 0 0;
  color: #747474;
}

.nm-basket .swiper-buttons {
  display: flex;
  gap: 8px;
}

.nm-basket-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.nm-basket-track::-webkit-scrollbar {
  display: none;
}

.nm-basket-card {
  display: flex;
  flex: 0 0 300px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  background: #fff;
  scroll-snap-align: start;
}

.nm-basket-visual {
  background: #f7f7f7;
}

.nm-basket-feature-image {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.nm-basket-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  height: 150px;
}

.nm-basket-photos img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  background: #fff;
}

.nm-basket-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
}

.nm-basket-badge {
  color: #6BB252;
  font-size: 0.82rem;
}

.nm-basket-card h3 {
  margin: 0;
  color: #222;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.35;
}

.nm-basket-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #747474;
  font-size: 0.86rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.nm-strip {
  position: relative;
  min-width: 0;
  max-width: 100%;
}

.nm-strip-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.nm-strip-track::-webkit-scrollbar {
  display: none;
}

.nm-strip-card {
  flex: 0 0 76px;
  scroll-snap-align: start;
}

.nm-strip-card img,
.nm-strip-empty {
  display: block;
  width: 76px;
  height: 64px;
  object-fit: contain;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  background: #f7f7f7;
}

.nm-strip-card span {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 4px;
  color: #747474;
  font-size: 0.72rem;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.nm-strip-arrow {
  position: absolute;
  top: 18px;
  z-index: 1;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  background: #fff;
  color: #222;
  font-size: 0.8rem;
  line-height: 24px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.nm-strip-arrow:hover {
  background: #6BB252;
  color: #fff;
}

.nm-strip-arrow.is-prev {
  left: 0;
}

.nm-strip-arrow.is-next {
  right: 0;
}

.nm-basket-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.nm-basket-price strong {
  color: #6BB252;
  font-size: 1.1rem;
  font-weight: 500;
}

.nm-basket-price del {
  color: #999;
  font-size: 0.85rem;
}

.nm-basket-card .btn {
  align-self: flex-start;
  margin-top: 4px;
}

.nm-basket-empty {
  margin: 0;
  color: #747474;
}

@media (max-width: 991.98px) {
  .nm-needs-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }

  .nm-need-lead {
    grid-row: auto;
    grid-column: 1 / -1;
    min-height: 180px;
  }

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

@media (max-width: 767.98px) {
  .nm-drops-panel {
    padding: 14px 12px 12px;
  }

  .nm-drops-head {
    margin-bottom: 10px;
  }

  .nm-drops-head .section-title {
    font-size: 1.15rem;
  }

  .nm-drops-lead {
    display: none;
  }

  .nm-drops-head .btn {
    padding: 6px 10px;
    font-size: .78rem;
  }

  .nm-drop-list {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .nm-drop-list li {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 2px 8px;
    padding: 6px;
  }

  .nm-drop-list img {
    grid-row: 1 / span 2;
    width: 34px;
    height: 34px;
  }

  .nm-drop-list strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: .78rem;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .nm-drop-price {
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 6px;
  }

  .nm-basket {
    padding: 18px 0 28px;
  }

  .nm-basket-card {
    flex-basis: 78vw;
  }

  .nm-basket-feature-image,
  .nm-basket-photos,
  .nm-basket-photos img {
    height: 140px;
  }
}

.section-title,
.post-title,
.post-title a,
h5,
.widget-title {
  font-weight: 400;
  letter-spacing: 0;
}

.post-title,
.post-title a {
  font-size: 1.05rem;
  line-height: 1.4;
}

h5,
.widget-title {
  font-size: 1rem;
  line-height: 1.4;
}

.section-title {
  font-size: 1.5rem;
  line-height: 1.3;
}

.product-item h3 {
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 1.45;
}

.product-item .fw-semibold,
.nm-cat-meta,
.nm-drop-price b,
.nm-basket-price strong {
  color: #212121;
  font-variant-numeric: tabular-nums;
}

.product-item .fw-semibold {
  font-weight: 600 !important;
}
