#product {
    display: flex;
    flex-direction: column;
    align-items: start;
    padding: 20px;
}

#product-image {
    width: 20rem;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
    position: relative;

}

.product-image-wrapper {
    position: relative;
    display: inline-block; /* keeps size tight around the image */
    width: 20rem;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

.product-sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ed4293;
    color: white;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    z-index: 10;
}

#product-name {
    font-size: 24px;
    font-weight: 400;
    margin-top: 20px;
}

#product-price {
    font-size: 16px;
    margin-top: 10px;
}


#amount-counter {
    display: flex;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 2rem;
}

#amount-counter input {
    width: 3.5rem;
    height: 2.5rem;
    padding: 0;
    box-sizing: border-box;
    border-right: none;
    border-left: none;
    border-top: 1px solid rgb(129, 129, 129);
    border-bottom: 1px solid rgb(129, 129, 129);
    text-align: center;
}

#amount-counter input:focus {
    outline: none;
}

#amount-counter .disabled {
    color: grey;
}

#amount-minus, #amount-plus {
    border: 1px solid rgb(129, 129, 129);
    cursor: pointer;
    background-color: transparent;
    width: 3.5rem;
    height: 2.5rem;
    font-weight: 600;
    font-size: 16px;
    outline: none;
}


#amount-minus {
    border-right: none;
}

#amount-plus {
    border-left: none;
}



#add-to-cart {
    color: black;
    padding: 12px 45px;
    border: 1px solid rgb(129, 129, 129);
    cursor: pointer;
    background-color: transparent;
    font-size: 16px;
}

#add-to-cart:hover {
    border: 1px solid black;
}

#product-added-to-cart-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgb(255, 255, 255);
    padding: 20px;
    border: 1px solid rgb(99, 99, 99);
    display: none;

}

#product-added-to-cart-card img {
    width: 20rem;
}

#product-added-to-cart-card button {
    color: black;
    padding: 12px 45px;
    border: 1px solid rgb(129, 129, 129);
    cursor: pointer;
    background-color: transparent;
    font-size: 16px;
    width: 100%;
}

#product-added-to-cart-card a {
    text-decoration: underline;
    color: black;
    width: 100%;
    text-align: center;
    display: block;
    margin-top: 1rem;
}

#description {
    margin-top: 2rem;
    width: 30rem;
    color: rgb(44, 44, 44);
}

#product-description {
    font-size: 16px;
}

