@import url(../../../base/css/base.css);

.container {
    padding: 70px 30px 30px 30px;
}

.product-details {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.product-image {
    margin-block: 10px;
    max-width: 300px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image__image {
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.product-content {
    max-width: 600px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-heading {
    margin-top: 10px;
    gap: 70px;
}

.product-heading__title h1 {
    font-family: var(--font-base-medium);
    color: var(--black-400);
    font-size: 28px;
}

.product-heading-description {
    display: flex;
    gap: 20px;
}

.product-heading-description__available {
    background-color: #f1f1f1;
    font-size: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    height: 24px;
    padding-inline: 10px;
    border-radius: 8px;
}

.product-heading-description__rating {
    display: flex;
    align-items: center;
    color: var(--gray-100);
    font-size: 14px;
}

.star {
    fill: #ffad30;
    height: 20px;
}

.product-description h2 {
    font-family: var(--font-base);
    color: var(--black-400);
    font-size: 16px;
}

.product-description p {
    font-size: 12px;
    color: var(--gray-100);
}

.product-quantity {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-quantity label {
    font-family: var(--font-base);
    color: var(--black-400);
    font-size: 16px;
}

.quantity-minus {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px 0 0 20px;
    border: none;
    background-color: #f1f1f1;
    color: black;
    font-size: 16px;
    cursor: pointer;
}

.quantity-plus {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 20px 20px 0;
    border: none;
    background-color: #f1f1f1;
    color: black;
    font-size: 16px;
    cursor: pointer;
}

.quantity {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background-color: #f1f1f1;
    height: 40px;
    width: 100px;
    border-radius: 20px;
}

.quantity-input {
    border: none;
    outline: none;
    background-color: #f1f1f1;
    text-align: center;
    user-select: none;
    font-size: 16px;
    color: black;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

.buy-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.buy-section__price {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
}

.buy-section__price small {
    color: var(--black-500)
}

.buy-section__price p {
    font-family: var(--font-base-medium);
}

.buy-section-button {
    flex: 1;
}

.buy-section-button__add {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 180px;
    width: 100%;
    height: 50px;

    background-color: var(--primary-color);
    border-radius: 25px;
    border: none;

    cursor: pointer;
}

.buy-section-button__add svg {
    fill: white;
    height: 16px;
    width: auto;
}

.buy-section-button__add p {
    color: white;
    font-size: 14px;
    font-family: var(--font-base-bold);
}

@media screen and (min-width: 1000px) {
    .container {
        padding-top: 130px;
    }    
}