/* ── Breadcrumb ─────────────────────────────────────────────── */
.cat-breadcrumb {
  padding: 12px 32px;
  background: #fff;
  border-bottom: 1px solid #e8ede9;
}

.cat-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  margin: 0;
  padding: 0;
  list-style: none;
  letter-spacing: 0.01em;
}

.cat-breadcrumb a {
  color: #2e7d52;
  text-decoration: none;
  transition: color 0.15s;
}
.cat-breadcrumb a:hover {
  color: #1b5436;
}

.cat-breadcrumb .sep {
  color: #b0bdb3;
  font-size: 0.7rem;
}
.cat-breadcrumb .active {
  color: #6b7b70;
}

/* ── Hero ────────────────────────────────────────────────────── */
.cat-hero {
  position: relative;
  height: 300px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #0d3320df;
}

@media (max-width: 640px) {
  .cat-hero { height: 220px; }
}

.cat-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  transition: opacity 0.4s ease;
}

.cat-hero__bg--fallback {
  background: linear-gradient(160deg, #0d3320 0%, #1a5c38 60%, #236b42 100%);
  opacity: 1;
}

.cat-hero__content {
  position: relative;
  z-index: 2;
  padding: 32px 40px;
  color: #fff;
  max-width: 680px;
}

.cat-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 10px;
  letter-spacing: -0.03em;
  color: #fff;
}

.cat-hero__desc {
  font-size: 0.9rem;
  color: white;
  margin: 0 0 18px;
  max-width: 460px;
  line-height: 1.65;
}

.cat-hero__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-hero__count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.01em;
}

.cat-hero__count .material-icons {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ── Section ─────────────────────────────────────────────────── */
.cat-section {
  padding: 44px 0 64px;
  background: #f5f7f5;
}

.cat-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Section header */
.cat-section-header {
  margin-bottom: 32px;
}

.cat-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 700;
  color: #1b3a26;
  letter-spacing: -0.025em;
  margin: 0;
}

/* ── SubCategory Grid ────────────────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* ── SubCategory Card ────────────────────────────────────────── */
.subcat-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e4ebe6;
  transition: border-color 0.2s, transform 0.2s;
}

.subcat-card:hover {
  transform: translateY(-4px);
  border-color: #a8cdb5;
  text-decoration: none;
  color: inherit;
}

/* Image area */
.subcat-card__img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eaf3ec;
}

.subcat-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.subcat-card:hover .subcat-card__img {
  transform: scale(1.05);
}

.subcat-card__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eaf3ec;
}
.subcat-card__img-placeholder .material-icons {
  font-size: 2.8rem;
  color: #5a9e74;
  opacity: 0.3;
}

/* Card body */
.subcat-card__body {
  padding: 18px 20px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.subcat-card__name {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: #1b3a26;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
  transition: color 0.15s;
}
.subcat-card:hover .subcat-card__name {
  color: #2e7d52;
}

.subcat-card__desc {
  font-size: 0.8rem;
  color: #7a8f80;
  margin: 0;
  line-height: 1.6;
  flex: 1;
}

/* Card footer */
.subcat-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #eef2ef;
}

.subcat-card__count {
  font-size: 0.72rem;
  color: #9aaa9e;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.subcat-card__arrow {
  width: 26px;
  height: 26px;
  background: #f0f5f1;
  border: 1px solid #d5e4da;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #3d7a57;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.subcat-card:hover .subcat-card__arrow {
  background: #1b5436;
  border-color: #1b5436;
  color: #fff;
  transform: translateX(2px);
}

/* ── Empty State ─────────────────────────────────────────────── */
.cat-empty {
  text-align: center;
  padding: 72px 20px;
  color: #8a9e90;
}
.cat-empty .material-icons {
  font-size: 3.2rem;
  color: #ccd8ce;
  display: block;
  margin-bottom: 14px;
}
.cat-empty p {
  font-size: 0.9rem;
  margin-bottom: 24px;
  line-height: 1.6;
}
.cat-empty strong {
  color: #3d5c45;
}
.cat-empty__back {
  display: inline-block;
  padding: 10px 26px;
  background: #1b5436;
  color: #fff;
  border-radius: var(12px, 6px);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.2s;
}
.cat-empty__back:hover {
  background: #2e7d52;
  color: #fff;
  transform: translateY(-2px);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .cat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .cat-hero__content {
    padding: 24px 20px;
  }
  .subcat-card__body {
    padding: 12px 14px 10px;
  }
  .cat-container {
    padding: 0 16px;
  }
}

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