body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  font-family: Arial, sans-serif;
}

/* --- HEADER / NAVBAR --- */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: #ffffff;
  border-bottom: 1px solid #000000;
  z-index: 1000;
  box-sizing: border-box;
}

/* Logo size control */
#logo img {
  width: 140px;
  height: auto;
}

#logo a {
  display: inline-block;
}

/* Navbar styling */
#nav-bar {
  display: flex;          
  align-items: center;
  gap: 20px;           
  flex-wrap: wrap;     
  overflow: hidden;  
}

#nav-bar a {
  text-decoration: none;
  color: #000000;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 18px;
  margin: 0;
  transition: opacity 0.2s ease;
}

#nav-bar a:hover {
  opacity: 0.5;
}

.top-image {
  width: 100%;
  padding: 20px 0;   /* 10px padding above and below */
  box-sizing: border-box;
}

.top-image img {
  width: 100%;
  height: 500px;      /* same height as hero slideshow */
  object-fit: cover;   /* fill container, maintain aspect ratio */
  display: block;
}

/* --- HERO SLIDESHOW --- */
.hero {
  position: relative;
  width: 100%;
  height: 500px;         /* fixed height */
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.slideshow-container {
  position: relative;     /* relative now, not absolute */
  width: 100%;
  height: 100%;
}

.slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  display: block;
  opacity: 1;
}


.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 30px;
  padding: 10px;
  background-color: rgba(0,0,0,0.3);
  border-radius: 50%;
  user-select: none;
}

.prev { left: 20px; }
.next { right: 20px; }

.categories {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 250px;
}

.category-box {
  flex: 1 1 0;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: white;
}

.category-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-box:hover img {
  transform: scale(1.05); /* slight zoom on hover */
}

.category-box .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* semi-transparent overlay */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-box:hover .overlay {
  opacity: 1;
}

/* --- PRODUCT GRID & PRODUCT PAGES --- */
/* --- PRODUCTS GRID USING GRID --- */
.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns */
  gap: 30px 20px; /* 30px row gap, 20px column gap */
  padding: 40px;
  justify-items: center;  /* center items in each column */
}

.product-card {
  width: 50%;       /* shrink each card to half the grid cell */
  text-decoration: none;
  color: black;
}

.product-card img {
  width: 100%;
  height: auto;
  border: 1px solid #000;
  transition: transform 0.3s ease;
}

.product-card:hover img {
  transform: scale(1.05);
}

/* Responsive: single column on small screens */
@media (max-width: 600px) {
  .products {
    grid-template-columns: 1fr; /* 1 column on mobile */
  }
  .product-card {
    width: 90%;  /* bigger on small screens */
  }
}

.product-detail {
  display: flex;
  gap: 40px;
  padding: 100px 40px 40px; /* top padding for fixed navbar */
  flex-wrap: wrap;           /* responsive on small screens */
  justify-content: center;
  align-items: flex-start;
}

.product-detail img {
  width: 400px;  /* adjust as needed */
  max-width: 100%;
  border: 1px solid #000;
}

.product-info {
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-info h1 {
  font-size: 32px;
  margin: 0;
}

.product-info p {
  font-size: 18px;
}

.product-info select {
  padding: 10px;
  font-size: 16px;
  margin-bottom: 20px;
}

.buy-button {
  padding: 12px 20px;
  font-size: 18px;
  background-color: black;
  color: white;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.buy-button:hover {
  opacity: 0.8;
}