
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #ece9e6, #ffffff);
  min-height: 100vh;
  padding: 20px;
  color: #333;
}


header {
  font-weight: 700;
  font-size: 2.8rem;
  text-align: center;
  color: #30475e;
  letter-spacing: 6px;
  text-transform: uppercase;
  user-select: none;
  padding: 25px 0 15px 0;
  position: relative;
  text-shadow: 1px 1px 3px rgba(48, 71, 94, 0.2);
  margin-bottom: 30px;
}

header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 120px;
  height: 3px;
  background: #f54748;
  border-radius: 10px;
  transform: translateX(-50%);
  transition: width 0.4s ease;
}

header:hover::after {
  width: 180px;
}


.search-bar {
  text-align: center;
  margin-bottom: 20px;
}

.search-bar input {
  padding: 10px 14px;
  width: 220px;
  border-radius: 30px;
  border: 2px solid #3f72af;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  outline: none;
}

.search-bar input:focus {
  border-color: #112d4e;
}

.search-bar button {
  padding: 10px 16px;
  margin-left: 8px;
  border: none;
  background: #112d4e;
  color: white;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  font-size: 1rem;
  box-shadow: 0 4px 8px rgba(17, 45, 78, 0.3);
}

.search-bar button:hover {
  background: #3f72af;
}

#loginBtn {
  background: #f54748;
  box-shadow: 0 4px 8px rgba(245, 71, 72, 0.4);
}

#loginBtn:hover {
  background: #d63c3d;
}


.categories {
  text-align: center;
  margin-bottom: 40px;
}

#categoryDropdown {
  padding: 12px 18px;
  font-size: 1.1rem;
  border-radius: 30px;
  border: 2px solid #3f72af;
  background: white;
  color: #30475e;
  width: 240px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(63, 114, 175, 0.2);
  appearance: none;
 -webkit-appearance: none;
  position: relative;
  font-weight: 600;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2212%22%20height%3D%228%22%20viewBox%3D%220%200%2012%208%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M1%201L6%207L11%201%22%20stroke%3D%22%233f72af%22%20stroke-width%3D%222%22/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px 8px;
  transition: border-color 0.3s ease;
}

#categoryDropdown:hover,
#categoryDropdown:focus {
  border-color: #e03737;
  outline: none;
}


.products-container {
  display: flex;
  justify-content: center;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  width: 100%;
  max-width: 1000px;
}


.product {
  background: white;
  padding: 20px 15px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(48, 71, 94, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;

}

.product:hover {
  transform: translateY(-10px);
  box-shadow: 0 14px 36px rgba(48, 71, 94, 0.2);
}

.product img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 15px;
  border-radius: 12px;
  user-select: none;
}

.product h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #30475e;
}

.product p {
  margin-bottom: 15px;
  font-weight: 700;
  color: #bc2828;
  font-size: 1.15rem;
}

.product button {
  padding: 12px 16px;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
  user-select: none;
  margin: 5px;
}


.product button:first-of-type {
  background: #3f72af;
  color: white;

}

.product button:first-of-type:hover {
  background: #112d4e;
}


.product button:last-of-type {
  background: #f54748;
  color: white;
  box-shadow: 0 4px 8px rgba(23, 5, 67, 0.3);
}

.product button:last-of-type:hover {
  background: #d63c3d;
}


footer {
  text-align: center;
  margin-top: 50px;
  padding: 15px 10px;
  background: #30475e;
  color: white;
  font-size: 14px;
  border-radius: 12px;

}

#cartCount {
  background: #0f0f94;
  color: white;
  padding: 2px 7px;
  border-radius: 50%;
  font-size: 14px;
  vertical-align: top;
  margin-left: 5px;
  font-weight: 700;
}

.popup {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #3f72af;
  color: white;
  padding: 14px 20px;
  border-radius: 30px;
  box-shadow: 0 4px 14px rgba(63, 114, 175, 0.4);
  font-weight: 600;
  font-size: 1rem;
  opacity: 1;
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 1000;
  user-select: none;
}

.popup-hide {
  opacity: 0;
  transform: translateX(150%);
}

.stock {
      font-size: 14px;
      margin: 5px 0;
      color: green;
}
.out-of-stock {
      color: red;
      font-weight: bold;
}
  
