/*
 * NM-023 production category-page visual system.
 * Server-rendered category data and behavior are retained under body.category-page.
 */

body.category-page {
  --nm023-green-deep: #004b00;
  --nm023-green: #1a6200;
  --nm023-orange: #fe7400;
  --nm023-orange-bright: #ffac0a;
  --nm023-ink: #19231a;
  --nm023-muted: #4f5d51;
  --nm023-panel: #dfecd8;
  --nm023-panel-strong: #c7debc;
  --nm023-surface-soft: #edf4ea;
  --nm023-border: #e2e9e1;
  --nm023-border-green: rgba(26, 98, 0, 0.24);
  --nm023-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --nm023-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nm023-max: 1280px;
  margin: 0;
  background: #ffffff;
  color: var(--nm023-ink);
  font-family: 'Inter', 'Noto Sans', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  overflow-x: clip;
}


html[lang^='ar'] body.category-page,
html[lang^='fa'] body.category-page,
html[lang^='ur'] body.category-page { font-family: 'Noto Sans Arabic', system-ui, sans-serif; }
html[lang^='he'] body.category-page { font-family: 'Noto Sans Hebrew', system-ui, sans-serif; }
html[lang^='am'] body.category-page { font-family: 'Noto Sans Ethiopic', system-ui, sans-serif; }
html[lang^='hy'] body.category-page { font-family: 'Noto Sans Armenian', system-ui, sans-serif; }
html[lang^='ka'] body.category-page { font-family: 'Noto Sans Georgian', system-ui, sans-serif; }
html[lang^='bn'] body.category-page { font-family: 'Noto Sans Bengali', system-ui, sans-serif; }
html[lang^='hi'] body.category-page,
html[lang^='ne'] body.category-page { font-family: 'Noto Sans Devanagari', system-ui, sans-serif; }
html[lang^='si'] body.category-page { font-family: 'Noto Sans Sinhala', system-ui, sans-serif; }
html[lang^='th'] body.category-page { font-family: 'Noto Sans Thai', system-ui, sans-serif; }
html[lang^='km'] body.category-page { font-family: 'Noto Sans Khmer', system-ui, sans-serif; }
html[lang^='lo'] body.category-page { font-family: 'Noto Sans Lao', system-ui, sans-serif; }
html[lang^='my'] body.category-page { font-family: 'Noto Sans Myanmar', system-ui, sans-serif; }
html[lang^='ja'] body.category-page { font-family: 'Noto Sans JP', system-ui, sans-serif; }
html[lang^='ko'] body.category-page { font-family: 'Noto Sans KR', system-ui, sans-serif; }
html[lang^='zh'] body.category-page { font-family: 'Noto Sans SC', system-ui, sans-serif; }

body.category-page [hidden] {
  display: none !important;
}

body.category-page .category-page-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: #ffffff;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

body.category-page .category-page-shell > main {
  width: 100%;
}

body.category-page h1,
body.category-page h2,
body.category-page h3,
body.category-page p,
body.category-page a,
body.category-page button,
body.category-page label {
  font-family: inherit;
}

body.category-page .section {
  margin: 0;
  background: #ffffff;
}

body.category-page .nm023-hero {
  display: block;
  width: 100%;
  padding: 62px 48px 42px;
  border-bottom: 1px solid var(--nm023-border);
}

body.category-page .nm023-hero__inner {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

body.category-page .nm023-hero .section-title {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--nm023-green-deep);
  font-size: clamp(34px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-align: center;
}

body.category-page .nm023-hero .section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  margin: 18px auto 0;
  border-radius: 999px;
  background: var(--nm023-orange);
}

body.category-page .nm023-hero .section-title + p {
  max-width: 800px;
  margin: 20px auto 0;
  color: var(--nm023-muted);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  text-align: center;
  align-self: center;
}

body.category-page .category-filter-panel {
  width: 100%;
  margin-top: 30px;
  display: grid;
  gap: 12px;
}

body.category-page .category-filter-caption {
  margin: 0;
  color: var(--nm023-green);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  align-self: center;
}

body.category-page .category-filter-group {
  margin: 0;
  padding: 0;
  border: 0;
}

body.category-page .category-filter-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

body.category-page .category-filter-option {
  position: relative;
  min-height: 44px;
  margin: 0;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--nm023-border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--nm023-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

body.category-page .category-filter-option:hover {
  border-color: var(--nm023-border-green);
  background: var(--nm023-surface-soft);
  color: var(--nm023-green-deep);
}

body.category-page .category-filter-option.is-selected {
  border-color: var(--nm023-green-deep);
  background: var(--nm023-green-deep);
  color: #ffffff;
  box-shadow: none;
}

body.category-page .category-filter-option:focus-within {
  outline: 3px solid rgba(26, 98, 0, 0.22);
  outline-offset: 2px;
}

body.category-page .category-filter-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

body.category-page .category-filter-radio:checked + .category-filter-text {
  color: inherit;
}

body.category-page .nm023-catalog {
  width: 100%;
  max-width: var(--nm023-max);
  margin: 0 auto;
  padding: 50px 48px 68px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

body.category-page .nm023-catalog > .section-title {
  grid-column: 1 / -1;
  margin: 0 0 8px;
  color: var(--nm023-green-deep);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-align: start;
}

body.category-page .nm023-catalog > .section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 24px;
  margin-inline-end: 10px;
  border-radius: 999px;
  background: var(--nm023-orange);
  vertical-align: -3px;
}

body.category-page .nm023-catalog > .category-product-card {
  width: auto;
  min-width: 0;
  max-width: none;
  padding: 0;
  display: block;
}

body.category-page .nm023-catalog .product-card {
  height: 100%;
  padding: 14px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--nm023-border);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(25, 35, 26, 0.045);
  transition: transform var(--nm023-transition), box-shadow var(--nm023-transition);
}

body.category-page .nm023-catalog .product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 98, 0, 0.14);
}

body.category-page .nm023-catalog .country-card {
  display: block;
  color: var(--nm023-ink);
  text-decoration: none;
}

body.category-page .nm023-catalog .country-card figure {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0;
}

body.category-page .nm023-catalog .country-card img {
  width: 100%;
  max-width: none;
  aspect-ratio: 1 / 1;
  padding: 12px;
  object-fit: contain;
  background: #f8fbf7;
  border: 0;
  border-radius: 10px;
  box-shadow: none;
  transition: none;
}

body.category-page .nm023-catalog .country-card:hover figure > img,
body.category-page .nm023-catalog .country-card:focus-visible figure > img {
  transform: none;
  filter: none;
}

body.category-page .nm023-card-category {
  margin: 16px 2px 0;
  color: var(--nm023-green);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

body.category-page .nm023-card-badges {
  position: absolute;
  inset: 12px 12px auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  pointer-events: none;
}

body.category-page .nm023-card-rating {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(25, 35, 26, 0.1);
}

body.category-page .nm023-card-rating {
  margin-inline-start: auto;
  padding: 6px 8px;
  gap: 4px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--nm023-green-deep);
}

body.category-page .nm023-catalog .nm023-card-rating img {
  width: 13px;
  height: 13px;
  max-width: 13px;
  aspect-ratio: auto;
  padding: 0;
  background: transparent;
  border-radius: 0;
  transform: none;
  filter: brightness(0) saturate(100%) invert(84%) sepia(85%) saturate(638%) hue-rotate(330deg) brightness(103%) contrast(99%);
}

body.category-page .nm023-catalog .country-card figcaption {
  width: 100%;
  margin: 5px 2px 0;
  color: var(--nm023-green-deep);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  text-align: start;
  transform: none;
}

body.category-page .nm023-card-title {
  margin: 0;
  color: inherit;
  font: inherit;
}

body.category-page .nm023-catalog .country-card:hover figcaption,
body.category-page .nm023-catalog .country-card:focus-visible figcaption {
  color: var(--nm023-green-deep);
  transform: none;
}

body.category-page .nm023-catalog .country-card:focus-visible {
  outline: 3px solid rgba(26, 98, 0, 0.28);
  outline-offset: 4px;
  border-radius: 10px;
}

/* Approved category-card preview: the full copy remains on the linked product page. */
body.category-page .nm023-card-description {
  min-height: 42px;
  margin: 8px 2px 0;
  overflow: hidden;
  display: -webkit-box;
  color: var(--nm023-muted);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* Prices remain in the authoritative card data for possible future reuse. */
body.category-page .nm023-catalog .category-product-card .product-card-price {
  display: none;
}

body.category-page .nm023-catalog .product-card-cta {
  margin-top: auto;
  padding-top: 12px;
}

body.category-page .nm023-catalog a.product-card-cta-link {
  width: 100%;
  font-family: inherit;
  height: 46px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--nm023-green);
  border-radius: 10px;
  background: var(--nm023-green);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

body.category-page .nm023-catalog a.product-card-cta-link:hover {
  border-color: var(--nm023-green-deep);
  background: var(--nm023-green-deep);
}

body.category-page .nm023-catalog a.product-card-cta-link:focus-visible {
  outline: 0;
  border-color: var(--nm023-green-deep);
  box-shadow: 0 0 0 3px rgba(26, 98, 0, 0.24);
}

body.category-page .nm023-catalog .category-grid-empty {
  display: none;
  grid-column: 1 / -1;
  width: 100%;
}

body.category-page .nm023-catalog .category-grid-empty.is-visible {
  display: flex;
}

body.category-page .nm023-catalog .category-empty-message {
  max-width: 720px;
  margin: 0 auto;
  padding: 22px;
  color: var(--nm023-muted);
  background: var(--nm023-surface-soft);
  border: 1px solid var(--nm023-border-green);
  border-radius: 10px;
}

body.category-page .nm023-info {
  width: 100%;
  padding: 58px 48px 62px;
  background: var(--nm023-panel);
}

body.category-page .nm023-info__inner {
  width: 100%;
  max-width: var(--nm023-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 48px;
}

body.category-page .nm023-info__inner .section-title {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--nm023-green-deep);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-align: start;
}

body.category-page .nm023-info__inner p {
  margin: 0;
  color: var(--nm023-ink);
  font-size: 16px;
  line-height: 1.7;
}

body.category-page .nm023-info__inner p + p {
  padding-inline-start: 48px;
  border-inline-start: 1px solid rgba(26, 98, 0, 0.2);
}

@media (max-width: 1024px) {
  body.category-page .nm023-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 768px) {
  body.category-page .nm023-hero {
    padding: 44px 20px 32px;
  }

  body.category-page .nm023-hero .section-title {
    font-size: clamp(31px, 8vw, 36px);
  }

  body.category-page .nm023-hero .section-title + p {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.65;
  }

  body.category-page .category-filter-panel {
    margin-top: 26px;
  }

  body.category-page .category-filter-list {
    justify-content: flex-start;
  }

  body.category-page .category-filter-caption {
    text-align: start;
  }

  body.category-page .category-filter-option {
    flex: 1 1 calc(50% - 5px);
    padding-inline: 12px;
  }

  body.category-page .nm023-catalog {
    padding: 38px 20px 50px;
    gap: 18px;
  }

  body.category-page .nm023-catalog > .section-title {
    font-size: 25px;
  }

  body.category-page .nm023-info {
    padding: 44px 20px 48px;
  }

  body.category-page .nm023-info__inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  body.category-page .nm023-info__inner .section-title {
    font-size: 26px;
  }

  body.category-page .nm023-info__inner p + p {
    padding: 18px 0 0;
    border-top: 1px solid rgba(26, 98, 0, 0.2);
    border-inline-start: 0;
  }

}

@media (max-width: 430px) {
  body.category-page .nm023-catalog {
    padding-inline: 16px;
  }

  body.category-page .nm023-catalog .product-card {
    padding: 12px;
  }

}

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