/* Hedge Trimmers page styles */

.ht-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background-image: url('/public/media/hedge-trimmer-hero.webp');
  background-size: cover;
  background-position: center;
  padding-block: var(--space-4xl);
}

.ht-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 42, 29, 0.25);
  z-index: 1;
}

.ht-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.ht-hero__content {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-lg);
  text-align: left;
}

.ht-hero__title {
  font-size: var(--text-display);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  font-weight: 600;
  color: var(--color-cream);
  margin: 0;
  max-width: 720px;
}

.ht-hero__subhead {
  font-size: var(--text-body-large);
  line-height: var(--leading-body-large);
  color: var(--color-cream);
  margin: 0;
  max-width: 560px;
}

.ht-hero__cta {
  min-height: 44px;
}

.ht-section-title {
  text-align: center;
  margin-block-end: var(--space-2xl);
}

.ht-section-title--left {
  text-align: left;
}

/* Product Range Overview */
.ht-range__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}

.ht-range-card {
  background-color: var(--color-cream);
  border: 1px solid var(--color-stone);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  min-width: 0;
  transition: border-color var(--transition-fast);
}

.ht-range-card:hover {
  border-color: var(--color-earth);
}

.ht-range-card h3 {
  margin: 0;
}

.ht-range-card p {
  margin: 0;
  max-width: 320px;
}

.ht-range-card__link {
  color: var(--color-forest);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
  margin-top: auto;
}

.ht-range-card__link:hover {
  color: var(--color-orange);
}

/* Power Source Comparison */
.ht-comparison__scroll {
  max-width: 1000px;
  margin-inline: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-stone);
  border-radius: var(--radius-md);
}

.ht-comparison__table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: var(--text-body-small);
  line-height: var(--leading-body-small);
}

.ht-comparison__table th,
.ht-comparison__table td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--color-stone);
}

.ht-comparison__table thead th {
  background-color: var(--color-forest);
  color: var(--color-cream);
  font-family: var(--font-body);
  font-size: var(--text-overline);
  font-weight: 600;
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  position: sticky;
  top: 0;
  z-index: 1;
}

.ht-comparison__table tbody tr:nth-child(even) {
  background-color: var(--color-cream-warm);
}

.ht-comparison__table tbody tr:hover {
  background-color: var(--color-orange-soft);
}

.ht-comparison__table tbody th {
  font-weight: 600;
  color: var(--color-ink);
  background-color: var(--color-cream-warm);
}

.ht-comparison__hint {
  text-align: center;
  font-size: var(--text-caption);
  color: var(--color-earth-light);
  margin-block-start: var(--space-sm);
  display: none;
}

/* Featured Products */
.ht-featured__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-lg);
}

.ht-product-card {
  background-color: var(--color-cream);
  border: 1px solid var(--color-stone);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: border-color var(--transition-fast);
}

.ht-product-card:hover {
  border-color: var(--color-earth);
}

.ht-product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--color-cream-warm);
}

.ht-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ht-product-card__quick-view {
  position: absolute;
  inset-inline: var(--space-md);
  bottom: var(--space-md);
  background-color: var(--color-cream);
  color: var(--color-forest);
  border: 1px solid var(--color-stone);
  border-radius: var(--radius-sm);
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--text-body-small);
  font-weight: 600;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  pointer-events: none;
}

.ht-product-card:hover .ht-product-card__quick-view,
.ht-product-card:focus-within .ht-product-card__quick-view {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ht-product-card__body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  min-width: 0;
}

.ht-product-card__name {
  margin: 0;
  font-size: var(--text-h4);
  line-height: var(--leading-h4);
  font-weight: 500;
  color: var(--color-ink);
  overflow-wrap: break-word;
}

.ht-product-card__brand {
  margin: 0;
  font-size: var(--text-body-small);
  color: var(--color-earth-light);
}

.ht-product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.ht-product-card__price {
  font-size: var(--text-body-large);
  font-weight: 600;
  color: var(--color-ink);
}

.ht-product-card__rating {
  font-size: var(--text-body-small);
  color: var(--color-orange);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
}

.ht-product-card__rating span {
  color: var(--color-earth-light);
  font-size: var(--text-caption);
}

.ht-wishlist-btn {
  align-self: flex-start;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-earth-light);
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.ht-wishlist-btn:hover {
  background-color: var(--color-cream-warm);
  color: var(--color-orange);
}

.ht-wishlist-btn.is-active {
  color: var(--color-orange);
}

/* Buying Guide */
.ht-buying-guide__layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(0, 400px);
  gap: var(--space-2xl);
  align-items: start;
}

.ht-buying-guide__content {
  min-width: 0;
}

.ht-buying-guide__block {
  margin-block-end: var(--space-xl);
}

.ht-buying-guide__block:last-child {
  margin-block-end: 0;
}

.ht-buying-guide__block h3 {
  margin-block-end: var(--space-sm);
}

.ht-buying-guide__block p {
  max-width: 720px;
  margin-block-end: var(--space-sm);
}

.ht-buying-guide__block ul {
  margin-block-end: 0;
}

.ht-buying-guide__media {
  min-width: 0;
}

.ht-buying-guide__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

/* Safety and Technique */
.ht-safety__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
}

.ht-safety-card {
  background-color: var(--color-cream-warm);
  border: 1px solid var(--color-stone);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  min-width: 0;
  transition: border-color var(--transition-fast);
}

.ht-safety-card:hover {
  border-color: var(--color-earth);
}

.ht-safety-card h3 {
  margin: 0;
}

.ht-safety-card p {
  margin: 0;
  max-width: 400px;
}

.ht-safety-card ul {
  margin: 0;
  padding-inline-start: var(--space-lg);
}

/* Delivery and Returns */
.ht-delivery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
}

.ht-delivery-card {
  background-color: var(--color-cream);
  border: 1px solid var(--color-stone);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  min-width: 0;
}

.ht-delivery-card__icon {
  font-size: 2rem;
  line-height: 1;
}

.ht-delivery-card h3 {
  margin: 0;
}

.ht-delivery-card p {
  margin: 0;
  max-width: 400px;
}

.ht-delivery-card ul {
  margin: 0;
  padding-inline-start: var(--space-lg);
}

/* Final CTA */
.ht-final-cta {
  background-color: var(--color-forest-deep);
  color: var(--color-cream);
  padding-block: var(--space-4xl);
}

.ht-final-cta__inner {
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.ht-final-cta__title {
  color: var(--color-cream);
  margin: 0;
  max-width: 600px;
}

.ht-final-cta__text {
  color: var(--color-cream);
  margin: 0;
  max-width: 480px;
  font-size: var(--text-body-large);
  line-height: var(--leading-body-large);
}

.ht-final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}

.ht-final-cta__actions .btn {
  min-height: 44px;
}

/* Responsive */
@media (max-width: 63.9375rem) {
  .ht-featured__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ht-buying-guide__layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .ht-buying-guide__media {
    order: 2;
  }

  .ht-buying-guide__content {
    order: 1;
  }
}

@media (max-width: 47.9375rem) {
  .ht-hero {
    min-height: 440px;
    padding-block: var(--space-3xl);
  }

  .ht-hero__content {
    align-items: center;
    text-align: center;
  }

  .ht-hero__title {
    max-width: 100%;
  }

  .ht-hero__subhead {
    max-width: 100%;
  }

  .ht-range__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .ht-range-card p {
    max-width: none;
  }

  .ht-comparison__hint {
    display: block;
  }

  .ht-featured__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md);
  }

  .ht-safety__grid,
  .ht-delivery__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .ht-safety-card p,
  .ht-delivery-card p {
    max-width: none;
  }

  .ht-final-cta {
    padding-block: var(--space-3xl);
  }

  .ht-final-cta__actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .ht-final-cta__actions .btn {
    width: 100%;
  }
}

@media (max-width: 29.9375rem) {
  .ht-hero {
    min-height: 400px;
    padding-block: var(--space-2xl);
  }

  .ht-hero__title {
    font-size: clamp(1.875rem, 1.4rem + 1.8vw, 2.25rem);
  }

  .ht-hero__subhead {
    font-size: var(--text-body);
    line-height: var(--leading-body);
  }

  .ht-featured__grid {
    grid-template-columns: 1fr;
  }

  .ht-product-card__quick-view {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ht-range-card,
  .ht-product-card,
  .ht-safety-card,
  .ht-product-card__quick-view,
  .ht-wishlist-btn,
  .ht-range-card__link {
    transition: none;
  }

  .ht-product-card__quick-view {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}
