body {
    font-family: 'Inter', sans-serif;
}

.card-bottom h3,
.bottom-controls p {
    font-family: inherit; /* наследует Inter */
}

/* Сетка карточек */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 в ряд на десктопе */
  gap: 20px;
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}

/* Карточка продукта */
.product-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Верх карточки */
.card-top {
  position: relative;
}

.card-top img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* Иконки сверху */
.top-icons {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 10px;
}

/* Нижняя часть карточки */
.card-bottom {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-bottom h3 {
  font-family: inherit; /* Интер наследуется */
  font-size: 1rem;
  color: #0a5b59;
  margin: 0;
  text-align: left;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* максимум 2 строки */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bottom-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.bottom-controls p {
  font-family: inherit; /* Интер наследуется */
  font-weight: 500;
  color: #000; /* цена чёрная */
}

.add-btn {
  width: 36px;
  height: 36px;
  border: 2px solid #0a5b59; /* только обводка */
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem; /* чуть больше + */
  color: #0a5b59;
  cursor: pointer;
}

/* Адаптив: планшет */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 в ряд */
    gap: 15px;
  }
}

/* Адаптив: мобильный */
@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 в ряд */
    gap: 10px;
    padding: 0px;
  }
}

.delivery-block {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

.delivery-item {
  background: var(--gray);
  padding: 15px 20px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
  flex: 1 1 250px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.delivery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}


.container h1 {
  font-family: 'Zero Cool', sans-serif !important;
  font-weight: 400;
  font-size: 48px;
  line-height: 1.2;
  color: #000;                /* чёрный текст */
  margin: 0 0 30px 0;         /* отступ снизу */
  max-width: 1200px;          /* совпадает с сеткой карточек */
  padding-left: 25px;         /* отступ от края контейнера */
  margin-left: auto;           /* центрируем контейнер по ширине экрана */
  margin-right: auto;
  text-align: left;           /* выравнивание текста */
  margin-top: 10px;  
  margin-bottom: 15px;
}

/* Планшет и мобильные */
@media (max-width: 1024px) {
  .container h1 {
    margin-top: 10px;
    margin-bottom: 0px; /* меньше на маленьких экранах */
  }
}

/* Адаптив: планшет */
@media (max-width: 1024px) {
  .container h1 {
    font-size: 38px;                       /* чуть меньше на планшете */
    padding: 15px 0;
  }
}

/* Адаптив: мобильный */
@media (max-width: 600px) {
  .container h1 {
    font-size: 28px;                       /* оптимальный размер на телефоне */
    padding: 10px 0;
  }
}

/* Для мобильных экранов */
@media (max-width: 600px) {
  .container h1 {
    padding-left: 20px; /* или любое другое значение, чтобы сдвинуть правее */
  }
}

.product-card .product-weight {
  display: none;
}

@media (max-width: 600px) {
  .card-top {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .card-top img {
    width: 100%;
    height: auto;              /* убираем фиксированную высоту */
    aspect-ratio: 1 / 1;       /* ровный квадрат */
    object-fit: cover;
    object-position: center;
    display: block;
  }
}


.btn-link {
  display: block;
  margin-top: 20px;
  padding: 0 20px;
}
