/* General Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column; /* Arrange header, main, footer in a column */
  min-height: 100vh; /* Ensure the body is at least the height of the viewport */
}

main {
  flex: 1; /* Allow main content to grow and take up available space */
  padding: 20px;
}

footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 10px 0;
  width: 100%;
}

/* Header Styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #333;
  color: white;
}

header h1 {
  font-size: 24px;
  margin: 0;
}

header .nav-links {
  display: flex;
  gap: 15px;
}

header .nav-links a {
  text-decoration: none;
  color: white;
  font-size: 16px;
}

header .nav-links a:hover {
  text-decoration: underline;
}

.right-section {
  display: flex;
  align-items: center;
}

#search-input {
  padding: 5px 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 5px;
  max-width: 300px;
}

/* Responsive Header */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .right-section {
    width: 100%;
    margin-top: 10px;
  }

  #search-input {
    width: 100%;
    max-width: none;
  }
}

/* Company Name */
.company-name {
  font-weight: bold;
  font-size: 28px;
  color: white;
  text-decoration: none;
}

.company-name:hover {
  text-decoration: underline;
}

.page-title {
  font-size: 18px;
  color: #ddd;
}

/* Hero Section (index.html) */
#hero {
  text-align: center;
  padding: 50px 20px;
  background-color: #f4f4f4;
}

#hero h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

#hero p {
  font-size: 18px;
  margin-bottom: 20px;
  color: #555;
}

.cta-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
}

.cta-button:hover {
  background-color: #0056b3;
}

/* Featured Products Section (index.html) */
#featured-products {
  text-align: center;
  margin: 40px 0;
}

#featured-products h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
  justify-content: center;
}

.product-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  background: #f9f9f9;
  text-align: center;
}

.product-card img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 10px;
}

.product-card h3 {
  margin: 10px 0;
}

.product-card p {
  margin: 5px 0;
}

/* About Section (index.html) */
#about-us {
  text-align: center;
  margin: 40px 0;
}

#about-us h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

#about-us p {
  font-size: 16px;
  color: #555;
}

/* Contact Page (contact.html) */
#contact-info {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

#contact-info h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

#contact-info p {
  font-size: 16px;
  color: #555;
  margin-bottom: 20px;
}

#contact-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#contact-info ul li {
  font-size: 16px;
  margin-bottom: 10px;
}

#contact-info ul li strong {
  color: #333;
}

/* Secondary Navigation Bar */
.product-categories {
  background-color: #f4f4f4;
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
  text-align: center;
}

.product-categories .category-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.product-categories .category-button {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 8px 15px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.product-categories .category-button:hover {
  background-color: #ddd;
}

.product-categories .category-button.active {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
}

/* Product Details Section */
.details-container {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background-color: #f9f9f9;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.back-button {
  display: inline-block;
  margin-bottom: 20px;
  padding: 8px 15px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
}

.back-button:hover {
  background-color: #0056b3;
}

.details-header {
  text-align: center;
  margin-bottom: 20px;
}

.details-header h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.details-header p {
  font-size: 16px;
  color: #555;
}

/* Main Image */
.image-viewer {
  text-align: center;
  margin-bottom: 20px;
}

#main-image {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Thumbnail Gallery */
.thumbnail-gallery {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.thumbnail-gallery img {
  width: 75px;
  height: 75px;
  object-fit: cover;
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.thumbnail-gallery img:hover {
  transform: scale(1.1);
}

/* Colors List */
.color-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.color-list li {
  background-color: #f4f4f4;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  color: #333;
}