/* ── Breadcrumb ─────────────────────────────────────────────── */
.sub-breadcrumb {
  padding: 12px 32px;
  background: #fff;
  border-bottom: 1px solid #e8ede9;
}
.sub-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;
}
.sub-breadcrumb a {
  color: #2e7d52;
  text-decoration: none;
  transition: color 0.15s;
}
.sub-breadcrumb a:hover { color: #1b5436; }
.sub-breadcrumb .sep    { color: #b0bdb3; font-size: 0.7rem; }
.sub-breadcrumb .active { color: #6b7b70; }

/* ── Hero (split layout) ─────────────────────────────────────── */
.sub-hero {
  background: #fff;
  border-bottom: 1px solid #e8ede9;
  overflow: hidden;
}

.sub-hero__container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 44px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 52px;
}

/* Text side */
.sub-hero__content { color: #1b3a26; }

.sub-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.1;
  color: #1b3a26;
  letter-spacing: -0.03em;
}

.sub-hero__desc {
  font-size: 0.9rem;
  color: #6b7b70;
  max-width: 92%;
  margin: 0;
  line-height: 1.7;
}

/* Image side */
.sub-hero__media {
  display: flex;
  justify-content: center;
}

.sub-hero__image {
  width: 100%;
  max-width: 440px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #e4ebe6;
  transition: transform 0.3s ease;
}
.sub-hero__image:hover { transform: scale(1.02); }

.sub-hero__placeholder {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 0.75;
  background: #eaf3ec;
  border-radius: 10px;
  border: 1px solid #c8dece;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #5a9e74;
}
.sub-hero__placeholder .material-icons {
  font-size: 3rem;
  opacity: 0.4;
}
.sub-hero__placeholder span {
  font-weight: 600;
  font-size: 0.95rem;
  color: #3d7a57;
}

/* ── Sort / Filter Toolbar ───────────────────────────────────── */
.sub-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 32px;
  background: #fff;
  border-bottom: 1px solid #e8ede9;
  flex-wrap: wrap;
  gap: 10px;
  top: var(--header-h);
  z-index: 100;
}

.sub-toolbar__showing {
  font-size: 0.78rem;
  color: #8a9e90;
  letter-spacing: 0.01em;
}
.sub-toolbar__showing strong {
  color: #1b3a26;
  font-weight: 600;
}

.sub-toolbar__right { display: flex; align-items: center; gap: 8px; }

/* Sort dropdown */
.sub-sort-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sub-sort-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b7b70;
  white-space: nowrap;
}

.sub-sort-select {
  padding: 6px 32px 6px 12px;
  border: 1px solid #d5e4da;
  border-radius: 2px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b7b70' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  -webkit-appearance: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1b3a26;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  min-width: 160px;
}
.sub-sort-select:hover {
  border-color: #2e7d52;
}
.sub-sort-select:focus {
  outline: none;
  border-color: #1b5436;
  box-shadow: 0 0 0 3px rgba(46, 125, 82, 0.12);
}

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

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

/* ── Product Grid ────────────────────────────────────────────── */
.sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}

/* ── Product Card (now an <a> tag) ───────────────────────────── */
.prod-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e4ebe6;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.prod-card:hover {
  transform: translateY(-4px);
  border-color: #a8cdb5;
  box-shadow: 0 8px 24px rgba(27, 84, 54, 0.1);
}

.prod-card__img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #eaf3ec;
}

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

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

.prod-card__discount {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #c0392b;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 2px;
  letter-spacing: 0.05em;
}

/* Card body */
.prod-card__body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prod-card__name {
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
  color: #1b3a26;
  transition: color 0.15s;
}
.prod-card:hover .prod-card__name { color: #2e7d52; }

.prod-card__desc {
  font-size: 0.77rem;
  color: #8a9e90;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.prod-card__pricing {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 8px;
}

.prod-card__price {
  font-size: 1rem;
  font-weight: 500;
  color: #1b5436;
}

.prod-card__mrp {
  font-size: 0.76rem;
  color: #aab5ae;
  text-decoration: line-through;
}

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

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sub-hero__container {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 20px;
  }
  .sub-hero__media { order: -1; }
  .sub-hero__image,
  .sub-hero__placeholder { max-width: 100%; }
  .sub-hero__desc { max-width: 100%; }
  .sub-toolbar { padding: 10px 16px; }
  .sub-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }
  .sub-container { padding: 0 16px; }
}

@media (max-width: 480px) {
  .sub-hero__title { font-size: 1.6rem; }
  .sub-sort-select { font-size: 0.72rem; min-width: 140px; }
  .sub-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .prod-card__body { padding: 10px 12px 12px; }
}