:root {
  --bg: #f6f6f7;
  --white: #fff;
  --text: #050816;
  --muted: #6f7280;
  --line: #eeeeef;
  --orange: #ff6b35;
  --orange2: #ff4f16;
  --green: #22c55e;
  --blue: #2f7df6;
  --purple: #8b6cf6;
  --red: #ef4444;
  --shadow: 0 18px 45px rgba(15, 23, 42, .06);
  --sidebar: 260px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "SF Pro Display", "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}
/* Admin uploaded logo fix */
.admin-brand-logo img {
    max-width: 100% !important;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  background: #fff;
  border-right: 1px solid #e9e9eb;
  padding: 22px 0;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1000;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sidebar::-webkit-scrollbar {
  display: none;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px 15px;
  color: #111827;
}

.brand-mark {
  color: var(--orange);
  font-size: 28px;
  line-height: 1;
}

.admin-brand strong {
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -.04em;
}

.admin-brand small {
  display: block;
  color: #8a8f9b;
  font-size: 12px;
  font-weight: 500;
  margin-top: 2px;
}

.side-section {
  padding: 18px 24px 8px;
  color: #b6bfce;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .04em;
}

.side-section.support {
  margin-top: 22px;
}

.sidebar a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 24px;
  color: #374151;
  font-size: 15px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: .2s;
}

.sidebar a .ico {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: inherit;
}

.sidebar a .chev {
  margin-left: auto;
  font-size: 24px;
  line-height: 1;
}

.sidebar a:hover,
.sidebar a.active {
  background: #fff5f1;
  color: var(--orange);
  border-left-color: var(--orange);
  font-weight: 600;
}

.admin-main {
  margin-left: var(--sidebar);
  /*width: calc(100vw - var(--sidebar));*/
  /*max-width: calc(100vw - var(--sidebar));*/
  /*min-height: 100vh;*/
  padding: 0 40px 40px;
  overflow-x: hidden;
}

.topbar {
  width: 100%;
  height: 78px;
  margin: 0 0 34px;
  padding: 0;
  background: transparent;
  border-bottom: 1px solid #ededee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 900;
  overflow: visible;
}
form#adminSearchForm {
    background: #ffffff;
}
.mobile-brand,
.mobile-menu-btn,
.sidebar-backdrop {
  display: none;
}

.searchbox,
.admin-search {
  height: 42px;
  background: #f4f4f5;
  border-radius: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}

.searchbox {
  width: 280px;
  max-width: 280px;
  flex: 0 0 280px;
}

.searchbox span,
.admin-search button {
  font-size: 22px;
}

.searchbox input,
.admin-search input {
  border: 0;
  background: transparent;
  outline: 0;
  width: 100%;
  font-size: 14px;
}

.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  height: 100%;
}

.top-btn,
.top-actions button {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border: 0;
  padding: 0;
  /*background: #f4f6f8;*/
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 17px;
  cursor: pointer;
  position: relative;
}

.notify-dot {
  width: 8px;
  height: 8px;
  background: #ff3b30;
  border-radius: 50%;
  position: absolute;
  right: 8px;
  top: 8px;
  border: 2px solid #fff;
}

.dropdown-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.admin-user {
  min-width: 170px;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 16px;
  background: transparent;
}

.user-dropdown-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.avatar {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffbe92, var(--orange));
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.admin-user strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: #111827;
}

.admin-user small {
  display: block;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.2;
}

.top-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 52px;
  width: 245px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 20px 45px rgba(15, 23, 42, .12);
  border-radius: 16px;
  padding: 12px;
  z-index: 9999;
}

.top-dropdown.show {
  display: block;
}

.top-dropdown h4 {
  margin: 5px 8px 10px;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.top-dropdown a {
  display: block;
  padding: 11px 12px;
  border-radius: 10px;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
}

.top-dropdown a:hover {
  background: #f5f5f5;
  color: var(--orange);
}

.page-titlebar {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin: 8px 0 28px;
}

.page-titlebar h1 {
  font-size: 23px;
  margin: 5px 0 8px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.page-titlebar p {
  margin: 0;
  color: #7b7f8d;
}

.breadcrumb {
  font-size: 13px;
  color: #555b68;
  margin-top: 16px;
  white-space: nowrap;
}

.breadcrumb span {
  padding: 0 12px;
  color: #b0b4bd;
}

.panel,
.revenue-panel,
.md-card,
.premium-form,
.form-panel,
.product-list-panel,
.pa-card,
.product-main-card,
.product-side-card,
.variant-card {
  width: 100%;
  max-width: 100%;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
  border: 1px solid #eef0f3;
  overflow: hidden;
}

.panel-head,
.md-card-head,
.product-list-top,
.product-admin-head,
.product-form-head,
.variant-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.panel-head h2,
.md-card h2,
.md-card-head h2,
.product-admin-head h2,
.product-form-head h2,
.variant-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 600;
  color: #585858;
  letter-spacing: -.3px;
}

.panel-head p,
.product-admin-head p,
.product-form-head p,
.variant-head p {
  margin: 0;
  color: #6b7280;
  font-size: 15px;
}

.btn,
.orange-btn,
.pa-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 13px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  background: #111827;
  color: #fff;
}

.orange-btn,
.pa-btn-main {
  background: linear-gradient(135deg, var(--orange), var(--orange2));
  color: #fff;
  box-shadow: 0 10px 22px rgba(255, 91, 18, .18);
}

.pa-btn-danger {
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
}

.table-wrap,
.product-table,
.pa-table-wrap,
.md-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

table,
.pa-table,
.md-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

th,
.pa-table th,
.md-table th {
  background: #f4f4f4;
  color: #6b7280;
  text-align: left;
  padding: 14px 13px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
}

th:first-child {
  border-radius: 10px 0 0 10px;
}

th:last-child {
  border-radius: 0 10px 10px 0;
}

td,
.pa-table td,
.md-table td {
  padding: 14px 13px;
  background: #fff;
  border-bottom: 1px solid #eef0f3;
  font-size: 14px;
  vertical-align: middle;
  color: #374151;
}

tr:nth-child(odd) td {
  background: #fafafa;
}

td small {
  color: #8a8f99;
}

.empty,
.pa-empty {
  text-align: center;
  color: #8a8f99;
  padding: 30px !important;
}

.status,
.pa-status,
.md-badge {
  display: inline-block;
  padding: 7px 10px;
  border-radius: 8px;
  background: #f1f2f4;
  color: #636977;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status.active,
.status.paid,
.pa-status.active,
.pa-status.paid,
.md-badge.paid {
  background: #dcfce7;
  color: #16a34a;
}

.status.inactive,
.status.failed,
.pa-status.inactive,
.pa-status.failed,
.md-badge.failed {
  background: #fee2e2;
  color: #dc2626;
}

.status.pending,
.md-badge.pending {
  background: #fff7d6;
  color: #b7791f;
}

.inline-form,
.admin-form,
.pa-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  max-width: 100%;
}

.admin-form {
  grid-template-columns: 1fr 1fr;
}

.inline-form input,
.inline-form select,
.admin-form input,
.admin-form textarea,
.admin-form select,
.pa-filters input,
.pa-filters select,
.form-card input,
.form-card select,
.form-card textarea,
td select {
  width: 100%;
  min-width: 0;
  border: 1px solid #dfe3e8;
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
  outline: 0;
  font-size: 14px;
}

.inline-form input:focus,
.inline-form select:focus,
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus,
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, .12);
}

.admin-form textarea {
  min-height: 120px;
}

.admin-form button {
  grid-column: 1 / -1;
}

.admin-search,
.pa-search {
  width: 460px;
  max-width: 100%;
  height: 49px;
  background: #f5f5f6;
  border-radius: 13px;
  display: flex;
  align-items: center;
  padding: 0 10px 0 20px;
}

.admin-search button,
.pa-search button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.product-cell,
.pa-product {
  display: flex;
  align-items: center;
  gap: 14px;
}

.product-cell strong,
.pa-product strong {
  display: block;
  font-size: 14px;
    line-height: 1.6;
  font-weight: 500;
  color: #111827;
}

.product-cell small,
.pa-product small,
.pa-compare {
  display: block;
  color: #8a8f99;
  margin-top: 4px;
}

.thumb,
.pa-product img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 12px;
  background: #f3f4f6;
}

.product-actions,
.pa-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  /*flex-wrap: wrap;*/
}

.product-action,
.pa-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 14px;
}

.product-action.edit,
.pa-icon.edit {
  background: #fff7ed;
  color: #f97316;
}

.product-action.view,
.pa-icon.view {
  background: #eff6ff;
  color: #2563eb;
}

.product-action.delete,
.pa-icon.delete {
  background: #fff1f2;
  color: #e11d48;
}

.product-grid,
.product-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr);
  gap: 22px;
  align-items: start;
  max-width: 100%;
}

.form-card {
  background: #fff;
  border: 1px solid #e8ebef;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 14px 35px rgba(17, 24, 39, .045);
  margin-bottom: 22px;
}

.form-card.full-width {
  grid-column: 1 / -1;
}

.form-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 20px;
}

.form-card label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 8px;
}

.form-card input[type="file"] {
  background: #f9fafb;
  cursor: pointer;
}

.form-card textarea {
  min-height: 135px;
  resize: vertical;
  line-height: 1.5;
}

.form-card img,
.preview {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  margin: 0 0 16px;
  display: block;
}

.checkboxes {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 4px 0 18px;
}

.checkboxes label {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #edf0f3;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fafafa;
  margin: 0;
  font-weight: 600;
}

.checkboxes input {
  width: 16px;
  height: 16px;
  accent-color: var(--orange);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid #eef0f3;
}

.gallery-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.gallery-preview img {
  width: 100% !important;
  height: 78px !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  border: 1px solid #e5e7eb !important;
  margin: 0 !important;
}

.pa-success,
.success-msg {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-weight: 600;
}

.pa-error,
.alert {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-weight: 600;
}

.modern-dashboard {
  padding-bottom: 35px;
}

.md-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
}

.md-head h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -.5px;
  color: #111827;
  margin: 0;
}

.md-head p {
  margin: 6px 0 0;
  color: #7b8190;
}

.md-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.md-stat {
  min-height: 112px;
  border-radius: 10px;
  padding: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid transparent;
}

.md-stat span {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 8px;
}

.md-stat strong {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  line-height: 1.1;
}

.md-stat .md-icon {
  font-size: 32px;
}

.md-stat.purple { background: #f2e7ff; border-color: #e1c9ff; }
.md-stat.blue { background: #eaf6ff; border-color: #cfeeff; }
.md-stat.peach { background: #fff0e7; border-color: #ffd9c4; }
.md-stat.green { background: #e8f1ea; border-color: #c0d3c3; }

.md-grid-main,
.md-grid-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr);
  gap: 18px;
  margin-bottom: 18px;
}

.sales-chart,
.mini-line {
  position: relative;
}

.sales-chart {
  height: 250px;
  padding-left: 48px;
  padding-bottom: 30px;
}

.sales-chart svg,
.mini-line svg {
  width: 100%;
  height: 100%;
  display: block;
}

.sales-chart polygon,
.mini-line polygon {
  fill: var(--green) !important;
  opacity: .2;
}

.sales-chart polyline,
.mini-line polyline {
  fill: none !important;
  stroke: #16a34a !important;
  stroke-width: 0.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-y {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 30px;
  width: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #6b7280;
  font-size: 11px;
}

.chart-y span::after {
  content: "";
  position: absolute;
  left: 48px;
  right: 0;
  height: 1px;
  border-top: 1px dotted #c4c8ce;
  margin-top: 8px;
}

.chart-x {
  position: absolute;
  left: 48px;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  font-size: 11px;
  color: #6b7280;
  text-align: center;
}

.donut-box {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 170px;
}

.donut-chart {
  width: 145px;
  height: 145px;
  border-radius: 50%;
  background: conic-gradient(#16b83e 0 30%, #1ecad3 30% 60%, #e50914 60% 72%, #ffc400 72% 100%);
  position: relative;
}

.donut-chart::after {
  content: "";
  position: absolute;
  inset: 32px;
  background: #fff;
  border-radius: 50%;
}

.ship-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 12px;
}

.ship-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ship-legend i {
  width: 9px;
  height: 9px;
  display: inline-block;
  border-radius: 2px;
}

.delivered { background: #16b83e; }
.delivery { background: #1ecad3; }
.returned { background: #e50914; }
.cancelled { background: #ffc400; }

.overview-num {
  margin: 22px 0;
}

.overview-num span {
  display: block;
  color: #7b8190;
  font-size: 13px;
}

.overview-num strong {
  font-size: 25px;
  font-weight: 700;
}

.overview-num em {
  font-style: normal;
  color: var(--green);
  font-weight: 700;
  margin-left: 8px;
}

.mini-line {
  height: 120px;
  margin-bottom: 20px;
}

.overview-list p {
  display: flex;
  justify-content: space-between;
  margin: 13px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf0f3;
}

.overview-list span {
  color: #7b8190;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .42);
  z-index: 99999;
  place-items: center;
}

.modal-overlay.show {
  display: grid;
}

.modal-box {
  width: min(520px, 92vw);
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  position: relative;
  box-shadow: 0 30px 80px rgba(15, 23, 42, .25);
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 15px;
  border: 0;
  background: #f3f4f6;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
}

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 10%, #dbeafe, #f8fafc 45%, #fff);
}

.login-card {
  width: 390px;
  max-width: 92vw;
  background: #fff;
  border: 1px solid #e8e9ec;
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .13);
}

.login-card h1 {
  font-size: 34px;
  margin: 0;
}

.login-card p {
  color: #667085;
}

.login-card label {
  display: block;
  font-weight: 600;
  margin-top: 14px;
}

.login-card input {
  width: 100%;
  border: 1px solid #e1e4e8;
  border-radius: 14px;
  padding: 14px;
  margin: 8px 0;
}

.login-card button {
  width: 100%;
  margin-top: 15px;
  background: #111827;
  color: #fff;
  border: 0;
  border-radius: 14px;
  padding: 14px;
  font-weight: 700;
}

.dark-admin,
.dark-admin .admin-main,
.dark-admin .topbar {
  background: #0f172a !important;
  color: #e5e7eb !important;
}

.dark-admin .sidebar,
.dark-admin .panel,
.dark-admin .md-card,
.dark-admin .premium-form,
.dark-admin .top-dropdown,
.dark-admin .modal-box {
  background: #111827 !important;
  color: #e5e7eb !important;
  border-color: #1f2937 !important;
}

.dark-admin .sidebar a,
.dark-admin .top-dropdown a,
.dark-admin .page-titlebar p,
.dark-admin .breadcrumb {
  color: #cbd5e1 !important;
}

.dark-admin input,
.dark-admin select,
.dark-admin textarea,
.dark-admin .searchbox,
.dark-admin .admin-search {
  background: #1f2937 !important;
  color: #fff !important;
  border-color: #334155 !important;
}

.dark-admin table th,
.dark-admin table td {
  background: #111827 !important;
  color: #e5e7eb !important;
  border-color: #1f2937 !important;
}

@media (max-width: 1200px) {
  .md-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md-grid-main,
  .md-grid-bottom,
  .product-grid,
  .product-form-grid {
    grid-template-columns: 1fr;
  }

  .form-card.full-width,
  .product-grid .form-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
    .topbar .admin-brand-logo img {
    max-width: 79% !important;
    margin-bottom: 12px;
}
  .sidebar {
    left: -280px !important;
    width: 270px;
    box-shadow: 20px 0 50px rgba(15, 23, 42, .18);
    transition: left .28s ease;
  }

  body.sidebar-open .sidebar {
    left: 0 !important;
  }

  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .42);
    z-index: 999;
  }

  body.sidebar-open .sidebar-backdrop {
    display: block;
  }

  .admin-main {
    margin-left: 0;
    width: 100vw;
    max-width: 100vw;
    padding: 0 14px 30px;
  }

  .topbar {
    height: auto;
    margin: 0 0 20px;
    padding: 12px 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    grid-column: 1 / 2;
    grid-row: 1;
  }

  .mobile-brand .brand-mark {
    font-size: 20px;
  }

  .mobile-brand strong {
    font-size: 21px;
    font-weight: 700;
    line-height: 1;
  }

  .mobile-brand small {
    display: block;
    font-size: 11px;
    color: #6b7280;
    margin-top: 3px;
  }

  .mobile-menu-btn {
    display: grid;
    place-items: center;
    grid-column: 2 / 3;
    grid-row: 1;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
    font-size: 22px;
    cursor: pointer;
  }

  .top-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .top-actions::-webkit-scrollbar {
    display: none;
  }

  .searchbox {
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    max-width: 100%;
    flex: none;
  }

  .page-titlebar {
    display: block;
    margin-bottom: 18px;
  }

  .page-titlebar h1 {
    font-size: 24px;
  }

  .page-titlebar p {
    font-size: 14px;
    line-height: 1.4;
  }

  .inline-form,
  .admin-form,
  .product-list-top,
  .pa-filters {
    display: grid;
    grid-template-columns: 1fr;
  }

  .inline-form input,
  .inline-form select,
  .inline-form button,
  .inline-form .btn,
  .admin-search,
  .product-list-top .btn {
    width: 100%;
    max-width: 100%;
  }

  table,
  .pa-table,
  .md-table {
    min-width: 620px;
  }
}

@media (max-width: 600px) {
  .admin-main {
    padding-left: 10px;
    padding-right: 10px;
  }

  .panel,
  .form-panel,
  .premium-form {
    padding: 14px;
    border-radius: 16px;
  }

  .top-btn,
  .top-actions button,
  .avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  .admin-user {
    min-width: auto;
    padding: 4px;
  }

  .admin-user > div:last-child {
    display: none;
  }

  .md-stats {
    grid-template-columns: 1fr;
  }

  .sales-chart {
    height: 210px;
  }

  .form-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .form-actions .btn {
    width: 100%;
  }
}
section.panel {
    overflow: auto;
}
button.admin-user.user-dropdown-btn {
    width: 100%;
    display: flex;
}
button.top-btn.settings-top-btn {
    background: #fff;
}
.md-grid-main .sales-chart polygon, .md-grid-main .mini-line polygon {
    fill: #FF6B35 !important;
    opacity: .1 !important;
}
.md-grid-main .sales-chart polyline, .md-grid-main .mini-line polyline {
    stroke: #FF6B35 !important;
    stroke-width: 0.2 !important;
}

/* ===================================================
   SALES TABS - Dashboard
   Paste at bottom of assets/css/admin.css
=================================================== */
.sales-tabs{display:flex;gap:10px;margin:0 0 18px;flex-wrap:wrap}.sales-tab{padding:10px 14px;border-radius:12px;border:1px solid #e5e7eb;cursor:pointer;background:#fff;font-size:13px;font-weight:600;color:#374151}.sales-tab.active{background:linear-gradient(135deg,var(--orange),var(--orange2));color:#fff;border-color:var(--orange)}
/* ===================================================
   SETTINGS PAGE PREMIUM
=================================================== */
.settings-shell{display:grid;grid-template-columns:260px minmax(0,1fr);gap:22px;align-items:start}.settings-tabs{background:#fff;border:1px solid #eef0f3;box-shadow:var(--shadow);border-radius:18px;padding:14px;position:sticky;top:96px}.settings-tab{width:100%;display:flex;text-align:left;padding:13px 14px;background:transparent;border:0;border-radius:12px;cursor:pointer;font-weight:600;color:#4b5563;margin-bottom:6px}.settings-tab.active{background:#fff5f1;color:var(--orange)}.settings-content{min-width:0}.settings-card{display:none;background:#fff;border:1px solid #eef0f3;border-radius:18px;padding:24px;box-shadow:var(--shadow)}.settings-card.active{display:block}.settings-card-head{margin-bottom:22px;padding-bottom:18px;border-bottom:1px solid #eef0f3}.settings-card-head h2{margin:0 0 6px;font-size:22px;font-weight:700}.settings-card-head p{margin:0;color:#6b7280}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.settings-grid label{display:block}.settings-grid label.span-2{grid-column:1/-1}.settings-grid span{display:block;font-size:13px;font-weight:700;color:#374151;margin-bottom:8px}.settings-grid input,.settings-grid select,.settings-grid textarea{width:100%;border:1px solid #dfe3e8;border-radius:14px;padding:13px 14px;outline:0;background:#fff}.settings-grid textarea{resize:vertical}.settings-savebar{margin-top:18px;display:flex;justify-content:flex-end}
/* ===================================================
   EMAIL TEMPLATE PAGE PREMIUM
=================================================== */
.email-template-hero{background:linear-gradient(135deg,#fff7ed,#ffffff);border:1px solid #eef0f3;border-radius:20px;padding:24px;margin-bottom:22px;display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:24px;box-shadow:var(--shadow)}.email-template-hero h2{margin:0 0 8px;font-size:24px}.email-template-hero p{margin:0;color:#6b7280}.email-vars{display:flex;flex-wrap:wrap;gap:8px;align-content:flex-start}.email-vars strong{width:100%;font-size:13px}.email-vars span{background:#fff;border:1px solid #e5e7eb;border-radius:999px;padding:7px 10px;font-size:12px;color:#374151}.template-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:20px}.template-card{background:#fff;border:1px solid #eef0f3;border-radius:18px;overflow:hidden;box-shadow:var(--shadow)}.template-head{padding:20px;border-bottom:1px solid #eef0f3;display:flex;justify-content:space-between;align-items:flex-start;gap:14px}.template-head h3{margin:8px 0 4px;font-size:20px}.template-head p{margin:0;color:#8a8f99;font-size:13px}.template-for{display:inline-flex;border-radius:999px;padding:6px 10px;font-size:11px;text-transform:uppercase;font-weight:800;background:#eff6ff;color:#2563eb}.template-for.admin{background:#fff7ed;color:#f97316}.template-preview{height:320px;overflow:auto;padding:18px;background:#fafafa}.template-editor{border-top:1px solid #eef0f3}.template-editor summary{cursor:pointer;padding:16px 20px;font-weight:700}.template-form{padding:0 20px 20px;display:grid;gap:12px}.template-form label{font-size:13px;font-weight:700;color:#374151}.template-form input,.template-form select,.template-form textarea{width:100%;border:1px solid #dfe3e8;border-radius:14px;padding:12px 14px;outline:0}.template-form textarea{font-family:Consolas,monospace;font-size:13px;resize:vertical}.template-check{display:flex!important;align-items:center;gap:8px}.template-check input{width:auto}.template-actions{display:flex;gap:10px;flex-wrap:wrap}.preview-btn{background:#eff6ff;color:#2563eb}
/* ===================================================
   REFUND PAGE
=================================================== */
.refund-status{padding:8px 12px;border-radius:10px;font-size:12px;font-weight:700;text-transform:capitalize}.refund-status.pending{background:#fff7d6;color:#b7791f}.refund-status.approved{background:#dcfce7;color:#16a34a}.refund-status.rejected{background:#fee2e2;color:#dc2626}.refund-status.refunded{background:#eff6ff;color:#2563eb}

@media(max-width:900px){.settings-shell,.email-template-hero{grid-template-columns:1fr}.settings-tabs{position:static}.settings-grid{grid-template-columns:1fr}.template-grid{grid-template-columns:1fr}}

.sale-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.sale-form input,
.sale-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #dfe3e8;
  border-radius: 14px;
  padding: 0 14px;
  background: #fff;
}

.sales-offer-panel {
  background: linear-gradient(135deg, #fff, #fff7ed);
}

@media(max-width: 1100px) {
  .sale-form {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width: 700px) {
  .sale-form {
    grid-template-columns: 1fr;
  }
}
.orders-panel {
  padding: 22px;
}

.orders-table th {
  white-space: nowrap;
}

.orders-table td {
  vertical-align: middle;
}

.order-select {
  width: 145px;
  height: 42px;
  border: 1px solid #dfe3e8;
  border-radius: 14px;
  padding: 0 12px;
  background: #fff;
  outline: none;
}

.order-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn.small {
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 12px;
}

@media(max-width: 900px) {
  .orders-table {
    min-width: 950px;
  }

  .order-select {
    width: 135px;
  }
}

.stock-badge{
  display:inline-flex;
  align-items:center;
  padding:7px 10px;
  border-radius:10px;
  font-size:12px;
  font-weight:800;
}
.stock-in{background:#dcfce7;color:#16a34a}
.stock-low{background:#fff7d6;color:#b7791f}
.stock-out{background:#fee2e2;color:#dc2626}

.variant-edit-table{
  width:100%;
  overflow-x:auto;
}
.variant-edit-table table{
  min-width:920px;
}
.variant-edit-table input,
.variant-edit-table select{
  width:100%;
  min-height:40px;
  border:1px solid #dfe3e8;
  border-radius:10px;
  padding:8px 10px;
}
.field-help{
  display:block;
  margin:-6px 0 12px;
  color:#6b7280;
  font-size:12px;
}

/* Multi-category picker (product edit) */
.cat-multi{display:grid;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:4px;max-height:240px;overflow:auto;border:1px solid #e2e6dd;border-radius:10px;padding:10px;margin:.45rem 0 .2rem;background:#fff;}
.cat-opt{display:flex;align-items:center;gap:.5rem;padding:.4rem .55rem;border-radius:8px;cursor:pointer;font-size:.88rem;color:#222;}
.cat-opt:hover{background:#f1f4ee;}
.cat-opt input{width:16px;height:16px;}
.cat-opt.is-suggested span{font-weight:700;}
.cat-opt.is-suggested span:after{content:" ·match";color:#0a8a31;font-size:.7rem;font-weight:700;}
.cat-multi-actions{display:flex;align-items:center;gap:.5rem;margin:.2rem 0 1rem;flex-wrap:wrap;}
.btn-xs{padding:.4rem .75rem;font-size:.78rem;}
.cat-multi-count{font-size:.8rem;color:#6f7180;margin-left:auto;}

/* Sizes & variants display (product edit) */
.variant-group{margin:.7rem 0;}
.variant-group>strong{display:block;font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;color:#6f7180;margin-bottom:.4rem;}
.variant-chips{display:flex;flex-wrap:wrap;gap:.4rem;margin-bottom:.6rem;}
.variant-chip{display:inline-flex;align-items:center;justify-content:center;min-width:42px;padding:.4rem .7rem;border:1px solid #d8ddd2;border-radius:8px;background:#f7f8f4;font-weight:700;font-size:.85rem;color:#222;}
.variant-chip.is-off{opacity:.45;text-decoration:line-through;}

.category-form .upload-field{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.category-form .upload-field label{
  font-size:13px;
  font-weight:700;
  color:#14213d;
}

.image-preview img{
  width:95px;
  height:95px;
  object-fit:cover;
  border-radius:14px;
  border:1px solid #e5e7eb;
  background:#fff;
  padding:6px;
}

.remove-image{
  display:flex !important;
  align-items:center;
  gap:8px;
  font-weight:600 !important;
}

.cat-thumb{
  width:58px;
  height:58px;
  object-fit:cover;
  border-radius:14px;
  border:1px solid #e5e7eb;
  background:#fff;
  padding:4px;
}

.cat-thumb.empty{
  display:flex;
  align-items:center;
  justify-content:center;
  color:#94a3b8;
  background:#f8fafc;
  font-size:11px;
  text-align:center;
}
/* PRODUCT MEDIA MANAGER START */
.admin-media-section{
  display:grid;
  gap:30px;
}

.admin-media-field{
  min-width:0;
}

.admin-media-field > label{
  display:block;
  margin-bottom:9px;
}

.admin-media-field > input[type="file"]{
  width:100%;
}

.admin-main-media-card{
  max-width:420px;
}

.admin-gallery-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-top:16px;
}

.admin-media-card{
  display:flex;
  flex-direction:column;
  min-width:0;
  overflow:hidden;
  padding:12px;
  border:1px solid #e5e8ef;
  border-radius:16px;
  background:#fff;
}

.admin-media-preview{
  display:grid;
  place-items:center;
  width:100%;
  aspect-ratio:1/1;
  overflow:hidden;
  border-radius:12px;
  background:#f7f4f8;
}

.admin-media-preview img{
  width:100%;
  height:100%;
  max-width:none;
  object-fit:contain;
  padding:10px;
}

.admin-media-meta{
  min-width:0;
  padding:12px 2px 10px;
}

.admin-media-meta strong{
  display:block;
  margin-bottom:4px;
  color:#111827;
  font-size:13px;
  font-weight:700;
}

.admin-media-meta small{
  display:block;
  overflow:hidden;
  color:#6b7280;
  font-size:11px;
  line-height:1.45;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.admin-image-delete-form{
  margin-top:auto;
}

.admin-media-delete{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  width:100%;
  min-height:40px;
  border:1px solid #fecdd3;
  border-radius:11px;
  background:#fff1f2;
  color:#be123c;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  transition:.2s ease;
}

.admin-media-delete:hover{
  border-color:#e11d48;
  background:#e11d48;
  color:#fff;
}

.admin-no-media{
  margin-top:14px;
  padding:18px;
  border:1px dashed #d7dce5;
  border-radius:13px;
  background:#fafbfc;
  color:#6b7280;
  font-size:13px;
  text-align:center;
}

.product-delete-form{
  display:inline-flex;
  margin:0;
}

.product-delete-form .product-action{
  font-family:inherit;
  cursor:pointer;
}

@media(max-width:1100px){
  .admin-gallery-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:600px){
  .admin-gallery-grid{
    grid-template-columns:1fr 1fr;
    gap:10px;
  }

  .admin-media-card{
    padding:9px;
  }

  .admin-media-meta small{
    font-size:10px;
  }

  .admin-media-delete{
    min-height:38px;
    font-size:11px;
  }
}
/* PRODUCT MEDIA MANAGER END */

/* =========================================================
   SHOPIFY-STYLE PRODUCT EDITOR START
========================================================= */

.pe-shell{
  --pe-orange:#ff5a24;
  --pe-orange-dark:#e9470f;
  --pe-ink:#172033;
  --pe-muted:#6d7688;
  --pe-line:#e5e9ef;
  --pe-soft:#f7f8fa;
  width:100%;
  margin-bottom:32px;
}

.pe-eyebrow{
  color:var(--pe-orange);
  font-size:11px;
  font-weight:800;
  letter-spacing:.13em;
  text-transform:uppercase;
}


.pe-btn{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 17px;
  border:1px solid transparent;
  border-radius:11px;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
}

.pe-btn-primary{
  border-color:var(--pe-orange);
  background:linear-gradient(135deg,var(--pe-orange),var(--pe-orange-dark));
  color:#fff;
  box-shadow:0 10px 22px rgba(255,90,36,.18);
}

.pe-btn-light{
  border-color:#dfe4ea;
  background:#fff;
  color:#273043;
}

.pe-tabs{
  position:sticky;
  top:78px;
  z-index:70;
  display:flex;
  gap:4px;
  margin-bottom:18px;
  padding:6px;
  overflow-x:auto;
  border:1px solid var(--pe-line);
  border-radius:14px;
  background:rgba(255,255,255,.94);
  box-shadow:0 10px 30px rgba(15,23,42,.05);
  backdrop-filter:blur(12px);
}

.pe-tabs button{
  min-width:max-content;
  min-height:42px;
  padding:0 18px;
  border:0;
  border-radius:9px;
  background:transparent;
  color:#667085;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
}

.pe-tabs button.active{
  background:#fff0ea;
  color:var(--pe-orange);
}

.pe-tabs button span{
  display:inline-grid;
  place-items:center;
  min-width:21px;
  height:21px;
  margin-left:5px;
  border-radius:999px;
  background:#eceff3;
  color:#596174;
  font-size:10px;
}

.pe-tabs button.active span{
  background:var(--pe-orange);
  color:#fff;
}

.pe-panel{
  display:none;
}

.pe-panel.active{
  display:block;
}

.pe-layout{
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(320px,.75fr);
  gap:18px;
  align-items:start;
}

.pe-stack{
  display:grid;
  gap:18px;
}

.pe-card{
  min-width:0;
  padding:24px;
  border:1px solid var(--pe-line);
  border-radius:18px;
  background:#fff;
  box-shadow:0 14px 38px rgba(15,23,42,.045);
}

.pe-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:21px;
}

.pe-card-head span{
  display:block;
  margin-bottom:4px;
  color:var(--pe-orange);
  font-size:10px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.pe-card-head h3{
  margin:0;
  color:var(--pe-ink);
  font-size:18px;
  font-weight:700;
}

.pe-card-head strong{
  color:var(--pe-muted);
  font-size:12px;
}

.pe-field{
  min-width:0;
  margin-bottom:17px;
}

.pe-field:last-child{
  margin-bottom:0;
}

.pe-field label{
  display:block;
  margin:0 0 7px;
  color:#3e4759;
  font-size:12px;
  font-weight:650;
}

.pe-field input,
.pe-field select,
.pe-field textarea{
  width:100%;
  min-width:0;
  border:1px solid #dfe4ea;
  border-radius:11px;
  background:#fff;
  padding:11px 13px;
  color:#182133;
  outline:0;
  font-size:13px;
  transition:.2s;
}

.pe-field input,
.pe-field select{
  min-height:44px;
}

.pe-field textarea{
  resize:vertical;
  line-height:1.55;
}

.pe-field input:focus,
.pe-field select:focus,
.pe-field textarea:focus{
  border-color:var(--pe-orange);
  box-shadow:0 0 0 3px rgba(255,90,36,.11);
}

.pe-field small{
  display:block;
  margin-top:6px;
  color:#8790a0;
  font-size:11px;
}

.pe-grid{
  display:grid;
  gap:13px;
}

.pe-grid.two{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.pe-switch-list{
  display:grid;
  gap:10px;
}

.pe-switch-list label{
  display:flex;
  align-items:flex-start;
  gap:11px;
  padding:13px;
  border:1px solid var(--pe-line);
  border-radius:12px;
  cursor:pointer;
}

.pe-switch-list input{
  width:17px;
  height:17px;
  margin-top:2px;
  accent-color:var(--pe-orange);
}

.pe-switch-list b,
.pe-switch-list small{
  display:block;
}

.pe-switch-list b{
  color:#293245;
  font-size:12px;
}

.pe-switch-list small{
  margin-top:3px;
  color:#7f8898;
  font-size:10px;
}

.pe-category-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(170px,1fr));
  gap:8px;
  max-height:300px;
  overflow:auto;
  padding:3px;
}

.pe-category{
  position:relative;
  display:flex;
  align-items:center;
  gap:9px;
  min-height:43px;
  padding:0 12px;
  border:1px solid var(--pe-line);
  border-radius:11px;
  background:#fff;
  color:#414a5c;
  cursor:pointer;
}

.pe-category:hover{
  border-color:#f4b59e;
  background:#fffaf8;
}

.pe-category input{
  width:16px;
  height:16px;
  accent-color:var(--pe-orange);
}

.pe-category span{
  font-size:12px;
  font-weight:600;
}

.pe-category.suggested::after{
  content:"match";
  margin-left:auto;
  color:#16803a;
  font-size:9px;
  font-weight:800;
}

.pe-link-btn{
  padding:0;
  border:0;
  background:transparent;
  color:var(--pe-orange);
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}

.pe-link-btn.muted{
  color:#747d8d;
}

.pe-upload-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-bottom:22px;
}

.pe-dropzone{
  min-height:150px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:20px;
  border:1px dashed #cfd6df;
  border-radius:15px;
  background:#fafbfc;
  text-align:center;
  cursor:pointer;
}

.pe-dropzone:hover{
  border-color:var(--pe-orange);
  background:#fffaf8;
}

.pe-dropzone input{
  display:none;
}

.pe-upload-icon{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  margin-bottom:3px;
  border-radius:50%;
  background:#fff0ea;
  color:var(--pe-orange);
  font-size:20px;
}

.pe-dropzone b{
  color:#283143;
  font-size:13px;
}

.pe-dropzone small{
  color:#80899a;
  font-size:10px;
}

.pe-media-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:13px;
}

.pe-media-item{
  min-width:0;
  overflow:hidden;
  border:1px solid var(--pe-line);
  border-radius:14px;
  background:#fff;
}

.pe-media-item.main{
  grid-column:span 2;
}

.pe-media-image{
  position:relative;
  display:grid;
  place-items:center;
  aspect-ratio:1/1;
  background:linear-gradient(135deg,#f5f2f5,#f1f3f6);
}

.pe-media-image img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:12px;
}

.pe-media-image span{
  position:absolute;
  top:9px;
  left:9px;
  padding:5px 8px;
  border-radius:999px;
  background:#172033;
  color:#fff;
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
}

.pe-media-meta{
  padding:11px;
}

.pe-media-meta strong{
  display:block;
  overflow:hidden;
  color:#323b4d;
  font-size:10px;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.pe-media-meta button{
  margin-top:8px;
  padding:0;
  border:0;
  background:transparent;
  color:#d62d45;
  font-size:10px;
  font-weight:700;
  cursor:pointer;
}

.pe-empty-media{
  grid-column:1/-1;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:5px;
  padding:38px;
  border:1px dashed #d4dae2;
  border-radius:14px;
  color:#7a8393;
}

.pe-empty-media b{
  color:#30394b;
}

.pe-variant-head p{
  margin:6px 0 0;
  color:var(--pe-muted);
  font-size:12px;
}

.pe-variant-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:13px;
  padding:11px 13px;
  border-radius:11px;
  background:var(--pe-soft);
}

.pe-variant-toolbar b{
  color:var(--pe-orange);
  font-size:18px;
}

.pe-variant-toolbar span,
.pe-variant-toolbar small{
  color:#727b8b;
  font-size:11px;
}

.pe-variant-list{
  display:grid;
  gap:9px;
}

.pe-variant-row{
  position:relative;
  display:grid;
  grid-template-columns:1fr 1fr 1.15fr .7fr .9fr .8fr 34px;
  gap:9px;
  align-items:end;
  padding:13px;
  border:1px solid var(--pe-line);
  border-radius:13px;
  background:#fff;
}

.pe-variant-row .pe-field{
  margin:0;
}

.pe-remove-variant{
  display:grid;
  place-items:center;
  width:34px;
  height:42px;
  border:1px solid #fecdd3;
  border-radius:9px;
  background:#fff1f2;
  color:#be123c;
  font-size:20px;
  cursor:pointer;
}

.pe-empty-variants{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  padding:42px;
  border:1px dashed #d4dae2;
  border-radius:14px;
  text-align:center;
}

.pe-empty-variants.hidden{
  display:none;
}

.pe-empty-variants div{
  color:var(--pe-orange);
  font-size:30px;
}

.pe-empty-variants b{
  color:#30394b;
  font-size:14px;
}

.pe-empty-variants span{
  color:#7a8393;
  font-size:11px;
}

.pe-seo-card{
  max-width:900px;
}

.pe-search-preview{
  margin-top:22px;
  padding:20px;
  border:1px solid var(--pe-line);
  border-radius:14px;
  background:#fafbfc;
}

.pe-search-preview small,
.pe-search-preview strong,
.pe-search-preview p{
  display:block;
}

.pe-search-preview small{
  color:#25873c;
  font-size:11px;
}

.pe-search-preview strong{
  margin:6px 0;
  color:#1a55b0;
  font-size:18px;
  font-weight:500;
}

.pe-search-preview p{
  max-width:680px;
  margin:0;
  color:#616b7c;
  font-size:12px;
  line-height:1.55;
}

.pe-savebar{
  position:sticky;
  bottom:12px;
  z-index:60;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-top:18px;
  padding:12px 14px;
  border:1px solid rgba(222,227,234,.95);
  border-radius:14px;
  background:rgba(255,255,255,.94);
  box-shadow:0 18px 45px rgba(15,23,42,.12);
  backdrop-filter:blur(12px);
}

.pe-savebar>span{
  color:#788192;
  font-size:11px;
}

.pe-savebar>div{
  display:flex;
  gap:9px;
}

@media(max-width:1200px){
  .pe-layout{
    grid-template-columns:1fr;
  }

  .pe-variant-row{
    grid-template-columns:repeat(3,minmax(0,1fr)) 34px;
  }

  .pe-remove-variant{
    grid-column:4;
    grid-row:1 / span 2;
    align-self:stretch;
    height:auto;
  }

  .pe-media-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media(max-width:900px){
  .pe-tabs{
    top:0;
  }

  .pe-media-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .pe-media-item.main{
    grid-column:span 1;
  }

  .pe-variant-row{
    grid-template-columns:repeat(2,minmax(0,1fr));
    padding-right:52px;
  }

  .pe-remove-variant{
    position:absolute;
    top:12px;
    right:12px;
    width:32px;
    height:32px;
  }
}

@media(max-width:640px){

  .pe-grid.two,
  .pe-upload-grid{
    grid-template-columns:1fr;
  }

  .pe-card{
    padding:17px;
    border-radius:15px;
  }

  .pe-card-head,
  .pe-variant-toolbar{
    flex-direction:column;
  }

  .pe-media-grid{
    grid-template-columns:1fr 1fr;
    gap:9px;
  }

  .pe-variant-row{
    grid-template-columns:1fr;
  }

  .pe-savebar{
    align-items:stretch;
    flex-direction:column;
  }

  .pe-savebar>span{
    display:none;
  }

  .pe-savebar>div,
  .pe-savebar .pe-btn{
    width:100%;
  }

  .pe-savebar>div{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
}

/* =========================================================
   SHOPIFY-STYLE PRODUCT EDITOR END
========================================================= */

/* DYNAMIC ATTRIBUTES + VARIATIONS START */
.dv-manager{overflow:hidden;border:1px solid #e2e6ec;border-radius:18px;background:#fff}
.dv-tabs{display:flex;border-bottom:1px solid #e2e6ec;background:#f7f8fa}
.dv-tabs button{position:relative;min-width:160px;min-height:56px;padding:0 22px;border:0;border-right:1px solid #e2e6ec;background:transparent;color:#6d7685;font-weight:700;cursor:pointer}
.dv-tabs button.active{background:#fff;color:#111827}
.dv-tabs button.active:after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:#ff5424}
.dv-tabs button span{display:inline-grid;place-items:center;min-width:22px;height:22px;margin-left:6px;padding:0 6px;border-radius:999px;background:#ff5424;color:#fff;font-size:10px}
.dv-panel{display:none;padding:24px}.dv-panel.active{display:block}
.dv-panel-head{display:flex;justify-content:space-between;gap:20px;margin-bottom:20px}
.dv-panel-head span{color:#ff5424;font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.dv-panel-head h3{margin:5px 0;font-size:22px}.dv-panel-head p{margin:0;color:#778191;font-size:12px}
.dv-head-actions,.dv-actions{display:flex;align-items:center;gap:9px}.dv-actions{justify-content:space-between;margin-top:15px}.dv-actions.end{justify-content:flex-end}
.dv-btn{min-height:42px;padding:0 15px;border-radius:10px;font-size:11px;font-weight:800;cursor:pointer}
.dv-btn.primary{border:1px solid #ff5424;background:#ff5424;color:#fff}.dv-btn.light{border:1px solid #dce1e8;background:#fff;color:#18202d}
.dv-link{border:0;background:transparent;font-size:11px;font-weight:800;cursor:pointer}.dv-link.danger{color:#d92d48}
.dv-attribute-list,.dv-variation-list{display:grid;gap:12px}
.dv-attribute-card,.dv-variation-card{overflow:hidden;border:1px solid #dfe4ea;border-radius:13px;background:#fff}
.dv-summary{display:grid;align-items:center;width:100%;min-height:62px;padding:0 16px;border:0;background:#fafbfc;text-align:left;cursor:pointer}
.dv-summary:not(.variation){grid-template-columns:minmax(0,1fr) 28px}
.dv-summary.variation{grid-template-columns:75px minmax(0,1fr) 130px 28px;gap:12px}
.dv-summary div{display:grid;gap:3px}.dv-summary strong{font-size:13px;color:#111827}.dv-summary small,.dv-summary span{font-size:10px;color:#818a98}
.dv-body{display:none;padding:18px;border-top:1px solid #e8ebef}.dv-body.open{display:block}
.dv-field{display:grid;gap:7px}.dv-field label{font-size:10px;font-weight:700;color:#4f5867}
.dv-field input,.dv-field select{width:100%;min-height:44px;padding:0 12px;border:1px solid #d9dee6;border-radius:10px;background:#fff}
.dv-values{display:grid;gap:8px;margin:14px 0}.dv-value-row{display:grid;grid-template-columns:minmax(0,1fr) 48px 40px;gap:8px}
.dv-value-row input[type=color]{padding:4px}.dv-remove-value{border:1px solid #fecdd3;border-radius:9px;background:#fff1f2;color:#be123c;cursor:pointer}
.dv-variation-grid{display:grid;grid-template-columns:190px minmax(0,1fr);gap:22px}
.dv-variation-image{display:grid;align-content:start;gap:12px}.dv-variation-image>img{width:100%;aspect-ratio:1;object-fit:contain;padding:10px;border:1px solid #e1e5eb;border-radius:12px;background:#f4f5f7}
.dv-combination-selects{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:12px}
.dv-grid{display:grid;gap:10px;margin-bottom:10px}.dv-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.dv-empty,.dv-first-save{padding:32px;border:1px dashed #d8dde5;border-radius:14px;background:#fafbfc;text-align:center}.dv-empty.hidden{display:none}
.dv-empty strong,.dv-first-save strong{display:block;margin-bottom:5px}.dv-empty p,.dv-first-save p{margin:0;color:#7d8694;font-size:12px}
@media(max-width:900px){.dv-panel-head{flex-direction:column}.dv-head-actions{width:100%}.dv-head-actions .dv-btn{flex:1}.dv-combination-selects{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.dv-panel{padding:16px}.dv-variation-grid{grid-template-columns:1fr}.dv-variation-image{grid-template-columns:130px minmax(0,1fr)}.dv-summary.variation{grid-template-columns:55px minmax(0,1fr) 25px}.dv-summary.variation small{display:none}}
@media(max-width:480px){.dv-tabs button{flex:1;min-width:0;padding:0 10px}.dv-head-actions,.dv-actions{align-items:stretch;flex-direction:column}.dv-head-actions .dv-btn,.dv-actions .dv-btn,.dv-actions .dv-link{width:100%}.dv-variation-image,.dv-combination-selects,.dv-grid.two{grid-template-columns:1fr}}
/* DYNAMIC ATTRIBUTES + VARIATIONS END */
