:root {
  --ink: #1d2922;
  --ink-2: #304039;
  --leaf: #2f6e4f;
  --leaf-dark: #24563f;
  --coral: #d95743;
  --coral-dark: #b84032;
  --harvest: #e4b63f;
  --paper: #f7f7f3;
  --surface: #ffffff;
  --surface-2: #f0f2ed;
  --line: #dfe4dc;
  --line-dark: #cbd2c8;
  --muted: #68756e;
  --danger: #b83a31;
  --success: #256a49;
  --focus: #1769aa;
  --shadow: 0 12px 30px rgba(29, 41, 34, 0.08);
  --container: 1240px;
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
body.admin-body { background: #f2f4f0; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { width: 1.15em; height: 1.15em; stroke-width: 1.8; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.22; letter-spacing: 0; }
button { border: 0; cursor: pointer; }
button:disabled, .button:disabled { cursor: not-allowed; opacity: 0.5; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--focus) 45%, transparent); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 2000; padding: 10px 16px; background: var(--ink); color: white; border-radius: 4px; }
.skip-link:focus { top: 12px; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.container.narrow { max-width: 1080px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; letter-spacing: 0; }
.break-all { word-break: break-all; }

.notice-bar { height: 34px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 0 20px; background: var(--ink); color: #f4f7f2; font-size: 12px; font-weight: 650; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.header-inner { width: min(calc(100% - 40px), var(--container)); min-height: 78px; margin: auto; display: grid; grid-template-columns: 260px minmax(280px, 560px) 1fr; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; }
.brand-mark { width: 42px; height: 42px; flex: none; display: grid; place-items: center; background: var(--coral); color: white; border: 2px solid var(--ink); border-radius: 50% 50% 46% 46%; transform: rotate(-4deg); }
.brand-mark svg { width: 23px; height: 23px; stroke-width: 2.3; transform: rotate(4deg); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { font-family: Georgia, "Times New Roman", serif; font-size: 16px; letter-spacing: 0.04em; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 650; }
.header-search { height: 44px; display: grid; grid-template-columns: 20px 1fr 34px; align-items: center; gap: 8px; padding: 0 6px 0 14px; background: var(--surface-2); border: 1px solid transparent; border-radius: 6px; }
.header-search:focus-within { background: white; border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(47, 110, 79, .1); }
.header-search > svg { color: var(--muted); }
.header-search input { min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.header-search input::placeholder { color: #87928c; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 20px; }
.header-action { position: relative; min-width: 52px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink-2); font-size: 11px; font-weight: 650; }
.header-action > svg, .header-action .icon-wrap > svg { width: 22px; height: 22px; }
.icon-wrap { position: relative; line-height: 0; }
.cart-badge { position: absolute; top: -8px; right: -11px; min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; border-radius: 10px; background: var(--coral); color: white; font-size: 10px; line-height: 1; }
.category-nav { border-top: 1px solid #eef0ec; }
.category-nav-inner { width: min(calc(100% - 40px), var(--container)); height: 46px; margin: auto; display: flex; align-items: stretch; gap: 30px; overflow-x: auto; scrollbar-width: none; }
.category-nav-inner::-webkit-scrollbar { display: none; }
.category-nav a { position: relative; flex: none; display: grid; place-items: center; color: #4f5d56; font-size: 13px; font-weight: 650; }
.category-nav a:hover, .category-nav a.active { color: var(--leaf-dark); }
.category-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--leaf); }

.icon-button { width: 36px; height: 36px; display: inline-grid; place-items: center; flex: none; border: 1px solid transparent; border-radius: 6px; background: transparent; color: currentColor; }
.icon-button:hover { background: var(--surface-2); border-color: var(--line); }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border: 1px solid transparent; border-radius: 6px; font-size: 14px; font-weight: 750; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s, transform .15s; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--leaf); color: white; border-color: var(--leaf); }
.button.primary:hover { background: var(--leaf-dark); border-color: var(--leaf-dark); }
.button.secondary { background: white; color: var(--ink); border-color: var(--line-dark); }
.button.secondary:hover { background: var(--surface-2); }
.button.full { width: 100%; }
.button.grow { flex: 1; }
.button.large { min-height: 52px; font-size: 15px; }
.button.small { min-height: 36px; padding: 0 12px; font-size: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--leaf-dark); font-size: 13px; font-weight: 750; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.flash-stack { position: fixed; top: 130px; left: 50%; z-index: 500; width: min(calc(100% - 32px), 520px); transform: translateX(-50%); display: grid; gap: 8px; pointer-events: none; }
.flash { min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: white; border: 1px solid var(--line); border-left: 4px solid var(--ink); border-radius: 6px; box-shadow: var(--shadow); font-size: 14px; font-weight: 650; pointer-events: auto; animation: flash-in .2s ease-out; }
.flash.success { border-left-color: var(--success); }
.flash.error { border-left-color: var(--danger); }
.flash.success svg { color: var(--success); }
.flash.error svg { color: var(--danger); }
@keyframes flash-in { from { opacity: 0; transform: translateY(-6px); } }

.store-hero { position: relative; height: 390px; overflow: hidden; background: #33463b; color: white; }
.store-hero > img { width: 100%; height: 100%; object-fit: cover; object-position: center 52%; }
.store-hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21,33,27,.88) 0%, rgba(21,33,27,.62) 43%, rgba(21,33,27,.08) 72%); }
.store-hero-content { position: absolute; inset: 0; width: min(calc(100% - 40px), var(--container)); margin: auto; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.store-hero .eyebrow { color: #f1cf69; }
.store-hero h1 { margin: 10px 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: 42px; font-weight: 700; }
.store-hero p { max-width: 480px; margin-bottom: 24px; color: #ecf0ec; font-size: 16px; }
.store-hero .button { background: var(--harvest); border-color: var(--harvest); color: var(--ink); }
.store-hero .button:hover { background: #f0c957; border-color: #f0c957; }
.eyebrow { display: block; color: var(--coral-dark); font-size: 11px; font-weight: 850; letter-spacing: .12em; }
.category-showcase { position: relative; padding-top: 42px; }
.category-showcase::before { content: ""; position: absolute; right: 0; top: 14px; width: 330px; height: 95px; background: url("/static/images/produce-pattern.svg") right center / contain no-repeat; opacity: .55; pointer-events: none; }
.category-showcase > * { position: relative; z-index: 1; }
.section-heading { margin-bottom: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-heading.compact { margin-bottom: 16px; }
.section-heading h2 { margin: 5px 0 0; font-size: 27px; }
.section-heading p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.result-count { flex: none; color: var(--muted); font-size: 13px; }
.category-chips { display: flex; gap: 9px; padding-bottom: 5px; overflow-x: auto; scrollbar-width: thin; }
.category-chip { min-width: 104px; height: 78px; flex: 1 0 104px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--ink-2); font-size: 12px; font-weight: 700; }
.category-chip svg { width: 22px; height: 22px; color: var(--leaf); }
.category-chip:hover, .category-chip.selected { border-color: var(--leaf); background: #eef5f0; color: var(--leaf-dark); }
.product-section { padding-top: 50px; padding-bottom: 90px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 18px; }
.product-card { position: relative; min-width: 0; background: transparent; }
.product-image { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: #e8ece6; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.product-card:hover .product-image img { transform: scale(1.025); }
.discount-badge, .sold-out { position: absolute; left: 10px; top: 10px; min-height: 28px; display: grid; place-items: center; padding: 3px 9px; border-radius: 4px; background: var(--coral); color: white; font-size: 12px; font-weight: 800; }
.sold-out { background: rgba(29,41,34,.88); }
.product-card-body { position: relative; padding: 13px 48px 0 2px; min-height: 164px; }
.product-origin { color: var(--leaf-dark); font-size: 11px; font-weight: 750; }
.product-card h3 { margin: 4px 0 6px; font-size: 17px; }
.product-card h3 a:hover { color: var(--leaf); }
.product-card p { min-height: 38px; margin-bottom: 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.price-row { display: flex; align-items: baseline; gap: 7px; }
.price-row strong { font-size: 17px; }
.price-row del { color: #949d98; font-size: 12px; }
.add-cart-button { position: absolute; right: 0; bottom: 0; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-dark); border-radius: 50%; background: white; color: var(--ink); }
.add-cart-button span { display: none; }
.add-cart-button:hover { background: var(--leaf); border-color: var(--leaf); color: white; }

.breadcrumbs { min-height: 60px; display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.breadcrumbs svg { width: 13px; height: 13px; }
.breadcrumbs a:hover { color: var(--leaf); }
.product-detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); gap: 58px; padding-bottom: 64px; }
.product-detail-image { overflow: hidden; aspect-ratio: 1; border-radius: 8px; background: #e7ebe5; }
.product-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-info { align-self: center; }
.product-detail-info h1 { margin: 7px 0 10px; font-size: 34px; }
.product-lead { margin-bottom: 22px; color: var(--muted); font-size: 15px; }
.detail-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 28px; }
.detail-price strong { font-size: 30px; }
.detail-price del { color: #8b9690; font-size: 15px; }
.product-facts { margin: 0 0 26px; border-top: 1px solid var(--line); }
.product-facts div { display: grid; grid-template-columns: 100px 1fr; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.product-facts dt { color: var(--muted); }
.product-facts dd { margin: 0; font-weight: 650; }
.purchase-form > label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 750; }
.purchase-controls { display: flex; gap: 10px; }
.quantity-input { width: 80px; min-height: 50px; padding: 0 12px; border: 1px solid var(--line-dark); border-radius: 6px; background: white; text-align: center; }
.trust-list { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 11px; font-weight: 650; }
.trust-list span { display: inline-flex; align-items: center; gap: 5px; }
.trust-list svg { color: var(--leaf); }
.product-description { max-width: 820px; margin: 0 auto; padding: 72px 40px; text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.product-description h2 { margin: 8px 0 16px; font-size: 28px; }
.product-description p { margin: 0; color: var(--muted); line-height: 1.9; }
.related-products { padding: 70px 0 100px; }

.commerce-page { padding-top: 50px; padding-bottom: 100px; }
.page-title { margin-bottom: 28px; }
.page-title h1 { margin: 6px 0 0; font-size: 32px; }
.commerce-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 36px; }
.cart-list { min-width: 0; }
.cart-item { position: relative; display: grid; grid-template-columns: 112px 1fr 84px 110px 34px; align-items: center; gap: 20px; min-height: 146px; padding: 16px 0; border-top: 1px solid var(--line); }
.cart-item:last-of-type { border-bottom: 1px solid var(--line); }
.cart-item-image { width: 112px; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: #e7ebe5; }
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-main h2 { margin: 3px 0; font-size: 17px; }
.cart-item-main p { margin: 0; color: var(--muted); font-size: 12px; }
.quantity-field { display: grid; gap: 4px; color: var(--muted); font-size: 11px; }
.quantity-field input { width: 76px; height: 38px; padding: 0 8px; border: 1px solid var(--line-dark); border-radius: 5px; background: white; text-align: center; }
.cart-line-price { text-align: right; font-size: 15px; }
.cart-remove { color: var(--muted); }
.cart-list-footer { padding-top: 18px; display: flex; justify-content: space-between; align-items: center; }
.order-summary { position: sticky; top: 176px; padding: 24px; border: 1px solid var(--line-dark); border-radius: 8px; background: white; box-shadow: 0 8px 24px rgba(29,41,34,.05); }
.order-summary h2 { margin-bottom: 20px; font-size: 19px; }
.order-summary dl { margin: 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.order-summary dl div, .summary-total { display: flex; justify-content: space-between; gap: 20px; }
.order-summary dl div + div { margin-top: 8px; }
.order-summary dt, .order-summary dd { margin: 0; font-size: 13px; }
.order-summary dt { color: var(--muted); }
.summary-total { align-items: baseline; padding: 20px 0; }
.summary-total span { font-size: 13px; font-weight: 750; }
.summary-total strong { color: var(--coral-dark); font-size: 22px; }
.summary-total.prominent { margin: 8px 0 4px; border-top: 1px solid var(--line); }
.shipping-progress, .secure-note { display: flex; align-items: center; gap: 7px; margin: -4px 0 16px; color: var(--leaf-dark); font-size: 11px; font-weight: 650; }
.secure-note { justify-content: center; margin: 12px 0 0; color: var(--muted); }
.summary-items { display: grid; gap: 10px; margin-bottom: 16px; }
.summary-items > div { display: flex; justify-content: space-between; gap: 14px; color: var(--ink-2); font-size: 12px; }
.summary-items span { min-width: 0; }
.summary-items small { display: block; color: var(--muted); }
.summary-items strong { flex: none; }
.checkout-steps { width: min(100%, 500px); margin: 0 auto 48px; display: flex; justify-content: center; align-items: center; gap: 14px; color: #8a948f; font-size: 12px; font-weight: 700; }
.checkout-steps > svg { width: 14px; }
.checkout-steps span { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.checkout-steps b { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--line-dark); border-radius: 50%; background: white; font-size: 11px; }
.checkout-steps .active { color: var(--ink); }
.checkout-steps .active b { background: var(--ink); border-color: var(--ink); color: white; }
.checkout-steps .done { color: var(--leaf); }
.checkout-steps .done b { background: var(--leaf); border-color: var(--leaf); color: white; }
.form-section { padding: 28px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { min-width: 0; display: grid; gap: 7px; color: var(--ink-2); font-size: 12px; font-weight: 700; }
.field.full { grid-column: 1 / -1; }
.field.postal { max-width: 220px; }
.field > span b, .required-mark { color: var(--coral-dark); }
.field input, .field select, .field textarea, .admin-search input, .category-edit-row input {
  width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-dark); border-radius: 5px; background: white; color: var(--ink); outline: 0;
}
.field textarea { resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus, .admin-search input:focus, .category-edit-row input:focus { border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(47,110,79,.1); }
.field input::placeholder, .field textarea::placeholder { color: #9aa39e; font-weight: 450; }
.demo-banner { max-width: 680px; min-height: 58px; margin: -20px auto 38px; padding: 11px 16px; display: flex; align-items: center; justify-content: center; gap: 12px; background: #fff5dc; border: 1px solid #efd37d; border-radius: 6px; color: #5a4610; }
.demo-banner > svg { width: 23px; height: 23px; }
.demo-banner div { display: grid; }
.demo-banner strong { font-size: 13px; }
.demo-banner span { font-size: 11px; }
.payment-panel { padding: 28px; }
.test-card-note { min-height: 48px; display: grid; grid-template-columns: 1fr auto 36px; align-items: center; gap: 10px; margin-bottom: 20px; padding: 6px 8px 6px 14px; border: 1px dashed #ddb749; background: #fff9e9; border-radius: 5px; font-size: 12px; }
.test-card-note span { color: var(--muted); font-weight: 650; }
.test-card-note strong { font-family: ui-monospace, monospace; font-size: 13px; }
.card-preview { aspect-ratio: 1.66; max-width: 410px; margin: 0 auto 26px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 8px; background: var(--ink); color: white; box-shadow: 0 16px 35px rgba(20,31,25,.18); }
.card-preview-top, .card-preview > div:last-child { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 750; }
.card-preview > strong { font-family: ui-monospace, monospace; font-size: 20px; letter-spacing: .08em; }
.payment-fields { margin-top: 8px; }
.consent-row { min-height: 46px; margin-top: 20px; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: var(--surface-2); border-radius: 5px; font-size: 12px; }
.consent-row input { width: 18px; height: 18px; accent-color: var(--leaf); }
.order-number { display: block; margin-bottom: 8px; color: var(--muted); font-family: ui-monospace, monospace; font-size: 11px; }
.completion-page { padding-top: 55px; padding-bottom: 100px; }
.completion-heading { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.completion-icon { width: 62px; height: 62px; margin: 0 auto 15px; display: grid; place-items: center; border-radius: 50%; background: #e7f3ea; color: var(--leaf); }
.completion-icon svg { width: 32px; height: 32px; }
.completion-heading h1 { margin: 8px 0 10px; font-size: 34px; }
.completion-heading p { margin-bottom: 16px; color: var(--muted); }
.order-number-large { padding: 6px 12px; background: var(--surface-2); border-radius: 4px; font-family: ui-monospace, monospace; font-size: 13px; }
.completion-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; }
.info-section { padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.info-section h2 { margin-bottom: 18px; font-size: 17px; }
.complete-item { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.complete-item small { display: block; color: var(--muted); }
.complete-total { display: flex; justify-content: space-between; padding-top: 18px; font-size: 14px; }
.complete-total strong { color: var(--coral-dark); font-size: 18px; }
.order-info { margin: 0; display: grid; gap: 13px; }
.order-info div { display: grid; grid-template-columns: 80px 1fr; gap: 10px; font-size: 12px; }
.order-info dt { color: var(--muted); }
.order-info dd { margin: 0; font-weight: 650; }
.completion-actions { margin-top: 32px; text-align: center; }
.empty-state { min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; border: 1px dashed var(--line-dark); border-radius: 8px; background: rgba(255,255,255,.55); text-align: center; }
.empty-state > svg { width: 42px; height: 42px; margin-bottom: 16px; color: var(--muted); }
.empty-state h2, .empty-state h3, .empty-state h1 { margin-bottom: 8px; }
.empty-state p { color: var(--muted); }
.error-state { margin: 60px 0 100px; }
.error-code { font-family: Georgia, serif; color: var(--coral); font-size: 64px; font-weight: 800; }

.site-footer { background: var(--ink); color: #e9eee9; }
.footer-inner { width: min(calc(100% - 40px), var(--container)); margin: auto; padding: 52px 0 42px; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 50px; }
.footer-brand .brand-mark { border-color: #e9eee9; }
.footer-brand .brand-copy small { color: #aab6af; }
.footer-inner p { margin: 14px 0 0; color: #aab6af; font-size: 13px; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 12px; }
.footer-links strong { margin-bottom: 4px; color: white; font-size: 13px; }
.footer-links a, .footer-links span { color: #aab6af; }
.footer-links a:hover { color: white; }
.footer-bottom { min-height: 48px; display: grid; place-items: center; border-top: 1px solid #35463d; color: #819089; font-size: 11px; }

/* Admin */
.admin-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 200; width: 244px; display: flex; flex-direction: column; padding: 24px 16px 16px; background: var(--ink); color: white; }
.admin-brand { margin: 0 10px 34px; }
.admin-brand .brand-mark { width: 38px; height: 38px; border-color: white; }
.admin-brand .brand-copy small { color: #a7b4ac; }
.admin-nav { display: grid; gap: 5px; }
.admin-nav a, .admin-sidebar-footer a, .admin-sidebar-footer button { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border-radius: 5px; background: transparent; color: #b9c4bd; font-size: 13px; font-weight: 700; text-align: left; }
.admin-nav a:hover, .admin-nav a.active, .admin-sidebar-footer a:hover, .admin-sidebar-footer button:hover { background: #304239; color: white; }
.admin-nav a.active { box-shadow: inset 3px 0 var(--harvest); }
.admin-nav svg, .admin-sidebar-footer svg { width: 19px; height: 19px; }
.admin-sidebar-footer { margin-top: auto; padding-top: 14px; border-top: 1px solid #35473e; }
.admin-sidebar-footer form { margin-top: 2px; }
.admin-shell { min-height: 100vh; margin-left: 244px; }
.admin-topbar { position: sticky; top: 0; z-index: 80; min-height: 64px; display: flex; align-items: center; justify-content: flex-end; padding: 0 30px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.admin-topbar > div { display: flex; align-items: center; gap: 12px; }
.admin-topbar strong { font-size: 13px; }
.admin-topbar span { padding-left: 12px; border-left: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.admin-menu-button { display: none; margin-right: auto; }
.admin-main { width: min(calc(100% - 60px), 1360px); margin: auto; padding: 40px 0 80px; }
.admin-flashes { top: 76px; }
.admin-page-heading { min-height: 80px; margin-bottom: 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.admin-page-heading h1 { margin: 5px 0 4px; font-size: 28px; }
.admin-page-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.metric { min-height: 112px; display: flex; align-items: center; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.metric-icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 6px; }
.metric-icon.green { background: #e7f3ea; color: var(--leaf); }
.metric-icon.coral { background: #f9e7e3; color: var(--coral-dark); }
.metric-icon.yellow { background: #fff4d8; color: #8a6815; }
.metric-icon.ink { background: #e8ece9; color: var(--ink); }
.metric-icon svg { width: 22px; height: 22px; }
.metric > div { min-width: 0; display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.metric small { width: 100%; color: var(--muted); font-size: 11px; }
.metric strong { font-size: 26px; line-height: 1.15; }
.metric strong.metric-money { font-size: 20px; }
.metric span { color: var(--muted); font-size: 11px; }
.admin-dashboard-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
.admin-panel { min-width: 0; border: 1px solid var(--line); border-radius: 7px; background: white; }
.panel-heading { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 0 0 3px; font-size: 16px; }
.panel-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.count-pill { min-width: 28px; height: 28px; display: grid; place-items: center; padding: 0 8px; border-radius: 14px; background: #fff0ed; color: var(--coral-dark); font-size: 12px; font-weight: 800; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { height: 44px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #f8f9f7; color: var(--muted); font-size: 10px; font-weight: 800; text-align: left; white-space: nowrap; }
td { min-height: 56px; padding: 12px 14px; border-bottom: 1px solid #edf0eb; vertical-align: middle; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbf9; }
.table-link { color: var(--leaf-dark); font-weight: 750; }
.table-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.status-badge { min-height: 25px; display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 4px; background: #eef0ed; color: var(--ink-2); font-size: 10px; font-weight: 800; white-space: nowrap; }
.status-badge.paid, .status-badge.preparing, .status-badge.delivered { background: #e5f3e9; color: #256343; }
.status-badge.shipping { background: #e5eef8; color: #275c8a; }
.status-badge.cancelled { background: #f2e8e6; color: #92382f; }
.status-badge.pending { background: #fff2d4; color: #745814; }
.status-badge.large { min-height: 34px; padding: 5px 12px; font-size: 12px; }
.stock-list { padding: 4px 20px 12px; }
.stock-list a { min-height: 55px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid #edf0eb; font-size: 12px; }
.stock-list a:last-child { border-bottom: 0; }
.stock-list a:hover strong:first-child { color: var(--leaf); }
.stock-list span { min-width: 0; }
.stock-list small { display: block; color: var(--muted); }
.stock-list > a > strong { min-width: 28px; color: #886914; font-size: 15px; text-align: right; }
.danger { color: var(--danger) !important; }
.panel-empty { min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; }
.panel-empty.compact { min-height: 180px; }
.panel-empty svg { width: 30px; height: 30px; margin-bottom: 8px; }
.panel-empty p { margin: 0; }
.panel-toolbar { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.admin-search { width: min(100%, 430px); display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 8px; }
.admin-search > svg { color: var(--muted); }
.admin-search input { min-height: 38px; }
.table-product { display: flex; align-items: center; gap: 11px; }
.table-product img { width: 48px; height: 48px; flex: none; object-fit: cover; border-radius: 5px; background: var(--surface-2); }
.table-product span { min-width: 0; display: grid; }
.table-product strong { font-size: 12px; }
.table-product small { color: var(--muted); }
.stock-value { min-width: 34px; display: inline-block; font-weight: 800; }
.stock-value.warning { color: #876714; }
.product-edit-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 18px; }
.form-column { min-width: 0; display: grid; gap: 18px; }
.form-column.side { position: sticky; top: 82px; }
.form-panel { padding-bottom: 22px; }
.form-panel > .form-grid, .form-panel > .field, .form-panel > .stack-form { padding: 20px 20px 0; }
.input-suffix { display: grid; grid-template-columns: 1fr 40px; align-items: stretch; }
.input-suffix input { border-radius: 5px 0 0 5px; }
.input-suffix span { display: grid; place-items: center; border: 1px solid var(--line-dark); border-left: 0; border-radius: 0 5px 5px 0; background: var(--surface-2); color: var(--muted); font-size: 11px; }
.image-uploader { position: relative; aspect-ratio: 1; margin: 20px 20px 16px; display: grid; place-items: center; overflow: hidden; border: 1px dashed var(--line-dark); border-radius: 7px; background: var(--surface-2); cursor: pointer; }
.image-uploader:hover { border-color: var(--leaf); background: #edf4ef; }
.image-uploader > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.image-uploader > img:not([hidden]) + .upload-placeholder { opacity: 0; }
.image-uploader:hover > img:not([hidden]) + .upload-placeholder { opacity: 1; background: rgba(29,41,34,.78); color: white; }
.upload-placeholder { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; transition: opacity .15s; }
.upload-placeholder svg { width: 30px; height: 30px; color: var(--leaf); }
.upload-placeholder strong { font-size: 13px; }
.upload-placeholder small { color: var(--muted); font-size: 10px; }
.image-uploader:hover > img:not([hidden]) + .upload-placeholder svg, .image-uploader:hover > img:not([hidden]) + .upload-placeholder small { color: white; }
.image-uploader input { position: absolute; opacity: 0; pointer-events: none; }
.switch-row { min-height: 68px; display: flex; align-items: center; gap: 12px; padding: 10px 20px; border-bottom: 1px solid var(--line); cursor: pointer; }
.switch-row > span:first-child { min-width: 0; flex: 1; display: grid; }
.switch-row strong { font-size: 12px; }
.switch-row small { color: var(--muted); font-size: 10px; }
.switch-row input, .mini-switch input { position: absolute; opacity: 0; }
.switch { position: relative; width: 38px; height: 22px; flex: none; border-radius: 12px; background: #bdc5c0; transition: background .15s; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: white; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.22); }
input:checked + .switch { background: var(--leaf); }
input:checked + .switch::after { transform: translateX(16px); }
.category-admin-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 18px; }
.sticky-panel { position: sticky; top: 82px; }
.category-edit-list { padding: 0 20px; }
.category-edit-row { min-height: 105px; display: grid; grid-template-columns: minmax(160px, 1fr) minmax(120px, .7fr) minmax(160px, 1fr) 72px 62px 36px; align-items: end; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.category-edit-row:last-child { border-bottom: 0; }
.category-edit-row > label { min-width: 0; display: grid; gap: 4px; color: var(--muted); font-size: 9px; font-weight: 750; }
.category-edit-row input { min-height: 36px; padding: 7px 9px; font-size: 11px; }
.category-title { align-self: center; display: flex; align-items: center; gap: 8px; }
.category-title > div { min-width: 0; display: grid; }
.category-title strong { font-size: 12px; }
.category-title small { color: var(--muted); font-size: 9px; }
.drag-handle { color: #aab2ad; }
.mini-switch { min-height: 36px; align-self: end; display: flex !important; align-items: center; gap: 5px !important; cursor: pointer; }
.mini-switch .switch { width: 32px; height: 19px; }
.mini-switch .switch::after { width: 13px; height: 13px; }
.mini-switch input:checked + .switch::after { transform: translateX(13px); }
.stack-form { display: grid; gap: 16px; }
.filter-tabs { min-height: 58px; display: flex; align-items: stretch; gap: 24px; padding: 0 18px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.filter-tabs a { position: relative; flex: none; display: grid; place-items: center; color: var(--muted); font-size: 12px; font-weight: 700; }
.filter-tabs a.active { color: var(--ink); }
.filter-tabs a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--leaf); }
.back-label { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 7px; color: var(--leaf-dark); font-size: 11px; font-weight: 750; }
.order-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 18px; }
.admin-order-items { padding: 8px 20px; }
.admin-order-items > div { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); font-size: 12px; }
.admin-order-items > div span { display: grid; }
.admin-order-items small { color: var(--muted); }
.admin-totals { margin: 0; padding: 14px 20px 20px; display: grid; gap: 8px; }
.admin-totals div { display: flex; justify-content: space-between; font-size: 12px; }
.admin-totals dt, .admin-totals dd { margin: 0; }
.admin-totals dt { color: var(--muted); }
.admin-totals .total { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 800; }
.admin-totals .total dd { color: var(--coral-dark); }
.admin-info-list { margin: 0; padding: 18px 20px; display: grid; gap: 14px; }
.admin-info-list div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; font-size: 11px; }
.admin-info-list dt { color: var(--muted); }
.admin-info-list dd { margin: 0; font-weight: 650; }
.admin-user-list { padding: 0 20px; }
.admin-user-list article { min-height: 78px; display: grid; grid-template-columns: 38px 1fr auto auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.admin-user-list article:last-child { border-bottom: 0; }
.user-avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); }
.admin-user-list article > div { min-width: 0; display: grid; }
.admin-user-list strong { font-size: 12px; }
.admin-user-list small { color: var(--muted); font-size: 9px; }
.current-user { color: var(--muted); font-size: 10px; }
.sidebar-scrim { display: none; }

.admin-login-body .notice-bar, .admin-login-body .site-header, .admin-login-body .site-footer { display: none; }
.admin-login-body { min-height: 100vh; background: white; }
.admin-login-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, .8fr) minmax(480px, 1.2fr); }
.admin-login-panel { width: min(100% - 64px, 420px); margin: auto; }
.login-brand { margin-bottom: 65px; display: flex; align-items: center; gap: 10px; font-family: Georgia, serif; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.login-brand .brand-mark { width: 36px; height: 36px; }
.admin-login-panel h1 { margin: 7px 0 10px; font-size: 31px; }
.admin-login-panel > p { margin-bottom: 32px; color: var(--muted); font-size: 13px; }
.login-form { display: grid; gap: 18px; }
.input-with-icon { position: relative; }
.input-with-icon > svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); z-index: 1; color: var(--muted); }
.input-with-icon input { padding-left: 42px; }
.login-back { margin-top: 24px; }
.admin-login-image { position: relative; min-height: 100vh; overflow: hidden; }
.admin-login-image img { width: 100%; height: 100%; object-fit: cover; }
.admin-login-image::after { content: ""; position: absolute; inset: 0; background: rgba(20,32,26,.28); }
.admin-login-image > div { position: absolute; left: 7%; right: 7%; bottom: 7%; z-index: 1; color: white; }
.admin-login-image span { font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.admin-login-image strong { display: block; margin-top: 8px; font-family: Georgia, serif; font-size: 32px; line-height: 1.35; }

@media (max-width: 1100px) {
  .header-inner { grid-template-columns: 220px 1fr auto; gap: 18px; }
  .header-actions { gap: 12px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .completion-grid { grid-template-columns: 1fr 1fr; }
  .completion-grid .info-section:first-child { grid-column: 1 / -1; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .category-edit-row { grid-template-columns: 1fr 1fr 1fr 58px; align-items: end; }
  .category-title { grid-column: 1 / -1; }
  .mini-switch, .category-edit-row > .icon-button { align-self: end; }
}

@media (max-width: 860px) {
  .notice-bar { min-height: 34px; height: auto; padding-block: 7px; text-align: center; }
  .site-header { position: relative; }
  .header-inner { min-height: 70px; grid-template-columns: 1fr auto; }
  .header-search { grid-column: 1 / -1; grid-row: 2; margin-bottom: 12px; }
  .header-actions .header-action:last-child { display: none; }
  .category-nav-inner { width: calc(100% - 24px); }
  .store-hero { height: 330px; }
  .store-hero h1 { font-size: 34px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-detail { grid-template-columns: 1fr; gap: 28px; }
  .product-detail-image { max-width: 660px; }
  .commerce-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .cart-item { grid-template-columns: 92px 1fr 76px 30px; gap: 14px; }
  .cart-item-image { width: 92px; }
  .cart-line-price { grid-column: 3; grid-row: 2; align-self: start; }
  .quantity-field { grid-column: 3; grid-row: 1; }
  .cart-remove { grid-column: 4; grid-row: 1 / 3; }
  .admin-sidebar { transform: translateX(-100%); transition: transform .2s ease; }
  .admin-body.sidebar-open .admin-sidebar { transform: translateX(0); }
  .admin-shell { margin-left: 0; }
  .admin-topbar { justify-content: space-between; padding: 0 18px; }
  .admin-menu-button { display: inline-grid; }
  .admin-main { width: min(calc(100% - 32px), 1360px); padding-top: 24px; }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 150; background: rgba(14,22,17,.45); }
  .admin-body.sidebar-open .sidebar-scrim { display: block; }
  .product-edit-layout, .category-admin-layout, .order-detail-grid { grid-template-columns: 1fr; }
  .form-column.side, .sticky-panel { position: static; }
  .admin-login-wrap { grid-template-columns: 1fr; }
  .admin-login-image { display: none; }
  .admin-login-panel { padding: 56px 0; }
  .login-brand { margin-bottom: 48px; }
}

@media (max-width: 640px) {
  .notice-bar { white-space: nowrap; }
  .notice-detail { display: none; }
  .container { width: min(calc(100% - 28px), var(--container)); }
  .header-inner { width: calc(100% - 28px); }
  .brand-mark { width: 38px; height: 38px; }
  .brand-copy strong { font-size: 14px; }
  .header-action { min-width: 42px; }
  .header-action > span:last-child { display: none; }
  .category-nav-inner { gap: 22px; }
  .store-hero { height: 300px; }
  .store-hero-overlay { background: rgba(21,33,27,.63); }
  .store-hero-content { width: calc(100% - 32px); }
  .store-hero h1 { font-size: 29px; }
  .store-hero p { max-width: 320px; font-size: 13px; }
  .category-showcase { padding-top: 32px; }
  .category-showcase::before { display: none; }
  .category-chip { min-width: 90px; flex-basis: 90px; height: 70px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 23px; }
  .product-section { padding-top: 38px; padding-bottom: 65px; }
  .product-grid { gap: 30px 12px; }
  .product-card-body { padding-right: 0; min-height: 190px; }
  .product-card h3 { font-size: 15px; }
  .product-card p { min-height: 55px; }
  .price-row { align-items: flex-start; flex-direction: column; gap: 0; }
  .add-cart-button { position: static; width: 100%; height: 36px; margin-top: 10px; display: flex; border-radius: 5px; gap: 6px; }
  .add-cart-button span { display: inline; }
  .breadcrumbs { overflow: hidden; white-space: nowrap; }
  .product-detail-page { width: 100%; }
  .product-detail-page .breadcrumbs, .product-detail-info, .product-description, .related-products { width: calc(100% - 28px); margin-inline: auto; }
  .product-detail-image { border-radius: 0; }
  .product-detail-info h1 { font-size: 28px; }
  .product-description { padding: 52px 10px; }
  .purchase-controls { align-items: stretch; }
  .trust-list { gap: 10px; }
  .commerce-page { padding-top: 34px; }
  .page-title h1 { font-size: 27px; }
  .checkout-steps { margin-bottom: 34px; gap: 7px; }
  .checkout-steps span { gap: 4px; font-size: 10px; }
  .checkout-steps > svg { width: 11px; }
  .cart-item { grid-template-columns: 78px 1fr 30px; align-items: start; gap: 10px; min-height: 124px; }
  .cart-item-image { width: 78px; grid-row: 1 / 3; }
  .cart-item-main { min-width: 0; }
  .quantity-field { grid-column: 2; grid-row: 2; display: flex; align-items: center; gap: 8px; }
  .quantity-field input { width: 64px; height: 34px; }
  .cart-line-price { grid-column: 2; grid-row: 3; text-align: left; }
  .cart-remove { grid-column: 3; grid-row: 1 / 3; }
  .cart-list-footer { align-items: flex-start; flex-direction: column; gap: 16px; }
  .form-section, .payment-panel { padding: 20px 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .field.postal { max-width: none; }
  .card-preview { padding: 18px; }
  .card-preview > strong { font-size: 16px; }
  .test-card-note { grid-template-columns: 1fr 36px; }
  .test-card-note > span { grid-column: 1 / -1; }
  .completion-heading h1 { font-size: 28px; }
  .completion-grid { grid-template-columns: 1fr; }
  .completion-grid .info-section:first-child { grid-column: auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; padding: 40px 0; }
  .metric-grid { grid-template-columns: 1fr; }
  .admin-dashboard-grid { grid-template-columns: 1fr; }
  .admin-page-heading { align-items: flex-start; flex-direction: column; }
  .admin-page-heading .button { width: 100%; }
  .panel-toolbar { align-items: stretch; flex-direction: column; }
  .admin-search { width: 100%; }
  .category-edit-row { grid-template-columns: 1fr 1fr; }
  .category-title, .category-description { grid-column: 1 / -1; }
  .admin-user-list article { grid-template-columns: 38px 1fr auto; padding: 12px 0; }
  .admin-user-list article > .status-badge { grid-column: 2; }
  .admin-user-list article > form, .current-user { grid-column: 3; grid-row: 1 / 3; }
  .admin-topbar > div span { display: none; }
  .admin-login-panel { width: calc(100% - 40px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
