/* BASIC css start */
/* ===== 공통 레이아웃 (사이드바 + 콘텐츠) ===== */
.mypage-wrapper {
    max-width: 1200px;
    margin: 0 auto 100px;
    padding: 60px 15px 0;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
}
.mypage-wrapper *,
.mypage-wrapper *::before,
.mypage-wrapper *::after { box-sizing: border-box; }
.mypage-wrapper .mypage-row {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
.mypage-wrapper .content-body { flex: 1; min-width: 0; }
.mypage-wrapper .ml-auto { margin-left: auto; }


/* ===== Sidebar ===== */
.mypage-sidebar {
    flex: 0 0 200px;
    width: 200px;
}
.mypage-sidebar .sidebar-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 40px;
    padding: 0;
}
.mypage-sidebar .sidebar-group { margin-bottom: 36px; }
.mypage-sidebar .sidebar-group:last-child { margin-bottom: 0; }
.mypage-sidebar .sidebar-group__title {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 16px;
    padding: 0;
}
.mypage-sidebar .sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mypage-sidebar .sidebar-menu li { padding: 7px 0; }
.mypage-sidebar .sidebar-menu li a {
    display: block;
    color: #666;
    font-size: .875rem;
    text-decoration: none;
    transition: color .15s;
}
.mypage-sidebar .sidebar-menu li a:hover { color: #111; text-decoration: underline; }
.mypage-sidebar .sidebar-menu li a.active,
.mypage-sidebar .sidebar-menu li a.on {
    color: #111;
    font-weight: 700;
}


/* ===== 페이지 타이틀 ===== */
.mypage-wrapper .page-title-wrap {
    padding-bottom: 30px;
    text-align: left;
}
.mypage-wrapper .page-title-wrap .tit-page,
#myTodayView .tit-page,
#todayList .tit-page {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
    text-align: left;
    margin: 0;
    padding: 0;
    border-bottom: 0;
    background: none;
}


/* ===========================================
   최근 본 상품 페이지
   =========================================== */
#todayList .product-list { margin: 10px 0 20px; }

/* 리스트 헤더 (전체 선택 + 선택 삭제) */
#todayList .product-goods--header {
    display: flex;
    align-items: center;
    padding: 14px 4px;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}
#todayList .product-goods--header .check-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    cursor: pointer;
    margin: 0;
}
#todayList .product-goods--header .check-all input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
}
#todayList .product-goods--header .ml-auto {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    text-decoration: none;
}
#todayList .product-goods--header .ml-auto:hover { text-decoration: underline; }

/* 상품 리스트 */
#todayList .product-goods--list {
    list-style: none;
    padding: 0;
    margin: 0;
}
#todayList .product-goods--list > li {
    padding: 16px 4px 24px;
    border-bottom: 1px solid #eee;
}

/* 상품 카드 상단 (체크박스 + 삭제 버튼) */
#todayList .product-goods--top {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}
#todayList .product-goods--top .check-item {
    display: inline-flex;
    align-items: center;
    margin: 0;
    cursor: pointer;
}
#todayList .product-goods--top .check-item input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
}
#todayList .lnk-delete {
    display: inline-block;
    margin-left: auto;
    width: 18px;
    height: 18px;
    position: relative;
    text-indent: -9999px;
    overflow: hidden;
    color: transparent;
}
#todayList .lnk-delete::before,
#todayList .lnk-delete::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 1.5px;
    background: #666;
    transform-origin: center;
}
#todayList .lnk-delete::before { transform: translate(-50%, -50%) rotate(45deg); }
#todayList .lnk-delete::after { transform: translate(-50%, -50%) rotate(-45deg); }
#todayList .lnk-delete:hover::before,
#todayList .lnk-delete:hover::after { background: #222; }

/* 상품 정보 그리드 (이미지 - 상세 - 적립금 - 장바구니) */
#todayList .product-goods--info {
    display: grid;
    grid-template-columns: 120px 1fr 180px 140px;
    gap: 20px;
    align-items: center;
}

/* 상품 이미지 */
#todayList .product-goods-image { text-align: left; }
#todayList .product-goods-image a { display: inline-block; }
#todayList .product-goods-image img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 1px solid #eee;
}

/* 상품명/가격 */
#todayList .product-goods-details { text-align: left; min-width: 0; }
#todayList .product-goods-details .title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: #222;
}
#todayList .product-goods-details .title a {
    color: #222;
    text-decoration: none;
}
#todayList .product-goods-details .title a:hover { text-decoration: underline; }
#todayList .product-goods-details .price {
    margin: 0;
    font-size: 14px;
}
#todayList .product-goods-details .price strong {
    font-size: 15px;
    font-weight: 700;
    color: #222;
}
#todayList .product-goods-details .price .strike {
    margin-left: 8px;
    font-size: 13px;
    color: #999;
}
#todayList .product-goods-details .price .strike strike { color: #999; }

/* 적립금 */
#todayList .product-goods-benefits {
    font-size: 13px;
    color: #666;
    text-align: left;
}
#todayList .product-goods-benefits .benefit-label {
    color: #888;
    margin-right: 4px;
}

/* 장바구니 버튼 */
#todayList .product-goods-end {
    text-align: right;
}
#todayList .btn-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 16px;
    background: #fff;
    border: 1px solid #222;
    color: #222;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    box-sizing: border-box;
}
#todayList .btn-cart:hover { background: #222; color: #fff; }

/* 빈 상태 */
#todayList .product-goods--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    border-top: 1px solid #222;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #999;
}
#todayList .product-goods--empty p { margin: 0; }

/* 비회원 접근 시 사이드바 없이 중앙 정렬 */
#myTodayView .mypage-row:not(:has(.mypage-sidebar)) { justify-content: center; }
/* BASIC css end */

