/* Inner pages + shared components (Nuestras Manos) */

.main-menu a.active {
  color: var(--secondary-color);
  font-weight: 600;
}

.nm-page-banner {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
}

.nm-page-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(5, 27, 13, 0.85) 0%, rgba(12, 119, 53, 0.55) 100%);
}

.nm-page-banner__inner {
  position: relative;
  z-index: 1;
}

.nm-page-banner__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

.nm-page-banner__lead {
  max-width: 640px;
  opacity: 0.95;
}

.nm-breadcrumb .breadcrumb {
  background: transparent;
}

.nm-breadcrumb .breadcrumb-item,
.nm-breadcrumb .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.9);
}

.nm-breadcrumb .breadcrumb-item.active {
  color: var(--secondary-color);
}

.nm-content-section {
  padding-top: 100px;
  padding-bottom: 100px;
}

.nm-prose p {
  margin-bottom: 1rem;
  color: var(--text-color);
  line-height: 1.75;
}

.nm-value-card {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 28px 24px;
  height: 100%;
  background: var(--white-color);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.nm-value-card:hover {
  box-shadow: 0 12px 40px rgba(24, 39, 30, 0.08);
  transform: translateY(-2px);
}

.nm-value-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-color);
  color: var(--primary-color);
  font-size: 1.35rem;
  margin-bottom: 16px;
}

.nm-product-card {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white-color);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.nm-product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.nm-product-card .body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.nm-product-card .price {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.15rem;
}

.nm-cart-table thead th {
  background: var(--gray-color);
  color: var(--heading-color);
  font-weight: 600;
  border-bottom: none;
}

.nm-cart-table td,
.nm-cart-table th {
  vertical-align: middle;
}

.nm-cart-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
}

.nm-qty-input {
  max-width: 72px;
}

.nm-blog-card {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white-color);
  height: 100%;
}

.nm-blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.nm-blog-card .body {
  padding: 24px;
}

.nm-blog-meta {
  font-size: 0.875rem;
  color: #6b7280;
}

/* Header cart (all pages) */
.nm-nav-actions {
  margin-right: 16px;
}

@media (min-width: 992px) {
  .nm-nav-actions {
    margin-right: 24px;
  }
}

.nm-cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--white-color);
  background: var(--primary-color);
  border: 1px solid var(--primary-color);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.nm-cart-link:hover {
  color: var(--white-color);
  background: #0a5c2a;
  border-color: #0a5c2a;
  transform: scale(1.05);
}

.header-area.sticky .nm-cart-link {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white-color);
}

.header-area.sticky .nm-cart-link:hover {
  background: #0a5c2a;
  border-color: #0a5c2a;
  color: var(--white-color);
}

.nm-cart-link__icon {
  font-size: 1.15rem;
  line-height: 1;
}

.nm-cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  background: var(--secondary-color);
  color: var(--heading-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nm-cart-badge[hidden] {
  display: none !important;
}

@media (max-width: 991.98px) {
  .nm-cart-link {
    color: var(--white-color);
    background: var(--primary-color);
    border-color: var(--primary-color);
  }

  .nm-cart-link:hover {
    color: var(--white-color);
    background: #0a5c2a;
    border-color: #0a5c2a;
  }
}

.nm-cta-strip {
  background: linear-gradient(90deg, var(--primary-color), #0a5c2a);
  color: var(--white-color);
  padding: 48px 0;
  border-radius: 16px;
}

.nm-cta-strip h3 {
  color: var(--white-color);
}

.nm-contact-card {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  height: 100%;
  background: var(--white-color);
}

.nm-contact-card .icon {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 12px;
}
