/* 루비무드 스타일 — 색·글씨체는 인수인계서 확정값입니다.
   색을 바꾸고 싶으면 아래 :root 안의 값만 고치세요. */
:root {
  --ruby: #8B1E2D;
  --ruby-hover: #5E1420;
  --ruby-light: #E0607A;
  --bg: #FAF8F4;
  --bg-sub: #F1EDE5;
  --bg-chip: #EEEAE2;
  --ink: #1A1A1A;
  --text: #3D3832;
  --muted: #5E5850;
  --line: #E4DFD6;
  --white: #FFFFFF;
  --sand: #CFC8BC;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Noto Sans KR', sans-serif;
  line-height: 1.7;
  word-break: keep-all;
}
a { color: var(--ruby); }
img { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.serif { font-family: 'Noto Serif KR', serif; }
.eyebrow { margin: 0 0 12px; font-size: 14px; letter-spacing: .1em; color: var(--ruby); font-weight: 700; }
h2.title { margin: 0 0 40px; font-family: 'Noto Serif KR', serif; font-size: 36px; line-height: 1.4; }
.lead { margin: 0 0 40px; font-size: 17px; color: var(--text); }

/* 사장님이 채워야 할 빈칸 표시 */
.todo { background: #FFF3B0; color: #5a4a00; padding: 0 4px; border-radius: 3px; }

/* 로고 */
.logo { font-family: 'Cinzel', serif; font-weight: 700; letter-spacing: .14em; color: var(--ink); line-height: 1.1; text-decoration: none; }
.logo b { color: var(--ruby); font-weight: 700; }
.logo-dark { color: var(--bg); }
.logo-dark b { color: var(--ruby-light); }

/* 상단 띠 + 헤더 */
.topbar { background: var(--ink); font-size: 13px; }
.topbar .wrap { padding-top: 8px; padding-bottom: 8px; display: flex; flex-wrap: wrap; gap: 18px; justify-content: flex-end; }
.topbar a { text-decoration: none; color: var(--sand); }
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.brand { display: flex; flex-direction: column; line-height: 1.2; text-decoration: none; }
.brand .logo { font-size: 26px; }
.brand small { font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 15px; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); }
.nav a.main { color: var(--ruby); font-weight: 700; }
.nav a.cta { color: #fff; background: var(--ruby); padding: 10px 18px; border-radius: 999px; font-weight: 500; }
.nav a.cta:hover { background: var(--ruby-hover); }

/* 버튼 */
.btn { display: inline-block; text-decoration: none; padding: 16px 28px; border-radius: 8px; font-size: 17px; font-weight: 500; text-align: center; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn-ruby { background: var(--ruby); color: #fff; }
.btn-ruby:hover { background: var(--ruby-hover); }
.btn-line { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-kakao { background: #FEE500; color: #191919; font-weight: 700; }

/* 첫 화면 */
.hero { padding: 88px 24px 72px; }
.hero h1 { margin: 0 0 28px; font-family: 'Noto Serif KR', serif; font-size: 52px; line-height: 1.3; font-weight: 700; max-width: 820px; }
.hero p.sub { margin: 0 0 40px; font-size: 19px; color: var(--text); max-width: 680px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; }
.chips span { background: var(--bg-chip); padding: 8px 14px; border-radius: 999px; }

.hero-grid.no-photo { grid-template-columns: minmax(0, 1fr); }
.hero-grid.no-photo .hero-photo { display: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: center; margin-bottom: 48px; }
.hero-grid .actions { margin-bottom: 0; }
/* 동그란 사진: 모서리가 잘려서 아래쪽 물건이 안 보이게 살짝 확대 */
.hero-photo .circle { width: 100%; max-width: 440px; margin: 0 auto; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; box-shadow: 0 18px 40px rgba(26, 26, 26, .18); border: 6px solid #fff; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.1); transform-origin: 50% 42%; }

.hero-photo { margin: 0; }
.hero-photo figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; }

/* 2대째 이야기 + 대표 사진 */
.story-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-bottom: 40px; }
.people { display: flex; gap: 16px; justify-content: flex-end; }
.ceo { margin: 0; flex: 1 1 0; max-width: 260px; min-width: 0; }
.ceo img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; display: block; }
.ceo figcaption { margin-top: 12px; display: flex; flex-direction: column; font-size: 14px; color: var(--muted); }
.ceo figcaption strong { font-size: 17px; color: var(--ink); }

/* 사진 확대 보기 + 모바일 카톡 버튼 */
.photo.contain { object-fit: contain; background: var(--bg-chip); }
.zoomable { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, .86); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 100; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 6px; }
.float-kakao { display: none; }
.site-header { position: sticky; top: 0; z-index: 50; }

/* ===== 첫 화면 (큰 사진 배경 + 어두운 그라데이션) ===== */
.hero2 { position: relative; min-height: min(88vh, 780px); background: #14110f; color: #fff; display: flex; align-items: center; overflow: hidden; }
.hero2-bg { position: absolute; inset: 0; background: #14110f url('../assets/hero-bg.jpg') no-repeat; background-size: auto 112%; background-position: 19vw 16%; }
.hero2-bg::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20,17,15,.98) 0%, rgba(20,17,15,.94) 30%, rgba(20,17,15,.6) 52%, rgba(20,17,15,.2) 80%, rgba(20,17,15,.12) 100%),
    linear-gradient(180deg, rgba(20,17,15,.35) 0%, rgba(20,17,15,0) 30%, rgba(20,17,15,.85) 100%); }
.hero2-in { position: relative; z-index: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 96px 24px 120px; }
.pill { display: inline-block; margin: 0 0 22px; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.25); color: #E9D6A8; font-size: 14px; font-weight: 700; letter-spacing: .06em; }
.hero2 h1 { margin: 0 0 24px; font-family: 'Noto Serif KR', serif; font-size: 50px; line-height: 1.3; font-weight: 700; max-width: 600px; text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.hero2 h1 em { font-style: normal; color: #E8B96A; }
.lead2 { margin: 0 0 28px; font-size: 19px; color: #F1ECE4; max-width: 620px; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.chips2 { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; font-size: 14px; max-width: 600px; }
.chips2 span { padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); color: #F6F1E8; backdrop-filter: blur(4px); }
.actions2 { display: flex; flex-wrap: wrap; gap: 12px; }
.actions2 .btn { min-width: 240px; }
.btn-ghost2 { background: rgba(0,0,0,.25); color: #F1DDAE; border-color: rgba(241,221,174,.6); }
.btn-ghost2:hover { background: rgba(0,0,0,.4); }
.hero2-cap { position: absolute; right: 24px; bottom: 56px; margin: 0; z-index: 1; font-size: 13px; color: rgba(255,255,255,.8); text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.scroll-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,.75); text-decoration: none; }
.scroll-hint span { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); display: flex; align-items: center; justify-content: center; font-size: 14px; background: rgba(0,0,0,.25); }

/* 숫자 띠 */
.stats { background: var(--ink); color: var(--bg); }
.stats .wrap { padding-top: 48px; padding-bottom: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 28px 20px; align-items: start; }
.stats .num { font-family: 'Noto Serif KR', serif; font-size: 36px; font-weight: 700; }
.stats .cap { font-size: 15px; color: var(--sand); }
.stats .num.big { font-size: 44px; }
.stats .cap small { display: block; margin-top: 4px; font-size: 12px; color: #B9B0A2; }
.stats .num { line-height: 1.25; }

/* 로그인 팝업 (js/auth.js) */
.rm-modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.rm-box { position: relative; background: #fff; border-radius: 16px; padding: 30px 26px 24px; width: 100%; max-width: 400px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.rm-x { position: absolute; right: 10px; top: 8px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: #777; }
.rm-box h3 { margin: 0 0 8px; font-family: 'Noto Serif KR', serif; font-size: 20px; line-height: 1.4; }
.rm-sub { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.rm-small { margin: 14px 0 0; font-size: 12px; color: var(--muted); line-height: 1.6; }
.rm-box label { display: block; margin: 12px 0 0; font-size: 14px; font-weight: 500; }
.rm-box input[type=text], .rm-box input[type=tel] { display: block; width: 100%; margin-top: 4px; padding: 12px; font: inherit; border: 1px solid #CFC8BC; border-radius: 10px; }
.rm-check { display: flex !important; gap: 8px; align-items: flex-start; font-weight: 400 !important; font-size: 13px !important; color: var(--text); }
.rm-check input { margin-top: 3px; }
.rm-kakao, .rm-main { display: block; width: 100%; padding: 15px; border: 0; border-radius: 10px; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; }
.rm-kakao { background: #FEE500; color: #191919; }
.rm-main { background: var(--ruby); color: #fff; margin-top: 16px; }
.rm-main:disabled { opacity: .6; }
.rm-err { margin: 10px 0 0; color: #b00020; font-size: 13px; }
.rm-ok { margin: 10px 0 0; color: #1d6b3a; font-size: 13px; background: #E8F5EC; padding: 10px 12px; border-radius: 8px; }
.rm-tabs { display: flex; gap: 6px; margin: 0 0 14px; border-bottom: 1px solid var(--line); }
.rm-tabs button { flex: 1; padding: 11px 0; border: 0; background: none; font: inherit; font-weight: 700; font-size: 16px; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.rm-tabs button.on { color: var(--ruby); border-bottom-color: var(--ruby); }
.rm-or { display: flex; align-items: center; gap: 10px; margin: 16px 0 4px; color: var(--muted); font-size: 13px; }
.rm-or::before, .rm-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.rm-links { margin: 12px 0 0; text-align: center; font-size: 13px; }
.rm-box input[type=email], .rm-box input[type=password] { display: block; width: 100%; margin-top: 4px; padding: 12px; font: inherit; border: 1px solid #CFC8BC; border-radius: 10px; }
.rm-box { max-height: 92vh; overflow-y: auto; }
.rm-toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 10px); background: #1A1A1A; color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14px; opacity: 0; transition: opacity .25s, transform .25s; z-index: 210; }
.rm-toast.show { opacity: 1; transform: translate(-50%, 0); }
.topbar a.rm-login { color: #F1DDAE; font-weight: 700; }
/* 마이페이지 아이콘 메뉴 */
.user-wrap { position: relative; display: inline-block; }
.cart-dot { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--ruby); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.cart-dot[hidden] { display: none; }
.user-menu { position: absolute; right: 0; top: 100%; min-width: 150px; padding: 8px 0; margin-top: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 34px rgba(0,0,0,.14); display: none; z-index: 80; }
.user-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }   /* 마우스가 아이콘에서 메뉴로 갈 때 끊기지 않게 */
.user-menu a { display: block; padding: 11px 20px; color: var(--text); text-decoration: none; font-size: 14px; white-space: nowrap; }
.user-menu a:hover { background: #F6F2EA; color: var(--ruby); }
.user-wrap:hover .user-menu, .user-wrap.open .user-menu, .user-wrap:focus-within .user-menu { display: block; }
@media (hover: none), (max-width: 720px) { .user-wrap:hover .user-menu { display: none; } .user-wrap.open .user-menu { display: block; } .user-menu { left: 0; right: auto; } }
.nav .nav-user { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.nav .nav-user svg { width: 24px; height: 24px; }
.nav .nav-user span { font-size: 13px; }
@media (max-width: 720px) {
  .topbar .wrap { justify-content: space-between; gap: 6px 14px; }
  .topbar a { font-size: 12.5px; }
  .nav .nav-user { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
}

/* 로그인 · 회원가입 페이지 (쇼핑몰 스타일) */
.vm-page { max-width: 760px; padding-bottom: 100px; }
.vm-title { margin: 56px 0 0; padding-bottom: 28px; text-align: center; font-family: 'Noto Serif KR', serif; font-weight: 500; font-size: 30px; border-bottom: 1px solid #CFC8BC; }
.vm-form { display: flex; gap: 0; align-items: stretch; margin-top: 28px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.vm-fields { flex: 1; }
.vm-row { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.vm-row label { width: 70px; font-size: 14px; flex: none; }
.vm-row input { flex: 1; height: 46px; padding: 0 14px; border: 0; background: #F3F2EF; border-radius: 0; font: inherit; font-size: 15px; min-width: 0; }
.vm-row input:focus { outline: 2px solid var(--ink); background: #fff; }
.vm-find { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 14px; padding-left: 86px; font-size: 13px; }
.vm-find a { color: var(--text); text-decoration: none; }
.vm-find i { width: 1px; height: 12px; background: #CFC8BC; }
.vm-submit { flex: none; width: 110px; margin-left: 12px; border: 0; background: var(--ink); color: #fff; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; margin-bottom: 38px; }
.vm-submit:hover { background: var(--ruby); }
.vm-msg { margin: 14px 0 0; font-size: 14px; padding: 12px 14px; border-radius: 6px; }
.vm-msg.err { background: #FDECEC; color: #b00020; }
.vm-msg.ok { background: #E8F5EC; color: #1d6b3a; }
.vm-msg.warn { background: #FFF3B0; color: #5a4a00; }
.vm-sns { margin-top: 28px; padding-top: 4px; text-align: center; border-top: 0; }
.vm-sns p { margin: 0 0 14px; font-size: 14px; }
.vm-sns-btns { display: flex; gap: 12px; justify-content: center; }
.sns { width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; font: inherit; font-weight: 900; font-size: 18px; color: #fff; }
.sns.naver { background: #03C75A; }
.sns.kakao { background: #FEE500; }
.sns svg { width: 22px; height: 22px; }
.vm-boxes { display: grid; grid-template-columns: 1fr 1fr; margin-top: 34px; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.vm-boxes.one { grid-template-columns: 1fr; }
.vm-boxes > div { padding: 0 20px; }
.vm-boxes > div + div { border-left: 1px solid var(--line); }
.vm-boxes strong { font-size: 15px; font-weight: 500; }
.vm-boxes p { margin: 6px 0 16px; font-size: 12px; color: var(--muted); }
.vm-btn { display: inline-block; min-width: 160px; padding: 13px 20px; font: inherit; font-size: 14px; text-align: center; text-decoration: none; cursor: pointer; border: 1px solid #CFC8BC; }
.vm-btn.line { background: #fff; color: var(--ink); }
.vm-btn.gray { background: #8a8a8a; border-color: #8a8a8a; color: #fff; }
.vm-btn.black { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }
.vm-join h2 { margin: 36px 0 12px; font-size: 17px; font-weight: 700; }
.vm-join h2 span { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 8px; }
.vm-table { border-top: 1px solid var(--ink); }
.vm-trow { display: flex; border-bottom: 1px solid var(--line); }
.vm-trow > label { flex: 0 0 170px; padding: 18px 16px; background: #F8F6F1; font-size: 14px; }
.vm-trow > div { flex: 1; padding: 12px 16px; }
.vm-trow input { width: 100%; max-width: 340px; height: 42px; padding: 0 12px; border: 1px solid #CFC8BC; font: inherit; font-size: 15px; }
.vm-trow small { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.vm-agree { margin-top: 22px; padding: 18px; background: #F8F6F1; font-size: 14px; }
.vm-agree p { margin: 8px 0 0; font-size: 12px; color: var(--muted); line-height: 1.6; }
.vm-actions { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
@media (max-width: 640px) {
  .vm-title { margin-top: 32px; font-size: 24px; }
  .vm-form { flex-direction: column; }
  .vm-submit { width: 100%; height: 50px; margin: 14px 0 0; }
  .vm-row { gap: 10px; }
  .vm-row label { width: 54px; }
  .vm-find { padding-left: 0; }
  .vm-boxes { grid-template-columns: 1fr; gap: 24px; }
  .vm-boxes > div + div { border-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
  .vm-trow { flex-direction: column; }
  .vm-trow > label { flex: none; padding: 12px 16px 4px; background: none; font-weight: 500; }
  .vm-trow > div { padding: 4px 16px 14px; }
  .vm-trow input { max-width: none; }
}

/* 구매 신청 */
.od-prod { margin: 4px 0 12px; padding: 12px 14px; background: #F8F6F1; border-radius: 10px; font-size: 14px; line-height: 1.6; }
.od-prod span { color: var(--muted); font-size: 13px; }
.od-no { margin-top: 14px; padding: 16px; text-align: center; background: #F8F6F1; border-radius: 10px; font-size: 15px; }
.od-no b { display: block; margin-top: 4px; font-size: 22px; letter-spacing: .06em; color: var(--ruby); }
.rm-box select { display: block; width: 100%; margin-top: 4px; padding: 12px; font: inherit; border: 1px solid #CFC8BC; border-radius: 10px; background: #fff; }
.my-order { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 12px; display: flex; gap: 14px; }
.my-order .th { flex: 0 0 72px; width: 72px; height: 72px; background: var(--bg-chip); border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); }
.my-order .th img { width: 100%; height: 100%; object-fit: cover; }
.my-order .bd { flex: 1; min-width: 0; }
.my-order .no { font-size: 12px; color: var(--muted); }
.my-order .nm { font-weight: 500; margin: 2px 0; }
.my-order .pr { font-weight: 700; }
.badge-st { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #EEE; color: #555; margin-left: 6px; }
.badge-st.s-접수 { background: #FFF3B0; color: #5a4a00; }
.badge-st.s-입금대기 { background: #FFE2C2; color: #8a4a00; }
.badge-st.s-결제완료 { background: #DFF2E5; color: #1d6b3a; }
.badge-st.s-배송중 { background: #DCE9FB; color: #1f4f9a; }
.badge-st.s-배송완료 { background: #E6E1F5; color: #4b3a8a; }
.badge-st.s-취소 { background: #F3D9DC; color: #8b1e2d; }

/* 장바구니 · 주문조회 */
.cart-empty { text-align: center; padding: 70px 0; border-bottom: 1px solid var(--line); }
.cart-empty p { margin: 0 0 20px; color: var(--muted); }
.cart-list { margin-top: 20px; border-top: 1px solid var(--ink); }
.cart-row { display: flex; align-items: center; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.cart-th { flex: 0 0 84px; width: 84px; height: 84px; background: var(--bg-chip); display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 8px; text-decoration: none; color: var(--muted); font-size: 12px; }
.cart-th img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cart-brand { font-size: 12px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.cart-name { color: var(--ink); text-decoration: none; font-weight: 500; }
.cart-meta { font-size: 13px; color: var(--muted); }
.cart-price { font-weight: 700; white-space: nowrap; }
.cart-del { border: 0; background: none; font-size: 26px; color: #888; cursor: pointer; padding: 0 6px; }
.cart-sum { display: flex; justify-content: space-between; padding: 18px 4px; font-size: 15px; }
.cart-total b { font-size: 20px; color: var(--ruby); }
.cart-note { background: #F8F6F1; padding: 14px 16px; font-size: 13px; color: var(--muted); margin: 0 0 8px; border-radius: 8px; }
.order-box { margin-top: 28px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.order-box h2 { margin: 0 0 14px; font-family: 'Noto Serif KR', serif; font-size: 19px; line-height: 1.5; }
.order-box ol { margin: 0 0 22px; padding-left: 20px; font-size: 15px; color: var(--text); line-height: 1.9; }
.order-small { margin: 16px 0 0; font-size: 12px; color: var(--muted); }
@media (max-width: 640px) { .cart-row { flex-wrap: wrap; } .cart-price { margin-left: 100px; } }

/* 회원가입 · 마이페이지 */
.join-head { margin: 8px 0 24px; }
.rm-box.rm-inline { position: static; max-width: 460px; margin: 0 auto 24px; box-shadow: none; border: 1px solid var(--line); max-height: none; overflow: visible; }
.rm-box.rm-inline h3 { font-size: 20px; }
.rm-inline .rm-kakao { display: block; }
.mp-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin: 0 auto 16px; max-width: 640px; }
.mp-card h2 { margin: 0 0 12px; font-family: 'Noto Serif KR', serif; font-size: 20px; }
.mp-hello { display: flex; align-items: center; gap: 16px; }
.mp-avatar { width: 56px; height: 56px; border-radius: 50%; background: #F1EFEA; color: var(--ruby); display: flex; align-items: center; justify-content: center; }
.mp-avatar svg { width: 30px; height: 30px; }
.mp-name { font-size: 20px; font-weight: 700; }
.mp-sub { font-size: 13px; color: var(--muted); }
.mp-p { margin: 0 0 14px; font-size: 15px; color: var(--text); }
.mp-small { font-size: 13px; color: var(--muted); margin: 16px 0 0; }
.mp-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.mp-card label { display: block; margin: 12px 0 0; font-size: 14px; font-weight: 500; }
.mp-card input { display: block; width: 100%; margin-top: 4px; padding: 12px; font: inherit; border: 1px solid #CFC8BC; border-radius: 10px; }
.mp-card input:disabled { background: #F4F1EA; color: var(--muted); }
.mp-card .rm-main { margin-top: 16px; }
.legal h1 { font-family: 'Noto Serif KR', serif; font-size: 30px; }
.legal h2 { font-size: 19px; margin: 32px 0 8px; }
.legal p, .legal li { font-size: 15px; color: var(--text); }
.legal .note { background: #FFF3B0; color: #5a4a00; padding: 12px 16px; border-radius: 8px; font-size: 14px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--bg-sub); }

/* 한마디 */
.manifesto { background: var(--bg); text-align: center; }
.manifesto .wrap { padding-top: 96px; padding-bottom: 8px; max-width: 860px; }
.manifesto .mark-line { display: block; width: 44px; height: 2px; background: #B08D57; margin: 0 auto 28px; }
.manifesto h2 { margin: 0 0 22px; font-family: 'Noto Serif KR', serif; font-size: 34px; line-height: 1.5; font-weight: 700; }
.manifesto p { margin: 0 0 8px; font-size: 18px; color: var(--text); }
.manifesto p.last { margin-top: 14px; font-size: 18px; color: var(--ink); }
.manifesto p.last strong { color: var(--ruby); }
.section { padding-top: 96px; }
.section-end { padding-bottom: 96px; }

/* 고객 걱정 */
.grid-300 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.worry { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; font-size: 17px; }
.after-worry { margin: 40px 0 0; font-size: 19px; color: var(--text); max-width: 720px; }

/* 후기 */
.reviews { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 96px; }
.reviews .wrap { padding-top: 96px; padding-bottom: 96px; }
.review-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; align-items: start; }
.review { background: var(--bg); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.review .body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 12px; }
.review .stars { color: var(--ruby); font-size: 15px; letter-spacing: .1em; }
.review p { margin: 0; font-size: 16px; color: var(--text); }
.review p strong { color: var(--ink); font-weight: 700; }
.review p.hl { font-size: 17px; font-weight: 700; color: var(--ink); }
.review p.by { font-size: 14px; color: var(--muted); }
.review-empty { background: var(--bg); border-radius: 12px; padding: 28px; }

/* 후기 넘겨 보기 (한 장씩, 옆으로) */
.rc { position: relative; max-width: 940px; margin: 0 auto; }
.rc-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 4px 2px 8px; cursor: grab; }
.rc-track::-webkit-scrollbar { display: none; }
.rc-track .review { flex: 0 0 100%; scroll-snap-align: center; border: 1px solid var(--line); box-shadow: 0 6px 22px rgba(60, 50, 30, .07); user-select: none; }
.rc-track .review img { -webkit-user-drag: none; }
.rc-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 18px; }
.rc-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ruby); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 3px 10px rgba(0,0,0,.1); display: flex; align-items: center; justify-content: center; padding: 0 0 3px; }
.rc-btn:hover { background: #FBF3F4; }
.rc-btn[hidden] { display: block; visibility: hidden; }
.rc-dots { display: flex; justify-content: center; align-items: center; gap: 8px; min-width: 60px; }
.rc-dots span { width: 9px; height: 9px; border-radius: 999px; background: #D8D1C4; transition: width .2s, background .2s; cursor: pointer; }
.rc-dots span.on { width: 26px; background: var(--ruby); }
@media (min-width: 721px) {
  .rc-track .review { flex-direction: row; align-items: stretch; }
  .rc-track .review > img, .rc-track .review > .ph { flex: 0 0 42%; width: 42%; aspect-ratio: auto; min-height: 320px; height: auto; object-fit: cover; border-radius: 0; }
  .rc-track .review .body { flex: 1; justify-content: center; padding: 32px 36px; }
}
@media (max-width: 720px) {
  .rc-btn { width: 40px; height: 40px; font-size: 24px; }
}

/* 사진 자리 (사진이 없으면 점선 박스로 보임) */
.ph { aspect-ratio: 4 / 3; background: var(--bg-chip); border: 1px dashed #B9B0A2; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 14px; text-align: center; padding: 16px; }
.ph svg { width: 32px; height: 32px; }
.photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.proof { display: flex; flex-direction: column; gap: 10px; }
.proof .pt { font-size: 17px; font-weight: 700; }
.proof .pd { font-size: 14px; color: var(--muted); margin-top: -6px; }
.grid-240 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }

/* 8가지 약속 */
.promises { display: flex; flex-direction: column; gap: 20px; }
.promise { display: flex; flex-wrap: wrap; gap: 24px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 36px; }
.promise .no { flex: 0 0 64px; font-family: 'Noto Serif KR', serif; font-size: 40px; font-weight: 700; color: var(--ruby); line-height: 1; }
.promise .tx { flex: 999 1 520px; min-width: 0; }
.promise .q { margin: 0 0 6px; font-size: 15px; color: var(--muted); }
.promise h3 { margin: 0 0 12px; font-size: 24px; }
.promise p.d { margin: 0; font-size: 17px; color: var(--text); }

/* 카드형 */
.grid-260 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0; font-size: 16px; color: var(--text); }
.story { margin: 0 0 40px; font-size: 18px; color: var(--text); max-width: 760px; }

/* 이름 이야기 */
.name-box { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 48px; }
.name-box .big { flex: 1 1 200px; font-family: 'Noto Serif KR', serif; font-size: 44px; font-weight: 700; color: var(--ruby); line-height: 1.2; }
.name-box .tx { flex: 999 1 480px; min-width: 0; }
.name-box h2 { margin: 0 0 12px; font-family: 'Noto Serif KR', serif; font-size: 28px; line-height: 1.4; }
.name-box p { margin: 0 0 12px; font-size: 17px; color: var(--text); }
.name-box p:last-child { margin: 0; }

/* 상태 등급 */
.grade-band { background: var(--bg-sub); margin-top: 96px; }
.grade-band .wrap { padding-top: 96px; padding-bottom: 96px; }
.leather { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 32px; margin-bottom: 24px; }
.leather h3 { margin: 0 0 12px; font-family: 'Noto Serif KR', serif; font-size: 24px; }
.leather p { margin: 0 0 12px; font-size: 17px; color: var(--text); }
.leather p.em { margin: 0; color: var(--ink); font-weight: 500; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: 12px; border: 1px solid var(--line); }
table.grades { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 16px; }
table.grades th { background: var(--ink); color: var(--bg); text-align: left; padding: 16px 20px; }
table.grades th:first-child { width: 100px; }
table.grades td { padding: 16px 20px; border-bottom: 1px solid var(--line); }
table.grades tr:last-child td { border-bottom: 0; }
table.grades td:first-child { font-weight: 700; }

/* 가격에 담긴 것 */
.includes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.includes > div { border-top: 2px solid var(--ink); padding-top: 16px; }
.includes h3 { margin: 0 0 6px; font-size: 18px; }
.includes p { margin: 0; font-size: 15px; color: var(--muted); }

/* FAQ */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.faq .item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.faq h3 { margin: 0 0 8px; font-size: 19px; }
.faq p { margin: 0; font-size: 16px; color: var(--text); }

/* 마무리 */
.closing { background: var(--ruby); color: #fff; }
.closing .wrap { padding-top: 96px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; align-items: flex-end; }
.closing .tx { flex: 999 1 480px; min-width: 0; }
.closing h2 { margin: 0 0 20px; font-family: 'Noto Serif KR', serif; font-size: 40px; line-height: 1.4; }
.closing p { margin: 0; font-size: 18px; color: #F6E4E6; }
.closing .acts { flex: 1 1 280px; display: flex; flex-direction: column; gap: 12px; }
.closing .acts a { padding: 18px 24px; font-weight: 700; }
.closing .btn-sand { background: var(--bg); color: var(--ink); }
.closing .btn-ghost { background: transparent; color: #fff; border-color: #fff; font-weight: 500; }

/* 푸터 */
.site-footer { background: var(--ink); color: var(--sand); font-size: 14px; }
.site-footer .wrap { padding-top: 48px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 8px; }
.site-footer .logo { font-size: 22px; }
.site-footer .todo { background: #5a4a00; color: #FFF3B0; }

/* 루비 상품 목록 */
.crumb { padding: 20px 24px 0; font-size: 14px; color: var(--muted); }
.crumb a { color: var(--muted); text-decoration: none; }
.page-title { margin: 12px 0 8px; font-family: 'Noto Serif KR', serif; font-size: 36px; }
.sample-note { background: #FFF3B0; color: #5a4a00; border-radius: 8px; padding: 12px 16px; font-size: 14px; margin: 16px 0 0; }
.trust3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 32px 0; }
.trust3 > div { display: flex; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.trust3 svg { flex: 0 0 24px; width: 24px; height: 24px; color: var(--ruby); margin-top: 2px; }
.trust3 strong { display: block; font-size: 16px; }
.trust3 span { font-size: 14px; color: var(--muted); }
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.cats button { font-family: inherit; font-size: 15px; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.cats button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
/* 브랜드·종류 타일 (둥근 네모 + 아래 한글 이름) */
/* 옆으로 넘기는 두 줄: 위는 브랜드, 아래는 종류. 두 줄이 함께 움직입니다. */
.rail-wrap { position: relative; margin: 0 -24px 26px; }
.rail { --tw: 84px; display: grid; grid-template-rows: auto auto; grid-auto-flow: column; grid-auto-columns: var(--tw); gap: 16px 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-left: 24px; padding: 4px 24px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rail::-webkit-scrollbar { display: none; }
.rail .tiles { display: contents; }
.rail .tile { scroll-snap-align: start; width: 100%; }
.rail-btn { position: absolute; top: 24px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.12); font-size: 22px; line-height: 1; cursor: pointer; display: none; align-items: center; justify-content: center; color: var(--ink); }
.rail-btn.prev { left: 8px; }
.rail-btn.next { right: 8px; }
/* 마우스를 쓰는 컴퓨터에서는 화면이 좁아도 화살표를 보여주고, 드래그로도 넘길 수 있게 합니다 */
@media (hover: hover) { .rail-btn { display: flex; } .rail-btn[hidden] { display: none; } .rail { cursor: grab; } }
.rail.dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.rail.dragging * { pointer-events: none; }
.tiles { display: contents; }
.tile { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink); }
.tile .mark { width: 100%; max-width: 88px; aspect-ratio: 1 / 1; border-radius: 16px; background: #F1EFEA; border: 2px solid transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.15; transition: border-color .15s, background .15s; }
.tile:hover .mark { background: #EAE7E0; }
.tile .mark.icon svg { width: 30px; height: 30px; color: #3a3a3a; }
.tile .mark small { display: block; font-size: 7px; letter-spacing: .3em; margin-top: 3px; font-weight: 500; }
.tile .mark.serif { font-family: 'Noto Serif KR', serif; font-weight: 700; font-size: 14px; letter-spacing: .06em; }
.tile .mark.serif.sm { font-size: 10px; letter-spacing: .12em; }
.tile .mark.script { font-family: 'Noto Serif KR', serif; font-weight: 500; font-style: italic; font-size: 15px; letter-spacing: .02em; }
.tile .mark.wide { font-family: 'Cinzel', serif; font-weight: 700; font-size: 11px; letter-spacing: .12em; }
.tile .lab { font-size: 13px; color: #2b2b2b; }
.tile.on .mark { border-color: var(--ruby); background: #fff; }
.tile.on .lab { color: var(--ruby); font-weight: 700; }
.filter-label { margin: 0 0 8px; font-size: 13px; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.pcard .thumb { text-decoration: none; position: relative; aspect-ratio: 1 / 1; background: var(--bg-chip); display: block; }
.pcard .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard .thumb .ph { height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; }
.badge { position: absolute; left: 12px; top: 12px; background: var(--ink); color: #fff; font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 6px; z-index: 1; }
.pcard .info { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard .brand-n { font-size: 12px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.pcard .nm { font-size: 16px; font-weight: 500; color: var(--ink); text-decoration: none; }
.pcard .pr { font-size: 18px; font-weight: 700; margin: 6px 0 12px; }
.pcard .btn { margin-top: auto; padding: 12px; font-size: 15px; }
.sold { opacity: .55; }
.pager { display: flex; gap: 8px; justify-content: center; margin: 48px 0 0; flex-wrap: wrap; }
.pager button { min-width: 40px; height: 40px; font-family: inherit; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; }
.pager button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { padding: 48px 0; color: var(--muted); }

/* 상품 상세 */
.detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; margin-top: 24px; }
.detail .gallery { display: grid; gap: 12px; }
.detail .gallery .ph, .detail .gallery img { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; border-radius: 10px; }
.detail h1 { margin: 6px 0 8px; font-family: 'Noto Serif KR', serif; font-size: 30px; line-height: 1.4; }
.detail .price { font-size: 28px; font-weight: 700; margin: 8px 0 20px; }
.detail dl { margin: 0 0 24px; display: grid; grid-template-columns: 90px 1fr; gap: 10px 12px; font-size: 16px; border-top: 1px solid var(--ink); padding-top: 16px; }
.detail dt { color: var(--muted); }
.detail dd { margin: 0; }
.detail .grade-badge { display: inline-block; background: var(--ink); color: #fff; font-weight: 700; padding: 2px 10px; border-radius: 6px; }
.detail .actions { display: flex; flex-direction: column; gap: 10px; }
.notice { margin-top: 24px; font-size: 14px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }

@media (max-width: 520px) {
  /* 폰에서는 타일을 작게 하고, 오른쪽이 살짝 걸쳐 보여서 밀어 볼 수 있게 합니다 */
  .rail { --tw: 68px; gap: 12px 8px; padding-left: 16px; padding-right: 16px; scroll-padding-left: 16px; }
  .rail-wrap { margin: 0 -24px 22px; }
  .tile { gap: 6px; }
  .tile .mark { border-radius: 12px; border-width: 1.5px; }
  .tile .mark.icon svg { width: 22px; height: 22px; }
  .tile .mark.serif { font-size: 10px; letter-spacing: .02em; }
  .tile .mark.serif.sm { font-size: 7px; letter-spacing: .06em; }
  .tile .mark.wide { font-size: 8px; letter-spacing: .04em; }
  .tile .mark.script { font-size: 11px; }
  .tile .mark small { font-size: 5px; letter-spacing: .2em; }
  .tile .lab { font-size: 11px; letter-spacing: -.02em; text-align: center; }
}
@media (max-width: 720px) {
  /* 폰: 사진은 위쪽에 보이고, 글은 아래쪽 어두운 그라데이션 위에 가운데 정렬 */
  .hero2 { min-height: 640px; align-items: flex-end; text-align: center; }
  .hero2-bg { background-image: url('../assets/hero-mobile.jpg'); background-size: cover; background-position: 50% 0; }
  /* 사진 전체를 살짝 어둡게 하고, 그 위에 글을 올립니다 */
  .hero2-bg::after { background: linear-gradient(180deg, rgba(20,17,15,.3) 0%, rgba(20,17,15,.46) 40%, rgba(20,17,15,.74) 100%); }
  .hero2-in { padding: 270px 20px 84px; }
  .pill { font-size: 12px; padding: 7px 12px; margin-bottom: 16px; }
  .hero2 h1 { font-size: 31px; margin-bottom: 16px; }
  .lead2 { font-size: 15px; margin: 0 auto 22px; }
  .chips2 { display: none; }
  .actions2 { flex-direction: column; }
  .actions2 .btn { min-width: 0; width: 100%; }
  .hero2-cap { display: none; }
  .hero { padding: 56px 24px 48px; }
  .hero h1 { font-size: 34px; }
  .hero .chips { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; margin-bottom: 0; }
  .hero-photo .circle { max-width: none; aspect-ratio: 4 / 3; border-radius: 16px; border: 0; }
  .hero-photo img { transform: none; object-position: center 25%; }
  .story-grid { grid-template-columns: 1fr; gap: 28px; }
  .people { justify-content: flex-start; gap: 12px; }
  .ceo { max-width: none; }
  .site-header { position: static; }
  .float-kakao { display: block; position: fixed; right: 16px; bottom: 16px; z-index: 60; background: #FEE500; color: #191919; font-weight: 700; text-decoration: none; padding: 14px 20px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); font-size: 15px; }
  body { padding-bottom: 72px; }
  h2.title, .page-title { font-size: 28px; }
  .section { padding-top: 64px; }
  /* 숫자 띠: 한 화면에 다 보이게 가로 3칸 × 2줄 (첫 줄: 이력 3개 / 둘째 줄: 0건 2개) */
  .manifesto .wrap { padding-bottom: 36px; }
  .stats .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 6px; padding: 30px 12px 32px; text-align: center; align-items: start; }
  .stats .num { font-size: 24px; color: #EBCB8B; line-height: 1.25; }
  .stats .num.big { font-size: 30px; }
  .stats .cap { font-size: 12px; line-height: 1.45; color: #D9D0C2; margin-top: 2px; }
  .stats .cap small { font-size: 10.5px; line-height: 1.4; margin-top: 3px; color: #B9B0A2; letter-spacing: -.02em; }
  .manifesto .wrap { padding-top: 64px; }
  .manifesto h2 { font-size: 24px; }
  .manifesto p, .manifesto p.last { font-size: 16px; }
  .reviews, .grade-band { margin-top: 64px; }
  .reviews .wrap, .grade-band .wrap { padding-top: 64px; padding-bottom: 64px; }
  .promise { padding: 24px; }
  .promise h3 { font-size: 20px; }
  .name-box { padding: 28px; }
  .closing h2 { font-size: 30px; }
  .closing .wrap { padding-top: 64px; padding-bottom: 64px; }
  .nav { gap: 14px 18px; }
}
