/* General Styles */
body {
  font-family: Arial, sans-serif;
  background-color: #f8f9fa;
  margin: 0;
  padding: 0;
}

h1, h3, p {
  margin: 0;
  padding: 0;
}

/* Page Header */
.page-header {
  padding: 40px 0;
  background-color: #033870;
  color: #fff;
}

.page-header h1 {
  font-size: 2.5rem;
}

.page-header .lead {
  font-size: 1.1rem;
}
/* Container & Grid */
.container {
  width: 100%;
  padding: 0 15px;
  margin: 0 auto;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

/* Product Card */
.product-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  transition: box-shadow 0.3s ease;
}
.product-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* Responsive Image Container */
.product-image {
  width: 100%;
  aspect-ratio: 4 / 3;   /* landscape frame by default */
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Product Info */
.product-info {
  padding: 15px;
}
.product-info h3 {
  font-size: 1.2rem;
  color: #033870;
  margin-bottom: 10px;
}
.product-category,
.product-brand {
  font-size: 0.9rem;
  color: #6c757d;
}
.product-link {
  display: inline-block;
  margin-top: 10px;
  background: #033870;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s ease;
}
.product-link:hover {
  background-color: #022f63;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .product-image {
    aspect-ratio: 3 / 2;  /* slightly taller for tablets */
  }
}
@media (max-width: 576px) {
  .product-image {
    aspect-ratio: 1 / 1;  /* square frame for mobile */
  }
  .product-info h3 {
    font-size: 1.1rem;
  }
  .product-link {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
}


/* Footer */
.footer {
  background-color: #022f63;
  color: #fff;
  padding: 40px 0 20px;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.footer-section {
  flex: 1 1 220px;
}

.footer-section h4 {
  margin-bottom: 15px;
  font-size: 1.1rem;
  border-bottom: 2px solid #fff;
  display: inline-block;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #fff;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #e0e0e0;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid #ccc;
  padding-top: 15px;
}

/* Newsletter */
.newsletter-form input[type="email"] {
  padding: 8px;
  border: none;
  border-radius: 4px;
  margin-right: 10px;
}

.newsletter-form .btn {
  background-color: #ffffff;
  color: #033870;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

.newsletter-form .btn:hover {
  background-color: #f1f1f1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 30px;
  }

  .product-image img {
    height: 180px;
  }

  .page-header h1 {
    font-size: 2rem;
  }
}
