/* Aura Collections — admin dashboard (extends styles.css) */
body.admin { background: var(--bg-2); padding-bottom: 60px; }
.a-top { position: sticky; top: 0; z-index: 30; background: var(--ink); color: #EFE7D3; }
.a-top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.a-top .logo .mark { color: #fff; font-size: 24px; } .a-top .logo .mark em { color: var(--gold); }
.a-top .logo .sub { color: #B9C6B4; }
.a-top .acts { display: flex; gap: 8px; }
.a-top .btn.ghost { color: #EFE7D3; box-shadow: inset 0 0 0 1px rgba(239,231,211,.3); min-height: 40px; padding: 0 14px; font-size: 14px; }
.a-top .btn.ghost:hover { background: rgba(255,255,255,.08); }
.a-main { padding-top: 24px; }
.tabs { display: flex; gap: 6px; background: var(--card); padding: 6px; border-radius: 999px; box-shadow: var(--shadow); width: max-content; max-width: 100%; overflow-x: auto; margin-bottom: 24px; }
.tabs button { border: 0; background: none; height: 42px; padding: 0 18px; border-radius: 999px; cursor: pointer; font-size: 15px; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--sage); color: #fff; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.panel-head h2 { font-size: 32px; }
.panel-head p { margin: 4px 0 0; color: var(--ink-soft); font-size: 14.5px; }
.add-btn { min-height: 54px; font-size: 16px; padding: 0 26px; }
.notice { background: #F1E4C6; color: #5F4A22; border-radius: 12px; padding: 14px 16px; display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 18px; font-size: 14.5px; }
.notice.info { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filters .search { flex: 1 1 240px; }
.field select, .filters select { height: 44px; border-radius: 12px; border: 0; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); padding: 0 12px; font-size: 15px; }
.plist { display: grid; gap: 12px; }
.prow { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; background: var(--card); border-radius: 14px; padding: 10px; box-shadow: var(--shadow); }
.prow img { width: 76px; height: 95px; object-fit: cover; border-radius: 10px; background: var(--bg-2); }
.prow h3 { font-size: 20px; }
.prow .meta { margin-top: 2px; }
.toggles { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tgl { border: 0; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; cursor: pointer; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-soft); }
.tgl.on { background: var(--sage); color: #fff; box-shadow: none; }
.tgl.sold.on { background: var(--sold); }
.tgl.new.on { background: var(--gold); }
.prow .row-acts { display: flex; flex-direction: column; gap: 6px; }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; border: 0; background: var(--bg-2); cursor: pointer; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.icon-btn:hover { background: var(--bg); }
.icon-btn.danger:hover { background: #F6E1DC; color: var(--sold); }
.icon-btn svg { width: 19px; height: 19px; }
@media (max-width: 560px) { .prow { grid-template-columns: 64px 1fr; } .prow img { width: 64px; height: 80px; } .prow .row-acts { grid-column: 1 / -1; flex-direction: row; } .prow .row-acts .btn { flex: 1; } }

/* editor sheet */
.sheet { position: fixed; inset: 0; z-index: 60; background: rgba(23,36,26,.5); display: none; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 24px 12px; }
.sheet.on { display: flex; animation: fade .2s; }
.sheet .box { background: var(--card); width: 100%; max-width: 720px; border-radius: 20px; box-shadow: var(--shadow-lg); padding: 26px; position: relative; }
.sheet h2 { font-size: 30px; margin-bottom: 4px; }
.sheet .close { position: absolute; top: 14px; right: 14px; }
.step { margin-top: 24px; }
.step > label, .step > .lbl { display: flex; align-items: center; gap: 10px; font-weight: 500; margin-bottom: 10px; }
.step .num { width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; font-size: 13px; flex: none; }
.drop { display: grid; place-items: center; text-align: center; gap: 6px; border: 1.5px dashed var(--gold); background: var(--bg-2); border-radius: 16px; padding: 28px 16px; cursor: pointer; transition: background .2s; }
.drop:hover, .drop.over { background: #EEF4E2; }
.drop b { font: 500 22px/1.2 var(--serif); }
.drop small { color: var(--ink-soft); }
.drop svg { width: 36px; height: 36px; color: var(--gold-deep); }
.pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 12px; }
.pic { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4/5; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.pic .cv { position: absolute; top: 6px; left: 6px; background: var(--gold); color: #fff; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 7px; border-radius: 999px; }
.pic .pa { position: absolute; bottom: 6px; left: 6px; right: 6px; display: flex; justify-content: space-between; }
.pic .pa button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,253,247,.94); cursor: pointer; font-size: 15px; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.field { display: grid; gap: 6px; }
.field input[type=text], .field textarea, .field input[type=email], .field input[type=password] {
  width: 100%; border: 0; border-radius: 12px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); padding: 13px 14px; font-size: 16px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--gold); }
.field select { width: 100%; height: 50px; background: var(--bg-2); font-size: 16px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } .sheet { padding: 0; } .sheet .box { border-radius: 0; min-height: 100%; padding: 22px 18px 110px; } }
.seg { display: flex; background: var(--bg-2); border-radius: 12px; padding: 4px; box-shadow: inset 0 0 0 1px var(--line); }
.seg button { flex: 1; border: 0; background: none; height: 42px; border-radius: 9px; cursor: pointer; font-size: 15px; }
.seg button[aria-pressed="true"] { background: var(--card); box-shadow: var(--shadow); font-weight: 500; }
.seg button.sold[aria-pressed="true"] { color: var(--sold); }
.checks { display: flex; gap: 10px; flex-wrap: wrap; }
.check { display: flex; align-items: center; gap: 10px; background: var(--bg-2); border-radius: 12px; padding: 12px 14px; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); flex: 1 1 200px; }
.check input { width: 20px; height: 20px; accent-color: var(--sage); }
.check small { display: block; color: var(--ink-soft); font-size: 12.5px; }
.sheet-foot { display: flex; gap: 10px; margin-top: 28px; position: sticky; bottom: 0; background: var(--card); padding-top: 12px; }
.sheet-foot .btn { min-height: 54px; font-size: 16px; }
.sheet-foot .btn.primary { flex: 1; }
.status { font-size: 14px; color: var(--ink-soft); margin-top: 10px; min-height: 20px; }
.status.err { color: var(--sold); }
.code-pill { display: inline-block; background: var(--bg-2); border-radius: 999px; padding: 4px 12px; font-size: 13px; color: var(--gold-deep); font-weight: 500; letter-spacing: .08em; }

/* order + categories lists */
.olist { display: grid; gap: 10px; }
.orow { display: grid; grid-template-columns: 36px 56px 1fr auto; gap: 12px; align-items: center; background: var(--card); padding: 10px; border-radius: 14px; box-shadow: var(--shadow); }
.orow .n { font: 500 22px/1 var(--serif); color: var(--gold-deep); text-align: center; }
.orow img { width: 56px; height: 70px; object-fit: cover; border-radius: 8px; }
.orow .ud { display: flex; gap: 6px; }
.crow { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; background: var(--card); padding: 12px 14px; border-radius: 14px; box-shadow: var(--shadow); }
.crow input { border: 0; background: transparent; font: 500 21px/1.2 var(--serif); width: 100%; padding: 6px 8px; border-radius: 8px; }
.crow input:focus { outline: none; background: var(--bg-2); }
.crow small { color: var(--ink-soft); padding-left: 8px; }
.crow .ud { display: flex; gap: 6px; }
.addcat { display: flex; gap: 10px; margin-top: 16px; }
.addcat input { flex: 1; border: 0; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); padding: 0 14px; height: 50px; font-size: 16px; }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--bg); }
.login .box { width: 100%; max-width: 420px; background: var(--card); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 36px 28px; text-align: center; }
.login .box .logo { align-items: center; margin-bottom: 18px; }
.login h1 { font-size: 30px; margin: 6px 0 4px; }
.login form { display: grid; gap: 14px; text-align: left; margin-top: 22px; }
.login .hint { background: #F1E4C6; color: #5F4A22; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; margin-top: 16px; text-align: left; }
.hidden { display: none !important; }

/* brand tab */
.brand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.brand-card { background: var(--card); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.brand-preview { background: var(--bg-2); border-radius: 12px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; box-shadow: inset 0 0 0 1px var(--line); min-height: 84px; overflow: hidden; }
.brand-preview.phone { max-width: 360px; }
.brand-preview.phone .logo-img { height: min(var(--prev-h, 50px), 48px); max-width: 170px; }
.brand-preview.phone .logo.has-img:not(.img-only) .sub { display: none; }
.brand-preview .logo-img { height: var(--prev-h, 50px); }
.brand-preview .ham { width: 22px; height: 12px; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); flex: none; }
#logoDrop img.cur { max-height: 90px; max-width: 100%; object-fit: contain; }
@media (max-width: 760px) { .brand-grid { grid-template-columns: 1fr; } }

/* bulk upload */
.head-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.sheet .box.wide { max-width: 920px; }
.bk-intro, .bk-hint { color: var(--ink-soft); font-size: 14.5px; margin: 8px 0 0; }
.bk-hint { margin: -4px 0 12px; font-size: 13.5px; }
.bk-count { font-weight: 400; color: var(--ink-soft); font-size: 14px; }
.bk-rows { display: grid; gap: 10px; }
.bk-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--bg-2); border-radius: 14px; padding: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.bk-row.done { box-shadow: inset 0 0 0 1.5px var(--sage); background: #EEF4E6; }
.bk-row.err { box-shadow: inset 0 0 0 1.5px var(--sold); }
.bk-row.busy { opacity: .75; }
.bk-thumbs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.bk-thumb { position: relative; flex: none; width: 58px; height: 72px; border-radius: 8px; overflow: hidden; background: var(--card); }
.bk-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bk-thumb button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(255,253,247,.94); cursor: pointer; font-size: 13px; line-height: 1; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.bk-row input[type=text], .bk-row select { width: 100%; border: 0; border-radius: 10px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); padding: 0 12px; height: 44px; font-size: 15px; min-width: 0; }
.bk-row input:focus, .bk-row select:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--gold); }
.bk-row .file { font-size: 11.5px; color: var(--ink-soft); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-acts { display: flex; gap: 6px; }
.bk-acts .icon-btn { width: auto; padding: 0 10px; font-size: 13px; height: 40px; }
.bk-state { font-size: 12.5px; font-weight: 500; }
.bk-state.ok { color: var(--sage-dark); } .bk-state.bad { color: var(--sold); }
.bk-progress { margin-top: 20px; }
.bk-progress .bar { height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.bk-progress .bar i { display: block; height: 100%; width: 0; background: var(--sage); transition: width .3s var(--ease); }
.bk-progress p { margin: 8px 0 0; font-size: 14px; color: var(--ink-soft); }
@media (max-width: 720px) {
  .bk-row { grid-template-columns: 1fr 1fr; }
  .bk-row .bk-thumbs { grid-column: 1 / -1; }
  .bk-row .bk-acts { grid-column: 1 / -1; justify-content: flex-end; }
  .head-acts { width: 100%; } .head-acts .btn { flex: 1; }
}
