/* Clykay shop admin
   Minimal panel layout: dark top band, white rounded sheet, grey sidebar,
   thin-bordered cards, small type. Accent = Clykay blue. */
:root {
  --accent: #0d56d6; --accent-50: #eef3fd; --accent-100: #dfe8fb;
  --band: #00151d; --text: #1d1e20; --muted: #6d7081; --line: #e3e4e8; --line-2: #eeeff2;
  --side: #f4f5f7; --bg: #ffffff; --hover: #f6f7f9;
  --green: #00b090; --green-50: #def4f0; --amber: #c2410c; --amber-50: #fff4e8; --red: #dc2626; --red-50: #fdeeee;
  --r: 8px; --r-box: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "DM Sans", system-ui, sans-serif; font-size: 14px; line-height: 1.5; color: var(--text); background: #101317; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: inherit; color: var(--text); margin: 0; font-weight: 500; }
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 1.6; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: var(--r); border: 1px solid transparent; font: 600 14px "DM Sans", sans-serif; cursor: pointer; white-space: nowrap; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.btn--sm { height: 32px; padding: 0 16px; font-size: 12px; }
.btn--block { width: 100%; height: 44px; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #0a47b5; color: #fff; }
.btn--dark { background: var(--text); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--line, .btn--ghost { background: #fff; border-color: var(--line); color: var(--text); }
.btn--line:hover, .btn--ghost:hover { border-color: #c9cbd2; background: var(--hover); }
.btn--accent { color: var(--accent); }
.btn--danger { background: #fff; color: var(--red); border-color: #f3c9c9; }
.btn--danger:hover { background: var(--red-50); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: #b91c1c; color: #fff; }
.btn:disabled { opacity: 0.6; cursor: progress; }
.icon-btn { width: 32px; height: 32px; border-radius: var(--r); border: 0; background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.icon-btn:hover { background: var(--hover); color: var(--text); }
.icon-btn--danger:hover { background: var(--red-50); color: var(--red); }
.circ { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--text); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.circ:hover { background: var(--hover); border-color: #c9cbd2; color: var(--text); }
.circ--sm { width: 28px; height: 28px; font-size: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 6px; background: var(--accent-50); color: var(--accent); font-size: 12px; font-weight: 600; }
.chip:hover { background: var(--accent-100); }
.chip i { font-size: 11px; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 6px; background: var(--line-2); font-size: 12px; font-weight: 500; color: var(--text); white-space: nowrap; }
.tag--ok { background: var(--green-50); color: #00806a; }
.st { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.st i { font-size: 15px; }
.st--ok i { color: var(--green); }
.st--warn i { color: #e8a33b; }

/* ---------- fields ---------- */
.field { display: block; margin-bottom: 16px; position: relative; }
.field > span { display: block; font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.field > span small { font-weight: 400; color: var(--muted); margin-left: 4px; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
  width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r); background: #fff;
  font: 14px "DM Sans", sans-serif; color: var(--text); outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(13, 86, 214, 0.1); }
input::placeholder, textarea::placeholder { color: #9a9caa; }
.is-invalid { border-color: var(--red) !important; }
.count { position: absolute; right: 10px; bottom: 8px; font-style: normal; font-size: 11px; color: var(--muted); }
.prefix { display: flex; }
.prefix em { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line); border-right: 0; border-radius: var(--r) 0 0 var(--r); background: var(--side); font-style: normal; font-weight: 500; color: var(--muted); font-size: 13px; }
.prefix input { border-radius: 0 var(--r) var(--r) 0 !important; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-err { min-height: 18px; margin: 2px 0 10px; color: var(--red); font-size: 13px; }

.switch { display: inline-flex; align-items: center; gap: 10px; height: 40px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; }
.switch i { position: relative; width: 36px; height: 20px; border-radius: 10px; background: #cfd2da; transition: background 0.2s; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform 0.2s; }
.switch input:checked + i { background: var(--green); }
.switch input:checked + i::after { transform: translateX(16px); }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch b { font-weight: 500; font-size: 13px; }
.switch__on { display: none; color: var(--text); }
.switch__off { color: var(--muted); }
.switch input:checked ~ .switch__on { display: inline; }
.switch input:checked ~ .switch__off { display: none; }
.switch--sm { height: auto; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.pill i { font-size: 7px; }
.pill--in { background: var(--green-50); color: #00806a; }
.pill--out, .pill--warn { background: var(--amber-50); color: var(--amber); }

/* ================= login ================= */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 16px; background: var(--side); }
.login__form { width: 100%; max-width: 340px; }
.login__logo { width: 92px; margin: 0 auto 20px; }
.login__card { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.login__card h1 { font-size: 17px; font-weight: 600; margin-bottom: 2px; }
.login__card > .muted { margin: 0 0 18px; font-size: 13px; }
.login .field { margin-bottom: 12px; }
.login .field > span { font-size: 12px; margin-bottom: 5px; }
.pw { position: relative; }
.pw input { padding-right: 38px !important; height: 36px !important; font-size: 13px !important; }
.pw__eye { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 6px; font-size: 12px; }
.pw__eye:hover { background: var(--hover); }
.login .form-err { min-height: 0; margin: 0 0 12px; font-size: 12px; }
.login .form-err:empty { margin: 0 0 4px; }
.login .btn--block { height: 36px; font-size: 13px; }
.login__foot { margin: 16px 0 0; text-align: center; font-size: 11px; color: var(--muted); }
.login__foot i { margin-right: 5px; }
.shake { animation: shake 0.35s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ================= app shell ================= */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.band { position: sticky; top: 0; flex: 0 0 86px; z-index: 40; display: flex; align-items: center; gap: 14px; height: 86px; padding: 0 20px 22px; overflow: hidden;
  background: linear-gradient(90deg, #101317 0%, #14233d 14%, #173364 27%, #1b448a 40%, #1d4ea3 50%, #1b448c 60%, #173364 73%, #14233c 86%, #101317 100%); }
/* rounded top of the white sheet, pinned with the band so the curve never scrolls away */
.band::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 0; height: 22px; z-index: 2; border-radius: 22px 22px 0 0; background: linear-gradient(90deg, var(--side) 224px, #fff 224px); }
.band > *:not(.band__deco) { position: relative; z-index: 1; }
.band__brand img { width: 104px; }
.band__pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.22); color: #fff; font-size: 12px; font-weight: 600; }
.band__pill i { color: #7fb2ff; }
.band__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.band__btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.06); color: #fff; font: 600 13px "DM Sans", sans-serif; cursor: pointer; }
.band__btn:hover { background: rgba(255,255,255,0.14); }
.band__btn i { color: #7fb2ff; }
.band__icon { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.22); background: transparent; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; cursor: pointer; }
.band__icon:hover { background: rgba(255,255,255,0.1); color: #fff; }
.band__menu { display: none; width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: #fff; font-size: 16px; cursor: pointer; }

.sheet { flex: 1; display: flex; align-items: flex-start; margin: 0 8px; background: var(--bg); overflow: clip; min-height: calc(100vh - 86px); }
.side { flex: 0 0 224px; position: sticky; top: 86px; height: calc(100vh - 86px); overflow-y: auto; display: flex; flex-direction: column; padding: 0 10px 12px; background: var(--side); }
.side__nav { display: grid; gap: 2px; }
.side__nav a, .side__foot button {
  display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 10px; border-radius: var(--r); border: 0; background: none;
  color: var(--text); font: 500 13px "DM Sans", sans-serif; cursor: pointer; text-align: left; width: 100%;
}
.side__nav a i, .side__foot i { width: 16px; text-align: center; font-size: 13px; color: #3b3d4a; }
.side__nav a:hover, .side__foot button:hover { background: rgba(0,0,0,0.04); }
.side__nav a.is-active { background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,0.06); }
.side__nav em { margin-left: auto; font-style: normal; font-size: 10px; font-weight: 600; padding: 1px 8px; border-radius: 6px; background: #e7e8ec; color: var(--muted); }
.side__label { display: flex; align-items: center; justify-content: space-between; margin: 20px 10px 6px; font-size: 11px; font-weight: 500; color: #3b3d4a; }
.side__label i { font-size: 10px; }
.side__foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.side-bg { display: none; }

.main { flex: 1; min-width: 0; }
.notice { display: flex; align-items: center; gap: 14px; padding: 14px 24px; background: var(--green-50); }
.notice > i { color: var(--green); font-size: 18px; }
.notice div { flex: 1; display: flex; flex-direction: column; line-height: 1.45; }
.notice b { font-weight: 600; }
.notice span { font-size: 13px; color: #3b3d4a; }
.wrap { max-width: 1110px; margin: 0 auto; padding: 6px 28px 70px; }
.page-title { font-size: 20px; margin: 4px 0 20px; }
body.is-home .page-title { display: none; }
.view { display: none; }
.view.is-active { display: block; animation: fade 0.2s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(3px); } }

/* section headings + boxes */
.sec { font-size: 19px; font-weight: 500; margin: 34px 0 14px; }
.sec--row { display: flex; align-items: center; justify-content: space-between; }
.sec--row h2 { font-size: 19px; display: flex; align-items: center; gap: 8px; }
.sec--row h2 em { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.sec__nav { display: flex; gap: 6px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--r-box); margin-bottom: 20px; }
.box--row { display: flex; align-items: center; gap: 18px; padding: 18px 20px; }
.box--flush { overflow: hidden; margin-top: 34px; }
.box__ic { flex: 0 0 46px; height: 46px; border-radius: 10px; background: var(--accent-50); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.box__txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.box__txt b { font-weight: 500; font-size: 15px; }
.box__txt span { color: var(--muted); font-size: 13px; }
.box__title { font-size: 19px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.box__more { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; border-top: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.box__more:hover { background: var(--hover); }

/* dashboard search */
.ask { position: relative; display: flex; align-items: center; gap: 10px; max-width: 640px; height: 50px; margin: 0 auto 10px; padding: 0 8px 0 20px; border-radius: 14px; background: #fff; box-shadow: 0 2px 12px rgba(16,24,40,0.08); border: 1px solid var(--line-2); }
.ask > i { color: var(--muted); }
.ask input { flex: 1; height: 100% !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; font-size: 15px !important; background: transparent !important; }
.ask input::-webkit-search-cancel-button { display: none; }
.ask__plus { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: var(--text); font-size: 15px; border-radius: 8px; }
.ask__plus:hover { background: var(--hover); color: var(--text); }
.ask__go { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--accent); color: #fff; cursor: pointer; font-size: 14px; }
.ask__go:hover { background: #0a47b5; }

/* your shop row */
.biz { display: flex; align-items: center; gap: 14px; padding: 16px; border-bottom: 1px solid var(--line); }
.biz__logo { flex: 0 0 40px; height: 40px; border-radius: 10px; background: var(--band); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.biz__logo img { width: 26px; }
.biz__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.biz__txt a { color: var(--text); font-size: 15px; font-weight: 500; }
.biz__txt a i { font-size: 11px; margin-left: 4px; }
.biz__txt a:hover { color: var(--accent); }
.biz__txt span { font-size: 12px; color: var(--muted); }
.biz__acts { display: flex; align-items: center; gap: 8px; }
.biz__foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 24px; }

/* recently updated */
.recent { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 3); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.recent::-webkit-scrollbar { display: none; }
.rcard { scroll-snap-align: start; display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-box); background: #fff; color: var(--text); transition: border-color 0.15s; }
.rcard:hover { border-color: #c9cbd2; color: var(--text); }
.rcard__img { flex: 0 0 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--side); display: flex; align-items: center; justify-content: center; color: #a3a6b4; font-size: 20px; }
.rcard__img img { width: 100%; height: 100%; object-fit: cover; }
.rcard__txt { min-width: 0; display: flex; flex-direction: column; }
.rcard b { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcard small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* generic cards (products / editor / media) */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-box); padding: 20px 24px; margin-bottom: 20px; }
.card--flush { padding: 0; overflow: hidden; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card__head h3, .card__title { font-size: 16px; font-weight: 500; }
.card__title { margin-bottom: 16px; }
.card__head a:not(.btn) { font-size: 13px; font-weight: 600; }

/* ---------- tables ---------- */
.tbar { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.search { position: relative; flex: 1 1 240px; }
.search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; }
.search input { padding-left: 36px !important; }
.tbar select { width: auto; min-width: 140px; }
.tbar__add { margin-left: auto; }
.bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 16px; background: var(--accent-50); border-bottom: 1px solid var(--accent-100); }
.bulk span { font-weight: 600; font-size: 13px; color: var(--accent); margin-right: 6px; }
.bulk select { width: auto; height: 32px; font-size: 13px; }
.tablewrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { padding: 14px 16px; background: #fff; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; font-weight: 500; color: var(--text); white-space: nowrap; }
.table th.sortable { cursor: pointer; user-select: none; }
.table th.sortable::after { content: "\f883"; font-family: "Font Awesome 6 Pro"; font-weight: 400; margin-left: 8px; font-size: 12px; color: var(--muted); }
.table th.sortable:hover::after, .table th.is-sorted::after { color: var(--accent); }
.table th.is-sorted { color: var(--accent); }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 14px; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fbfbfc; }
.table tr.is-selected { background: var(--accent-50); }
.c-check { width: 44px; }
.c-act { width: 110px; text-align: right; white-space: nowrap; }
.table input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.prod { display: flex; align-items: center; gap: 14px; min-width: 220px; }
.prod__img { flex: 0 0 44px; height: 44px; border-radius: 10px; overflow: hidden; background: var(--side); display: flex; align-items: center; justify-content: center; color: #a3a6b4; }
.prod__img--sm { flex-basis: 40px; height: 40px; border-radius: 50%; color: var(--accent); background: var(--accent-50); font-size: 14px; }
.prod__img--tile { flex-basis: 48px; height: 48px; border-radius: 10px; background: var(--side); color: var(--accent); font-size: 17px; }
.prod__img img { width: 100%; height: 100%; object-fit: cover; }
.prod a, .prod b { color: var(--text); font-weight: 500; line-height: 1.35; }
.prod a:hover { color: var(--accent); }
.prod small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.price small { color: var(--muted); }
.empty { padding: 56px 20px; text-align: center; color: var(--muted); }
.empty i { font-size: 30px; margin-bottom: 8px; }
.tfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.pager { display: flex; gap: 4px; }
.pager button, .pager span { min-width: 32px; height: 32px; padding: 0 8px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; font: 500 13px "DM Sans", sans-serif; color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.pager span { border-color: transparent; cursor: default; }
.pager button.is-active { background: var(--text); border-color: var(--text); color: #fff; }
.pager button:disabled { opacity: 0.4; cursor: default; }

/* ---------- editor ---------- */
.edhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.edhead__right { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.edgrid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.edgrid > div:last-child { position: sticky; top: 106px; }
.rte { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.rte:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(13, 86, 214, 0.1); }
.rte__bar { display: flex; gap: 2px; padding: 4px; border-bottom: 1px solid var(--line); background: var(--side); }
.rte__bar button { width: 30px; height: 30px; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; font-size: 13px; }
.rte__bar button:hover { background: #fff; color: var(--text); }
.rte__body { min-height: 220px; max-height: 480px; overflow-y: auto; padding: 12px 14px; outline: none; line-height: 1.65; font-size: 14px; }
.rte__body h3 { font-size: 15px; font-weight: 600; margin: 14px 0 6px; }
.rte__body p { margin: 0 0 10px; }
.rte__body:empty::before { content: "Describe the product: features, specifications, uses..."; color: #9a9caa; }
.vars { display: grid; gap: 8px; margin: 12px 0; }
.var { display: grid; grid-template-columns: 1fr 160px 32px; gap: 8px; align-items: center; }
.var .prefix em { padding: 0 10px; font-size: 12px; }
.drop { position: relative; aspect-ratio: 1; border: 1px dashed #c9cbd2; border-radius: 12px; background: var(--side); overflow: hidden; display: flex; align-items: center; justify-content: center; transition: border-color 0.2s, background 0.2s; }
.drop.is-over { border-color: var(--accent); background: var(--accent-50); }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop__empty { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); margin-bottom: 64px; font-size: 13px; }
.drop__empty i { font-size: 28px; color: #b3b6c2; }
.drop__empty b { color: var(--text); font-weight: 500; }
.drop__btns { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; }
.drop img:not([hidden]) ~ .drop__btns { opacity: 0; transition: opacity 0.2s; }
.drop:hover .drop__btns, .drop:focus-within .drop__btns { opacity: 1; }
.drop.is-busy::after { content: "Uploading..."; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.85); font-weight: 600; color: var(--accent); }
.pv { max-width: 220px; margin: 0 auto; }
.pv__img { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--side); margin-bottom: 10px; display: flex; align-items: center; justify-content: center; color: #a3a6b4; font-size: 34px; }
.pv__img img { width: 100%; height: 100%; object-fit: cover; }
.pv__cat { font-size: 11px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: var(--muted); }
.pv__name { margin: 4px 0 8px; font-weight: 500; line-height: 1.4; }
.pv__price { font-weight: 600; }
.pv__price small { font-weight: 400; font-size: 12px; color: var(--muted); }

/* ---------- media ---------- */
.mtabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.mtabs button { height: 30px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line); background: #fff; font: 500 13px "DM Sans", sans-serif; color: var(--text); cursor: pointer; }
.mtabs button:hover { background: var(--hover); }
.mtabs button.is-active { background: var(--text); border-color: var(--text); color: #fff; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.mitem { position: relative; margin: 0; }
.mitem__img { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--side); border: 2px solid transparent; }
.mitem__img img { width: 100%; height: 100%; object-fit: cover; }
.mitem figcaption { margin-top: 6px; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mgrid--pick .mitem { cursor: pointer; }
.mgrid--pick .mitem:hover .mitem__img { border-color: var(--accent); }

/* ---------- modal & toasts ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0,21,29,0.45); animation: fade 0.15s; }
.modal__box { width: 100%; max-width: 400px; max-height: 88vh; overflow: auto; padding: 24px; border-radius: var(--r-box); background: #fff; text-align: center; }
.modal__box--wide { max-width: 880px; text-align: left; }
.modal__icon { width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 50%; background: var(--red-50); color: var(--red); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.modal__box h3 { font-size: 17px; margin-bottom: 6px; }
.modal__btns { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: grid; gap: 8px; }
.toast { display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: 380px; padding: 12px 16px; border-radius: 10px; background: var(--text); color: #fff; font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); animation: fade 0.2s; }
.toast i { color: #4ade80; }
.toast--err i { color: #f87171; }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
  .edgrid { grid-template-columns: 1fr; }
  .edgrid > div:last-child { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .recent { grid-auto-columns: calc((100% - 16px) / 2); }
}
@media (max-width: 991px) {
  .band__menu { display: inline-flex; align-items: center; justify-content: center; }
  .band__pill { display: none; }
  .sheet { margin: 0; }
  .band::after { left: 0; right: 0; border-radius: 18px 18px 0 0; background: #fff; }
  .side { position: fixed; top: 86px; bottom: 0; padding-top: 12px; left: 0; z-index: 35; width: 240px; height: auto; transform: translateX(-100%); transition: transform 0.25s; }
  body.side-open .side { transform: none; }
  body.side-open .side-bg { display: block; position: fixed; inset: 86px 0 0 0; z-index: 30; background: rgba(0,21,29,0.4); }
  .wrap { padding: 20px 16px 60px; }
}
@media (max-width: 640px) {
  .band { padding: 0 12px; gap: 8px; }
  .band__btn span { display: none; }
  .row2, .edgrid > div:last-child { grid-template-columns: 1fr; }
  .c-hide-sm { display: none; }
  .tbar select { flex: 1; min-width: 0; }
  .tbar__add { width: 100%; }
  .var { grid-template-columns: 1fr 110px 32px; }
  .box--row { flex-wrap: wrap; }
  .biz { flex-wrap: wrap; }
  .biz__acts { width: 100%; }
  .biz__acts .btn { margin-left: auto; }
  .recent { grid-auto-columns: 85%; }
  .notice { flex-wrap: wrap; padding: 12px 16px; }
}
.table td.price, .table .switch b, .table td.c-hide-sm { white-space: nowrap; }

/* ---------- hPanel details: band art, notice close, row actions, menus, expanders, reco cards ---------- */
.band__deco { position: absolute; inset: 0; pointer-events: none; }
.band__drop { position: absolute; background: linear-gradient(145deg, #ffffff 0%, #c9d6ee 30%, #6f86b3 55%, #e8eefb 75%, #8aa0c8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45)); }
.band__drop--a { left: 36%; top: -10px; font-size: 58px; transform: rotate(-18deg); }
.band__drop--b { left: 62%; top: 10px; font-size: 50px; transform: rotate(14deg); background: linear-gradient(145deg, #6aa8ff 0%, #2c63d8 40%, #0e2f86 70%, #4f8cf0 100%); -webkit-background-clip: text; background-clip: text; }
.band__drop--c { left: 47%; top: 30px; font-size: 26px; transform: rotate(-10deg); opacity: 0.85; }
.notice__x { width: 30px; height: 30px; border: 0; border-radius: 6px; background: transparent; color: var(--text); font-size: 15px; cursor: pointer; }
.notice__x:hover { background: rgba(0, 0, 0, 0.06); }

.acts { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; }
.c-act { width: 150px; }
.kb { position: relative; display: inline-block; }
.kb__btn { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; color: var(--accent); cursor: pointer; font-size: 14px; }
.kb__btn:hover, .kb.is-open .kb__btn { background: var(--accent-50); border-color: var(--accent-100); }
.kb__menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 200px; padding: 8px; border-radius: 12px; background: #fff; box-shadow: 0 8px 30px rgba(16, 24, 40, 0.14), 0 0 0 1px rgba(16, 24, 40, 0.04); display: none; text-align: left; }
.kb.is-up .kb__menu { top: auto; bottom: calc(100% + 6px); }
.kb.is-open .kb__menu { display: block; animation: fade 0.12s ease; }
.kb__menu a, .kb__menu button { display: flex; align-items: center; gap: 14px; width: 100%; height: 40px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--text); font: 400 14px "DM Sans", sans-serif; cursor: pointer; white-space: nowrap; }
.kb__menu a:hover, .kb__menu button:hover { background: var(--hover); color: var(--text); }
.kb__menu i { width: 18px; text-align: center; font-size: 15px; color: var(--text); }
.kb__menu .is-danger, .kb__menu .is-danger i { color: var(--red); }
.kb__menu hr { margin: 6px 12px; border: 0; border-top: 1px solid var(--line); }
.tablewrap { overflow: visible; }
@media (max-width: 991px) { .tablewrap { overflow-x: auto; } }

.c-exp { width: 52px; padding-right: 0 !important; }
.exp { width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--accent); cursor: pointer; font-size: 13px; transition: transform 0.2s, background 0.15s; }
.exp:hover { background: var(--accent-50); }
.crow.is-open .exp { transform: rotate(180deg); }
.table--dash td { padding-top: 20px; padding-bottom: 20px; }
.crow.is-open td { border-bottom-color: transparent; }
.csub td { padding: 0 16px 18px !important; background: #fff !important; }
.csub__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; padding: 12px; border-radius: 12px; background: var(--side); }
.csub__list a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; background: #fff; color: var(--text); min-width: 0; }
.csub__list a:hover { box-shadow: 0 0 0 1px var(--accent-100); color: var(--text); }
.csub__list .prod__img { flex: 0 0 36px; height: 36px; border-radius: 8px; font-size: 13px; }
.csub__list span:last-child { min-width: 0; display: flex; flex-direction: column; }
.csub__list b { font-weight: 500; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csub__list small { font-size: 12px; color: var(--muted); }

.reco { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 10px; }
.rc { position: relative; min-height: 240px; padding: 28px 24px; border-radius: 24px; overflow: hidden; background: linear-gradient(135deg, #ffffff 0%, #ffffff 35%, #e3ecff 75%, #cfdfff 100%); box-shadow: inset 0 0 0 1px rgba(13, 86, 214, 0.06); }
.rc--2 { background: linear-gradient(160deg, #ffffff 0%, #f1f6ff 40%, #d9e7ff 100%); }
.rc--3 { background: linear-gradient(135deg, #ffffff 0%, #f2f9ff 40%, #d4ecfa 100%); }
.rc p { position: relative; z-index: 1; margin: 0 0 18px; font-size: 15px; line-height: 1.6; color: var(--text); max-width: 300px; }
.rc .btn { position: relative; z-index: 1; height: 34px; }
.rc__art { position: absolute; right: -10px; bottom: -14px; width: 56%; height: 46%; }
.rc__art img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px 0 0 0; box-shadow: 0 10px 30px rgba(16, 24, 40, 0.15); transform: rotate(-4deg); transform-origin: bottom right; }
.rc__tile { position: absolute; left: -18px; top: -20px; width: 48px; height: 48px; border-radius: 14px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; box-shadow: 0 8px 20px rgba(13, 86, 214, 0.35); transform: rotate(8deg); }
.rc--3 .rc__tile { background: #fff; color: var(--accent); }
@media (max-width: 1199px) { .reco { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .reco { grid-template-columns: 1fr; } .band__deco { display: none; } }

/* ---------- popup dialog ---------- */
.modal { backdrop-filter: blur(2px); }
.modal.is-out { animation: fadeOut 0.15s ease forwards; }
@keyframes fadeOut { to { opacity: 0; } }
.dlg { position: relative; width: 100%; max-width: 400px; padding: 32px 28px 24px; border-radius: 20px; background: #fff; text-align: center; box-shadow: 0 30px 70px rgba(0, 21, 29, 0.25); animation: pop 0.2s cubic-bezier(.2,.9,.3,1.2); }
.modal.is-out .dlg { animation: popOut 0.15s ease forwards; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.96); } }
@keyframes popOut { to { opacity: 0; transform: scale(0.97); } }
.dlg__x { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font-size: 15px; }
.dlg__x:hover { background: var(--hover); color: var(--text); }
.dlg__icon { position: relative; width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.dlg__icon::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 8px solid currentColor; opacity: 0.08; }
.dlg__icon--success { background: var(--green-50); color: var(--green); }
.dlg__icon--danger { background: var(--red-50); color: var(--red); }
.dlg__icon--warning { background: var(--amber-50); color: #d97706; }
.dlg__icon--info { background: var(--accent-50); color: var(--accent); }
.dlg h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.dlg p { margin: 0 auto; max-width: 320px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.dlg__btns { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; margin-top: 24px; }
.dlg__btns .btn { height: 40px; }

/* ================= Laravel back office additions ================= */
.flash { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 18px; border-radius: 12px; background: var(--green-50); color: #00594a; font-size: 14px; }
.flash i { color: var(--green); }
.flash--err { background: var(--red-50); color: #8f1d1d; }
.flash--err i { color: var(--red); }
.flash--warn { background: var(--amber-50); color: #7c2d12; }
.flash--warn i { color: var(--amber); }
.flash ul { margin: 0; padding-left: 18px; }
.err { display: block; margin-top: 4px; color: var(--red); font-size: 12px; }
.help { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.row4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-box); background: #fff; color: var(--text); display: flex; flex-direction: column; gap: 6px; }
a.stat:hover { border-color: #c9cbd2; color: var(--text); }
.stat span { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.stat span i { color: var(--accent); }
.stat b { font-size: 22px; font-weight: 600; }
.stat small { color: var(--muted); font-size: 12px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.grid-side { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 10px; border-radius: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--line-2); color: var(--text); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.7; }
.badge--pending, .badge--unpaid, .badge--new { background: var(--amber-50); color: var(--amber); }
.badge--processing, .badge--initiated { background: var(--accent-50); color: var(--accent); }
.badge--dispatched { background: #efeafd; color: #5b3cc4; }
.badge--completed, .badge--paid, .badge--handled, .badge--in { background: var(--green-50); color: #00806a; }
.badge--cancelled, .badge--failed, .badge--spam, .badge--out { background: var(--red-50); color: var(--red); }
.badge--refunded, .badge--hidden { background: var(--line-2); color: var(--muted); }
.dl { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; margin: 0; font-size: 14px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; word-break: break-word; }
.totals { margin-left: auto; max-width: 320px; display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; padding: 16px 24px; font-size: 14px; }
.totals .grand { font-weight: 600; font-size: 16px; padding-top: 8px; border-top: 1px solid var(--line); }
.inline-form { display: flex; gap: 8px; align-items: flex-start; }
.inline-form input, .inline-form select { flex: 1; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.rep { display: grid; gap: 8px; }
.rep__row { display: grid; grid-template-columns: 1fr 1fr 32px; gap: 8px; align-items: center; }
.rep__row--opt { grid-template-columns: 180px 1fr 32px; }
.vtable input:not([type=checkbox]) { height: 34px; font-size: 13px; }
.vtable td { padding: 8px 10px; }
.vtable th { padding: 10px; font-size: 13px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; margin-top: 12px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--side); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb form { position: absolute; top: 4px; right: 4px; }
.thumb button { width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(255,255,255,0.92); color: var(--red); cursor: pointer; font-size: 12px; }
.preview-img { width: 100%; aspect-ratio: 1; border-radius: 12px; object-fit: cover; background: var(--side); margin-bottom: 10px; }
.qr { display: flex; justify-content: center; padding: 12px; margin: 10px 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.qr svg { width: 180px; height: 180px; }
.secret { display: block; padding: 8px 10px; border-radius: 8px; background: var(--side); font: 600 13px ui-monospace, monospace; letter-spacing: 1px; text-align: center; word-break: break-all; margin-bottom: 12px; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; padding: 14px; border-radius: 12px; background: var(--side); font: 600 14px ui-monospace, monospace; text-align: center; }
.login__card--wide { max-width: 380px; }
.login__form--wide { max-width: 380px; }
.toggle-link { background: none; border: 0; padding: 0; color: var(--accent); font: 500 12px "DM Sans", sans-serif; cursor: pointer; margin-top: 10px; }
.mono { font-family: ui-monospace, monospace; font-size: 13px; }
.diff { margin: 0; padding: 0; list-style: none; font-size: 12px; color: var(--muted); }
.diff b { color: var(--text); font-weight: 500; }
.diff del { color: var(--red); }
.diff ins { color: #00806a; text-decoration: none; }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt0 { margin-top: 0; }
.sec:first-child { margin-top: 0; }
.danger-zone { border-color: #f3c9c9; }
.stock-form { display: inline-flex; gap: 6px; align-items: center; }
.stock-form input[type=number] { width: 84px; height: 32px; font-size: 13px; }
details.stock-more summary { cursor: pointer; color: var(--accent); font-size: 12px; font-weight: 600; list-style: none; }
details.stock-more[open] { margin-top: 6px; }
.stock-grid { display: grid; gap: 6px; margin-top: 8px; }
.stock-grid label { display: grid; grid-template-columns: 1fr 84px auto; gap: 6px; align-items: center; font-size: 12px; }
.stock-grid input[type=number] { height: 30px; font-size: 12px; }
.rte__body ul, .rte__body ol { padding-left: 20px; margin: 0 0 10px; }
@media (max-width: 1199px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-side { grid-template-columns: 1fr; } }
@media (max-width: 991px) { .grid2 { grid-template-columns: 1fr; } .row3, .row4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .stats, .row3, .row4 { grid-template-columns: 1fr; } .dl { grid-template-columns: 1fr; } .rep__row, .rep__row--opt { grid-template-columns: 1fr 1fr 32px; } }

/* print (invoice) */
.invoice { max-width: 820px; margin: 30px auto; padding: 40px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-box); }
.invoice__head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.invoice__head img { width: 120px; }
.invoice h1 { font-size: 22px; font-weight: 600; }
.invoice .table th, .invoice .table td { padding: 10px 8px; }
.invoice-bar { max-width: 820px; margin: 20px auto 0; display: flex; gap: 8px; justify-content: flex-end; }
body.print-page { background: var(--side); }
@media print {
  body.print-page { background: #fff; }
  .invoice-bar { display: none; }
  .invoice { border: 0; margin: 0; padding: 0; max-width: none; }
}
.side__foot-link { display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 10px; border-radius: var(--r); color: var(--text); font: 500 13px "DM Sans", sans-serif; }
.side__foot-link i { width: 16px; text-align: center; font-size: 13px; color: #3b3d4a; }
.side__foot-link:hover { background: rgba(0,0,0,0.04); color: var(--text); }
.side__foot-link.is-active { background: #fff; }
