/* ================================
   Responsive Adjustments
   Mobile-first tweaks for key breakpoints
   ================================ */

@media (max-width: 768px) {
  .site-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
  }
}

/* ---------- Global Typography ---------- */
@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }

  .section-heading {
    font-size: 1.75rem;
  }

  .section-subheading {
    font-size: 0.95rem;
  }

  .container {
    padding: 0 1.25rem;
  }
}

/* ---------- Hero Section (Homepage) ---------- */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
  }

  .hero-heading {
    font-size: 2.1rem;
  }

  .hero-subheading {
    font-size: 1rem;
  }
}

/* ---------- Grids ---------- */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {

  .grid-4,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  /* ---------- Product Grid: 10 rows × 2 columns ---------- */
  .product-grid.grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  /* Product cards for mobile */
  .product-grid.grid-3 .product-card {
    padding: 0.8rem;
  }

  .product-grid.grid-3 .product-card__image {
    aspect-ratio: 3 / 4;
    margin-bottom: 0.65rem;
  }

  .product-grid.grid-3 .product-card__category {
    font-size: 0.65rem;
    margin-bottom: 0.2rem;
  }

  .product-grid.grid-3 .product-card__name {
    font-size: 0.94rem;
    line-height: 1.3;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .product-grid.grid-3 .product-card__link {
    font-size: 0.85rem;
  }

  /* Wider content card on mobile */
  .content-card {
    width: calc(100% - 0.75rem);
    padding: 1rem;
  }
}

/* ---------- Homepage About Strip ---------- */
@media (max-width: 768px) {
  .about-strip-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    text-align: center;
  }
}

/* ---------- Contact Page Layout ---------- */
@media (max-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ---------- Footer ---------- */
@media (max-width: 768px) {
  .footer-main {
    padding: 2.5rem 0;
  }
}