/* 플라워데이 — 꽃 쇼핑몰 스타일 */
:root { --accent: #b5485d; --accent-soft: #fbeff1; --ink: #2f2a28; --muted: #8a817c; --line: #ece6e1; --bg: #fffdfb; }
* { box-sizing: border-box; }
body { margin: 0; font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 640px; }
h1 { font-size: 1.8rem; margin: 32px 0 16px; letter-spacing: -.02em; }
h2 { font-size: 1.25rem; margin: 28px 0 12px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.r { float: right; }
.big { font-size: 1.15rem; }
.config-warning { background: #c0182c; color: #fff; padding: 8px 20px; text-align: center; font-size: .9rem; }
.notice { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 10px 14px; border-radius: 6px; }
.error { color: #c0182c; background: #fdeeee; padding: 10px 14px 10px 30px; border-radius: 6px; }
p.error { padding-left: 14px; }

/* 머리 */
.top { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 10; }
.top-row { display: flex; align-items: center; gap: 28px; min-height: 64px; flex-wrap: wrap; }
.logo { font-family: Georgia, "Nanum Myeongjo", serif; font-size: 1.5rem; color: var(--accent); text-decoration: none; font-weight: 700; }
.main-nav, .user-nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.main-nav a { text-decoration: none; font-weight: 600; }
.main-nav a.on, .main-nav a:hover { color: var(--accent); }
.user-nav { margin-left: auto; font-size: .9rem; }
.user-nav a { text-decoration: none; color: var(--muted); }
.cart-link b { background: var(--accent); color: #fff; border-radius: 10px; padding: 0 7px; font-size: .78rem; }
.inline { display: inline; }

/* 버튼·입력 */
button, .button { display: inline-block; background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 8px; padding: 11px 20px; font-size: 1rem; cursor: pointer; text-decoration: none; font-family: inherit; }
button:hover, .button:hover { filter: brightness(1.05); }
button.ghost, .button.ghost { background: #fff; color: var(--accent); }
button.small, .button.small { padding: 6px 12px; font-size: .88rem; }
button.link { background: none; border: 0; color: var(--muted); padding: 0; text-decoration: underline; font-size: inherit; }
button.wide { width: 100%; margin-top: 16px; padding: 14px; font-size: 1.05rem; }
label { display: block; margin: 14px 0 4px; font-weight: 600; font-size: .95rem; }
label.check, label.choice { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
label.choice { border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin: 8px 0; background: #fff; }
input, select, textarea { width: 100%; padding: 11px 12px; border: 1px solid #d9d1cb; border-radius: 8px; font-size: 1rem; font-family: inherit; background: #fff; }
input[type=checkbox], input[type=radio] { width: auto; margin-top: 4px; }
input.short { width: 140px; }
input.qty { width: 80px; }
.row { display: flex; gap: 8px; align-items: center; }

/* 메인 */
.hero { background: radial-gradient(circle at 15% 20%, #fde4e8, transparent 45%), radial-gradient(circle at 85% 30%, #fff1d6, transparent 40%), var(--accent-soft); padding: 72px 0 64px; }
.hero.small { padding: 44px 0 36px; }
.hero h1 { font-family: Georgia, "Nanum Myeongjo", serif; font-size: 2.4rem; margin: 8px 0 14px; line-height: 1.3; }
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .04em; margin: 0; }
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 32px; }
.points div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.points p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.title { display: flex; align-items: baseline; justify-content: space-between; margin-top: 44px; }
.more { font-size: .9rem; color: var(--muted); text-decoration: none; font-weight: 400; }
.sub-band { background: #f6f9f4; border-radius: 16px; padding: 4px 24px 24px; margin-top: 44px; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.steps b { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; align-items: center; justify-content: center; margin-right: 8px; }

/* 상품 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.card { text-decoration: none; display: block; }
.card .thumb { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1; background: #f6f1ee; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .thumb img { transform: scale(1.04); }
.badge { position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff; font-size: .75rem; padding: 2px 8px; border-radius: 4px; }
.card .name { font-weight: 700; margin: 10px 0 2px; }
.card .sum { color: var(--muted); font-size: .88rem; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { margin: 0; }
.price del { color: var(--muted); font-size: .88rem; }
.price em { color: var(--accent); font-style: normal; font-weight: 700; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 16px; }
.tabs a { text-decoration: none; border: 1px solid var(--line); border-radius: 20px; padding: 6px 14px; background: #fff; }
.tabs a.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.sort { display: flex; gap: 14px; font-size: .9rem; margin-bottom: 16px; }
.sort a { text-decoration: none; color: var(--muted); }
.sort a.on { color: var(--ink); font-weight: 700; }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 32px; }
.gallery img { border-radius: 16px; width: 100%; }
.info h1 { margin-top: 4px; }
.spec { width: 100%; border-collapse: collapse; margin: 16px 0; }
.spec th, .spec td { text-align: left; padding: 9px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 34%; color: var(--muted); font-weight: 500; }
.buy { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.buy label { margin: 0; }
.detail { margin-top: 40px; border-top: 1px solid var(--line); }

/* 장바구니·주문 */
.lines { width: 100%; border-collapse: collapse; background: #fff; }
.lines th, .lines td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.lines .item { display: flex; gap: 10px; align-items: center; }
.lines .item img { width: 56px; height: 56px; border-radius: 8px; }
.lines td.r { text-align: right; float: none; }
.totals { margin-top: 20px; text-align: right; }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.summary { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; height: fit-content; position: sticky; top: 84px; }
.summary p { display: flex; justify-content: space-between; margin: 6px 0; }
.summary label.check { font-size: .88rem; }
.card-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin: 14px 0; }
.card-box p { margin: 6px 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.inline-form { display: flex; gap: 8px; margin: 16px 0; }
.empty { padding: 40px 0; text-align: center; color: var(--muted); }
.price-table { width: 100%; border-collapse: collapse; background: #fff; }
.price-table th, .price-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.info-list { padding-left: 18px; }
.info-list li { margin: 6px 0; }
.faq { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.prose h2 { font-size: 1.1rem; margin-top: 28px; }
.prose li { margin: 4px 0; }
.agree { margin-top: 14px; }
.admin .lines { font-size: .85rem; }
.admin textarea { min-width: 180px; }

/* 꼬리 */
.foot { margin-top: 72px; border-top: 1px solid var(--line); background: #faf7f4; padding: 28px 0 40px; font-size: .85rem; color: var(--muted); }
.foot-nav { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.foot-nav a { text-decoration: none; color: var(--ink); }
.biz { margin: 6px 0; line-height: 1.7; }

@media (max-width: 760px) {
    .product, .two-col { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.8rem; }
    .user-nav { margin-left: 0; width: 100%; padding-bottom: 8px; }
    .summary { position: static; }
    .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .lines th:nth-child(2), .lines td:nth-child(2) { display: none; }
}

/* ── 입력 확인·주소·달력·무통장 안내 ── */
.req { color: var(--accent); }
.sub-title { font-size: 1.05rem; margin: 26px 0 8px; }
input.invalid { border-color: #d64545 !important; background: #fff6f6; }
input.valid { border-color: #3a9a5b !important; }
.field-msg { min-height: 1.2em; margin: 2px 0 6px; font-size: .85rem; }
.field-msg.bad { color: #d64545; }
.field-msg.ok { color: #3a9a5b; }
.zip-row { display: flex; gap: 8px; }
.zip-row .zip { max-width: 140px; }
.zip-row button { white-space: nowrap; }
input[readonly] { background: #faf8f6; cursor: pointer; }
.postcode-layer { position: relative; border: 1px solid var(--line); border-radius: 8px; height: 460px; margin: 8px 0; overflow: hidden; background: #fff; }
.postcode-layer [data-postcode-embed] { height: 100%; }
.postcode-layer .close { position: absolute; right: 8px; top: 6px; z-index: 2; background: #fff; padding: 2px 8px; }
.calendar { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: #fff; max-width: 420px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.cal-nav { background: none; border: 1px solid var(--line); color: var(--ink); width: 34px; height: 34px; border-radius: 50%; padding: 0; font-size: 1.2rem; }
.cal-nav:disabled { opacity: .3; }
table.cal { width: 100%; border-collapse: collapse; text-align: center; }
table.cal th { font-size: .8rem; color: var(--muted); padding: 4px 0; font-weight: 500; }
table.cal th.sun { color: #d64545; } table.cal th.sat { color: #3b6fd1; }
table.cal td { padding: 2px; }
table.cal button { width: 100%; aspect-ratio: 1; max-width: 44px; border-radius: 50%; border: 0; padding: 0; font-size: .92rem; background: none; color: #c9c2bd; }
table.cal button.ok { color: var(--ink); background: var(--accent-soft); cursor: pointer; }
table.cal button.ok:hover { outline: 2px solid var(--accent); }
table.cal button.sel { background: var(--accent); color: #fff; font-weight: 700; }
table.cal button.closed { text-decoration: line-through; }
.cal-picked { color: var(--accent); font-weight: 700; margin-left: 6px; }
.schedule { padding-left: 0; list-style: none; margin: 6px 0 0; }
.schedule li { padding: 6px 10px; border-bottom: 1px dashed var(--line); }
.cycle-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pill input { position: absolute; opacity: 0; }
.pill span { display: flex; flex-direction: column; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 12px 4px; background: #fff; cursor: pointer; }
.pill small { color: var(--muted); font-size: .78rem; }
.pill input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.pill input:focus-visible + span { outline: 2px solid var(--accent); }
.choice-grid label.choice { display: block; }
.choice-grid label.choice input { margin-right: 6px; }
.pay-method { background: var(--accent-soft); border-radius: 8px; padding: 10px 12px; margin: 14px 0 4px; }
.deposit { border: 2px solid var(--accent); border-radius: 12px; padding: 18px 20px; margin: 16px 0; background: #fff; }
.deposit-title { font-size: 1.3rem; font-weight: 800; color: var(--accent); margin: 0 0 10px; }
.deposit-table { width: 100%; border-collapse: collapse; }
.deposit-table th { text-align: left; width: 110px; color: var(--muted); font-weight: 500; padding: 7px 0; vertical-align: top; }
.deposit-table td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.deposit .acc { font-size: 1.15rem; letter-spacing: .02em; }
.deposit .pending-acc { color: #c26a00; }
.deposit .amount { font-size: 1.2rem; color: var(--accent); }
.detail-image img { margin: 0 auto; max-width: 680px; width: 100%; }
.card.soldout img { filter: grayscale(.7); opacity: .7; }
.badge.gray { background: #777; }
.admin-thumb { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; }
.admin-thumb.small { width: 56px; height: 56px; }
.badge-inline { background: var(--accent-soft); color: var(--accent); font-size: .75rem; padding: 1px 6px; border-radius: 4px; }
tr.hl td { background: #fff8e8; }
.narrow-form { max-width: 560px; }
.product-form { max-width: 640px; }
@media (max-width: 600px) { .cycle-row { grid-template-columns: repeat(2, 1fr); } .deposit-table th { width: 90px; } }
label.check { display: block; }
label.check input { margin: 0 6px 0 0; vertical-align: -2px; }
