/* Cart Badge */
.cart-badge {
    position: absolute;
    top: 14px;
    right: 8px;
    background: red;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 0px 7px;
    border-radius: 50%;
    height: 25px;
    width: 25px;
    text-align: center;
}

.cart-add-badge {
    position: absolute;
    top: 14px;
    right: 8px;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 0px 7px;
    border-radius: 50%;
    height: 25px;
    width: 25px;
    text-align: center;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100%;
    background: white;
    box-shadow: -2px 0px 10px rgba(0, 0, 0, 0.2);
    transition: 0.3s ease-in-out;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.cart-header {
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    max-height: 100vh;
    padding: 15px;
}

.cart-footer {
    padding: 15px;
    background: #f8f9fa;
    border-top: 1px solid #ddd;
    text-align: center;
}

.checkout-btn {
    display: block;
    padding: 10px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.close-cart {
    font-size: 20px;
    cursor: pointer;
}

/* Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 900;
}

/* Show Sidebar */
.show-cart {
    right: 0 !important;
}

.show-overlay {
    display: block !important;
}

.suggestions-dropdown {
    position: absolute;
    top: 120%;
    left: -23px;
    width: 39rem;
    background: white;
    border: 1px solid #ccc;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    z-index: 999;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.suggestions-dropdown div {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.suggestions-dropdown div:hover {
    background: #f5f5f5;
}

.suggestions-dropdown img {
    height: 40px;
    width: 40px;
    margin-right: 10px;
}

.home-suggestion-item {
    display: flex;
    align-items: center;
}

.product-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Force text to take 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6em;
    /* Adjust based on your line-height */
    line-height: 1.3em;
    /* Keep consistent line spacing */
}