.cart-icon {
    position: fixed;
    right: 40px;  /* Adjusted for smaller margins on mobile */
    top: 80px;
    cursor: pointer;
    z-index: 1000; /* Ensure above other content */
    width: 80px;  /* Ideal for touch targets on mobile */
    height: 80px;
}

.question-icon {
    display: none;
    position: fixed;
    right: 20px;  /* Adjusted for smaller margins on mobile */
    top: 220px;
    cursor: pointer;
    z-index: 1000; /* Ensure above other content */
    width: 80px;  /* Ideal for touch targets on mobile */
    height: 80px;
}


.side-cart {
    position: fixed;
    z-index: 1001;
    right: 12px;
    top: 20px; /* Space for the header, adjust accordingly */
    width: 80%; /* Full width on smaller devices */
    max-width: 300px; /* Max width on larger devices */
    height: calc(100% - 40px); /* Adjusted for both header and potential footer space */
    background: white;
    border-left: 1px solid #ccc;
    padding: 20px;
    box-shadow: -2px 0 5px rgba(0,0,0,0.5);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto; /* Ensure the scrollbar applies */
    box-sizing: border-box; /* Includes padding in the height calculation */
}

/*.side-cart {
    position: fixed;
    z-index: 1001; 
    right: 0;
    top: 0;
    width: 80%; 
    max-width: 300px; 
    height: 100%;
    background: white;

    border-left: 1px solid #ccc;
    padding: 20px;
    box-shadow: -2px 0 5px rgba(0,0,0,0.5);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto; 
}*/



.close-cart {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 20px;
}

@media (max-width: 768px) {
    .side-cart {
        width: 90%; /* Use a greater proportion of the screen on small devices */
    }

    .cart-icon img {
        width: 30px; /* Slightly smaller icon for smaller screens */
        height: 30px;
    }
}

/* Styles for mobile phones */
@media (max-width: 480px) {
    .side-cart {
        width: 100%; /* Full width for very small screens */
    }

    .cart-icon {
        right: 5px;
        bottom: 5px;
        width: 30px; /* Smaller touch target for smaller screens */
        height: 30px;
    }

    .close-cart {
        font-size: 24px; /* Larger close button for easier touch */
    }
}


.side-cart.open {
    transform: translateX(0);
}

#cart-items .cart-item {
    font-size: 16px;  /* Increase the font size */
    margin-bottom: 10px;  /* Add more vertical space between items */
    padding: 8px;
    border-bottom: 1px solid #eee;  /* A subtle separator can also be appealing */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item button {
    color: #f00;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
}

.addnotification {
    display: none;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    background-color: #4CAF50; /* Light green background */
    color: white;
    padding: 10px;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: opacity 2s ease-in-out; /* Adjust transition timing */
    opacity: 0; /* Start with opacity 0 for fading in effect */
}

.addnotification.show {
    display: block;
    opacity: 1; /* Full visibility */
}

.addnotification.hide {
    opacity: 0; /* No visibility for fading out */
     transition: opacity 3s ease-in-out;  /* More gradual fade out */
}

.successnotification {
    display: none;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    background-color: #4CAF50; /* Light green background */
    color: white;
    padding: 10px;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: opacity 2s ease-in-out; /* Adjust transition timing */
    opacity: 0; /* Start with opacity 0 for fading in effect */
}

.successnotification.show {
    display: block;
    opacity: 1; /* Full visibility */
}

.successnotification.hide {
    opacity: 0; /* No visibility for fading out */
     transition: opacity 3s ease-in-out;  /* More gradual fade out */
}

.removenotification {
    display: none;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    background-color: red; /* Light green background */
    color: white;
    padding: 10px;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: opacity 2s ease-in-out; /* Adjust transition timing */
    opacity: 0; /* Start with opacity 0 for fading in effect */
}

.removenotification.show {
    display: block;
    opacity: 1; /* Full visibility */
}

.removenotification.hide {
    opacity: 0; /* No visibility for fading out */
     transition: opacity 3s ease-in-out;  /* More gradual fade out */
}

.emailnotification {
    display: none;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    background-color: red; /* Light green background */
    color: white;
    padding: 10px;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: opacity 2s ease-in-out; /* Adjust transition timing */
    opacity: 0; /* Start with opacity 0 for fading in effect */
}

.emailnotification.show {
    display: block;
    opacity: 1; /* Full visibility */
}

.emailnotification.hide {
    opacity: 0; /* No visibility for fading out */
     transition: opacity 3s ease-in-out;  /* More gradual fade out */
}




#checkout-btn {
  display: inline-block;
  margin-right: 10px;
  background: #339DFF;
  color: #fff;
  text-decoration: none;
  font-size: 2.0rem;
  line-height: 38px;
  border-radius: 50px;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  width: 100%;
  text-align: center;
}

/*#checkout-btn:hover {
  background: #fff;
  color: #339DFF;
  box-shadow: 0 4px 4px rgba(83, 100, 255, 0.32);
}*/