@charset "utf-8";
/* PC 마켓 목록(/market) — views/market/list.php. 사이트 초록(#427736) 하나만 포인트로, 흰 카드 중심 */
.mk_page {width: 1200px; margin: 0 auto; padding: 24px 0 50px; color: #222; letter-spacing: -0.3px;}
.mk_page h1, .mk_page p, .mk_page ul {margin: 0; padding: 0;}

/* 상단 안내 (게시판 배너와 같은 모양) */
.mk_head {display: flex; align-items: center; gap: 18px; padding: 24px 28px; border: 1px solid #e3e6df; border-radius: 16px; background: #fff;}
.mk_head_icon {display: inline-flex; align-items: center; justify-content: center; flex: none; width: 56px; height: 56px; border-radius: 16px; background: #f1f4ee;}
.mk_head_icon svg {width: 30px; height: 30px; fill: none; stroke: #427736; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;}
.mk_title {font-size: 26px; font-weight: 800; letter-spacing: -0.8px;}
.mk_desc {margin-top: 4px !important; font-size: 16px; color: #666;}

/* 분류 */
.mk_cats {margin-top: 22px;}
.mk_cats ul {display: flex; flex-wrap: wrap; gap: 8px; list-style: none;}
.mk_cat {padding: 10px 20px; border: 1px solid #dfe3da; border-radius: 22px; background: #fff; color: #555; font-size: 16px; font-weight: 600; font-family: inherit; cursor: pointer;}
.mk_cat:hover {border-color: #427736; color: #427736;}
.mk_cat.on {border-color: #427736; background: #427736; color: #fff;}

/* 상품 목록 */
.mk_count {margin: 22px 0 12px !important; font-size: 15px; color: #777;}
.mk_count b {color: #222;}
.mk_grid {display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; list-style: none;}
.mk_item {display: block; color: #222 !important; text-decoration: none;}
.mk_thumb {position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: #f4f5f2;}
.mk_thumb img {display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s;}
.mk_item:hover .mk_thumb img {transform: scale(1.04);}
.mk_badges {position: absolute; left: 10px; top: 10px; display: flex; gap: 5px;}
.mk_badge {padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,.92); color: #427736; font-size: 12px; font-style: normal; font-weight: bold;}
.mk_badge.mk_hot {background: #e8572f; color: #fff;}
.mk_brand {display: block; margin-top: 12px; font-size: 14px; color: #888;}
.mk_name {display: block; margin-top: 3px; font-size: 17px; font-weight: 600; line-height: 1.4;}
.mk_item:hover .mk_name {text-decoration: underline;}
.mk_price {display: block; margin-top: 6px; font-size: 15px; color: #222;}
.mk_price b {font-size: 20px; font-weight: 800;}
.mk_sub {display: block; margin-top: 4px; font-size: 14px; color: #888;}

/* 빈 목록 */
.mk_empty {margin-top: 24px; padding: 70px 0; border: 1px dashed #dfe3da; border-radius: 16px; text-align: center;}
.mk_empty_icon {display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: #f1f4ee;}
.mk_empty_icon svg {width: 28px; height: 28px; fill: none; stroke: #427736; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;}
.mk_empty_tit {margin-top: 14px !important; font-size: 18px; font-weight: 800;}
.mk_empty_desc {margin-top: 4px !important; font-size: 15px; color: #888;}

/* 품절 (목록) */
/* 품절: 사진은 원래 색 그대로, 왼쪽 위에 작은 '품절' 표시 + 가격에 가운데 줄 */
.mk_soldout {position: absolute; left: 10px; top: 10px; padding: 3px 9px; border-radius: 6px; background: #fff; color: #e8572f; font-size: 13px; font-weight: 800; box-shadow: 0 1px 4px rgba(0,0,0,.12);}
.mk_item.is_soldout .mk_price_num {color: #999; text-decoration: line-through; text-decoration-thickness: 2px;}
.mk_item.is_soldout .mk_price_num b {color: #999;}
.mk_state {display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 6px; background: #f1f2f0; color: #666; font-size: 13px; font-weight: bold; vertical-align: 2px;}

/* 상품 상세 (detail.php) */
.md_crumb {font-size: 14px; color: #888;}
.md_crumb a {color: #888 !important; text-decoration: none;}
.md_crumb a:hover {color: #427736 !important;}
.md_top {display: flex; gap: 48px; margin-top: 16px;}
.md_img {position: relative; flex: 0 0 540px; height: 540px; border-radius: 18px; overflow: hidden; background: #f4f5f2;}
.md_img img {display: block; width: 100%; height: 100%; object-fit: cover;}
.md_soldout_mark {position: absolute; left: 16px; top: 16px; padding: 6px 14px; border-radius: 8px; background: #fff; color: #e8572f; font-size: 16px; font-weight: 800; box-shadow: 0 1px 6px rgba(0,0,0,.15);}
.md_info {flex: 1 1 auto; min-width: 0; padding-top: 6px;}
.md_tags {display: flex; gap: 6px;}
.md_tags span {padding: 4px 10px; border: 1px solid #dfe3da; border-radius: 14px; font-size: 13px; color: #555;}
.md_brand {margin-top: 18px !important; font-size: 15px; color: #888;}
.md_title {margin-top: 4px !important; font-size: 30px; font-weight: 800; letter-spacing: -0.8px; line-height: 1.35;}
.md_price {margin-top: 14px !important; font-size: 18px;}
.md_price b {font-size: 32px; font-weight: 800;}
.md_price .md_state {margin-left: 10px; font-size: 15px; vertical-align: 6px;}
.md_spec {margin: 22px 0 0; padding: 4px 0; border-top: 2px solid #222; border-bottom: 1px solid #e3e6df;}
.md_spec > div {display: flex; padding: 12px 0; border-top: 1px solid #eef0eb; font-size: 16px;}
.md_spec > div:first-child {border-top: 0;}
.md_spec dt {flex: 0 0 110px; color: #888;}
.md_spec dd {margin: 0; color: #222;}
.md_spec dd small {color: #888;}
.md_soldout_box {margin-top: 20px; padding: 16px 18px; border-radius: 12px; background: #f7f8f6;}
.md_soldout_tit {font-size: 17px; font-weight: 800;}
.md_soldout_desc {margin-top: 4px !important; font-size: 15px; color: #666; line-height: 1.6;}
.md_btns {display: flex; gap: 10px; margin-top: 18px;}
.md_btn {flex: 1 1 0; display: flex; align-items: center; justify-content: center; height: 60px; border: 1px solid #dfe3da; border-radius: 12px; background: #fff; color: #333 !important; font-size: 18px; font-weight: bold; font-family: inherit; text-decoration: none; cursor: pointer;}
.md_btn:disabled {background: #eef0ec; border-color: #eef0ec; color: #999 !important; cursor: not-allowed;}
.md_btn_main {border-color: #427736; background: #427736; color: #fff !important;}
.md_btn_kakao {border-color: #fee500; background: #fee500; color: #191919 !important;}

.md_tabs {position: sticky; top: 0; z-index: 20; display: flex; margin-top: 56px; border-bottom: 1px solid #dfe3da; background: #fff;}
.md_tabs a {flex: 1 1 0; padding: 18px 0; text-align: center; font-size: 17px; font-weight: 600; color: #555 !important; cursor: pointer; border-bottom: 3px solid transparent;}
.md_tabs a:hover {color: #427736 !important; border-bottom-color: #427736;}
.md_sec {padding-top: 50px;}
.md_sec_tit {margin: 0 0 18px; font-size: 22px; font-weight: 800;}
.md_detail_imgs {text-align: center;}
.md_detail_imgs img {display: block; max-width: 860px; width: 100%; margin: 0 auto;}
.md_table {width: 100%; border-collapse: collapse; border-top: 2px solid #222; font-size: 15px;}
.md_table th, .md_table td {padding: 14px 16px; border-bottom: 1px solid #e3e6df; text-align: left; vertical-align: top; line-height: 1.6;}
.md_table th {background: #f7f8f6; color: #555; font-weight: 600;}
.md_table td {color: #333;}
.md_ol {margin: 0; padding-left: 20px;}
.md_ol li {padding: 2px 0;}
.md_empty {padding: 50px 0; border-top: 2px solid #222; border-bottom: 1px solid #e3e6df; text-align: center; font-size: 16px; color: #888;}

/* 상세 품절: 가격에 가운데 줄 */
.md_price.is_soldout b, .md_price.is_soldout .md_won {color: #999; text-decoration: line-through; text-decoration-thickness: 2px;}
