/* Cart Styling */
#cart-items {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .cart-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    position: relative;
  }
  
  .cart-item-image {
    width: 50px;
    height: 50px;
    flex-shrink: 0; /* keeps it square next to a long title */
    overflow: hidden;
    margin-right: 10px;
    border-radius: 4px;
    background-color: #f5f5f5;
  }
  
  .cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .no-image {
    width: 100%;
    height: 100%;
    background-color: #eee;
  }
  
  .cart-item-details {
    flex-grow: 1;
  }
  
  .cart-item-title {
    font-weight: bold;
    margin-bottom: 4px;
  }
  
  .cart-item-price {
    font-size: 0.9em;
    color: #666;
  }
  
  .remove-item-btn {
    font-size: 18px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0 8px;
    margin-left: 8px;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
  }
  
  .remove-item-btn:hover {
    background-color: #f8d7da;
    color: #721c24;
  }
  
  .empty-cart-message {
    padding: 20px 0;
    text-align: center;
    color: #999;
    font-style: italic;
  }
  .album-section { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; padding: 20px; }
  .album { background-color: white; border-radius: 10px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); overflow: hidden; width: 250px; text-align: center; padding: 10px; }
  .album img { max-width: 100%; border-radius: 5px; }
  .album h3 { margin: 10px 0 5px; }
  .album p { color: #666; font-size: 14px; }
  .album button { margin-top: 10px; padding: 5px 10px; cursor: pointer; }
  .cart { margin: 20px auto; padding: 15px; background: white; border-radius: 10px; width: 50%; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); }
  .cart ul { list-style: none; padding: 0; }
  .cart li { display: flex; justify-content: space-between; padding: 5px 0; }
  .cart button { background-color: rgb(0, 0, 0); color: white; border: none; cursor: pointer; padding: 3px 6px; }

/* Cart Sidebar */
.cart-sidebar {
position: fixed;
top: 0;
right: 0;
width: 300px;
height: 100vh;
background: white;
box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
padding: 20px;
display: none;  /* Fully hidden when closed */
flex-direction: column;
overflow-y: auto;
z-index: 1000;
transition: transform 0.4s ease-in-out;
transform: translateX(100%); /* Start off-screen */
}

/* Close Button */
.close-cart {
background: none;
border: none;
font-size: 20px;
cursor: pointer;
align-self: flex-end;
transition: background-color 0.3s ease, color 0.3s ease;
}

.close-cart:hover {
background-color: #eee;
color: #000;
  }

/* Cart List */
.cart-sidebar ul {
list-style: none;
padding: 0;
flex-grow: 1;
}
.cart-sidebar li {
display: flex;
justify-content: space-between;
padding: 5px 0;
}
.close-cart {
background-color: rgb(0, 0, 0);
color: white;
border: none;
cursor: pointer;
font-size: 14px;
padding: 10px;
width: 100%;
margin-top: 10px;
}

.checkout-btn {
  background-color: #000;
  color: white;
  border: none;
  padding: 15px 25px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 20%;
  margin-top: 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.checkout-btn:hover {
  background-color: #eee;
  color: #000;
}
/* Show Sidebar */
.cart-open {
display: flex;
transform: translateX(0);
}

button.checkout-btn{
margin-bottom: 30px;
}
@media (max-width: 480px) {
  button.checkout-btn {
    margin-bottom: 100px;
  }
}

