.category-page .site-header { box-shadow: none; border-bottom: 1px solid #e7e9e7; }
.category-page .active-nav { color: var(--green); }

.breadcrumb {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #5f6762;
  font-size: 11px;
}
.breadcrumb a { color: #315e43; }
.breadcrumb strong { font-weight: 500; }
.home-symbol { color: var(--green); font-size: 15px; }

.catalog {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.catalog-sidebar { display: flex; flex-direction: column; gap: 5px; }
.sidebar-panel {
  padding: 10px 8px;
  border: 1px solid #dfe4e0;
  border-radius: 8px;
  background: #fff;
}
.sidebar-panel h2 { margin: 0 0 9px; font-size: 11px; }
.category-menu { padding-inline: 0; }
.category-menu h2 { padding-inline: 9px; }
.category-menu a {
  display: block;
  padding: 5px 17px;
  color: #252b27;
  font-size: 9px;
}
.category-menu a.selected {
  color: #145b35;
  background: #f0f2f0;
  border-left: 2px solid #27864e;
  font-weight: 700;
}
.filters { padding-bottom: 11px; }
.filters > h2 { padding-bottom: 9px; border-bottom: 1px solid #e4e7e4; }
.filters fieldset { margin: 0; padding: 10px 0; border: 0; border-bottom: 1px solid #e1e5e2; }
.filters legend {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  padding: 0;
  font-size: 9px;
  font-weight: 750;
}
.filters label { display: block; margin: 5px 0; color: #353b37; font-size: 8px; white-space: nowrap; }
.filters input[type="checkbox"], .filters input[type="radio"] {
  width: 10px;
  height: 10px;
  margin: 0 5px 0 0;
  accent-color: var(--green);
  vertical-align: -2px;
}
.show-more {
  padding: 2px 0;
  color: #17643a;
  background: none;
  border: 0;
  font-size: 8px;
  cursor: pointer;
}
.price-filter input { width: 100%; height: 3px; accent-color: #126237; }
.price-filter div { display: flex; justify-content: space-between; font-size: 7px; }
.stars, .product-rating span { color: #f5aa00; letter-spacing: 1px; }
.clear-filters, .ingredients button {
  width: 100%;
  height: 27px;
  margin-top: 10px;
  color: #165d36;
  background: #fff;
  border: 1px solid #1c7041;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
  cursor: pointer;
}
.ingredients { padding: 14px 20px; }
.ingredients a { display: block; margin: 5px 0; color: #444a46; font-size: 8px; }
.ingredients button { margin-top: 5px; }
.filters-toggle { display: none; }

.catalog-content { min-width: 0; }
.category-banner {
  position: relative;
  height: 135px;
  display: flex;
  overflow: hidden;
  border-radius: 15px;
  background: linear-gradient(110deg, #f7f8f7 0, #fff 55%);
}
.category-banner-copy {
  position: relative;
  z-index: 2;
  width: 58%;
  padding: 20px 0 0 17px;
}
.category-title { display: flex; align-items: center; gap: 10px; }
.category-title img { width: 43px; height: 43px; object-fit: contain; }
.category-title h1 { margin: 0; font-size: 25px; letter-spacing: -.5px; }
.category-banner-copy p { margin: 16px 0 0; font-size: 12px; line-height: 1.4; }
.category-banner-art {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  width: 48%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}
.category-banner::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 35% 0 47%;
  background: linear-gradient(90deg, #fff, transparent);
}

.catalog-toolbar {
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1px 0 10px;
  font-size: 9px;
}
.catalog-toolbar label, .pagination-row > label {
  height: 29px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding-left: 12px;
  color: #6d736f;
  border: 1px solid #dfe3e0;
  border-radius: 5px;
}
.catalog-toolbar select, .pagination-row select {
  height: 100%;
  padding: 0 25px 0 0;
  font-size: 9px;
  font-weight: 700;
  background: #fff;
  border: 0;
  outline: 0;
}

.category-product-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.category-product-card {
  position: relative;
  min-width: 0;
  min-height: 288px;
  padding: 8px 12px 10px;
  display: flex;
  flex-direction: column;
  border: 1px solid #dfe4e0;
  border-radius: 8px;
  background: #fff;
}
.category-product-card .favorite { top: 8px; right: 7px; }
.category-product-card .badge { font-size: 7px; padding: 2px 7px; }
.category-product-image { height: 140px; display: grid; place-items: center; overflow: hidden; background: #fff; border-radius: 10px; }
.category-product-image img { max-width: 88%; max-height: 128px; width: auto; height: auto; object-fit: contain; transition: transform .2s; }
.category-product-card:hover .category-product-image img { transform: scale(1.04); }
.category-product-card h2 {
  min-height: 16px;
  margin: 4px 0 1px;
  overflow: hidden;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.category-product-card p { margin: 0 0 6px; color: #4d544f; font-size: 8px; }
.product-rating { margin-bottom: 8px; font-size: 8px; line-height: 1; white-space: nowrap; }
.product-rating small { color: #676d69; font-size: 7px; }
.category-price { margin-top: auto; margin-bottom: 9px; font-size: 14px; }
.category-product-card .add-to-cart { height: 25px; color: #fff; background: linear-gradient(90deg, #17683a, #27834a); border: 0; font-size: 9px; }
.shipping { margin-top: 7px; color: #385742; font-size: 7px; text-align: center; }

.pagination-row {
  min-height: 61px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 177px;
}
.pagination { display: flex; align-items: center; gap: 7px; }
.pagination button {
  width: 27px;
  height: 27px;
  padding: 0;
  color: #252b27;
  background: #fff;
  border: 1px solid #dce1dd;
  border-radius: 4px;
  font-size: 10px;
  cursor: pointer;
}
.pagination button.current { color: #fff; background: #175f37; border-color: #175f37; }
.pagination span { font-size: 10px; }
.pagination-row > label { border: 0; padding: 0; font-size: 8px; }
.pagination-row select { width: 68px; padding-left: 13px; border: 1px solid #dfe3e0; border-radius: 5px; }

.subcategory-section { border-top: 1px solid #e9ece9; padding: 8px 37px 0; }
.subcategory-section > h2 { margin: 0 0 9px; font-size: 15px; }
.subcategory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.subcategory-grid article {
  min-height: 148px;
  padding: 15px 10px 10px;
  text-align: center;
  border: 1px solid #e2e6e3;
  border-radius: 8px;
  background: linear-gradient(140deg, #fff, #f8f9f8);
}
.subcategory-grid img { width: 47px; height: 48px; object-fit: contain; }
.subcategory-grid h3 { margin: 4px 0 5px; font-size: 11px; }
.subcategory-grid p { min-height: 29px; margin: 0 0 9px; color: #575e59; font-size: 8px; line-height: 1.45; }
.subcategory-grid a { color: #146239; font-size: 8px; text-decoration: underline; text-transform: uppercase; }

.category-services { margin-top: 14px; }
.category-page .newsletter { margin-top: 13px; }
.category-page .site-footer { margin-top: 0; }

.immunity-page .catalog-sidebar { gap: 14px; }
.immunity-page .category-banner-copy { padding: 23px 0 0 27px; }
.immunity-page .category-title h1 { font-size: 26px; }
.immunity-page .category-banner-copy p { margin-top: 14px; font-size: 11px; }
.immunity-page .category-banner-art { width: 49%; }
.immunity-page .category-product-card { min-height: 290px; }
.immunity-page .category-product-image img { width: 70px; height: 134px; }
.detox-page .category-banner-copy { padding: 21px 0 0 27px; }
.detox-page .category-title h1 { font-size: 27px; }
.detox-page .category-banner-copy p { margin-top: 13px; font-size: 11px; }
.detox-page .category-banner-art { width: 49%; }
.detox-page .category-product-image img { width: 68px; height: 132px; }
.brain-page .category-banner-copy { padding: 21px 0 0 27px; }
.brain-page .category-title h1 { font-size: 27px; }
.brain-page .category-banner-copy p { margin-top: 13px; font-size: 11px; }
.brain-page .category-banner-art { width: 49%; }
.brain-page .category-product-image img { width: 68px; height: 132px; }

.immunity-benefits,
.detox-benefits,
.brain-benefits {
  min-height: 65px;
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  border-radius: 10px;
  background: linear-gradient(110deg, #f6f8f6, #fff);
}
.immunity-benefits article,
.detox-benefits article,
.brain-benefits article {
  min-height: 43px;
  padding: 0 35px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-right: 1px solid #dce2dd;
}
.immunity-benefits article:last-child,
.detox-benefits article:last-child,
.brain-benefits article:last-child { border-right: 0; }
.immunity-benefits img,
.detox-benefits img,
.brain-benefits img { width: 42px; height: 42px; object-fit: contain; }
.immunity-benefits div,
.detox-benefits div,
.brain-benefits div { display: flex; flex-direction: column; }
.immunity-benefits strong,
.detox-benefits strong,
.brain-benefits strong { font-size: 9px; }
.immunity-benefits span,
.detox-benefits span,
.brain-benefits span { margin-top: 3px; color: #4c544f; font-size: 7px; line-height: 1.4; }

.immunity-ingredients,
.detox-ingredients,
.brain-ingredients {
  min-height: 98px;
  margin-top: 11px;
  padding: 11px 14px;
  border-radius: 10px;
  background: linear-gradient(110deg, #f8f9f8, #fff);
}
.immunity-ingredients h2,
.detox-ingredients h2,
.brain-ingredients h2 { margin: 0 0 10px; font-size: 13px; }
.ingredient-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.ingredient-grid a { min-width: 0; display: flex; align-items: center; gap: 9px; }
.ingredient-grid img { width: 50px; height: 50px; flex: 0 0 50px; object-fit: contain; }
.ingredient-grid span { min-width: 0; display: flex; flex-direction: column; }
.ingredient-grid strong { font-size: 8px; white-space: nowrap; }
.ingredient-grid small { margin-top: 5px; color: #17633a; font-size: 7px; white-space: nowrap; }

@media (max-width: 1080px) {
  .catalog { grid-template-columns: 150px minmax(0, 1fr); }
  .category-product-card { padding-inline: 8px; }
  .pagination-row { gap: 100px; }
  .subcategory-section { padding-inline: 25px; }
}

@media (max-width: 820px) {
  .catalog { display: block; }
  .filters-toggle {
    width: 100%;
    height: 42px;
    display: block;
    margin-bottom: 10px;
    color: #fff;
    background: var(--green);
    border: 0;
    border-radius: 6px;
    font-weight: 700;
  }
  .catalog-sidebar { display: none; margin-bottom: 15px; }
  .catalog-sidebar.open { display: grid; grid-template-columns: repeat(2, 1fr); }
  .ingredients { grid-column: 1 / -1; }
  .category-product-grid { grid-template-columns: repeat(3, 1fr); }
  .category-product-card { min-height: 300px; }
  .pagination-row { justify-content: space-between; gap: 20px; }
  .subcategory-section { padding-inline: 0; }
  .subcategory-grid { grid-template-columns: repeat(2, 1fr); }
  .immunity-benefits, .detox-benefits, .brain-benefits { grid-template-columns: repeat(2, 1fr); padding-block: 10px; }
  .immunity-benefits article:nth-child(2), .detox-benefits article:nth-child(2), .brain-benefits article:nth-child(2) { border-right: 0; }
  .ingredient-grid { grid-template-columns: repeat(3, 1fr); row-gap: 15px; }
}

@media (max-width: 560px) {
  .breadcrumb { height: 42px; }
  .catalog-sidebar.open { grid-template-columns: 1fr; }
  .ingredients { grid-column: auto; }
  .category-banner { height: 235px; }
  .category-banner-copy { width: 100%; padding: 22px; }
  .category-banner-copy p { width: 78%; }
  .category-banner-art { width: 100%; opacity: .42; }
  .category-banner::after { inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.98), rgba(255,255,255,.68)); }
  .catalog-toolbar { height: auto; padding-block: 14px; gap: 10px; }
  .catalog-toolbar label { padding-left: 8px; }
  .category-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-product-card { min-height: 300px; }
  .pagination-row { align-items: flex-end; flex-direction: column; padding-block: 15px; }
  .pagination { align-self: center; }
  .subcategory-grid { grid-template-columns: 1fr; }
  .immunity-benefits, .detox-benefits, .brain-benefits { grid-template-columns: 1fr; padding-block: 5px; }
  .immunity-benefits article, .detox-benefits article, .brain-benefits article { padding-block: 12px; border-right: 0; border-bottom: 1px solid #dce2dd; }
  .immunity-benefits article:last-child, .detox-benefits article:last-child, .brain-benefits article:last-child { border-bottom: 0; }
  .ingredient-grid { grid-template-columns: repeat(2, 1fr); }
}

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