/* 메밀연가 온라인몰 — 갈색·금색·크림색 바탕 + 메밀(초록)·호박(주황)·다홍·하늘·자주 포인트 색 */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --brown-dark: #2C1A0E;
  --brown-mid: #5C3A1E;
  --gold: #B8882A;
  --gold-light: #D4AA5A;
  --gold-deep: #94691A;
  --cream: #FAF6EF;
  --cream-dark: #F0E8D8;
  --paper: #FFFDF9;
  --line: #E4D8C2;
  --text: #1E1208;
  --text-mid: #5A3E28;
  --text-light: #8A6C4E;
  --ok: #2E7D4F;
  --err: #B3261E;
  --warn: #A86A00;
  --radius: 12px;
  --green: #2E8B57;
  --green-soft: #E4F3EA;
  --amber: #E8A33D;
  --amber-soft: #FDF0DA;
  --coral: #D9603B;
  --coral-soft: #FBE7E0;
  --blue: #2F7FB8;
  --blue-soft: #E2EFF8;
  --plum: #8B4F8F;
  --plum-soft: #F3E6F3;
}
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}
a { color: var(--gold-deep); }
img { max-width: 100%; display: block; }
code { background: var(--cream-dark); padding: 1px 5px; border-radius: 4px; font-size: .9em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.main { padding-top: 24px; padding-bottom: 56px; min-height: 60vh; }
.muted { color: var(--text-light); }
.small { font-size: .86rem; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

/* 상단 바 */
.topbar { background: var(--brown-dark); border-bottom: 2px solid var(--gold); position: sticky; top: 0; z-index: 50; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.logo { text-decoration: none; display: flex; align-items: baseline; gap: 8px; padding: 8px 0; }
.logo-main { font-family: 'Nanum Myeongjo', serif; font-weight: 800; font-size: 1.5rem; color: var(--gold-light); letter-spacing: .08em; }
.logo-sub { color: #D4C4A8; font-size: .8rem; letter-spacing: .2em; }
.topnav { display: flex; gap: 4px; flex-wrap: wrap; }
.topnav a { color: #E8DCC6; text-decoration: none; font-size: .92rem; padding: 8px 10px; border-radius: 6px; }
.topnav a:hover { background: rgba(212,170,90,.15); color: var(--gold-light); }
.cart-n { display: inline-block; min-width: 20px; height: 20px; line-height: 20px; margin-left: 4px; padding: 0 5px; border-radius: 10px; background: var(--gold); color: #fff; font-size: .75rem; text-align: center; }

/* 첫 화면 */
.hero { text-align: center; padding: 28px 16px 32px; margin: -24px -16px 28px; background: linear-gradient(160deg, #2C1A0E, #4A2D15); color: #fff; position: relative; overflow: hidden; }
.hero-label { margin: 0; color: var(--gold-light); letter-spacing: .3em; font-size: .8rem; }
.hero-title { font-family: 'Nanum Myeongjo', serif; font-size: clamp(1.8rem, 6vw, 2.6rem); margin: 6px 0 8px; letter-spacing: .04em; }
.hero-notice { margin: 0 auto; max-width: 560px; color: #E8DCC6; font-size: .95rem; }

/* 상품 목록 */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(44,26,14,.12); }
.card-img { position: relative; aspect-ratio: 1 / 1; background: var(--cream-dark); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 12px 14px 16px; }
.card-name { font-weight: 700; font-size: 1.05rem; }
.card-sum { color: var(--text-light); font-size: .88rem; margin-top: 2px; }
.card-price { margin-top: 8px; font-weight: 700; color: var(--brown-mid); font-size: 1.1rem; }
.soldout { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(30,18,8,.78); color: #fff; font-weight: 700; font-size: 1.2rem; letter-spacing: .2em; }
.noimg { width: 100%; height: 100%; min-height: 120px; display: flex; align-items: center; justify-content: center; font-family: 'Nanum Myeongjo', serif; color: var(--gold); background: var(--cream-dark); font-size: 1.2rem; letter-spacing: .1em; }
.noimg.big { aspect-ratio: 1 / 1; font-size: 2rem; }
.noimg.sm { min-height: 0; width: 64px; height: 64px; font-size: .8rem; border-radius: 6px; }
.empty { background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px 16px; text-align: center; color: var(--text-mid); }
.howto { margin-top: 36px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.howto h2 { margin: 0 0 8px; font-size: 1.1rem; }
.howto ol { margin: 0 0 8px; padding-left: 1.3em; }

/* 상품 상세 */
.pd { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 760px) { .pd { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; } }
.pd-main { border-radius: var(--radius); overflow: hidden; background: var(--cream-dark); }
.pd-main img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumb { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; width: 64px; height: 64px; cursor: pointer; background: none; }
.thumb.on { border-color: var(--gold); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-name { font-family: 'Nanum Myeongjo', serif; font-size: clamp(1.5rem, 4.5vw, 2rem); margin: 0 0 4px; line-height: 1.3; }
.pd-sum { margin: 0 0 10px; color: var(--text-mid); }
.pd-price { font-size: 1.6rem; font-weight: 700; color: var(--brown-mid); margin-bottom: 8px; }
.pd-ship { font-size: .9rem; padding: 10px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.pd-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); margin-top: 6px; }
.pd-total b { font-size: 1.5rem; color: var(--brown-dark); }
.pd-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pd-desc { margin-top: 36px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.pd-desc h2 { margin: 0 0 10px; font-size: 1.15rem; }
.soldout-box { background: var(--cream-dark); padding: 16px; border-radius: var(--radius); text-align: center; font-weight: 700; color: var(--text-mid); }

/* 입력 칸 */
.field { display: block; margin-bottom: 14px; }
.field-label { display: block; font-size: .9rem; font-weight: 500; color: var(--text-mid); margin-bottom: 5px; }
input[type=text], input:not([type]), input[type=number], input[type=email], input[type=password], input[type=tel], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  padding: 11px 12px; border: 1px solid #CFBFA3; border-radius: 8px; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold-light); outline-offset: 1px; border-color: var(--gold); }
textarea { resize: vertical; }
.field input + input { margin-top: 8px; }
.zip-row { display: flex; gap: 8px; margin-bottom: 8px; }
.zip-row input { flex: 1; }
.check { display: block; margin: 6px 0; }
.qty { display: inline-flex; align-items: stretch; border: 1px solid #CFBFA3; border-radius: 8px; overflow: hidden; background: #fff; }
.qty input { width: 56px; border: 0; border-radius: 0; text-align: center; padding: 8px 4px; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { width: 40px; border: 0; background: var(--cream-dark); font-size: 1.2rem; cursor: pointer; color: var(--brown-dark); }
.qty.sm input { width: 44px; padding: 6px 2px; }
.qty.sm .qty-btn { width: 32px; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  padding: 12px 20px; border-radius: 8px; border: 1px solid transparent; min-height: 46px; line-height: 1.2; }
.btn-gold { background: var(--gold); color: #fff; border-color: var(--gold-deep); box-shadow: 0 2px 0 var(--gold-deep); }
.btn-gold:hover { background: var(--gold-deep); }
.btn-line { background: var(--paper); color: var(--brown-dark); border-color: #CFBFA3; }
.btn-line:hover { border-color: var(--gold); }
.btn-danger { background: #fff; color: var(--err); border-color: #E3B4AF; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-sm { padding: 8px 14px; min-height: 38px; font-size: .9rem; }
.btn-xs { padding: 5px 10px; min-height: 32px; font-size: .82rem; font-weight: 500; }
.btn-block { width: 100%; margin-top: 8px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.btn-row.center { justify-content: center; }
.link-btn { background: none; border: 0; color: var(--text-light); text-decoration: underline; cursor: pointer; font: inherit; font-size: .85rem; padding: 4px; }

/* 알림 */
.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; border: 1px solid; }
.flash-ok { background: #EEF7F0; border-color: #B9DCC5; color: #1E5A37; }
.flash-err { background: #FCEFEE; border-color: #EBC1BD; color: #8A1C15; }
.flash-warn { background: #FFF6E0; border-color: #EBD49A; color: #6E4700; }

/* 페이지 공통 */
.page-title { font-family: 'Nanum Myeongjo', serif; font-size: 1.6rem; margin: 0 0 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-title.center { justify-content: center; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
.panel h2 { font-size: 1.08rem; margin: 6px 0 12px; }
.panel h2:not(:first-child) { margin-top: 22px; }
.panel.narrow { max-width: 440px; margin-left: auto; margin-right: auto; }
.panel.narrow-left { max-width: 440px; }
.panel.highlight { border-color: var(--gold); background: #FFF8E8; }
.kv { display: flex; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.kv > span:first-child { flex: 0 0 96px; color: var(--text-light); font-size: .9rem; }
.order-no { font-size: 1.1rem; letter-spacing: .03em; }

/* 장바구니 */
.lines { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.line { display: grid; grid-template-columns: 64px 1fr; gap: 6px 12px; padding: 14px; border-bottom: 1px solid var(--line); align-items: center; }
.line:last-child { border-bottom: 0; }
.line-img img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.line-name { font-weight: 700; color: var(--text); text-decoration: none; }
.line-opt { font-size: .85rem; color: var(--text-mid); }
.line-unit { font-size: .85rem; color: var(--text-light); }
.line-errmsg { color: var(--err); font-size: .85rem; font-weight: 700; }
.line-err { background: #FDF5F4; }
.line-qty { grid-column: 2; display: flex; align-items: center; gap: 8px; }
.line-total { grid-column: 2; font-weight: 700; }
@media (min-width: 640px) {
  .line { grid-template-columns: 64px 1fr auto 110px; }
  .line-qty, .line-total { grid-column: auto; }
  .line-total { text-align: right; }
}
.sumbox { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-top: 16px; }
.sumbox.flat { border: 0; padding: 10px 0 0; margin-top: 8px; background: none; }
.sumbox > div { display: flex; justify-content: space-between; padding: 4px 0; }
.sumbox .sum-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.sumbox .sum-total b { font-size: 1.3rem; color: var(--brown-dark); }
.sumbox p { margin: 0; text-align: right; }
.mini-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }

/* 주문서 */
.order-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
@media (min-width: 860px) { .order-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.order-grid > .panel { margin-bottom: 0; }
.bankbox { background: var(--brown-dark); color: #F3E9D6; border-radius: var(--radius); padding: 16px 18px; margin: 4px 0 14px; }
.bankbox.big { padding: 20px; margin: 18px 0; }
.bank-title { color: var(--gold-light); font-size: .85rem; letter-spacing: .1em; margin-bottom: 4px; }
.bank-acc { font-size: 1.15rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bank-acc b { font-size: 1.3rem; color: #fff; letter-spacing: .03em; }
.bank-acc .btn { min-height: 32px; padding: 4px 10px; font-size: .8rem; }
.bank-amount { margin-top: 8px; }
.bank-amount b { color: var(--gold-light); font-size: 1.3rem; }
.bank-meta { margin-top: 6px; font-size: .9rem; }
.agree { background: var(--cream); border-radius: 8px; padding: 12px 14px; margin: 14px 0 6px; font-size: .92rem; }
.agree details { margin-top: 6px; }
.agree summary { cursor: pointer; color: var(--text-light); font-size: .85rem; }
.agree p { font-size: .85rem; color: var(--text-mid); margin: 6px 0 0; }

/* 주문 완료 / 조회 */
.done { max-width: 640px; margin: 0 auto; }
.done-icon { width: 64px; height: 64px; margin: 8px auto 12px; border-radius: 50%; background: var(--gold); color: #fff; font-size: 2rem; display: flex; align-items: center; justify-content: center; }
.steps { list-style: none; display: flex; padding: 0; margin: 18px 0 14px; counter-reset: st; }
.steps li { flex: 1; text-align: center; font-size: .82rem; color: var(--text-light); position: relative; padding-top: 30px; }
.steps li::before { counter-increment: st; content: counter(st); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--cream-dark); color: var(--text-light); font-weight: 700; line-height: 24px; z-index: 1; }
.steps li::after { content: ''; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: var(--cream-dark); }
.steps li:first-child::after { display: none; }
.steps li.on { color: var(--brown-dark); font-weight: 700; }
.steps li.on::before { background: var(--gold); color: #fff; }
.steps li.on::after { background: var(--gold); }
.ok-msg { background: #EEF7F0; color: #1E5A37; padding: 12px 14px; border-radius: 8px; }

/* 상태 표시 */
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 20px; white-space: nowrap; vertical-align: middle; font-family: 'Noto Sans KR', sans-serif; letter-spacing: 0; }
.st-wait { background: #FFF1D6; color: #8A5A00; }
.st-paid { background: #E3F3E8; color: #1E6B3E; }
.st-shipping { background: #E2EEFA; color: #1D5690; }
.st-done { background: #ECE7F5; color: #4F3B85; }
.st-cancel { background: #EEE9E3; color: #6E6259; }

/* 관리자 */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; }
.stat.on { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.stat span { font-size: .85rem; color: var(--text-light); }
.stat b { font-size: 1.6rem; }
.stat small { color: var(--text-mid); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs a { padding: 6px 12px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--text-mid); font-size: .88rem; }
.tabs a.on { background: var(--brown-dark); color: var(--gold-light); border-color: var(--brown-dark); }
.search { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.search input { flex: 1 1 200px; width: auto; }
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
.tbl th, .tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.tbl th { background: var(--cream-dark); font-weight: 500; color: var(--text-mid); font-size: .85rem; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; white-space: nowrap; }
.tbl tr.dim td { opacity: .6; }
.tbl-img { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; }
.tbl .noimg.sm { width: 52px; height: 52px; }
.sort-in { width: 64px !important; padding: 6px !important; }
.actions { display: flex; gap: 4px; flex-wrap: wrap; }
.actions form { margin: 0; }
.bulk { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.bulk select { width: auto; }
.pager { display: flex; gap: 4px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.pager a { padding: 6px 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; color: var(--text); }
.pager a.on { background: var(--brown-dark); color: #fff; }
.inline-form { display: flex; gap: 8px; margin-top: 12px; }
.inline-form select { flex: 1; }
.opt-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 760px) { .opt-grid { grid-template-columns: repeat(3, 1fr); } }
.opt-box { background: var(--cream); border-radius: 8px; padding: 12px; }
.opt-box .field { margin-bottom: 8px; }
.img-list { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.img-item { width: 110px; font-size: .85rem; }
.img-item img { width: 110px; height: 110px; object-fit: cover; border-radius: 8px; margin-bottom: 4px; }
.img-item label { display: block; }

/* 아래쪽 사업자 정보 */
.footer { background: var(--brown-dark); color: #BFAE92; font-size: .82rem; padding: 26px 0 32px; }
.foot-name { font-family: 'Nanum Myeongjo', serif; color: var(--gold-light); font-size: 1.1rem; margin-bottom: 6px; }
.foot-info span { display: inline-block; margin-right: 12px; }
.foot-copy { margin-top: 8px; color: #8C7A60; }

/* 좁은 휴대폰 화면 */
@media (max-width: 520px) {
  .topbar-in { gap: 0; padding-bottom: 4px; }
  .topnav { width: 100%; justify-content: space-between; margin: 0 -8px; }
  .topnav a { padding: 6px 8px; font-size: .88rem; }
  .card-body { padding: 10px 10px 12px; }
  .card-name { font-size: .95rem; }
  .card-sum { font-size: .8rem; }
  .card-price { font-size: 1rem; }
  .panel { padding: 16px 14px; }
}
input[type=file] { font: inherit; font-size: .92rem; margin: 4px 0; }
input[type=file]::file-selector-button { font: inherit; font-weight: 700; padding: 8px 14px; margin-right: 10px; border-radius: 8px; border: 1px solid #CFBFA3; background: var(--paper); color: var(--brown-dark); cursor: pointer; }

/* ───────── 2026-10-09 컬러 디자인 + 사진 ───────── */
/* 맨 위 안내 띠 */
.announce { background: linear-gradient(90deg, var(--green), #3FA36B 35%, var(--amber) 70%, var(--coral)); color: #fff; font-size: .82rem; text-align: center; padding: 6px 0; letter-spacing: .02em; }
.announce b { color: #FFF6C9; }
.topbar { border-bottom: 3px solid transparent; border-image: linear-gradient(90deg, var(--gold), var(--amber), var(--coral), var(--gold)) 1; }

/* 사진 첫 화면 */
.hero-photo { padding: 0; min-height: 420px; display: flex; align-items: center; justify-content: center; background: #1A0F06; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: 30% 40%; transform: scale(1.03); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,10,4,.55) 0%, rgba(20,10,4,.45) 45%, rgba(20,10,4,.85) 100%); }
.hero-in { position: relative; z-index: 1; padding: 44px 18px 40px; max-width: 640px; }
.hero-photo .hero-title { font-size: clamp(2.1rem, 8vw, 3.2rem); text-shadow: 0 3px 14px rgba(0,0,0,.5); margin: 8px 0 6px; }
.hero-photo .hero-label { display: inline-block; border: 1px solid var(--gold-light); padding: 4px 16px; border-radius: 30px; background: rgba(0,0,0,.25); }
.hero-sub { margin: 0 0 14px; color: #FFE9C2; font-size: 1.02rem; }
.hero-chips { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { padding: 6px 14px; border-radius: 30px; font-weight: 700; font-size: .9rem; color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.chip-amber { background: linear-gradient(135deg, #B07A2E, #D9A44C); }
.chip-brown { background: linear-gradient(135deg, #5C3A1E, #8A5A2E); border: 1px solid #A97A45; }
.chip-green { background: linear-gradient(135deg, #1F6B43, #34A36A); }
.chip-plus { color: var(--gold-light); font-weight: 700; }
.hero-photo .hero-notice { color: #F3E9D6; background: rgba(0,0,0,.3); border-radius: 8px; padding: 6px 12px; display: inline-block; font-size: .9rem; }
.hero-btn { margin-top: 18px; padding: 12px 28px; border-radius: 30px; box-shadow: 0 4px 16px rgba(184,136,42,.5); }

/* 특징 4칸 */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: -6px 0 34px; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.feat { border-radius: var(--radius); padding: 14px 12px; display: flex; flex-direction: column; align-items: center; text-align: center; border: 1px solid transparent; }
.feat-ic { font-size: 1.6rem; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; margin-bottom: 6px; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.feat b { font-size: .98rem; }
.feat small { color: var(--text-mid); font-size: .8rem; }
.feat-green { background: var(--green-soft); border-color: #BFE0CC; } .feat-green b { color: #1F6B43; }
.feat-amber { background: var(--amber-soft); border-color: #F2D29E; } .feat-amber b { color: #9A5F10; }
.feat-coral { background: var(--coral-soft); border-color: #F1C3B3; } .feat-coral b { color: #A63E1E; }
.feat-blue { background: var(--blue-soft); border-color: #BCD8EE; } .feat-blue b { color: #1D5A8A; }

/* 섹션 제목 */
.sec-title { font-family: 'Nanum Myeongjo', serif; font-size: 1.45rem; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sec-title.light { color: #fff; }
.sec-tag { font-family: 'Noto Sans KR', sans-serif; font-size: .7rem; letter-spacing: .18em; font-weight: 700; color: #fff; padding: 4px 10px; border-radius: 20px; }
.tag-amber { background: var(--amber); } .tag-green { background: var(--green); } .tag-coral { background: var(--coral); }
.tag-blue { background: var(--blue); } .tag-plum { background: var(--plum); } .tag-gold { background: var(--gold); }

/* 상품 카드 색 띠 */
.card { border-top: 4px solid var(--gold); }
.card-c0 { border-top-color: var(--amber); } .card-c1 { border-top-color: var(--green); }
.card-c2 { border-top-color: var(--coral); } .card-c3 { border-top-color: var(--blue); }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.card-foot .card-price { margin-top: 0; }
.card-go { font-size: .8rem; font-weight: 700; color: #fff; background: var(--green); padding: 4px 10px; border-radius: 20px; }
.card-c0 .card-go { background: var(--amber); } .card-c2 .card-go { background: var(--coral); } .card-c3 .card-go { background: var(--blue); }

/* 메밀연가 이야기 사진 */
.story { margin-top: 44px; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 640px) { .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .story-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .story-wide { grid-column: span 2; grid-row: span 2; } }
.story-item { margin: 0; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 16px rgba(44,26,14,.1); display: flex; flex-direction: column; }
.story-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 960px) { .story-wide img { aspect-ratio: auto; flex: 1; min-height: 0; } }
.story-item figcaption { padding: 12px 14px 14px; font-size: .9rem; color: var(--text-mid); }
.cap-tag { display: inline-block; color: #fff; font-weight: 700; font-size: .78rem; padding: 2px 10px; border-radius: 20px; margin-right: 6px; margin-bottom: 4px; }

/* 매장 소개 */
.visit { margin-top: 44px; display: grid; grid-template-columns: minmax(0, 1fr); border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, #2C1A0E 0%, #3D2410 55%, #1F4D35 100%); color: #EDE2CF; }
@media (min-width: 760px) { .visit { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.visit-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.visit-photos img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; }
.visit-info { padding: 22px 22px 26px; }
.visit-info p { margin: 0 0 10px; }
.visit-line { font-size: .95rem; color: #fff; }
.btn-line-light { background: transparent; color: var(--gold-light); border: 1px solid var(--gold-light); margin-top: 6px; border-radius: 30px; }
.btn-line-light:hover { background: rgba(212,170,90,.15); }

/* 주문 방법 */
.howto { margin-top: 40px; }
.howto-steps { list-style: none; padding: 0; margin: 0 0 10px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 760px) { .howto-steps { grid-template-columns: repeat(3, 1fr); } }
.howto-steps li { display: flex; gap: 12px; align-items: center; border-radius: var(--radius); padding: 12px 14px; }
.howto-steps li b { flex: 0 0 36px; height: 36px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.hs1 { background: var(--amber-soft); } .hs1 b { background: var(--amber); }
.hs2 { background: var(--green-soft); } .hs2 b { background: var(--green); }
.hs3 { background: var(--blue-soft); } .hs3 b { background: var(--blue); }

/* 상품 상세: 믿음 띠 */
.pd-trust { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 30px; }
@media (min-width: 760px) { .pd-trust { grid-template-columns: repeat(3, 1fr); } }
.trust { display: flex; gap: 12px; align-items: center; border-radius: var(--radius); padding: 10px; }
.trust img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex: 0 0 64px; }
.trust b { display: block; font-size: .95rem; }
.trust small { color: var(--text-mid); font-size: .8rem; }
.trust-green { background: var(--green-soft); } .trust-green b { color: #1F6B43; }
.trust-amber { background: var(--amber-soft); } .trust-amber b { color: #9A5F10; }
.trust-blue { background: var(--blue-soft); } .trust-blue b { color: #1D5A8A; }
.pd-desc { border-top: 4px solid var(--green); }
.pd-price { color: var(--coral); }

/* 공통 페이지 제목 밑줄 · 버튼 색 */
.page-title::after { content: ""; flex-basis: 100%; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--amber), var(--green), var(--blue)); max-width: 120px; }
.page-title.center::after { margin: 0 auto; }
body.shop .btn-gold { background: linear-gradient(135deg, var(--gold), var(--amber)); border-color: var(--gold-deep); }
body.shop .btn-gold:hover { background: linear-gradient(135deg, var(--gold-deep), var(--gold)); }
.done-icon { background: linear-gradient(135deg, var(--green), #3FA36B); }
.footer { border-top: 4px solid transparent; border-image: linear-gradient(90deg, var(--green), var(--amber), var(--coral), var(--blue)) 1; }

@media (max-width: 520px) {
  .hero-photo { min-height: 380px; }
  .announce { font-size: .74rem; }
  .sec-title { font-size: 1.25rem; }
  .feat { padding: 12px 8px; }
  .feat small { font-size: .74rem; }
}
/* 첫 사진은 PC에서도 화면 가로 끝까지 */
.hero-photo { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); border-radius: 0; min-height: 460px; }
@media (min-width: 1100px) { .hero-photo { min-height: 520px; } .hero-bg { background-position: 40% 45%; } }
body.shop { overflow-x: clip; }

/* 2026-10-10: 표지는 글씨만 깔끔한 바탕, 외관 사진은 표지 아래에 따로 */
.hero-plain { min-height: 0; margin-bottom: 0; background:
  radial-gradient(circle at 12% 20%, rgba(46,139,87,.45) 0, rgba(46,139,87,0) 42%),
  radial-gradient(circle at 88% 30%, rgba(232,163,61,.45) 0, rgba(232,163,61,0) 45%),
  radial-gradient(circle at 70% 100%, rgba(217,96,59,.35) 0, rgba(217,96,59,0) 45%),
  linear-gradient(160deg, #2C1A0E 0%, #4A2D15 100%); }
.hero-plain::after { display: none; }
.hero-plain .hero-in { padding: 40px 18px 36px; }
.hero-pic { margin: 0 calc(50% - 50vw) 28px; position: relative; background: #1A0F06; }
.hero-pic img { width: 100%; height: clamp(220px, 42vw, 460px); object-fit: cover; object-position: 35% 40%; }
.hero-pic figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 16px 10px; text-align: center; color: #fff; font-size: .9rem; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.65)); }
.hero-pic + .features { margin-top: 0; }
.hero-pic figcaption { position: static; padding: 10px 16px; background: #2C1A0E; color: #F3E9D6; border-bottom: 3px solid var(--amber); }

/* 결제 방법 고르기 (카드 / 무통장, 2026-10-13) */
.pay-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 14px; }
.pay-opt { display: flex; gap: 10px; align-items: flex-start; border: 2px solid var(--line); border-radius: var(--radius); padding: 12px; background: var(--paper); cursor: pointer; }
.pay-opt input { margin-top: 4px; accent-color: var(--gold-deep); }
.pay-opt span { display: flex; flex-direction: column; gap: 2px; }
.pay-opt small { color: var(--text-light); font-size: .82rem; }
.pay-opt:has(input:checked) { border-color: var(--gold); background: var(--amber-soft); }
.pay-card { background: var(--blue-soft); border-radius: var(--radius); padding: 12px 16px; margin: 0 0 14px; }
.pay-card p { margin: 0; }
[hidden] { display: none !important; }
.check-line { display: flex; gap: 8px; align-items: center; margin: 0 0 10px; }
@media (max-width: 480px) { .pay-choice { grid-template-columns: 1fr; } }

/* 관리자 — 챗봇 안내 내용 (2026-10-14) */
.chat-help ul { margin: 8px 0 12px; padding-left: 20px; }
.chat-help li { margin: 3px 0; }
.chat-meter { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chat-meter-bar { flex: 0 1 220px; height: 8px; border-radius: 8px; background: var(--cream-dark); overflow: hidden; }
.chat-meter-bar i { display: block; height: 100%; background: var(--gold); }
.chat-add summary { list-style: none; display: inline-flex; }
.chat-add summary::-webkit-details-marker { display: none; }
.chat-add[open] summary { margin-bottom: 14px; }
.chat-item { padding: 14px 16px; }
.chat-item.is-off { opacity: .62; background: var(--cream); }
.chat-item.is-dirty { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.chat-item-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.chat-item-head .chat-title { flex: 1; font-weight: 700; font-size: 1.02rem; }
.chat-item textarea { font-size: 15px; line-height: 1.6; }
.chat-item-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.chat-item.is-dirty .chat-save::after { content: " (고친 내용 있음)"; font-weight: 500; }
.chat-tools { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.chat-test-row { display: flex; gap: 8px; }
.chat-test-row input { flex: 1; min-width: 0; }
.chat-test-a { margin-top: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; white-space: pre-wrap; line-height: 1.65; }
.chat-test-a.is-err { background: #FCEFEE; border-color: #EBC1BD; color: #8A1C15; }

/* 회원 (카카오 로그인, 2026-10-14) */
.kakao-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; margin: 16px 0;
  background: #FEE500; color: rgba(0,0,0,.85); border-radius: 12px; font-weight: 700; font-size: 1.02rem; text-decoration: none; }
.kakao-btn:hover { background: #F5DC00; }
.kakao-btn svg { width: 22px; height: 22px; fill: #000; }
.login-box p.center { text-align: center; }
.login-merit { margin: 4px 0 14px; padding: 12px 14px 12px 30px; background: var(--cream); border-radius: 10px; color: var(--text-mid); }
.login-merit li { margin: 3px 0; }
.member-note { background: var(--cream); border: 1px dashed var(--gold-light); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; font-size: .92rem; }
.link-order { margin-top: 14px; }
.link-order summary { cursor: pointer; color: var(--text-mid); font-size: .92rem; }
.link-order-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.link-order-form input { flex: 1 1 180px; width: auto; }
.link-order-form .flash { flex-basis: 100%; margin: 0; }
details.panel > summary { cursor: pointer; }
.policy h2 { margin-top: 22px; }
.policy ul { padding-left: 20px; }
.policy .tbl { min-width: 560px; }
.foot-links { margin: 8px 0 4px; }
.foot-links a { color: inherit; }
code.copyable { display: inline-block; margin: 4px 0; padding: 4px 8px; background: var(--cream-dark); border-radius: 6px; user-select: all; word-break: break-all; }
.my-orders { display: flex; flex-direction: column; gap: 8px; }
.my-order { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); text-decoration: none; }
.my-order:hover { border-color: var(--gold); }
.mo-top, .mo-main { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mo-main { margin-top: 4px; }
.panel h2.h2-first { margin-top: 6px; }
.agree-main { display: block; padding: 10px 12px; border: 2px solid var(--gold); border-radius: 8px; background: #FFF8E8; font-size: 1rem; cursor: pointer; }
.agree-main input { width: 20px; height: 20px; vertical-align: -4px; margin-right: 4px; }
#joinErr { font-weight: 700; border-width: 2px; }

/* 쇼핑몰 준비중 안내 팝업 */
.prep-pop { position: fixed; inset: 0; z-index: 2147483100; background: rgba(20, 10, 4, .6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.prep-pop[hidden] { display: none; }
.prep-box { background: #FAF6EF; border-radius: 14px; max-width: 340px; width: 100%; padding: 2rem 1.5rem 1.5rem; text-align: center; box-shadow: 0 12px 40px rgba(0, 0, 0, .35); }
.prep-title { font-family: 'Nanum Myeongjo', serif; font-size: 1.3rem; font-weight: 800; color: #2C1A0E; margin: 0 0 .6rem; }
.prep-text { font-size: .92rem; color: #5C3A1E; line-height: 1.6; margin: 0 0 1.4rem; }
.prep-box .btn { padding-left: 2.4rem; padding-right: 2.4rem; }
