@font-face {
    font-family: NotoKR;
    src: url('/font/NotoSansKR-Regular.ttf') format('truetype');
    font-weight: 400;
}
@font-face {
    font-family: NotoKR;
    src: url('/font/NotoSansKR-Bold.ttf') format('truetype');
    font-weight: 700;
}
:root {
    --blue: #1f7aff;
    --blue-dark: #0058d8;
    --red: #e11d48;
    --green: #059669;
    --ink: #0b1020;
    --muted: #64748b;
    --line: #dbe3ef;
    --bg: #eef3f9;
    --card: #ffffff;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: NotoKR, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
.top-strip { background: #050816; color: #dbeafe; font-size: 13px; }
.util-row, .header-grid, .category-row, .footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.util-row { min-height: 36px; }
.util-row nav, .category-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.inline-form { display: inline; }
.inline-form button, .text-btn { border: 0; background: transparent; color: inherit; cursor: pointer; padding: 0; }
.shop-header { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); }
.header-grid { min-height: 78px; display: grid; grid-template-columns: 220px 1fr 130px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 25px; color: #0f172a; letter-spacing: .02em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; background: linear-gradient(135deg, #111827, var(--blue)); color: #fff; border-radius: 8px; }
.search { display: flex; height: 46px; border: 2px solid var(--blue); border-radius: 8px; overflow: hidden; background: #fff; }
.search input { flex: 1; border: 0; padding: 0 16px; min-width: 0; outline: none; }
.search button, .primary-btn { border: 0; background: var(--blue); color: #fff; padding: 0 22px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 8px; }
.search button { border-radius: 0; }
.primary-btn:hover { background: var(--blue-dark); }
.ghost-btn { border: 1px solid #bfdbfe; color: var(--blue); min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 8px; background: #fff; font-weight: 700; }
.cart-pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #cbd5e1; border-radius: 8px; height: 46px; background: #fff; font-weight: 800; }
.cart-pill strong { color: var(--red); }
.category-row { justify-content: flex-start; min-height: 45px; font-weight: 700; color: #374151; }
.category-row a:first-child { color: var(--blue); }
.alert { margin-top: 18px; padding: 13px 16px; border-radius: 8px; font-weight: 700; }
.alert.success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.alert.error { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }
.hero-band { background: radial-gradient(circle at 78% 18%, rgba(31,122,255,.38), transparent 28%), linear-gradient(135deg, #050816 0%, #111827 52%, #172554 100%); border-bottom: 1px solid #1e293b; color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1fr 390px; gap: 28px; padding: 56px 0; align-items: center; }
.eyebrow { color: var(--blue); font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; }
.hero-grid h1 { margin: 10px 0; font-size: 46px; line-height: 1.12; }
.hero-grid p { color: #cbd5e1; font-size: 18px; margin: 0 0 22px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-panel { background: rgba(15,23,42,.82); border: 1px solid rgba(148,163,184,.35); border-radius: 8px; padding: 24px; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.hero-panel strong { font-size: 22px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.hero-stats span { background: rgba(255,255,255,.08); border: 1px solid rgba(148,163,184,.22); border-radius: 8px; padding: 12px; text-align: center; color: #cbd5e1; }
.hero-stats b { display: block; color: #fff; font-size: 22px; }
.deal-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: -22px; position: relative; z-index: 2; }
.deal-strip a { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px; box-shadow: 0 16px 34px rgba(15,23,42,.10); }
.deal-strip strong { display: block; color: #0f172a; font-size: 20px; }
.deal-strip span { color: var(--muted); font-size: 13px; }
.section { padding: 32px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h1, .section-head h2 { margin: 0; }
.section-head a { color: var(--blue); font-weight: 700; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transition: transform .16s ease, box-shadow .16s ease; }
.product-card:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(15, 23, 42, .08); }
.product-image { display: block; aspect-ratio: 1 / .72; background: #eef2f7; position: relative; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.type-badge { position: absolute; top: 10px; left: 10px; background: rgba(17,24,39,.86); color: #fff; border-radius: 6px; padding: 5px 8px; font-size: 12px; }
.product-body { padding: 14px; }
.product-title { display: block; font-weight: 800; line-height: 1.35; min-height: 44px; }
.product-body p { color: var(--muted); font-size: 13px; min-height: 38px; margin: 8px 0 12px; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.price-row span, .meta-row, .hint { color: var(--muted); font-size: 13px; }
.price-row strong { color: var(--red); font-size: 21px; }
.meta-row { display: flex; justify-content: space-between; margin-top: 10px; }
.product-detail { display: grid; grid-template-columns: 520px 1fr; gap: 36px; padding: 36px 0; }
.detail-image { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.detail-image img { width: 100%; aspect-ratio: 1 / .82; object-fit: cover; display: block; }
.detail-info { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 28px; }
.detail-info h1 { margin: 8px 0 10px; font-size: 30px; }
.crumb { color: var(--blue); font-weight: 700; }
.detail-price { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; margin: 20px 0; }
.detail-price span { color: var(--muted); display: block; }
.detail-price strong { display: block; color: var(--red); font-size: 34px; }
.detail-price small { color: var(--muted); }
.detail-list { margin: 0 0 22px; }
.detail-list div { display: flex; padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.detail-list dt { width: 120px; color: var(--muted); }
.detail-list dd { margin: 0; font-weight: 700; }
.buy-box { display: flex; gap: 10px; align-items: end; }
label { display: grid; gap: 7px; color: #374151; font-weight: 700; }
input, select, textarea { border: 1px solid #d1d5db; border-radius: 8px; padding: 11px 12px; background: #fff; width: 100%; }
.buy-box input { width: 110px; }
.detail-desc { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 26px; margin-bottom: 32px; }
.page-grid { display: grid; grid-template-columns: 1fr 330px; gap: 24px; padding: 32px 0; align-items: start; }
.line-list { display: grid; gap: 12px; }
.line-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.line-item.compact { grid-template-columns: 1fr auto; }
.line-item img { width: 96px; height: 78px; object-fit: cover; border-radius: 8px; }
.line-item p { color: var(--muted); margin: 4px 0; }
.qty-form { display: flex; gap: 8px; align-items: center; }
.qty-form input { width: 90px; }
.qty-form button, .status-form button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 9px 12px; cursor: pointer; }
.line-total { text-align: right; display: grid; gap: 8px; }
.summary-box, .info-box, .auth-card, .form-panel, .table-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.summary-box { padding: 20px; position: sticky; top: 140px; }
.summary-box h2 { margin-top: 0; }
.summary-box div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #f1f5f9; }
.summary-box .total { font-size: 19px; border-bottom: 0; margin-top: 8px; }
.summary-box .total strong { color: var(--red); }
.full { width: 100%; margin-top: 14px; }
.checkout-form { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.span-2 { grid-column: span 2; }
.payment-options, .check-grid { display: flex; gap: 12px; flex-wrap: wrap; margin: 14px 0; }
.payment-options label, .check-grid label, .check-row { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: #f8fafc; }
.payment-options input, .check-grid input, .check-row input { width: auto; }
.pg-guide { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 18px; }
.pg-guide a { border: 1px solid #bfdbfe; color: var(--blue); background: #eff6ff; border-radius: 8px; padding: 10px 12px; font-weight: 700; }
.period-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.period-tabs a { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 14px; font-weight: 800; color: #475569; }
.period-tabs a.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.auth-wrap { min-height: 560px; display: grid; place-items: center; padding: 40px 16px; }
.auth-card { width: min(430px, 100%); padding: 28px; display: grid; gap: 15px; }
.auth-card.wide { width: min(760px, 100%); }
.auth-card h1 { margin: 0; }
.auth-card p { color: var(--muted); margin: 0; }
.demo-accounts { display: grid; gap: 5px; background: #f8fafc; border-radius: 8px; padding: 12px; font-size: 13px; color: #475569; }
.admin-shell { display: grid; grid-template-columns: 220px 1fr; gap: 22px; padding: 32px 0; align-items: start; }
.admin-nav { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: grid; gap: 8px; position: sticky; top: 140px; }
.admin-nav strong { font-size: 18px; margin-bottom: 8px; }
.admin-nav a, .admin-nav span { padding: 10px; border-radius: 8px; background: #f8fafc; color: #374151; }
.admin-main { min-width: 0; }
.seller-hero { background: linear-gradient(135deg, #0f172a, #1d4ed8); color: #fff; border-radius: 8px; padding: 24px; display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 18px; }
.seller-hero span { color: #bfdbfe; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.seller-hero h1 { margin: 6px 0; }
.seller-hero p { margin: 0; color: #dbeafe; }
.seller-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.seller-hero .ghost-btn { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); }
.today-panel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.today-panel article { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px; box-shadow: 0 10px 24px rgba(15,23,42,.05); }
.today-panel span { color: var(--muted); display: block; font-size: 13px; }
.today-panel strong { display: block; font-size: 26px; margin: 6px 0; color: #0f172a; }
.today-panel small { color: var(--muted); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 28px; }
.stats-grid.revenue-stats { grid-template-columns: repeat(4, 1fr); }
.stats-grid div { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.stats-grid span { color: var(--muted); display: block; }
.stats-grid strong { font-size: 24px; }
.revenue-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .85fr); gap: 18px; margin-bottom: 28px; }
.operation-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 28px; }
.chart-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 20px; min-width: 0; }
.bar-chart { display: grid; grid-template-columns: repeat(14, 1fr); gap: 10px; align-items: end; min-height: 260px; padding-top: 26px; }
.bar-item { display: grid; grid-template-rows: 24px 180px 22px; gap: 8px; min-width: 0; text-align: center; }
.bar-value { color: var(--muted); font-size: 11px; white-space: nowrap; transform: rotate(-36deg); transform-origin: center; }
.bar-track { height: 180px; background: #edf2f7; border-radius: 8px; display: flex; align-items: end; overflow: hidden; border: 1px solid #dbe3ef; }
.bar-track span { display: block; width: 100%; min-height: 6px; background: linear-gradient(180deg, #60a5fa, var(--blue)); border-radius: 8px 8px 0 0; }
.bar-item small { color: var(--muted); font-size: 12px; }
.top-product-list { display: grid; gap: 14px; }
.top-product-list article { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; border-bottom: 1px solid #eef2f7; padding-bottom: 12px; }
.top-product-list strong { display: block; line-height: 1.35; }
.top-product-list span { color: var(--muted); font-size: 13px; }
.top-product-list b { color: var(--red); white-space: nowrap; }
.top-product-list em { grid-column: 1 / -1; display: block; height: 8px; background: #eef2f7; border-radius: 999px; overflow: hidden; }
.top-product-list i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #22c55e); border-radius: 999px; }
.status-pipeline, .stock-alert-list, .recent-order-list { display: grid; gap: 12px; }
.status-pipeline article { display: grid; gap: 8px; }
.status-pipeline article div, .recent-order-list article, .stock-alert-list article { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.status-pipeline span, .stock-alert-list span, .recent-order-list span { color: var(--muted); font-size: 13px; }
.status-pipeline em, .stock-alert-list em { display: block; height: 10px; background: #eef2f7; border-radius: 999px; overflow: hidden; }
.status-pipeline i { display: block; height: 100%; background: linear-gradient(90deg, #1f7aff, #22c55e); border-radius: 999px; }
.payment-mix { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.payment-mix article { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 16px; }
.payment-mix span, .payment-mix small { color: var(--muted); display: block; }
.payment-mix strong { display: block; color: #0f172a; font-size: 22px; margin: 6px 0; }
.stock-alert-list article, .recent-order-list article { border-bottom: 1px solid #eef2f7; padding-bottom: 12px; }
.stock-alert-list a { color: var(--blue); font-weight: 800; white-space: nowrap; }
.recent-order-list b { color: var(--red); white-space: nowrap; }
.ranking-list { display: grid; gap: 12px; }
.ranking-list article { display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center; padding: 15px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; }
.ranking-list article > b:first-child { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: #0f172a; color: #fff; }
.ranking-list strong { display: block; }
.ranking-list span { color: var(--muted); font-size: 13px; }
.ranking-list em { display: block; height: 9px; margin-top: 9px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.ranking-list i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #22c55e); border-radius: 999px; }
.mypage { padding: 32px 0; }
.mypage-hero { background: linear-gradient(135deg, #0f172a, #1f7aff); color: #fff; border-radius: 8px; padding: 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.mypage-hero span { color: #bfdbfe; font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.mypage-hero h1 { margin: 6px 0; }
.mypage-hero p { margin: 0; color: #dbeafe; }
.mypage-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: 18px; margin-bottom: 28px; }
.history-list { display: grid; gap: 12px; }
.history-list article { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid #eef2f7; padding-bottom: 12px; }
.history-list strong { display: block; line-height: 1.35; }
.history-list span { color: var(--muted); font-size: 13px; }
.history-list b { color: #0f172a; white-space: nowrap; }
.state-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; font-size: 12px; font-weight: 900; }
.state-pill.on { background: #dcfce7; color: #15803d; }
.state-pill.off { background: #f1f5f9; color: #64748b; }
.table-card { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { background: #f8fafc; color: #475569; font-size: 13px; }
.actions { display: flex; gap: 12px; align-items: center; }
.status-form { display: flex; gap: 8px; }
.status-form select { width: 120px; padding: 8px; }
.form-panel { padding: 24px; }
.empty-box, .info-box { padding: 26px; text-align: center; color: var(--muted); }
.info-box.left { text-align: left; }
.error-text { color: var(--red); font-weight: 700; }
.shop-notices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 8px auto 34px; }
.shop-notices article { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.shop-notices span { display: inline-flex; color: var(--blue); font-weight: 900; font-size: 13px; margin-bottom: 8px; }
.shop-notices strong { display: block; line-height: 1.45; }
.shop-footer { background: #111827; color: #d1d5db; margin-top: 40px; padding: 28px 0; }
.footer-grid strong { color: #fff; }
.site-popup-backdrop { position: fixed; inset: 0; z-index: 2000; display: none; place-items: center; padding: 24px; background: rgba(2,6,23,.62); backdrop-filter: blur(8px); opacity: 0; transition: opacity .18s ease; }
.site-popup-backdrop.is-visible { display: grid; opacity: 1; }
.site-popup-card { position: relative; width: min(520px, 100%); background: #fff; border-radius: 8px; padding: 30px; box-shadow: 0 28px 80px rgba(0,0,0,.32); border: 1px solid #dbeafe; }
.site-popup-close { position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border: 0; background: #f1f5f9; border-radius: 999px; font-size: 24px; line-height: 1; cursor: pointer; color: #334155; }
.site-popup-label { display: inline-flex; align-items: center; color: #fff; background: linear-gradient(135deg, #1f7aff, #111827); border-radius: 999px; padding: 6px 11px; font-size: 12px; font-weight: 900; letter-spacing: .04em; }
.site-popup-card h2 { margin: 14px 0 10px; font-size: 28px; line-height: 1.25; }
.site-popup-card p { color: #475569; line-height: 1.65; margin: 0 0 20px; }
.site-popup-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.site-popup-actions .text-btn { color: var(--muted); margin-left: auto; }
@media (max-width: 900px) {
    .header-grid, .hero-grid, .product-detail, .page-grid, .admin-shell { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .deal-strip, .shop-notices { grid-template-columns: 1fr; }
    .stats-grid.revenue-stats, .revenue-layout, .operation-layout, .today-panel, .mypage-grid { grid-template-columns: 1fr; }
    .seller-hero, .mypage-hero { align-items: flex-start; flex-direction: column; }
    .summary-box, .admin-nav { position: static; }
}
@media (max-width: 560px) {
    .wrap { width: min(100% - 22px, 1200px); }
    .product-grid, .form-grid, .stats-grid { grid-template-columns: 1fr; }
    .span-2 { grid-column: span 1; }
    .line-item { grid-template-columns: 72px 1fr; }
    .line-total { grid-column: 1 / -1; text-align: left; }
    .line-item img { width: 72px; height: 62px; }
    .hero-grid h1 { font-size: 32px; }
    .site-popup-card { padding: 24px 18px; }
    .site-popup-actions { display: grid; }
    .site-popup-actions .text-btn { margin-left: 0; }
    .ranking-list article, .history-list article { grid-template-columns: 1fr; display: grid; }
}
