body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #fff;
  color: #000;
}
.header {
  background-color: #1f3a48;
  padding: 1rem;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-icons {
  display: flex;
  gap: 1.2rem;
}
.header-icons span {
  cursor: pointer;
  position: relative;
}
#cartCount {
  position: absolute;
  top: -8px;
  right: -8px;
  background: red;
  color: white;
  border-radius: 50%;
  font-size: 0.7rem;
  padding: 2px 5px;
  display: none;
}
h1 {
  text-align: center;
  margin-top: 2rem;
}

/* Product Grid */
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Default 3 per row */
  gap: 20px;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
}

/* 6 per row when viewport >= 1000px */
@media (min-width: 1000px) {
  .products {
    grid-template-columns: repeat(6, 1fr);
    max-width: 1400px; /* optional for better fit */
  }
}

.product-card {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
  border-radius: 6px;
  background: #fff;
}
.product-card img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}
.product-name {
  margin: 10px 0 5px;
  font-weight: bold;
  font-size: 14px;
}
.product-price {
  color: #000;
  margin-bottom: 5px;
}
.add-btn {
  border: 1px solid #000;
  background: #fff;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 10px;
  font-weight: 750;
}

/* Responsive */
@media (max-width: 768px) {
  .products {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .products {
    grid-template-columns: repeat(2, 1fr);
  }
}

.all-categories-btn {
  display: block;
  margin: 30px auto;
  padding: 10px 20px;
  background: #000;
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
}
.footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
  background: #f8f8f8;
  border-top: 1px solid #ddd;
}
#cartModal {
  position: fixed;
  top: 70px;
  right: 70px;
  background: #fff;
  border: 1px solid #888;
  z-index: 9999;
  padding: 20px;
  min-width: 320px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}
#cartModal ul {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
  max-height: 400px;
  overflow-y: auto;
}
#cartModal li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}
#cartModal img {
  width: 30px;
  height: 30px;
  border-radius: 3px;
  margin-right: 10px;
  flex-shrink: 0;
}
#cartModal button.remove-btn {
  margin-left: auto;
  background: #ff4d4d;
  border: none;
  color: white;
  padding: 2px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}
#cartModal button.close-btn {
  display: block;
  width: 100%;
  padding: 8px;
  border: none;
  background: #1f3a48;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 8px;
}
#cartModal button.order-btn {
  display: block;
  width: 100%;
  padding: 10px;
  background: green;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
}
#ppz,
#cartIcon {
  font-size: 220%;
  margin: 0;
  color: white;
}
a {
  text-decoration: none;
  font-weight: 700;
}
b a {
  color: #000;
}
.all-categories-btn a {
  font-size: 180%;
  padding: 0 25px;
  color: white;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 30px auto;
}

/* Toast Notification */
#toast {
  visibility: hidden;
  min-width: 200px;
  background: #28a745;
  color: white;
  text-align: center;
  border-radius: 8px;
  padding: 12px;
  position: fixed;
  z-index: 10000;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  font-size: 14px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity 0.5s, bottom 0.5s;
}
#toast.show {
  visibility: visible;
  opacity: 1;
  bottom: 50px;
}
