/* Hero Section with Background Image & Text Overlay */
.hero {
  position: relative;
  min-height: 550px;
  height: 850px;
  padding-top: 80px; /* prevents overlap with the header */
  background-image: url('../images/products.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

.hero .hero-overlay {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 50px;
  border-radius: 12px;
  max-width: 900px;
  margin: 0 20px;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 10px;
  padding: 10px 20px;
  border-radius: 5px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  margin-top: 10px;
}

/* Products Page Layout */
.products-page {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: #f9f9f9;
  color: #333;
  padding-top: 30px;
}

.product-intro {
  text-align: center;
  padding: 50px 20px;
}

.section-heading {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #1a2a46;
}

.section-tagline {
  font-size: 1.15em;
  margin-bottom: 30px;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  color: #666;
}

.section-heading::after {
  content: '';
  display: block;
  width: 100px;
  height: 7px;
  background: linear-gradient(to right, #007bff, #0056b3, #007bff);
  margin: 10px auto 0;
  border-radius: 4px;
  opacity: 0.95;
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.6);
}

/* Product Category Section */
.product-category {
  padding: 40px 20px;
  background-color: #fff;
  margin-bottom: 30px;
  text-align: center;
}

.category-title {
  font-size: 2rem;
  color: #1a2a46;
  margin-bottom: 25px;
  border-bottom: 2px solid #ccc;
  padding-bottom: 10px;
}

.category-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 7px;
  background: linear-gradient(to right, #007bff, #0056b3, #007bff);
  margin: 10px auto 0;
  border-radius: 4px;
  opacity: 0.95;
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.6);
}

/* Product Grid - FIXED CENTERING */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  justify-content: center;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Product Card - FIXED CENTERING */
.product-card {
  background-color: #ffffffe3;
  border-radius: 12px;
  padding: 45px 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid #eee;
  width: 100%;
  max-width: 300px;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.product-card img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  border-radius: 0;
  margin-bottom: 15px;
}

.product-card h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: #0056b3;
}

.product-card .price {
  color: #1144dc;
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.product-card p {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.product-card .note {
  font-size: 0.85rem;
  color: #888;
}

/* Call-To-Action Banner - FIXED BUTTON TEXT ALIGNMENT */
.cta-banner {
  background-color: #1a2a46;
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}

.cta-banner h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.cta-banner p {
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.cta-banner .btn {
  background-color: #0056b3;
  color: #fff;
  padding: 14px 30px;
  border-radius: 30px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: normal;
}

.cta-banner .btn:hover {
  background-color: #003d80;
  transform: translateY(-3px);
}

/* ============================================
   MOBILE RESPONSIVE OPTIMIZATIONS
   ============================================ */

/* Tablet (992px and below) */
@media (max-width: 992px) {
  /* Hero Section */
  .hero {
    height: 700px;
    padding-top: 80px;
  }

  .hero .hero-overlay {
    padding: 40px 30px;
    max-width: 700px;
    margin: 0 20px;
  }

  .hero-title {
    font-size: 2.5rem;
    padding: 8px 15px;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    padding: 8px 15px;
  }

  /* Product Intro */
  .product-intro {
    padding: 40px 20px;
  }

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

  .section-tagline {
    font-size: 1.05em;
    padding: 0 15px;
  }

  /* Product Category */
  .product-category {
    padding: 35px 20px;
    margin-bottom: 25px;
  }

  .category-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .category-title::after {
    width: 80px;
    height: 6px;
  }

  /* Product Grid */
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 0 15px;
  }

  /* Product Card */
  .product-card {
    max-width: 280px;
    padding: 40px 20px;
  }

  .product-card img {
    width: 130px;
    height: 130px;
  }

  .product-card h4 {
    font-size: 1.1rem;
  }

  .product-card p {
    font-size: 0.9rem;
  }

  /* CTA Banner */
  .cta-banner {
    padding: 50px 20px;
  }

  .cta-banner h2 {
    font-size: 1.8rem;
  }

  .cta-banner p {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .cta-banner .btn {
    padding: 12px 28px;
  }
}

/* Mobile (768px and below) - FIXED HEADER AND CENTERING */
@media (max-width: 768px) {
  /* Make header fixed on mobile for products page */
  body .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(26, 42, 70, 0.95);
    backdrop-filter: blur(10px);
  }

  /* Hero Section */
  .hero {
    height: 600px;
    min-height: 500px;
    padding-top: 150px;
    background-attachment: scroll;
  }

  .hero .hero-overlay {
    padding: 35px 25px;
    max-width: 90%;
    margin: 0 auto;
  }

  .hero-title {
    font-size: 2rem;
    margin-bottom: 8px;
    padding: 6px 12px;
  }

  .hero-subtitle {
    font-size: 1rem;
    padding: 6px 12px;
    margin-top: 8px;
  }

  /* Product Intro */
  .product-intro {
    padding: 35px 15px;
  }

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

  .section-heading::after {
    width: 70px;
    height: 5px;
    margin: 8px auto 0;
  }

  .section-tagline {
    font-size: 1rem;
    padding: 0 10px;
    margin-bottom: 25px;
  }

  /* Product Category */
  .product-category {
    padding: 30px 15px;
    margin-bottom: 20px;
  }

  .category-title {
    font-size: 1.6rem;
    margin-bottom: 18px;
    padding-bottom: 8px;
  }

  .category-title::after {
    width: 70px;
    height: 5px;
  }

  /* Product Grid - MOBILE CENTERING */
  .product-grid {
    grid-template-columns: 1fr;
    gap: 25px;

  }

  /* Product Card - MOBILE CENTERING */
  .product-card {
    padding: 35px 20px;
  }

  .product-card img {
    width: 120px;
    height: 120px;
  }

  .product-card h4 {
    font-size: 1.05rem;
  }

  .product-card p {
    font-size: 0.88rem;
  }

  .product-card .note {
    font-size: 0.8rem;
  }

  /* CTA Banner */
  .cta-banner {
    padding: 45px 20px;
  }

  .cta-banner h2 {
    font-size: 1.6rem;
    margin-bottom: 12px;
  }

  .cta-banner p {
    font-size: 0.95rem;
    margin-bottom: 18px;
    padding: 0 10px;
  }

  .cta-banner .btn {
    padding: 11px 25px;
    font-size: 0.95rem;
  }
}

/* Small Mobile (576px and below) - CENTERING */
@media (max-width: 576px) {
  /* Hero Section */
  .hero {
    height: 500px;
    min-height: 450px;
    padding-top: 140px;
  }

  .hero .hero-overlay {
    padding: 30px 20px;
    max-width: 95%;
    border-radius: 10px;
  }

  .hero-title {
    font-size: 1.7rem;
    margin-bottom: 6px;
    padding: 5px 10px;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    padding: 5px 10px;
  }

  /* Product Intro */
  .product-intro {
    padding: 30px 12px;
  }

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

  .section-heading::after {
    width: 60px;
    height: 4px;
  }

  .section-tagline {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

  /* Product Category */
  .product-category {
    padding: 25px 12px;
    margin-bottom: 18px;
  }

  .category-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    padding-bottom: 6px;
  }

  .category-title::after {
    width: 60px;
    height: 4px;
  }

  /* Product Grid - SMALL MOBILE CENTERING */
  .product-grid {
    gap: 18px;
    padding: 0 15px;
  }

  /* Product Card - SMALL MOBILE CENTERING */
  .product-card {
    width: 100%;
    max-width: 100%;
    padding: 30px 18px;
  }

  .product-card img {
    width: 110px;
    height: 110px;
  }

  .product-card h4 {
    font-size: 1rem;
    margin-bottom: 4px;
  }

  .product-card .price {
    font-size: 1rem;
  }

  .product-card p {
    font-size: 0.85rem;
    margin-bottom: 5px;
  }

  .product-card .note {
    font-size: 0.75rem;
  }

  /* CTA Banner */
  .cta-banner {
    padding: 40px 15px;
  }

  .cta-banner h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
  }

  .cta-banner p {
    font-size: 0.88rem;
    margin-bottom: 15px;
  }

  .cta-banner .btn {
    padding: 10px 22px;
    font-size: 0.9rem;
  }
}

/* Extra Small Mobile (480px and below) - CENTERING */
@media (max-width: 480px) {
  /* Hero Section */
  .hero {
    height: 450px;
    min-height: 400px;
    padding-top: 130px;
  }

  .hero .hero-overlay {
    padding: 25px 15px;
    max-width: 95%;
  }

  .hero-title {
    font-size: 1.5rem;
    margin-bottom: 5px;
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }

  /* Product Intro */
  .product-intro {
    padding: 25px 10px;
  }

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

  .section-heading::after {
    width: 50px;
    height: 3px;
  }

  .section-tagline {
    font-size: 0.85rem;
  }

  /* Product Category */
  .product-category {
    padding: 20px 10px;
  }

  .category-title {
    font-size: 1.3rem;
  }

  .category-title::after {
    width: 50px;
    height: 3px;
  }

  /* Product Grid - EXTRA SMALL MOBILE CENTERING */
  .product-grid {
    padding: 0 10px;
  }

  /* Product Card - EXTRA SMALL MOBILE CENTERING */
  .product-card {
    padding: 25px 15px;
    width: 100%;
    max-width: 100%;
  }

  .product-card img {
    width: 100px;
    height: 100px;
  }

  .product-card h4 {
    font-size: 0.95rem;
  }

  .product-card p {
    font-size: 0.8rem;
  }

  .product-card .note {
    font-size: 0.7rem;
  }

  /* CTA Banner */
  .cta-banner {
    padding: 35px 12px;
  }

  .cta-banner h2 {
    font-size: 1.3rem;
  }

  .cta-banner p {
    font-size: 0.82rem;
  }

  .cta-banner .btn {
    padding: 9px 20px;
    font-size: 0.85rem;
  }
}

/* Extra Extra Small Mobile (375px and below) - CENTERING */
@media (max-width: 375px) {
  /* Hero Section */
  .hero {
    height: 400px;
    min-height: 350px;
    padding-top: 120px;
  }

  .hero .hero-overlay {
    padding: 20px 12px;
    max-width: 95%;
  }

  .hero-title {
    font-size: 1.3rem;
    margin-bottom: 4px;
    padding: 4px 8px;
  }

  .hero-subtitle {
    font-size: 0.8rem;
    padding: 4px 8px;
  }

  /* Product Intro */
  .product-intro {
    padding: 20px 8px;
  }

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

  .section-heading::after {
    width: 45px;
    height: 3px;
    margin: 6px auto 0;
  }

  .section-tagline {
    font-size: 0.8rem;
    margin-bottom: 18px;
  }

  /* Product Category */
  .product-category {
    padding: 18px 8px;
    margin-bottom: 15px;
  }

  .category-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ccc;
  }

  .category-title::after {
    width: 45px;
    height: 3px;
    margin: 6px auto 0;
  }

  /* Product Grid - XXS MOBILE CENTERING */
  .product-grid {
    gap: 15px;
    padding: 0 10px;
  }

  /* Product Card - XXS MOBILE CENTERING */
  .product-card {
    padding: 22px 12px;
    width: 100%;
    max-width: 100%;
  }

  .product-card img {
    width: 90px;
    height: 90px;
    margin-bottom: 12px;
  }

  .product-card h4 {
    font-size: 0.9rem;
    margin-bottom: 3px;
  }

  .product-card .price {
    font-size: 0.95rem;
    margin-bottom: 6px;
  }

  .product-card p {
    font-size: 0.75rem;
    margin-bottom: 4px;
  }

  .product-card .note {
    font-size: 0.65rem;
  }

  /* CTA Banner */
  .cta-banner {
    padding: 30px 10px;
  }

  .cta-banner h2 {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .cta-banner p {
    font-size: 0.78rem;
    margin-bottom: 12px;
  }

  .cta-banner .btn {
    padding: 8px 18px;
    font-size: 0.8rem;
  }
}

/* Landscape orientation fixes for mobile devices */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    height: 100vh;
    min-height: 350px;
    padding-top: 120px;
  }

  .hero-title {
    font-size: 1.4rem;
    margin-bottom: 5px;
  }

  .hero-subtitle {
    font-size: 0.85rem;
    margin-top: 5px;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Increase touch targets for better mobile UX */
  .cta-banner .btn {
    min-height: 44px;
    min-width: 44px;
  }

  /* Remove hover effects on touch devices */
  .product-card {
    transition: none;
  }

  .product-card:active {
    transform: scale(0.98);
  }
}

/* Prevent text from being too small on any device */
@media (max-width: 320px) {
  .hero {
    height: 350px;
    min-height: 300px;
    padding-top: 110px;
  }

  .hero .hero-overlay {
    padding: 18px 10px;
  }

  .hero-title {
    font-size: 1.1rem;
  }

  .hero-subtitle {
    font-size: 0.75rem;
  }

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

  .category-title {
    font-size: 1.1rem;
  }

  /* Product Grid - 320px CENTERING */
  .product-grid {
    padding: 0 8px;
  }

  /* Product Card - 320px CENTERING */
  .product-card {
    padding: 20px 10px;
    width: 100%;
    max-width: 100%;
  }

  .product-card h4 {
    font-size: 0.85rem;
  }

  .product-card p {
    font-size: 0.7rem;
  }

  .cta-banner h2 {
    font-size: 1.1rem;
  }

  .cta-banner p {
    font-size: 0.75rem;
  }
}
/* End of products.css */
