.product-grid {
  padding: 48px 24px;
}

.product-grid__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.product-grid__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.product-grid__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 0;
  color: var(--text-dark);
}

.product-grid__items {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 8px;
}

.product-grid__items::-webkit-scrollbar {
  display: none;
}

.product-grid__items .product-card {
  flex: 0 0 calc((100% - 60px) / 4);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.product-grid__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-grid__arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.product-grid__arrow:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15, 26, 27, 0.1);
}

.product-grid__arrow svg {
  width: 20px;
  height: 20px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.product-grid__arrow:disabled {
  opacity: 0.4;
  cursor: default;
  box-shadow: none;
  transform: none;
}

@media (max-width: 980px) {
  .product-grid__items .product-card {
    flex: 0 0 calc((100% - 20px) / 2);
  }
}

@media (max-width: 760px) {
  .product-grid__items {
    gap: 16px;
  }

  .product-grid__items .product-card {
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;
  }

  .product-grid__title {
    font-size: 18px;
  }

  .product-grid__controls {
    gap: 6px;
  }

  .product-grid__arrow {
    width: 32px;
    height: 32px;
  }
}
