#cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

#cart-overlay .overlay-desktop { 
    display: block;
}

#cart-overlay .overlay-mobile {
    display: none;
}

#cart-overlay .overlay-container {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    padding-left: 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    height: fit-content;
    justify-content: center;
}

#cart-overlay .overlay-content {
    display: flex;
    flex-direction: row;
}

#cart-overlay .close-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

#cart-overlay .product-thumbnail {
    width: 200px;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 20px;
}

#cart-overlay .product-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#cart-overlay .product-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

#cart-overlay .overlay-actions {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: center;
}

#cart-overlay .view-cart,
#cart-overlay .continue-shopping {
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
}

#cart-overlay .view-cart {
    background-color: #007bff;
    color: #fff;
}

#cart-overlay .continue-shopping {
    background-color: #6c757d;
    color: #fff;
}

@media screen and (max-width: 768px) {
    #cart-overlay .overlay-desktop { 
        display: none;
    }
    
    #cart-overlay .overlay-mobile {
        display: block;
    }

    #cart-overlay .product-thumbnail { 
        width: 100px;
    }

    #cart-overlay .overlay-content { 
        padding-left: 20px;
    }

    #cart-overlay .overlay-actions {
        font-size: 14px;
    }

    #cart-overlay .overlay-container {
        padding: 20px;
    }
}