/* c:\Users\Dell\webproject\css\site.css */
.header-container {
    position: relative;
}

.cart-icon-link {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

.cart-icon-link img {
    width: 32px;
    height: 32px;
    vertical-align: middle;
}

.cart-count {
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 14px;
    vertical-align: top;
    margin-left: -12px;
    display: inline-block;
}

/* Modal styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* 5% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 600px;
    border-radius: 10px;
    position: relative;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    display: flex;
    gap: 20px;
}

.modal-body .product-image {
    flex: 1;
}

.modal-body .product-image img {
    width: 100%;
    border-radius: 8px;
}

.modal-body .product-info {
    flex: 2;
}
