@charset "utf-8";

/* ========== 마이페이지 ========== */
.mypage-page,
.mypage-page #contents,
.mypage-sub.sub_content {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    float: none !important;
    box-sizing: border-box !important;
}

.mypage-wrap {
    max-width: 1280px;
    margin: 36px auto 70px;
    padding: 0 20px;
    box-sizing: border-box;
    overflow: hidden;
}
.mypage-wrap:after {
    content: "";
    display: block;
    clear: both;
}
.mypage-title {
    margin: 0 0 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid #111;
    font-size: 26px;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.03em;
}

/* 좌측 메뉴 */
.mypage-side {
    float: left;
    width: 210px;
}
.mypage-side .side-box {
    border: 1px solid #e8e8e8;
    background: #fff;
    margin-bottom: 12px;
    overflow: hidden;
}
.mypage-side .side-tit {
    margin: 0;
    padding: 12px 16px;
    background: #1a1a1a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}
.mypage-side ul {
    margin: 0;
    padding: 6px 0;
    list-style: none;
}
.mypage-side ul li a {
    display: block;
    padding: 9px 16px;
    color: #333;
    font-size: 13px;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.mypage-side ul li a:hover,
.mypage-side ul li a.on {
    background: #f6f6f6;
    color: #111;
    font-weight: 700;
}
.mypage-side ul li a span {
    float: right;
    color: #e11d2e;
    font-weight: 700;
}

.mypage-content {
    float: right;
    width: calc(100% - 236px);
    box-sizing: border-box;
}

/* 상단 회원 요약 */
.mypage-user {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 20px;
    padding: 22px 24px;
    margin-bottom: 16px;
    border: 1px solid #e8e8e8;
    background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
    box-sizing: border-box;
}
.mypage-user .user-profile {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    text-align: center;
    min-width: 96px;
}
.mypage-user .user-profile img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background: #ddd;
}
.mypage-user .user-profile .name {
    display: block;
    margin-top: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #111;
}
.mypage-user .user-profile .grade {
    display: inline-block;
    margin-top: 4px;
    padding: 3px 10px;
    background: #111;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    white-space: nowrap;
}
.mypage-user .user-profile .uid {
    margin: 5px 0 0;
    font-size: 12px;
    color: #888;
}
.mypage-user .user-stats {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}
.mypage-user .user-stats li {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 80px;
    text-align: center;
    padding: 6px 8px;
    border-left: 1px solid #ebebeb;
    box-sizing: border-box;
}
.mypage-user .user-stats li:first-child { border-left: 0; }
.mypage-user .user-stats li .label {
    display: block;
    margin-bottom: 5px;
    font-size: 11px;
    color: #888;
}
.mypage-user .user-stats li .num {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #111;
}
.mypage-user .user-stats li .num a {
    color: #e11d2e;
    text-decoration: none;
}
.mypage-user .user-actions {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    max-width: 320px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 6px;
}
.mypage-user .user-actions a {
    display: block;
    width: calc(50% - 3px);
    padding: 10px 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
    box-sizing: border-box;
}
.mypage-user .user-actions a:hover {
    border-color: #111;
    color: #111;
}
.mypage-user .user-actions a.primary {
    background: #111;
    border-color: #111;
    color: #fff;
}

/* 포인트 / 쿠폰 페이지 */
.point-summary {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px 20px;
    margin-bottom: 22px;
    border: 1px solid #e8e8e8;
    background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}
.point-summary .ps-item {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 6px 8px;
}
.point-summary .ps-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    color: #888;
}
.point-summary .ps-num {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: #111;
}
.point-summary .ps-num.plus { color: #e11d2e; }
.point-summary .ps-num.minus { color: #1565c0; }
.point-summary .ps-back {
    display: inline-block;
    padding: 9px 14px;
    border: 1px solid #111;
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.point-summary .ps-back:hover { background: #333; }

.point-panels {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 20px;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
}
.point-panels .point-panel {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}
.point-tbl td.tal { text-align: left; white-space: normal; }
.point-tbl .point-plus {
    color: #e11d2e;
    font-weight: 700;
}
.point-tbl .point-minus {
    color: #1565c0;
    font-weight: 700;
}
.point-tbl td.empty {
    padding: 28px 12px;
    color: #999;
    white-space: normal;
}
.point-page .pg_wrap,
.coupon-page .pg_wrap {
    margin-top: 20px;
    text-align: center;
}

/* 주문배송조회 전용 페이지 */
.order-delivery-page .order-delivery-desc {
    margin: -8px 0 18px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}
.order-delivery-page .order-delivery-desc a {
    color: #e11d2e;
    text-decoration: underline;
}
.order-delivery-box {
    max-width: 480px;
    margin: 0 auto 24px;
    padding: 20px 18px 22px;
    border: 1px solid #e8e8e8;
    background: #fff;
}
.order-delivery-tabs {
    display: flex;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    border: 1px solid #ddd;
}
.order-delivery-tabs li {
    flex: 1;
    text-align: center;
}
.order-delivery-tabs li a {
    display: block;
    padding: 11px 8px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    background: #f8f8f8;
    border-right: 1px solid #ddd;
}
.order-delivery-tabs li:last-child a { border-right: 0; }
.order-delivery-tabs li.on a {
    background: #111;
    color: #fff;
}
.order-delivery-hint {
    margin: 0 0 12px;
    font-size: 12px;
    color: #999;
}
.order-delivery-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    font-size: 15px;
}
.order-delivery-submit {
    width: 100%;
    padding: 14px;
    border: 0;
    background: #111;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
.order-delivery-error {
    max-width: 480px;
    margin: 0 auto 16px;
    padding: 12px;
    text-align: center;
    color: #c62828;
    background: #fff5f5;
    border: 1px solid #ffcdd2;
    font-size: 13px;
}
.order-delivery-result-sec .mypage-tbl th {
    width: 110px;
    text-align: left;
    background: #fafafa;
}
.order-delivery-result-sec .mypage-tbl td {
    text-align: left;
    white-space: normal;
}
.order-delivery-result-sec .od-delivery-link {
    display: inline-block;
    margin-left: 8px;
    padding: 4px 10px;
    font-size: 12px;
    background: #111;
    color: #fff !important;
    text-decoration: none;
}
.order-delivery-back {
    margin-top: 20px;
    text-align: center;
}
.order-delivery-back .ps-back {
    display: inline-block;
}

/* 주문 상태 */
.mypage-order-status {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-bottom: 20px;
    border: 1px solid #e8e8e8;
    background: #fff;
}
.mypage-order-status a {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    display: block;
    padding: 14px 8px;
    text-align: center;
    text-decoration: none;
    color: #333;
    border-left: 1px solid #f0f0f0;
    box-sizing: border-box;
}
.mypage-order-status a:first-child { border-left: 0; }
.mypage-order-status a:hover { background: #fafafa; }
.mypage-order-status .st-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    color: #666;
}
.mypage-order-status .st-num {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #111;
}

/* 퀵 링크 */
.mypage-quick {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: 0 -5px 22px;
    list-style: none;
    padding: 0;
}
.mypage-quick li {
    width: 25%;
    padding: 5px;
    box-sizing: border-box;
}
.mypage-quick li a {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    height: 46px;
    border: 1px solid #e8e8e8;
    background: #fff;
    color: #333;
    font-size: 13px;
    text-decoration: none;
    transition: all .15s;
}
.mypage-quick li a:hover {
    border-color: #111;
    background: #111;
    color: #fff;
}

/* 섹션 */
.mypage-sec {
    position: relative;
    margin-bottom: 28px;
}
.mypage-sec h3 {
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #111;
    font-size: 17px;
    font-weight: 700;
    color: #111;
}
.mypage-sec h3 .sec-count {
    margin-left: 4px;
    font-style: normal;
    font-size: 13px;
    color: #e11d2e;
    font-weight: 700;
}
.mypage-sec .more {
    position: absolute;
    top: 2px;
    right: 0;
    font-size: 12px;
    color: #888;
    text-decoration: none;
}
.mypage-sec .more:hover { color: #111; }

/* 회원정보 */
.mypage-info-grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    border: 1px solid #e8e8e8;
    background: #fff;
}
.mypage-info-grid dl {
    width: 50%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin: 0;
    padding: 12px 16px;
    border-bottom: 1px solid #f2f2f2;
    box-sizing: border-box;
}
.mypage-info-grid dl:nth-child(odd) { border-right: 1px solid #f2f2f2; }
.mypage-info-grid dl.full { width: 100%; border-right: 0; }
.mypage-info-grid dt {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 100px;
    flex: 0 0 100px;
    font-size: 13px;
    font-weight: 700;
    color: #666;
}
.mypage-info-grid dd {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    margin: 0;
    font-size: 13px;
    color: #222;
    word-break: break-all;
}
.mypage-info-grid .muted { color: #999; }
.mypage-info-grid .inline-edit {
    margin-left: 8px;
    color: #e11d2e;
    font-size: 12px;
    text-decoration: underline;
}

/* 빈 상태 */
.mypage-empty {
    padding: 28px 16px;
    text-align: center;
    border: 1px dashed #ddd;
    background: #fafafa;
}
.mypage-empty.compact { padding: 20px 12px; border: 0; background: transparent; }
.mypage-empty .empty-tit {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    color: #444;
}
.mypage-empty .empty-desc {
    margin: 0 0 14px;
    font-size: 12px;
    color: #999;
}
.mypage-empty .empty-actions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 8px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}
.mypage-empty .btn-line,
.mypage-empty .btn-fill {
    display: inline-block;
    padding: 9px 16px;
    font-size: 13px;
    text-decoration: none;
    box-sizing: border-box;
}
.mypage-empty .btn-line {
    border: 1px solid #ccc;
    color: #333;
    background: #fff;
}
.mypage-empty .btn-fill {
    border: 1px solid #111;
    background: #111;
    color: #fff;
}

/* PC 테이블 */
.mypage-tbl {
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid #111;
}
.mypage-tbl th,
.mypage-tbl td {
    padding: 12px 8px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}
.mypage-tbl th {
    background: #fafafa;
    font-weight: 700;
    color: #333;
}
.mypage-tbl td a {
    color: #111;
    font-weight: 700;
    text-decoration: none;
}
.mypage-tbl td a:hover { color: #e11d2e; }
.mypage-tbl .text_right { text-align: right; }

.status_01 { display:inline-block; background:#f5f5f5; color:#666; padding:2px 8px; line-height:20px; font-size:12px; border-radius:3px; }
.status_02 { display:inline-block; background:#e11d2e; color:#fff; padding:2px 8px; line-height:20px; font-size:12px; border-radius:3px; }
.status_03 { display:inline-block; background:#fff3e0; color:#e65100; padding:2px 8px; line-height:20px; font-size:12px; border-radius:3px; }
.status_04 { display:inline-block; background:#e3f2fd; color:#1565c0; padding:2px 8px; line-height:20px; font-size:12px; border-radius:3px; }
.status_05 { display:inline-block; background:#111; color:#fff; padding:2px 8px; line-height:20px; font-size:12px; border-radius:3px; }
.status_06 { display:inline-block; background:#fff; color:#e11d2e; border:1px solid #e11d2e; padding:2px 8px; line-height:20px; font-size:12px; border-radius:3px; }

/* 모바일 주문 카드 (기본 숨김) */
.mypage-order-cards {
    display: none;
    margin: 0;
    padding: 0;
    list-style: none;
}
.mypage-order-cards .order-card {
    display: block;
    padding: 14px;
    margin-bottom: 8px;
    border: 1px solid #e8e8e8;
    background: #fff;
    text-decoration: none;
    color: inherit;
}
.mypage-order-cards .oc-top {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}
.mypage-order-cards .oc-top strong {
    font-size: 14px;
    color: #111;
}
.mypage-order-cards .oc-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 3px 0;
    font-size: 13px;
}
.mypage-order-cards .oc-row span { color: #888; }
.mypage-order-cards .oc-row em {
    font-style: normal;
    color: #222;
}
.mypage-order-cards .oc-row .price {
    font-weight: 700;
    color: #111;
}

/* 위시 */
.mypage-wish {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: 0 -6px;
    list-style: none;
    padding: 0;
}
.mypage-wish li {
    width: 25%;
    padding: 6px;
    box-sizing: border-box;
}
.mypage-wish li.empty_li {
    width: 100%;
    padding: 0;
}
.mypage-wish .wish-card {
    border: 1px solid #eee;
    background: #fff;
    height: 100%;
}
.mypage-wish .wish-card:hover { border-color: #111; }
.mypage-wish .wish-img a { display: block; }
.mypage-wish .wish-img img {
    width: 100%;
    height: auto;
    display: block;
}
.mypage-wish .wish-info { padding: 10px; }
.mypage-wish .wish-tit {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
}
.mypage-wish .wish-tit a {
    color: #222;
    text-decoration: none;
}
.mypage-wish .wish-date {
    font-size: 11px;
    color: #999;
}

@media screen and (max-width: 1090px) {
    .mypage-wrap {
        margin: 16px auto 40px;
        padding: 0 12px;
    }
    .mypage-title {
        margin-bottom: 14px;
        padding-bottom: 10px;
        font-size: 20px;
    }
    .mypage-side,
    .mypage-content {
        float: none;
        width: 100%;
    }
    .mypage-side { margin-bottom: 14px; }
    .mypage-side .side-box { margin-bottom: 8px; }
    .mypage-side ul {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }
    .mypage-side ul li {
        width: 50%;
        box-sizing: border-box;
    }
    .mypage-side ul li a { padding: 10px 12px; }

    .mypage-user {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        text-align: center;
        padding: 16px;
        gap: 12px;
        margin-bottom: 12px;
    }
    .mypage-user .user-profile {
        width: 100%;
    }
    .mypage-user .user-actions {
        -ms-flex: none;
        flex: none;
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }
    .mypage-user .user-actions a {
        width: calc(50% - 3px);
        padding: 11px 8px;
    }

    .point-summary {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        padding: 14px;
        gap: 8px;
    }
    .point-summary .ps-item {
        width: 100%;
        padding: 8px 0;
        border-top: 1px solid #eee;
    }
    .point-summary .ps-item:first-child { border-top: 0; }
    .point-summary .ps-back {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    .point-panels {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 18px;
    }
    .point-panels .point-panel { width: 100%; }

    .mypage-order-status {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        margin-bottom: 14px;
    }
    .mypage-order-status a {
        width: 33.33%;
        -webkit-box-flex: 0;
        -ms-flex: none;
        flex: none;
        border-left: 0;
        border-bottom: 1px solid #f0f0f0;
        padding: 12px 4px;
    }
    .mypage-order-status .st-num { font-size: 18px; }

    .mypage-quick { margin-bottom: 16px; }
    .mypage-quick li { width: 50%; }
    .mypage-quick li a { height: 42px; font-size: 12px; }

    .mypage-sec { margin-bottom: 20px; }
    .mypage-info-grid dl {
        width: 100%;
        border-right: 0;
        padding: 10px 12px;
    }
    .mypage-info-grid dt { -ms-flex: 0 0 90px; flex: 0 0 90px; }

    /* 모바일: 테이블 숨기고 카드 표시 (가로 스크롤 제거) */
    .mypage-tbl-pc { display: none !important; }
    .mypage-order-cards { display: block; }

    .mypage-wish li { width: 50%; }
    .mypage-empty { padding: 20px 12px; }
}

@media screen and (max-width: 480px) {
    .mypage-user .user-stats li { width: 50%; }
    .mypage-user .user-stats li:nth-child(-n+3) { border-top: 1px solid #eee; }
    .mypage-user .user-stats li:nth-child(-n+2) { border-top: 0; }
    .mypage-order-status a { width: 50%; }
}
