/* Reset CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body Styles */
body {
  font-family: Arial, sans-serif;
  background-color: white;
  color: #600003;
  margin: 0;
  padding: 0;
}

/* Container Styles */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
}

/* Product Styles */
.product {
  display: flex;
  flex-wrap: wrap;
  width: calc(33.33% - 20px); /* Adjusted width to fit three items per row with margins */
  margin-right: 20px; /* Adds space between product items */
  margin-bottom: 20px;
  justify-content: space-between;
  float: left;
}

.product-item {
  background-color: #fff;
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  box-sizing: border-box; /* Added box-sizing */
}

.product-item:hover {
  transform: translateY(-5px);
}

.product-item img {
  width: 100%;
  height: auto;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.product-item-content {
  padding: 20px;
}

.product-item h3 {
  font-size: 18px;
  color: #333;
  padding-top: 10px;
  margin-bottom: 10px;
  text-align: center;
}

.product-item p {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  padding: 10px;
}

.add-to-cart {
  display: block;
  width: 100%;
  padding: 10px 0;
  background-color: #ff4d4d;
  color: #fff;
  border: none;
  border-radius: 0 0 10px 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.add-to-cart:hover {
  background-color: #e60000;
}

/* Cart Icon Styles */
.cart-icon {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  z-index: 999;
}

.cart-icon img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

/* Sidebar Styles */
.sidebar {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 0;
  right: 0;
  background-color: whitesmoke;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
}

.sidebar.active {
  width: 250px;
}

.sidebar-content {
  padding: 20px;
}

.sidebar h2 {
  color: white;
}

.sidebar button {
  background-color: #4CAF50;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
}

.sidebar button:hover {
  background-color: #45a049;
}

@media (max-width: 900px) {
  .product {
      flex-basis: calc(100% - 20px); /* Set product item width to 100% for mobile view */
      margin-right: 0; /* Remove margin-right for mobile view */
  }
}


.modal {
	display: none;
	position: fixed;
	z-index: 1;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0,0,0,0.4);
  }
  
  .modal-content {
	background-color: #fefefe;
	margin: 10% auto;
	padding: 20px;
	border: 1px solid #888;
	width: 80%;
	max-width: 600px;
	border-radius: 10px;
  }
  
  .close {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
	color: black;
	text-decoration: none;
	cursor: pointer;
  }
  
  form {
	margin-top: 20px;
  }
  
  label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
  }
  
  input[type="text"],
  input[type="email"],textarea,
  select {
	width: 100%;
	padding: 8px;
	margin-bottom: 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
  }
  
  button[type="submit"] {
	background-color: #4CAF50;
	color: white;
	padding: 10px 20px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
  }
  
  button[type="submit"]:hover {
	background-color: #45a049;
  }
  
  button {
	display: block;
	width: 100%;
	padding: 10px;
	margin-top: 10px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
  }
  
  button:hover {
	background-color: blue;
  }
  

  .popup-overlay1 {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
	overflow-y: scroll;
}

.popup1 {
	background-color: white;
	padding: 20px;
	border-radius: 5px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
	max-width: 500px;
	text-align: center;
	height: 85;
	width: 90%;
	overflow-y: auto;
}

.popup1 h2 {
	margin-top: 0;
}

.accept-btn {
	background-color: #600003;
	color: white;
	padding: 10px 20px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
}