
:root{
  --bg:#f5f6f8;--surface:#fff;--surface-2:#eef1f4;--text:#17191d;--muted:#707681;
  --line:#e1e5ea;--brand:#ff5b32;--brand-dark:#d8431f;--dark:#111419;--ok:#168b54;
  --warn:#a96408;--danger:#b73535;--shadow:0 22px 55px rgba(16,20,25,.11);
  --radius:24px;--container:1240px
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Pretendard,"Noto Sans KR","Malgun Gothic",Arial,sans-serif;color:var(--text);background:var(--bg);line-height:1.55}
body.locked{overflow:hidden}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
a{color:inherit;text-decoration:none}
.container{max-width:var(--container);margin:auto;padding:0 24px}
.notice{background:var(--dark);color:#fff;text-align:center;padding:9px 15px;font-size:13px}
.site-header{position:sticky;top:0;z-index:30;background:rgba(255,255,255,.92);backdrop-filter:blur(15px);border-bottom:1px solid rgba(225,229,234,.9)}
.header-row{min-height:76px;display:flex;align-items:center;gap:30px}
.brand{display:flex;align-items:center;gap:8px;font-size:24px;font-weight:950;white-space:nowrap;letter-spacing:-.045em}
.brand-mark{width:58px;height:58px;display:grid;place-items:center;flex:0 0 auto}
.brand-mark img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 5px 7px rgba(31,35,40,.16))}
.nav{display:flex;gap:27px;font-size:15px;font-weight:800}
.nav a:hover{color:var(--brand)}
.header-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
.btn{min-height:42px;border:1px solid var(--line);border-radius:999px;padding:0 16px;display:inline-flex;align-items:center;justify-content:center;gap:7px;background:#fff;font-weight:850;color:var(--text)}
.btn:hover{transform:translateY(-1px)}
.btn.primary{background:var(--brand);border-color:var(--brand);color:#fff;box-shadow:0 10px 24px rgba(255,91,50,.22)}
.btn.primary:hover{background:var(--brand-dark);border-color:var(--brand-dark)}
.btn.dark{background:var(--dark);border-color:var(--dark);color:#fff}
.btn.light{background:#fff;border-color:#fff;color:var(--dark)}
.btn.ghost{background:#fff}
.btn.large{min-height:51px;padding:0 22px}
.btn.wide{width:100%}
#cartCount{min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--brand);color:#fff;font-size:11px;display:grid;place-items:center}
.hero{padding:52px 0 34px}
.hero-shell{min-height:510px;border-radius:34px;overflow:hidden;color:#fff;display:grid;grid-template-columns:1.05fr .95fr;background:radial-gradient(circle at 88% 17%,rgba(255,255,255,.25),transparent 29%),linear-gradient(135deg,#16191f,#252b34 53%,#52606d);box-shadow:var(--shadow)}
.hero-copy{padding:66px 62px;display:flex;flex-direction:column;justify-content:center}
.pill{width:max-content;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.11);border:1px solid rgba(255,255,255,.16);font-size:13px;font-weight:850}
.hero h1{font-size:clamp(38px,4vw,56px);line-height:1.08;margin:20px 0 18px;letter-spacing:-.05em;word-break:keep-all}
.hero p{font-size:18px;max-width:570px;margin:0 0 32px;color:rgba(255,255,255,.72)}
.row{display:flex;align-items:center}.gap{gap:11px;flex-wrap:wrap}
.hero-art{position:relative;display:grid;place-items:center;padding:40px}
.art-panel{width:min(430px,88%);aspect-ratio:1.15;border:18px solid #edf0f4;border-radius:29px;background:linear-gradient(145deg,#ff6d42,#ffc5b0);display:grid;place-items:center;font-weight:950;font-size:33px;letter-spacing:.045em;transform:rotate(-7deg);box-shadow:0 35px 70px rgba(0,0,0,.34)}
.art-note{position:absolute;right:9%;bottom:12%;padding:14px 17px;background:rgba(255,255,255,.94);color:var(--text);border-radius:17px;box-shadow:0 18px 40px rgba(0,0,0,.23)}
.art-note b,.art-note span{display:block}.art-note span{font-size:12px;color:var(--muted);margin-top:2px}
.section{padding:54px 0}
.section-title{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:25px}
.section-title h2{font-size:34px;line-height:1.2;letter-spacing:-.045em;margin:0}
.section-title p{margin:8px 0 0;color:var(--muted)}
.text-link{border:0;background:none;color:var(--brand);font-weight:900;white-space:nowrap}
.category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.category-card{position:relative;overflow:hidden;min-height:185px;padding:24px;border-radius:22px;background:#fff;border:1px solid var(--line);text-align:left;color:var(--text);transition:.2s}
.category-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.category-card>span{font-size:12px;color:var(--muted);font-weight:850}
.category-card h3{font-size:22px;margin:8px 0 4px;letter-spacing:-.035em}
.category-card p{margin:0;color:var(--muted);font-size:14px}
.tone{position:absolute;right:-13px;bottom:-22px;width:110px;height:110px;border-radius:32px;transform:rotate(18deg)}
.t1{background:linear-gradient(145deg,#ff7850,#ffd1c2)}.t2{background:linear-gradient(145deg,#596473,#d5dae1)}
.t3{background:linear-gradient(145deg,#765bd0,#dfd5ff)}.t4{background:linear-gradient(145deg,#23a87a,#bdebdc)}
.products-section{background:#eef1f4}
.tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:21px}
.tab{border:1px solid var(--line);border-radius:999px;background:#fff;padding:9px 15px;font-weight:850}
.tab.active,.tab:hover{background:var(--dark);border-color:var(--dark);color:#fff}
.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.product-card{overflow:hidden;border-radius:22px;border:1px solid var(--line);background:#fff;transition:.2s}
.product-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.product-visual{aspect-ratio:1.12;display:grid;place-items:center;position:relative;background:linear-gradient(145deg,#eef1f4,#dce1e7)}
.product-shape{width:63%;height:63%;border-radius:21px;display:grid;place-items:center;color:#fff;font-size:17px;font-weight:950;letter-spacing:.025em;box-shadow:0 22px 40px rgba(24,29,34,.2);transform:rotate(-5deg)}
.badge{position:absolute;top:13px;left:13px;border-radius:999px;padding:6px 10px;background:#fff;font-size:11px;font-weight:900;box-shadow:0 5px 14px rgba(0,0,0,.08)}
.product-info{padding:18px}
.meta{font-size:12px;color:var(--muted);font-weight:800}
.product-info h3{font-size:17px;margin:6px 0 11px;letter-spacing:-.025em}
.price{font-size:20px;font-weight:950}.price small{font-size:12px;color:var(--muted);font-weight:650}
.product-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:15px}
.small-btn{min-height:40px;border-radius:12px;border:1px solid var(--line);background:#fff;font-weight:850}
.small-btn.buy{background:var(--dark);border-color:var(--dark);color:#fff}
.loading,.empty{grid-column:1/-1;text-align:center;color:var(--muted);padding:46px 16px}
.custom-shell{display:grid;grid-template-columns:1.1fr .9fr;gap:28px;align-items:center;border-radius:30px;padding:45px;background:linear-gradient(135deg,#fff0eb,#f3efff);border:1px solid #efddd7}
.dark-pill{background:var(--dark);color:#fff;border:0}
.custom-shell h2{font-size:38px;line-height:1.15;letter-spacing:-.05em;margin:17px 0 14px}
.custom-shell p{color:var(--muted);margin:0 0 24px}
.custom-art{min-height:270px;border-radius:24px;position:relative;overflow:hidden;background:linear-gradient(145deg,#20252c,#5d6875)}
.custom-art i{position:absolute;border-radius:24px;box-shadow:0 28px 55px rgba(0,0,0,.28)}
.custom-art i:first-child{left:12%;top:18%;width:55%;height:64%;background:linear-gradient(145deg,#ff7047,#ffc0aa);transform:rotate(-9deg)}
.custom-art i:last-child{right:8%;bottom:8%;width:46%;height:48%;background:linear-gradient(145deg,#f3f4f6,#aeb6c0);transform:rotate(8deg)}
.process-grid{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.process-grid div{padding:18px;border-radius:17px;background:rgba(255,255,255,.73);border:1px solid rgba(255,255,255,.9)}
.process-grid b,.process-grid span{display:block}.process-grid span{font-size:13px;color:var(--muted);margin-top:3px}
.support-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}
.support-grid article{background:#fff;border:1px solid var(--line);border-radius:20px;padding:22px}
.support-grid article>span{font-size:22px}.support-grid h3{font-size:18px;margin:8px 0 4px}.support-grid p{font-size:13px;color:var(--muted);margin:0}
footer{background:var(--dark);color:#fff;padding:46px 0;margin-top:48px}
.footer-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:35px}.footer-brand{font-size:24px}.footer-grid p{font-size:13px;color:#aeb4bd}
.admin-entry{display:block;width:max-content;margin-top:23px;color:#5b6068;font-size:10px;letter-spacing:.02em;opacity:.58}
.admin-entry:hover,.admin-entry:focus-visible{color:#8b919a;opacity:.9;text-decoration:underline}
.overlay{position:fixed;inset:0;background:rgba(8,10,13,.55);z-index:60;opacity:0;visibility:hidden;transition:.2s}
.overlay.open{opacity:1;visibility:visible}
.drawer{position:fixed;right:0;top:0;z-index:70;width:min(440px,100%);height:100%;background:#fff;display:flex;flex-direction:column;transform:translateX(100%);transition:.25s}
.drawer.open{transform:none}
.panel-head{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 22px;border-bottom:1px solid var(--line)}
.circle-btn{width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:#fff;font-size:20px}
.drawer-body{flex:1;overflow:auto;padding:18px}.drawer-foot{border-top:1px solid var(--line);padding:18px}
.cart-item{display:grid;grid-template-columns:70px 1fr auto;gap:13px;padding:13px 0;border-bottom:1px solid var(--line)}
.cart-thumb{border-radius:14px;min-height:70px}.cart-item h4{font-size:15px;margin:0 0 4px}.cart-item p{font-size:12px;color:var(--muted);margin:0}
.qty-row{display:flex;align-items:center;gap:7px;margin-top:8px}.qty-row button{width:28px;height:28px;border-radius:8px;border:1px solid var(--line);background:#fff}
.remove-btn{border:0;background:none;color:var(--danger);font-size:12px;align-self:start}
.total-row{display:flex;justify-content:space-between;font-weight:900;margin-bottom:13px}
.modal{position:fixed;left:50%;top:50%;z-index:80;width:min(760px,calc(100% - 28px));max-height:88vh;overflow:hidden;border-radius:24px;background:#fff;box-shadow:0 30px 90px rgba(0,0,0,.3);opacity:0;visibility:hidden;transform:translate(-50%,-46%);transition:.2s}
.modal.open{opacity:1;visibility:visible;transform:translate(-50%,-50%)}
.small-modal{width:min(540px,calc(100% - 28px))}
.modal-body{max-height:calc(88vh - 72px);overflow:auto;padding:24px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:850}
label.full{grid-column:1/-1}
input,select,textarea{width:100%;border:1px solid #d7dce2;border-radius:12px;background:#fff;padding:12px 13px;outline:none}
input:focus,select:focus,textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(255,91,50,.12)}
textarea{resize:vertical}
.summary-box{padding:16px;border-radius:16px;background:var(--surface-2);margin:18px 0}
.summary-line{display:flex;justify-content:space-between;gap:20px;margin:8px 0}.summary-line.total{font-size:18px;font-weight:950;padding-top:12px;border-top:1px solid #d5dae0}
.agree{display:flex;flex-direction:row;align-items:flex-start;color:var(--muted);font-weight:650;margin:14px 0}.agree input{width:auto;margin-top:3px}
#lookupForm{display:grid;gap:13px}.lookup-result{display:none;margin-top:16px}.lookup-result.show{display:block}
.lookup-modal{width:min(780px,calc(100% - 28px))}
.lookup-guide{margin:0 0 16px;padding:13px 15px;border-radius:13px;background:#f4f1ff;color:#5d5086;font-size:13px;line-height:1.55}
.lookup-guide+form label small{margin-left:5px;color:var(--muted);font-weight:700}
.lookup-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;padding:0 2px}
.lookup-summary span{color:var(--muted);font-size:12px}
.lookup-orders{display:grid;gap:12px;max-height:52vh;overflow:auto;padding-right:4px}
.lookup-order-card{padding:17px;border:1px solid var(--line);border-radius:17px;background:#fff}
.lookup-order-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.lookup-order-head div b,.lookup-order-head div span{display:block}.lookup-order-head div span{margin-top:3px;color:var(--muted);font-size:11px}
.lookup-order-head>strong{flex:0 0 auto;padding:6px 9px;border-radius:999px;background:#edf7f2;color:var(--ok);font-size:11px}
.lookup-items{list-style:none;margin:0;padding:5px 0}
.lookup-items li{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px dashed #e5e7eb}
.lookup-items li:last-child{border-bottom:0}.lookup-items div b,.lookup-items div span{display:block}.lookup-items div span{margin-top:2px;color:var(--muted);font-size:11px}.lookup-items li>strong{flex:0 0 auto;font-size:12px}
.lookup-order-info{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:7px}
.lookup-order-info div{padding:10px 11px;border-radius:11px;background:var(--surface-2)}.lookup-order-info span,.lookup-order-info b{display:block}.lookup-order-info span{color:var(--muted);font-size:10px}.lookup-order-info b{margin-top:3px;font-size:12px;overflow-wrap:anywhere}
.centered{text-align:center;padding:38px 24px}.centered p{color:var(--muted)}.success-icon{width:70px;height:70px;border-radius:50%;display:grid;place-items:center;background:#e7f7ef;color:var(--ok);font-size:37px;font-weight:950;margin:auto}
.order-number{margin:18px 0;padding:16px;border-radius:15px;background:var(--surface-2);font-size:21px;font-weight:950}
.toast{position:fixed;left:50%;bottom:28px;z-index:100;padding:13px 18px;border-radius:999px;background:#101318;color:#fff;font-size:14px;font-weight:850;box-shadow:0 15px 35px rgba(0,0,0,.25);opacity:0;visibility:hidden;transform:translate(-50%,18px);transition:.2s}
.toast.show{opacity:1;visibility:visible;transform:translate(-50%,0)}
.error-box,.warning-box,.success-box{padding:13px 14px;border-radius:12px;font-size:13px;margin-bottom:14px}
.error-box{background:#fff0f0;border:1px solid #efcaca;color:#9f2929}
.warning-box{background:#fff7e9;border:1px solid #efd9ad;color:#8a570b}
.success-box{background:#edf9f3;border:1px solid #c8ead9;color:#176f47}

.admin-body{background:#eef1f4}
.admin-header{background:#111419;color:#fff}
.admin-header .header-row{min-height:66px}
.admin-header .brand-mark{width:34px;height:34px}
.admin-main{padding:34px 0 70px}
.admin-top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}
.admin-top h1{font-size:32px;margin:0;letter-spacing:-.04em}
.admin-tabs{display:flex;gap:8px;margin-bottom:17px;flex-wrap:wrap}
.admin-tab{padding:10px 16px;border-radius:999px;border:1px solid var(--line);background:#fff;font-weight:850}
.admin-tab.active{background:var(--dark);color:#fff;border-color:var(--dark)}
.admin-section{display:none}.admin-section.active{display:block}
.admin-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:20px;margin-bottom:16px}
.admin-toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:15px}
.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:16px;background:#fff}
table{width:100%;border-collapse:collapse;min-width:1120px}
th,td{padding:12px 11px;border-bottom:1px solid var(--line);font-size:13px;text-align:left;vertical-align:middle}
th{background:#fafbfc;color:var(--muted);font-size:12px}
td input,td select{min-width:110px;padding:8px 9px;border-radius:9px}
td .inline-actions{display:flex;gap:6px}
.table-btn{min-height:34px;border-radius:9px;border:1px solid var(--line);background:#fff;padding:0 10px;font-weight:800;font-size:12px}
.table-btn.save{background:var(--dark);color:#fff;border-color:var(--dark)}
.table-btn.danger{color:var(--danger)}
.status-chip{display:inline-flex;padding:5px 9px;border-radius:999px;background:#eef1f4;font-size:11px;font-weight:850}
.login-shell{min-height:calc(100vh - 66px);display:grid;place-items:center;padding:24px}
.login-card{width:min(430px,100%);padding:30px;background:#fff;border-radius:23px;border:1px solid var(--line);box-shadow:var(--shadow)}
.login-card h1{margin:0 0 8px}.login-card p{color:var(--muted);margin:0 0 20px}.login-card form{display:grid;gap:13px}
.product-form{display:grid;grid-template-columns:1.5fr 1fr .8fr 1fr .7fr .6fr auto;gap:9px;align-items:end}
.product-form label{font-size:12px}
.server-state{display:flex;align-items:center;gap:8px;font-size:13px;color:#cdd2d9}.dot{width:9px;height:9px;border-radius:50%;background:#42d18b;box-shadow:0 0 0 4px rgba(66,209,139,.13)}
@media(max-width:1000px){
  .nav{display:none}.hero-shell{grid-template-columns:1fr}.hero-art{min-height:330px}
  .category-grid,.product-grid{grid-template-columns:repeat(2,1fr)}
  .custom-shell{grid-template-columns:1fr}.support-grid{grid-template-columns:repeat(2,1fr)}
  .product-form{grid-template-columns:1fr 1fr}
}
@media(max-width:650px){
  .container{padding:0 16px}.header-row{min-height:66px;gap:10px}.brand{font-size:19px}.brand-mark{width:46px;height:46px}
  .desktop-only{display:none}.header-actions{gap:5px}.header-actions .btn{padding:0 11px;font-size:13px}
  .hero{padding:22px 0 30px}.hero-shell{border-radius:24px}.hero-copy{padding:39px 23px}.hero p{font-size:15px}.hero-art{min-height:280px;padding:24px}
  .art-panel{font-size:23px;border-width:12px}.art-note{right:5%;bottom:8%;font-size:13px}.section{padding:40px 0}
  .section-title{align-items:flex-start}.section-title h2{font-size:28px}.category-grid,.product-grid,.support-grid{grid-template-columns:1fr}
  .category-card{min-height:150px}.custom-shell{padding:28px 20px}.custom-shell h2{font-size:30px}.process-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}label.full{grid-column:auto}
  .product-form{grid-template-columns:1fr}.admin-top{align-items:flex-start;flex-direction:column}
}

[hidden]{display:none!important}
#heroTitle,#customTitle{white-space:pre-line}
#heroBadge:empty,#customBadge:empty{display:none}
#footerNote:empty{display:none}

/* 관리자 화면은 고객 화면과 시각적으로 분리한다. */
.admin-container{max-width:1480px}
.admin-header{position:sticky;top:0;z-index:30;box-shadow:0 8px 26px rgba(0,0,0,.12)}
.admin-header .btn.ghost{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.18);color:#fff}
.admin-header .btn.ghost:hover{background:rgba(255,255,255,.15)}
.admin-mark{background:linear-gradient(145deg,#6e59d9,#9b8cf0);box-shadow:0 8px 22px rgba(110,89,217,.28)}
.admin-brand{font-size:18px}
.admin-eyebrow{display:block;margin-bottom:6px;color:#6e59d9;font-size:11px;font-weight:950;letter-spacing:.13em}
.admin-top p{margin:7px 0 0;color:var(--muted)}
.admin-only-note{border-left:4px solid #d29026;margin-bottom:17px}
.admin-card-head,.settings-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:17px}
.admin-card-head h2,.settings-card-head h2{font-size:21px;margin:0;letter-spacing:-.025em}
.admin-card-head p{margin:4px 0 0;color:var(--muted);font-size:13px}
.admin-login-icon{width:54px;height:54px;border-radius:17px;background:linear-gradient(145deg,#6e59d9,#a294ef);display:grid;place-items:center;color:#fff;font-size:24px;font-weight:950;margin-bottom:18px;box-shadow:0 12px 28px rgba(110,89,217,.23)}

.settings-form{padding-bottom:96px}
.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.settings-card{background:#fff;border:1px solid var(--line);border-radius:21px;padding:22px;box-shadow:0 7px 24px rgba(21,25,31,.035)}
.settings-card.settings-wide{grid-column:1/-1}
.settings-card-head>div>span{display:block;margin-bottom:4px;color:#6e59d9;font-size:11px;font-weight:950;letter-spacing:.08em}
.settings-fields{display:grid;gap:13px}
.settings-fields.two-column{grid-template-columns:1fr 1fr}
.settings-fields .full{grid-column:1/-1}
.settings-fields label,.benefit-editor label{font-size:12px}
.settings-fields small,.benefit-editor small{color:var(--muted);font-weight:650;line-height:1.4}
.settings-fields textarea{min-height:76px}
.switch-label{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:16px;padding:11px 13px;border:1px solid var(--line);border-radius:12px;background:#fafbfc}
.switch-label input{width:21px;height:21px;flex:0 0 auto;accent-color:#6e59d9}
.switch-label.compact{min-width:130px;padding:8px 11px;font-size:12px}
.benefit-editors{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.benefit-editor{min-width:0;margin:0;padding:15px;border:1px solid var(--line);border-radius:16px;background:#f8f9fb}
.benefit-editor legend{padding:0 7px;color:#6e59d9;font-size:12px;font-weight:950}
.benefit-editor label{margin-top:10px}
.shipping-fields{grid-template-columns:1fr 1fr}
.settings-savebar{position:sticky;bottom:16px;z-index:20;margin-top:18px;padding:14px 16px;border:1px solid rgba(110,89,217,.22);border-radius:18px;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);box-shadow:0 18px 48px rgba(26,30,38,.18);display:flex;align-items:center;justify-content:space-between;gap:20px}
.settings-savebar b,.settings-savebar span{display:block}
.settings-savebar span{font-size:12px;color:var(--muted);margin-top:2px}
.settings-savebar .btn.primary{background:#6e59d9;border-color:#6e59d9;box-shadow:0 10px 24px rgba(110,89,217,.22)}
.settings-savebar .btn.primary:hover{background:#5844c7;border-color:#5844c7}

@media(max-width:1100px){
  .settings-grid{grid-template-columns:1fr}
  .settings-card.settings-wide{grid-column:auto}
  .benefit-editors{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:700px){
  .server-state{display:none}
  .admin-header .header-actions .btn{font-size:12px;padding:0 10px}
  .settings-fields.two-column,.shipping-fields{grid-template-columns:1fr}
  .settings-fields .full{grid-column:auto}
  .benefit-editors{grid-template-columns:1fr}
  .settings-savebar{align-items:flex-start;flex-direction:column;bottom:8px}
  .settings-savebar .row{width:100%}
  .settings-savebar .btn{flex:1}
}

/* v0.4.0 상품 사진·재고 관리 */
button:disabled{cursor:not-allowed;opacity:.52;transform:none!important}
.product-card{cursor:pointer;outline:none}
.product-card:focus-visible{box-shadow:0 0 0 4px rgba(255,91,50,.18),var(--shadow);border-color:var(--brand)}
.product-card.is-soldout{opacity:.82}
.product-visual{overflow:hidden}
.product-photo-fallback,.product-photo{position:absolute;inset:0;width:100%;height:100%}
.product-photo-fallback{display:grid;place-items:center;color:#fff;font-size:17px;font-weight:950;letter-spacing:.025em}
.product-photo-fallback span{width:63%;height:63%;border-radius:21px;display:grid;place-items:center;background:rgba(255,255,255,.08);box-shadow:0 22px 40px rgba(24,29,34,.16);transform:rotate(-5deg)}
.product-photo{object-fit:cover;background:#eef1f4;transition:transform .25s ease}
.product-photo.broken{display:none}
.product-card:hover .card-photo{transform:scale(1.035)}
.product-visual .badge{z-index:4}
.soldout-overlay{position:absolute;inset:auto 14px 14px auto;z-index:5;padding:8px 13px;border-radius:999px;background:rgba(17,20,25,.9);color:#fff;font-size:12px;font-weight:950}
.product-price-row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.stock-chip{flex:0 0 auto;padding:5px 8px;border-radius:999px;font-size:11px;font-weight:900;background:#edf7f2;color:var(--ok)}
.stock-chip.low{background:#fff4df;color:#9a5f05}
.stock-chip.soldout{background:#f5e9e9;color:var(--danger)}
.detail-hint{margin-top:8px;color:#9298a1;font-size:11px;font-weight:750}
.small-btn:disabled{background:#eef0f3;border-color:#e1e4e8;color:#969ca5}

.cart-thumb{position:relative;overflow:hidden;background:#eef1f4}
.cart-thumb .product-photo-fallback,.cart-thumb .product-photo{border-radius:14px}
.cart-thumb .product-photo-fallback span{width:auto;height:auto;padding:4px;font-size:9px;box-shadow:none;transform:none;background:transparent;text-align:center}
.cart-stock{display:block;margin-top:4px;color:var(--ok);font-size:11px;font-weight:850}
.qty-row button:disabled{background:#eef0f3}

.product-detail-modal{width:min(900px,calc(100% - 28px))}
.product-detail-body{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(300px,.95fr);gap:28px;align-items:center;padding:28px}
.detail-visual{position:relative;overflow:hidden;aspect-ratio:1.12;border-radius:22px;background:#eef1f4;border:1px solid var(--line)}
.detail-placeholder,.detail-visual>img{position:absolute;inset:0;width:100%;height:100%}
.detail-placeholder{display:grid;place-items:center;color:#fff;font-size:24px;font-weight:950;letter-spacing:.025em}
.detail-visual>img{object-fit:contain;background:#fff}
.detail-visual .badge{z-index:3}
.detail-copy h2{font-size:30px;line-height:1.2;letter-spacing:-.04em;margin:8px 0 8px}
.detail-option{margin:0 0 18px;color:var(--muted)}
.detail-price{font-size:24px;font-weight:950;margin-bottom:13px}
.detail-stock{display:inline-flex;padding:8px 12px;border-radius:999px;background:#edf7f2;color:var(--ok);font-size:13px;font-weight:950}
.detail-stock.low{background:#fff4df;color:#9a5f05}
.detail-stock.soldout{background:#f5e9e9;color:var(--danger)}
.detail-quantity{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:25px 0 18px;padding:15px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:13px;font-weight:850}
.quantity-control{display:flex;align-items:center;gap:12px}
.quantity-control button{width:36px;height:36px;border:1px solid var(--line);border-radius:10px;background:#fff;font-size:18px}
.quantity-control b{min-width:24px;text-align:center;font-size:17px}
.detail-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}

.inventory-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}
.inventory-summary article{padding:18px 20px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 7px 24px rgba(21,25,31,.03)}
.inventory-summary span,.inventory-summary b{display:block}
.inventory-summary span{color:var(--muted);font-size:12px;font-weight:800}
.inventory-summary b{margin-top:6px;font-size:25px;letter-spacing:-.04em}
.inventory-summary article.low{border-color:#ecd9b3;background:#fffaf1}
.inventory-summary article.low b{color:#9a5f05}
.inventory-summary article.soldout{border-color:#ebcccc;background:#fff5f5}
.inventory-summary article.soldout b{color:var(--danger)}
.category-admin-card{margin-bottom:16px}
.category-admin-row{display:flex;align-items:flex-end;justify-content:space-between;gap:18px}
.category-chip-list{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
.category-chip-list span{display:inline-flex;align-items:center;min-height:34px;padding:0 12px;border:1px solid #ddd8fa;border-radius:999px;background:#f6f3ff;color:#5e4bbd;font-size:12px;font-weight:900}
.category-chip-list .empty-category{border-color:var(--line);background:#f7f8fa;color:var(--muted)}
.category-add-form{display:flex;align-items:flex-end;gap:8px;flex:0 0 auto}
.category-add-form label{min-width:240px;font-size:12px}
.category-add-form .btn{white-space:nowrap}
.product-form{grid-template-columns:1.3fr 1.45fr 1fr .8fr .7fr 1fr .8fr .55fr auto}
.product-photo-field small{color:var(--muted);font-weight:650;line-height:1.2}
.product-photo-field input[type=file]{padding:8px;min-width:190px;font-size:11px}
.product-admin-table{min-width:1540px}
.product-admin-table th:nth-child(2){min-width:130px}
.product-admin-table th:nth-child(3){min-width:180px}
.product-admin-table th:nth-child(6){min-width:130px}
.admin-product-photo{position:relative;width:112px;height:84px;overflow:hidden;border-radius:12px;border:1px solid var(--line);background:#eef1f4}
.admin-product-photo img,.admin-photo-placeholder{width:100%;height:100%;object-fit:cover}
.admin-photo-placeholder{display:grid;place-items:center;background:linear-gradient(145deg,var(--photo-accent,#8d96a3),#d9dde4);color:#fff;font-size:11px;font-weight:900}
.photo-actions{display:flex;gap:5px;margin-top:7px;flex-wrap:wrap}
.image-button{display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.vertical-actions{flex-direction:column}
.stock-input{font-weight:900}
.stock-input.low{border-color:#d9a84a;background:#fffaf1;color:#8d5704}
.stock-input.soldout{border-color:#db9b9b;background:#fff3f3;color:var(--danger)}
.stock-state{display:block;margin-top:5px;color:var(--muted);font-size:10px;font-weight:850}

@media(max-width:1100px){
  .product-form{grid-template-columns:repeat(3,minmax(0,1fr))}
  .inventory-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .category-admin-row{align-items:stretch;flex-direction:column}
  .category-add-form{align-items:flex-end}
}
@media(max-width:760px){
  .product-detail-body{grid-template-columns:1fr;gap:20px;padding:18px}
  .detail-copy h2{font-size:25px}
  .detail-actions{grid-template-columns:1fr}
  .inventory-summary{grid-template-columns:1fr 1fr}
}
@media(max-width:650px){
  .product-form{grid-template-columns:1fr}
  .inventory-summary{grid-template-columns:1fr}
  .product-price-row{align-items:flex-start;flex-direction:column}
  .category-add-form{align-items:stretch;flex-direction:column}
  .category-add-form label{min-width:0}
  .lookup-order-info{grid-template-columns:1fr}
  .lookup-items li{align-items:flex-start;flex-direction:column;gap:5px}
}

/* v0.5.0 검색·세부 카테고리·자동계산·상품 편집기 */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.shop-header-row{max-width:1480px;gap:18px}
.global-search{display:flex;align-items:center;flex:1;max-width:440px;min-width:240px;margin-left:10px;border:1px solid var(--line);border-radius:999px;background:#f7f8fa;overflow:hidden;transition:.2s}
.global-search:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px rgba(255,91,50,.1);background:#fff}
.global-search input{min-width:0;border:0;border-radius:0;background:transparent;box-shadow:none!important;padding:11px 15px}
.global-search button{align-self:stretch;min-width:70px;border:0;background:var(--dark);color:#fff;font-weight:900}
.shop-header-row .nav{gap:19px;font-size:14px}
.hero-points{display:flex;flex-wrap:wrap;gap:9px 17px;margin-top:25px;color:rgba(255,255,255,.73);font-size:13px;font-weight:800}
.compact-section{padding-top:38px}
.catalog-category-grid{grid-template-columns:repeat(3,1fr)}
.catalog-category{cursor:pointer}
.catalog-category.selected{border-color:var(--brand);box-shadow:0 0 0 3px rgba(255,91,50,.11)}
.subcategory-strip{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:17px;padding:16px;border:1px solid var(--line);border-radius:18px;background:#fff}
.subcat-chip{border:1px solid var(--line);border-radius:999px;padding:8px 13px;background:#f7f8fa;color:#4d535c;font-size:13px;font-weight:850}
.subcat-chip.active,.subcat-chip:hover{background:var(--dark);border-color:var(--dark);color:#fff}
.featured-section{padding-top:36px;background:#fff}
.featured-tabs{display:flex;gap:8px;margin-bottom:20px}
.featured-tab{min-width:90px;padding:10px 17px;border:1px solid var(--line);border-radius:999px;background:#fff;font-weight:950;letter-spacing:.03em}
.featured-tab.active,.featured-tab:hover{background:var(--brand);border-color:var(--brand);color:#fff}
.featured-grid,.recent-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.compact-card .product-info{padding:15px}
.compact-card .product-info h3{margin-bottom:8px}
.compact-card .product-visual{aspect-ratio:1.28}
.catalog-controls{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.catalog-controls select{width:auto;min-width:145px;padding:9px 34px 9px 12px;border-radius:999px}
.product-count{color:var(--muted);font-size:13px;font-weight:850}
.active-filter-row{display:flex;gap:8px;flex-wrap:wrap;margin:-5px 0 17px}
.active-filter-row button{padding:7px 11px;border:1px solid rgba(255,91,50,.28);border-radius:999px;background:#fff4ef;color:#a63c1f;font-size:12px;font-weight:850}
.empty-search{padding:55px 20px;text-align:center;border:1px dashed #cfd4db;border-radius:22px;background:#fff}
.empty-search b,.empty-search span{display:block}.empty-search b{font-size:20px}.empty-search span{margin:6px 0 18px;color:var(--muted)}
.calc-badge{position:absolute;right:13px;top:13px;z-index:4;padding:6px 9px;border-radius:999px;background:#23272e;color:#fff;font-size:10px;font-weight:950;box-shadow:0 5px 14px rgba(0,0,0,.13)}
.product-option-line{height:38px;margin:0 0 12px;color:var(--muted);font-size:12px;line-height:1.55;overflow:hidden}
.recent-section{padding-top:38px;background:#f8f9fb}
.footer-link{display:block;margin:9px 0 0;padding:0;border:0;background:none;color:#c8cdd4;font-size:13px;text-align:left}
.footer-link:hover{color:#fff;text-decoration:underline}
.shipping-row{color:var(--muted);font-size:13px;font-weight:750}
.grand-total{margin-top:11px;padding-top:13px;border-top:1px solid var(--line);font-size:18px}
.quantity-control.small{justify-content:flex-start;gap:7px;margin-top:9px}
.quantity-control.small button{width:27px;height:27px;border-radius:8px;font-size:15px}
.quantity-control.small span{min-width:20px;text-align:center;font-size:12px;font-weight:900}
.cart-copy>b{display:block;margin-top:6px;font-size:13px}
.remove-cart{align-self:start;border:0;background:none;color:var(--danger);font-size:12px;font-weight:800}

.product-detail-modal{width:min(1120px,calc(100% - 28px));max-height:94vh}
.detail-modal-scroll{max-height:calc(94vh - 72px);padding:0}
.product-detail-body{padding:32px;align-items:start}
.detail-gallery{min-width:0}
.detail-thumbnails{display:flex;gap:8px;margin-top:10px;overflow-x:auto;padding:2px 1px 5px}
.detail-thumbnails[hidden]{display:none}
.detail-thumbnails button{flex:0 0 66px;width:66px;height:58px;padding:3px;overflow:hidden;border:2px solid transparent;border-radius:10px;background:#eef1f4}
.detail-thumbnails button.active{border-color:var(--brand);background:#fff}
.detail-thumbnails img{width:100%;height:100%;object-fit:cover;border-radius:6px}
.detail-breadcrumb{color:var(--brand);font-size:12px;font-weight:900}
.detail-code{margin:0 0 5px;color:#9298a1;font-size:11px}
.custom-calculator{margin-top:20px;padding:18px;border:1px solid #d9dfee;border-radius:17px;background:#f7f9fc}
.calculator-title{display:flex;align-items:center;justify-content:space-between;gap:13px;margin-bottom:13px}
.calculator-title b{font-size:16px}.calculator-title span{color:var(--muted);font-size:11px;text-align:right}
.calculator-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.calculator-grid .full{grid-column:1/-1}
.processing-fieldset{margin:13px 0 0;padding:12px;border:1px solid var(--line);border-radius:13px;background:#fff}
.processing-fieldset legend{padding:0 6px;font-size:12px;font-weight:900}.processing-fieldset small{color:var(--muted);font-weight:650}
.processing-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.processing-options label{display:flex;flex-direction:row;align-items:center;gap:7px;padding:8px 9px;border:1px solid var(--line);border-radius:10px;background:#fafbfc;font-size:11px}
.processing-options input{width:auto;padding:0;accent-color:var(--brand)}
.quote-box{display:grid;grid-template-columns:1fr auto;gap:2px 10px;align-items:center;margin-top:13px;padding:13px 14px;border-radius:13px;background:#1c2026;color:#fff}
.quote-box span{font-size:11px;color:#b9c0c9}.quote-box b{font-size:19px}.quote-box small{grid-column:1/-1;color:#aeb5be;font-size:10px}
.quote-box.loading{padding:13px 14px;text-align:left}
.detail-tabs{display:flex;gap:0;margin:0 32px;border-bottom:1px solid var(--line)}
.detail-tab{min-width:130px;padding:15px 18px;border:0;border-bottom:3px solid transparent;background:#fff;font-weight:900;color:var(--muted)}
.detail-tab.active{border-bottom-color:var(--brand);color:var(--text)}
.detail-tab-panel{display:none;margin:0 32px;padding:25px 0 32px;min-height:120px;color:#4f5560;white-space:pre-line}
.detail-tab-panel.active{display:block}
.detail-tab-panel .spec-list{display:grid;grid-template-columns:140px 1fr;max-width:720px;border-top:1px solid var(--line)}
.detail-tab-panel .spec-list dt,.detail-tab-panel .spec-list dd{margin:0;padding:11px 13px;border-bottom:1px solid var(--line)}
.detail-tab-panel .spec-list dt{background:#f7f8fa;font-size:12px;font-weight:900}.detail-tab-panel .spec-list dd{font-size:13px}
.related-products{margin:0 32px;padding:0 0 32px;border-top:1px solid var(--line)}
.mini-section-title h3{font-size:20px;margin:24px 0 16px}
.related-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.related-card{display:grid;grid-template-columns:80px 1fr;gap:11px;padding:10px;border:1px solid var(--line);border-radius:14px;background:#fff;text-align:left}
.related-card .related-thumb{position:relative;display:block;overflow:hidden;width:80px;height:70px;border-radius:10px;background:#eef1f4}
.related-card .related-thumb img,.related-card .related-thumb .product-photo-fallback{width:100%;height:100%;object-fit:cover}
.related-card .product-photo-fallback span{font-size:9px;transform:none;box-shadow:none;background:none}
.related-card b{display:block;font-size:12px;line-height:1.4}.related-card span{display:block;margin-top:6px;font-size:12px;font-weight:900;color:var(--brand)}
.policy-content{line-height:1.8;color:#4d535c;white-space:pre-line}
.lookup-result{display:block}
.lookup-count{margin:18px 0 10px;color:var(--muted);font-size:12px;font-weight:850}
.lookup-order-card{margin-top:11px}
.lookup-order-head span b,.lookup-order-head span small{display:block}.lookup-order-head span small{margin-top:3px;color:var(--muted);font-size:11px}
.lookup-order-head em{padding:6px 9px;border-radius:999px;background:#fff4df;color:#926006;font-size:11px;font-style:normal;font-weight:900}
.lookup-order-head em.shipping{background:#eef3ff;color:#4263a3}.lookup-order-head em.complete{background:#edf7f2;color:var(--ok)}.lookup-order-head em.cancelled{background:#f5e9e9;color:var(--danger)}
.lookup-items>div{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding:11px 0;border-bottom:1px dashed var(--line)}
.lookup-items>div span,.lookup-items>div small{display:block}.lookup-items>div small{margin-top:3px;color:var(--muted);font-size:10px}.lookup-items>div>b{flex:0 0 auto;font-size:12px}
.lookup-order-card dl{display:grid;grid-template-columns:repeat(3,auto 1fr);gap:6px 10px;margin:12px 0 0;padding:11px;border-radius:11px;background:#f4f6f8;font-size:11px}
.lookup-order-card dt{color:var(--muted)}.lookup-order-card dd{margin:0;font-weight:850;overflow-wrap:anywhere}

/* v0.5.0 관리자 상품·카테고리 관리 */
.table-divider{height:0;border:0;border-top:1px dashed #dce0e5;margin:7px 0}
.category-management-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.category-management-grid>section{min-width:0;padding:16px;border:1px solid var(--line);border-radius:16px;background:#fafbfc}
.category-management-grid h3{margin:0 0 12px;font-size:15px}
.category-admin-chip{display:flex!important;flex-direction:column;align-items:flex-start!important;justify-content:center;min-height:48px!important;border-radius:13px!important}
.category-admin-chip small{margin-top:1px;color:#8175bb;font-size:9px}
.category-add-form,.subcategory-add-form{display:grid;grid-template-columns:minmax(180px,1fr) auto;gap:8px;align-items:end;margin-top:13px}
.subcategory-add-form{grid-template-columns:minmax(150px,.85fr) minmax(180px,1fr) auto}
.category-add-form label,.subcategory-add-form label{font-size:11px}
.subcategory-admin-list{display:grid;gap:9px;max-height:220px;overflow:auto}
.subcategory-admin-group{display:grid;grid-template-columns:130px 1fr;gap:10px;padding:9px 10px;border-radius:11px;background:#fff;border:1px solid var(--line)}
.subcategory-admin-group>b{font-size:11px}.subcategory-admin-group>div{display:flex;gap:5px;flex-wrap:wrap}
.subcategory-admin-group span{padding:3px 7px;border-radius:999px;background:#f0edff;color:#5c4ab5;font-size:9px;font-weight:850}.subcategory-admin-group small{color:var(--muted);font-size:9px}
.product-list-card{padding:0;overflow:hidden}
.product-list-head{padding:20px 20px 0}
.product-admin-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:0 20px 16px}
.product-admin-toolbar input{max-width:280px}.product-admin-toolbar select{width:auto;min-width:145px}.product-admin-toolbar .meta{margin-left:auto}
.product-list-card .table-wrap{border-radius:0;border-width:1px 0 0}
.product-summary-table{min-width:1180px}
.product-summary-table th:nth-child(1){width:100px}.product-summary-table th:nth-child(2){min-width:200px}.product-summary-table th:last-child{width:110px}
.product-type-tag,.stock-admin-badge,.featured-admin-badge,.sale-state{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:0 9px;border-radius:999px;font-size:10px;font-weight:950;white-space:nowrap}
.product-type-tag.stock{background:#eef1f4;color:#515862}.product-type-tag.custom{background:#eef3ff;color:#4a5ea3}
.stock-admin-badge.available{background:#edf7f2;color:var(--ok)}.stock-admin-badge.low{background:#fff4df;color:#946009}.stock-admin-badge.soldout{background:#f5e9e9;color:var(--danger)}
.featured-admin-badge.normal{background:#eef1f4;color:#69717c}.featured-admin-badge.best{background:#fff0eb;color:#b34121}.featured-admin-badge.new{background:#edf5ff;color:#35659e}.featured-admin-badge.recommended{background:#f2edff;color:#654eb8}
.sale-state.active{background:#edf7f2;color:var(--ok)}.sale-state.inactive{background:#f5e9e9;color:var(--danger)}

.admin-overlay{position:fixed;inset:0;z-index:80;background:rgba(9,11,15,.58);opacity:0;visibility:hidden;transition:.2s}
.admin-overlay.open{opacity:1;visibility:visible}
.product-editor-modal{position:fixed;right:0;top:0;z-index:90;width:min(860px,100%);height:100%;background:#f2f4f7;box-shadow:-26px 0 70px rgba(0,0,0,.24);transform:translateX(102%);transition:.26s;display:flex;flex-direction:column}
.product-editor-modal.open{transform:none}
.product-editor-head{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:82px;padding:16px 23px;background:#fff;border-bottom:1px solid var(--line)}
.product-editor-head h2{margin:0;font-size:25px;letter-spacing:-.04em}
.product-editor-form{min-height:0;display:flex;flex:1;flex-direction:column}
.product-editor-scroll{flex:1;overflow:auto;padding:18px}
.editor-section{margin-bottom:14px;padding:20px;border:1px solid var(--line);border-radius:19px;background:#fff}
.editor-title{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:15px}
.editor-title h3{margin:0;font-size:18px}.editor-title p{max-width:480px;margin:2px 0 0;color:var(--muted);font-size:11px;text-align:right}
.editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.editor-grid .span-2{grid-column:1/-1}
.editor-grid label{font-size:11px}.editor-grid textarea{min-height:88px}
.editor-switch{align-self:end;min-height:46px}
.editor-image-row{display:flex;gap:18px;align-items:center}
.editor-image-preview{position:relative;overflow:hidden;flex:0 0 220px;height:150px;border:1px dashed #bbc1ca;border-radius:16px;background:#f3f5f7;display:grid;place-items:center;color:var(--muted);font-size:12px}
.editor-image-preview img{width:100%;height:100%;object-fit:contain;background:#fff}
.editor-image-actions{display:flex;align-items:flex-start;flex-direction:column;gap:9px}.editor-image-actions small{max-width:330px;color:var(--muted);overflow-wrap:anywhere}
.danger-text{color:var(--danger)!important}
.custom-pricing-editor{border-color:#d9d2fa;background:linear-gradient(180deg,#fff,#faf9ff)}
.dimension-grid{grid-template-columns:repeat(4,1fr)}
.dimension-grid .span-2{grid-column:1/-1}
.calculator-rule-note{display:grid;gap:3px;margin-top:13px;padding:13px;border-radius:12px;background:#eeeafb;color:#514693;font-size:11px}.calculator-rule-note b{font-size:12px}
.product-editor-foot{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 20px;background:#fff;border-top:1px solid var(--line);box-shadow:0 -10px 26px rgba(0,0,0,.05)}
.editor-status{max-width:470px;color:var(--muted);font-size:11px}.editor-status:not(:empty){overflow-wrap:anywhere}

@media(max-width:1260px){
  .global-search{max-width:330px}.shop-header-row .nav{display:none}
  .featured-grid,.recent-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:1000px){
  .shop-header-row{flex-wrap:wrap;padding-top:10px;padding-bottom:10px}
  .global-search{order:3;max-width:none;flex-basis:100%;margin:0}
  .catalog-category-grid{grid-template-columns:repeat(2,1fr)}
  .featured-grid,.recent-grid{grid-template-columns:repeat(2,1fr)}
  .related-grid{grid-template-columns:repeat(2,1fr)}
  .category-management-grid{grid-template-columns:1fr}
  .subcategory-add-form{grid-template-columns:1fr 1fr auto}
}
@media(max-width:760px){
  .hero-points{gap:7px 12px;font-size:11px}
  .catalog-controls{justify-content:flex-start;width:100%}.product-section-title{align-items:flex-start;flex-direction:column}
  .featured-grid,.recent-grid{grid-template-columns:1fr}
  .product-detail-modal{max-height:96vh}.detail-modal-scroll{max-height:calc(96vh - 72px)}
  .product-detail-body{padding:18px}.detail-tabs{margin:0 18px;overflow:auto}.detail-tab{min-width:105px;padding:13px 12px}
  .detail-tab-panel,.related-products{margin-left:18px;margin-right:18px}.related-grid{grid-template-columns:1fr}
  .processing-options{grid-template-columns:1fr}.calculator-grid{grid-template-columns:1fr}.calculator-grid .full{grid-column:auto}
  .lookup-order-card dl{grid-template-columns:auto 1fr}
  .category-add-form,.subcategory-add-form{grid-template-columns:1fr}.product-admin-toolbar input{max-width:none;flex-basis:100%}.product-admin-toolbar .meta{margin-left:0}
  .product-editor-modal{width:100%}.editor-title{flex-direction:column}.editor-title p{text-align:left}
  .editor-grid,.dimension-grid{grid-template-columns:1fr}.editor-grid .span-2,.dimension-grid .span-2{grid-column:auto}
  .editor-image-row{align-items:flex-start;flex-direction:column}.editor-image-preview{width:100%;flex-basis:auto}
  .product-editor-foot{align-items:flex-start;flex-direction:column}.product-editor-foot .row{width:100%}.product-editor-foot .btn{flex:1}
}
@media(max-width:560px){
  .shop-header-row .brand{max-width:48vw;overflow:hidden}.shop-header-row .header-actions .btn{font-size:11px;padding:0 9px}
  .catalog-category-grid{grid-template-columns:1fr}
  .subcategory-strip{padding:12px}
  .featured-tab{min-width:0;flex:1}
  .detail-tab-panel .spec-list{grid-template-columns:1fr}.detail-tab-panel .spec-list dt{padding-bottom:3px;border-bottom:0}.detail-tab-panel .spec-list dd{padding-top:3px}
  .category-management-grid>section{padding:12px}.subcategory-admin-group{grid-template-columns:1fr}
}

/* v0.6.0 견적·도면 접수 */
.lookup-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:16px;padding:5px;border-radius:15px;background:#eef1f4}
.lookup-tab{min-height:42px;border:0;border-radius:11px;background:transparent;color:var(--muted);font-weight:900}
.lookup-tab.active{background:#fff;color:var(--text);box-shadow:0 5px 16px rgba(20,24,29,.08)}
.lookup-panel{display:none}.lookup-panel.active{display:block}
#quoteLookupForm{display:grid;gap:13px}
.quote-request-modal{width:min(860px,calc(100% - 28px))}
.quote-request-guide{display:grid;gap:4px;margin-bottom:18px;padding:15px 17px;border:1px solid #dcd6f6;border-radius:15px;background:#f7f5ff}
.quote-request-guide b{color:#554892}.quote-request-guide span{color:var(--muted);font-size:12px;line-height:1.55}
.quote-file-field input[type=file]{padding:10px;background:#fafbfc}
.quote-file-field small{color:var(--muted);font-weight:650}
.quote-file-list{display:grid;gap:7px;margin:12px 0;padding:13px;border:1px dashed #cbd1d8;border-radius:13px;background:#fafbfc;color:var(--muted);font-size:12px}
.quote-file-list span{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--text)}
.quote-file-list span small{color:var(--muted);font-weight:700}.quote-file-list.error{border-color:#e3a8a8;background:#fff3f3;color:var(--danger)}
.quote-lookup-title{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 0 2px}
.quote-lookup-title span{padding:4px 8px;border-radius:999px;background:#eef1f4;color:var(--muted);font-size:10px;font-weight:850}
.quote-request-description,.customer-reply,.public-attachment-list{margin-top:11px;padding:12px 13px;border-radius:12px;background:#f7f8fa;font-size:12px}
.quote-request-description b,.customer-reply b,.public-attachment-list>b{display:block;margin-bottom:5px}.quote-request-description p,.customer-reply p{margin:0;color:#555c65;line-height:1.65}
.customer-reply{background:#edf7f2;border:1px solid #cde8da}.customer-reply b{color:var(--ok)}
.public-attachment-list{display:grid;gap:5px}.public-attachment-list span{display:flex;justify-content:space-between;gap:12px}.public-attachment-list small{color:var(--muted)}

.admin-tab-count{display:inline-grid;min-width:20px;height:20px;place-items:center;margin-left:5px;padding:0 6px;border-radius:999px;background:#e95d3a;color:#fff;font-size:10px}
.admin-tab.active .admin-tab-count{background:#fff;color:var(--dark)}
.quote-summary{margin-bottom:16px}.quote-admin-card{padding:20px}.quote-table-wrap table{min-width:1200px}
.attachment-count{display:inline-flex;padding:5px 8px;border-radius:999px;background:#f0edff;color:#604db2;font-size:10px;font-weight:900}
.quote-state{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:0 9px;border-radius:999px;font-size:10px;font-weight:950;white-space:nowrap}
.quote-state.new{background:#eef3ff;color:#4261a1}.quote-state.low{background:#fff4df;color:#946009}.quote-state.active{background:#edf7f2;color:var(--ok)}.quote-state.inactive{background:#f1f2f4;color:#6d747e}
.quote-editor-modal{position:fixed;right:0;top:0;z-index:90;width:min(900px,100%);height:100%;background:#f2f4f7;box-shadow:-26px 0 70px rgba(0,0,0,.24);transform:translateX(102%);transition:.26s;display:flex;flex-direction:column}
.quote-editor-modal.open{transform:none}.quote-editor-form{min-height:0;display:flex;flex:1;flex-direction:column}.quote-editor-scroll{flex:1;overflow:auto;padding:18px}
.quote-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.quote-detail-grid .editor-section{min-width:0}
.quote-detail-list{display:grid;grid-template-columns:100px 1fr;gap:8px 12px;margin:0;font-size:12px}.quote-detail-list dt{color:var(--muted)}.quote-detail-list dd{margin:0;font-weight:800;overflow-wrap:anywhere}
.quote-description-box{margin-top:15px;padding:13px;border-radius:12px;background:#f5f7f9}.quote-description-box b{display:block;margin-bottom:5px;font-size:12px}.quote-description-box p{margin:0;color:#525963;font-size:12px;line-height:1.65}
.quote-attachment-admin-list{display:grid;gap:8px}.quote-attachment-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 14px;border:1px solid var(--line);border-radius:13px;background:#fafbfc}
.quote-attachment-row:hover{border-color:#9a8de0;background:#f8f6ff}.quote-attachment-row span b,.quote-attachment-row span small{display:block}.quote-attachment-row span small{margin-top:3px;color:var(--muted);font-size:10px}.quote-attachment-row em{color:#604db2;font-style:normal;font-size:11px;font-weight:900}

@media(max-width:760px){
  .quote-detail-grid{grid-template-columns:1fr}.quote-editor-modal{width:100%}.lookup-tabs{grid-template-columns:1fr 1fr}.quote-lookup-title{align-items:flex-start;flex-direction:column}
}
