
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Malgun Gothic", "맑은 고딕", sans-serif;
    background: #f3f3f3;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    opacity: 0.8;
}
input,
textarea,
select,
button {
    font-family: "Malgun Gothic", "맑은 고딕", sans-serif;
}
input::placeholder,
textarea::placeholder {
    font-family: "Malgun Gothic", "맑은 고딕", sans-serif;
    color: #999;
}
/* Chrome, Safari, Edge */
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
    font-family: "Malgun Gothic", "맑은 고딕", sans-serif;
    color: #999;
}

/* Firefox */
input::-moz-placeholder,
textarea::-moz-placeholder {
    font-family: "Malgun Gothic", "맑은 고딕", sans-serif;
    color: #999;
    opacity: 1;
}

/* IE 구형 (필요시) */
input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
    font-family: "Malgun Gothic", "맑은 고딕", sans-serif;
    color: #999;
}
input,
textarea,
select {
    color: #000;
}

/* ===== HEADER ===== */
header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 20px;
    height:70px;
    background:#fff;
    border-bottom:1px solid #e5e5e5;
}


header h1 {
    font-size: 20px;
    font-weight: bold;
    color: #000;
    margin: 0;
}

.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    height: 70px;
    border-bottom: 1px solid #e5e5e5;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 20px;
    position: relative;
}
/* ===== GNB ===== */
.gnb {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
}


.gnb a {
    text-decoration:none;
    color:#333;
    font-size:14px;
    position:relative;
}

.gnb a:hover {
    color:#000;
}

.gnb a.active {
    font-weight:bold;
}

.gnb a.active:after {
    content:'';
    position:absolute;
    bottom:-10px;
    left:0;
    width:100%;
    height:2px;
    background:#000;
}

/* ===== HEADER RIGHT ===== */
.header-left {
    z-index: 2;
}

/* 우측 */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2;
}

/* ===== 관리자 메뉴 강조 ===== */
.admin-menu {
    color:#d00000 !important;
    font-weight:bold;
	font-size:13px;
}

/* ===== 알림 배지 ===== */
.badge {
    background:#d00000;
    color:#fff;
    font-size:11px;
    padding:2px 6px;
    border-radius:20px;
    margin-left:5px;
}

/* ===== 모바일 ===== */
.menu-toggle {
    display:none;
    background:none;
    border:none;
    font-size:22px;
}

.mobile-menu {
    display:none;
    flex-direction:column;
    background:#fff;
    border-bottom:1px solid #e5e5e5;
}

.mobile-menu a {
    padding:15px 20px;
    text-decoration:none;
    border-top:1px solid #f2f2f2;
    color:#000;
}

.mobile-menu.open {
    display:flex;
}

.userInfo {display:flex; align-items:center; gap:15px;}
.userInfo span {font-size:14px; color:#000;}

@media (max-width:1024px){

    .gnb {
        display: none;
        position: static;
        transform: none;
    }
    .menu-toggle { display:block; }
	.admin-menu,
	.userInfo > span { display:none; }
	.header-right {gap:8px;}
	
}

.logout-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
}

/* ===== FOOTER ===== */
footer {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-top: 1px solid #e5e5e5;
    font-size: 13px;
    color: #666;
}

/* ===== MOBILE ===== */
@media (max-width: 480px) {
    header {
        height: 60px;
    }

    .login-box {
        padding: 30px 20px;
    }

    footer {
        font-size: 12px;
    }
}



/* ===== LOGIN ===== */
login {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-box {
    width: 100%;
    max-width: 420px;
    background: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 16px;
}

.form-group input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    transition: border 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #000;
}

/* 휴대폰 + 버튼 한줄 */
.phone-wrap {
    display: flex;
    gap: 8px;
}

.phone-wrap input {
    flex: 1;
}

.btn-verify {
    width: 110px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.btn-verify:hover {
    opacity: 0.85;
}

/* 로그인 버튼 */
.btn-login {
    width: 100%;
    height: 50px;
    background: #000;
    border: none;
    color: #fff;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 0;
}

.btn-login:hover {
    opacity: 0.85;
}

.login-bottom {
    margin-top: 20px;
    text-align: center;
}

.register-link {
    font-size: 13px;
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid #000;
    padding-bottom: 2px;
    transition: opacity 0.2s ease;
}

.register-link:hover {
    opacity: 0.6;
}


/* 상품 영역 */

content {
    flex: 1;
    padding: 30px 20px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.product-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-card:hover {
    border-color: #000;
}

.product-img {
    width: 100%;
    height: 120px;
    background: #ddd;
    margin-bottom: 10px;
}

.product-name {
    font-size: 14px;
    margin-bottom: 5px;
}

.product-price {
    font-size: 13px;
    color: #555;
	display:none;
}

/* 게시판 영역 */
.board-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.board-box {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
}

.board-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.board-box li {
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.board-box li:last-child {
    border-bottom: none;
}

.board-box a {
    text-decoration: none;
    color: #000;
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .board-wrap {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== LAYOUT WRAP ===== */
.layout-left {
    flex: 1;
}

/* ===== 고급형 HELP PANEL ===== */
.help-panel {
    position: fixed;
    top: 100px;   /* header 고려 */
    right: 30px;
    width: 280px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* HEADER */
.help-header {
    background: #000;
    color: #fff;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.help-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

/* CONTENT */
.help-content {
    padding: 16px;
}

.help-item {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 13px;
    line-height: 1.5;
}

.help-item.highlight {
    background: #f5f5f5;
    padding: 10px;
    border-radius: 6px;
}

/* ===== MOBILE ===== */
.mobile-help-btn {
    display: none;
}

@media (max-width: 1024px) {

    .help-panel {
        position: fixed;
        bottom: -100%;
        top: auto;
        right: 0;
        width: 100%;
        max-height: 70%;
        border-radius: 15px 15px 0 0;
    }

    .help-panel.active {
        bottom: 0;
    }

    .mobile-help-btn {
        display: block;
        position: fixed;
        bottom: 20px;
        right: 20px;
        background: #000;
        color: #fff;
        border: none;
        padding: 12px 18px;
        border-radius: 30px;
        font-size: 13px;
        cursor: pointer;
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
        z-index: 1100;
    }
}


/* ===== REGISTER ===== */
.register-wrap {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.register-box {
    width: 100%;
    max-width: 420px;
    background: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.register-title {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
}

/* 아이디 + 버튼 한줄 */
.id-wrap {
    display: flex;
    gap: 8px;
}

.id-wrap input {
    flex: 1;
}

.btn-check {
    width: 110px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.btn-check:hover {
    opacity: 0.8;
}

/* 등록 버튼 */
.btn-register {
    width: 100%;
    height: 50px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 0;
}

.btn-register:hover {
    opacity: 0.85;
}

/* 모바일 */
@media (max-width: 480px) {

    .register-box {
        padding: 30px 20px;
    }

}



/* ===== PRODUCT VIEW ===== */
.product-view-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

/* ===== 갤러리 ===== */
.product-gallery {
    display: flex;
    flex-direction: column;
}

.product-main-img {
    border: 1px solid #e5e5e5;
    padding: 10px;
    margin-bottom: 15px;
    text-align: center;
    background: #fff;
}

.product-main-img img {
    max-width: 100%;
}

.product-thumb-list {
    display: flex;
    gap: 10px;
}

.product-thumb-list img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 1px solid #ddd;
    cursor: pointer;
}

/* ===== 상품 정보 ===== */
.product-info {
    background: #fff;
    padding: 30px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
}

.product-title {
    margin-top: 0;
    font-size: 22px;
    font-weight: bold;
}

.product-short-desc {
    font-size: 14px;
    margin: 15px 0 25px 0;
    color: #555;
}

/* 옵션 */
.option-group {
    margin-bottom: 20px;
}

.option-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
}

.option-group select,
.option-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.option-group textarea {
    height: 80px;
    resize: none;
}

/* 신청 버튼 */
.btn-apply {
    width: 100%;
    height: 50px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

.btn-apply:hover {
    opacity: 0.85;
}

/* ===== 상세 이미지 ===== */
.product-detail-section {
    margin-top: 40px;
}

.product-detail-img {
    margin-bottom: 20px;
    text-align: center;
}

.product-detail-img img {
    max-width: 100%;
}

/* ===== 반응형 ===== */
@media (max-width: 1024px) {

    .product-view-wrap {
        grid-template-columns: 1fr;
    }

    .product-info {
        padding: 20px;
    }
}

/* ===== 재고 표시 ===== */
.stock-info {
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.stock-label {
    color: #666;
}

.stock-count {
    font-weight: bold;
}

.stock-count.in-stock {
    color: #000;
}

.stock-count.sold-out {
    color: #d00000;
}

/* ===== 모바일 하단 고정 신청 버튼 ===== */
.mobile-apply-bar {
    display: none;
}

/* 모바일 전용 */
@media (max-width: 768px) {

    .btn-apply {
        display: none; /* 기존 버튼 숨김 */
    }

    .mobile-apply-bar {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #fff;
        border-top: 1px solid #ddd;
        padding: 10px 15px;
        z-index: 1000;
    }

    .btn-mobile-apply {
        width: 100%;
        height: 50px;
        background: #000;
        color: #fff;
        border: none;
        border-radius: 6px;
        font-size: 16px;
        cursor: pointer;
    }

    /* 하단 버튼 공간 확보 */
    body.product_view {
        padding-bottom: 80px;
    }
}

/* ===== 재고 경고 ===== */
.stock-count.low-stock {
    color: #d00000;
}

/* ===== 수량 선택 ===== */
.quantity-group {
    margin-bottom: 20px;
}

.quantity-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
}

.quantity-box {
    display: flex;
    align-items: center;
    width: 140px;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
}

.quantity-box button {
    width: 40px;
    height: 40px;
    background: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.quantity-box button:hover {
    background: #f5f5f5;
}

.quantity-box input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 14px;
    background: #fff;
}


/* ===== PAGE COMMON ===== */
.page-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 20px 0;
    color: #000;
}

/* ===== ORDER LIST ===== */
.order-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-row {
    display: grid;
    grid-template-columns: 90px 1fr 90px;
    gap: 14px;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 14px;
    cursor: pointer;
    transition: border 0.2s ease;
}

.order-row:hover {
    border-color: #000;
}

.order-thumb img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f2f2f2;
}

.order-product-name {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 6px;
}

.order-meta {
    font-size: 13px;
    color: #444;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 6px;
}

.order-datetime {
    font-size: 12px;
    color: #666;
}

.order-status {
    text-align: right;
}

/* 상태 배지 */
.status {
    display: inline-block;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #ddd;
    background: #fff;
    color: #000;
    font-weight: bold;
}

.status-check { border-color: #999; color: #333; }
.status-approve { border-color: #000; color: #000; }
.status-reject { border-color: #d00000; color: #d00000; }
.status-done { border-color: #2a7a2a; color: #2a7a2a; }

/* ===== ORDER VIEW ===== */
.detail-box {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 18px;
    margin-bottom: 14px;
}

.detail-title {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 12px;
}

.detail-table .row {
    display: grid;
    grid-template-columns: 120px 1fr;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.detail-table .row:last-child {
    border-bottom: none;
}

.detail-table .th {
    font-size: 13px;
    color: #666;
}

.detail-table .td {
    font-size: 13px;
    color: #000;
}

/* 상세 상품 아이템 */
.order-item {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 14px;
    align-items: center;
}

/* 요청사항 */
.detail-memo {
    font-size: 13px;
    color: #333;
    line-height: 1.6;
    white-space: pre-line;
}

/* 버튼 */
.detail-actions {
    text-align: right;
    margin-top: 10px;
}

.btn-black {
    background: #000;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-black:hover { opacity: 0.85; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

    .order-row {
        grid-template-columns: 80px 1fr;
        grid-template-areas:
            "thumb info"
            "status status";
    }

    .order-thumb { grid-area: thumb; }
    .order-info { grid-area: info; }
    .order-status {
        grid-area: status;
        text-align: left;
        margin-top: 6px;
    }

    .order-thumb img {
        width: 80px;
        height: 80px;
    }

    .detail-table .row {
        grid-template-columns: 100px 1fr;
    }
}

/* ===== 필터 ===== */
.order-filter-wrap {
    display:flex;
    justify-content:space-between;
    flex-wrap:wrap;
    margin-bottom:20px;
}

.status-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    border:1px solid #ddd;
    background:#fff;
    padding:6px 12px;
    cursor:pointer;
    border-radius:4px;
}

.filter-btn.active,
.filter-btn:hover {
    background:#000;
    color:#fff;
}

/* 검색 */
.order-search {
    display:flex;
    gap:5px;
}

.order-search input {
    padding:6px;
    border:1px solid #ccc;
}

.order-search button {
    background:#000;
    color:#fff;
    border:none;
    padding:6px 12px;
}

/* ===== 상태 배지 ===== */
.status-badge {
    padding:6px 10px;
    border-radius:20px;
    font-size:12px;
    font-weight:bold;
}

.status-badge.check { background:#f2f2f2; }
.status-badge.approve { background:#000; color:#fff; }
.status-badge.reject { background:#d00000; color:#fff; }
.status-badge.done { background:#2a7a2a; color:#fff; }

/* ===== 타임라인 ===== */
.timeline {
    border-left:2px solid #ddd;
    padding-left:20px;
}

.timeline-item {
    position:relative;
    margin-bottom:20px;
}

.timeline-icon {
    position:absolute;
    left:-32px;
    top:0;
    background:#fff;
    border:2px solid #000;
    width:22px;
    height:22px;
    border-radius:50%;
    text-align:center;
    font-size:12px;
    line-height:18px;
}

.timeline-item.done .timeline-icon {
    background:#000;
    color:#fff;
}

.timeline-item.current .timeline-icon {
    border-color:#2a7a2a;
}

.timeline-title {
    font-weight:bold;
}

.timeline-date {
    font-size:12px;
    color:#666;
}



/* 관리자 버튼 */
.admin-action-bar {
    margin-bottom:20px;
}

.btn-approve {
    background:#000;
    color:#fff;
    border:none;
    padding:8px 14px;
    margin-right:8px;
    cursor:pointer;
}

.btn-reject {
    background:#d00000;
    color:#fff;
    border:none;
    padding:8px 14px;
    cursor:pointer;
}

.reject-box {
    display:none;
    margin-bottom:20px;
}

.reject-box textarea {
    width:100%;
    height:70px;
    margin-bottom:8px;
}

/* 타임라인 */
.timeline {
    border-left:2px solid #ddd;
    padding-left:20px;
}

.timeline-item {
    position:relative;
    margin-bottom:20px;
    opacity:1;
    transition:all .4s ease;
}

.timeline-item.animate {
    animation:fadeInUp .4s ease;
}

.timeline-icon {
    position:absolute;
    left:-30px;
    top:0;
    width:20px;
    height:20px;
    background:#000;
    color:#fff;
    border-radius:50%;
    text-align:center;
    font-size:11px;
    line-height:20px;
}

.timeline-title { font-weight:bold; }
.timeline-date { font-size:12px; color:#666; }
.timeline-comment {
    margin-top:5px;
    font-size:12px;
    background:#f5f5f5;
    padding:6px;
    border-radius:4px;
}

@keyframes fadeInUp {
    from { opacity:0; transform:translateY(10px); }
    to { opacity:1; transform:translateY(0); }
}

/* ===== 모바일 최적화 ===== */
@media (max-width: 768px) {

    .order-filter-wrap{
        flex-direction:column;
        gap:12px;
    }

    .status-filter{
        display:block;                 /* 핵심: flex 래퍼 대신 스크롤 래퍼로 */
        width:100%;
        overflow-x:auto;
        overflow-y:hidden;
        white-space:nowrap;            /* 한줄 유지 */
        -webkit-overflow-scrolling:touch;
        padding:2px 0 8px;
    }

    /* 스크롤바 숨김 (선택) */
    .status-filter::-webkit-scrollbar{ height:0; }

    /* 버튼을 한줄로 나열 */
    .status-filter .filter-btn{
        display:inline-block;          /* 핵심: inline-block로 가로로 쭉 */
        white-space:nowrap;
        margin-right:0;              /* gap 대체 */
        vertical-align:top;
    }

    .order-search {
        width: 100%;
    }

    .order-search input {
        flex: 1;
        width: 100%;
    }
}


/* ===== PAGINATION ===== */
.pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 34px;
    height: 34px;
    line-height: 30px;
    text-align: center;
    border: 1px solid #ddd;
    background: #fff;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.page-btn:hover {
    border-color: #000;
    color: #000;
}

.page-btn.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

.admin-comment-wrap {
    background: #f8f8f8;
    padding: 14px;
    border-radius: 6px;
}

.admin-comment-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.admin-name {
    font-weight: bold;
}

.admin-date {
    color: #999;
}

.admin-comment {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
    white-space: pre-line;
}


/* ===== SHOP FILTER ===== */
.shop-filter-wrap {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
    flex-wrap:wrap;
    gap:10px;
}

.category-filter {
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}

.sort-filter select {
    padding:6px 10px;
    border:1px solid #ccc;
    font-family:"Malgun Gothic","맑은 고딕",sans-serif;
}

/* ===== 상품 그리드 ===== */
.product-grid {
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    gap:20px;
}
/* ===== 반응형 ===== */
@media (max-width:1024px){
    .product-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width:768px){
    .product-grid {
        grid-template-columns: 1fr;
    }

    .shop-filter-wrap {
        flex-direction:column;
        align-items:flex-start;
    }
}

.product-card {
    background:#fff;
    border:1px solid #e5e5e5;
    border-radius:6px;
    overflow:hidden;
    transition:all .2s ease;
}

.product-card:hover {
    border-color:#000;
}

/* ===== 이미지 영역 ===== */
.product-img-wrap {
    position:relative;
    overflow:hidden;
}

.product-img-wrap img {
    width:100%;
    height:220px;
    object-fit:cover;
    display:block;
    transition:transform .3s ease;
}

.product-card:hover .product-img-wrap img {
    transform:scale(1.05);
}

/* ===== 빠른보기 버튼 ===== */
.quick-view {
	
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.4);
    display:flex;
    justify-content:center;
    align-items:center;
    opacity:0;
    transition:opacity .3s ease;
	display:none;
}

.product-card:hover .quick-view {
    opacity:1;
}

.quick-view button {
    background:#fff;
    border:none;
    padding:10px 18px;
    font-size:13px;
    cursor:pointer;
    border-radius:4px;
    font-weight:bold;
}

/* ===== 정보 영역 ===== */
.product-info-area {
    padding:14px;
    text-align:center;
}

.product-name {
    font-size:14px;
    font-weight:bold;
    margin-bottom:6px;
}

.product-stock {
    font-size:13px;
}

.product-stock.in-stock { color:#000; }
.product-stock.low-stock { color:#d00000; }
.product-stock.sold-text { color:#999; }

/* ===== 모바일 ===== */
@media (max-width:768px){

    .product-img-wrap img {
        height:180px;
    }

    .quick-view {
        opacity:1;
        background:rgba(0,0,0,0.25);
    }

    .quick-view button {
        font-size:12px;
        padding:8px 14px;
    }
}



/* ===== 검색 영역 ===== */
.board-search-wrap {
    display:flex;
    gap:8px;
    margin-bottom:20px;
    flex-wrap:wrap;
}

.board-search-wrap select,
.board-search-wrap input {
    padding:6px 10px;
    border:1px solid #ccc;
}

.board-search-wrap button {
    background:#000;
    color:#fff;
    border:none;
    padding:6px 12px;
    cursor:pointer;
}

/* ===== 게시글 리스트 ===== */
.board-list {
    border-top:2px solid #000;
}

.board-row {
    display:grid;
    grid-template-columns: 60px 1fr 100px 120px 60px;
    padding:12px 10px;
    border-bottom:1px solid #dcdcdc;
    align-items:center;
    cursor:pointer;
	font-size:14px;
}

.board-row.header {
    font-weight:bold;
    background:#f8f8f8;
    cursor:default;
}

.board-row:hover {
    background:#f5f5f5;
}

.col-title {
    padding-left:10px;
}

/* ===== 게시글 보기 ===== */
.board-view-box {
    background:#fff;
    border:1px solid #e5e5e5;
    padding:25px;
    border-radius:6px;
}

.board-view-title {
    font-size:18px;
    font-weight:bold;
    margin-bottom:10px;
}

.board-view-meta {
    font-size:13px;
    color:#666;
    display:flex;
    gap:20px;
    margin-bottom:20px;
}

.board-view-content {
    font-size:14px;
    line-height:1.8;
    white-space:pre-line;
}

/* ===== 반응형 ===== */
@media (max-width:768px){

    .board-row {
        grid-template-columns: 1fr;
        gap:4px;
    }

    .board-row.header,
	.col-no,.col-view{
        display:none;
    }
	.col-title {padding-left:0;}

    .board-row div {
        font-size:13px;
    }

    .board-view-meta {
        flex-direction:column;
        gap:5px;
    }
}

/* ===== 공지글 강조 ===== */
.board-row.notice {
    font-weight: bold;
}

.board-row.notice .col-no {
    color: #d00000;
}

/* 첨부 아이콘 */
.file-icon {
    margin-left: 6px;
    font-size: 13px;
}

/* ===== 첨부파일 영역 ===== */
.board-attach-box {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
}

.attach-title {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 10px;
}

.attach-item {
    font-size: 13px;
    margin-bottom: 6px;
}

.attach-item a {
    text-decoration: none;
    color: #000;
}

.attach-item a:hover {
    text-decoration: underline;
}

.file-size {
    color: #888;
    font-size: 12px;
    margin-left: 5px;
}

/* 자료실 파일 컬럼 */
.col-file {
    text-align:center;
}

/* ===== 자료 상세 첨부파일 ===== */
.data-attach-box {
    background:#f8f8f8;
    border:1px solid #eee;
    padding:18px;
    border-radius:6px;
    margin-bottom:20px;
}

.data-attach-title {
    font-weight:bold;
    margin-bottom:12px;
}

.data-attach-item {
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:8px 0;
    border-bottom:1px solid #eee;
    font-size:13px;
}

.data-attach-item:last-child {
    border-bottom:none;
}

.file-name {
    flex:1;
}

.file-size {
    color:#888;
    margin-right:10px;
}

.btn-download {
    background:#000;
    color:#fff;
    border:none;
    padding:5px 12px;
    font-size:12px;
    border-radius:4px;
    cursor:pointer;
}

.btn-download:hover {
    opacity:0.85;
}

/* ===== 반응형 ===== */
@media (max-width:768px){

    .board-row {
        grid-template-columns: 1fr;
    }

    .data-attach-item {
        flex-direction:column;
        align-items:flex-start;
        gap:6px;
    }

    .btn-download {
        align-self:flex-start;
    }
	
	.col-file {text-align:left;}
}