html, body {
    overflow-x: hidden;
    margin: 0; /* Ensure no default margin */
}

/* Navbar Section */
.navbar-custom {
    background-color: white;
    position: fixed; /* Make the navbar fixed */
    top: 0; /* Stick to the top */
    width: 100%; /* Full width */
    z-index: 1000; /* Ensure it stays above other content */
}

/* Add padding to the body to prevent content from being hidden under the fixed navbar */
body {
    padding-top: 70px; /* Adjust this value based on the navbar height (Bootstrap navbar is typically ~56px, adding some buffer) */
}

.navbar-brand {
    color: rgb(19, 144, 8) !important;
    font-weight: 900;
}
.nav-link {
    color: #333;
    font-weight: 500;
    margin-right: 15px;
}
.nav-link:hover {
    color: rgb(19, 144, 8);
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: rgb(19, 144, 8);
    color: white;
    border-radius: 50%;
    padding: 4px 8px;
    font-size: 12px;
    display: none;
}
.cart-badge.active {
    display: inline-block; /* Show the badge when it has the 'active' class */
}

/* Footer Section */
.footer-bg {
    background-color: rgb(19, 144, 8);
}
.footer-links p {
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}
.footer-links a {
    text-decoration: none;
    color: white;
}
.footer-links a:hover {
    color: black !important;
}
.social-icons span {
    cursor: pointer;
    transition: color 0.3s ease;
}
.social-icons span:hover {
    color: black !important;
}
hr {
    border-top: 2px solid white;
    list-style-type: symbols();
}

.underline {
    height: 3px;
    width: 100px;
    background-color: rgb(19, 144, 8);
    margin-bottom: 12px;
}

/* Products */
.product-cards {
    transition: transform 0.3s;
    border: none;
    box-shadow: 2px 3px 3px 2px rgb(174, 158, 158);
}

.product-cards:hover .product-names {
    color: rgb(19, 144, 8);
    cursor: pointer;
}

.product-image {
    width: 100%;
    height: 300px;
    transition: transform 1s ease;
}
.cart-btn {
    bottom: 10px;
    right: 10px;
    display: none;
    z-index: 2;
    background-color: rgb(19, 144, 8);
}
.product-cards:hover .product-image {
    transform: scale(1.08);
    box-shadow: 5px 5px 5px 5px rgb(143, 141, 141);
    background: rgba(0, 0, 0, 0.9);
}
.product-cards:hover .cart-btn {
    display: inline-block;  
    background-color: rgb(19, 144, 8);
}

.col-md-4 img {
    width: 120px;
    height: auto;
}

/* Mobile - bigger QR image */
@media (max-width: 768px) {
    .col-md-4 img {
        width: 200px;
        max-width: 80vw;
    }
}

/* Cart Sidebar */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background-color: #fff;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
  padding: 20px;
  transition: right 0.3s ease;
  z-index: 1050;
}

.cart-sidebar.open {
    right: 0;
}
.cart-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #000;
}

#cartSidebar{
    height: 100vh; 
    overflow-y: auto; 
    z-index: 1050;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.cart-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 10px;
}
.quantity-control {
    display: flex;
    align-items: center;
    gap: 5px;
}
.quantity-control button {
    background-color: rgb(19, 144, 8);
    color: white;
    border: none;
    padding: 2px 8px;
    cursor: pointer;
}
.empty-cart {
    text-align: center;
    padding: 20px;
}
.empty-cart i {
    color: #ccc;
}
.checkout-btn, .continue-btn {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background-color: rgb(19, 144, 8);
    color: white;
    border: none;
}
.continue-btn {
    background-color: transparent;
    border: 1px solid rgb(19, 144, 8);
    color: rgb(19, 144, 8);
}