/* ===== PRODUCTS PAGE ===== */

.products-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.products-page-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 40px;
  color: var(--black);
}

/* ===== CATEGORY BLOCK ===== */
.products-category {
  margin-bottom: 64px;
}

.products-category__label {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--black);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-mid);
}

/* ===== GRID ===== */
.products-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ===== CARD ===== */
.catalog-card {
  position: relative;
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  cursor: pointer;
}

.catalog-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  transform: translateY(-3px);
}

/* Image container */
.catalog-card__img-wrap {
  position: relative;
  width: 100%;
  padding-top: 100%; /* квадрат 1:1 */
  background: #eaeaea;
  overflow: hidden;
  border-radius: 6px 6px 0 0;
}

.catalog-card__img-wrap .img-placeholder {
  position: absolute;
  inset: 0;
  background: var(--gray-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #bbb;
  letter-spacing: 0.04em;
}

/* Subtle corner accent */
.catalog-card__img-wrap::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 40px;
  background: var(--accent-orange);
  opacity: 0;
  transition: opacity 0.25s;
}

.catalog-card:hover .catalog-card__img-wrap::after {
  opacity: 1;
}

/* Card body */
.catalog-card__body {
  padding: 14px 16px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.catalog-card__info {
  flex: 1;
  min-width: 0;
}

.catalog-card__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.catalog-card__colors {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--gray-text);
}

/* Arrow button — slightly elevated style */
.catalog-card__btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-mid);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  margin-top: 2px;
}

.catalog-card__btn:hover {
  background: var(--black);
  border-color: var(--black);
  transform: rotate(45deg);
}

.catalog-card__btn:hover svg path {
  stroke: var(--white);
}

.catalog-card__btn svg {
  width: 14px;
  height: 14px;
}

/* ===== TILDA FOOTER ===== */
.tilda-footer {
  background: #1c1c1c;
  color: rgba(255,255,255,0.35);
  font-size: 12px;
  text-align: center;
  padding: 28px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.tilda-footer__icon {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-style: italic;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
}

.tilda-footer__text {
  line-height: 1.7;
  color: rgba(255,255,255,0.4);
}

.tilda-footer__btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.55);
  padding: 7px 22px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  font-family: var(--font-main);
  transition: background 0.2s;
}
.tilda-footer__btn:hover { background: rgba(255,255,255,0.15); }

.tilda-footer__links {
  display: flex;
  gap: 24px;
  font-size: 11px;
}
.tilda-footer__links a {
  color: rgba(255,255,255,0.28);
  transition: color 0.2s;
}
.tilda-footer__links a:hover { color: rgba(255,255,255,0.6); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .products-catalog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .products-page-title { font-size: 26px; }
  .products-catalog-grid { grid-template-columns: 1fr; gap: 16px; }
  .catalog-card__img-wrap { padding-top: 68%; }
  .tilda-footer__links { flex-direction: column; gap: 8px; }
}
