.products-grid,
.products-grid--home,
.products-grid:not(.products-grid--home) {
  display: grid;
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 22px);
  align-items: stretch;
}

.product-card {
  display: flex;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--card-radius);
  box-shadow: 0 8px 28px rgba(20, 52, 27, .07);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.product-card:hover {
  border-color: rgba(23, 111, 49, .22);
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(20, 65, 31, .14);
}

.product-card__image,
.products-grid--home .product-card__image {
  position: relative;
  display: grid;
  width: 100%;
  height: auto;
  flex: 0 0 auto;
  aspect-ratio: 4 / 5;
  place-items: center;
  padding: 8px;
  overflow: hidden;
  background: linear-gradient(145deg, #f8f8f4, #f1f3ec);
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 14px;
  transition: transform .45s ease;
}

.product-card:hover .product-card__image img {
  transform: scale(1.03);
}

.product-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  color: var(--white);
  background: rgba(11, 102, 35, .92);
  border-radius: 20px;
  backdrop-filter: blur(8px);
  font-size: 9px;
  font-weight: 700;
}

.product-card__body,
.products-grid--home .product-card__body {
  display: flex;
  min-height: 0;
  padding: clamp(13px, 1.5vw, 16px);
  flex: 1 1 auto;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
}

.product-category {
  margin: 0 0 6px;
  color: var(--green-600);
  font-size: clamp(.62rem, 1.1vw, .72rem);
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.product-card h3,
.products-grid--home .product-card h3 {
  display: -webkit-box;
  width: 100%;
  min-height: calc(1.35em * 2);
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--green-900);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(.88rem, 1.25vw, 1rem);
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card h3 a:hover {
  color: var(--green-600);
}

.product-price,
.products-grid--home .product-price {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  font-weight: 800;
  line-height: 1.2;
}

.product-unit {
  display: inline-block;
  width: fit-content;
  margin: 0 auto 14px;
  padding: 4px 12px;
  color: #42503f;
  background: var(--green-100);
  border-radius: 6px;
  font-size: clamp(.72rem, 1.1vw, .8rem);
  line-height: 1.4;
}


.variant-selector {
  display: flex;
  margin: 0 0 14px;
  justify-content: center;
  gap: 7px;
}

.variant-option {
  min-height: 32px;
  padding: 5px 10px;
  color: var(--green-800);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: clamp(.68rem, 1vw, .76rem);
  font-weight: 700;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.variant-option:hover,
.variant-option.is-selected {
  color: var(--white);
  background: var(--green-800);
  border-color: var(--green-800);
}
.product-detail__image .product-badge {
  top: 18px;
  left: 18px;
  padding: 6px 12px;
  font-size: 11px;
}

.product-card--natural-honey .product-card__image {
  background: radial-gradient(circle at 50% 18%, rgba(255, 255, 255, .95), rgba(246, 239, 212, .78) 52%, #efe4bf 100%);
}

.product-card--natural-honey .product-card__image img {
  filter: drop-shadow(0 12px 18px rgba(91, 66, 22, .18));
}
@media (min-width: 1400px) {
  .products-grid,
  .products-grid--home,
  .products-grid:not(.products-grid--home) {
    max-width: 1240px;
  }
}

@media (max-width: 1199.98px) {
  .products-grid,
  .products-grid--home,
  .products-grid:not(.products-grid--home) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}

@media (max-width: 991.98px) {
  .products-grid,
  .products-grid--home,
  .products-grid:not(.products-grid--home) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 767.98px) {
}

@media (max-width: 575.98px) {
  .products-grid,
  .products-grid--home,
  .products-grid:not(.products-grid--home) {
    gap: 14px;
  }

  .product-card__body,
  .products-grid--home .product-card__body {
    padding: 12px;
  }

  .product-badge {
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    font-size: 8px;
  }
}

@media (max-width: 479.98px) {

  .product-card h3,
  .products-grid--home .product-card h3 {
    font-size: .86rem;
  }
}

@media (max-width: 414px) {
  .products-grid,
  .products-grid--home,
  .products-grid:not(.products-grid--home) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }


  .product-unit {
    margin-bottom: 12px;
  }
}

@media (max-width: 390px) {
}

@media (max-width: 375px) {

  .product-card__body,
  .products-grid--home .product-card__body {
    padding: 10px;
  }

  .product-card h3,
  .products-grid--home .product-card h3 {
    font-size: .84rem;
  }

  .product-price,
  .products-grid--home .product-price {
    font-size: 1rem;
  }
}

@media (max-width: 320px) {
  .products-grid,
  .products-grid--home,
  .products-grid:not(.products-grid--home) {
    grid-template-columns: 1fr;
  }

  .product-card {
    max-width: 300px;
    margin-inline: auto;
  }

}

