/* ── Block: Products ─────────────────────────────────────────────────────── */

.il-products {
  padding: 64px 0;
}

/* Heading */
.il-products__heading {
  text-align: center;
  margin-bottom: 24px;
}

.il-products__title {
  font-size: 32px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: #4D5154;
}

.il-products__desc {
  font-size: 16px;
  line-height: 130%;
  color: #4D5154;
}

/* Grid — 3 cols desktop */
.il-products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* Card */
.il-products__card {
  background: #BEC1C4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  transition: background 0.2s, box-shadow 0.2s;
  padding: 32px 20px 0;
}

.il-products__card:hover {
  background: #9C9F9F;
  box-shadow: 0px 4px 10px 0px #00000040;
}

/* Image */
.il-products__card-img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  max-width: 264px;
  width: 100%;
}

.il-products__card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.il-products__card:has(.il-products__card-swatches) {
  gap: 20px;
}

/* Swatches */
.il-products__card-swatches {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.il-products__swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s, outline-color 0.15s;
}

.il-products__swatch.is-active {
  border-color: #fff;
  outline: 2px solid #8a8a8a;
  outline-offset: 0;
}

/* Footer bar */
.il-products__card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #2D2E2F;
  margin-top: auto;
  width: calc(100% + 40px);
  margin-left: 0px;
}

.il-products__card-art {
  font-weight: 400;
  font-size: 16px;
  line-height: 130%;
  letter-spacing: 0px;
  text-align: center;
  color: var(--color-white);
  background-color: #2D2E2FE5;
  padding: 17px 34px;
  width: max-content;
}
.il-products__card-size {
  padding: 17px 0;
  font-weight: 400;
  font-size: 16px;
  line-height: 130%;
  letter-spacing: 0px;
  color: var(--color-text);
  background-color: #D9DDDE;
  text-align: right;
  padding: 17px 26px;
  flex: 1;
}

/* Pagination — matches reviews visual */
.il-products__pagination-wrap {
  margin-top: 24px;
}

.il-products__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 14px;
  line-height: 130%;
}

.il-products__pagination-prev,
.il-products__pagination-next {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.il-products__pagination-prev:hover,
.il-products__pagination-next:hover {
  color: var(--color-red);
}

.il-products__pagination-pages {
  display: flex;
  align-items: center;
  gap: 0;
}

.il-products__pagination-page {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 16px;
  line-height: 1;
  color: var(--color-text);
  border: 1px solid transparent;
  border-radius: 8px;
  background: #EEF2F3;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.il-products__pagination-page:hover {
  border-color: var(--color-red);
  color: var(--color-red);
}

.il-products__pagination-page.is-active {
  border-color: var(--color-red);
  background-color: var(--color-red);
  color: #fff;
  pointer-events: none;
}

/* ── Responsive ── */

/* Tablet — 2 cols */
@media (max-width: 768px) {
  .il-products__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .il-products__pagination {
    flex-wrap: wrap;
    gap: 6px;
  }

  .il-products {
    padding: 56px 0;
  }

  .il-products__title {
    font-size: 26px;
  }
}

/* Mobile — 1 col */
@media (max-width: 480px) {
  .il-products__grid {
    grid-template-columns: 1fr;
  }
}
