:root {
  --brand: #1f7a4d;
  --nav: #11271d;
  --ink: #17221c;
  --muted: #738078;
  --line: #e3e8e4;
  --soft: #f4f7f5;
  --danger: #e24545;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font:
    13px Arial,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 252px;
  background: var(--nav);
  color: #fff;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.admin-logo {
  display: flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  padding: 0 8px;
}
.admin-logo i {
  font-style: normal;
  width: 42px;
  height: 42px;
  background: var(--brand);
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 22px;
  font-weight: bold;
}
.admin-logo span {
  margin-left: 10px;
  display: flex;
  flex-direction: column;
}
.admin-logo b {
  font-size: 19px;
}
.admin-logo small {
  font-size: 7px;
  letter-spacing: 2px;
  color: #91a69a;
}
.workspace {
  margin: 26px 0 17px;
  padding: 14px;
  background: #ffffff0a;
  border: 1px solid #ffffff10;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}
.workspace span,
.card-head small,
.welcome small {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #779087;
}
.workspace b {
  font-size: 12px;
  margin-top: 5px;
}
.workspace small {
  font-size: 9px;
  color: #82978b;
  margin-top: 3px;
}
.sidebar nav {
  display: grid;
  gap: 3px;
  overflow: auto;
}
.sidebar nav button {
  border: 0;
  background: none;
  color: #9db0a5;
  text-align: left;
  padding: 11px 12px;
  border-radius: 6px;
  display: flex;
  gap: 11px;
  align-items: center;
}
.sidebar nav button:hover,
.sidebar nav button.active {
  background: #ffffff10;
  color: #fff;
}
.sidebar nav em {
  font-style: normal;
  margin-left: auto;
  background: #e34a46;
  color: #fff;
  border-radius: 10px;
  font-size: 8px;
  padding: 2px 6px;
}
.store-link {
  margin-top: auto;
  color: #b1c0b8;
  text-decoration: none;
  padding: 12px;
}
.top {
  height: 84px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  margin-left: 252px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}
.top h1 {
  font-size: 22px;
  margin: 3px 0;
}
.top > div > small {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 15px;
}
.admin-search {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 12px;
  color: #9aa39e;
}
.admin-search input {
  border: 0;
  outline: 0;
  width: 190px;
}
.bell {
  border: 1px solid var(--line);
  background: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
}
.profile {
  display: flex;
  align-items: center;
  gap: 9px;
}
.profile > b {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: #dfece5;
  color: var(--brand);
  border-radius: 50%;
}
.profile span {
  display: flex;
  flex-direction: column;
}
.profile small {
  font-size: 9px;
  color: var(--muted);
}
.hamb {
  display: none;
  border: 0;
  background: none;
  font-size: 20px;
}
main {
  margin-left: 252px;
  padding: 28px 30px;
}
.page {
  display: none;
}
.page.active {
  display: block;
}
.welcome,
.pagebar,
.form-head,
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.welcome {
  margin-bottom: 22px;
}
.welcome h2 {
  font-size: 21px;
  margin: 5px 0;
}
.welcome p,
.pagebar p,
.form-head p {
  color: var(--muted);
  margin: 0;
}
.primary,
.secondary,
.danger-btn,
.link {
  border: 0;
  border-radius: 5px;
  padding: 11px 16px;
  font-weight: bold;
}
.primary {
  background: var(--brand);
  color: #fff;
}
.secondary {
  background: #fff;
  border: 1px solid var(--line);
}
.danger-btn {
  background: #fff0f0;
  color: var(--danger);
  margin: 10px;
}
.link {
  background: none;
  color: var(--brand);
  padding: 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.metrics article,
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 19px;
}
.metrics article {
  display: flex;
  gap: 15px;
  align-items: center;
}
.metric-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: bold;
}
.green {
  background: #e3f4ea;
  color: #258556;
}
.orange {
  background: #fff2db;
  color: #d28616;
}
.blue {
  background: #e4efff;
  color: #3476cc;
}
.red {
  background: #ffe7e6;
  color: #dd4b47;
}
.metrics small {
  display: block;
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--muted);
}
.metrics b {
  display: block;
  font-size: 19px;
  margin: 4px 0;
}
.metrics em {
  font-size: 9px;
  color: #29915c;
  font-style: normal;
}
.metrics .danger {
  color: var(--danger);
}
.metrics.mini {
  grid-template-columns: repeat(3, 1fr);
}
.dash-grid,
.settings-columns {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.card h3,
.form-head h3 {
  margin: 4px 0 6px;
}
.chart-bars {
  height: 180px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  gap: 11px;
  padding-top: 20px;
  background: repeating-linear-gradient(#fff, #fff 44px, #edf1ee 45px);
}
.chart-bars i {
  flex: 1;
  background: linear-gradient(var(--brand), #7cb595);
  border-radius: 4px 4px 0 0;
}
.chart-labels {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #89938d;
  margin-top: 9px;
}
.quick-actions > button {
  width: 100%;
  display: flex;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 12px 3px;
  text-align: left;
}
.quick-actions > button span {
  display: flex;
  flex-direction: column;
  margin-left: 12px;
}
.quick-actions small {
  color: var(--muted);
  margin-top: 3px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
th {
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--muted);
  text-align: left;
  background: #fafbfa;
}
th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
}
td {
  font-size: 11px;
}
td small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.status {
  padding: 5px 8px;
  border-radius: 11px;
  font-size: 8px;
  background: #fff1ce;
  color: #a26e0c;
}
.status.success {
  background: #e3f4e9;
  color: #268053;
}
.status.info {
  background: #e5efff;
  color: #316fc0;
}
.pagebar {
  margin-bottom: 18px;
}
.pagebar > div {
  display: flex;
  gap: 8px;
}
.filters {
  background: #fff;
  border: 1px solid var(--line);
  padding: 13px;
  display: flex;
  gap: 10px;
}
.filters label {
  flex: 1;
  border: 1px solid var(--line);
  padding: 8px;
}
.filters input {
  border: 0;
  outline: 0;
  width: 90%;
}
.filters select {
  border: 1px solid var(--line);
  padding: 8px;
  background: #fff;
}
.table-card {
  border-radius: 0;
  padding: 0;
}
.product-cell {
  display: flex;
  align-items: center;
  gap: 11px;
}
.product-cell img {
  width: 45px;
  height: 45px;
  object-fit: cover;
  border-radius: 4px;
}
.row-action {
  border: 0;
  background: none;
  font-size: 19px;
}
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 15px;
}
.tabs button {
  border: 0;
  background: none;
  padding: 10px 14px;
  color: var(--muted);
}
.tabs button.active {
  background: #fff;
  color: var(--brand);
  border-bottom: 2px solid var(--brand);
}
.builder-layout {
  display: grid;
  grid-template-columns: 180px minmax(420px, 1fr) 350px;
  gap: 16px;
  align-items: start;
}
.builder-menu {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px;
  display: grid;
}
.builder-menu button {
  border: 0;
  background: none;
  text-align: left;
  padding: 11px;
  border-radius: 4px;
  color: var(--muted);
}
.builder-menu button.active {
  background: #e8f2ec;
  color: var(--brand);
  font-weight: bold;
}
.builder-content,
.preview {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.settings-panel {
  display: none;
  padding: 22px;
}
.settings-panel.active {
  display: block;
}
.form-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 18px;
}
.settings-panel > label,
.form-card > label,
.modal label {
  display: block;
  font-size: 10px;
  font-weight: bold;
  margin: 14px 0;
}
.settings-panel input,
.settings-panel select,
.settings-panel textarea,
.form-card input,
.form-card select,
.form-card textarea,
.modal input,
.modal select,
.modal textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px;
  margin-top: 6px;
  outline-color: var(--brand);
  background: #fff;
}
.settings-panel textarea,
.form-card textarea,
.modal textarea {
  min-height: 80px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
.color-input {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px;
}
.color-input input[type="color"] {
  height: 39px;
  padding: 2px;
}
.upload-zone {
  border: 1px dashed #bdc9c1;
  background: #fafcfa;
  border-radius: 6px;
  text-align: center;
  padding: 25px;
  display: grid;
  gap: 7px;
  place-items: center;
  color: var(--muted);
}
.switch-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.switch-row span {
  display: flex;
  flex-direction: column;
}
.switch-row small {
  color: var(--muted);
  margin-top: 3px;
}
.switch-row input {
  width: 38px;
  height: 20px;
  accent-color: var(--brand);
}
.code {
  font-family: monospace;
  background: #15251c !important;
  color: #dce9e0;
  min-height: 130px !important;
}
.preview {
  position: sticky;
  top: 110px;
  overflow: hidden;
}
.preview-head {
  display: flex;
  justify-content: space-between;
  padding: 13px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}
.mini-site {
  margin: 14px;
  border: 1px solid var(--line);
  font-size: 7px;
}
.mini-top {
  background: #173f2d;
  color: #fff;
  padding: 6px;
}
.mini-nav {
  height: 35px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
}
.mini-nav i {
  background: var(--brand);
  color: #fff;
  font-style: normal;
  padding: 6px;
}
.mini-nav span {
  height: 15px;
  flex: 1;
  border: 1px solid var(--brand);
}
.mini-nav button {
  background: var(--brand);
  color: #fff;
  border: 0;
  font-size: 6px;
}
.mini-hero {
  height: 190px;
  position: relative;
  color: #fff;
  overflow: hidden;
}
.mini-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mini-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: #10281d8c;
}
.mini-hero div {
  position: absolute;
  z-index: 2;
  left: 18px;
  top: 45px;
  width: 60%;
}
.mini-hero h2 {
  font-size: 15px;
}
.mini-hero button {
  border: 0;
  background: var(--brand);
  color: #fff;
  font-size: 7px;
  padding: 6px;
}
.mini-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 8px;
}
.mini-boxes i {
  height: 35px;
  background: #eef2ef;
}
.shipping-row,
.gateway,
.health {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.shipping-row span {
  display: flex;
  flex-direction: column;
}
.shipping-row small {
  color: var(--muted);
}
.shipping-row strong {
  margin-left: auto;
}
.shipping-row i {
  margin-left: 15px;
  color: #288154;
}
.gateway b,
.health span {
  flex: 1;
}
.gateway span,
.health b {
  color: #288154;
}
.gateway button {
  border: 1px solid var(--line);
  background: #fff;
  padding: 6px;
}
.note {
  background: #f5f8f6;
  border-left: 3px solid var(--brand);
  padding: 11px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}
.modal {
  position: fixed;
  z-index: 41;
  width: min(720px, calc(100% - 30px));
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%);
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}
.modal.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.modal-head button {
  border: 0;
  background: none;
  font-size: 25px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.shade {
  position: fixed;
  inset: 0;
  background: #0008;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
}
.shade.show {
  opacity: 1;
  pointer-events: auto;
}
.toast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  background: #183c2a;
  color: #fff;
  padding: 12px 18px;
  border-radius: 5px;
  z-index: 50;
  transform: translateY(70px);
  opacity: 0;
  transition: 0.25s;
}
.toast.show {
  transform: none;
  opacity: 1;
}
@media (max-width: 1250px) {
  .builder-layout {
    grid-template-columns: 170px 1fr;
  }
  .preview {
    display: none;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 850px) {
  .sidebar {
    transform: translateX(-105%);
    transition: 0.25s;
  }
  .sidebar.open {
    transform: none;
  }
  .top,
  main {
    margin-left: 0;
  }
  .top {
    padding: 0 16px;
  }
  .hamb {
    display: block;
    margin-right: 12px;
  }
  .admin-search,
  .profile span {
    display: none;
  }
  main {
    padding: 18px;
  }
  .dash-grid,
  .settings-columns,
  .builder-layout {
    grid-template-columns: 1fr;
  }
  .builder-menu {
    grid-template-columns: repeat(2, 1fr);
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 540px) {
  .metrics {
    grid-template-columns: 1fr;
  }
  .welcome {
    flex-direction: column;
    align-items: flex-start;
  }
  .filters {
    flex-direction: column;
  }
  .builder-menu {
    grid-template-columns: 1fr;
  }
}
.category-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.8fr);
  gap: 22px;
}
.category-admin-row {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid #edf0ee;
}
.category-admin-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #edf7f1;
  color: var(--brand);
  font-size: 20px;
}
.category-admin-row small {
  display: block;
  margin: 4px 0 10px;
}
.subcategory-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.subcategory-tags span {
  padding: 5px 8px;
  border-radius: 20px;
  background: #f4f6f5;
  color: #53605a;
  font-size: 11px;
}
.category-actions {
  display: flex;
  gap: 6px;
}
.category-actions button {
  border: 1px solid #dce3df;
  background: #fff;
  border-radius: 6px;
  padding: 7px 10px;
  cursor: pointer;
}
@media (max-width: 1050px) {
  .category-admin-layout {
    grid-template-columns: 1fr;
  }
}
.empty-state {
  padding: 36px 20px !important;
  color: #7b8794;
  text-align: center;
  font-weight: 600;
}
