/* 소월당 몰 (메인·목록·상세·주문서) — site.css 위에 덧씌움 */
body.mall { background: #f3f3f3; color: #222; }
body.mall .wrap { background: #fff; box-shadow: none; }

/* 헤더 */
.mh { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid #ececec; }
.mh-row { display: grid; grid-template-columns: 44px 1fr 44px 44px; align-items: center; height: 54px; padding: 0 6px; }
.mh-btn { width: 44px; height: 44px; border: 0; background: none; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #222; position: relative; text-decoration: none; }
.mh-logo { text-align: center; text-decoration: none; color: #222; line-height: 1.1; }
.mh-logo b { display: block; font-family: var(--serif); font-size: 21px; letter-spacing: .14em; color: var(--red); }
.mh-logo small { font-size: 10px; letter-spacing: .2em; color: #999; }
.mh-cnt { position: absolute; top: 7px; right: 5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.mh-cnt:empty { display: none; }
.mcat { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; border-top: 1px solid #f2f2f2; }
.mcat::-webkit-scrollbar { display: none; }
.mcat a { flex: none; padding: 11px 14px; font-size: 14px; color: #555; text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.mcat a.on { color: #111; font-weight: 700; border-color: #111; }

/* 메뉴 서랍 */
.mdim { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 60; }
.mdrawer { position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); background: #fff; z-index: 61; overflow-y: auto; padding: 18px 20px 40px; }
.mdrawer h4 { font-size: 12px; letter-spacing: .12em; color: #999; margin: 22px 0 6px; font-weight: 600; }
.mdrawer a { display: block; padding: 10px 0; color: #222; text-decoration: none; border-bottom: 1px solid #f3f3f3; font-size: 15px; }
.mdrawer .x { float: right; border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: #222; }
.msearch { display: flex; gap: 6px; margin-top: 14px; }
.msearch input { flex: 1; min-width: 0; height: 42px; border: 1px solid #ddd; border-radius: 4px; padding: 0 12px; font: inherit; }
.msearch button { width: 64px; border: 0; border-radius: 4px; background: #222; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }

/* 메인 배너 */
.mbanner { position: relative; }
.mslides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.mslides::-webkit-scrollbar { display: none; }
.mslide { flex: 0 0 100%; scroll-snap-align: start; display: block; text-decoration: none; color: inherit; }
.mslide img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #f4ede2; }
.mslide.text { aspect-ratio: 1 / 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 30px; background: linear-gradient(160deg, #7a2e2a, #4f1d1a); color: #fff; }
.mslide.text small { letter-spacing: .2em; font-size: 12px; opacity: .8; }
.mslide.text b { font-family: var(--serif); font-size: 28px; line-height: 1.35; margin: 12px 0 18px; white-space: pre-line; }
.mslide.text span { display: inline-block; padding: 10px 20px; border: 1px solid rgba(255,255,255,.7); border-radius: 999px; font-size: 14px; }
.mdots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; }
.mdots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: 0 0 2px rgba(0,0,0,.3); }
.mdots i.on { background: #fff; width: 18px; border-radius: 4px; }

/* 신뢰 띠 */
.mtrust { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid #eee; }
.mtrust div { padding: 14px 6px; text-align: center; font-size: 12px; color: #666; line-height: 1.4; }
.mtrust div + div { border-left: 1px solid #f0f0f0; }
.mtrust b { display: block; font-size: 13px; color: var(--red); margin-bottom: 2px; }

/* 섹션 */
.msec { padding: 36px 14px 8px; }
.msec-h { text-align: center; margin-bottom: 18px; }
.msec-h h2 { font-family: 'Pretendard Variable', Pretendard, sans-serif; font-size: 20px; font-weight: 800; letter-spacing: .14em; margin: 0; }
.msec-h p { font-size: 13px; color: #888; margin-top: 4px; }
.mmore { display: block; width: 100%; margin: 6px 0 10px; height: 44px; border: 1px solid #ddd; background: #fff; font: inherit; font-size: 14px; color: #444; cursor: pointer; border-radius: 2px; }

/* 상품 그리드 */
.mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 10px; }
.mitem { position: relative; text-decoration: none; color: inherit; display: block; }
.mitem .th { position: relative; aspect-ratio: 1; overflow: hidden; background: #f6f2ec; }
.mitem .th img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.mitem:hover .th img { transform: scale(1.03); }
.mitem .rk { position: absolute; top: 0; left: 0; min-width: 26px; height: 26px; padding: 0 6px; background: #222; color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.mitem .rk.top { background: var(--red); }
.mitem .so { position: absolute; inset: 0; background: rgba(255,255,255,.6); display: flex; align-items: center; justify-content: center; font-weight: 700; color: #555; letter-spacing: .1em; }
.mitem .nm { font-size: 14px; line-height: 1.45; margin-top: 10px; color: #222; word-break: keep-all; }
.mitem .nm em { font-style: normal; color: #888; }
.mitem .sm { font-size: 12px; color: #999; margin-top: 3px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mprice { margin-top: 6px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; }
.mprice .pc { color: #e0341b; font-weight: 800; font-size: 15px; }
.mprice b { font-size: 15px; font-weight: 800; }
.mprice s { font-size: 12px; color: #aaa; }
.mempty { text-align: center; color: #999; padding: 60px 0; font-size: 14px; }

/* 사전예약 띠 배너 */
.mpre { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 30px 14px 6px; padding: 18px; border-radius: 8px; background: #f6efe3; text-decoration: none; color: #2b211c; }
.mpre small { display: block; color: var(--gold); font-weight: 700; font-size: 12px; letter-spacing: .06em; }
.mpre b { font-family: var(--serif); font-size: 18px; }
.mpre span { flex: none; padding: 9px 14px; background: var(--red); color: #fff; border-radius: 999px; font-size: 13px; font-weight: 700; }

/* 브랜드 */
.mbrand { margin-top: 36px; padding: 40px 22px; background: #2b211c; color: #f3e7cf; text-align: center; }
.mbrand small { letter-spacing: .3em; font-size: 11px; opacity: .7; }
.mbrand h3 { font-family: var(--serif); font-size: 22px; margin: 10px 0 14px; color: #fff; }
.mbrand p { font-size: 14px; line-height: 1.8; opacity: .85; }

/* 목록 */
.mlist-h { display: flex; justify-content: space-between; align-items: center; padding: 18px 14px 14px; }
.mlist-h h1 { font-family: 'Pretendard Variable', Pretendard, sans-serif; font-size: 20px; font-weight: 800; }
.mlist-h select { height: 34px; border: 1px solid #ddd; border-radius: 4px; padding: 0 8px; font: inherit; font-size: 13px; background: #fff; }
.mlist-c { font-size: 13px; color: #888; padding: 0 14px 12px; }

/* 상세 */
.pimg { aspect-ratio: 1; background: #f6f2ec; }
.pimg img { width: 100%; height: 100%; object-fit: cover; }
.pinfo { padding: 20px 16px 8px; }
.pinfo .bd { font-size: 13px; color: var(--red); font-weight: 600; }
.pinfo h1 { font-family: 'Pretendard Variable', Pretendard, sans-serif; font-size: 21px; font-weight: 700; line-height: 1.4; margin-top: 2px; }
.pinfo .sm { color: #777; font-size: 14px; margin-top: 6px; }
.pinfo .mprice { margin-top: 14px; }
.pinfo .mprice .pc, .pinfo .mprice b { font-size: 22px; }
.pinfo .mprice s { font-size: 14px; }
.prows { margin: 16px 16px 0; border-top: 1px solid #eee; }
.prows div { display: grid; grid-template-columns: 76px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid #f2f2f2; font-size: 13px; }
.prows dt { color: #888; }
.pnote { margin: 14px 16px 0; padding: 12px 14px; background: #fff7e6; border-radius: 6px; font-size: 13px; color: #7a5414; }
.popts { padding: 16px; display: grid; gap: 12px; }
.popts label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.popts select { width: 100%; height: 46px; border: 1px solid #ddd; border-radius: 4px; padding: 0 10px; font: inherit; font-size: 14px; background: #fff; }
.pqty { display: flex; justify-content: space-between; align-items: center; padding: 14px; background: #fafafa; border: 1px solid #eee; border-radius: 4px; }
.pqty .qty { background: #fff; }
.ptotal { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 2px; }
.ptotal b { font-size: 22px; font-weight: 800; }
.pbar { position: sticky; bottom: 0; z-index: 20; display: grid; grid-template-columns: 1fr 1.4fr; gap: 6px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #eee; }
.pbar .btn { height: 52px; border-radius: 4px; font-size: 16px; }
.pbar .btn.line { border-color: #222; }
.ptabs { position: sticky; top: 54px; z-index: 15; display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-top: 8px solid #f3f3f3; border-bottom: 1px solid #eee; margin-top: 18px; }
.ptabs button { height: 48px; border: 0; background: none; font: inherit; font-size: 15px; color: #888; cursor: pointer; border-bottom: 2px solid transparent; }
.ptabs button.on { color: #111; font-weight: 700; border-color: #111; }
.pdetail img { width: 100%; height: auto; display: block; }
.pdetail .empty { padding: 30px 16px; color: #999; font-size: 14px; text-align: center; }
.pguide { padding: 20px 16px 30px; }
.pguide div { padding: 14px 0; border-bottom: 1px solid #f0f0f0; }
.pguide b { display: block; font-size: 14px; margin-bottom: 4px; }
.pguide p { font-size: 13px; color: #666; line-height: 1.7; }
.ptoast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: rgba(30,30,30,.92); color: #fff; padding: 12px 18px; border-radius: 6px; font-size: 14px; z-index: 90; display: flex; gap: 12px; align-items: center; white-space: nowrap; }
.ptoast a { color: #ffd77a; font-weight: 700; text-decoration: none; }

/* 주문서 장바구니 */
.cline { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid #f0f0f0; }
.cline img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; background: #f6f2ec; }
.cline .nm { font-size: 14px; font-weight: 600; line-height: 1.4; }
.cline .op { font-size: 12px; color: #888; margin-top: 2px; }
.cline .rw { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.cline .rw b { font-size: 15px; }
.cline .rm { border: 0; background: none; color: #999; font-size: 12px; text-decoration: underline; cursor: pointer; margin-left: 8px; }
.cempty { text-align: center; padding: 30px 0 10px; color: #888; font-size: 14px; }
.cmore { display: inline-block; margin-top: 12px; font-size: 14px; color: #555; }

/* 푸터 */
.mfoot { background: #f7f7f7; padding: 26px 18px 40px; font-size: 12px; color: #888; line-height: 1.85; }
.mfoot .cs { font-size: 13px; color: #333; margin-bottom: 12px; }
.mfoot .cs b { display: block; font-size: 20px; color: #111; }
.mfoot a { color: inherit; }

/* 후기 */
.stars { display: flex; gap: 6px; }
.stars button { width: 46px; height: 46px; border: 1px solid #e5e5e5; border-radius: 8px; background: #fff; font-size: 24px; color: #ddd; cursor: pointer; }
.stars button.on { color: #e9a400; border-color: #f1d07a; background: #fffaf0; }
.field textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font: inherit; background: #fff; resize: vertical; }
.rvlist { display: grid; gap: 0; }
.rv { padding: 16px 0; border-bottom: 1px solid #f0f0f0; }
.rv .hd { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #999; }
.rv .st { color: #e9a400; font-size: 13px; letter-spacing: 1px; }
.rv p { font-size: 14px; line-height: 1.65; margin-top: 6px; color: #333; white-space: pre-line; }
.rv .pd { font-size: 12px; color: #999; margin-top: 4px; }
.prev { padding: 8px 16px 30px; }
.rvsum { display: flex; align-items: baseline; gap: 8px; padding: 14px 0 6px; }
.rvsum b { font-size: 26px; }
