@charset "utf-8";
/* 모바일 어여비 마켓 — views/market/list.php (mmk_), detail.php (mmd_) — 2026-11 신설 */

/* ---------- 목록 ---------- */
.mmk_page{padding: 16px 16px 28px; background: #f4f6f2; color: #222; letter-spacing: -0.3px;}
.mmk_head{display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 16px; background: linear-gradient(135deg, #3f8a2e, #5aa346); color: #fff;}
.mmk_head_ico{flex: none; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.18);}
.mmk_head_ico svg{width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;}
.mmk_title{margin: 0; font-size: 21px; font-weight: 800;}
.mmk_desc{margin: 3px 0 0; font-size: 13px; color: rgba(255,255,255,.9); word-break: keep-all;}

.mmk_cats{display: flex; gap: 6px; margin: 14px -16px 0; padding: 0 16px 2px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;}
.mmk_cats::-webkit-scrollbar{display: none;}
.mmk_cat{flex: none; height: 36px; padding: 0 14px; border: 1px solid #dfe5db; border-radius: 18px; background: #fff; color: #555; font-size: 14px; font-weight: 700; font-family: inherit; white-space: nowrap;}
.mmk_cat span{margin-left: 2px; color: #3f8a2e; font-size: 12px;}
.mmk_cat.is_on{border-color: #3f8a2e; background: #3f8a2e; color: #fff;}
.mmk_cat.is_on span{color: #e4f3dc;}

.mmk_grid{display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0 0; padding: 0; list-style: none;}
.mmk_grid li[hidden]{display: none;}
.mmk_item{display: flex; flex-direction: column; height: 100%; padding: 0 0 12px; border-radius: 14px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.06); color: #222; text-decoration: none; overflow: hidden;}
.mmk_thumb{position: relative; display: block; aspect-ratio: 1 / 1; background: #eef1ec; overflow: hidden;}
.mmk_thumb img{display: block; width: 100%; height: 100%; object-fit: cover;}
.mmk_item.is_soldout .mmk_thumb img{filter: grayscale(100%); opacity: .75;}
.mmk_soldout{position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(40,40,40,.42); color: #fff; font-size: 22px; font-weight: 800; letter-spacing: 3px; text-shadow: 0 1px 6px rgba(0,0,0,.35);}   /* 품절: 사진 전체 회색 + 가운데 크게 (PC 와 같게) */
.mmk_item.is_soldout .mmk_name, .mmk_item.is_soldout .mmk_brand{color: #999;}
.mmk_brand{display: block; margin: 10px 12px 0; font-size: 12px; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.mmk_name{display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 3px 12px 0; font-size: 15px; font-weight: 700; line-height: 1.4; word-break: keep-all; overflow-wrap: anywhere;}
.mmk_price{display: block; margin: 6px 12px 0; font-size: 14px; color: #222;}
.mmk_price b{font-size: 17px; font-weight: 800;}
.mmk_price small{font-size: 12px; color: #888;}
.mmk_item.is_soldout .mmk_price{color: #999;}
.mmk_sub{display: block; margin: auto 12px 0; padding-top: 6px; font-size: 12px; color: #3f8a2e;}
.mmk_item.is_soldout .mmk_sub{color: #999;}

.mmk_empty{display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 14px; padding: 44px 16px; border-radius: 14px; background: #fff; text-align: center;}
.mmk_empty[hidden]{display: none;}
.mmk_empty_ico svg{width: 38px; height: 38px; fill: none; stroke: #9cc28c; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;}
.mmk_empty_tit{margin: 0; font-size: 16px; font-weight: 800;}
.mmk_empty_desc{margin: 0; font-size: 13px; color: #888;}
.mmk_ask{display: block; margin-top: 18px; padding: 14px; border-radius: 12px; background: #fee500; color: #191919; font-size: 15px; font-weight: 800; text-align: center; text-decoration: none;}

/* ---------- 상세 ---------- */
.mmd_page{padding: 0 0 96px; background: #f4f6f2; color: #222; letter-spacing: -0.3px;}
.mmd_crumb{margin: 0; padding: 12px 16px; font-size: 13px; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.mmd_crumb a{color: #3f8a2e; text-decoration: none;}
.mmd_img{position: relative; aspect-ratio: 1 / 1; background: #eef1ec; overflow: hidden;}
.mmd_img img{display: block; width: 100%; height: 100%; object-fit: cover;}
.mmd_img.is_soldout img{filter: grayscale(100%); opacity: .75;}
.mmd_soldout_mark{position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(40,40,40,.42); color: #fff; font-size: 34px; font-weight: 800; letter-spacing: 5px; text-shadow: 0 1px 6px rgba(0,0,0,.35);}

.mmd_info{margin: 0 0 10px; padding: 16px; background: #fff;}
.mmd_tags{display: flex; flex-wrap: wrap; gap: 6px;}
.mmd_tags span{padding: 3px 9px; border-radius: 10px; background: #eaf3e6; color: #3f8a2e; font-size: 12px; font-weight: 700;}
.mmd_brand{margin: 12px 0 0; font-size: 13px; color: #888;}
.mmd_title{margin: 4px 0 0; font-size: 21px; font-weight: 800; line-height: 1.4; word-break: keep-all; overflow-wrap: anywhere;}
.mmd_price{margin: 8px 0 0; font-size: 16px;}
.mmd_price b{font-size: 26px; font-weight: 800;}
.mmd_price.is_soldout{color: #999;}
.mmd_state{display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 6px; background: #777; color: #fff; font-size: 12px; font-weight: 700; vertical-align: 4px;}
.mmd_spec{margin: 14px 0 0; padding: 4px 0 0; border-top: 1px solid #eef0ec;}
.mmd_spec div{display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid #f3f4f1; font-size: 14px;}
.mmd_spec dt{flex: none; width: 74px; margin: 0; color: #888;}
.mmd_spec dd{flex: 1; min-width: 0; margin: 0; color: #222; word-break: keep-all; overflow-wrap: anywhere;}
.mmd_spec small{color: #999;}
.mmd_soldout_box{margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #f5f5f5;}
.mmd_soldout_tit{margin: 0; font-size: 15px; font-weight: 800;}
.mmd_soldout_desc{margin: 4px 0 0; font-size: 13px; color: #666; line-height: 1.5; word-break: keep-all;}

.mmd_tabs{position: sticky; top: 0; z-index: 10; display: flex; background: #fff; border-bottom: 1px solid #e6e9e3;}
.mmd_tabs a{flex: 1; padding: 13px 0; color: #555; font-size: 14px; font-weight: 700; text-align: center; text-decoration: none;}

.mmd_sec{margin: 10px 0 0; padding: 18px 16px; background: #fff; scroll-margin-top: 50px;}
.mmd_sec_tit{margin: 0 0 12px; font-size: 18px; font-weight: 800;}
.mmd_detail_imgs img{display: block; width: 100%; height: auto;}
.mmd_empty{margin: 0; padding: 20px 0; color: #999; font-size: 14px; text-align: center;}
.mmd_table{margin: 0; border-top: 2px solid #3f8a2e;}
.mmd_table div{display: flex; border-bottom: 1px solid #eef0ec; font-size: 13px;}
.mmd_table dt{flex: none; width: 38%; margin: 0; padding: 10px; background: #f7f9f5; color: #555; word-break: keep-all;}
.mmd_table dd{flex: 1; min-width: 0; margin: 0; padding: 10px; color: #222; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere;}
.mmd_ex_lead{margin: 0 0 10px; font-size: 14px; font-weight: 700;}
.mmd_ol{margin: 0; padding-left: 20px; font-size: 13px; color: #555; line-height: 1.6;}
.mmd_ol li{margin: 4px 0; list-style: decimal; word-break: keep-all;}
.mmd_back{display: block; margin: 14px 16px 0; padding: 13px; border: 1px solid #d5dbd0; border-radius: 12px; background: #fff; color: #3f8a2e; font-size: 15px; font-weight: 800; text-align: center; text-decoration: none;}

.mmd_bar{position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -2px 10px rgba(0,0,0,.08);}
.mmd_bar_btn{flex: 1; display: inline-flex; align-items: center; justify-content: center; height: 50px; border: 0; border-radius: 12px; background: #e9ece6; color: #888; font-size: 16px; font-weight: 800; font-family: inherit; text-decoration: none;}
.mmd_bar_main{background: #3f8a2e; color: #fff;}
.mmd_bar_kakao{background: #fee500; color: #191919;}

/* ---------- 마켓 소개 · 자주 묻는 질문 (목록·상세 공용) ---------- */
.mmk_about{margin-top: 18px; padding: 16px; border-radius: 14px; background: #fff;}
.mmk_about_tit{margin: 0 0 8px; font-size: 16px; font-weight: 800;}
.mmk_about p{margin: 0; font-size: 14px; line-height: 1.7; color: #444; word-break: keep-all;}
.mmk_faq{margin-top: 12px; padding: 16px; border-radius: 14px; background: #fff;}
.mmd_faq{margin: 10px 0 0; border-radius: 0;}
.mmk_faq_tit{margin: 0 0 6px; font-size: 16px; font-weight: 800; scroll-margin-top: 50px;}
.mmk_faq_item{border-bottom: 1px solid #eef0ec;}
.mmk_faq_item:last-child{border-bottom: 0;}
.mmk_faq_item summary{position: relative; padding: 13px 24px 13px 0; font-size: 15px; font-weight: 700; line-height: 1.45; list-style: none; cursor: pointer; word-break: keep-all;}
.mmk_faq_item summary::-webkit-details-marker{display: none;}
.mmk_faq_item summary::before{content: "Q"; margin-right: 6px; color: #3f8a2e; font-weight: 800;}
.mmk_faq_item summary::after{content: "+"; position: absolute; right: 2px; top: 11px; color: #9aa596; font-size: 20px; font-weight: 400;}
.mmk_faq_item[open] summary::after{content: "−";}
.mmk_faq_item p{margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: #f6f8f4; font-size: 14px; line-height: 1.65; color: #444; word-break: keep-all;}
.mmd_tabs a{font-size: 13px;}
