:root {
  --green: #5c8f25; --green-dark: #44701a; --green-light: #e7f2d6;
  --gold: #d99a16; --red: #c0392b;
  --ink: #1f2a17; --muted: #6b7262; --line: #e2e6d9; --bg: #fbfcf7; --card: #fff;
  --radius: 14px; --shadow: 0 2px 10px rgba(31, 42, 23, .07);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: -apple-system, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", system-ui, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); } h2 { font-size: 1.4rem; } h3 { font-size: 1.05rem; }
.container { max-width: 1080px; margin: 0 auto; padding: 16px; }
.muted { color: var(--muted); font-size: .92rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.eyebrow { color: var(--green-dark); font-weight: 700; letter-spacing: .04em; font-size: .85rem; margin: 0 0 .4em; }
.lead { font-size: 1.1rem; color: #3b4433; }

/* header / footer */
.site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 16px; background: rgba(251,252,247,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.1rem; }
.brand-mark { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle, #f6f2d8 0 12%, #c8e68a 13% 55%, #75a83a 56%); }
.site-nav { display: flex; gap: 14px; align-items: center; font-size: .95rem; }
.site-nav a:not(.cart-link) { display: none; }
@media (min-width: 640px) { .site-nav a:not(.cart-link) { display: inline; } }
.cart-link { background: var(--green); color: #fff; padding: 6px 12px; border-radius: 999px; font-weight: 700; }
.cart-link:hover { text-decoration: none; background: var(--green-dark); }
.cart-count { background: #fff; color: var(--green-dark); border-radius: 999px; padding: 0 7px; margin-left: 4px; font-size: .85rem; }
.site-footer { margin-top: 48px; padding: 28px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; text-align: center; }
.biz-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px; max-width: 760px; margin: 14px auto 0; font-size: .82rem; line-height: 1.7; }
.biz-info div { display: flex; gap: 6px; min-width: 0; }
.biz-info dt { font-weight: 700; }
.biz-info dd { margin: 0; overflow-wrap: anywhere; }
.biz-info a { margin-left: 4px; text-decoration: underline; }
.biz-info .tbd { color: var(--muted); opacity: .7; font-style: italic; }
.policy-links { margin: 10px 0 0; font-size: .85rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 10px;
  border: 1px solid transparent; font: inherit; font-weight: 700; cursor: pointer; background: #eef1e6; color: var(--ink); }
.btn:hover { text-decoration: none; filter: brightness(.97); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline { background: transparent; border-color: var(--line); }
.btn-disabled, .btn:disabled { background: #e6e8e1; color: #9aa092; cursor: not-allowed; }
.btn-lg { padding: 13px 24px; font-size: 1.05rem; }
.btn-sm { padding: 5px 10px; font-size: .85rem; }
.btn-block { display: flex; width: 100%; margin-top: 10px; }
.link { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; padding: 4px; }

/* hero */
.hero { display: grid; gap: 24px; align-items: center; padding: 24px 0 8px; }
@media (min-width: 760px) { .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); padding: 40px 0 16px; } }
.hero-art { position: relative; height: 220px; }
.kiwi { position: absolute; border-radius: 50%; box-shadow: var(--shadow); }
.kiwi::after { content: ""; position: absolute; inset: 14%; border-radius: 50%;
  background: radial-gradient(circle, #f6f2d8 0 10%, var(--flesh) 11% 70%, transparent 71%); }
.kiwi-green { --flesh: #a6d35a; width: 170px; height: 170px; left: 8%; top: 10%; background: #8c6f4e; }
.kiwi-gold { --flesh: #f3cf5a; width: 130px; height: 130px; left: 50%; top: 0; background: #a88a63; }
.kiwi-red { --flesh: #e86c6c; width: 110px; height: 110px; left: 62%; top: 55%; background: #8c6f4e; }

/* sections */
.section { padding: 28px 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.section-head p { margin: 0; color: var(--muted); font-size: .9rem; }
.two-col { display: grid; gap: 28px; }
@media (min-width: 760px) { .two-col { grid-template-columns: 1fr 1fr; } }
.steps { padding-left: 1.2em; } .steps li { margin: 6px 0; }
.compare { width: 100%; border-collapse: collapse; font-size: .92rem; }
.compare th, .compare td { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; }
.compare thead th { color: var(--muted); font-weight: 600; }
details { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 8px 0; background: var(--card); }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 8px 0 2px; color: #3b4433; }

/* product grid */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; }
.card-art, .detail-art { position: relative; display: grid; place-items: center; aspect-ratio: 4/3;
  background: linear-gradient(145deg, color-mix(in srgb, var(--c) 18%, #fff), color-mix(in srgb, var(--c) 45%, #fff)); }
.kiwi-slice { width: 46%; aspect-ratio: 1; border-radius: 50%; background: #8c6f4e; position: relative; box-shadow: 0 6px 14px rgba(0,0,0,.12); }
.kiwi-slice::after { content: ""; position: absolute; inset: 9%; border-radius: 50%;
  background: radial-gradient(circle, #f6f2d8 0 9%, #3a3a2a 10% 12%, color-mix(in srgb, var(--c) 55%, #fff) 13% 72%, transparent 73%); }
.kiwi-slice-lg { width: 52%; }
.badge { position: absolute; top: 10px; left: 10px; background: var(--ink); color: #fff; font-size: .75rem; font-weight: 700;
  padding: 3px 9px; border-radius: 999px; }
.badge-out { left: auto; right: 10px; background: var(--red); }
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-meta { margin: 0; color: var(--muted); font-size: .82rem; }
.price { margin: 0; font-size: 1.3rem; font-weight: 800; } .price span { font-size: .85rem; font-weight: 600; margin-left: 2px; }
.price-lg { font-size: 1.8rem; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: auto; padding-top: 6px; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.qty-btn { width: 34px; height: 36px; border: 0; background: #f3f5ee; font-size: 1.1rem; cursor: pointer; }
.qty-input { width: 46px; border: 0; text-align: center; font: inherit; -moz-appearance: textfield; }
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stock-warn { margin: 0; color: var(--red); font-size: .82rem; font-weight: 700; }

/* detail */
.crumbs { font-size: .88rem; color: var(--muted); margin: 4px 0 14px; }
.detail { display: grid; gap: 24px; }
@media (min-width: 760px) { .detail { grid-template-columns: 1fr 1fr; } }
.detail-art { border-radius: var(--radius); }
.spec { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 14px 0; font-size: .95rem; }
.spec dt { color: var(--muted); } .spec dd { margin: 0; }
.desc { color: #3b4433; }

/* cart */
.cart-view { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 14px; }
.cart-line { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line .qty { grid-column: 2; }
.cart-line .cl-remove { grid-column: 3; justify-self: end; }
.cart-line.over { background: #fff4f2; }
@media (min-width: 640px) { .cart-line { grid-template-columns: 48px 1fr auto auto auto; } .cart-line .qty, .cart-line .cl-remove { grid-column: auto; } }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.cl-name { display: flex; flex-direction: column; } .cl-name small { color: var(--muted); }
.cl-total { white-space: nowrap; }
.cart-summary { margin-top: 16px; background: var(--green-light); border-radius: var(--radius); padding: 16px; max-width: 480px; }
.cart-summary .row { display: flex; justify-content: space-between; padding: 4px 0; }
.cart-summary .total { border-top: 1px solid rgba(0,0,0,.1); margin-top: 8px; padding-top: 10px; font-size: 1.15rem; }
.cart-view.compact .cart-line { padding: 8px 0; }

/* checkout */
.checkout { display: grid; gap: 24px; }
@media (min-width: 860px) { .checkout { grid-template-columns: 1.1fr .9fr; align-items: start; } }
.order-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 16px; background: var(--card); }
legend { font-weight: 700; padding: 0 6px; }
.order-form label { display: block; margin: 10px 0; font-size: .92rem; font-weight: 600; }
.order-form input { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; font: inherit; border: 1px solid #cdd3c2; border-radius: 10px; }
.order-form input:focus { outline: 2px solid var(--green); border-color: transparent; }
.bank { font-weight: 700; background: #fff8e2; border: 1px dashed #e4c56a; border-radius: 10px; padding: 10px 12px; margin: 6px 0; }
.bank-lg { font-size: 1.15rem; }
.form-error { color: var(--red); font-weight: 700; background: #fff4f2; border-radius: 10px; padding: 10px 12px; }
.order-aside h2 { font-size: 1.1rem; }

/* order done */
.done { max-width: 640px; margin: 20px auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.order-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .95rem; }
.order-table th, .order-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.order-table .num, .num { text-align: right; white-space: nowrap; }
.order-table tfoot td { color: var(--muted); } .order-table tfoot .total td { color: var(--ink); font-weight: 800; font-size: 1.05rem; }

/* admin */
.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.admin-nav a { margin-left: 12px; padding: 6px 10px; border-radius: 8px; } .admin-nav a.active { background: var(--green-light); font-weight: 700; }
.filters a { display: inline-block; margin: 0 8px 8px 0; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; background: #fff; }
.filters a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; background: #fff; }
.admin-table th, .admin-table td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.admin-table thead th { background: #f3f5ee; font-weight: 700; }
.admin-table input[type=number] { width: 90px; } .admin-table input[type=text] { width: 90px; }
.admin-table input { padding: 5px 7px; border: 1px solid #cdd3c2; border-radius: 6px; font: inherit; }
.admin-table tr.inactive { opacity: .55; }
.admin-table tr.st-pending td:first-child { border-left: 4px solid var(--gold); }
.admin-table tr.st-paid td:first-child { border-left: 4px solid var(--green); }
.admin-table tr.st-cancelled { opacity: .55; }
.inline-form { display: flex; gap: 6px; } .inline-form select { font: inherit; padding: 4px; border-radius: 6px; border: 1px solid #cdd3c2; }
@media (max-width: 760px) { .admin-table { display: block; overflow-x: auto; } }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 600; transition: .2s; z-index: 20; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* photos */
.hero-photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(31, 42, 23, .18); aspect-ratio: 4/3; background: var(--green-light); }
.hero-photo img { max-width: 100%; width: 100%; height: 100%; object-fit: cover; object-position: 40% 60%; display: block; }
@media (max-width: 759px) { .hero-photo { aspect-ratio: 16/9; order: -1; } }
.card-art img, .detail-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.card-art { overflow: hidden; }
.card-art .badge, .detail-art .badge { z-index: 1; }
.card:hover .card-art img { transform: scale(1.04); }
.detail-art { aspect-ratio: 1; overflow: hidden; }
.cl-thumb { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; display: block; background: var(--green-light); }
.varieties { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.varieties figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; box-shadow: var(--shadow); }
.varieties img { width: 100%; height: 100%; object-fit: cover; display: block; }
.varieties figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; color: #fff; font-size: .85rem;
  background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.varieties figcaption strong { display: block; font-size: 1.05rem; }
@media (max-width: 520px) { .varieties figcaption { font-size: .75rem; padding: 20px 8px 8px; } .varieties figcaption strong { font-size: .92rem; } }
.admin-photo { width: 120px; } .admin-photo img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; display: block; margin-bottom: 4px; }
.admin-photo input[type=file] { width: 110px; font-size: .75rem; }

/* persimmon (태추단감) */
:root { --orange: #e07b1f; --orange-dark: #b85f0f; --orange-light: #fdf0e2; }
.hero-text .btn-lg + .btn-lg { margin-left: 8px; }
.feature { display: grid; gap: 0; background: var(--orange-light); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); padding: 0; margin: 12px 0; }
.feature-photo { margin: 0; aspect-ratio: 2400/627; background: #fff; }
.feature-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-body { padding: 20px 22px 24px; }
.feature-body h2 { font-size: 1.6rem; color: var(--orange-dark); }
.feature-body p { margin: 0 0 .8em; color: #4a3b2c; }
.eyebrow-orange { color: var(--orange-dark); }
.facts { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.facts li { background: #fff; border-radius: 10px; padding: 10px 8px; text-align: center; font-weight: 700; }
.facts span { display: block; font-size: .75rem; font-weight: 600; color: var(--muted); }
@media (max-width: 520px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.btn-orange { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-orange:hover { background: var(--orange-dark); text-decoration: none; }
.price-tbd { color: var(--orange-dark); font-size: 1.1rem; }
.price-lg.price-tbd { font-size: 1.5rem; }
.card-art img[src*="persimmon"] { object-position: 50% 20%; }
#sum-ship-hint .ship-note, #sum-ship-hint .ship-row { display: block; }
#sum-ship-hint .ship-note { color: var(--orange-dark); font-weight: 600; margin-bottom: 2px; }
/* 배송 조회 */
.tracking { margin: 18px 0; padding: 14px 16px; background: #f6f9f0; border: 1px solid var(--line); border-radius: 12px; }
.tracking h2 { font-size: 1.1rem; margin-bottom: 8px; }
.tracking-list { list-style: none; padding: 0; margin: 0 0 6px; }
.tracking-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tracking-list li:last-child { border-bottom: 0; }
.tracking-list .mono { display: block; color: var(--muted); font-size: .9rem; }
.track-form { margin: 14px 0; }
.admin-tracking { min-width: 230px; }
.admin-tracking .trk { display: flex; gap: 6px; align-items: baseline; font-size: .85rem; margin-bottom: 4px; }
.trk-form { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.trk-form select, .trk-form input { font: inherit; font-size: .82rem; padding: 4px 6px; border: 1px solid #cdd3c2; border-radius: 6px; }

/* 결제 방법 (네이버페이 / 무통장입금): 라디오 점은 숨기고 버튼 전체가 선택 상태를 보여준다 */
.order-form .pay-option { display: flex; align-items: center; gap: 10px; margin: 8px 0; padding: 14px 16px;
  border: 2px solid var(--line); border-radius: 12px; background: #f3f4ef; color: var(--muted); cursor: pointer;
  transition: background .15s, border-color .15s, color .15s; }
.order-form .pay-option input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.pay-option strong { color: inherit; }
.pay-option small { display: block; font-weight: 500; color: inherit; opacity: .85; }
.pay-option:hover { border-color: #b9c2a8; }
.pay-option:has(input:focus-visible) { outline: 3px solid #9cc7ff; outline-offset: 2px; }
.pay-option .npay-mark { background: #b7bdb0; color: #fff; }
/* 선택됨 */
.pay-option:has(input:checked) { background: var(--green); border-color: var(--green-dark); color: #fff; }
.pay-option:has(input[value="naverpay"]:checked) { background: #03c75a; border-color: #02a84c; }
.pay-option:has(input:checked) .npay-mark { background: #fff; color: #03c75a; }
.npay-mark { display: inline-block; background: #03c75a; color: #fff; font-weight: 800; border-radius: 6px;
  padding: 0 6px; margin-right: 4px; letter-spacing: -.02em; }
.btn-npay { background: #03c75a; color: #fff; margin: 8px 0 14px; }
.btn-npay:hover { background: #02b351; }
.btn-npay .npay-mark { background: #fff; color: #03c75a; }
.test-note { font-size: .85rem; color: #8a5a00; background: #fff8e2; border-radius: 8px; padding: 6px 10px; margin: 4px 0 8px; }
.bank-fields[hidden] { display: none; }
.warn { color: var(--red); }

/* 주소 검색 */
.addr-block { margin: 10px 0; }
.addr-title { display: block; font-size: .92rem; font-weight: 600; margin-bottom: 4px; }
.addr-row { display: flex; gap: 8px; align-items: stretch; }
.addr-row .zip-input { flex: 0 0 9em; margin-top: 0; }
.addr-row .btn { white-space: nowrap; }
.addr-block > input { margin-top: 8px; }
.addr-help { margin: 6px 0 0; font-size: .82rem; }
.addr-layer { margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.addr-layer-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; background: #f3f5ee; }
.addr-embed { height: 440px; }

/* 구글 로그인 */
.btn-google { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: #1f1f1f;
  border: 1px solid #dadce0; font-weight: 600; }
.btn-google:hover { background: #f7f8f8; text-decoration: none; }
.login-box { max-width: 460px; text-align: center; }
.login-box .btn { margin-top: 10px; }
.login-note { margin-top: 14px; font-size: .82rem; }
.login-hint { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
  background: #f3f8ea; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; font-size: .92rem; }
.login-hint.ok { color: var(--green-dark); }
.user-link { font-weight: 600; }
@media (max-width: 639px) { .site-nav a.user-link { display: inline; } }
