.category-catalog {
  padding: 34px 0 86px;
  background: #f6f8f7;
}

.category-catalog *,
.category-catalog *::before,
.category-catalog *::after,
.category-cart-dialog,
.category-cart-dialog * {
  box-sizing: border-box;
}

.category-breadcrumb {
  display: flex;
  min-height: 28px;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
  color: #6a746e;
  font-size: 13px;
}

.category-breadcrumb a {
  color: #28663c;
  font-weight: 700;
  text-decoration: none;
}

.category-breadcrumb a:hover,
.category-breadcrumb a:focus-visible {
  color: #174f37;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.category-breadcrumb i {
  color: #a4aca7;
  font-size: 9px;
}

.category-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 40px;
  align-items: end;
  padding: 0 0 30px;
  border-bottom: 1px solid #dce3df;
}

.category-heading-copy {
  max-width: 790px;
}

.category-kicker {
  display: block;
  margin-bottom: 8px;
  color: #237548;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.category-heading h1 {
  margin: 0 0 10px;
  color: #3f2d3e;
  font-family: "Poppins", sans-serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.category-heading p {
  max-width: 760px;
  margin: 0;
  color: #566159;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

.category-count {
  min-width: 0;
  padding-left: 24px;
  border-left: 3px solid #237548;
}

.category-count strong,
.category-count span {
  display: block;
}

.category-count strong {
  color: #3f2d3e;
  font-family: "Poppins", sans-serif;
  font-size: 34px;
  line-height: 1;
}

.category-count span {
  margin-top: 7px;
  color: #68736c;
  font-size: 13px;
  line-height: 1.35;
}

.category-subcategories {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin: 26px 0 34px;
  padding: 18px;
  border: 1px solid #dce4df;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(39, 57, 46, 0.05);
}

.category-subcategories > strong {
  padding-top: 9px;
  color: #334039;
  font-size: 14px;
}

.category-subcategories > div {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 9px;
}

.category-subcategories a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 11px 8px 13px;
  border: 1px solid #d6dfd9;
  border-radius: 6px;
  color: #34433a;
  background: #f8faf9;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.category-subcategories a small {
  display: grid;
  min-width: 23px;
  height: 23px;
  place-items: center;
  padding: 0 5px;
  border-radius: 50%;
  color: #fff;
  background: #237548;
  font-size: 10px;
  line-height: 1;
}

.category-subcategories a:hover,
.category-subcategories a:focus-visible {
  border-color: #8fb29d;
  color: #174f37;
  background: #f0f6f2;
}

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

.category-toolbar h2 {
  margin: 0 0 4px;
  color: #2c3831;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

.category-toolbar p {
  margin: 0;
  color: #727c75;
  font-size: 13px;
  line-height: 1.4;
}

.category-sort {
  display: grid;
  grid-template-columns: auto 190px auto;
  gap: 8px;
  align-items: center;
}

.category-sort label {
  margin: 0 2px 0 0;
  color: #4e5b53;
  font-size: 13px;
  font-weight: 700;
}

.category-sort select {
  width: 100%;
  height: 42px;
  padding: 0 34px 0 12px;
  border: 1px solid #cfd9d2;
  border-radius: 6px;
  color: #2f3d34;
  background: #fff;
  font-size: 14px;
}

.category-sort button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid #3f2d3e;
  border-radius: 6px;
  color: #fff;
  background: #3f2d3e;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.category-sort button:hover,
.category-sort button:focus-visible {
  border-color: #237548;
  background: #237548;
}

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

.category-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dde5e0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(37, 54, 43, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: #b4cabd;
  box-shadow: 0 16px 34px rgba(37, 54, 43, 0.11);
}

.category-card-image {
  position: relative;
  display: flex;
  width: 100%;
  aspect-ratio: 1 / 1;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid #edf0ee;
  background: #f2f4f3;
}

.category-card-image picture {
  display: block;
  width: 100%;
  height: 100%;
}

.category-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 10px;
  object-fit: contain;
  transition: transform 0.28s ease;
}

.category-card:hover .category-card-image img {
  transform: scale(1.025);
}

.category-card-badges {
  position: absolute;
  z-index: 2;
  top: 11px;
  left: 11px;
  display: flex;
  max-width: calc(100% - 22px);
  flex-wrap: wrap;
  gap: 6px;
}

.category-badge {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 5px 9px;
  border-radius: 5px;
  color: #fff;
  background: #3f2d3e;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.category-badge-sale {
  background: #b92735;
}

.category-card-body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding: 17px;
}

.category-card-meta {
  display: flex;
  min-height: 20px;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  overflow: hidden;
  color: #6c776f;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.category-card-meta span {
  max-width: 52%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-card-meta span + span::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 7px 2px 0;
  border-radius: 50%;
  background: #9da7a1;
}

.category-card h3 {
  display: -webkit-box;
  min-height: 67px;
  margin: 0 0 14px;
  overflow: hidden;
  color: #2e3932;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.category-card h3 a {
  color: inherit;
  text-decoration: none;
}

.category-card h3 a:hover,
.category-card h3 a:focus-visible {
  color: #237548;
}

.category-prices {
  display: flex;
  min-height: 48px;
  align-items: baseline;
  gap: 9px;
  margin-top: auto;
  padding-top: 4px;
}

.category-prices span {
  color: #8a928d;
  font-size: 13px;
  text-decoration: line-through;
}

.category-prices strong {
  color: #174f37;
  font-family: "Poppins", sans-serif;
  font-size: 22px;
  line-height: 1.2;
}

.category-card-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: stretch;
  margin-top: 12px;
}

.category-quantity {
  display: grid;
  grid-template-columns: 34px 38px 34px;
  height: 42px;
  overflow: hidden;
  border: 1px solid #cfd9d2;
  border-radius: 6px;
  background: #fff;
}

.category-quantity button,
.category-quantity input {
  width: 100%;
  min-width: 0;
  height: 40px;
  margin: 0;
  border: 0;
  color: #334139;
  background: transparent;
  text-align: center;
}

.category-quantity button {
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 10px;
  cursor: pointer;
}

.category-quantity button:hover,
.category-quantity button:focus-visible {
  color: #fff;
  background: #237548;
}

.category-quantity input {
  border-right: 1px solid #e0e6e2;
  border-left: 1px solid #e0e6e2;
  font-size: 13px;
  font-weight: 700;
  appearance: textfield;
}

.category-quantity input::-webkit-inner-spin-button,
.category-quantity input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.category-add-button,
.category-option-link {
  display: inline-flex;
  min-width: 0;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #237548;
  border-radius: 6px;
  color: #fff !important;
  background: #237548;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
}

.category-add-button:hover,
.category-add-button:focus-visible,
.category-option-link:hover,
.category-option-link:focus-visible {
  border-color: #3f2d3e;
  background: #3f2d3e;
}

.category-add-button[disabled] {
  cursor: wait;
  opacity: 0.68;
}

.category-option-link {
  width: 100%;
  margin-top: 12px;
}

.category-add-short {
  display: none;
}

.category-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.category-pagination a {
  display: inline-flex;
  min-width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid #d5dfd8;
  border-radius: 6px;
  color: #34433a;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.category-pagination a:hover,
.category-pagination a:focus-visible,
.category-pagination a.active {
  border-color: #237548;
  color: #fff;
  background: #237548;
}

.category-empty {
  padding: 48px 22px;
  border: 1px dashed #c9d5cd;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.category-empty > i {
  margin-bottom: 14px;
  color: #237548;
  font-size: 30px;
}

.category-empty h2 {
  margin: 0 0 8px;
  color: #2f3d34;
  font-size: 23px;
}

.category-empty p {
  margin: 0 0 18px;
  color: #68736c;
}

.category-empty a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 8px 16px;
  border-radius: 6px;
  color: #fff;
  background: #237548;
  font-weight: 700;
}

.category-cart-dialog[hidden] {
  display: none !important;
}

.category-cart-dialog {
  position: fixed;
  z-index: 2147482000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(27, 32, 29, 0.58);
}

.category-cart-dialog-panel {
  position: relative;
  width: min(440px, 100%);
  padding: 30px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(24, 31, 26, 0.28);
  text-align: center;
}

.category-cart-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #5f6962;
  background: #f0f3f1;
  cursor: pointer;
}

.category-cart-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 50%;
  color: #fff;
  background: #237548;
  font-size: 21px;
}

.category-cart-dialog-panel h2 {
  margin: 0 0 8px;
  color: #302431;
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: 0;
}

.category-cart-dialog-panel p {
  margin: 0;
  color: #5f6962;
  font-size: 15px;
  line-height: 1.6;
}

.category-cart-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.category-cart-dialog-actions button,
.category-cart-dialog-actions a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  border: 1px solid #cfd8d2;
  border-radius: 6px;
  color: #344139;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.category-cart-dialog-actions a {
  border-color: #237548;
  color: #fff;
  background: #237548;
}

@media (max-width: 991px) {
  .category-heading {
    grid-template-columns: minmax(0, 1fr) 130px;
    gap: 24px;
  }

  .category-heading h1 {
    font-size: 34px;
  }

  .category-subcategories {
    grid-template-columns: 130px minmax(0, 1fr);
  }

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

@media (max-width: 767px) {
  .category-catalog {
    padding: 24px 0 64px;
  }

  .category-breadcrumb {
    margin-bottom: 19px;
  }

  .category-heading {
    display: block;
    padding-bottom: 23px;
  }

  .category-kicker {
    font-size: 11px;
  }

  .category-heading h1 {
    margin-bottom: 9px;
    font-size: 28px;
  }

  .category-heading p {
    font-size: 14px;
    line-height: 1.6;
  }

  .category-count {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-top: 18px;
    padding: 0;
    border: 0;
  }

  .category-count strong {
    font-size: 23px;
  }

  .category-count span {
    margin: 0;
  }

  .category-subcategories {
    display: block;
    margin: 20px 0 27px;
    padding: 14px;
  }

  .category-subcategories > strong {
    display: block;
    margin-bottom: 10px;
    padding: 0;
  }

  .category-subcategories > div {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: thin;
  }

  .category-subcategories a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .category-toolbar {
    display: block;
    margin-bottom: 15px;
  }

  .category-toolbar h2 {
    font-size: 19px;
  }

  .category-sort {
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 13px;
  }

  .category-sort label {
    grid-column: 1 / -1;
  }

  .category-sort button span {
    display: none;
  }

  .category-sort button {
    width: 42px;
    padding: 0;
  }

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

  .category-card-body {
    padding: 12px;
  }

  .category-card-meta {
    min-height: 17px;
    margin-bottom: 6px;
    font-size: 10px;
  }

  .category-card-meta span {
    max-width: 100%;
  }

  .category-card-meta span + span {
    display: none;
  }

  .category-card h3 {
    min-height: 57px;
    margin-bottom: 9px;
    font-size: 14px;
    line-height: 1.35;
  }

  .category-prices {
    display: grid;
    min-height: 48px;
    gap: 1px;
    align-content: end;
  }

  .category-prices span {
    font-size: 11px;
  }

  .category-prices strong {
    font-size: 18px;
  }

  .category-card-actions {
    display: block;
    margin-top: 9px;
  }

  .category-quantity {
    grid-template-columns: 34px minmax(32px, 1fr) 34px;
    width: 100%;
  }

  .category-add-button {
    width: 100%;
    margin-top: 7px;
    padding: 7px 8px;
  }

  .category-add-full {
    display: none;
  }

  .category-add-short {
    display: inline;
  }

  .category-option-link {
    margin-top: 9px;
    padding: 7px 8px;
    font-size: 12px;
  }

  .category-card-badges {
    top: 7px;
    left: 7px;
    max-width: calc(100% - 14px);
    gap: 4px;
  }

  .category-badge {
    min-height: 23px;
    padding: 4px 6px;
    font-size: 9px;
  }

  .category-pagination {
    margin-top: 28px;
  }

  .category-pagination a {
    min-width: 40px;
    height: 40px;
  }

  .category-page-direction span {
    display: none;
  }

  .category-cart-dialog-panel {
    padding: 28px 18px 20px;
  }

  .category-cart-dialog-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 359px) {
  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-card h3 {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .category-card,
  .category-card-image img {
    transition: none;
  }
}
