main{
    padding-top: 280px;
    margin-bottom: var(--space-foot);
}
.ivt-wrap {
    display: flex;
    align-items: flex-start;
}
.inventory-box{
    flex: 3;
}
.myInventory h1{
    padding-bottom: var(--space-large);
}
.myInventory ul{
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}
.myInventory ul li:hover{
    font-weight: var(--fw-bold);
    color: var(--main-color);
}
.uProfile-box{
    flex: 9;
}
.uProfile-content1{
    height: 200px;
    display: flex;
    align-items: center;
    gap: var(--space-large);
    background-color: var(--cb-color-0);
    margin-bottom: var(--space-normal);
}
.uProfile-content1 img{
    width: 200px;
    height: 100%;
    object-fit: cover;
}
.uProfile-hello span{
    background-color: #CE9C4D;
    color: #fff;
    padding: var(--space-x-small);
    text-align: center;
    border-radius: .25rem;
}
.uProfile-hello h3{
    margin-top: var(--space-x-small);
    margin-bottom: var(--space-small);
}
.uProfile-content2{
    margin-bottom: var(--space-x-large);
}
.uProfile-content2 h1{
    color: var(--main-color);
}
.uProfile-content2 .icon-group{
    display: flex;
    gap: var(--space-normal);
}
.uProfile-content2 .icon-group li{
    flex: 1;
    border: 1px solid #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-small);
    padding: .75rem .45rem 1.35rem .45rem;
    box-sizing: border-box;
}
.uProfile-content2 .icon-group li>span{
    font-weight: var(--fw-bold);
}
.uProfile-content2 .icon-group li>div{
    display: flex;
    align-items: center;
    color: var(--main-color);
}
.uProfile-content2 .icon-group li>div>a{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-small);
    font-weight: var(--fw-med);
}
.uProfile-content3 h1{
    margin-bottom: var(--space-large);
}
.form-row{
    display: flex;
}
/* 배송지 등록 영역 */
.uProfile-content3{
    margin-top: 5rem;
}
.uProfile-content3 input{
    font-size: var(--fs-reg);
}
.uProfile-content3 h1{
    font-size: 2rem;
    font-weight: var(--fw-bold);
    margin-bottom: var(--space-large);
}
/* 폼 전체 */
.address-form{
    border-top: 5px solid var(--main-color);
    border-bottom: 2px solid var(--main-color);
}
/* 한 줄씩 */
.address-form .form-row{
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--main-color);
}
.address-form .form-row:last-child{
    border-bottom: none;
}
/* 왼쪽 라벨 영역 */
.address-form .form-row > label{
    width: 220px;
    background-color: var(--cb-color-0);
    padding: 1.5rem var(--space-normal);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: var(--space-small);
    font-weight: var(--fw-bold);
    color: #111;
    border-right: 1px solid #808080;
}
/* 오른쪽 입력 영역 */
.address-form .field{
    flex: 1;
    padding: var(--space-normal) 0;
    padding-left: 1.5rem;
    box-sizing: border-box;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    gap: var(
    --space-small);
    justify-content: center;
}
/* 필수 표시 */
.address-form .required{
    color: red;
    font-weight: var(--fw-bold);
}
/* 공통 input, select */
.address-form input,
.address-form select{
    height: 48px;
    border: 1px solid #808080;
    padding: 0 var(--space-small);
    box-sizing: border-box;
    background-color: #fff;
    outline: none;
}
.address-form input::placeholder{
    color: #808080;
}
.address-form input:focus,
.address-form select:focus{
    border: 1px solid var(--main-color);
}
/* 연락처 */
.phone-group{
    display: flex;
    align-items: center;
    gap: var(--space-normal);
}
.phone-group select{
    flex: 1;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 14px center;
    padding: 0 var(--space-small);
    cursor: pointer;
}
.phone-group input{
    flex: 1;
    min-width: 0;
}
.phone-group span{
    color: #000;
}
/* 주소 상단 */
.address-top{
    display: flex;
    gap: var(--space-small);
}
.address-top input{
    flex: 1;
}
/* 우편번호 검색 버튼 */
.address-top button{
    width: 231px;
    text-align: center;
    border: 1px solid var(--main-color);
    color: var(--main-color);
    font-weight: var(--fw-bold);
    padding: var(--space-small) var(--space-x-large);
    box-sizing: border-box;
}
/* 아래 기본주소 / 상세주소 */
.address-form .field>input{
    width: 100%;
}

.ivt-foot{
    margin-top: var(--space-3x-large);
}
.checkbox-group{
    text-align: center;
}
.checkbox-group label {
    position: relative;
    padding-left: 2rem;
    cursor: pointer;
    display: inline-block;
    text-align: left;
}
.checkbox-group input{
    display: none;
}
.checkbox-group label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.2rem;
    height: 1.2rem;
    border: 1px solid #000;
    border-radius: .25rem;
    background: #fff;
    transition: all 0.2s;
}
.checkbox-group input:checked + label::before{
    background: var(--main-color);
    border-color: var(--main-color);
}
/* 체크 아이콘 */
.checkbox-group input:checked + label::after{
    content: "";
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-60%) rotate(45deg);
    width: 6px;
    height: 12px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
}
.btn-group{
    display: flex;
    gap: var(--space-small);
    justify-content: center;
}
.ivt-foot .btn-group button{
    margin-top: var(--space-normal);
    padding: var(--space-small) var(--space-2x-large);
    box-sizing: border-box;
    border: 1px solid var(--main-color);
    border-radius: var(--space-x-small);
}
.btn-confirm{
    background-color: var(--main-color);
    color: #fff;
}







/* ---------------- */
/* 반응형 대응 코드 */
@media (max-width: 1440px){
    main {
        padding-top: var(--space-3x-large);
    }
}

@media (max-width: 1200px){
    .phone-group select {
        width: 100%;
    }
    .phone-group input {
        width: 100%;
    }
    .address-top input {
        width: 100%;
    }
}

@media (max-width: 768px){
    .ivt-wrap {
        flex-direction: column;
    }
    .inventory-box {
        margin-bottom: var(--space-large);
        width: 100%;
    }
    .myInventory ul {
        flex-direction: initial;
        gap: 0;
    }
    .myInventory h1 {
        text-align: center;
    }
    .myInventory ul li{
        border: 1px solid #000;
        border-radius: 1rem;
        padding: 5px 10px;
    }
    .swiper.myInventory-swiper{
        top: 0;
    }
    .myInventory-swiper .swiper-slide {
        width: auto;
    }
    .myInventory ul li.selected {
        color: var(--main-color);
        font-weight: var(--fw-bold);
        background-color: var(--cb-color-0);
        border-color: var(--main-color);
    }
    .uProfile-box {
        width: 100%;
    }
    .uProfile-content1 {
        flex-direction: column;
        height: auto;
        text-align: center;
    }
    .phone-group {
        gap: var(--space-small);
    }
    .address-form .form-row {
        flex-direction: column;
    }
    .address-form .form-row > label {
        width: 100%;
        background-color: #fff;
        border-right: none;
        padding: var(--space-small) 0;
        padding-top: 1.5rem;
    }
    .address-form .field {
        padding: var(--space-x-small) 0;
    }
    
    .address-top button {
        flex: 1;
        width: 100%;
        padding: 0;
    }

    
}


@media (max-width: 500px){
    .uProfile-content2 .icon-group {
        display: grid;
        grid-template-columns: repeat(2,1fr);
        gap: var(--space-normal);
    }
    .uProfile-content2 .icon-group li:last-child{
        grid-column: span 2;
    }
    .address-top input {
        max-width: 150px;
    }
    .ivt-foot .btn-group button {
        padding: var(--space-small) var(--space-large);
    }

}