/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Kanit", sans-serif;
}

body {
  background-color: #f8f9fa;
  color: #333;
}

/* Sale Banner */
.sale-banner {
  background-color: #ff4d4d;
  color: #fff;
  text-align: center;
  padding: 10px 0;
  font-weight: bold;
}

/* Header Container */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 10%;
  background-color: #ffffff;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 50px;
  margin-right: 10px;
}

.logo h1 {
  font-size: 1.5rem;
  color: #333;
}

/* Sidebar Options */
.side-options {
  display: flex;
  align-items: center;
  gap: 20px;
}

.side-options span {
  font-size: 0.9rem;
  color: #333;
  cursor: pointer;
}

/* Search Bar Styling */
.search-bar {
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

.search-bar div {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 5px;
  background-color: #fff;
}

.search-bar input[type="search"] {
  border: none;
  outline: none;
  padding: 8px;
  font-size: 0.9rem;
  width: 200px;
  border-radius: 5px 0 0 5px;
}

.search-bar i {
  color: #888;
  font-size: 1rem;
  padding: 8px;
  cursor: pointer;
}

/* Navigation Menu */
nav {
  display: flex;
  justify-content: center;
  background-color: #333;
  padding: 10px 0;
  flex-wrap: wrap;
}

nav a {
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: bold;
}

nav a:hover {
  background-color: #ff4d4d;
  border-radius: 5px;
}

/* Main Product Section */
.products {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 30px;
}

.product-item {
  width: 200px;
  text-align: center;
}

.product-item img {
  width: 100%;
  height: 180px; /* Fixed height for uniform display */
  object-fit: cover; /* Ensures the image covers the area without distortion */
  border-radius: 8px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

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

.product-item h3 {
  margin-top: 10px;
  font-weight: bold;
  font-size: 1rem;
  color: #333;
  cursor: pointer;
}

.product-item p {
  color: #666;
  font-size: 0.9rem;
  margin-top: 5px;
  cursor: pointer;
}

/* Footer Styling */
footer {
  text-align: center;
  padding: 15px;
  background-color: #333;
  color: #fff;
  font-size: 0.9rem;
}

/* Responsive Styling */
@media (max-width: 992px) {
  .header-container {
    flex-direction: column;
  }

  nav {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  nav a {
    padding: 8px 15px;
    font-size: 13px;
  }

  .search-bar input[type="search"] {
    width: 90%;
  }
}

@media (max-width: 768px) {
  .side-options {
    flex-direction: column;
    align-items: center;
  }

  .search-bar input[type="search"] {
    width: 150px;
  }
}

@media (max-width: 480px) {
  .product-item {
    width: 140px;
  }

  .logo h1 {
    font-size: 1.2rem;
  }

  nav a {
    padding: 5px 10px;
    font-size: 12px;
  }
}
