:root {
  --section-space-sm: 28px;
  --section-space-md: 40px;
  --section-space-lg: 64px;
}

.category-shell {
  width: min(1440px, calc(100% - 72px));
  margin-inline: auto;
}

.category-hero {
  position: relative;
  min-height: 438px;
  overflow: hidden;
  color: var(--color-ink);
  background:
    radial-gradient(circle at 16% 16%, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 34%),
    linear-gradient(135deg, #fbf7f1 0%, #f5eadf 54%, #efe0d0 100%);
}

.category-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 0.9fr) minmax(330px, 0.82fr);
  gap: 44px;
  align-items: center;
  width: min(1440px, calc(100% - 88px));
  min-height: 438px;
  margin-inline: auto;
  padding: 34px 0;
}

.category-hero__visual {
  position: relative;
  display: flex;
  min-height: 360px;
  align-items: flex-end;
  justify-content: center;
  isolation: isolate;
}

.category-hero__visual::after {
  position: absolute;
  right: 6%;
  bottom: 18px;
  left: 2%;
  z-index: -1;
  height: 34px;
  border-radius: 999px;
  background: rgba(122, 82, 55, 0.12);
  filter: blur(10px);
  content: "";
}

.category-hero__visual--photo {
  min-height: 320px;
  padding: 18px;
}

.category-hero__visual--photo::after {
  right: 9%;
  left: 9%;
}

.category-hero__photo {
  width: 100%;
  max-height: 340px;
  aspect-ratio: 900 / 620;
  border: 1px solid #e2d3c5;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 18px 42px rgba(70, 43, 27, 0.12);
}

body[data-category="banquet-chairs"] .category-hero__visual--photo {
  min-height: 0;
}

body[data-category="banquet-chairs"] .category-hero__photo {
  aspect-ratio: 2173 / 724;
  object-fit: contain;
  object-position: left center;
}

body[data-category="banquet-tables"] .category-hero__visual--photo {
  min-height: 0;
}

body[data-category="banquet-tables"] .category-hero__photo {
  aspect-ratio: 3 / 1;
  object-fit: contain;
  object-position: left center;
}

body[data-category="restaurant-tables"] .category-hero__visual--photo {
  min-height: 0;
}

body[data-category="restaurant-tables"] .category-hero__photo {
  aspect-ratio: 3 / 2;
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 1181px) {
  body[data-category="banquet-chairs"] .category-hero {
    height: 400px;
    min-height: 400px;
    background-color: #d9bda6;
    background-image: url("../images/category-heroes/banquet-chairs-hero-400px.png?v=20260816-1");
    background-repeat: no-repeat;
    background-position: left top;
    background-size: auto 400px;
  }

  body[data-category="banquet-chairs"] .category-hero__inner {
    height: 400px;
    min-height: 400px;
    padding-block: 0;
  }

  body[data-category="banquet-chairs"] .category-hero__visual--photo::after {
    display: none;
  }

  body[data-category="banquet-chairs"] .category-hero__photo {
    opacity: 0;
  }

  body[data-category="banquet-tables"] .category-hero {
    height: 400px;
    min-height: 400px;
    background-color: #d9bda6;
    background-image: url("../images/category-heroes/banquet-tables-hero-400px.png?v=20260821-1");
    background-repeat: no-repeat;
    background-position: left top;
    background-size: auto 400px;
  }

  body[data-category="banquet-tables"] .category-hero__inner {
    height: 400px;
    min-height: 400px;
    padding-block: 0;
  }

  body[data-category="banquet-tables"] .category-hero__visual--photo::after {
    display: none;
  }

  body[data-category="banquet-tables"] .category-hero__photo {
    opacity: 0;
  }

  body[data-category="restaurant-tables"] .category-hero {
    height: 400px;
    min-height: 400px;
    background-color: #d3b397;
    background-image: url("../images/category-heroes/restaurant-tables-hero.png?v=20260825-2");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: auto 440px;
  }

  body[data-category="restaurant-tables"] .category-hero__inner {
    height: 400px;
    min-height: 400px;
    padding-block: 0;
  }

  body[data-category="restaurant-tables"] .category-hero__visual--photo::after {
    display: none;
  }

  body[data-category="restaurant-tables"] .category-hero__photo {
    opacity: 0;
  }
}

.category-hero__chair {
  width: 38%;
  max-height: 340px;
  object-fit: contain;
  object-position: center bottom;
}

.category-hero__chair--side {
  margin-right: -15%;
  transform: translateY(4px) scale(0.94);
}

.category-hero__chair--front {
  z-index: 2;
  width: 42%;
}

.category-hero__chair--dark {
  margin-left: -14%;
  filter: sepia(0.28) saturate(0.58) brightness(0.62) contrast(1.08);
  transform: translateY(6px) scale(0.9);
}

.category-hero h1 {
  max-width: 520px;
  margin: 0;
  font-family: var(--font-serif);
  color: #2a211d;
  font-size: clamp(38px, 3.9vw, 58px);
  font-weight: 500;
  line-height: 1.02;
}

.category-hero__subtitle {
  margin: 24px 0 0;
  color: #43291e;
  font-size: 18px;
  font-weight: 900;
}

.category-hero__text {
  margin: 12px 0 30px;
  color: #5f534d;
  font-size: 15px;
  line-height: 1.7;
}

.category-hero__button {
  background: #875238;
}

.category-hero__points {
  display: grid;
  gap: 0;
}

.category-hero__points article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(123, 80, 56, 0.18);
}

.category-hero__points article:last-child {
  border-bottom: 0;
}

.hero-point-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #d8c4b3;
  border-radius: 4px;
  color: #7b5038;
  background: rgba(255, 252, 248, 0.58);
}

.hero-point-icon img {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
  object-position: center;
}

.category-hero__points h2 {
  margin: 1px 0 6px;
  color: #43291e;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.category-hero__points p {
  margin: 0;
  color: #5f534d;
  font-size: 13px;
  line-height: 1.55;
}

.category-section {
  padding: var(--section-space-sm) 0 var(--section-space-lg);
  background: #fbf7f1;
}

.category-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.category-sidebar {
  display: grid;
  gap: 22px;
}

.filter-panel,
.category-inquiry-card {
  border: 1px solid #e7d8c9;
  border-radius: 6px;
  background: rgba(255, 252, 248, 0.92);
  box-shadow: 0 12px 28px rgba(70, 43, 27, 0.08);
}

.filter-panel {
  padding: 25px 24px 28px;
}

.filter-panel h2,
.category-inquiry-card h2 {
  margin: 0;
  color: #43291e;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.filter-panel h3 {
  margin: 24px 0 14px;
  color: #7b5038;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.category-filter-nav {
  display: grid;
  gap: 2px;
}

.category-filter-nav a {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #f0e5da;
  color: #5f534d;
  font-size: 13px;
  font-weight: 800;
}

.category-filter-nav a:last-child {
  border-bottom: 0;
}

.category-filter-nav span {
  position: relative;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border: 1px solid #c8a27e;
  border-radius: 2px;
  background: #fff;
}

.category-filter-nav .is-active {
  color: #43291e;
}

.category-filter-nav .is-active span {
  border-color: #7b5038;
  background: #7b5038;
}

.category-filter-nav .is-active span::after {
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  content: "";
  transform: rotate(45deg);
}

.category-inquiry-card {
  padding: 26px 24px;
}

.category-inquiry-card__intro {
  margin: 10px 0 18px;
  color: #6b5d54;
  font-size: 12px;
  line-height: 1.6;
}

.category-inquiry-card .form-fields {
  grid-template-columns: 1fr;
  gap: 13px;
}

.category-inquiry-card .form-submit {
  width: 100%;
  margin-top: 16px;
}

.category-inquiry-card .inquiry-verification {
  margin-top: 16px;
}

.form-status {
  min-height: 18px;
  margin: 10px 0 0;
  color: #66705f;
  font-size: 12px;
  font-weight: 800;
}

.form-status[data-type="error"] {
  color: #b65036;
}

.privacy-note {
  margin: 12px 0 0;
  color: #8d7f73;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.catalogue-main {
  min-width: 0;
}

.catalogue-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  margin-bottom: 18px;
  color: #5f534d;
  font-size: 12px;
  font-weight: 900;
}

.catalogue-toolbar select {
  min-width: 132px;
  min-height: 36px;
  border: 1px solid #e2d3c5;
  border-radius: 4px;
  padding: 0 34px 0 12px;
  color: #43291e;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 22px;
}

.product-card {
  display: block;
  min-width: 0;
}

.product-card__image {
  display: flex;
  aspect-ratio: 1 / 1;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #e6d8ca;
  border-radius: 6px;
  padding: 18px 20px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(92, 69, 48, 0.07);
}

.product-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  margin: auto;
  object-fit: contain;
  object-position: center center;
}

.product-card__title {
  display: block;
  margin-top: 12px;
  color: #2a211d;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  text-align: left;
}

.product-card__model {
  margin: 5px 0 0;
  color: #7d6f64;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: var(--section-space-md) 0 0;
}

.pagination button,
.pagination span {
  display: inline-flex;
  min-width: 36px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2d3c5;
  border-radius: 4px;
  color: #5f534d;
  background: #fffaf5;
  font-size: 12px;
  font-weight: 900;
}

.pagination button {
  cursor: pointer;
  font: inherit;
}

.pagination button:disabled {
  cursor: default;
  opacity: 0.45;
}

.pagination span {
  border-color: transparent;
  background: transparent;
}

.pagination .is-current {
  border-color: #43291e;
  color: #fff;
  background: #43291e;
}

@media (max-width: 1180px) {
  .category-hero__inner {
    grid-template-columns: 1fr;
    gap: 36px;
    align-items: end;
  }

  .category-hero__points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-layout {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 30px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .category-shell,
  .category-hero__inner {
    width: calc(100% - 28px);
  }

  .category-hero,
  .category-hero__inner {
    min-height: auto;
  }

  .category-hero__inner {
    padding: 72px 0 44px;
  }

  .category-hero h1 {
    font-size: 38px;
  }

  .category-hero__text br,
  .category-hero__points br,
  .category-inquiry-card__intro br {
    display: none;
  }

  .category-hero__points,
  .category-layout,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .category-section {
    padding-top: var(--section-space-sm);
  }

  .category-sidebar {
    order: 2;
  }

  .catalogue-main {
    order: 1;
  }

  .catalogue-toolbar {
    justify-content: flex-start;
  }

}
