body {
  font-family: 'Nunito', sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
}
header {
  background-color: #f7a600;
  color: white;
  display: flex;
  height: 7rem;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  margin-bottom: 2%;
}
header h1 {
  margin: 0;
  font-size: 2rem;
  text-align: center;
}
.icon {
  cursor: pointer;
}
header .icon img {
  width: 3rem;  
  height: 2.7rem;
}
.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}
.product-box {
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
}
.product-box img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  background: #ccc;
  border-radius: 5px;
}
.product-box button {
  margin-top: 10px;
  background-color: #f7a600;
  border: none;
  padding: 8px 12px;
  color: white;
  border-radius: 20px;
  cursor: pointer;
}
#cart {
  position: absolute;
  top: 60px;
  right: 20px;
  width: 250px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 5px;
  display: none;
  padding: 10px;
  z-index: 10;
}
#cart ul {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 200px;
  overflow-y: auto;
}
#cart ul li {
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding: 5px 0;
}
#cart ul li button {
  background-color: red;
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  cursor: pointer;
}
#total {
  margin-top: 10px;
  font-weight: bold;
  text-align: right;
}

.product-detail {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  padding: 20px;
  transition: bottom 0.4s ease;
  z-index: 20;
}
.product-detail.visible {
  bottom: 0;
}
.detail-header {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  margin-bottom: 10px;
}
.close-detail {
  cursor: pointer;
  font-size: 24px;
}
#productDetail img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: #ccc;
  border-radius: 10px;
}
#detailFooter {
  margin-top: 10px;
  text-align: center;
}
#detailFooter button {
  background-color: #f7a600;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
}
.not-available {
  background-color: #2f65b0;
  color: white;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
}
.hidden {
  display: none;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 15;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hidden {
  display: none;
}
.notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #4CAF50;
  color: white;
  padding: 12px 20px;
  border-radius: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 999;
}

.notification.show {
  opacity: 1;
}

/* Responsive layout for mobile */
@media (max-width: 767px) {
  .container {
    /* Force 2 columns on mobile devices */
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
  }
}