/* Category links remain usable without scripts. */
#furniture-catalog {
  background: #f5f8f4;
  scroll-margin-top: 90px;
}
.ac-catalog__heading {
  max-width: 780px;
  margin: 0 auto 32px;
  text-align: center;
}
.ac-catalog__eyebrow {
  display: block;
  margin-bottom: 12px;
  color: #3f792d;
  font-size: 14px;
  font-weight: 700;
}
.ac-catalog__heading h2 {
  margin: 0 0 16px;
  color: #203020;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: 0;
}
.ac-catalog__heading p {
  margin: 0;
  color: #566253;
  font-size: 17px;
  line-height: 1.5;
}
.ac-catalog__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}
.ac-catalog__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #dce5d8;
  border-radius: 8px;
  background: #fff;
  color: #203020;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(35, 63, 26, .04);
  touch-action: manipulation;
  transition: border-color .18s, box-shadow .18s;
}
.ac-catalog__card:visited { color: #203020; }
.ac-catalog__card:hover, .ac-catalog__card:focus { color: #203020; text-decoration: none; }
.ac-catalog__card:focus-visible { outline: 3px solid #285f1b; outline-offset: 4px; }
.ac-catalog__image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 5 / 4;
  min-width: 0;
  padding: 18px;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  background: #fff;
}
.ac-catalog__image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  filter: none;
}
.ac-catalog__fallback { padding: 16px; text-align: center; color: #55664e; font-size: 18px; }
.ac-catalog__body { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 0 16px 16px; }
.ac-catalog__body h3 {
  min-height: 2.5em;
  margin: 0 0 8px;
  color: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-transform: none;
  letter-spacing: 0;
}
.ac-catalog__description { display: block; flex: 1; margin-bottom: 20px; color: #626c5e; font-size: 14px; line-height: 1.5; }
.ac-catalog__action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #63bc46;
  background: linear-gradient(135deg, #63bc46, #4caf50);
  color: #fff;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.ac-catalog__action .fa { flex: 0 0 10px; font-size: 22px; text-align: center; }
.ac-catalog__card:active .ac-catalog__action { background: linear-gradient(135deg, #55ad3a, #419b45); }
@media (hover: hover) {
  .ac-catalog__card:hover { border-color: #65a64e; box-shadow: 0 6px 20px rgba(35,63,26,.11); }
  .ac-catalog__card:hover .ac-catalog__action { background: linear-gradient(135deg, #55ad3a, #419b45); }
}
@media (min-width: 769px) {
  .navbar.top-head .navbar-nav { flex-wrap: wrap; }
  .navbar.top-head .nav > li > a.nav-catalog { white-space: normal; text-align: center; }
}
@media (min-width: 769px) and (max-width: 1199px) {
  .navbar.top-head .nav > li > a.nav-catalog { max-width: 120px; line-height: 1.35; }
}
@media (max-width: 1023px) {
  .ac-catalog__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 600px) {
  #furniture-catalog { scroll-margin-top: 12px; }
  .ac-catalog__heading { margin-bottom: 24px; }
  .ac-catalog__heading h2 { font-size: 26px; }
  .ac-catalog__heading p { font-size: 16px; }
  .ac-catalog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ac-catalog__image { padding: 12px; }
  .ac-catalog__body { padding: 0 10px 12px; }
  .ac-catalog__body h3 { font-size: 16px; }
  .ac-catalog__description { font-size: 13px; margin-bottom: 14px; }
  .ac-catalog__action { padding: 10px 8px; gap: 5px; font-size: 14px; min-height: 56px; }
}
@media (max-width: 360px) {
  .ac-catalog__action { justify-content: center; text-align: center; }
  .ac-catalog__action .fa { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ac-catalog__card { transition: none; } }
