/* Products Section Styles */
.oh-products-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4.5rem;
}

.oh-products-header h2 {
  margin-bottom: 1.25rem;
}

/* Products Grid */
.oh-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
  align-items: stretch;
}

/* Premium Product Card - Strict Equal Alignment */
.oh-product-card {
  background-color: var(--oh-bg-cream);
  border-radius: var(--oh-radius-md);
  border: 1px solid rgba(19, 44, 22, 0.08);
  box-shadow: var(--oh-shadow-sm);
  overflow: hidden;
  transition: var(--oh-transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Product Card Image - Fixed Uniform Dimensions */
.oh-product-card__img-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #f1f5ee;
}

.oh-product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card Body Layout */
.oh-product-card__body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.oh-product-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--oh-dark);
  margin-bottom: 0.75rem;
  line-height: 1.3;
  min-height: 3.25rem; /* Forces identical 2-line title height for perfect alignment across all cards */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.oh-product-card__desc {
  font-size: 0.95rem;
  color: var(--oh-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex-grow: 1;
}

/* Action Link / Button */
.oh-product-card__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1.25rem;
  background-color: var(--oh-bg-light);
  border-radius: var(--oh-radius-sm);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--oh-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: auto;
  border: 1px solid rgba(119, 194, 42, 0.25);
  transition: var(--oh-transition);
}

.oh-product-card__link svg {
  transition: transform 0.3s ease;
}

/* Hover Actions */
.oh-product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(119, 194, 42, 0.2);
  box-shadow: var(--oh-shadow-md);
}

.oh-product-card:hover .oh-product-card__img {
  transform: scale(1.08);
}

.oh-product-card:hover .oh-product-card__icon {
  transform: scale(1.1) rotate(5deg);
}

.oh-product-card:hover .oh-product-card__title {
  color: var(--oh-primary);
}

.oh-product-card:hover .oh-product-card__link svg {
  transform: translateX(6px);
}

/* Products Page Categories Grid */
.oh-category-detail-section {
  padding: 5rem 0;
  border-bottom: 1px solid rgba(19, 44, 22, 0.05);
}

.oh-category-detail-section:nth-child(even) {
  background-color: var(--oh-bg-cream);
}

.oh-category-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.oh-category-detail-section:nth-child(even) .oh-category-detail-grid {
  grid-template-columns: 1fr 1fr;
}

.oh-category-detail-section:nth-child(even) .oh-category-detail-grid > :first-child {
  order: 2;
}

.oh-category-detail-section:nth-child(even) .oh-category-detail-grid > :last-child {
  order: 1;
}

.oh-category-detail-img-container {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 350px;
  aspect-ratio: 4 / 3;
  border-radius: var(--oh-radius-md);
  overflow: hidden;
  box-shadow: var(--oh-shadow-md);
  background-color: #f1f5ee;
  border: 1px solid rgba(19, 44, 22, 0.08);
  margin: 0 auto;
}

.oh-category-detail-img-container img,
.oh-category-detail-img-container .oh-about-image,
.oh-category-detail-img-container .oh-category-detail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.oh-category-detail-img-container:hover img {
  transform: scale(1.05);
}

.oh-category-detail-content h3 {
  margin-bottom: 1.25rem;
}

.oh-category-detail-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
  list-style: none;
}

.oh-category-detail-list-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 550;
  font-size: 0.95rem;
  color: var(--oh-dark);
}

.oh-category-detail-list-item::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--oh-primary);
  border-radius: 50%;
}

@media (max-width: 992px) {
  .oh-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .oh-category-detail-grid,
  .oh-category-detail-section:nth-child(even) .oh-category-detail-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem;
  }
  .oh-category-detail-section:nth-child(even) .oh-category-detail-grid > :first-child {
    order: 1 !important;
  }
  .oh-category-detail-section:nth-child(even) .oh-category-detail-grid > :last-child {
    order: 2 !important;
  }
  .oh-category-detail-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .oh-products-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .oh-product-card__title {
    min-height: auto;
  }
  .oh-products-header {
    margin-bottom: 2.5rem;
  }
  .oh-product-card__img-wrapper {
    height: 190px;
  }
  .oh-category-detail-img-container {
    height: auto;
    aspect-ratio: 4 / 3;
    max-width: 100%;
  }
}
