.b-bestsellers {
  padding: 80px 0;
  background: var(--bg);
}
.b-bestsellers__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}
.b-bestsellers__heading {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.15;
  color: var(--text);
}
.b-bestsellers__all {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.b-bestsellers__all:hover {
  border-color: var(--accent);
}
.b-bestsellers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.b-bestsellers__card {
  display: flex;
  flex-direction: column;
}
.b-bestsellers__media {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 3 / 4;
  margin-bottom: 16px;
  background: var(--surface-2);
  transition: box-shadow 0.35s ease;
}
.b-bestsellers__card:hover .b-bestsellers__media {
  box-shadow: 0 12px 32px rgba(59, 52, 55, 0.08);
}
.b-bestsellers__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.b-bestsellers__card:hover .b-bestsellers__img {
  transform: scale(1.05);
}
.b-bestsellers__fav {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: rgba(253, 251, 247, 0.92);
  border: none;
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  transition: color 0.25s ease, transform 0.25s ease;
}
.b-bestsellers__fav svg {
  width: 19px;
  height: 19px;
}
.b-bestsellers__fav:hover {
  color: var(--accent);
  transform: scale(1.08);
}
.b-bestsellers__fav.is-active {
  color: var(--accent);
}
.b-bestsellers__fav.is-active svg {
  fill: currentColor;
}
/* Быстрые действия внизу фото: чипы размеров + «В корзину».
   Полностью в границах фото и поверх него — кнопка не обрезается. */
.b-bestsellers__quick {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.b-bestsellers__card:hover .b-bestsellers__quick,
.b-bestsellers__quick:focus-within {
  opacity: 1;
  transform: translateY(0);
}
.b-bestsellers__qs {
  display: flex;
  justify-content: center;
  gap: 6px;
}
.b-bestsellers__qs-chip {
  min-width: 38px;
  height: 30px;
  padding: 0 8px;
  border: none;
  border-radius: 999px;
  background: rgba(253, 251, 247, 0.94);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(59, 52, 55, 0.12);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.b-bestsellers__qs-chip:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}
.b-bestsellers__add {
  width: 100%;
  padding: 12px 16px;
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--surface);
  background: var(--accent);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.25s ease;
}
.b-bestsellers__add:hover {
  background: var(--accent-hover);
}
.b-bestsellers__name {
  margin: 0 0 6px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  color: var(--text);
}
.b-bestsellers__fabric {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.b-bestsellers__sizes {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.b-bestsellers__price {
  margin: auto 0 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
}
@media (max-width: 768px) {
  .b-bestsellers {
    padding: 56px 0;
  }
  .b-bestsellers__grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .b-bestsellers__quick {
    opacity: 1;
    transform: none;
  }
  .b-bestsellers__qs-chip {
    min-width: 32px;
    height: 28px;
    padding: 0 6px;
  }
}
@media (max-width: 480px) {
  .b-bestsellers {
    padding: 44px 0;
  }
  .b-bestsellers__head {
    margin-bottom: 28px;
  }
  .b-bestsellers__grid {
    gap: 14px;
  }
  .b-bestsellers__name {
    font-size: 19px;
  }
}
