@charset "utf-8";

.section-1 {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
}

.pd_img,
.pd_order {
    width: 48%;
}

.pd_img {
    background: url(../img/prd.png) center no-repeat;
    background-color: #fafafa;
    background-size: 470px;
    border-radius: 10px;
}

.pd_order {
    border-top: 2px solid var(--po-color);
}

.pd_order .pd_name {
    margin: 20px 0;
    font-size: 2.6rem;
    font-weight: 700;
}

.type_count {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding-top: 20px;
}

.type_count>p {
    padding-left: 10px;
}

.type_count>p,
.total_amount>span {
    font-size: 2rem;
    color: #555;
    font-weight: 200;
}

.type_count .pd_type {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.type_count .pd_type .type {
    display: flex;
    justify-content: space-evenly;
    gap: 10px;
}

.type_count .pd_type .type .price,
.type_count .pd_type .type .count {
    cursor: default;
    border-radius: 10px;
    border: 1px solid #eee;
    background: #fafafa;
    display: flex;
    justify-content: space-between;
    padding: 30px 20px;
    box-sizing: border-box;
    align-items: center;
    font-size: 2.2rem;
    font-weight: 600;
}

.type_count .pd_type .type span {
    font-size: 1.8rem;
    font-weight: 300;
    color: #666;
}

.type_count .pd_type .type_active .price,
.type_count .pd_type .type_active .count {
    background: #fff;
    border: 3px solid var(--po-color);
    gap: 10px;
}

.type_count .pd_type .type .price {
    width: 70%;
}

.type_count .pd_type .type .count {
    width: 25%;
}

.remove,
.add {
    color: var(--po-color) !important;
    padding: 5px;
    background: #fafafa;
    cursor: pointer;
}

.total_amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10px;
}

.total_amount p {
    font-size: 2.6rem;
    font-weight: 600;
}

.total_amount p span {
    color: var(--po-color);
}

.pur_btn {
    border: 0;
    width: 100%;
    background: var(--po-color);
    padding: 20px 0;
    font-family: 'Pretendard';
    color: #fff;
    font-size: 2rem;
    border-radius: 5px;
}


.section-2 {
    margin-top: 20px;
}

.tabnav {
    display: flex;
    justify-content: start;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.tabnav a {
    display: block;
    width: 250px;
    /* background: #fafafa; */
    color: #888;
    font-size: 1.8rem;
    font-weight: 300;
    padding: 15px 0;
    text-align: center;
    border-bottom: 1px solid #fff;
}

.tabnav a.active {
    /* background: var(--po-color); */
    color: var(--po-color);
    border-bottom: 3px solid var(--po-color);
    font-weight: 600;
}

.amount {
    font-family: 'Pretendard';
    font-size: 2.2rem;
    font-weight: 600;
    border: 0;
    width: 100%;
    text-align: center;
    color: #333;
    background: transparent;
}

.amount::placeholder {
    color: #333;
}

.amount::-webkit-outer-spin-button,
.amount::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}



@media screen and (max-width:970px) {
    .section-1 {
        flex-direction: column;
    }

    .pd_img {
        height: 200px;
        background-size: contain;
    }

    .pd_img,
    .pd_order {
        width: 100%;
    }

    .type_count>p {
        padding-left: 0;
    }

    .type_count .pd_type .type {
        justify-content: space-between;
    }


    .type_count .pd_type .type .price,
    .type_count .pd_type .type .count {
        flex-direction: column;
        gap: 10px;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .count .remove {
        order: 3;

    }

    .count .amount {
        order: 2;
    }

    .count .add {
        order: 1;

    }

    .type_count .pd_type .type .add,
    .type_count .pd_type .type .remove {
        font-size: 2.8rem;
    }

    .price .n_pr,
    .price p {
        width: 100%;
    }

    .price>p {
        text-align: right;
        color: var(--po-color);
        font-size: 2.8rem;
    }

    .tabnav li {
        width: 50%;
    }

    .tabnav a {
        width: 100%;
    }

    .type_count .pd_type .type_active .price,
    .type_count .pd_type .type_active .count {
        border: 2px solid var(--po-color);
    }

    .type_count .pd_type .type .price,
    .type_count .pd_type .type .count,
    .type_count .pd_type .type_active .price,
    .type_count .pd_type .type_active .count {
        gap: 0;
    }
}