﻿

::after,
::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

li {
    list-style: none;
}

h1 {
    font-weight: 600;
    font-size: 1.5rem;
}



.wrapper {
    display: flex;
}

#sidebar {
    width: 70px;
    min-width: 70px;
    z-index: 1000;
    transition: all .25s ease-in-out;
    background-color: #123456;
    display: flex;
    flex-direction: column;
}

    #sidebar.expand {
        width: 260px;
        min-width: 260px;
    }

.toggle-btn {
    background-color: transparent;
    cursor: pointer;
    border: 0;
    padding: 1rem 1.5rem;
}

    .toggle-btn i {
        font-size: 1.5rem;
        color: #FFF;
    }

.sidebar-logo {
    margin: auto 0;
}

    .sidebar-logo a {
        color: #FFF;
        font-size: 1.5rem;
        font-weight: 600;
        text-decoration-line: none;
    }

#sidebar:not(.expand) .sidebar-logo,
#sidebar:not(.expand) a.sidebar-link span {
    display: none;
}

.sidebar-nav {
    padding: 2rem 0;
    flex: 1 1 auto;
}

a.sidebar-link {
    padding: .625rem 1.625rem;
    color: #FFF;
    display: block;
    font-size: 1rem;
    white-space: nowrap;
    border-left: 3px solid transparent;
    text-decoration-line: none;
}

.sidebar-link i {
    font-size: 1.1rem;
    margin-right: .75rem;
}

a.sidebar-link:hover {
    background-color: rgba(255, 255, 255, .075);
    border-left: 3px solid #3b7ddd;
}

.sidebar-item {
    position: relative;
}

#sidebar:not(.expand) .sidebar-item .sidebar-dropdown {
    position: absolute;
    top: 0;
    left: 70px;
    background-color: #0e2238;
    padding: 0;
    min-width: 15rem;
    display: none;
}

#sidebar:not(.expand) .sidebar-item:hover .has-dropdown + .sidebar-dropdown {
    display: block;
    max-height: 15em;
    width: 100%;
    opacity: 1;
}

#sidebar.expand .sidebar-link[data-bs-toggle="collapse"]::after {
    border: solid;
    border-width: 0 .075rem .075rem 0;
    content: "";
    display: inline-block;
    padding: 2px;
    position: absolute;
    right: 1.5rem;
    top: 1.4rem;
    transform: rotate(-135deg);
    transition: all .2s ease-out;
}

#sidebar.expand .sidebar-link[data-bs-toggle="collapse"].collapsed::after {
    transform: rotate(45deg);
    transition: all .2s ease-out;
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.main {
}

/* Header Style */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000; /* float된 nav 등과 충돌방지용 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: #fff; /* 흰색 배경 */
    color: #111; /* 검정색 폰트 */
    border-bottom: 1px solid #eee;
    height: 100px; /* 실제 높이로 고정 혹은 상황 맞게 지정! */
}

@media (max-width: 767px) {
    header {
        height: 50px !important;
    }
}

.logo {
    font-size: 2em;
    font-weight: bold;
    letter-spacing: 1px;
}

.header-btn {
    background: #f6c915;
    color: #24292e;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    padding: 10px 28px;
    cursor: pointer;
    transition: background 0.2s;
}

    .header-btn:hover {
        background: #e4b200;
    }

/* Nav Style */
nav {
    position: fixed;
    top: 50px; /* header의 실제 높이!!! */
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    background: #fff; /* 네비게이션 바탕도 흰색 */
    padding: 0 40px;
    border-bottom: 1px solid #eee;
    margin-top: 50px;
    display: flex;
    align-items: center;
    min-width: 1350px;
}



.main-menu {
    list-style: none;
    display: flex;
    align-items: center;
}

    .main-menu > li {
        position: relative;
        display: flex;
        align-items: center;
    }

        .main-menu > li > a {
            display: block;
            padding: 20px 20px 20px 35px;
            color: #111; /* 폰트 검정색 */
            text-decoration: none;
            font-weight: 500;
            background: none;
            transition: background 0.2s;
            font-size: 1.08em;
        }

        .main-menu > li:hover > a {
            background: #f1f1f7;
            color: #222;
        }

        .main-menu > li > a.active,
        .main-menu > li > a:active {
            color: #0070f0; /* 강조된 색상 */
            position: relative;
        }

            .main-menu > li > a.active::after {
                content: "";
                position: absolute;
                left: 16px;
                right: 16px;
                bottom: 0px;
                height: 3px;
                background: #0070f0;
                border-radius: 2px;
                z-index: 1;
            }

        /* 메뉴 사이 | 구분 기호 */
        .main-menu > li:not(:last-child)::after {
            content: "|";
            color: #d1d5db; /* 연한 회색 기호 */
            margin: 0 2px 0 0;
            font-weight: normal;
            font-size: 1.1em;
            display: inline-block;
            position: absolute;
            right: -14px; /* a태그 오른쪽에 표시 */
            top: 50%;
            transform: translateY(-50%);
        }

/* Submenu Style */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 160px;
    /* max-width: none;  필요하면 생략 */
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    z-index: 10;
    border: 1px solid #eee;
    border-top: none;
    white-space: nowrap; /* 이거 추가!! */
}

    .submenu li a {
        display: block;
        color: #111; /* 서브도 검은색 */
        padding: 12px 18px;
        text-decoration: none;
        transition: background 0.17s;
        font-weight: 400;
        font-size: 1em;
    }

        .submenu li a:hover {
            background: #f1f1f7;
            color: #0070f0;
        }

/* Show submenu on hover */
.main-menu > li:hover .submenu {
    display: block;
}

.scr-inner {
    display: flex;
    flex-direction: row;
    max-width: 1320px;
    width: 100%;
    margin: 0 auto;
    gap: 32px;
}

    .scr-inner > div:first-child {
        flex: 1 1 0; /* 남은 영역을 모두 차지 */
        min-width: 0; /* flex 컨테이너에서 오버플로 방지 */
    }

    .scr-inner > div:last-child {
        width: 300px; /* 사이드 폭 고정 */
        flex: 0 0 300px; /* 늘어나지 않고 300px 딱 맞춤 */
    }

.web-footer {
    background: #fff;
    width: 100%;
    text-align: center;
    padding: 20px;
    line-height: 25px;
    color: #5f5f5f;
    font-size: 0.9rem;
}

.web_logo {
    width: 250px;
    padding: 20px;
}

.main-market {
    /*
    display: flex;
    flex-direction: row;
    gap: 35px;
    margin: 2rem 0;
        */
    display: grid;
    grid-template-columns: 1fr 1fr; /* 한줄에 딱 2개 */
    gap: 1.6rem;
}

.item-center {
    justify-items: center;
    text-align: center;
}

h6 {
    font-size: 1rem;
}

.form-consent {
    border: none;
    padding-left: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    color: #1f62c4;
}

.form-consent-realname {
    border: 1px solid #4c4c4c;
    margin-left: 24px;
    font-size: 1.0rem;
    padding: 3px;
}

.form-consent-mobile {
    border: 1px solid #4c4c4c;
    margin-left: 10px;
    font-size: 1.0rem;
    padding: 3px;
}
    /* 혹시 별도 클래스 지정시 */
    .form-consent-realname::placeholder,
    .form-consent-mobile::placeholder {
        font-size: 0.8em;
        color: #b0b0b0;
        opacity: 1;
        font-weight: 400;
        padding-left: 5px;
    }

.wrap_text {
    white-space: pre-line;
}

.card-consent {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    background: #fff;
    margin-bottom: 20px;
    line-height: 2;
}

.card-consent-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
}

.card-consent-all-agree {
    font-size: 1.2rem;
    font-weight: 400;
    color: #da2e70;
    margin: 10px 0;
}

.btn-consent-submit:disabled {
    background: #cccccc !important;
    border-color: #cccccc !important;
    color: #888888 !important;
    cursor: not-allowed;
}

.btn-consent-submit:not(:disabled) {
    background: #007bff !important;
    border-color: #007bff !important;
    color: #fff !important;
    cursor: pointer;
}

.mypage-user {
    display: flex;
    flex-wrap: wrap;
    background: #eef1f7;
    border-radius: 10px;
    padding: 18px 24px 8px 24px;
    margin: 24px 0 32px 0;
    box-shadow: 0 2px 10px rgba(86,120,212,0.03);
    align-items: center;
    gap: 18px;
    min-height: 54px;
}

.mypage-item {
    font-size: 1.1rem;
    color: #24355b;
    font-weight: 500;
    margin-right: 24px;
    padding-left: 28px;
    letter-spacing: 0.04em;
    position: relative;
    min-width: 160px;
    margin-bottom: 10px;
    padding-left: 50px;
}

    .mypage-item:first-child:before {
        content: '👤';
        position: absolute;
        left: 2px;
        top: 40%;
        transform: translateY(-50%);
        font-size: 1.16em;
        vertical-align: middle;
    }

    .mypage-item:nth-child(2):before {
        content: '🧑';
        position: absolute;
        left: 2px;
        top: 40%;
        transform: translateY(-50%);
        font-size: 1.16em;
        vertical-align: middle;
    }

    .mypage-item:nth-child(3):before {
        content: '📱';
        position: absolute;
        left: 2px;
        top: 40%;
        transform: translateY(-50%);
        font-size: 1.16em;
        vertical-align: middle;
    }

    .mypage-item:last-child:before {
        content: '✉️';
        position: absolute;
        left: 2px;
        top: 40%;
        transform: translateY(-50%);
        font-size: 1.13em;
        vertical-align: middle;
    }

.mypage-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: #fafcff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border-radius: 8px;
    overflow: hidden;
    font-size: 15px;
}

    .mypage-table th {
        background: #324686;
        color: #fff;
        font-weight: 600;
        padding: 12px 10px;
        border-bottom: 2px solid #27315a;
        text-align: center;
        letter-spacing: 1px;
    }

    .mypage-table td {
        padding: 12px 10px;
        border-bottom: 1px solid #e1e6ef;
        text-align: center;
        background: #fff;
        color: #323548;
    }

    .mypage-table tr:last-child td {
        border-bottom: none;
    }

    .mypage-table tbody tr:hover {
        background: #eff3ff;
        transition: background 0.2s;
    }

    .mypage-table td[colspan] {
        color: #b0b0b0;
        background: #f5f5f5;
        font-style: italic;
    }

.mypage-table {
    margin-bottom: 28px;
}

/* 반응형 - 모바일 일부 개선 */
@media (max-width: 600px) {
    .mypage-table th, .mypage-table td {
        padding: 8px 4px;
        font-size: 13px;
    }

    .mypage-user .mypage-item {
        font-size: 14px;
    }
}

.card-flex {
    display: flex;
    gap: 16px;
    align-items: stretch;
}

.card-img-wrap {
    flex: 1 1 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.card-img {
    width: 100%;
    max-width: 140px; /* 원하는 이미지 최대폭 */
    aspect-ratio: 1/1; /* 정사각형 기준 (1:1). 없으면 height: auto로 자동조정됨 */
    object-fit: cover;
    border-radius: 8px;
    background: #f5f5f5;
}

.card-info {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.item-info-details {
    display: flex;
    flex-direction: row;
    gap: 2rem; /* 좌우 간격 */
    width: 100%;
    margin-bottom: 30px;
   
}

.item-m-info-details {
    flex-direction: row;   
    width: 100%;
    margin-bottom: 30px;
    margin-top: 20px;
}

.item-info-left, .item-info-right {
    flex: 1 0 0;
    min-width: 0;
    box-sizing: border-box;
}

.sv-thumbnail {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1.2em;
    border-radius: 12px;
    object-fit: cover;
}

.item-info-left > div,
.item-info-right > div {
    margin-bottom: 12px;
}

.item-info-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-left: 12px;
    gap: 12px;
}

    .item-info-right button {
        margin-top: 14px;
        width: 100%;
        font-size: 1.06em;
        padding: 10px 0;
        border-radius: 5px;
        background: #4255a6;
        color: #fff;
        border: none;
        cursor: pointer;
    }

        .item-info-right button:hover {
            background: #253574;
        }

.item-m-info-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;  
    gap: 8px;
}

.item-info-each {
    display: flex;
    font-size: 1.2rem;
    gap: 40px;
}

.item-m-info-each {
    display: flex;
    font-size: 0.9rem;
    gap: 15px;
}

.m-btn-purchase {
    margin-top: 14px;
    width: 100%;
    font-size: 1.06em;
    padding: 10px 0;
    border-radius: 5px;
    background: #4255a6;
    color: #fff;
    border: none;
    cursor: pointer;
}

.item-info-spec {
    font-weight: 600;
}

.item-info-price {
    font-weight: 700;
    color: #da2e70;
}

.item-info-price-side {
    font-weight: 400;
    font-size: 1rem;
    color: #0d939a;
}

.item-header-row {
    display: flex;
    justify-content: space-between; /* 양쪽 끝 정렬 */
    align-items: center; /* 수직 중앙 */
    padding: 0 15px;
}

.slider-main-market {
}

.main-market-row {
    display: flex;
    gap: 15px;
    margin-top: 8px;
    transition: opacity 0.2s;
    opacity: 1;
}

    .main-market-row.fading {
        opacity: 0;
    }

.card-img-wrap img {
    width: 100%;
    object-fit: cover;
}

.item-info-notice {
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: #da2e70;
    animation: blink 1.5s infinite;
}

.item-m-info-notice {
    text-align: center;
    font-weight: 600;
    font-size: 0.8rem;
    color: #da2e70;
    animation: blink 1.5s infinite;
}
/* 깜빡임 애니메이션 키프레임 정의 */
@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}