/* Products Index Page Styles */

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  padding: var(--space-2xl) 0;
  background-color: #ececec;
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero__container {
    grid-template-columns: 60% 40%;
  }
}

.hero__content h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-red-dark);
  margin-bottom: var(--space-lg);
  line-height: 1.2;
}

.hero__content p {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-grey-dark);
  margin-bottom: var(--space-lg);
}

.hero__image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

/* ========================================
   ANCHOR LINKS
   ======================================== */

.anchor-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-xl);
}

.btn--anchor {
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--font-size-sm);
  border-radius: 0;
  border: none;
  background-color: var(--color-white);
  color: var(--color-red);
}

.btn--anchor:hover,
.btn--anchor:focus {
  background-color: var(--color-red);
  color: var(--color-white);
}

@media (max-width: 767px) {
  .anchor-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .btn--anchor {
    width: 100%;
    text-align: center;
  }
}

/* ========================================
   PRODUCT SECTIONS
   ======================================== */

.product-category {
  padding: var(--space-2xl) 0;
}

.product-category:first-of-type {
  padding-top: var(--space-xl);
}

.product-category h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: var(--space-lg);
}

/* ========================================
   PRODUCT GRID
   ======================================== */

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

/* ========================================
   PRODUCT CARD
   ======================================== */

.product-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-white);
  border: 2px solid var(--color-red-dark);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  transition: all 0.3s ease;
  overflow: hidden;
}

.product-card:hover,
.product-card:focus {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  border-color: var(--color-red-dark);
}

.product-card__image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background-color: var(--color-bg-secondary);
  flex-shrink: 0;
}

.product-card__content {
  padding: 1rem;
  text-align: center;
  background-color: var(--color-red-dark);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.product-card__name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.3;
  margin: 0;
}

.product-card__subtitle {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-white);
  line-height: 1.4;
  margin: 0;
  font-weight: 400;
  opacity: 0.95;
}

/* ========================================
   SMOOTH SCROLLING
   ======================================== */

html {
  scroll-behavior: smooth;
}

/* Offset for anchor links (to account for fixed header if any) */
.product-category {
  scroll-margin-top: var(--space-xl);
}

/* ========================================
   RESPONSIVE TYPOGRAPHY
   ======================================== */

@media (max-width: 767px) {
  .hero__content h1 {
    font-size: 2rem;
  }

  .hero__content p {
    font-size: 1rem;
  }

  .product-category h2 {
    font-size: 1.5rem;
  }

  .product-card__name {
    font-size: 1.25rem;
  }
}
