/* Section 2 — Bizim Bütün Məhsullarımız.
   Numbered editorial rows (reference's service-list language): number,
   thumbnail, existing name, circular arrow; thin separators. */

.products-section {
  background: var(--paper-050);
  padding-block: var(--space-section);
  /* keeps the heading clear of the fixed header when reached via #products */
  scroll-margin-top: 96px;
}

.products-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.products-section__title { max-width: 22ch; }

.product-rows { border-top: var(--border-strong); }

.product-row {
  display: grid;
  grid-template-columns: 3.5rem 76px minmax(0, 1fr) var(--control-circle);
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  padding-block: var(--space-4);
  border-bottom: var(--border-hairline);
  transition: background-color var(--duration-fast) var(--ease-out);
}
.product-row:hover { background: var(--green-050); }

.product-row__idx {
  font-size: var(--text-small);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink-300);
  transition: color var(--duration-fast) var(--ease-out);
}
.product-row:hover .product-row__idx { color: var(--green-700); }

.product-row__thumb {
  width: 76px;
  height: 76px;
  overflow: hidden;
  border: var(--border-hairline);
  background: var(--paper-000);
}
.product-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-base) var(--ease-out);
}
.product-row:hover .product-row__thumb img { transform: scale(1.08); }

.product-row__name {
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 0.9rem + 0.7vw, 1.4rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink-900);
  transition: transform var(--duration-base) var(--ease-out);
}
.product-row:hover .product-row__name { transform: translateX(8px); }

.product-row .circle-btn { justify-self: end; }
.product-row:hover .circle-btn {
  background: var(--green-700);
  border-color: var(--green-700);
  color: #fff;
}
.product-row:hover .circle-btn .arrow { transform: rotate(45deg) translate(2px, -2px); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .product-row {
    grid-template-columns: 2rem 56px minmax(0, 1fr) 40px;
    gap: var(--space-3);
  }
  .product-row__thumb { width: 56px; height: 56px; }
  .product-row .circle-btn { width: 40px; height: 40px; }
}

@media (max-width: 430px) {
  .product-row { grid-template-columns: 56px minmax(0, 1fr) 40px; }
  .product-row__idx { display: none; }
}
