.sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 350px;
  height: 100%;
  background: #f8f8f8; /* Light background for contrast */
  box-shadow: -2px 0 15px rgba(0, 0, 0, 0.3); /* Shadow for depth */
  transition: right 0.3s ease;
  padding: 20px;
  overflow-y: auto; /* Allows scrolling */
  z-index: 1000; /* Stays on top of other content */
}

.sidebar.active {
  right: 0; /* Show sidebar */
}

.sidebar h2 {
  margin-bottom: 20px;
  font-size: 24px; /* Increased font size */
  color: #333; /* Darker header color */
  border-bottom: 2px solid #ddd; /* Underline for clarity */
  padding-bottom: 10px; /* Spacing below header */
}

.cart-item {
  display: flex;
  gap: 15px; /* Space between items */
  align-items: center; /* Center items vertically */
  margin-bottom: 20px; /* Space between cart items */
}

.cart-item img {
  width: 90px; /* Consistent image size */
  height: auto; /* Maintain aspect ratio */
  border-radius: 5px; /* Rounded image corners */
}

.checkout-btn{
  display: block;
  width: calc(100% - 20px); /* Full width minus padding */
  background: #444; /* Button background color */
  color: #fff; /* Text color */
  padding: 15px;
  border: none; /* No border */
  margin-top: 300px; /* Spacing above buttons */
  margin-left: 20px;
  cursor: pointer; /* Pointer cursor on hover */
  border-radius: 5px; /* Rounded button edges */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Button shadow */
  transition: background 0.3s; /* Smooth background transition */
}

.logout-btn{
  display: block;
  width: calc(100% - 20px); /* Full width minus padding */
  background: #444; /* Button background color */
  color: #fff; /* Text color */
  padding: 15px;
  border: none; /* No border */
  margin-top: 350px; /* Spacing above buttons */
  margin-left: 20px;
  cursor: pointer; /* Pointer cursor on hover */
  border-radius: 5px; /* Rounded button edges */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Button shadow */
  transition: background 0.3s; /* Smooth background transition */
}

.checkout-btn:hover, .logout-btn:hover {
  background: #555; /* Slightly lighten on hover */
}

.sidebar a {
  display: block;
  margin-bottom: 15px; /* Space between links */
  color: #007BFF; /* Link color */
  text-decoration: none; /* No underline by default */
  transition: color 0.3s; /* Smooth color transition */
}

.sidebar a:hover {
  text-decoration: underline; /* Underline on hover */
  color: #0056b3; /* Darker color on hover */
}

.close-btn {
  position: absolute; /* Position within the sidebar */
  top: 15px;
  right: 20px;
  font-size: 28px; /* Close button size */
  border: none; /* No border */
  background: none; /* No background */
  cursor: pointer; /* Pointer cursor */
  color: #333; /* Close button color */
}


/* Account options styling */
.account-options {
    flex-grow: 1; /* Allow to grow and take available space */
    margin-bottom: auto; /* Push logout button to the bottom */
}

/* Account option links */
.account-options a {
    display: block;
    padding: 10px 15px; /* Padding for links */
    margin: 5px 0; /* Space between links */
    font-size: 16px; /* Font size */
    color: #495057; /* Darker text color */
    text-decoration: none; /* Remove underline */
    border-radius: 4px; /* Rounded corners */
    transition: background-color 0.3s; /* Smooth transition */
}

/* Hover effect for account options */
.account-options a:hover {
    background-color: #e2e6ea; /* Light gray on hover */
}



/* Adjusting the bottom buttons */
button {
    margin-top: auto; /* Space before button */
}
