.category-page {
  background: #fff;
}

.category-hero {
  padding: 34px 0 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.category-hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
}

.category-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--red);
  font-family: Montserrat, sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.category-kicker [data-lucide] {
  width: 25px;
  height: 25px;
  stroke-width: 1.35;
}

.category-hero h1 {
  max-width: 820px;
  color: var(--navy);
  font-size: clamp(34px, 4vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.category-breadcrumbs {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #9aa5af;
  font-size: 13px;
}

.category-breadcrumbs a {
  color: var(--muted);
  transition: color 0.18s ease;
}

.category-breadcrumbs a:hover {
  color: var(--red);
}

.category-summary {
  max-width: 420px;
  padding: 26px 30px;
  background: #f8f9fa;
  border-left: 4px solid var(--red);
}

.category-summary strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  font-weight: 900;
}

.category-summary p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.category-content {
  padding: 44px 0 60px;
  background: #fff;
}

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

.category-sidebar {
  position: sticky;
  top: 178px;
  align-self: start;
}

.cat-side-group,
.cat-side-link,
.cat-side-contact {
  border-bottom: 1px solid var(--line);
}

.cat-side-parent,
.cat-side-link {
  min-height: 52px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: #51606d;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.18s ease, transform 0.18s ease;
}

.cat-side-parent {
  color: var(--red);
  font-family: Montserrat, sans-serif;
  font-weight: 900;
}

.cat-side-parent [data-lucide],
.cat-side-link [data-lucide] {
  width: 22px;
  height: 22px;
  color: var(--red);
  stroke-width: 1.35;
}

.cat-side-plus {
  color: var(--red);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.cat-side-link:hover,
.cat-side-parent:hover {
  color: var(--red);
  transform: translateX(4px);
}

.cat-sublist {
  list-style: none;
  padding: 0 0 16px 40px;
  display: grid;
  gap: 12px;
}

.cat-sublist a {
  position: relative;
  color: #293641;
  font-size: 13px;
  font-weight: 700;
  transition: color 0.18s ease;
}

.cat-sublist a::before {
  content: "";
  width: 7px;
  height: 7px;
  position: absolute;
  left: -18px;
  top: 50%;
  background: var(--red);
  transform: translateY(-50%);
}

.cat-sublist a:hover {
  color: var(--red);
}

.cat-side-contact {
  margin-top: 24px;
  padding: 28px;
  background: #f8f9fa;
  border-bottom: 0;
}

.cat-side-contact h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.cat-side-contact p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.cat-contact-item {
  min-height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--navy);
  font-weight: 800;
  font-size: 13px;
}

.cat-contact-item + .cat-contact-item {
  margin-top: 9px;
}

.cat-contact-item [data-lucide] {
  width: 18px;
  height: 18px;
  color: var(--red);
}

.category-list-head {
  margin-bottom: 26px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.category-list-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.category-list-title::before {
  content: "";
  width: 16px;
  height: 16px;
  background: var(--red);
  flex: 0 0 auto;
}

.category-list-title h2 {
  color: var(--navy);
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.category-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.category-toolbar .woocommerce-ordering {
  margin: 0;
}

.category-toolbar select,
.category-toolbar .orderby {
  min-height: 42px;
  padding: 0 42px 0 14px;
  border: 1px solid var(--line);
  outline: 0;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
}

.category-products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.category-product-card {
  min-height: 306px;
  position: relative;
  padding: 22px;
  display: flex;
  flex-direction: column;
  background: #f8f9fa;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.category-product-card:hover {
  transform: translateY(-4px);
  background: #fff;
  box-shadow: 0 18px 36px rgba(23, 36, 47, 0.08);
}

.category-product-img {
  height: 176px;
  margin-bottom: 20px;
  display: grid;
  place-items: center;
  background: #fff;
  overflow: hidden;
}

.category-product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  transition: transform 0.22s ease;
}

.category-product-card:hover .category-product-img img {
  transform: scale(1.04);
}

.category-product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 7px 10px;
  background: var(--navy);
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.category-product-meta {
  display: block;
  margin-bottom: 7px;
  color: #8b98a4;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.category-product-title {
  color: var(--navy);
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 900;
}

.category-product-desc {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.category-product-desc .woocommerce-Price-amount,
.category-product-desc .amount,
.category-product-desc ins,
.category-product-desc bdi {
  color: var(--green);
  font-family: Montserrat, sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.category-product-desc del,
.category-product-desc del .amount,
.category-product-desc del bdi {
  color: #97a2ad;
  font-size: 13px;
  font-weight: 700;
}

.category-pagination {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
}

.category-pagination a,
.category-pagination span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.category-pagination .disabled {
  opacity: 0.35;
  pointer-events: none;
}

.category-pages {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.category-page-number {
  width: 46px;
  height: 46px;
  display: grid !important;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--navy);
  background: #fff;
  font-weight: 900 !important;
}

.category-page-number.active,
.category-page-number.current,
.category-page-number:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.category-show-all {
  justify-content: flex-end;
  color: var(--navy);
}

.category-rest {
  padding: 54px 0 64px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.category-rest h2 {
  margin-bottom: 28px;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.category-rest-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px 22px;
}

.category-rest-tile {
  min-height: 68px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #d9e0e6;
  color: var(--navy);
  font-family: Montserrat, sans-serif;
  font-size: 13px;
  line-height: 1.15;
  font-weight: 900;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.category-rest-tile:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}

@media (max-width: 1260px) {
  .category-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 32px;
  }

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

@media (max-width: 980px) {
  .category-hero {
    padding: 28px 0 22px;
  }

  .category-hero-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .category-summary {
    max-width: none;
  }

  .category-content {
    padding: 28px 0 44px;
  }

  .category-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .category-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px 18px;
    background: #fff;
  }

  .cat-side-group {
    grid-column: 1 / -1;
  }

  .cat-side-contact {
    grid-column: 1 / -1;
    margin-top: 8px;
  }

  .category-list-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .category-product-card {
    min-height: 280px;
    padding: 14px;
  }

  .category-product-img {
    height: 148px;
    margin-bottom: 15px;
  }

  .category-product-title {
    font-size: 14px;
  }

  .category-pagination {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 18px;
  }

  .category-show-all {
    justify-content: flex-start;
  }

  .category-rest {
    padding: 42px 0 48px;
  }
}

@media (max-width: 620px) {
  .category-kicker {
    font-size: 10px;
  }

  .category-summary {
    padding: 20px;
  }

  .category-sidebar {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .cat-side-link:nth-of-type(n+6) {
    display: none;
  }

  .category-list-title h2 {
    font-size: 24px;
  }

  .category-toolbar {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .category-toolbar .woocommerce-ordering,
  .category-toolbar .orderby {
    width: 100%;
  }

  .category-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .category-product-card {
    min-height: 250px;
  }

  .category-product-img {
    height: 116px;
  }

  .category-product-img img {
    padding: 10px;
  }

  .category-product-meta {
    font-size: 9px;
  }

  .category-product-title {
    font-size: 12px;
  }

  .category-product-desc {
    margin-top: 8px;
  }

  .category-rest-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .category-rest-tile {
    min-height: 58px;
    padding: 12px;
    font-size: 11px;
  }
}
