/* =============================== */
/* Global Styles */
/* =============================== */

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f9f9f9;
  color: #333;
}

h2 {
  color: #d32f2f;
  border-bottom: 2px solid #d32f2f;
  padding-bottom: 10px;
}

/* =============================== */
/* Header and Footer */
/* =============================== */

header, footer {
  background: #d32f2f; /* your red */
  color: white;
  text-align: center;
  padding: 20px 0;
}

footer {
  margin-top: 40px;
}

/* =============================== */
/* Navbar Styling */
/* =============================== */

.navbar {
  background: #d32f2f;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  vertical-align: middle;
  margin-right: 10px;
}

.brand-name {
  font-size: 1em;
  font-weight: bold;
  color: white;
}

.nav-links {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover {
  text-decoration: underline;
}

.menu-toggle {
  display: none;
  font-size: 1.5em;
  cursor: pointer;
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #d32f2f;
    width: 100%;
  }
  .nav-links.show {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
}

/* =============================== */
/* Content Container */
/* =============================== */

.content {
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
}

/* =============================== */
/* Product Grid Styling */
/* =========================*/
.category-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-top: 20px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.category-item {
  flex: 1 1 22%;
  max-width: 22%;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
}

.category-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.category-item p {
  margin-top: 8px;
  font-weight: bold;
}

.category-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Adjust responsiveness for mobile */
@media (max-width: 900px) {
  .category-item {
    flex: 1 1 30%;
    max-width: 30%;
  }
}

@media (max-width: 600px) {
  .category-item {
    flex: 1 1 45%;
    max-width: 45%;
  }
}
.product-grid {
 display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
   justify-items: center;
}

.product {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}

.product > img {
   width: 100%;
  height: auto;
  max-height: 200px; /* adjust as needed for uniform height */
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.footer-icons {
  margin-top: 10px;
}

.footer-icon {
  width: 30px; /* adjust size as needed */
  height: auto;
  margin: 0 5px;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.footer-icon:hover {
  transform: scale(1.2);
}


/* =============================== */
/* Carousel Styling */
/* =============================== */

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 1000px; /* adjust as needed for your layout */
  margin: auto;
  overflow: hidden;
  border-radius: 8px;
}

.carousel-slide {
  display: none;
}

.carousel-slide img {
  width: 100%;
  height: 800px; /* increased height for bigger display */
  object-fit: contain; /* shows entire image without cropping */
  background-color: #f9f9f9; /* optional: for transparent images */
  display: block;
  border-radius: 8px;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 24px;
  border-radius: 50%;
  user-select: none;
  background: rgba(0,0,0,0.5);
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

.dot-container {
  text-align: center;
  margin-top: 10px;
}

.dot {
  cursor: pointer;
  height: 10px;
  width: 10px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}
