:root {
  --brand: #f4a500;
  --brand-dark: #3a3321;
  --brand-soft: #eaf1ff;
  --ink: #172033;
  --muted: #66758a;
  --line: #dce4ef;
  --paper: #ffffff;
  --soft: #f3f6f9;
  --black: #111827;
  --gold: #f4b63f;
  --green: #0f9f6e;
  --red: #dc2626;
  --shadow: 0 24px 70px rgba(5, 25, 66, .13);
}

/* Stability dashboard and import/export tools */
.dingqi-dashboard-v3 {
  display: grid;
  gap: 18px;
}

.dashboard-command,
.product-io-panel,
.export-hub-panel {
  background: linear-gradient(135deg, #071f58, #075cf0);
  color: #fff;
  border: 0;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 24px 70px rgba(7, 31, 88, .18);
}

.dashboard-command {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.dashboard-command h3,
.dashboard-command p,
.product-io-panel h3,
.product-io-panel p,
.export-hub-panel h3,
.export-hub-panel p {
  color: inherit;
  margin-top: 0;
}

.dashboard-command .btn,
.product-io-panel .btn,
.export-hub-panel .btn {
  border-color: rgba(255,255,255,.36);
  box-shadow: none;
}

.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.kpi-card {
  min-height: 136px;
  border: 1px solid #dbe7f7;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f7fbff);
  padding: 18px;
  box-shadow: 0 18px 45px rgba(7, 31, 88, .08);
  display: grid;
  align-content: space-between;
}

.kpi-card.blue {
  background: linear-gradient(135deg, #24211a, #0a62f5);
  color: #fff;
  border-color: transparent;
}

.kpi-card span,
.kpi-card small {
  color: inherit;
  opacity: .74;
  font-weight: 800;
}

.kpi-card strong {
  display: block;
  margin: 8px 0;
  color: inherit;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.15;
}

.dashboard-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.chart-panel {
  min-height: 260px;
}

.spark-bars {
  height: 170px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 10px;
  padding: 12px 4px 0;
  border-bottom: 1px solid #dbe7f7;
}

.spark-bars span {
  min-height: 8px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, #0b63f6, #082c78);
  position: relative;
  box-shadow: 0 14px 28px rgba(244, 165, 0, .18);
}

.spark-bars span em {
  position: absolute;
  inset-inline: 0;
  bottom: calc(100% + 6px);
  text-align: center;
  color: #66758a;
  font-size: 11px;
  font-style: normal;
}

.chart-foot,
.quick-export-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.chart-foot {
  grid-template-columns: repeat(7, 1fr);
  color: #66758a;
  font-size: 12px;
  text-align: center;
}

.actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.product-io-panel + .panel,
.export-hub-panel + .panel {
  margin-top: 18px;
}

@media (max-width: 920px) {
  .dashboard-command {
    display: grid;
  }

  .dashboard-kpi-grid,
  .dashboard-chart-grid,
  .quick-export-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-command,
  .product-io-panel,
  .export-hub-panel {
    border-radius: 14px;
    padding: 16px;
  }
}

/* Marketing banners and pixels admin */
.kit-managed-banner {
  width: min(100%, 1340px);
  margin: 28px auto;
  padding: 0 18px;
}

.kit-managed-banner.empty {
  display: none;
}

.kit-managed-banner-link {
  display: block;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(244, 165, 0, .18);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(7, 29, 79, .12);
}

.kit-managed-banner-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,.34) 46%, transparent 56%);
  transform: translateX(-120%);
  animation: dingqiBannerSweep 8s ease-in-out infinite;
  pointer-events: none;
}

.kit-managed-banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1870 / 841;
  object-fit: cover;
}

@keyframes dingqiBannerSweep {
  0%, 38% { transform: translateX(-120%); }
  58%, 100% { transform: translateX(120%); }
}

.pixels-admin-panel {
  display: grid;
  gap: 18px;
}

.pixel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pixel-card {
  border: 1px solid #d9e5f6;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f7fbff);
  padding: 16px;
  box-shadow: 0 14px 36px rgba(7, 29, 79, .08);
}

.pixel-card.span2 {
  grid-column: 1 / -1;
}

.pixel-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.pixel-card-head strong {
  color: #1d1d19;
  font-size: 18px;
}

.pixel-card .field {
  direction: ltr;
  text-align: left;
  font-family: Alexandria, Tahoma, Arial, sans-serif;
}

@media (max-width: 860px) {
  .kit-managed-banner {
    margin: 18px auto;
    padding: 0 10px;
  }

  .kit-managed-banner-link {
    border-radius: 14px;
  }

  .kit-managed-banner img {
    aspect-ratio: 1 / 1;
  }

  .pixel-grid {
    grid-template-columns: 1fr;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: "Alexandria", "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.top-strip {
  color: white;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand), #ffba22);
}
.top-strip-inner,
.nav,
.section,
.footer-inner {
  max-width: 1240px;
  margin: auto;
  padding-inline: 22px;
}
.top-strip-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}
.ticker {
  overflow: hidden;
  white-space: nowrap;
  max-width: 48vw;
}
.ticker span {
  display: inline-block;
  animation: ticker 16s linear infinite;
}
@keyframes ticker {
  from { transform: translateX(-20%); }
  to { transform: translateX(100%); }
}

.site-header {
  position: relative;
  top: auto;
  z-index: 30;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(220,228,239,.85);
  backdrop-filter: blur(18px);
}
.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 220px;
  font-weight: 900;
}
.brand img {
  width: 122px;
  max-height: 48px;
  object-fit: contain;
}
.brand-title small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.nav-center,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nav-center a {
  padding: 9px 10px;
  color: #31425a;
  font-size: 14px;
  border-radius: 8px;
}
.nav-center a:hover { color: var(--brand); background: var(--brand-soft); }
.btn {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 14px;
  color: var(--ink);
  background: white;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(244, 165, 0,.12);
}
.btn.primary {
  color: white;
  border-color: var(--brand);
  background: var(--brand);
}
.btn.dark {
  color: white;
  border-color: var(--black);
  background: var(--black);
}
.btn.gold {
  color: #111827;
  border-color: var(--gold);
  background: var(--gold);
}
.btn.danger {
  color: white;
  border-color: var(--red);
  background: var(--red);
}
.btn.ghost { background: transparent; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 610px;
  color: white;
  background: radial-gradient(circle at 12% 18%, #3c85ff 0, rgba(60,133,255,0) 30%),
    linear-gradient(135deg, #1d1d19 0%, #f4a500 52%, #191917 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 140px;
  background: linear-gradient(to top, var(--soft), rgba(243,246,249,0));
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: auto;
  padding: 62px 22px 44px;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 34px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 8px;
  color: #dbe8ff;
  background: rgba(255,255,255,.10);
}
.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 5.6vw, 72px);
  line-height: 1.05;
  letter-spacing: 0;
}
.hero p {
  max-width: 720px;
  margin: 0 0 24px;
  color: #dbe8ff;
  font-size: 18px;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 680px;
}
.hero-stat {
  padding: 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  background: rgba(255,255,255,.11);
}
.hero-stat strong { display: block; font-size: 27px; }
.hero-stat span { color: #dbe8ff; font-size: 13px; }
.hero-stage {
  position: relative;
  min-height: 486px;
}
.showcase {
  position: absolute;
  inset: 36px 0 auto auto;
  width: 78%;
  min-height: 390px;
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 35px 80px rgba(0,0,0,.24);
  overflow: hidden;
  animation: floaty 5s ease-in-out infinite;
}
.showcase img {
  width: 100%;
  height: 390px;
  object-fit: contain;
  padding: 30px;
}
.mini-product {
  position: absolute;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  width: min(310px, 86%);
  padding: 12px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  box-shadow: var(--shadow);
}
.mini-product img { width: 72px; height: 62px; object-fit: contain; background: var(--soft); border-radius: 8px; }
.mini-product.one { left: 0; top: 30px; }
.mini-product.two { left: 24px; bottom: 42px; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.section { padding-block: 40px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
}
.section-head p { margin: 4px 0 0; color: var(--muted); }

.ad-strip {
  margin-top: -36px;
  position: relative;
  z-index: 3;
}
.ads-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 14px;
}
.banner-card {
  min-height: 190px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  color: white;
  background: #191917;
  box-shadow: var(--shadow);
}
.banner-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .44;
}
.banner-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(244, 165, 0,.92), rgba(244, 165, 0,.20));
}
.banner-content {
  position: relative;
  z-index: 1;
  padding: 22px;
  max-width: 620px;
}
.banner-content h3 { margin: 0 0 8px; font-size: 27px; }
.banner-content p { margin: 0 0 16px; color: #eaf1ff; }

.category-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.category-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  background: white;
  box-shadow: 0 12px 28px rgba(5,25,66,.05);
}
.category-card strong { display: block; color: var(--brand); font-size: 22px; }
.category-card span { color: var(--muted); font-size: 13px; }

.tools {
  display: grid;
  grid-template-columns: 1fr 230px 190px;
  gap: 10px;
  margin-bottom: 18px;
}
.field,
.select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 12px 13px;
  color: var(--ink);
  outline: none;
}
.field:focus,
.select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(244, 165, 0,.10);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.product {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 14px 34px rgba(5,25,66,.06);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.product:hover {
  transform: translateY(-6px);
  border-color: rgba(244, 165, 0,.32);
  box-shadow: 0 25px 60px rgba(244, 165, 0,.13);
}
.product-img {
  aspect-ratio: 1 / .82;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f8fbff, #eef4ff);
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: transform .28s ease;
}
.product:hover .product-img img { transform: scale(1.05) rotate(-1deg); }
.product-body { padding: 15px; }
.product h3 {
  min-height: 52px;
  margin: 8px 0 5px;
  font-size: 17px;
  line-height: 1.45;
}
.meta { color: var(--muted); font-size: 13px; }
.price {
  margin-top: 11px;
  color: var(--brand-dark);
  font-size: 21px;
  font-weight: 900;
}
.price-label {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.wholesale-note {
  margin-top: 6px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.7;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 8px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 12px;
  font-weight: 800;
}
.stock-pill {
  position: absolute;
  inset: 12px 12px auto auto;
  color: white;
  background: var(--black);
}
.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 13px;
}

.detail-page {
  background: white;
}
.detail-hero {
  max-width: 1240px;
  margin: auto;
  padding: 34px 22px 46px;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 32px;
  align-items: start;
}
.detail-media {
  border: 1px solid rgba(244, 165, 0, .48);
  border-radius: 12px;
  background: #fbfdff;
  box-shadow: 0 0 0 1px rgba(244, 165, 0, .08), 0 16px 40px rgba(244, 165, 0, .14);
  overflow: hidden;
}
.detail-media img {
  width: 100%;
  aspect-ratio: 1 / .86;
  object-fit: contain;
  padding: 12px;
}
.breadcrumb { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.detail-copy h1 { margin: 0 0 12px; font-size: clamp(30px, 4vw, 54px); line-height: 1.1; }
.detail-copy p { color: var(--muted); font-size: 17px; }
.spec-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 20px 0;
}
.spec-list div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.services-band {
  color: white;
  background: #111827;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.service {
  padding: 18px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.05);
}
.service h3 { margin-top: 0; }
.service p { color: #cbd5e1; margin-bottom: 0; }

.site-footer {
  color: #dbe8ff;
  background: linear-gradient(135deg, #101010, #041d56);
}
.footer-inner {
  padding-block: 38px;
  display: grid;
  grid-template-columns: 1.3fr .8fr .8fr .9fr;
  gap: 24px;
}
.footer-logo { width: 138px; margin-bottom: 14px; }
.footer-inner h3 { color: white; margin: 0 0 10px; }
.footer-inner p,
.footer-inner li { color: #c8d7f2; }
.footer-inner ul { list-style: none; padding: 0; margin: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 14px 22px;
  text-align: center;
  color: #aebfe0;
}

.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(540px, 100%);
  background: white;
  z-index: 70;
  box-shadow: var(--shadow);
  transform: translateX(105%);
  transition: .25s ease;
  overflow: auto;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: white;
}
.drawer-body { padding: 18px; }
.cart-row,
.line-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.cart-row img {
  width: 64px;
  height: 56px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--soft);
}

.admin-layout {
  display: grid;
  grid-template-columns: 284px 1fr;
  min-height: 100vh;
  background: #eef3fb;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px;
  color: white;
  background: linear-gradient(180deg, #101010, #3a3321 62%, #f4a500);
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.admin-brand img { width: 112px; background: white; border-radius: 8px; padding: 8px; }
.side-btn {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  padding: 10px 12px;
  color: #eaf1ff;
  text-align: right;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 8px;
  background: rgba(255,255,255,.05);
}
.side-btn.active,
.side-btn:hover {
  color: var(--brand-dark);
  background: white;
}
.admin-main {
  min-width: 0;
  padding: 24px;
}
.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.admin-top h1 { margin: 0; font-size: 30px; }
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.kpi {
  overflow: hidden;
  position: relative;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 14px 32px rgba(5,25,66,.06);
}
.kpi::after {
  content: "";
  position: absolute;
  inset: auto -20px -28px auto;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background: rgba(244, 165, 0,.10);
}
.kpi span { color: var(--muted); }
.kpi strong { display: block; margin-top: 5px; font-size: 30px; color: var(--brand-dark); }
.panel {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 14px 32px rgba(5,25,66,.05);
}
.panel h3 { margin-top: 0; }
.table-wrap { overflow: auto; }
table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}
th,
td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  vertical-align: middle;
}
th {
  color: var(--muted);
  font-size: 13px;
  background: #f8fbff;
}
.thumb {
  width: 52px;
  height: 46px;
  object-fit: contain;
  border-radius: 8px;
  background: #f3f6f9;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.form-grid .full { grid-column: 1 / -1; }
.form-grid .span2 { grid-column: span 2; }
.admin-field-wrap {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.admin-field-wrap.full {
  grid-column: 1 / -1;
}
.admin-field-wrap.span2 {
  grid-column: span 2;
}
.admin-field-label {
  color: #31415f;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.4;
}
.admin-main input,
.admin-main select,
.admin-main textarea,
.admin-login-page input {
  unicode-bidi: plaintext;
}
.latin-number-field,
.admin-main input[dir="ltr"] {
  direction: ltr !important;
  text-align: left !important;
  font-family: Alexandria, Tahoma, Arial, sans-serif;
  font-variant-numeric: lining-nums tabular-nums;
}
.admin-main input::placeholder,
.admin-main textarea::placeholder {
  text-align: inherit;
}
.status-ok { color: var(--green); font-weight: 800; }
.status-off { color: var(--red); font-weight: 800; }
.toast {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 90;
  max-width: min(420px, calc(100vw - 36px));
  padding: 12px 15px;
  color: white;
  border-radius: 8px;
  background: #111827;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition: .22s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

.fade-up {
  animation: fadeUp .55s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1060px) {
  .nav { align-items: flex-start; flex-direction: column; }
  .hero-inner,
  .detail-hero { grid-template-columns: 1fr; }
  .showcase { position: relative; inset: auto; width: 100%; }
  .mini-product { position: relative; inset: auto; margin-top: 12px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .category-row,
  .services-grid,
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .admin-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
}
@media (max-width: 720px) {
  .top-strip-inner { align-items: flex-start; flex-direction: column; padding-block: 8px; }
  .ticker { max-width: 100%; }
  .nav-center,
  .nav-actions { width: 100%; }
  .nav-center a,
  .nav-actions .btn,
  .nav-actions a { flex: 1; text-align: center; }
  .hero { min-height: auto; }
  .hero-inner { padding-top: 36px; }
  .hero-stats,
  .ads-grid,
  .tools,
  .grid,
  .category-row,
  .services-grid,
  .kpis,
  .footer-inner,
  .spec-list,
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span2 { grid-column: auto; }
  .section-head,
  .admin-top { align-items: stretch; flex-direction: column; }
  .admin-main { padding: 16px; }
}

.floating-whatsapp {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 85;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 15px;
  color: white;
  border-radius: 8px;
  background: #16a34a;
  box-shadow: 0 18px 42px rgba(22, 163, 74, .25);
  font-weight: 800;
}
.floating-whatsapp svg,
.icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.floating-whatsapp .wa-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.whatsapp-btn .wa-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}
.admin-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 16% 12%, rgba(244, 165, 0,.22), transparent 32%),
    linear-gradient(135deg, #eef5ff, #ffffff);
}
.admin-login-card {
  width: min(420px, 100%);
  display: grid;
  gap: 12px;
  padding: 28px;
  border: 1px solid rgba(244, 165, 0,.14);
  border-radius: 14px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 28px 80px rgba(5,25,66,.14);
}
.admin-login-card img {
  width: 150px;
  margin: 0 auto 8px;
}
.admin-login-card h1,
.admin-login-card p {
  margin: 0;
  text-align: center;
}
.admin-login-card p {
  color: var(--muted);
}
.login-error {
  min-height: 22px;
  color: var(--red);
  text-align: center;
  font-weight: 700;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(9, 21, 47, .58);
  backdrop-filter: blur(12px);
}
.order-modal {
  width: min(940px, 100%);
  max-height: 92vh;
  overflow: auto;
  border-radius: 8px;
  background: white;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .28);
}
.order-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  color: white;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
}
.order-modal-body {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 18px;
  padding: 18px;
}
.order-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #f8fbff;
}
.order-summary img {
  width: 100%;
  aspect-ratio: 1 / .72;
  object-fit: contain;
  padding: 22px;
  background: white;
}
.order-summary-content { padding: 14px; }
.qty-control {
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  gap: 8px;
  align-items: center;
}
.qty-control input { text-align: center; }
.payment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0;
}
.pay-card {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 74px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  cursor: pointer;
}
.pay-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pay-card:has(input:checked) {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(244, 165, 0, .1);
}
.pay-logo {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f3f6f9;
  overflow: hidden;
}
.pay-logo img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}
.payment-info {
  display: none;
  margin: 10px 0;
  padding: 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
}
.payment-info.show { display: block; }
.admin-shell {
  background: #edf3ff;
}
.admin-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, #101010, #f4a500);
  box-shadow: var(--shadow);
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.metric-card {
  position: relative;
  overflow: hidden;
  min-height: 136px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 16px 34px rgba(5, 25, 66, .06);
}
.metric-card .icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--brand);
  border-radius: 8px;
  background: var(--brand-soft);
}
.metric-card strong {
  display: block;
  margin-top: 14px;
  color: var(--brand-dark);
  font-size: 28px;
}
.metric-card span { color: var(--muted); }
.catalog-icon-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.catalog-tile {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 126px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 14px 30px rgba(5, 25, 66, .05);
  text-align: center;
}
.catalog-tile .catalog-symbol {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}
.catalog-tile .catalog-symbol svg {
  width: 25px;
  height: 25px;
}
.product .stock-pill { display: none; }
.quick-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cloud-sync-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.cloud-sync-status.ok {
  background: rgba(22,163,74,.18);
  border-color: rgba(134,239,172,.55);
}
.cloud-sync-status.saving,
.cloud-sync-status.pending {
  background: rgba(244,182,63,.2);
  border-color: rgba(252,211,77,.58);
}
.cloud-sync-status.error {
  background: rgba(220,38,38,.2);
  border-color: rgba(252,165,165,.62);
}
.file-hint {
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f8fbff;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 900px) {
  .order-modal-body,
  .admin-hero { grid-template-columns: 1fr; }
  .metric-grid,
  .catalog-icon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .payment-grid,
  .metric-grid,
  .catalog-icon-grid { grid-template-columns: 1fr; }
  .floating-whatsapp { left: 12px; right: 12px; justify-content: center; }
  .order-modal-body { padding: 12px; }
}

.display-banner {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border-radius: 8px;
  background: #191917;
  box-shadow: var(--shadow);
}
.display-banner picture,
.display-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.display-banner img {
  object-fit: cover;
  opacity: .62;
}
.display-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(244, 165, 0, .92), rgba(244, 165, 0, .18));
}
.display-banner .banner-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}
.catalog-showcase {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 14% 20%, rgba(244, 165, 0, .55), transparent 34%),
    linear-gradient(135deg, rgba(3, 14, 40, .90), rgba(244, 165, 0, .74), rgba(3, 14, 40, .88)),
    url("https://shopsource.singoo.cc/578/general/Rfd8yQXCQahDEsCF.jpg") center / cover;
}
.catalog-showcase .section-head h2,
.catalog-showcase .section-head p {
  color: white;
}
.catalog-showcase .catalog-icon-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 1060px;
  margin: auto;
}
.catalog-showcase .catalog-tile {
  min-height: 174px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.06)),
    linear-gradient(135deg, #f4a500, #3a3321);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .24);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.catalog-showcase .catalog-tile:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,.52);
  box-shadow: 0 28px 64px rgba(244, 165, 0, .35);
}
.catalog-showcase .catalog-symbol {
  width: 76px;
  height: 76px;
  color: white;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 8px;
  background: rgba(255,255,255,.12);
}
.catalog-showcase .catalog-symbol svg {
  width: 42px;
  height: 42px;
  stroke-width: 1.8;
}
.catalog-showcase .catalog-tile strong {
  color: white;
  line-height: 1.25;
}
.catalog-showcase .catalog-tile .meta {
  color: rgba(255, 255, 255, .74);
}
.catalog-view-all {
  grid-column: span 2;
  min-height: 174px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  background: linear-gradient(135deg, #0f172a, #f4a500);
  color: white;
  font-size: clamp(34px, 5vw, 66px);
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 20px 44px rgba(0, 0, 0, .24);
}
.banner-upload-grid,
.bank-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.upload-box {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f8fbff;
}
.upload-box img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  background: white;
}
.bank-upload-grid .upload-box img {
  height: 72px;
  object-fit: contain;
}
.product-upload {
  grid-column: span 2;
}
.product-upload img {
  object-fit: contain;
  background: #f8fbff;
}
@media (max-width: 1060px) {
  .catalog-showcase .catalog-icon-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .display-banner { min-height: 360px; }
  .catalog-showcase .catalog-icon-grid,
  .banner-upload-grid,
  .bank-upload-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-view-all { grid-column: span 2; font-size: 42px; }
}

.top-strip {
  background: #1d1d19;
}
.top-strip-inner {
  min-height: 34px;
}
.ticker span {
  animation: none;
}
.nav {
  min-height: 72px;
}
.catalog-showcase {
  padding-block: 56px;
  background:
    radial-gradient(circle at 82% 8%, rgba(244, 165, 0, .42), transparent 32%),
    linear-gradient(135deg, rgba(239, 245, 255, .92), rgba(216, 229, 255, .96));
}
.catalog-showcase .section-head h2 {
  color: #1d1d19;
}
.catalog-showcase .section-head p {
  color: #53657f;
}
.catalog-showcase .catalog-icon-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1120px;
}
.catalog-showcase .catalog-tile {
  position: relative;
  grid-template-columns: 96px 1fr;
  place-items: center stretch;
  min-height: 142px;
  padding: 16px;
  text-align: right;
  border: 1px solid rgba(244, 165, 0, .14);
  background: linear-gradient(135deg, white, #edf4ff);
  box-shadow: 0 18px 44px rgba(5, 25, 66, .09);
}
.catalog-showcase .catalog-tile::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, #f4a500, #3a3321);
}
.catalog-showcase .catalog-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(244, 165, 0, .36);
  box-shadow: 0 26px 64px rgba(244, 165, 0, .16);
}
.catalog-showcase .catalog-symbol {
  width: 86px;
  height: 86px;
  border: 1px solid rgba(244, 165, 0, .12);
  background: white;
  box-shadow: inset 0 0 0 8px #f2f6ff;
}
.catalog-showcase .catalog-symbol img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  padding: 7px;
}
.catalog-showcase .catalog-symbol svg {
  width: 38px;
  height: 38px;
  color: #f4a500;
}
.catalog-showcase .catalog-tile strong {
  color: #1d1d19;
  font-size: 18px;
}
.catalog-showcase .catalog-tile .meta {
  color: #66758a;
}
.catalog-text {
  display: grid;
  gap: 4px;
}
.catalog-view-all {
  display: none;
}
@media (max-width: 920px) {
  .catalog-showcase .catalog-icon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Dingqi Clean Admin Dashboard UI - final polish layer */
:root {
  --dingqi-navy: #151515;
  --dingqi-navy-2: #0b2f7a;
  --dingqi-blue: #f4a500;
  --dingqi-blue-soft: #eaf2ff;
  --dingqi-gold: #f4b83f;
  --dingqi-ink: #0e1930;
  --dingqi-muted: #64748b;
  --dingqi-line: #dbe8ff;
  --dingqi-surface: rgba(255, 255, 255, 0.92);
  --dingqi-shadow: 0 24px 70px rgba(6, 28, 79, 0.13);
}

html,
body,
button,
input,
select,
textarea {
  font-family: "Cairo", Tahoma, Arial, sans-serif !important;
}

body {
  color: var(--dingqi-ink);
  background:
    radial-gradient(circle at 92% 4%, rgba(244, 165, 0, 0.12), transparent 30%),
    radial-gradient(circle at 8% 12%, rgba(244, 184, 63, 0.09), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%) !important;
}

.btn,
.side-btn,
.cart-btn,
.admin-menu-toggle,
.admin-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 14px;
  font-weight: 900;
  letter-spacing: 0;
}

.btn svg,
.side-btn svg,
.cart-btn svg,
.admin-menu-toggle svg,
.admin-drawer-close svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.btn {
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--dingqi-line);
  background: #fff;
  color: var(--dingqi-ink);
  box-shadow: 0 10px 22px rgba(6, 28, 79, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(6, 28, 79, 0.12);
  border-color: rgba(244, 165, 0, 0.28);
}

.btn.primary,
.btn.blue {
  background: linear-gradient(135deg, #f4a500, #b87700);
  color: #fff;
  border-color: transparent;
}

.btn.gold,
.btn.warning {
  background: linear-gradient(135deg, #ffd56a, var(--dingqi-gold));
  color: #1d1d19;
  border-color: rgba(244, 184, 63, 0.28);
}

.btn.danger,
.danger {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  color: #fff !important;
  border-color: transparent !important;
}

.field,
.select,
input,
select,
textarea {
  border: 1px solid var(--dingqi-line) !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: var(--dingqi-ink) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.field:focus,
.select:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(244, 165, 0, 0.55) !important;
  box-shadow: 0 0 0 4px rgba(244, 165, 0, 0.10) !important;
  outline: none !important;
}

.admin-layout.stable-admin-shell,
.admin-layout.clean-admin-shell {
  direction: ltr;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 292px;
  min-height: 100dvh;
  padding: 24px;
  gap: 24px;
  background:
    radial-gradient(circle at 80% 0%, rgba(244, 165, 0, 0.14), transparent 32%),
    linear-gradient(135deg, #f7fbff, #eaf2ff) !important;
}

.admin-layout .admin-main {
  direction: rtl;
  grid-column: 1;
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 18px;
}

.admin-layout .sidebar {
  direction: rtl;
  grid-column: 2;
  position: sticky !important;
  top: 20px;
  height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 22px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(12, 53, 135, 0.96), rgba(5, 26, 74, 0.98)),
    var(--dingqi-navy);
  box-shadow: 0 30px 70px rgba(6, 28, 79, 0.24);
}

.admin-layout .sidebar::-webkit-scrollbar {
  width: 6px;
}

.admin-layout .sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
}

.admin-brand {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px 4px 22px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}

.admin-brand img {
  width: 92px;
  height: auto;
  max-height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.25));
}

.admin-brand strong {
  display: block;
  font-size: 18px;
  line-height: 1.25;
}

.admin-brand div div {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.admin-layout .side-btn {
  width: 100%;
  min-height: 48px;
  margin: 6px 0;
  padding: 11px 14px;
  justify-content: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  text-decoration: none;
  box-shadow: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.admin-layout .side-btn:hover {
  transform: translateX(-2px);
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.22);
}

.admin-layout .side-btn.active {
  background: #fff;
  color: var(--dingqi-blue);
  border-color: #fff;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
}

.admin-hero {
  position: relative;
  overflow: hidden;
  min-height: 178px;
  padding: 30px 34px;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(135deg, #151515 0%, #f4a500 100%) !important;
  color: #fff;
  box-shadow: var(--dingqi-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-hero::after {
  content: "";
  position: absolute;
  inset: auto -70px -120px auto;
  width: 260px;
  height: 260px;
  border-radius: 48px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.03));
  transform: rotate(18deg);
}

.admin-hero > * {
  position: relative;
  z-index: 1;
}

.admin-hero h1 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: 0;
}

.admin-hero p {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  font-weight: 800;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.panel,
.admin-card,
.table-wrap,
.invoices-panel,
.orders-panel,
.products-panel,
.settings-panel,
.payments-panel {
  border: 1px solid rgba(219, 232, 255, 0.92) !important;
  border-radius: 22px !important;
  background: var(--dingqi-surface) !important;
  box-shadow: 0 18px 50px rgba(6, 28, 79, 0.08) !important;
  backdrop-filter: blur(10px);
}

.dashboard-kpi-grid,
.clean-stat-grid,
.analytics-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.kpi-card,
.metric-card,
.analytics-mini-card {
  position: relative;
  overflow: hidden;
  min-height: 134px;
  padding: 20px;
  border: 1px solid rgba(219, 232, 255, 0.95);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(237, 245, 255, 0.92));
  box-shadow: 0 18px 42px rgba(6, 28, 79, 0.09);
}

.kpi-card::before,
.metric-card::before,
.analytics-mini-card::before {
  content: "";
  position: absolute;
  top: -36px;
  left: -32px;
  width: 112px;
  height: 112px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(244, 165, 0, 0.16), rgba(244, 184, 63, 0.10));
  transform: rotate(18deg);
}

.kpi-card.blue {
  background: linear-gradient(135deg, #f4a500, #3a3321);
  color: #fff;
}

.kpi-card span,
.metric-card span,
.analytics-mini-card span {
  position: relative;
  z-index: 1;
  color: var(--dingqi-muted);
  font-weight: 900;
}

.kpi-card.blue span,
.kpi-card.blue small {
  color: rgba(255, 255, 255, 0.82);
}

.kpi-card strong,
.metric-card strong,
.analytics-mini-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 12px;
  color: var(--dingqi-blue);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  font-weight: 1000;
}

.kpi-card.blue strong {
  color: #fff;
}

.dashboard-command,
.clean-dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--dingqi-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(6, 28, 79, 0.08);
}

.dashboard-chart-grid,
.dashboard-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.spark-bars {
  height: 170px;
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 18px 10px 4px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff, #eef5ff);
}

.spark-bars span {
  position: relative;
  flex: 1;
  min-width: 18px;
  border-radius: 12px 12px 5px 5px;
  background: linear-gradient(180deg, #f4a500, #151515);
  box-shadow: 0 12px 22px rgba(244, 165, 0, 0.22);
}

.spark-bars span:nth-child(2n) {
  background: linear-gradient(180deg, #f4b83f, #e99c14);
}

.spark-bars em {
  position: absolute;
  right: 50%;
  bottom: -28px;
  transform: translateX(50%);
  color: var(--dingqi-muted);
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.chart-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  color: var(--dingqi-muted);
  font-weight: 800;
}

.kit-managed-banner {
  position: relative;
  max-width: min(1440px, calc(100vw - 48px));
  margin: 28px auto;
  padding: 0;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(244, 165, 0, 0.10), rgba(255, 255, 255, 0.88));
  box-shadow: 0 28px 70px rgba(6, 28, 79, 0.16);
}

.kit-managed-banner.empty {
  display: none !important;
}

.kit-managed-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.00), rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.00));
  transform: translateX(110%);
  animation: dingqiBannerSweep 5.5s ease-in-out infinite;
}

.kit-managed-banner::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 26%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(6, 28, 79, 0.22), rgba(6, 28, 79, 0));
}

.kit-managed-banner-link {
  display: block;
  position: relative;
  border-radius: inherit;
  overflow: hidden;
}

.kit-managed-banner picture,
.kit-managed-banner img {
  display: block;
  width: 100%;
}

.kit-managed-banner img {
  aspect-ratio: 16 / 5.2;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.kit-managed-banner:hover img {
  transform: scale(1.035);
  filter: saturate(1.06) contrast(1.03);
}

.kit-brand-hero {
  max-width: none !important;
  border-radius: 0 !important;
  overflow: hidden;
  background: #151515;
}

.kit-brand-hero .kit-hero-media,
.kit-brand-hero .kit-hero-media img {
  display: block;
  width: 100%;
}

.kit-brand-hero .kit-hero-media img {
  min-height: clamp(430px, 52vw, 720px);
  object-fit: cover;
  object-position: center;
}

.banner-card,
.clean-banner-card {
  overflow: hidden;
  border: 1px solid var(--dingqi-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(6, 28, 79, 0.10);
}

.banner-card img,
.clean-banner-card img,
.live-banner-preview img {
  width: 100%;
  aspect-ratio: 16 / 5.2;
  object-fit: cover;
  border-radius: 18px;
}

.admin-modal {
  border-radius: 24px !important;
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 38px 90px rgba(6, 28, 79, 0.28);
}

.admin-modal .modal-head,
.modal-head {
  background: linear-gradient(135deg, #151515, #f4a500) !important;
  color: #fff !important;
  border-radius: 22px 22px 0 0;
}

.admin-modal-body,
.modal-body {
  background: #f8fbff;
}

.modal-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--dingqi-line);
  backdrop-filter: blur(12px);
}

.modern-site-header {
  background: linear-gradient(135deg, #151515, #f4a500) !important;
}

.modern-site-header .nav {
  max-width: 1320px;
  margin: 0 auto;
}

.modern-site-header .modern-brand img {
  width: clamp(150px, 11vw, 210px) !important;
  max-height: 78px !important;
  object-fit: contain;
}

.modern-site-header .brand-title {
  font-size: clamp(18px, 2vw, 34px) !important;
  line-height: 1.05;
  color: #fff;
  white-space: nowrap;
}

.modern-site-header .brand-subtitle {
  display: none !important;
}

.modern-site-header .nav-center {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  border-radius: 16px;
}

.modern-site-header .nav-center a {
  color: #fff;
}

.floating-whatsapp {
  background: #18a94e !important;
  color: #fff !important;
  border-radius: 999px !important;
  box-shadow: 0 18px 36px rgba(24, 169, 78, 0.30) !important;
}

.product-card,
.kit-product-card {
  border-color: rgba(244, 165, 0, 0.82) !important;
  box-shadow: 0 20px 42px rgba(6, 28, 79, 0.08);
}

.product-card .price,
.kit-product-card .price {
  color: #f3a70d !important;
  font-weight: 1000;
}

@keyframes dingqiBannerSweep {
  0%, 60% { transform: translateX(110%); opacity: 0; }
  72% { opacity: 1; }
  100% { transform: translateX(-110%); opacity: 0; }
}

@media (max-width: 1100px) {
  .admin-layout.stable-admin-shell,
  .admin-layout.clean-admin-shell {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .admin-layout .admin-main {
    grid-column: 1;
  }

  .admin-layout .sidebar {
    position: fixed !important;
    inset: 0 0 0 auto;
    z-index: 90;
    width: min(86vw, 330px);
    height: 100dvh;
    border-radius: 24px 0 0 24px;
    transform: translateX(105%);
    transition: transform 0.28s ease;
  }

  .admin-layout.menu-open .sidebar,
  .admin-layout .sidebar.open,
  body.admin-menu-open .admin-layout .sidebar {
    transform: translateX(0);
  }

  .admin-menu-toggle {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 95;
    width: 48px;
    height: 48px;
    padding: 0;
    background: #fff;
    color: var(--dingqi-blue);
    border: 1px solid var(--dingqi-line);
    box-shadow: 0 14px 34px rgba(6, 28, 79, 0.15);
  }

  .dashboard-kpi-grid,
  .clean-stat-grid,
  .analytics-mini-grid,
  .dashboard-chart-grid,
  .dashboard-split {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  body {
    background: linear-gradient(180deg, #f7fbff, #eef5ff) !important;
  }

  .modern-site-header .nav {
    padding: 14px 12px;
    gap: 12px;
  }

  .modern-site-header .modern-brand {
    justify-content: center;
  }

  .modern-site-header .modern-brand img {
    width: 142px !important;
    max-height: 58px !important;
  }

  .modern-site-header .brand-title {
    font-size: 17px !important;
    white-space: nowrap;
  }

  .modern-site-header .nav-center {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .modern-site-header .nav-center::-webkit-scrollbar {
    display: none;
  }

  .modern-site-header .nav-center a {
    min-width: 88px;
    flex: 0 0 auto;
  }

  .kit-brand-hero .kit-hero-media img {
    min-height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  .kit-managed-banner {
    max-width: calc(100vw - 24px);
    margin: 18px auto;
    border-radius: 20px;
  }

  .kit-managed-banner img,
  .banner-card img,
  .clean-banner-card img,
  .live-banner-preview img {
    aspect-ratio: 1 / 1;
  }

  .admin-hero {
    min-height: 150px;
    padding: 24px 18px;
    display: grid;
  }

  .admin-hero h1 {
    font-size: 34px;
  }

  .dashboard-kpi-grid,
  .clean-stat-grid,
  .analytics-mini-grid,
  .dashboard-chart-grid,
  .dashboard-split {
    grid-template-columns: 1fr;
  }

  .dashboard-command,
  .clean-dashboard-hero {
    display: grid;
  }

  .quick-actions,
  .actions-row {
    width: 100%;
  }

  .quick-actions .btn,
  .actions-row .btn {
    flex: 1 1 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Compact product purchase flow */
.simplified-product-page .compact-product-info {
  align-content: start;
  gap: 12px;
}

.simplified-product-page .compact-product-info h1 {
  margin-bottom: 0;
}

.simplified-product-page .compact-buybox {
  gap: 10px !important;
  padding: 16px !important;
}

.simplified-product-page .compact-buybox > strong,
.simplified-product-page .compact-buybox > span,
.simplified-product-page .kit-buybox-points,
.simplified-product-page #selectedVariantText {
  display: none !important;
}

.compact-page-qty {
  display: grid;
  gap: 9px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.compact-qty-label {
  color: #1d1d19;
  font-weight: 950;
  text-align: right;
}

.compact-page-qty .page-product-qty {
  grid-template-columns: 46px 1fr 46px;
}

.compact-page-qty .page-product-qty .field {
  text-align: center;
  font-weight: 950;
}

.compact-page-qty .compact-summary {
  padding: 10px 12px !important;
  min-height: 0;
  border-radius: 12px !important;
}

.compact-page-qty .compact-summary span {
  color: #64748b;
  font-weight: 900;
}

.compact-page-qty .compact-summary strong {
  font-size: 19px !important;
}

.compact-variant-select {
  padding: 12px !important;
  gap: 8px !important;
}

.compact-variant-select h3 {
  display: none !important;
}

.compact-variant-select .page-variant-field {
  margin: 0 !important;
}

.compact-details {
  margin-top: 6px !important;
}

.compact-details h2 {
  font-size: 18px !important;
}

@media (max-width: 760px) {
  .simplified-product-page .compact-buybox {
    border-radius: 14px !important;
    padding: 12px !important;
  }

  .compact-page-qty .compact-summary {
    flex-direction: row !important;
    align-items: center !important;
  }

  .simplified-product-page .add-cart-main-btn,
  .simplified-product-page .order-now-main-btn,
  .simplified-product-page .whatsapp-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Final repair: admin shell and product variant editor */
.admin-layout .sidebar,
.stable-admin-shell .sidebar {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px !important;
}

.admin-layout .sidebar .side-btn,
.stable-admin-shell .sidebar .side-btn,
.admin-layout .sidebar a.side-btn,
.stable-admin-shell .sidebar a.side-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 9px !important;
  width: 100% !important;
  min-height: 48px !important;
  padding: 12px 14px !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.admin-layout .sidebar .side-btn svg,
.stable-admin-shell .sidebar .side-btn svg {
  flex: 0 0 auto !important;
}

.admin-table-wrap,
.stable-product-table {
  overflow: auto;
}

.stable-product-table table {
  min-width: 980px;
}

.stable-product-table .table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stable-product-table .admin-thumb {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #f8fbff;
  border: 1px solid #dbe8fb;
  border-radius: 10px;
}

.stable-product-table td small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.variant-dropdown-wrap {
  display: grid;
  gap: 8px;
  text-align: start;
}

.variant-dropdown-wrap span {
  color: #0b214f;
  font-weight: 900;
}

.variant-select-control {
  min-height: 52px;
  border-radius: 14px;
  font-weight: 900;
}

.compact-variant-row {
  display: grid !important;
  grid-template-columns: 42px minmax(190px, 1.25fr) repeat(3, minmax(112px, .75fr)) minmax(150px, .9fr) minmax(92px, .55fr) 92px 82px !important;
  gap: 10px !important;
  align-items: end !important;
  padding: 12px !important;
  border: 1px solid #d8e8fb !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, #fff, #f8fbff) !important;
}

.compact-variant-row .variant-row-number {
  align-self: stretch;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #075df2;
  color: #fff;
  font-weight: 900;
}

.compact-variant-row .admin-field-wrap {
  display: grid !important;
  gap: 6px !important;
  margin: 0 !important;
}

.compact-variant-row .admin-field-label {
  font-size: 12px !important;
  color: #53657f !important;
  font-weight: 900 !important;
}

.compact-variant-row .field,
.compact-variant-row input {
  min-height: 44px !important;
  border-radius: 12px !important;
}

.compact-variant-row .compact-check {
  min-height: 44px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 10px;
  margin: 0;
}

.compact-variant-row .compact-delete {
  min-height: 44px;
  align-self: end;
}

.final-product-page .compact-product-info .product-sku-small {
  margin: 2px 0 10px;
  color: #7b8798;
  font-size: 13px;
  font-weight: 800;
}

.final-product-page .compact-buybox {
  align-self: start;
}

.final-product-page .compact-details {
  margin-top: 16px;
}

@media (max-width: 1180px) {
  .compact-variant-row {
    grid-template-columns: 42px repeat(2, minmax(0, 1fr)) !important;
  }

  .compact-variant-row .variant-name-field {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .admin-layout .sidebar,
  .stable-admin-shell .sidebar {
    gap: 10px !important;
  }

  .admin-layout .sidebar .side-btn,
  .stable-admin-shell .sidebar .side-btn,
  .admin-layout .sidebar a.side-btn,
  .stable-admin-shell .sidebar a.side-btn {
    justify-content: flex-start !important;
    min-height: 46px !important;
    padding: 12px !important;
  }

  .compact-variant-row {
    grid-template-columns: 1fr !important;
  }

  .compact-variant-row .variant-name-field {
    grid-column: auto;
  }

  .compact-variant-row .variant-row-number {
    width: 42px;
    min-height: 34px;
  }

  .final-product-page .stable-product-shell {
    gap: 14px;
  }
}
@media (max-width: 620px) {
  .top-strip { display: none; }
  .nav {
    min-height: auto;
    padding-block: 14px;
    gap: 12px;
  }
  .brand {
    width: 100%;
    justify-content: center;
  }
  .nav-center {
    justify-content: center;
  }
  .catalog-showcase {
    padding-block: 34px;
  }
  .catalog-showcase .catalog-icon-grid {
    grid-template-columns: 1fr;
  }
  .catalog-showcase .catalog-tile {
    grid-template-columns: 78px 1fr;
    min-height: 116px;
    padding: 12px;
  }
  .catalog-showcase .catalog-symbol {
    width: 70px;
    height: 70px;
  }
  .catalog-showcase .catalog-symbol img {
    width: 64px;
    height: 64px;
  }
}

:root {
  --surface: #f7faff;
  --ring: rgba(244, 165, 0, .14);
}
body {
  background:
    radial-gradient(circle at 10% 4%, rgba(244, 165, 0, .10), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
  font-family: "Alexandria", Tahoma, Arial, sans-serif;
  letter-spacing: 0;
}
.site-header {
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 48px rgba(5, 25, 66, .08);
}
.nav {
  max-width: 1280px;
}
.brand img {
  width: 132px;
}
.nav-center {
  padding: 6px;
  border: 1px solid rgba(220, 228, 239, .76);
  border-radius: 8px;
  background: #f8fbff;
}
.nav-center a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  color: #26364f;
  font-weight: 600;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 700;
}
.hero {
  min-height: 560px;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.18), transparent 26%),
    radial-gradient(circle at 18% 12%, rgba(76, 136, 255, .72), transparent 30%),
    linear-gradient(135deg, #101010 0%, #f4a500 58%, #1d1d19 100%);
}
.hero-inner {
  max-width: 1280px;
}
.hero h1 {
  max-width: 760px;
  text-wrap: balance;
}
.showcase {
  border: 1px solid rgba(255,255,255,.28);
}
.section {
  max-width: 1280px;
}
.section-head {
  align-items: center;
}
.section-head h2 {
  color: #1d1d19;
  font-weight: 900;
}
.display-banner,
.product,
.panel,
.metric-card,
.catalog-showcase .catalog-tile {
  border-radius: 10px;
}
.display-banner {
  min-height: 230px;
}
.catalog-showcase {
  margin-inline: auto;
}
.catalog-showcase .section-head {
  max-width: 1120px;
  margin-inline: auto;
}
.catalog-showcase .catalog-tile {
  overflow: hidden;
}
.catalog-showcase .catalog-symbol {
  border-radius: 10px;
}
.product {
  background: rgba(255,255,255,.98);
}
.product-img {
  background:
    radial-gradient(circle at 50% 18%, white, transparent 48%),
    linear-gradient(180deg, #f8fbff, #edf4ff);
}
.product h3 a {
  color: #1d1d19;
}
.price {
  letter-spacing: 0;
}
.admin-layout {
  background:
    radial-gradient(circle at 85% 0%, rgba(244, 165, 0,.12), transparent 32%),
    #eef4fb;
}
.admin-hero {
  border-radius: 12px;
}
.floating-whatsapp {
  border-radius: 999px;
}

@media (max-width: 860px) {
  .nav {
    padding: 12px 14px;
  }
  .nav-center {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav-center::-webkit-scrollbar {
    display: none;
  }
  .nav-center a {
    flex: 0 0 auto;
    min-width: max-content;
    padding-inline: 13px;
  }
  .nav-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .nav-actions .btn,
  .nav-actions a {
    width: 100%;
  }
  .hero {
    min-height: auto;
  }
  .hero-inner {
    padding: 28px 16px 34px;
    gap: 18px;
  }
  .hero h1 {
    font-size: 34px;
    line-height: 1.16;
  }
  .hero p {
    font-size: 15px;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero-stat {
    padding: 10px 8px;
  }
  .hero-stat strong {
    font-size: 20px;
  }
  .hero-stat span {
    font-size: 11px;
  }
  .hero-stage {
    min-height: auto;
  }
  .showcase {
    min-height: 250px;
  }
  .showcase img {
    height: 250px;
    padding: 18px;
  }
  .mini-product {
    display: none;
  }
  .ad-strip {
    margin-top: 0;
  }
  .ads-grid {
    grid-template-columns: 1fr;
  }
  .display-banner {
    min-height: 250px;
  }
  .banner-content {
    padding: 18px;
  }
  .banner-content h3 {
    font-size: 22px;
  }
  .section {
    padding: 30px 14px;
  }
  .section-head {
    text-align: center;
    align-items: center;
  }
  .catalog-showcase {
    padding-block: 28px;
  }
  .catalog-showcase .catalog-tile {
    grid-template-columns: 82px 1fr;
    gap: 12px;
  }
  .catalog-showcase .catalog-tile strong {
    font-size: 16px;
  }
  .tools {
    grid-template-columns: 1fr;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .product {
    display: grid;
    grid-template-columns: 118px 1fr;
    align-items: stretch;
  }
  .product-img {
    aspect-ratio: auto;
    min-height: 100%;
  }
  .product-img img {
    padding: 10px;
  }
  .product-body {
    padding: 12px;
  }
  .product h3 {
    min-height: 0;
    margin: 7px 0 4px;
    font-size: 14px;
  }
  .product .meta {
    font-size: 11px;
  }
  .product .price {
    font-size: 16px;
  }
  .product-actions {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 9px;
  }
  .product-actions .btn {
    min-height: 36px;
    padding: 7px 9px;
    font-size: 12px;
  }
  .detail-hero {
    padding: 22px 14px 32px;
  }
  .detail-copy h1 {
    font-size: 30px;
  }
  .footer-inner {
    gap: 18px;
  }
}

@media (max-width: 430px) {
  .brand img {
    width: 116px;
  }
  .brand-title {
    font-size: 13px;
  }
  .nav-actions {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 29px;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .catalog-showcase .catalog-tile {
    grid-template-columns: 72px 1fr;
  }
  .catalog-showcase .catalog-symbol {
    width: 66px;
    height: 66px;
  }
  .catalog-showcase .catalog-symbol img {
    width: 60px;
    height: 60px;
  }
  .product {
    grid-template-columns: 104px 1fr;
  }
}

/* Final polish for homepage rhythm and mobile storefront layout */
.hero .fade-up {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero h1 {
  margin: 22px 0 20px;
}
.hero p {
  margin: 0 0 30px;
  line-height: 1.9;
}
.hero-actions {
  margin-bottom: 32px;
}
.section-head {
  margin-bottom: 30px;
}
.section-head h2 {
  line-height: 1.25;
}
.section-head p {
  margin-top: 12px;
  line-height: 1.9;
}
.catalog-showcase .section-head {
  text-align: center;
}

@media (max-width: 860px) {
  .hero {
    background:
      radial-gradient(circle at 50% 0%, rgba(255,255,255,.18), transparent 32%),
      linear-gradient(180deg, #074fdc 0%, #062c82 100%);
  }
  .hero-inner {
    display: flex;
    flex-direction: column;
    padding: 26px 16px 24px;
    gap: 22px;
  }
  .hero .fade-up {
    width: 100%;
    align-items: stretch;
    text-align: center;
  }
  .eyebrow {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    justify-content: center;
    min-height: 38px;
    padding: 7px 12px;
    line-height: 1.55;
  }
  .hero h1 {
    max-width: 100%;
    margin: 18px auto 18px;
    font-size: clamp(31px, 8.4vw, 43px);
    line-height: 1.24;
  }
  .hero p {
    max-width: 35rem;
    margin: 0 auto 24px;
    font-size: 15px;
    line-height: 1.95;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
  }
  .hero-actions .btn {
    min-height: 46px;
  }
  .hero-stats {
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .hero-stat {
    display: grid;
    align-content: center;
    min-height: 76px;
    padding: 10px 6px;
    text-align: center;
  }
  .hero-stat strong {
    font-size: 22px;
    line-height: 1;
    margin-bottom: 8px;
  }
  .hero-stat span {
    font-size: 11px;
    line-height: 1.45;
  }
  .hero-stage {
    width: 100%;
    order: 2;
    min-height: 0;
  }
  .showcase {
    width: 100%;
    min-height: 210px;
    border-radius: 10px;
  }
  .showcase img {
    height: 210px;
    padding: 18px;
  }
  .section {
    padding-block: 36px;
  }
  .section-head {
    margin-bottom: 24px;
    text-align: center;
  }
  .section-head h2 {
    font-size: 30px;
    line-height: 1.3;
  }
  .section-head p {
    max-width: 32rem;
    margin: 12px auto 0;
    font-size: 14px;
    line-height: 1.9;
  }
  .catalog-showcase {
    padding-block: 38px;
  }
  .floating-whatsapp {
    bottom: 18px;
    left: 16px;
    right: auto;
    width: auto;
    min-width: 132px;
    padding-inline: 16px;
  }
}

@media (max-width: 430px) {
  .nav {
    padding-inline: 12px;
  }
  .brand img {
    width: 126px;
  }
  .hero-inner {
    padding: 24px 14px 22px;
  }
  .hero h1 {
    font-size: 30px;
  }
  .hero p {
    font-size: 14px;
  }
  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero-stat {
    min-height: 72px;
  }
  .hero-stat strong {
    font-size: 20px;
  }
  .hero-stat span {
    font-size: 10px;
  }
  .showcase {
    min-height: 190px;
  }
  .showcase img {
    height: 190px;
    padding: 14px;
  }
  .section-head h2 {
    font-size: 27px;
  }
  .catalog-showcase .catalog-tile {
    grid-template-columns: 70px 1fr;
    min-height: 104px;
    padding: 11px;
  }
  .floating-whatsapp {
    bottom: 14px;
    left: 14px;
    right: auto;
    min-width: 118px;
    min-height: 46px;
  }
}

/* Mobile admin drawer */
.admin-menu-toggle,
.admin-drawer-close,
.admin-menu-backdrop {
  display: none;
}

@media (max-width: 900px) {
  body.admin-menu-lock {
    overflow: hidden;
  }
  .admin-layout.admin-shell {
    display: block;
    min-height: 100vh;
    position: relative;
  }
  .admin-main {
    width: 100%;
    padding: 72px 14px 18px;
  }
  .admin-menu-toggle {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 80;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(244, 165, 0, .18);
    border-radius: 12px;
    color: #1d1d19;
    background: rgba(255,255,255,.96);
    box-shadow: 0 18px 38px rgba(5, 25, 66, .16);
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
  }
  .admin-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(5, 17, 42, .52);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
  }
  .admin-shell.menu-open .admin-menu-backdrop {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }
  .admin-layout .sidebar {
    position: fixed;
    top: 0;
    right: auto;
    left: 0;
    z-index: 90;
    width: min(86vw, 334px);
    height: 100dvh;
    max-height: 100dvh;
    padding: 18px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-110%);
    transition: transform .24s cubic-bezier(.22, .86, .32, 1);
    will-change: transform;
    overscroll-behavior: contain;
    touch-action: pan-y;
    box-shadow: 28px 0 70px rgba(5, 17, 42, .32);
  }
  .admin-shell.menu-open .sidebar {
    transform: translateX(0);
  }
  .admin-drawer-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 10px;
    color: white;
    background: rgba(255,255,255,.1);
    font-size: 22px;
    line-height: 1;
  }
  .admin-brand {
    padding-inline-end: 44px;
  }
  .side-btn {
    min-height: 48px;
    margin-top: 9px;
    border-radius: 12px;
  }
  .admin-hero {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }
  .admin-hero h1 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.3;
  }
  .admin-hero p {
    margin: 0;
    line-height: 1.8;
  }
  .quick-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .quick-actions .btn {
    min-height: 42px;
    padding-inline: 10px;
  }
  .panel {
    overflow: hidden;
  }
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (min-width: 901px) {
  .quick-actions .btn:first-child {
    display: none;
  }
}

@media (max-width: 430px) {
  .admin-main {
    padding: 70px 12px 16px;
  }
  .admin-layout .sidebar {
    width: min(88vw, 320px);
  }
  .quick-actions {
    grid-template-columns: 1fr;
  }
}

/* Admin mobile experience */
@media (max-width: 760px) {
  .admin-layout.admin-shell {
    background:
      radial-gradient(circle at 90% 0%, rgba(244, 165, 0,.14), transparent 32%),
      #eef4fb;
  }
  .admin-main {
    padding: 72px 12px 20px;
  }
  .admin-hero {
    margin-bottom: 14px;
    padding: 16px;
    border-radius: 14px;
    background:
      radial-gradient(circle at 10% 10%, rgba(255,255,255,.2), transparent 34%),
      linear-gradient(135deg, #101010, #f4a500);
  }
  .admin-hero h1 {
    font-size: 25px;
  }
  .admin-hero p {
    font-size: 13px;
    color: rgba(255,255,255,.82);
  }
  .quick-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .quick-actions .btn {
    min-height: 42px;
    padding: 8px;
    font-size: 12px;
  }
  .metric-grid,
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
    margin-bottom: 14px;
  }
  .metric-card,
  .kpi {
    min-height: 108px;
    padding: 13px;
    border-radius: 14px;
  }
  .metric-card .icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .metric-card strong,
  .kpi strong {
    margin-top: 10px;
    font-size: 22px;
    line-height: 1.25;
  }
  .metric-card span,
  .kpi span {
    font-size: 12px;
    line-height: 1.55;
  }
  .panel {
    margin-bottom: 12px;
    padding: 13px;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(5,25,66,.06);
  }
  .panel h3 {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.5;
  }
  .form-grid,
  .banner-upload-grid,
  .bank-upload-grid {
    grid-template-columns: 1fr !important;
    gap: 9px;
  }
  .form-grid .full,
  .form-grid .span2,
  .admin-field-wrap.full,
  .admin-field-wrap.span2 {
    grid-column: auto;
  }
  .field,
  .select,
  textarea {
    min-height: 46px;
    border-radius: 12px;
    font-size: 14px;
  }
  textarea {
    min-height: 92px;
  }
  .panel > .btn,
  .form-grid .btn {
    width: 100%;
    min-height: 46px;
  }
  .line-row {
    grid-template-columns: 54px 1fr auto;
    gap: 10px;
    padding: 12px 0;
  }
  .line-row strong {
    font-size: 14px;
  }
  .line-row label {
    font-size: 12px;
    white-space: nowrap;
  }
  .upload-box {
    border-radius: 14px;
  }
  .upload-box img {
    height: 112px;
    border-radius: 10px;
  }
  .table-wrap {
    overflow: visible;
  }
  .admin-main table {
    min-width: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
  }
  .admin-main thead {
    display: none;
  }
  .admin-main tbody {
    display: grid;
    gap: 10px;
  }
  .admin-main tr {
    display: grid;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(5,25,66,.05);
  }
  .admin-main td {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 9px 6px;
    border-bottom: 1px solid #edf2f8;
    font-size: 13px;
    text-align: right;
    word-break: break-word;
  }
  .admin-main td:last-child {
    border-bottom: 0;
  }
  .admin-main td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
  }
  .admin-main td:empty {
    display: none;
  }
  .admin-main td .btn,
  .admin-main td button,
  .admin-main td .select {
    width: 100%;
    min-height: 38px;
    margin: 3px 0;
  }
  .admin-main td .thumb,
  .thumb {
    width: 64px;
    height: 56px;
  }
  .pay-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
  }
  .pay-logo img {
    width: 42px;
    height: 42px;
  }
}

/* Stable Firebase/variant UX polish */
.stable-single-qty {
  border: 1px solid #d8e6fb;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 16px 36px rgba(244, 165, 0, .07);
}

.stable-single-qty .page-qty-head {
  gap: 6px;
  margin-bottom: 12px;
}

.stable-single-qty .page-qty-head strong {
  color: #1d1d19;
  font-size: 17px;
}

.stable-single-qty .page-qty-summary {
  margin-top: 10px;
  border: 1px solid rgba(245, 166, 35, .28);
  background: #fffaf0;
  color: #1d1d19;
}

.stable-single-qty .page-qty-summary strong {
  color: #f5a400;
  direction: ltr;
}

.stable-cart-row .cart-variant-label {
  display: inline-flex;
  width: fit-content;
  margin-top: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #edf4ff;
  color: #f4a500;
  font-weight: 900;
}

.stable-order-modal .order-lines-preview {
  border: 1px solid #dbe7f7;
  border-radius: 16px;
  padding: 10px;
  background: #f8fbff;
}

.stable-order-modal .order-variant-select-field,
.stable-order-modal .compact-qty-box {
  margin-top: 12px;
}

.stable-order-modal .compact-qty-box {
  border: 1px solid #dbe7f7;
  border-radius: 16px;
  background: #fff;
  padding: 12px;
}

.variant-option-card {
  display: grid !important;
  grid-template-columns: 42px repeat(4, minmax(120px, 1fr)) minmax(150px, 1fr) minmax(100px, .7fr) 92px 74px;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid #dbe7f7;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(7, 27, 70, .05);
}

.variant-row-number {
  display: grid;
  place-items: center;
  height: 44px;
  border-radius: 12px;
  background: #edf4ff;
  color: #f4a500;
  font-weight: 900;
}

.polished-variant-editor .variant-rows-head {
  display: none !important;
}

.product-editor-shell #epEn {
  display: none !important;
}

.product-editor-shell label:has(#epEn) {
  display: none !important;
}

.invoices-panel table .btn {
  margin: 3px;
}

.cart-row-side .danger {
  border-color: #ffd4d4;
  color: #b42318;
}

@media (max-width: 980px) {
  .variant-option-card {
    grid-template-columns: 1fr 1fr;
  }

  .variant-row-number {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .stable-order-modal .single-order-body {
    display: block !important;
  }

  .stable-order-modal .order-form-panel {
    padding: 12px !important;
  }

  .stable-order-modal .customer-order-fields {
    grid-template-columns: 1fr !important;
  }

  .stable-single-qty {
    padding: 12px;
  }

  .variant-option-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .stable-product-shell .kit-product-info h1 {
    font-size: 32px !important;
    line-height: 1.18 !important;
  }
}

@media (max-width: 430px) {
  .quick-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .quick-actions .btn {
    font-size: 11px;
  }
  .metric-grid,
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .metric-card,
  .kpi {
    min-height: 100px;
    padding: 11px;
  }
  .metric-card strong,
  .kpi strong {
    font-size: 19px;
  }
  .admin-main td {
    grid-template-columns: 82px minmax(0, 1fr);
    font-size: 12px;
  }
}

/* Final admin polish: mobile drawer, reports, login, and storefront rhythm */
.admin-drawer-handle {
  display: none;
}
.enhanced-login {
  width: min(480px, 100%);
  gap: 14px;
}
.enhanced-login .pill {
  justify-self: center;
}
.security-note {
  padding: 12px 14px;
  border: 1px solid rgba(244, 165, 0,.14);
  border-radius: 12px;
  color: #274066;
  background: #f3f7ff;
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}
.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.report-card {
  padding: 18px;
  border: 1px solid rgba(244, 165, 0,.12);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f7fbff);
  box-shadow: 0 14px 34px rgba(5,25,66,.07);
}
.report-card h3,
.report-card p {
  margin: 0 0 10px;
}
.report-card strong {
  color: var(--brand);
  font-size: 22px;
}
.report-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.admin-order-modal .order-modal-body {
  grid-template-columns: .75fr 1.25fr;
}
@media (max-width: 900px) {
  .admin-layout.admin-shell {
    overscroll-behavior-x: contain;
  }
  .admin-main {
    touch-action: pan-y;
  }
  .admin-drawer-handle {
    position: fixed;
    top: 48%;
    left: 10px;
    z-index: 84;
    display: grid;
    place-items: center;
    min-width: 42px;
    min-height: 104px;
    padding: 10px 7px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(180deg, #f4a500, #3a3321);
    box-shadow: 0 18px 38px rgba(244, 165, 0,.32);
    font-weight: 900;
    writing-mode: vertical-rl;
    letter-spacing: 0;
    touch-action: manipulation;
  }
  .admin-shell.menu-open .admin-drawer-handle {
    opacity: 0;
    pointer-events: none;
  }
  .admin-login-page {
    align-items: start;
    padding-top: 34px;
  }
  .admin-login-card {
    padding: 22px;
    border-radius: 16px;
  }
  .report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .report-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-order-modal .order-modal-body {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .hero h1 {
    margin-bottom: 18px;
  }
  .hero p {
    margin-bottom: 24px;
  }
  .hero-stage {
    margin-top: 4px;
  }
  .section-head h2 {
    margin-bottom: 14px;
  }
  .section-head p {
    margin-top: 0;
  }
  .report-grid,
  .report-actions {
    grid-template-columns: 1fr;
  }
  .admin-section-head {
    align-items: flex-start;
  }
}
@media (max-width: 430px) {
  .admin-drawer-handle {
    left: 8px;
    min-width: 38px;
    min-height: 92px;
    font-size: 12px;
  }
  .hero h1 {
    margin-top: 20px;
    margin-bottom: 16px;
  }
  .hero p {
    margin-bottom: 22px;
  }
}

/* Product editor and customer variant display */
.product-admin-head {
  align-items: center;
}
.product-admin-head .btn {
  white-space: nowrap;
}
.product-editor-shell {
  display: grid;
  gap: 14px;
}
.editor-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.editor-title h3 {
  margin: 6px 0 4px;
  font-size: 28px;
}
.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.product-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: 14px;
}
.editor-wide {
  grid-column: 1 / -1;
}
.check-field {
  display: flex;
  align-items: center;
  gap: 9px;
}
.variant-editor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.variant-editor-grid label {
  display: grid;
  gap: 8px;
  color: #172033;
  font-weight: 800;
}
.variant-editor-grid textarea {
  min-height: 150px;
  font-weight: 500;
}
.color-palette {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}
.color-palette button {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #dce4ef;
  border-radius: 11px;
  background: #fff;
  color: #172033;
  font-size: 12px;
  font-weight: 800;
}
.color-palette i {
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(7,27,71,.2);
}
.variant-display,
.variant-mini {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}
.variant-mini {
  gap: 7px;
  margin: 10px 0 12px;
}
.variant-display-group {
  display: grid;
  gap: 7px;
}
.variant-display-group strong {
  font-size: 13px;
  color: #1d1d19;
}
.variant-display-group > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.variant-chip {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid #dce4ef;
  border-radius: 999px;
  background: #fff;
  color: #172033;
  font-size: 12px;
  font-weight: 800;
}
.variant-chip i,
.variant-option i {
  width: 18px;
  height: 18px;
  display: inline-block;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(7,27,71,.22);
}
.variant-picker {
  display: grid;
  gap: 12px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid #dce4ef;
  border-radius: 14px;
  background: #f7fbff;
}
.variant-picker-group {
  display: grid;
  gap: 8px;
}
.variant-picker-group strong {
  color: #1d1d19;
}
.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.variant-option {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid #d8e2f0;
  border-radius: 12px;
  background: #fff;
  color: #172033;
  font-weight: 800;
}
.variant-option small {
  color: var(--brand);
}
.variant-option.active {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: #eaf1ff;
  box-shadow: 0 10px 24px rgba(244, 165, 0,.12);
}
.page-variant-picker {
  margin-top: 18px;
}
.selected-variant-text {
  margin: -4px 0 16px;
  padding: 10px 12px;
  border: 1px solid #dce4ef;
  border-radius: 12px;
  color: #1d1d19;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.gallery-strip img {
  width: 100%;
  height: 74px;
  object-fit: contain;
  padding: 7px;
  border: 1px solid #dce4ef;
  border-radius: 10px;
  background: #fff;
}
@media (max-width: 900px) {
  .editor-title,
  .product-admin-head {
    align-items: stretch;
    flex-direction: column;
  }
  .editor-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .product-editor-grid,
  .variant-editor-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .editor-title h3 {
    font-size: 23px;
  }
  .variant-option,
  .variant-chip {
    width: 100%;
    justify-content: center;
  }
  .color-palette {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Brand refresh and admin detail polish */
.site-header {
  background: linear-gradient(90deg, #151515 0%, #f4a500 54%, #3a3321 100%) !important;
  border-bottom: 0;
  box-shadow: 0 18px 48px rgba(5, 25, 66, .18);
}
.site-header .brand,
.site-header .brand-title small,
.site-header .nav-center a {
  color: #fff;
}
.site-header .brand img {
  width: 188px;
  max-height: 68px;
  object-fit: contain;
}
.site-header .nav-center {
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
}
.site-header .nav-center a:hover {
  color: #fff;
  background: rgba(255,255,255,.16);
}
.site-header .nav-actions .btn {
  color: #1d1d19;
  background: #fff;
}
.admin-brand img {
  background: transparent !important;
  width: 148px !important;
  padding: 0 !important;
}
.sidebar {
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,.12), transparent 34%),
    linear-gradient(180deg, #151515, #3a3321 52%, #1d1d19);
}
.category-thumb,
.catalog-symbol img {
  object-fit: contain;
}
.category-thumb {
  width: 70px;
  height: 58px;
  padding: 6px;
  border-radius: 12px;
  background: #eef5ff;
}
.customer-modal .order-modal-body {
  grid-template-columns: .7fr 1.3fr;
}
@media (max-width: 900px) {
  .site-header .brand img {
    width: 174px;
  }
  .customer-modal .order-modal-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .admin-main .btn,
  .editor-actions .btn,
  .product-admin-head .btn {
    width: 100%;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
  .admin-main td:last-child {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .admin-main td:last-child::before {
    margin-bottom: 2px;
  }
  .product-editor-grid .panel {
    min-width: 0;
  }
}

/* Mobile product cards: cleaner catalog, larger images, variants only in detail views */
@media (max-width: 860px) {
  .site-header .brand img {
    width: 192px !important;
    max-height: 72px;
  }
  .grid .product {
    grid-template-columns: 152px minmax(0, 1fr);
    min-height: 236px;
    border: 1px solid rgba(244, 165, 0,.18);
    box-shadow: 0 16px 34px rgba(5,25,66,.08);
  }
  .grid .product-img {
    min-height: 236px;
    border-inline-end: 1px solid #dce7f7;
    background:
      radial-gradient(circle at 50% 38%, #fff 0 24%, rgba(255,255,255,.58) 45%, transparent 64%),
      linear-gradient(180deg, #eef5ff, #dfeaff);
  }
  .grid .product-img img {
    width: 100%;
    height: 100%;
    max-height: 220px;
    object-fit: contain;
    padding: 8px;
    filter: drop-shadow(0 16px 18px rgba(5,25,66,.16));
  }
  .grid .product-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 14px 12px;
  }
  .grid .product h3 {
    font-size: 17px;
    line-height: 1.45;
  }
  .grid .product .meta {
    font-size: 11px;
    line-height: 1.65;
  }
  .grid .product .price {
    font-size: 20px;
    margin-top: 8px;
  }
  .grid .product .wholesale-note {
    font-size: 12px;
    line-height: 1.65;
  }
  .grid .product .variant-mini,
  .grid .product .variant-display {
    display: none !important;
  }
}
@media (max-width: 430px) {
  .site-header .brand img {
    width: 172px !important;
  }
}

/* Integrated campaign hero */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.campaign-hero {
  min-height: clamp(540px, 57vw, 760px) !important;
  background: #051846 !important;
  isolation: isolate;
}
.campaign-hero::after {
  height: 190px;
  z-index: 2;
  background: linear-gradient(to top, rgba(238, 244, 251, .96), rgba(238, 244, 251, 0));
  pointer-events: none;
}
.campaign-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.campaign-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.012);
  animation: campaignBreath 11s ease-in-out infinite alternate;
}
.campaign-motion {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0%, transparent 44%, rgba(255,255,255,.24) 48%, transparent 53%, transparent 100%),
    radial-gradient(circle at 50% 85%, rgba(40, 138, 255, .42), transparent 26%);
  background-size: 240% 100%, 100% 100%;
  mix-blend-mode: screen;
  opacity: .72;
  animation: campaignShine 5.6s ease-in-out infinite;
}
.campaign-action-bar {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 4;
  width: min(1180px, calc(100% - 36px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto minmax(360px, 560px);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px;
  background: rgba(4, 24, 76, .58);
  box-shadow: 0 24px 60px rgba(0, 21, 71, .34);
  backdrop-filter: blur(14px);
  animation: campaignPanelIn .55s ease both;
}
.campaign-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.campaign-actions .btn {
  min-height: 46px;
}
.campaign-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.campaign-stats .hero-stat {
  min-height: 64px;
  padding: 10px 12px;
  border-color: rgba(255,255,255,.24);
  background: rgba(255,255,255,.12);
}
.campaign-stats .hero-stat strong {
  font-size: 23px;
}
.campaign-stats .hero-stat span {
  color: rgba(255,255,255,.86);
}
@keyframes campaignBreath {
  from { transform: scale(1.006); }
  to { transform: scale(1.032); }
}
@keyframes campaignShine {
  0%, 35% { background-position: 160% 0, 0 0; opacity: .42; }
  55% { opacity: .82; }
  100% { background-position: -60% 0, 0 0; opacity: .48; }
}
@keyframes campaignPanelIn {
  from { opacity: 0; transform: translate(-50%, 14px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@media (max-width: 900px) {
  .campaign-hero {
    min-height: auto !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .campaign-hero::after {
    display: none;
  }
  .campaign-media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    width: 100%;
  }
  .campaign-media img {
    object-fit: cover;
    animation-duration: 13s;
  }
  .campaign-motion {
    bottom: auto;
    height: min(100vw, 720px);
  }
  .campaign-action-bar {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    grid-template-columns: 1fr;
    border-width: 1px 0 0;
    border-radius: 0;
    padding: 12px 14px 16px;
    background: linear-gradient(180deg, rgba(5, 28, 84, .98), rgba(244, 165, 0, .96));
    animation: campaignPanelMobileIn .42s ease both;
  }
  .campaign-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .campaign-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .campaign-stats .hero-stat {
    min-height: 68px;
    text-align: center;
  }
}
@keyframes campaignPanelMobileIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 430px) {
  .campaign-action-bar {
    padding-inline: 12px;
  }
  .campaign-stats .hero-stat {
    padding: 9px 5px;
  }
  .campaign-stats .hero-stat strong {
    font-size: 20px;
  }
  .campaign-stats .hero-stat span {
    font-size: 10px;
  }
}

/* Final mobile clock and banner sizing */
.campaign-hero {
  min-height: clamp(430px, 47vw, 680px) !important;
}
.campaign-media img {
  object-position: center center;
}
@media (max-width: 900px) {
  .campaign-media {
    aspect-ratio: 1 / 1;
    max-height: 78vh;
  }
  .campaign-action-bar {
    margin-top: -1px;
  }
}
@media (max-width: 620px) {
  .top-strip {
    display: block !important;
    position: relative;
    z-index: 20;
  }
  .top-strip-inner {
    min-height: 0;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 6px 12px;
    text-align: center;
    font-size: 11px;
    line-height: 1.55;
  }
  .top-strip-inner > div:first-child {
    font-weight: 800;
  }
  #gmtClock {
    display: inline-block;
    font-weight: 800;
  }
}
@media (max-width: 430px) {
  .campaign-media {
    aspect-ratio: 1 / 1;
    max-height: 68vh;
  }
  .campaign-actions .btn {
    min-height: 44px;
  }
}

/* Phone catalog cards: image first, actions below */
@media (max-width: 520px) {
  .grid .product {
    display: flex !important;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }
  .grid .product-img {
    width: 100%;
    min-height: 255px;
    border-inline-end: 0;
    border-bottom: 1px solid #dce7f7;
  }
  .grid .product-img img {
    width: 100%;
    height: 255px;
    max-height: none;
    padding: 12px;
  }
  .grid .product-body {
    align-items: stretch;
    padding: 14px;
    text-align: center;
  }
  .grid .product .pill {
    align-self: center;
    min-width: 148px;
    justify-content: center;
  }
  .grid .product h3 {
    font-size: 19px;
    margin-top: 10px;
  }
  .grid .product-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 12px;
  }
  .grid .product-actions .btn {
    min-height: 44px;
    font-size: 14px;
  }
}

/* Final structure polish: header, footer, products page, order modal */
.modern-top-strip {
  background: #fff !important;
  color: #151515 !important;
  border-bottom: 1px solid #dbe6f7;
  box-shadow: 0 8px 26px rgba(5, 24, 70, .06);
}
.modern-top-inner {
  min-height: 42px !important;
  justify-content: center;
  gap: 12px;
  font-weight: 900;
}
.top-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3f7ff;
  color: #151515;
}
.top-divider {
  width: 1px;
  height: 22px;
  background: #c9d8ef;
}
.modern-site-header {
  background: linear-gradient(90deg, #151515, #f4a500) !important;
}
.modern-brand {
  gap: 16px;
  justify-content: flex-start;
  justify-self: end;
  min-width: 360px;
}
.modern-brand img {
  width: 250px !important;
  max-height: 92px !important;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .18));
}
.brand-separator {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,.46);
}
.modern-brand .brand-title {
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.05;
  text-align: right;
}
.modern-brand .brand-title small {
  color: rgba(255,255,255,.9);
  font-size: 12px;
  margin-top: 3px;
}
.compact-footer {
  background: linear-gradient(135deg, #151515, #1d1d19);
  color: #fff;
}
.compact-footer-inner {
  grid-template-columns: 1.4fr .9fr 1fr !important;
  align-items: center;
  gap: 18px;
}
.footer-brand-block {
  display: flex;
  align-items: center;
  gap: 16px;
}
.compact-footer .footer-logo {
  width: 190px;
}
.compact-footer h3,
.compact-footer p,
.compact-footer a,
.compact-footer span {
  color: #fff;
}
.footer-contact {
  display: grid;
  gap: 5px;
}
.footer-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.footer-links a {
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  text-decoration: none;
}
.footer-contact-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 14px;
}
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.07);
  color: #fff;
  text-decoration: none;
}
.footer-contact-icon {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: rgba(255,255,255,.14);
  color: #ffc24a;
}
.footer-contact-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-whatsapp-btn {
  width: fit-content;
}
.settings-panel textarea {
  width: 100%;
  resize: vertical;
  min-height: 54px;
}
.settings-panel small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-weight: 700;
}
.static-page .panel {
  font-size: 17px;
  line-height: 2;
}
.products-page-hero {
  background: linear-gradient(135deg, #151515, #f4a500);
  color: #fff;
}
.products-page-hero h1,
.products-page-hero p {
  color: #fff;
}
.page-catalogs {
  padding-bottom: 10px;
}
.catalog-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 22px;
}
.catalog-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 8px 14px;
  border: 1px solid #d9e5f7;
  border-radius: 999px;
  background: #fff;
  color: #10203b;
  font-weight: 900;
}
.catalog-filter.active {
  border-color: #f4a500;
  background: #f4a500;
  color: #fff;
  box-shadow: 0 12px 28px rgba(244, 165, 0,.2);
}
.catalog-filter span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  background: #eef5ff;
}
.catalog-filter img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.home-products-section .grid .product:nth-child(n+9) {
  display: none;
}
.single-variant-picker .variant-option {
  grid-template-columns: 1fr;
  align-items: start;
  text-align: right;
}
.single-variant-picker .variant-option small {
  color: #64748b;
  font-weight: 800;
}
.enhanced-order-modal {
  max-width: 1040px;
}
.enhanced-order-modal .order-modal-head {
  background: linear-gradient(135deg, #151515, #f4a500);
  color: #fff;
}
.order-form-panel {
  padding: 16px;
  border: 1px solid #dbe6f7;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f7fbff);
}
.enhanced-order-modal .file-hint input {
  margin-top: 8px;
}
.admin-field-wrap .field,
.admin-field-wrap .select,
.admin-field-wrap textarea {
  width: 100%;
}
@media (max-width: 760px) {
  .modern-top-inner {
    flex-direction: column;
    gap: 5px;
    padding: 7px 10px;
  }
  .top-divider {
    display: none;
  }
  .top-pill {
    width: 100%;
    justify-content: center;
    font-size: 11px;
    background: #fff;
  }
  .modern-brand {
    justify-content: center;
    width: 100%;
  }
  .modern-brand img {
    width: 205px !important;
  }
  .modern-brand .brand-title {
    font-size: 18px;
  }
  .compact-footer-inner {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
  .footer-brand-block {
    justify-content: center;
    flex-direction: column;
  }
  .footer-links {
    justify-content: center;
  }
  .catalog-filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
  }
  .catalog-filter {
    flex: 0 0 auto;
  }
}

/* Thank-you page and refined admin modals */
.thank-page {
  min-height: 72vh;
  display: grid;
  place-items: center;
  padding: 54px 18px;
  background:
    radial-gradient(circle at 20% 10%, rgba(244, 165, 0,.12), transparent 32%),
    linear-gradient(180deg, #f8fbff, #eef6ff);
}
.thank-card {
  width: min(860px, 100%);
  padding: 34px;
  border: 1px solid #d8e6fb;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(17, 17, 17, .14);
  text-align: center;
}
.thank-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
}
.thank-icon .icon {
  width: 36px;
  height: 36px;
}
.thank-card h1 {
  margin: 10px 0;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.22;
}
.thank-card > p {
  max-width: 620px;
  margin: 0 auto 18px;
  color: #64748b;
  line-height: 1.9;
}
.thank-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 22px 0;
}
.thank-summary div,
.thank-line {
  padding: 14px;
  border: 1px solid #dbe6f7;
  border-radius: 14px;
  background: #f8fbff;
}
.thank-summary span,
.thank-line small {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}
.thank-summary strong {
  display: block;
  margin-top: 6px;
  color: #151515;
}
.thank-lines {
  display: grid;
  gap: 8px;
  text-align: right;
}
.thank-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}
.thank-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.admin-modal-backdrop {
  align-items: center;
  padding: 18px;
}
.refined-admin-modal {
  width: min(1180px, calc(100vw - 36px));
  max-height: min(88vh, 920px);
  border-radius: 20px;
  overflow: hidden;
}
.refined-admin-modal .order-modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 18px 22px;
}
.refined-admin-body {
  grid-template-columns: minmax(260px, .78fr) minmax(0, 1.45fr);
  gap: 16px;
  max-height: calc(88vh - 82px);
  overflow: auto;
  padding: 16px;
}
.refined-admin-body .panel {
  border-radius: 16px;
}
.admin-order-lines {
  display: grid;
  gap: 8px;
}
.admin-order-line {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 80px 130px 130px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e1e9f6;
  border-radius: 14px;
  background: #fff;
}
.admin-order-line-head {
  color: #64748b;
  background: #f8fbff;
  font-size: 12px;
  font-weight: 900;
}
.admin-order-line strong,
.admin-order-line span {
  min-width: 0;
}
.admin-order-line span {
  display: block;
  color: #64748b;
  font-size: 12px;
  line-height: 1.7;
  word-break: break-word;
}
.admin-order-total {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #151515, #f4a500);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  text-align: left;
}

@media (max-width: 860px) {
  .thank-card {
    padding: 24px 16px;
  }
  .thank-summary {
    grid-template-columns: 1fr 1fr;
  }
  .refined-admin-modal {
    width: calc(100vw - 18px);
    max-height: calc(100vh - 18px);
  }
  .refined-admin-body {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 92px);
    padding: 10px;
  }
  .admin-order-line,
  .admin-order-line-head {
    grid-template-columns: 1fr;
  }
  .admin-order-line-head {
    display: none;
  }
  .admin-order-total {
    text-align: center;
  }
}

@media (max-width: 520px) {
  .thank-summary {
    grid-template-columns: 1fr;
  }
  .thank-line {
    display: grid;
  }
  .thank-actions .btn {
    width: 100%;
  }
}

.admin-customer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}
.admin-customer-actions .btn {
  justify-content: center;
  min-height: 44px;
}
.admin-product-list {
  display: grid;
  gap: 10px;
}
.admin-product-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 92px 132px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #dbe6f7;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}
.admin-product-card img {
  width: 82px;
  height: 72px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
}
.admin-product-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.admin-product-info strong {
  color: #111827;
  font-size: 16px;
}
.admin-product-info span,
.admin-product-qty span,
.admin-product-price span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}
.admin-product-qty,
.admin-product-price {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 12px;
  background: #eef6ff;
  text-align: center;
}
.admin-product-price strong {
  color: #f4a500;
}

@media (max-width: 760px) {
  .admin-customer-actions {
    grid-template-columns: 1fr;
  }
  .admin-product-card {
    grid-template-columns: 72px 1fr;
  }
  .admin-product-card img {
    width: 72px;
    height: 66px;
  }
  .admin-product-qty,
  .admin-product-price {
    grid-column: span 2;
  }
}

/* Polished admin variant editor */
.polished-variant-editor {
  overflow: hidden;
}
.variant-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid #dbe8fb;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fbff, #eef6ff);
}
.variant-editor-head h3 {
  margin: 0 0 8px;
}
.variant-editor-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.variant-name-grid {
  margin-bottom: 16px;
}
.variant-rows-head,
.variant-option-row {
  display: grid;
  grid-template-columns: 46px minmax(150px, 1.1fr) minmax(120px, .8fr) minmax(220px, 1.3fr) minmax(110px, .7fr) 88px;
  gap: 10px;
  align-items: end;
}
.variant-rows-head-wholesale,
.variant-option-row-wholesale {
  grid-template-columns: 44px minmax(140px, 1.1fr) minmax(105px, .75fr) minmax(115px, .8fr) minmax(105px, .7fr) minmax(160px, 1fr) minmax(92px, .65fr) 92px 78px;
}
.variant-rows-head {
  padding: 0 10px 8px;
  color: #5a6b86;
  font-size: 12px;
  font-weight: 900;
}
.variant-rows {
  display: grid;
  gap: 10px;
}
.variant-option-row {
  padding: 12px;
  border: 1px solid #d8e6fb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(9, 35, 82, .06);
}
.variant-option-row label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #263653;
  font-size: 12px;
  font-weight: 900;
}
.variant-check {
  align-self: center;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #d7e5f7;
  border-radius: 8px;
  background: #f8fbff;
}
.variant-check input {
  width: 18px;
  height: 18px;
}
.variant-row-number {
  align-self: center;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #151515, #f4a500);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 22px rgba(244, 165, 0, .2);
}
.variant-sku-cell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.variant-remove-btn {
  min-height: 46px;
}
.variant-empty-state {
  padding: 22px;
  border: 1px dashed #b8cae5;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  color: #536783;
  text-align: center;
  font-weight: 800;
  line-height: 1.8;
}
.variant-help {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px dashed #b7cae7;
  border-radius: 14px;
  background: #f8fbff;
  color: #52657f;
  font-size: 13px;
  line-height: 1.8;
}

@media (max-width: 980px) {
  .variant-rows-head {
    display: none;
  }
  .variant-option-row {
    grid-template-columns: 42px 1fr 1fr;
  }
  .variant-option-row label:nth-of-type(3) {
    grid-column: 2 / -1;
  }
  .variant-remove-btn {
    grid-column: 1 / -1;
  }
}

/* Customer order modal refinement */
.polished-order-modal {
  border-radius: 18px;
}
.polished-order-modal .order-modal-head {
  padding: 20px 22px;
}
.polished-order-modal .order-modal-head strong {
  font-size: 22px;
}
.order-form-title {
  margin-bottom: 14px;
}
.order-form-title h3 {
  margin: 0 0 6px;
  font-size: 24px;
}
.order-form-title p,
.order-trust-note {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}
.customer-order-fields .form-field,
.polished-order-modal .form-field {
  display: grid;
  gap: 7px;
  color: #21304b;
  font-size: 13px;
  font-weight: 900;
}
.polished-payment-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.polished-pay-card {
  min-height: 82px;
  border-radius: 14px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.polished-pay-card:hover {
  transform: translateY(-2px);
}
.polished-pay-card:has(input:checked)::after {
  content: "✓";
  position: absolute;
  top: 8px;
  left: 8px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #f4a500;
  color: #fff;
  font-weight: 900;
}
.payment-info-card {
  display: grid;
  gap: 12px;
}
.payment-info-card p {
  margin: 6px 0 0;
  color: #52657f;
  line-height: 1.8;
}
.account-copy-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #93c5fd;
  border-radius: 14px;
  background: #fff;
}
.account-copy-box span {
  direction: ltr;
  text-align: left;
  color: #06236b;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
  word-break: break-word;
}
.receipt-upload-box {
  display: grid;
  gap: 6px;
  border-style: dashed;
  background: #f8fbff;
}
.receipt-upload-box small {
  color: #64748b;
}
.receipt-preview {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #dbe6f7;
  border-radius: 14px;
  background: #f8fbff;
}
.receipt-preview img {
  width: min(240px, 100%);
  max-height: 220px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
}
.polished-order-modal {
  width: min(1040px, calc(100vw - 24px));
}
.polished-order-modal .field,
.polished-order-modal input,
.polished-order-modal select,
.polished-order-modal textarea {
  min-height: 48px;
  font-size: 16px;
}
.polished-order-modal textarea {
  min-height: 92px;
}
.polished-order-modal .order-form-panel,
.polished-order-modal .order-summary {
  border-radius: 18px;
}
.polished-order-modal .quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}
.polished-order-modal .quick-actions .btn {
  min-height: 54px;
  justify-content: center;
  font-size: 17px;
  font-weight: 900;
}
.polished-order-modal .quick-actions .btn.primary {
  display: inline-flex;
  border-color: #f4a500;
  background: #f4a500;
  color: #fff;
  box-shadow: 0 14px 30px rgba(244, 165, 0, .2);
}
.polished-order-modal #modalWhatsapp {
  width: 100%;
  min-height: 54px;
  justify-content: center;
  border-color: #16a34a;
  background: #16a34a;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(22, 163, 74, .22);
}
.polished-order-modal #modalWhatsapp svg {
  width: 22px;
  height: 22px;
}

/* Final order flow safeguards and mobile admin polish */
.admin-drawer-handle {
  display: none !important;
}

.admin-menu-toggle {
  display: inline-grid !important;
  place-items: center;
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 120;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(244, 165, 0, .16);
  border-radius: 13px;
  background: rgba(255, 255, 255, .94);
  color: #08245b;
  box-shadow: 0 12px 28px rgba(8, 36, 91, .14);
  font-size: 24px;
  line-height: 1;
}

.polished-order-modal .order-form-panel {
  border: 1px solid #d7e4f7;
  background:
    linear-gradient(180deg, rgba(239, 246, 255, .65), rgba(255, 255, 255, .95)),
    #fff;
  box-shadow: 0 18px 48px rgba(15, 45, 92, .08);
}

.polished-order-modal .form-field {
  position: relative;
}

.polished-order-modal .form-field > span,
.receipt-upload-box > span {
  color: #08245b;
  font-size: 13px;
}

.polished-order-modal .field,
.polished-order-modal input,
.polished-order-modal textarea {
  border: 1px solid #cbdcf3;
  border-radius: 14px;
  background: #fff;
  color: #0f1f3a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 8px 18px rgba(15, 45, 92, .04);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.polished-order-modal .field:focus,
.polished-order-modal input:focus,
.polished-order-modal textarea:focus {
  border-color: #f4a500;
  box-shadow: 0 0 0 4px rgba(244, 165, 0, .13), 0 10px 22px rgba(244, 165, 0, .08);
  outline: none;
}

.field-invalid .field,
.field-invalid input,
.field-invalid textarea,
.field-invalid.receipt-upload-box {
  border-color: #dc2626 !important;
  background: #fff7f7 !important;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, .08) !important;
}

.field-error {
  display: block;
  margin-top: 6px;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
}

.receipt-upload-box.required-receipt > span::after {
  content: " *";
  color: #dc2626;
}

.receipt-upload-box input[type="file"] {
  width: 100%;
  min-height: 46px;
  padding: 10px;
  border: 1px solid #cbdcf3;
  border-radius: 12px;
  background: #fff;
}

.account-copy-box {
  width: 100%;
  border: 1px solid #93c5fd;
  cursor: pointer;
  text-align: inherit;
}

.account-copy-box b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  background: #f4a500;
  color: #fff;
  font-size: 13px;
}

.polished-order-modal .btn[disabled],
.polished-order-modal .btn.is-loading {
  opacity: .72;
  cursor: wait;
  filter: saturate(.8);
}

.compact-order-modal {
  width: min(660px, calc(100vw - 24px));
}

.compact-order-modal .order-modal-body {
  display: block;
  padding: 14px;
}

.compact-order-modal .order-form-panel {
  padding: 18px;
}

.compact-qty-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid #cfe0f8;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fbff, #edf5ff);
}

.compact-qty-box span,
.compact-qty-box small {
  display: block;
  color: #64748b;
  font-weight: 800;
}

.compact-qty-box strong {
  display: block;
  margin-top: 3px;
  color: #083a9b;
  font-size: 24px;
  font-weight: 900;
}

.compact-qty-box .qty-control {
  min-width: 180px;
  margin: 0;
}

.order-section-title {
  margin: 16px 0 10px;
  color: #0f1f3a;
  font-size: 18px;
}

@media (min-width: 1001px) {
  .admin-menu-toggle {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .admin-menu-toggle {
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
  }
  .modal-backdrop {
    align-items: start;
    padding: 6px;
  }
  .polished-order-modal {
    width: 100%;
    max-height: calc(100dvh - 12px);
    border-radius: 14px;
  }
  .polished-order-modal .order-modal-head {
    padding: 12px;
    gap: 10px;
  }
  .polished-order-modal .order-modal-head strong {
    font-size: 18px;
    line-height: 1.45;
  }
  .polished-order-modal .order-modal-body {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 8px;
  }
  .compact-order-modal .order-modal-body {
    display: block;
    padding: 8px;
  }
  .compact-order-modal .order-form-panel {
    padding: 12px;
  }
  .compact-qty-box {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }
  .compact-qty-box .qty-control {
    width: 100%;
    min-width: 0;
  }
  .polished-order-modal .order-summary {
    order: -1;
  }
  .polished-order-modal .order-summary img {
    aspect-ratio: 1.45 / 1;
    padding: 12px;
  }
  .polished-order-modal .order-summary-content,
  .polished-order-modal .order-form-panel {
    padding: 11px;
  }
  .customer-order-fields,
  .polished-order-modal .form-grid {
    grid-template-columns: 1fr;
  }
  .polished-payment-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .polished-pay-card {
    grid-template-columns: 44px 1fr;
    min-height: 66px;
    padding: 8px;
    border-radius: 12px;
  }
  .polished-pay-card .pay-logo {
    width: 44px;
    height: 44px;
  }
  .polished-pay-card .pay-logo img {
    width: 38px;
    height: 38px;
  }
  .account-copy-box {
    grid-template-columns: 1fr;
  }
  .polished-order-modal .quick-actions {
    grid-template-columns: 1fr;
    position: sticky;
    bottom: 0;
    z-index: 2;
    padding-top: 8px;
    background: linear-gradient(180deg, rgba(255,255,255,0), #fff 22%);
  }
  .polished-order-modal .quick-actions .btn {
    min-height: 50px;
    font-size: 16px;
  }
  .order-form-title h3 {
    font-size: 20px;
  }
  .order-form-title p {
    font-size: 13px;
  }
  .polished-order-modal .field,
  .polished-order-modal input,
  .polished-order-modal textarea {
    min-height: 46px;
    border-radius: 12px;
  }
  .field-error {
    font-size: 11px;
  }
}

@media (max-width: 640px) {
  .variant-editor-head {
    padding: 14px;
    flex-direction: column;
  }
  .variant-editor-actions,
  .variant-editor-actions .btn {
    width: 100%;
  }
  .variant-option-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }
  .variant-rows-head-wholesale {
    display: none;
  }
  .variant-option-row-wholesale {
    grid-template-columns: 1fr;
  }
  .variant-row-number {
    width: 100%;
    height: 34px;
  }
  .variant-option-row label:nth-of-type(3) {
    grid-column: auto;
  }
  .variant-sku-cell {
    grid-template-columns: 1fr;
  }
}

/* Final products page/header cleanup */
.modern-top-strip {
  position: relative;
  z-index: 30;
}
.modern-top-inner {
  display: flex;
  flex-wrap: wrap;
}
.modern-site-header {
  position: relative;
  z-index: 29;
  box-shadow: 0 18px 42px rgba(4, 33, 96, .16);
}
.modern-site-header .nav {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 16px;
  padding-bottom: 16px;
}
.modern-site-header .cart-btn {
  background: #fff;
  color: #151515;
  border-color: rgba(255,255,255,.55);
}
.products-page-hero {
  position: relative;
  max-width: none !important;
  margin: 0 !important;
  width: 100%;
  padding: 66px max(22px, calc((100vw - 1240px) / 2 + 22px)) 58px !important;
  border-radius: 0 0 30px 30px;
  background:
    radial-gradient(circle at 18% 10%, rgba(255,255,255,.24), transparent 28%),
    linear-gradient(135deg, #151515 0%, #b87700 52%, #f4a500 100%);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.22), 0 20px 46px rgba(7, 44, 130, .16);
  overflow: hidden;
}
.products-page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 54px;
  background: linear-gradient(180deg, transparent, rgba(239,246,255,.88));
  pointer-events: none;
}
.products-page-hero .pill {
  background: rgba(255,255,255,.14);
  color: #fff;
  border-color: rgba(255,255,255,.28);
}
.products-page-hero h1 {
  margin-top: 14px;
  margin-bottom: 14px;
  max-width: 760px;
}
.products-page-hero p {
  max-width: 760px;
  line-height: 1.9;
}
.page-catalogs {
  margin-top: 28px;
  padding-top: 34px;
  padding-bottom: 4px;
}
.page-catalogs .section-head {
  margin-bottom: 20px;
}
.products-section:not(.home-products-section) {
  padding-top: 18px;
}
.products-section:not(.home-products-section) .section-head {
  margin-bottom: 18px;
}

.compact-footer .footer-inner {
  align-items: start;
}
.footer-brand-block p {
  max-width: 360px;
}
.variant-qty-list {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}
.variant-qty-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
  color: #0f1f3a;
}
.variant-qty-head span {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}
.variant-qty-row {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #d6e3f5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(8, 36, 91, .05);
}
.variant-qty-row strong,
.variant-qty-row small {
  display: block;
}
.variant-qty-row small {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.6;
}
.mini-qty {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  gap: 6px;
  align-items: center;
}
.mini-qty .btn,
.mini-qty .field {
  min-height: 40px;
  border-radius: 12px;
  text-align: center;
  padding: 0;
}
.settings-panel .form-grid {
  align-items: end;
}

/* Final admin management upgrade */
.inventory-toolbar .form-grid,
.orders-admin-head {
  align-items: center;
}
.orders-admin-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.inventory-grid,
.payment-admin-grid {
  display: grid;
  gap: 14px;
}
.inventory-card {
  display: grid;
  grid-template-columns: 74px minmax(180px, 1fr) minmax(150px, 190px);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #d8e4f5;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 14px 32px rgba(8, 36, 91, .06);
}
.inventory-card > img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  border-radius: 14px;
  background: #f8fbff;
  border: 1px solid #e2ebf8;
}
.inventory-main {
  display: grid;
  gap: 5px;
}
.inventory-main strong {
  color: #0f1f3a;
  font-size: 18px;
}
.inventory-main span,
.inventory-main b {
  color: #64748b;
  font-size: 13px;
}
.inventory-stock-field {
  display: grid;
  gap: 7px;
  font-weight: 900;
  color: #08245b;
}
.inventory-variants {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #e3edf9;
}
.inventory-variants label {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: #f8fbff;
}
.inventory-variants small {
  display: block;
  color: #64748b;
  font-size: 11px;
  margin-top: 3px;
}
.inventory-log {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.inventory-log li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fbff;
  color: #21304b;
}
.inventory-log span {
  color: #64748b;
  font-size: 12px;
}
.payment-admin-grid {
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
}
.payment-admin-card,
.payment-create-card {
  border: 1px solid #d7e4f7;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 18px 42px rgba(8, 36, 91, .07);
}
.payment-admin-card {
  padding: 16px;
}
.payment-card-head {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.payment-card-head strong,
.payment-card-head span {
  display: block;
}
.payment-card-head span {
  color: #64748b;
  font-size: 13px;
  margin-top: 3px;
}
.switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #edf5ff;
  color: #08245b;
  font-weight: 900;
  font-size: 13px;
}
.admin-order-edit .quick-actions {
  margin-top: 14px;
}
.order-editor-modal {
  width: min(860px, calc(100vw - 24px));
}
.manual-order-editor-modal {
  width: min(1120px, calc(100vw - 24px));
}
.polished-manual-order {
  padding: 18px;
}
.manual-order-grid {
  display: grid;
  grid-template-columns: .85fr 1.35fr;
  gap: 16px;
}
.manual-order-panel {
  border: 1px solid #dbe7f7;
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}
.manual-order-panel h3 {
  margin: 0 0 12px;
}
.manual-order-products-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.manual-order-products-head p {
  margin: 4px 0 0;
}
.manual-order-lines {
  display: grid;
  gap: 10px;
}
.manual-order-line {
  display: grid;
  grid-template-columns: 40px minmax(180px, 1.25fr) minmax(150px, .95fr) 92px minmax(110px, .7fr) 76px;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid #d7e5f7;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(17, 17, 17, .06);
}
.manual-line-number {
  display: grid;
  place-items: center;
  height: 40px;
  border-radius: 10px;
  background: #f4a500;
  color: #fff;
  font-weight: 900;
}
.manual-line-total {
  min-height: 48px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #eef6ff;
  color: #151515;
}
.manual-line-total span {
  font-size: 12px;
  color: #64748b;
  font-weight: 800;
}
.manual-order-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #151515, #f4a500);
  color: #fff;
}
.manual-order-total span {
  color: #dbe8ff;
  font-weight: 800;
}
.manual-order-total strong {
  font-size: 22px;
}
.manual-order-actions {
  justify-content: flex-start;
}
.modern-order-details .admin-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.copy-chip {
  border: 1px solid #d7e5f7;
  border-radius: 999px;
  padding: 6px 10px;
  background: #f8fbff;
  color: #f4a500;
  font-weight: 900;
  cursor: pointer;
}
.visual-order-line,
.visual-order-line-head {
  grid-template-columns: 58px minmax(180px, 1fr) 90px 120px 120px;
  align-items: center;
}
.visual-order-line img {
  width: 54px;
  height: 46px;
  object-fit: contain;
  border-radius: 8px;
  background: #f1f6ff;
  border: 1px solid #dbe7f7;
}
.mobile-price-line {
  display: none;
}
.product-fav,
.product-card-logo {
  display: none;
}
.cart-icon-card {
  display: inline-grid;
  place-items: center;
}
.cart-icon-card .icon {
  margin: 0;
}
.cart-variant-editor {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.cart-variant-line {
  display: grid;
  grid-template-columns: 1fr 132px;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 1px solid #dbe7f7;
  border-radius: 10px;
  background: #f8fbff;
}
.cart-variant-line small {
  display: block;
  color: #64748b;
  font-size: 12px;
  margin-top: 3px;
}
.cart-mini-qty {
  grid-template-columns: 34px 1fr 34px;
}
.cart-mini-qty .btn,
.cart-mini-qty .field {
  min-height: 36px;
}
.modern-cart-row {
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: start;
}
.cart-row-main {
  min-width: 0;
}
.cart-row-side {
  display: grid;
  gap: 8px;
  justify-items: end;
}
.cart-total-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #151515, #f4a500);
  color: #fff;
}
.cart-total-box span {
  color: #dbe8ff;
  font-weight: 900;
}
.cart-total-box strong {
  font-size: 22px;
}
.cart-checkout-btn {
  width: 100%;
  margin-top: 12px;
}

.store-notice-marquee {
  overflow: hidden;
  border-block: 1px solid #d7e6ff;
  background: linear-gradient(90deg, #ffffff 0%, #eff6ff 48%, #ffffff 100%);
  color: #151515;
}
.notice-marquee-track {
  display: flex;
  width: max-content;
  gap: 38px;
  padding: 11px 0;
  font-weight: 900;
  white-space: nowrap;
  animation: dingqiNoticeMarquee 24s linear infinite;
}
.notice-marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-inline: 16px;
}
.notice-marquee-track .icon {
  color: #f4a500;
}
@keyframes dingqiNoticeMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(33.33%); }
}

.dingqi-image-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: #fff;
}
.dingqi-product-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.dingqi-image-watermark {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  width: 86px;
  max-width: 34%;
  height: auto;
  padding: 0;
  object-fit: contain;
  pointer-events: none;
}
.detail-main-frame {
  width: 100%;
  min-height: 360px;
  border: 1px solid #d7e6ff;
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(244, 165, 0, .10);
}
.detail-main-frame .dingqi-product-photo {
  padding: 26px;
}
.branded-gallery-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.detail-thumb-frame {
  cursor: pointer;
  padding: 0;
  border: 1px solid #d7e6ff;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.detail-thumb-frame:hover,
.detail-thumb-frame.active {
  border-color: #f4a500;
  box-shadow: 0 0 0 3px rgba(244, 165, 0, .12);
  transform: translateY(-1px);
}
.thumb-logo-frame {
  height: 86px;
}
.thumb-logo-frame .dingqi-product-photo {
  padding: 9px;
}
.thumb-logo-frame .dingqi-image-watermark {
  top: 6px;
  left: 6px;
  width: 42px;
}
.product-gallery-upload {
  min-height: 110px;
  gap: 8px;
}
.product-gallery-upload small {
  color: #64748b;
  font-size: 12px;
}
.product-gallery-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.product-gallery-preview span {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid #d7e6ff;
  border-radius: 10px;
  background: #f8fbff;
}
.product-gallery-preview img {
  width: 100%;
  height: 86px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}
.product-gallery-preview .btn {
  min-height: 30px;
  padding: 4px 8px;
  font-size: 12px;
}
.product-gallery-preview em {
  color: #64748b;
  font-style: normal;
  font-weight: 800;
}
.catalog-admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.catalog-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.catalog-admin-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #d7e6ff;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(17, 17, 17, .06);
}
.catalog-admin-card.is-muted {
  opacity: .68;
}
.catalog-admin-card > img {
  width: 92px;
  height: 82px;
  object-fit: contain;
  border-radius: 12px;
  background: #f3f7ff;
  border: 1px solid #dbe7f7;
}
.catalog-admin-info {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.catalog-admin-info strong {
  color: #151515;
  font-size: 18px;
  font-weight: 950;
}
.catalog-admin-info span,
.catalog-admin-info small {
  color: #64748b;
  font-weight: 800;
}
.catalog-admin-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.catalog-modal {
  max-width: 880px;
}
.catalog-modal-body {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
}
.catalog-modal-preview {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 10px;
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #eff6ff, #fff);
  border: 1px solid #d7e6ff;
  text-align: center;
}
.catalog-modal-preview img {
  width: 180px;
  height: 160px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #dbe7f7;
}
.catalog-modal-preview strong {
  color: #151515;
  font-size: 22px;
  font-weight: 950;
}
.catalog-modal-preview span {
  color: #64748b;
  font-weight: 800;
  line-height: 1.7;
}
.catalog-modal-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.catalog-modal-form .full,
.catalog-modal-actions {
  grid-column: 1 / -1;
}
.catalog-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
}
.refined-product-card .card-logo-frame .dingqi-image-watermark {
  top: 10px;
  left: 10px;
  width: 72px;
  max-width: 42%;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.related-products-section .section-head {
  text-align: center;
  justify-content: center;
}
.refined-product-card .mobile-price-line {
  display: grid;
  gap: 3px;
  margin: 8px 0 12px;
}
.refined-product-card .mobile-price-line span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}
.refined-product-card .mobile-price-line strong {
  color: #f2a30f;
  font-size: 22px;
  font-weight: 950;
  direction: ltr;
}
.refined-product-card .product-img .dingqi-image-frame {
  width: 100%;
  height: 100%;
}
.refined-product-card .product-img .dingqi-product-photo {
  padding: 16px;
}
.refined-product-card .product-img .dingqi-image-watermark {
  width: 74px;
}

@media (max-width: 760px) {
  .catalog-admin-head,
  .catalog-admin-actions,
  .catalog-modal-body,
  .catalog-modal-form {
    grid-template-columns: 1fr;
  }
  .catalog-admin-head {
    display: grid;
  }
  .catalog-admin-card {
    grid-template-columns: 74px 1fr;
    padding: 12px;
  }
  .catalog-admin-card > img {
    width: 74px;
    height: 68px;
  }
  .catalog-modal {
    width: min(94vw, 880px);
  }
  .catalog-modal-body {
    padding: 12px;
  }
  .catalog-modal-preview img {
    width: 150px;
    height: 126px;
  }
  .catalog-modal-actions {
    display: grid;
  }
  .polished-manual-order {
    padding: 12px;
  }
  .manual-order-grid,
  .manual-order-line {
    grid-template-columns: 1fr;
  }
  .manual-order-products-head {
    display: grid;
  }
  .manual-order-products-head .btn,
  .manual-order-actions .btn {
    width: 100%;
  }
  .manual-line-number {
    width: 100%;
  }
  .visual-order-line,
  .visual-order-line-head {
    grid-template-columns: 1fr;
  }
  .visual-order-line img {
    width: 100%;
    height: 110px;
  }
  .orders-admin-head {
    display: grid;
  }
  .orders-admin-head .btn {
    width: 100%;
  }
  .inventory-card,
  .payment-card-head {
    grid-template-columns: 1fr;
  }
  .inventory-card > img {
    width: 100%;
    height: 132px;
  }
  .inventory-variants {
    grid-template-columns: 1fr;
  }
  .inventory-variants label {
    grid-template-columns: 1fr;
  }
  .payment-admin-grid {
    grid-template-columns: 1fr;
  }
  .inventory-log li {
    display: grid;
  }
}

@media (max-width: 520px) {
  .products-section .grid,
  #products.grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .grid .product.mobile-shop-card {
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    min-width: 0;
    border: 2px solid #173a86 !important;
    border-radius: 14px !important;
    background: #fff;
    box-shadow: none !important;
    overflow: hidden;
  }
  .grid .product.mobile-shop-card.refined-product-card {
    border-width: 2px !important;
    border-radius: 15px !important;
    box-shadow: 0 8px 18px rgba(244, 165, 0, .08) !important;
  }
  .grid .mobile-shop-card .mobile-shop-img,
  .grid .product.mobile-shop-card .product-img {
    position: relative;
    width: 100%;
    min-height: 164px !important;
    height: 164px !important;
    border: 0 !important;
    border-bottom: 1px solid #dbe7f7 !important;
    background: #fff;
  }
  .grid .mobile-shop-card .card-logo-frame {
    width: 100%;
    height: 100%;
  }
  .grid .mobile-shop-card .card-logo-frame .dingqi-product-photo {
    padding: 18px 13px 9px;
  }
  .grid .mobile-shop-card .card-logo-frame .dingqi-image-watermark {
    width: 54px;
    max-width: 40%;
    height: auto !important;
    padding: 0 !important;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    top: 10px;
    left: 10px;
  }
  .grid .mobile-shop-card .mobile-shop-img img:not(.product-card-logo):not(.product-card-mark),
  .grid .product.mobile-shop-card .product-img > img:not(.product-card-logo):not(.product-card-mark) {
    width: 100%;
    height: 100% !important;
    max-height: none !important;
    object-fit: contain;
    padding: 14px 12px 8px;
  }
  .product-fav {
    position: absolute;
    top: 9px;
    right: 9px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid #d7e3f5;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: #7b879a;
    font-size: 18px;
    line-height: 1;
  }
  .product-card-logo {
    position: absolute;
    top: 8px;
    left: 9px;
    z-index: 2;
    display: block;
    width: 50px !important;
    height: auto !important;
    padding: 0 !important;
    object-fit: contain;
  }
  .grid .mobile-shop-card .mobile-shop-body,
  .grid .product.mobile-shop-card .product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 9px 9px !important;
    text-align: center;
  }
  .grid .mobile-shop-card .pill {
    display: none;
  }
  .grid .mobile-shop-card h3 {
    min-height: 46px;
    margin: 2px 0 8px !important;
    font-size: 15px !important;
    line-height: 1.45;
    font-weight: 900;
    color: #172033;
  }
  .grid .mobile-shop-card h3 a {
    color: inherit;
    text-decoration: none;
  }
  .grid .mobile-shop-card .meta {
    display: none !important;
  }
  .grid .mobile-shop-card .price,
  .grid .mobile-shop-card .wholesale-note {
    display: none !important;
  }
  .mobile-price-line {
    display: grid;
    gap: 2px;
    margin: auto 0 10px;
    color: #172033;
    font-size: 11px;
    font-weight: 800;
  }
  .refined-price-line {
    padding: 6px 8px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff7df, #fff);
    border: 1px solid rgba(250, 179, 36, .45);
  }
  .mobile-price-line strong {
    color: #f2a30f;
    font-size: 17px;
    font-weight: 950;
    direction: ltr;
    text-shadow: 0 1px 0 rgba(255,255,255,.8);
  }
  .grid .mobile-shop-card .mobile-shop-actions,
  .grid .product.mobile-shop-card .product-actions {
    display: grid !important;
    grid-template-columns: 1fr 42px !important;
    gap: 7px !important;
    margin: 0 !important;
  }
  .order-now-card,
  .cart-icon-card {
    min-height: 39px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 900 !important;
  }
  .order-now-card {
    background: #fff !important;
    color: #173a86 !important;
    border: 1.8px solid #173a86 !important;
    box-shadow: none !important;
  }
  .cart-icon-card {
    padding: 0 !important;
    background: #f4a500 !important;
    color: #fff !important;
    border: 1px solid #f4a500 !important;
  }
  .cart-icon-card svg {
    width: 19px;
    height: 19px;
  }
  .store-notice-marquee {
    margin-top: 0;
  }
  .notice-marquee-track {
    gap: 24px;
    padding: 9px 0;
    font-size: 12px;
    animation-duration: 18s;
  }
  .detail-main-frame {
    min-height: 270px;
    border-radius: 10px;
  }
  .detail-main-frame .dingqi-product-photo {
    padding: 18px;
  }
  .dingqi-image-watermark {
    width: 72px;
    top: 10px;
    left: 10px;
  }
  .branded-gallery-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .thumb-logo-frame {
    height: 68px;
  }
  .thumb-logo-frame .dingqi-image-watermark {
    width: 34px;
  }
  .variant-cart-hint {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.3;
  }
  .modern-cart-row {
    grid-template-columns: 64px 1fr;
  }
  .modern-cart-row .cart-row-side {
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
    justify-items: stretch;
    align-items: center;
  }
  .cart-variant-line {
    grid-template-columns: 1fr;
  }
  .detail-page .related-products-section .related-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
}

@media (max-width: 760px) {
  .modern-top-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 6px;
    min-height: 0 !important;
    padding: 7px 12px;
  }
  .modern-top-inner .top-pill {
    width: auto;
    min-height: 28px;
    padding: 4px 8px;
    justify-content: center;
    font-size: 10.5px;
    line-height: 1.25;
    background: #f8fbff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .modern-top-inner .top-pill:first-child {
    grid-column: 1 / -1;
  }
  .modern-site-header .nav {
    padding: 12px 12px 14px;
    gap: 10px;
  }
  .modern-brand {
    width: 100%;
    justify-content: center;
    justify-self: center;
    min-width: 0;
    gap: 10px;
  }
  .modern-brand img {
    width: 190px !important;
    max-height: 66px !important;
  }
  .brand-separator {
    height: 34px;
  }
  .modern-brand .brand-title {
    font-size: 19px;
    white-space: nowrap;
  }
  .modern-site-header .nav-center {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 4px;
    gap: 6px;
    border-radius: 12px;
  }
  .modern-site-header .nav-center a {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 8px 12px;
    font-size: 13px;
  }
  .modern-site-header .nav-actions,
  .modern-site-header .cart-btn {
    width: 100%;
  }
  .modern-site-header .cart-btn {
    min-height: 42px;
    justify-content: center;
  }
  .products-page-hero {
    padding: 34px 18px 40px !important;
    border-radius: 0 0 22px 22px;
    text-align: right;
  }
  .products-page-hero h1 {
    font-size: clamp(30px, 9vw, 42px);
    line-height: 1.25;
    margin-bottom: 12px;
  }
  .products-page-hero p {
    font-size: 14px;
    line-height: 1.8;
  }
  .page-catalogs {
    margin-top: 18px;
    padding-top: 22px;
  }
  .catalog-filter-row {
    margin-top: 14px;
    padding: 0 0 10px 2px;
  }
  .catalog-filter {
    min-height: 42px;
    padding: 7px 11px;
    font-size: 13px;
  }
  .catalog-filter span {
    width: 30px;
    height: 30px;
  }
  .variant-qty-head {
    display: grid;
    gap: 4px;
  }
  .variant-qty-row {
    grid-template-columns: 1fr;
    padding: 11px;
  }
  .mini-qty {
    grid-template-columns: 44px 1fr 44px;
  }
  .compact-footer .footer-inner {
    gap: 22px;
  }
}

/* KIT-inspired storefront layer */
.kit-mini-label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(244, 165, 0, .09);
  color: #f4a500;
  font-size: 12px;
  font-weight: 900;
}

.kit-brand-hero {
  position: relative;
  min-height: clamp(460px, 58vw, 720px);
  overflow: hidden;
  background: #061a4a;
}

.kit-hero-media {
  position: absolute;
  inset: 0;
  display: block;
}

.kit-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.kit-hero-overlay {
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(0deg, rgba(3, 20, 58, .72), rgba(3, 20, 58, 0));
  pointer-events: none;
}

.kit-hero-actions {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 2;
  width: min(1180px, calc(100% - 36px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 14px;
  background: rgba(8, 25, 67, .62);
  box-shadow: 0 24px 60px rgba(3, 16, 45, .28);
  backdrop-filter: blur(14px);
}

.kit-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.kit-hero-stats span {
  display: grid;
  gap: 4px;
  min-height: 68px;
  place-items: center;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 10px;
  color: #fff;
  font-weight: 800;
}

.kit-hero-stats strong {
  font-size: 26px;
  direction: ltr;
}

.kit-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.kit-feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.kit-feature-card {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 132px;
  padding: 18px;
  border: 1px solid #d8e5f8;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f4f8ff);
  box-shadow: 0 14px 34px rgba(4, 38, 90, .06);
}

.kit-feature-card svg {
  width: 24px;
  height: 24px;
  color: #f4a500;
}

.kit-feature-card strong {
  color: #1d1d19;
  font-size: 18px;
}

.kit-feature-card span {
  color: #64748b;
  line-height: 1.7;
  font-size: 13px;
}

.kit-section-head {
  align-items: end;
  gap: 18px;
  margin-bottom: 22px;
}

.kit-section-head h2 {
  margin-top: 10px;
}

.kit-section-head p {
  margin-top: 8px;
  max-width: 680px;
  line-height: 1.8;
}

.kit-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.kit-catalog-tile {
  position: relative;
  min-height: 156px;
  overflow: hidden;
  display: grid;
  align-content: end;
  gap: 5px;
  padding: 16px;
  border: 1px solid #d8e5f8;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 16px 38px rgba(12, 42, 88, .08);
}

.kit-catalog-tile img {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 70px;
  height: 70px;
  object-fit: contain;
  opacity: .85;
}

.kit-catalog-tile strong {
  color: #1d1d19;
  font-size: 18px;
  font-weight: 900;
}

.kit-catalog-tile span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.kit-offer-banners {
  padding-top: 10px;
  padding-bottom: 10px;
}

.kit-brand-story .kit-story-card {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #1d1d19, #f4a500);
  box-shadow: 0 24px 60px rgba(4, 38, 90, .18);
}

.kit-story-card h2 {
  margin: 12px 0;
  color: #fff;
}

.kit-story-card p {
  max-width: 720px;
  color: rgba(255,255,255,.84);
  line-height: 1.9;
}

.kit-story-points {
  display: grid;
  gap: 10px;
}

.kit-story-points span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  font-weight: 850;
}

.kit-catalog-hero {
  padding-top: 44px;
  padding-bottom: 10px;
}

.kit-catalog-hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 340px;
  gap: 24px;
  align-items: center;
  min-height: 260px;
  padding: 30px;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(244, 165, 0,.96), rgba(7,27,70,.96)),
    radial-gradient(circle at 12% 20%, rgba(255,255,255,.22), transparent 30%);
  color: #fff;
  box-shadow: 0 24px 70px rgba(4, 38, 90, .18);
}

.kit-catalog-hero-card.has-banner {
  grid-template-columns: 1fr;
  min-height: clamp(250px, 32vw, 430px);
  padding: 0;
  isolation: isolate;
}

.kit-catalog-banner-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.kit-catalog-hero-card.has-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(3, 18, 55, .76), rgba(3, 18, 55, .28), rgba(3, 18, 55, .12));
}

.kit-catalog-hero-card.no-banner {
  grid-template-columns: 1fr;
  min-height: 220px;
}

.kit-catalog-hero-card.has-banner .kit-catalog-copy {
  align-self: end;
  padding: 32px;
}

.kit-catalog-copy h1 {
  margin: 14px 0 10px;
  color: #fff;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.1;
}

.kit-catalog-copy p {
  max-width: 720px;
  color: rgba(255,255,255,.86);
  line-height: 1.9;
}

.kit-catalog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.kit-catalog-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  font-weight: 850;
}

.kit-catalog-visual {
  display: grid;
  place-items: center;
  min-height: 210px;
  border-radius: 16px;
  background: rgba(255,255,255,.1);
}

.kit-catalog-visual img {
  width: min(230px, 78%);
  height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 20px 24px rgba(0,0,0,.25));
}

.kit-products-catalogs {
  padding-top: 26px;
  padding-bottom: 18px;
}

.kit-catalog-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.kit-catalog-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 7px 14px;
  border: 1px solid #cfe0f7;
  border-radius: 999px;
  background: #fff;
  color: #1d1d19;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.kit-catalog-pill:hover {
  transform: translateY(-2px);
  border-color: #f4a500;
}

.kit-catalog-pill.active {
  background: #f4a500;
  color: #fff;
  border-color: #f4a500;
  box-shadow: 0 14px 30px rgba(244, 165, 0, .2);
}

.kit-catalog-pill span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
}

.kit-catalog-pill img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.kit-products-tools {
  margin: 20px 0 22px;
}

.kit-empty-state {
  grid-column: 1 / -1;
  text-align: center;
}

.kit-product-shell {
  display: grid;
  grid-template-columns: minmax(360px, .95fr) minmax(0, 1.05fr) 300px;
  gap: 18px;
  align-items: start;
  padding-top: 42px;
}

.kit-product-gallery,
.kit-product-info,
.kit-product-buybox,
.kit-info-panel {
  border: 1px solid #d8e5f8;
  border-radius: 14px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 45px rgba(4, 38, 90, .07);
}

.kit-product-gallery,
.kit-product-info,
.kit-product-buybox {
  padding: 16px;
}

.kit-product-main-image {
  min-height: 420px;
  border: 1px solid #cfe0f7;
  box-shadow: 0 0 0 1px rgba(244, 165, 0,.08), 0 18px 45px rgba(244, 165, 0,.1);
}

.kit-product-main-image .dingqi-product-photo {
  padding: 18px;
}

.kit-product-info h1 {
  margin: 12px 0 8px;
  color: #111827;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.18;
}

.kit-product-price-box {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid rgba(250,179,36,.42);
  border-radius: 12px;
  background: linear-gradient(135deg, #fff8e6, #fff);
}

.kit-product-price-box .price {
  margin: 0;
}

.kit-product-variants {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid #d8e5f8;
  border-radius: 12px;
  background: #f8fbff;
}

.kit-product-variants h3 {
  margin: 0;
  font-size: 18px;
}

.kit-product-description {
  color: #64748b;
  line-height: 1.9;
  font-size: 16px;
}

.kit-product-buybox {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 11px;
}

.kit-product-buybox strong {
  color: #1d1d19;
  font-size: 22px;
}

.kit-product-buybox > span {
  color: #64748b;
  line-height: 1.7;
}

.kit-buybox-points {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.kit-buybox-points span {
  padding: 9px 10px;
  border-radius: 9px;
  background: #f4f8ff;
  color: #31415d;
  font-size: 12px;
  font-weight: 850;
}

.kit-product-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.kit-managed-banner {
  padding-top: 14px;
  padding-bottom: 14px;
}

.kit-managed-banner.empty {
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.kit-managed-banner-link {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #d8e5f8;
  background: #f8fbff;
  box-shadow: 0 20px 48px rgba(4, 38, 90, .08);
}

.kit-managed-banner-link picture,
.kit-managed-banner-link img {
  display: block;
  width: 100%;
}

.kit-managed-banner-link img {
  aspect-ratio: 1600 / 520;
  height: auto;
  object-fit: cover;
  object-position: center;
}

.kit-info-panel {
  padding: 20px;
}

.kit-info-panel h2 {
  margin: 0 0 8px;
  color: #1d1d19;
}

.kit-info-panel p {
  margin: 0;
  color: #64748b;
  line-height: 1.8;
}

@media (max-width: 980px) {
  .kit-hero-actions,
  .kit-brand-story .kit-story-card,
  .kit-catalog-hero-card,
  .kit-product-shell,
  .kit-product-tabs {
    grid-template-columns: 1fr;
  }

  .kit-product-buybox {
    position: static;
  }

  .kit-feature-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .kit-brand-hero {
    min-height: auto;
    padding-top: 0;
    background: #1d1d19;
  }

  .kit-hero-media {
    position: relative;
    aspect-ratio: 1 / 1.08;
  }

  .kit-hero-media img {
    object-position: center top;
  }

  .kit-hero-actions {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    transform: none;
    grid-template-columns: 1fr;
    padding: 12px;
    border-radius: 0;
    border-inline: 0;
    background: linear-gradient(135deg, #1d1d19, #f4a500);
  }

  .kit-hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .kit-hero-stats span {
    min-height: 58px;
    padding: 8px 5px;
    font-size: 11px;
  }

  .kit-hero-stats strong {
    font-size: 20px;
  }

  .kit-hero-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .kit-feature-strip {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
  }

  .kit-feature-card {
    min-height: 112px;
    padding: 12px;
  }

  .kit-feature-card strong {
    font-size: 14px;
  }

  .kit-feature-card span {
    font-size: 11px;
    line-height: 1.55;
  }

  .kit-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .kit-catalog-tile {
    min-height: 132px;
    padding: 12px;
  }

  .kit-catalog-tile img {
    width: 54px;
    height: 54px;
  }

  .kit-catalog-tile strong {
    font-size: 14px;
  }

  .kit-brand-story .kit-story-card {
    padding: 18px;
    border-radius: 12px;
  }

  .kit-catalog-hero {
    padding-top: 20px;
  }

  .kit-catalog-hero-card {
    min-height: 0;
    padding: 20px;
    border-radius: 14px;
  }

  .kit-catalog-copy h1 {
    font-size: 32px;
  }

  .kit-catalog-visual {
    min-height: 130px;
  }

  .kit-catalog-visual img {
    width: 150px;
    height: 120px;
  }

  .kit-catalog-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }

  .kit-catalog-pill {
    flex: 0 0 auto;
    scroll-snap-align: start;
    min-height: 42px;
    padding: 6px 12px;
    font-size: 13px;
  }

  .kit-products-tools {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .kit-product-shell {
    padding-top: 18px;
    gap: 12px;
  }

  .kit-product-gallery,
  .kit-product-info,
  .kit-product-buybox {
    padding: 12px;
    border-radius: 12px;
  }

  .kit-product-main-image {
    min-height: 300px;
  }

  .kit-product-info h1 {
    font-size: 32px;
  }

  .kit-product-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .kit-product-buybox .btn {
    width: 100%;
  }
}

/* final product/catalog polish */
.page-variant-dropdown {
  display: grid;
  gap: 10px;
}

.page-variant-field {
  margin: 0;
}

.page-variant-field .select {
  min-height: 52px;
  border-radius: 12px;
  border-color: #b9d1f4;
  background: #fff;
  font-size: 16px;
  font-weight: 900;
  color: #1d1d19;
}

.page-variant-price {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(250, 179, 36, .55);
  border-radius: 12px;
  background: linear-gradient(135deg, #fff7de, #fff);
  color: #f2a30f;
  font-size: 24px;
  font-weight: 950;
  direction: ltr;
  text-align: right;
}

.page-variant-price small {
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
  direction: rtl;
}

.kit-products-page .kit-products-section .kit-catalog-pills {
  display: none;
}

.refined-product-card .card-logo-frame .dingqi-image-watermark,
.grid .mobile-shop-card .card-logo-frame .dingqi-image-watermark {
  display: none !important;
}

.refined-product-card .product-fav {
  right: 10px;
  left: auto;
}

.product-card-mark {
  position: absolute;
  z-index: 4;
  top: 14px;
  left: 14px;
  width: 74px !important;
  height: auto !important;
  max-width: 33%;
  padding: 0 !important;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 5px 8px rgba(4, 35, 90, .12));
}

@media (min-width: 761px) {
  .kit-products-grid,
  .products-section .grid,
  .related-products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }

  .grid .product.mobile-shop-card.refined-product-card {
    display: flex !important;
    flex-direction: column !important;
    min-height: 458px;
    overflow: hidden;
    border: 2px solid #173a86 !important;
    border-radius: 14px !important;
    background: #fff;
    box-shadow: 0 18px 38px rgba(4, 38, 90, .08) !important;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  }

  .grid .product.mobile-shop-card.refined-product-card:hover {
    transform: translateY(-4px);
    border-color: #f4a500 !important;
    box-shadow: 0 24px 48px rgba(244, 165, 0, .14) !important;
  }

  .grid .product.mobile-shop-card .product-img {
    position: relative;
    width: 100%;
    height: 245px;
    min-height: 245px;
    border: 0;
    border-bottom: 1px solid #dbe7f7;
    background: #fff;
  }

  .grid .product.mobile-shop-card .card-logo-frame {
    width: 100%;
    height: 100%;
  }

  .grid .product.mobile-shop-card .card-logo-frame .dingqi-product-photo {
    padding: 34px 22px 16px;
    object-fit: contain;
    filter: drop-shadow(0 12px 16px rgba(4, 38, 90, .12));
  }

  .grid .product.mobile-shop-card .product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 14px 14px !important;
    text-align: center;
  }

  .grid .product.mobile-shop-card h3 {
    min-height: 58px;
    margin: 0 0 12px !important;
    color: #172033;
    font-size: 20px !important;
    font-weight: 950;
    line-height: 1.35;
  }

  .grid .product.mobile-shop-card .meta,
  .grid .product.mobile-shop-card .pill,
  .grid .product.mobile-shop-card .price,
  .grid .product.mobile-shop-card .wholesale-note {
    display: none !important;
  }

  .grid .product.mobile-shop-card .refined-price-line {
    margin: auto 0 14px;
    display: grid;
    place-items: center;
    gap: 4px;
    padding: 14px 12px 15px;
    border: 1px solid rgba(250, 179, 36, .52);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 248, 224, .98), rgba(255, 255, 255, .98));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7);
  }

  .grid .product.mobile-shop-card .refined-price-line span {
    color: #64748b;
    font-size: 13px;
    font-weight: 950;
  }

  .grid .product.mobile-shop-card .refined-price-line strong {
    color: #f2a30f;
    font-size: 29px;
    line-height: 1.05;
  }

  .grid .product.mobile-shop-card .product-actions {
    display: grid !important;
    grid-template-columns: 1fr 54px !important;
    gap: 9px !important;
    margin: 0 !important;
  }

  .grid .product.mobile-shop-card .order-now-card,
  .grid .product.mobile-shop-card .cart-icon-card {
    min-height: 48px !important;
    border-radius: 11px !important;
  }

  .grid .product.mobile-shop-card .order-now-card {
    background: #fff !important;
    color: #173a86 !important;
    border: 2px solid #173a86 !important;
    box-shadow: none !important;
    font-weight: 950 !important;
  }

  .grid .product.mobile-shop-card .cart-icon-card {
    background: #f4a500 !important;
    color: #fff !important;
    border-color: #f4a500 !important;
    box-shadow: 0 10px 18px rgba(244, 165, 0, .2) !important;
  }
}

@media (max-width: 760px) {
  .kit-products-page .kit-products-catalogs {
    padding-bottom: 6px;
  }

  .kit-products-page .kit-products-section {
    padding-top: 10px;
  }

  .page-variant-field .select {
    min-height: 48px;
    font-size: 14px;
  }

  .page-variant-price {
    font-size: 20px;
  }

  .refined-product-card .card-logo-frame .dingqi-image-watermark,
  .grid .mobile-shop-card .card-logo-frame .dingqi-image-watermark {
    display: none !important;
  }

  .product-card-mark {
    top: 9px !important;
    left: 9px !important;
    width: 42px !important;
    max-width: 34%;
    height: auto !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    object-fit: contain !important;
  }

  .grid .mobile-shop-card .card-logo-frame .dingqi-product-photo {
    padding: 22px 10px 8px 18px !important;
  }
}

/* banner upload and catalog banner controls */
.upload-box.is-uploading {
  position: relative;
  border-color: #0b5cff !important;
  background: linear-gradient(135deg, rgba(11, 92, 255, .08), rgba(255, 255, 255, .96)) !important;
}

.upload-box.is-uploading::after {
  content: "جاري الرفع...";
  position: absolute;
  inset: 12px 12px auto auto;
  z-index: 4;
  padding: 7px 12px;
  border-radius: 999px;
  background: #0b5cff;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(11, 92, 255, .24);
}

.banner-admin-panel {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid #d6e4f6;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(4, 35, 90, .08);
}

.panel-title-row,
.banner-form-actions,
.banner-admin-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.banner-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 18px;
}

.banner-editor-card,
.banner-preview-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #dce8f8;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}

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

.banner-upload-box img {
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: contain;
  border-radius: 12px;
  background: #eef5ff;
}

.banner-preview-frame {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d8e6f7;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(11, 92, 255, .08), rgba(255, 255, 255, .95)),
    repeating-linear-gradient(45deg, rgba(9, 45, 99, .05) 0 10px, transparent 10px 20px);
}

.banner-preview-frame.desktop {
  aspect-ratio: 16 / 5;
}

.banner-preview-frame.mobile {
  max-width: 220px;
  aspect-ratio: 4 / 5;
  justify-self: center;
}

.banner-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.banner-preview-frame img:not([src]),
.banner-preview-frame img[src=""] {
  visibility: hidden;
}

.banner-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.banner-admin-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid #d7e5f7;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(4, 35, 90, .07);
}

.banner-admin-card.is-muted {
  opacity: .58;
}

.banner-admin-thumb {
  overflow: hidden;
  border-radius: 13px;
  background: #edf5ff;
}

.banner-admin-thumb img {
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
  display: block;
}

.banner-admin-info {
  display: grid;
  gap: 4px;
}

.banner-admin-info strong {
  color: #1d1d19;
  font-size: 17px;
  font-weight: 950;
}

.kit-category-design-banner {
  max-width: 1240px;
  margin-top: -18px;
  margin-bottom: 24px;
  padding-top: 0;
  padding-bottom: 0;
}

.kit-category-design-banner img,
.kit-category-design-banner > div {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 5;
  border-radius: 18px;
  border: 1px solid rgba(19, 58, 134, .16);
  object-fit: cover;
  background:
    linear-gradient(135deg, rgba(11, 92, 255, .06), rgba(255, 255, 255, .84)),
    rgba(238, 246, 255, .72);
  box-shadow: 0 20px 52px rgba(6, 37, 96, .08);
}

.kit-category-design-banner.is-empty > div {
  min-height: 170px;
}

@media (max-width: 860px) {
  .banner-editor-grid,
  .banner-upload-grid {
    grid-template-columns: 1fr;
  }

  .banner-admin-panel {
    padding: 14px;
    border-radius: 14px;
  }

  .banner-preview-frame.mobile {
    max-width: 180px;
  }

  .kit-category-design-banner {
    margin-top: -6px;
    margin-bottom: 18px;
    padding-inline: 12px;
  }

  .kit-category-design-banner img,
  .kit-category-design-banner > div {
    aspect-ratio: 16 / 7;
    border-radius: 14px;
  }

  .kit-category-design-banner.is-empty > div {
    min-height: 96px;
  }
}

/* secure admin, faster uploads and refined banner/product admin */
.upload-box.is-uploading::after {
  content: attr(data-upload-text) !important;
}

.upload-box.is-uploading:not([data-upload-text])::after {
  content: "جاري الرفع..." !important;
}

.secure-admin-login {
  background:
    radial-gradient(circle at 75% 20%, rgba(244, 165, 0, .16), transparent 32%),
    linear-gradient(145deg, #eef5ff, #ffffff 48%, #eaf2ff);
}

.secure-login-card {
  border: 1px solid rgba(244, 165, 0, .18);
  box-shadow: 0 28px 70px rgba(4, 35, 90, .18);
}

.secure-login-card img {
  width: 190px;
}

.banner-command-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 1px solid #d8e6f7;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff, #f5f9ff);
  box-shadow: 0 18px 42px rgba(4, 35, 90, .07);
}

.banner-command-bar h3 {
  margin: 4px 0 6px;
  color: #1d1d19;
  font-size: 24px;
  font-weight: 950;
}

.improved-banner-grid {
  margin-top: 18px;
}

.banner-editor-modal {
  width: min(1080px, calc(100vw - 28px));
}

.banner-modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 18px;
  padding: 18px;
}

.banner-modal-main {
  display: grid;
  gap: 16px;
}

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

.live-banner-preview {
  align-self: start;
  position: sticky;
  top: 16px;
}

.banner-preview-frame {
  overflow: hidden;
  border: 1px solid #dce8f8;
  border-radius: 14px;
  background: #f5f9ff;
}

.banner-preview-frame img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.banner-preview-frame.desktop img {
  aspect-ratio: 16 / 5.2;
}

.banner-preview-frame.mobile {
  max-width: 230px;
  margin-inline: auto;
}

.banner-preview-frame.mobile img {
  aspect-ratio: 4 / 5;
}

.kit-products-page {
  background:
    linear-gradient(180deg, rgba(232, 242, 255, .95), rgba(255,255,255,.98) 38%),
    radial-gradient(circle at 12% 14%, rgba(244, 165, 0,.08), transparent 26%);
}

.kit-products-page .kit-products-catalogs,
.kit-products-page .kit-products-section {
  max-width: 1240px;
  margin-inline: auto;
}

.kit-products-page .kit-products-catalogs {
  padding: 34px 24px 16px;
  border-bottom: 1px solid rgba(16, 48, 96, .08);
}

.kit-products-page .kit-products-section {
  padding: 24px;
  border: 1px solid rgba(244, 165, 0, .12);
  border-radius: 22px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 24px 70px rgba(4, 35, 90, .08);
}

.kit-products-tools {
  padding: 14px;
  border: 1px solid #d9e7f8;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff, #f7fbff);
}

@media (min-width: 761px) {
  .grid .product.mobile-shop-card.refined-product-card {
    min-height: 438px;
  }

  .grid .product.mobile-shop-card .product-img {
    height: 225px;
    min-height: 225px;
  }
}

@media (max-width: 860px) {
  .banner-command-bar {
    align-items: stretch;
    flex-direction: column;
    padding: 16px;
  }

  .banner-command-bar .btn {
    width: 100%;
  }

  .banner-modal-body {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .improved-upload-grid {
    grid-template-columns: 1fr;
  }

  .live-banner-preview {
    position: static;
  }

  .kit-products-page .kit-products-catalogs {
    padding: 24px 14px 10px;
  }

  .kit-products-page .kit-products-section {
    padding: 14px;
    border-radius: 18px;
  }
}

/* Final admin media library, banner save, and customer polish */
.banner-modal-savebar {
  grid-column: 1 / -1;
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid #d7e6fb;
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 -12px 28px rgba(7, 37, 91, .10);
}

.banner-modal-savebar .btn,
.banner-form-actions .btn,
.media-pick-btn,
.customer-card-actions .btn,
.kit-hero-buttons .btn,
.kit-section-head .btn {
  justify-content: center;
  text-align: center;
}

.media-pick-btn {
  width: 100%;
  margin-top: 10px;
  min-height: 40px;
  border-style: dashed;
  background: #f7fbff;
}

.media-library-frame {
  width: min(1120px, calc(100vw - 30px));
}

.media-library-modal {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.media-library-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #dce8f8;
  border-radius: 16px;
  background: #f7fbff;
}

.media-library-toolbar span {
  color: #f4a500;
  font-weight: 900;
  white-space: nowrap;
}

.media-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
  max-height: 58vh;
  overflow: auto;
  padding-inline-end: 4px;
}

.media-asset-card {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid #d7e6fb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(5, 35, 85, .06);
}

.media-asset-image {
  width: 100%;
  aspect-ratio: 1.2 / 1;
  border: 0;
  border-radius: 12px;
  background: #f3f7fd;
  overflow: hidden;
  cursor: pointer;
}

.media-asset-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.media-asset-info {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.media-asset-info strong,
.media-asset-info span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-asset-info span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.media-asset-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.customer-manager-head {
  align-items: center;
  text-align: start;
}

.customer-stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.customer-stats-row > div,
.customer-admin-card {
  border: 1px solid #dce8f8;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(7, 37, 91, .06);
}

.customer-stats-row > div {
  display: grid;
  gap: 4px;
  padding: 16px;
}

.customer-stats-row strong {
  color: #f4a500;
  font-size: 24px;
}

.customer-stats-row span,
.customer-card-meta {
  color: #64748b;
  font-weight: 800;
}

.customer-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.customer-admin-card {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.customer-admin-card strong {
  display: block;
  color: #0b1b33;
  font-size: 18px;
}

.customer-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.customer-card-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f6ff;
}

.customer-card-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.kit-hero-buttons {
  justify-content: center;
}

.kit-section-head,
.section-head {
  align-items: center;
}

@media (max-width: 760px) {
  .banner-modal-savebar,
  .media-library-toolbar,
  .customer-card-actions,
  .customer-stats-row {
    grid-template-columns: 1fr;
  }

  .media-library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 56vh;
  }

  .media-asset-actions {
    grid-template-columns: 1fr;
  }
}
/* Final autosave, header/footer and upload polish */
.modern-site-header .modern-brand {
  gap: 24px !important;
  align-items: center !important;
}

.modern-site-header .modern-brand img {
  width: clamp(260px, 20vw, 360px) !important;
  max-height: 118px !important;
  object-fit: contain !important;
}

.modern-site-header .modern-brand .brand-separator {
  min-height: 58px !important;
  opacity: .7 !important;
}

.modern-site-header .modern-brand .brand-title {
  font-size: clamp(25px, 2.05vw, 36px) !important;
  font-weight: 900 !important;
}

.auto-save-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

.auto-save-chip::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-left: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34,197,94,.16);
}

.final-footer {
  background:
    radial-gradient(circle at 12% 0%, rgba(35,112,255,.25), transparent 34%),
    linear-gradient(135deg, #06153d 0%, #071b52 48%, #082c7a 100%) !important;
  border-top: 1px solid rgba(255,255,255,.09);
}

.final-footer-inner {
  grid-template-columns: 1.4fr .9fr .9fr !important;
  gap: 30px !important;
}

.final-footer-brand {
  align-items: center !important;
  gap: 18px !important;
}

.final-footer .footer-logo {
  width: clamp(190px, 16vw, 270px) !important;
  max-height: 105px !important;
  object-fit: contain !important;
}

.final-footer h3 {
  margin: 0 0 10px;
  color: #fff !important;
  font-size: 21px;
}

.final-footer p,
.final-footer span,
.final-footer a {
  color: rgba(255,255,255,.9) !important;
}

.final-footer .footer-contact-list {
  display: grid;
  gap: 10px;
}

.final-footer .footer-contact-item {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 10px 12px;
}

.footer-whatsapp-cta,
.floating-whatsapp {
  background: #16a34a !important;
  color: #fff !important;
  border-color: #16a34a !important;
  box-shadow: 0 14px 34px rgba(22,163,74,.32) !important;
}

.footer-whatsapp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  font-weight: 900;
  text-decoration: none;
}

.footer-whatsapp-cta svg,
.floating-whatsapp svg {
  width: 22px;
  height: 22px;
}

.compact-links {
  margin-top: 12px;
  flex-wrap: wrap;
}

.compact-links a {
  background: rgba(255,255,255,.08);
}

.upload-box {
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.upload-box:hover {
  border-color: #0b5cff !important;
  background: #f8fbff !important;
}

.upload-box.is-uploading {
  transform: translateY(-1px);
}

.upload-box.is-uploading::after {
  backdrop-filter: blur(2px);
  font-weight: 900;
}

.variant-sku-input[readonly] {
  background: #eef5ff !important;
  color: #17408f !important;
  border-style: dashed !important;
  cursor: default;
}

@media (max-width: 860px) {
  .modern-site-header .modern-brand {
    gap: 14px !important;
    justify-content: center !important;
  }

  .modern-site-header .modern-brand img {
    width: min(72vw, 260px) !important;
    max-height: 92px !important;
  }

  .modern-site-header .modern-brand .brand-separator {
    min-height: 44px !important;
  }

  .modern-site-header .modern-brand .brand-title {
    font-size: 20px !important;
  }

  .auto-save-chip {
    width: 100%;
    min-height: 42px;
  }

  .final-footer-inner {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  .final-footer-brand {
    flex-direction: column;
    justify-content: center;
  }

  .final-footer .footer-contact-item {
    justify-content: center;
  }
}

/* Silent cloud sync + stronger Dingqi Mauritanie branding */
.cloud-sync-status,
.auto-save-chip {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

.modern-site-header .modern-brand {
  gap: 34px !important;
  line-height: 1.12 !important;
}

.modern-site-header .modern-brand img {
  width: clamp(380px, 30vw, 560px) !important;
  max-height: 170px !important;
  filter: drop-shadow(0 14px 30px rgba(0,0,0,.18));
}

.modern-site-header .modern-brand .brand-title {
  font-size: clamp(34px, 3.1vw, 56px) !important;
  line-height: 1.06 !important;
  letter-spacing: 0 !important;
}

.modern-site-header .modern-brand .brand-title small {
  display: none !important;
}

.modern-site-header .modern-brand .brand-separator {
  min-height: 84px !important;
  background: rgba(255,255,255,.52) !important;
}

.product-card-mark,
.dingqi-image-watermark {
  object-fit: contain !important;
}

.product-card-mark {
  position: absolute !important;
  top: 12px !important;
  inset-inline-start: 12px !important;
  width: clamp(58px, 4.6vw, 86px) !important;
  height: auto !important;
  max-height: 46px !important;
  z-index: 4 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.dingqi-image-frame .dingqi-image-watermark {
  width: clamp(72px, 6vw, 104px) !important;
  max-height: 56px !important;
  opacity: .96 !important;
}

@media (max-width: 860px) {
  .modern-site-header .modern-brand {
    gap: 18px !important;
    justify-content: flex-start !important;
    width: 100% !important;
  }

  .modern-site-header .modern-brand img {
    width: min(58vw, 340px) !important;
    max-height: 132px !important;
  }

  .modern-site-header .modern-brand .brand-separator {
    min-height: 66px !important;
  }

  .modern-site-header .modern-brand .brand-title {
    font-size: clamp(24px, 7.2vw, 34px) !important;
    line-height: 1.08 !important;
  }

  .product-card-mark {
    top: 10px !important;
    inset-inline-start: 10px !important;
    width: 62px !important;
    max-height: 36px !important;
  }

  .grid .mobile-shop-card .card-logo-frame .dingqi-image-watermark,
  .refined-product-card .card-logo-frame .dingqi-image-watermark {
    width: 66px !important;
    max-height: 38px !important;
    top: 10px !important;
    inset-inline-start: 10px !important;
  }
}

/* Balanced header text and clearer responsive banner ratios */
.modern-site-header .modern-brand {
  gap: 26px !important;
}

.modern-site-header .modern-brand .brand-title {
  white-space: nowrap !important;
  font-size: clamp(24px, 1.7vw, 32px) !important;
  line-height: 1 !important;
}

.modern-site-header .modern-brand .brand-separator {
  min-height: 64px !important;
}

.kit-brand-hero {
  min-height: clamp(390px, 42vw, 620px) !important;
}

.display-banner,
.banner-card,
.kit-catalog-hero-card.has-banner,
.kit-category-design-banner img,
.kit-category-design-banner > div,
.kit-managed-banner-link img,
.banner-preview-frame.desktop,
.banner-upload-box img,
.banner-admin-thumb img {
  aspect-ratio: 16 / 7.2 !important;
}

.kit-catalog-hero-card.has-banner {
  min-height: auto !important;
}

.banner-preview-frame.mobile,
.banner-preview-frame.mobile img {
  aspect-ratio: 1 / 1 !important;
}

@media (max-width: 860px) {
  .modern-site-header .modern-brand {
    gap: 12px !important;
  }

  .modern-site-header .modern-brand img {
    width: min(54vw, 300px) !important;
    max-height: 118px !important;
  }

  .modern-site-header .modern-brand .brand-title {
    font-size: clamp(17px, 4.8vw, 24px) !important;
    white-space: nowrap !important;
  }

  .modern-site-header .modern-brand .brand-separator {
    min-height: 48px !important;
  }

  .kit-brand-hero {
    min-height: clamp(330px, 94vw, 520px) !important;
  }

  .display-banner,
  .banner-card,
  .kit-catalog-hero-card.has-banner,
  .kit-category-design-banner img,
  .kit-category-design-banner > div,
  .kit-managed-banner-link img {
    aspect-ratio: 4 / 3 !important;
  }
}

/* Final PC header balance + one banner ratio everywhere */
@media (min-width: 861px) {
  .modern-site-header .nav {
    max-width: 1220px !important;
    min-height: 112px !important;
    display: grid !important;
    grid-template-columns: minmax(360px, 1fr) auto minmax(130px, 190px) !important;
    align-items: center !important;
    gap: 22px !important;
    padding: 18px 22px !important;
  }

  .modern-site-header .modern-brand {
    grid-column: 1 !important;
    justify-self: start !important;
    min-width: 0 !important;
    width: auto !important;
    gap: 18px !important;
  }

  .modern-site-header .modern-brand img {
    width: clamp(185px, 13vw, 250px) !important;
    max-height: 82px !important;
  }

  .modern-site-header .modern-brand .brand-separator {
    min-height: 46px !important;
  }

  .modern-site-header .modern-brand .brand-title {
    font-size: clamp(20px, 1.45vw, 28px) !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .modern-site-header .nav-center {
    grid-column: 2 !important;
    justify-self: center !important;
    width: auto !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    padding: 6px !important;
  }

  .modern-site-header .nav-center a {
    min-width: max-content !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
  }

  .modern-site-header .nav-actions {
    grid-column: 3 !important;
    justify-self: end !important;
    width: auto !important;
    flex-wrap: nowrap !important;
  }

  .modern-site-header .cart-btn {
    min-width: 128px !important;
    justify-content: center !important;
    padding-inline: 14px !important;
  }
}

.kit-brand-hero {
  width: min(100%, 1440px) !important;
  margin-inline: auto !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 7.2 !important;
  max-height: 650px !important;
}

.kit-hero-media,
.kit-hero-media img,
.campaign-media,
.campaign-media img,
.display-banner,
.banner-card,
.kit-catalog-hero-card.has-banner,
.kit-category-design-banner img,
.kit-category-design-banner > div,
.kit-managed-banner-link img,
.banner-preview-frame.desktop,
.banner-preview-frame.desktop img,
.banner-preview-frame.mobile,
.banner-preview-frame.mobile img,
.banner-upload-box img,
.banner-admin-thumb img {
  aspect-ratio: 16 / 7.2 !important;
}

@media (max-width: 860px) {
  .kit-brand-hero {
    width: 100% !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 7.2 !important;
    max-height: none !important;
  }

  .kit-hero-media {
    position: relative !important;
    aspect-ratio: 16 / 7.2 !important;
  }

  .kit-hero-media img,
  .campaign-media img,
  .display-banner img,
  .banner-card img,
  .kit-managed-banner-link img {
    object-fit: cover !important;
    object-position: center !important;
  }
}

/* Main campaign hero is intentionally separate from managed banners */
.kit-home .kit-brand-hero {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
  border-radius: 0 !important;
  aspect-ratio: auto !important;
  min-height: clamp(520px, 42vw, 760px) !important;
  max-height: none !important;
  isolation: isolate;
}

.kit-home .kit-brand-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.10), rgba(255,255,255,0) 34%, rgba(255,255,255,.13) 52%, rgba(255,255,255,0) 68%),
    linear-gradient(0deg, rgba(3, 14, 42, .24), rgba(3, 14, 42, 0) 38%);
  mix-blend-mode: screen;
  transform: translateX(42%);
  animation: dingqiHeroSweep 8s ease-in-out infinite;
}

.kit-home .kit-hero-media {
  position: absolute !important;
  inset: 0 !important;
  aspect-ratio: auto !important;
}

.kit-home .kit-hero-media img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  object-position: center !important;
  transform: scale(1.012);
  animation: dingqiHeroFloat 14s ease-in-out infinite alternate;
}

.kit-home .kit-hero-overlay {
  z-index: 2 !important;
  height: 42% !important;
  background: linear-gradient(0deg, rgba(3, 18, 52, .78), rgba(3, 18, 52, .18) 62%, rgba(3, 18, 52, 0)) !important;
}

.kit-home .kit-hero-actions {
  z-index: 3 !important;
}

@keyframes dingqiHeroFloat {
  from { transform: scale(1.012) translate3d(0, 0, 0); }
  to { transform: scale(1.045) translate3d(-10px, 0, 0); }
}

@keyframes dingqiHeroSweep {
  0%, 34% { transform: translateX(48%); opacity: 0; }
  48% { opacity: .55; }
  70%, 100% { transform: translateX(-48%); opacity: 0; }
}

@media (max-width: 860px) {
  .kit-home .kit-brand-hero {
    min-height: 0 !important;
    aspect-ratio: auto !important;
    background: #1d1d19 !important;
  }

  .kit-home .kit-hero-media {
    position: relative !important;
    aspect-ratio: 1 / 1.08 !important;
  }

  .kit-home .kit-hero-media img {
    height: 100% !important;
    aspect-ratio: 1 / 1.08 !important;
    object-fit: cover !important;
    object-position: center top !important;
    animation-duration: 12s;
  }

  .kit-home .kit-hero-actions {
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    width: 100% !important;
    transform: none !important;
    border-radius: 0 !important;
  }
}

/* Final product quantity, cart and banner stability polish */
.stacked-product-actions,
.grid .product.mobile-shop-card .stacked-product-actions {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  margin-top: auto !important;
}

.cart-text-card {
  min-height: 44px;
  border: 1.8px solid #0b4aa2 !important;
  background: #fff !important;
  color: #0b2f6f !important;
  font-weight: 950 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cart-text-card svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.4;
}

.stacked-product-actions .order-now-card {
  min-height: 44px;
  width: 100%;
}

.improved-product-shell {
  grid-template-columns: minmax(360px, .9fr) minmax(0, 1fr) minmax(320px, .82fr) !important;
}

.improved-product-buybox {
  gap: 13px !important;
}

.page-qty-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d8e6f7;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff, #f6faff);
}

.page-qty-head {
  display: grid;
  gap: 4px;
}

.page-qty-head strong {
  color: #1d1d19;
  font-size: 18px;
  font-weight: 950;
}

.page-qty-head span,
.page-variant-option small,
.page-qty-summary span {
  color: #64748b;
  font-weight: 800;
}

.page-product-qty,
.page-variant-qty-row {
  width: 100%;
}

.page-product-qty {
  display: grid !important;
  grid-template-columns: 48px 1fr 48px;
}

.page-product-qty .field,
.page-variant-qty-row .field {
  text-align: center;
  font-weight: 950;
  direction: ltr;
}

.page-variant-qty-grid {
  display: grid;
  gap: 9px;
}

.page-variant-qty-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 148px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #dce8f8;
  border-radius: 12px;
  background: rgba(255,255,255,.92);
}

.page-variant-option {
  display: grid;
  gap: 3px;
}

.page-variant-option strong {
  color: #1d1d19;
  font-weight: 950;
}

.page-qty-summary,
.order-line-total,
.cart-total-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff7e4;
  border: 1px solid rgba(242, 163, 15, .32);
}

.page-qty-summary strong,
.order-line-total strong,
.cart-total-box strong {
  color: #f2a30f;
  font-size: 20px;
  font-weight: 950;
  direction: ltr;
}

.add-cart-main-btn,
.order-now-main-btn {
  min-height: 48px;
  font-size: 17px;
  font-weight: 950;
}

.product-details-under-actions {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid #dce8f8;
}

.product-details-under-actions h2 {
  margin: 0;
  color: #1d1d19;
  font-size: 20px;
}

.product-details-under-actions p {
  margin: 0;
  color: #64748b;
  line-height: 1.9;
}

.smooth-order-modal {
  width: min(760px, calc(100vw - 24px));
}

.single-order-body {
  grid-template-columns: 1fr !important;
}

.order-lines-preview {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.order-line-chip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #dce8f8;
  border-radius: 12px;
  background: #f8fbff;
}

.order-line-chip span {
  color: #1d1d19;
  font-weight: 900;
}

.order-line-chip strong {
  color: #0b5cff;
  direction: ltr;
}

.improved-cart-row {
  grid-template-columns: 72px minmax(0,1fr) auto !important;
  align-items: start !important;
  border: 1px solid #dce8f8;
  border-radius: 14px;
  padding: 10px;
  background: #fff;
}

.improved-cart-row > img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 12px;
  background: #f8fbff;
}

.cart-variant-editor {
  display: grid;
  gap: 8px;
  margin-top: 9px;
}

.cart-variant-line {
  display: grid;
  grid-template-columns: minmax(0,1fr) 134px;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  background: #f7fbff;
}

.cart-variant-line small {
  display: block;
  color: #64748b;
  font-weight: 800;
}

.banner-modal-savebar {
  background: rgba(255,255,255,.98) !important;
  border-color: #d8e6f7 !important;
  box-shadow: 0 -14px 30px rgba(7,27,70,.08) !important;
}

.banner-modal-savebar .btn.primary,
.banner-modal-savebar button[onclick*="saveBanner"],
.banner-form-actions button[onclick*="saveBanner"] {
  background: #f4a500 !important;
  color: #fff !important;
  border-color: #f4a500 !important;
}

@media (min-width: 761px) {
  .grid .product.mobile-shop-card.refined-product-card {
    min-height: 468px !important;
  }

  .grid .product.mobile-shop-card .product-img {
    min-height: 220px !important;
  }

  .grid .product.mobile-shop-card .product-body {
    display: grid !important;
    grid-template-rows: auto 1fr auto;
  }
}

@media (max-width: 960px) {
  .improved-product-shell {
    grid-template-columns: 1fr !important;
  }

  .improved-product-buybox {
    position: static !important;
  }
}

@media (max-width: 760px) {
  .grid .product.mobile-shop-card .stacked-product-actions {
    grid-template-columns: 1fr !important;
    gap: 7px !important;
  }

  .cart-text-card,
  .stacked-product-actions .order-now-card {
    min-height: 39px !important;
    font-size: 13px !important;
    padding: 8px 6px !important;
  }

  .cart-text-card svg {
    width: 17px;
    height: 17px;
  }

  .page-variant-qty-row,
  .cart-variant-line {
    grid-template-columns: 1fr;
  }

  .page-product-qty {
    grid-template-columns: 44px 1fr 44px;
  }

  .smooth-order-modal {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 18px);
  }

  .smooth-order-modal .order-modal-body {
    padding: 12px !important;
  }

  .order-line-chip,
  .page-qty-summary,
  .order-line-total,
  .cart-total-box {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }

  .improved-cart-row {
    grid-template-columns: 64px 1fr !important;
  }

  .improved-cart-row .cart-row-side {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

/* Final stability pass: admin navigation, banners and compact purchase flow */
.product-sku-small {
  direction: ltr;
  color: #718096;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  margin-top: -4px;
  word-break: break-word;
}

.product-purchase-side .product-sku-small {
  text-align: center;
  margin-bottom: 4px;
}

.stable-admin-shell .side-btn,
.stable-admin-shell button,
.stable-admin-shell select,
.stable-admin-shell input,
.stable-admin-shell textarea {
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.stable-admin-shell .side-btn:hover,
.stable-admin-shell button:hover {
  transform: translateY(-1px);
}

.stable-banner-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.stable-banner-head p {
  margin: 4px 0 0;
  color: #64748b;
  font-weight: 800;
}

.stable-banner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.stable-banner-card {
  border: 1px solid #dbe8fb;
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(9, 34, 86, .08);
}

.stable-banner-card img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  display: block;
  background: #eff6ff;
}

.stable-banner-card-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.stable-banner-card-body strong {
  color: #1d1d19;
  font-size: 18px;
}

.stable-banner-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: #64748b;
  font-weight: 800;
}

.stable-banner-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.stable-banner-modal .modal-header {
  background: linear-gradient(135deg, #08296c, #075df2) !important;
}

.stable-banner-modal .modal-body {
  max-height: min(74vh, 760px);
  overflow: auto;
}

.stable-banner-modal .banner-modal-layout {
  display: grid;
  grid-template-columns: minmax(320px, .78fr) minmax(360px, 1.22fr);
  gap: 16px;
  align-items: start;
}

.stable-banner-modal .banner-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stable-banner-modal label {
  display: grid;
  gap: 7px;
  color: #0f2347;
  font-weight: 900;
}

.stable-banner-modal input,
.stable-banner-modal select,
.stable-banner-modal textarea {
  min-height: 46px;
}

.stable-banner-modal label.wide {
  grid-column: 1 / -1;
}

.stable-banner-modal .banner-upload-box {
  border: 1px dashed #bdd4f3;
  background: #f7fbff;
  border-radius: 16px;
  padding: 10px;
  text-align: center;
}

.stable-banner-modal .banner-upload-box img {
  width: 100%;
  max-height: 175px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}

.stable-banner-modal .banner-preview-card {
  border: 1px solid #dbe8fb;
  border-radius: 18px;
  padding: 14px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.stable-banner-modal .preview-desktop {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid #dbe8fb;
  background: #eff6ff;
}

.stable-banner-modal .preview-mobile {
  width: min(210px, 70%);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid #dbe8fb;
  background: #eff6ff;
  display: block;
  margin: 12px auto 0;
}

.stable-banner-modal .banner-form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  padding-top: 10px;
  position: sticky;
  bottom: 0;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid #e2ebf7;
}

.stable-banner-modal .banner-form-actions .btn.primary {
  min-height: 48px;
  min-width: 160px;
  background: #075df2 !important;
  color: #fff !important;
}

.product-page .compact-page-qty,
.improved-product-buybox .compact-page-qty {
  border-radius: 18px;
  background: #fff;
  border-color: #d7e7fb;
}

.cart-item-qty {
  max-width: 148px;
}

@media (max-width: 920px) {
  .stable-banner-modal .banner-modal-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .product-sku-small {
    font-size: 11px;
  }

  .stable-banner-head {
    align-items: stretch;
    flex-direction: column;
  }

  .stable-banner-modal .modal-body {
    max-height: calc(100dvh - 118px);
    padding: 12px !important;
  }

  .stable-banner-modal .banner-form-grid {
    grid-template-columns: 1fr;
  }

  .stable-banner-modal .banner-form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .stable-banner-modal .banner-form-actions .btn {
    width: 100%;
  }
}

/* ============================================
   🎨 PREMIUM UI ENHANCEMENTS v2
   Appended at end — safe cascade overrides
   ============================================ */

/* --- Smooth global transitions --- */
a, .btn, .product, .catalog-tile, .pay-card, .metric-card {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Header: glassmorphism effect --- */
.site-header,
.modern-site-header {
  background: linear-gradient(135deg, rgba(4, 53, 154, 0.97), rgba(244, 165, 0, 0.95)) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 4px 30px rgba(4, 53, 154, 0.25);
  position: sticky;
  top: 0;
  z-index: 90;
}

/* --- Top strip: subtle animation --- */
.top-strip,
.modern-top-strip {
  background: linear-gradient(90deg, #101010, #3a3321, #f4a500, #3a3321, #101010) !important;
  background-size: 200% 100% !important;
  animation: stripShimmer 8s ease infinite;
  font-size: 12.5px;
  letter-spacing: 0.3px;
}
@keyframes stripShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* --- Navigation links: hover glow --- */
.nav-center a {
  position: relative;
  padding: 6px 14px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.nav-center a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.nav-center a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.nav-center a:hover::after {
  width: 60%;
}

/* --- Cart button: pulse on items --- */
.cart-btn,
.nav-actions .btn {
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  font-weight: 600;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}
.cart-btn:hover,
.nav-actions .btn:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* --- Brand logo: subtle animation --- */
.brand img,
.modern-brand img {
  transition: transform 0.3s ease;
}
.brand:hover img,
.modern-brand:hover img {
  transform: scale(1.06);
}

/* --- Hero section: enhanced --- */
.campaign-hero,
.hero {
  position: relative;
  overflow: hidden;
}
.campaign-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 70%, rgba(244, 182, 63, 0.08) 0%, transparent 50%);
  animation: heroGlow 6s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}
@keyframes heroGlow {
  0% { opacity: 0.4; transform: scale(1); }
  100% { opacity: 0.8; transform: scale(1.1); }
}

/* --- Hero action buttons: premium look --- */
.campaign-actions .btn.gold {
  background: linear-gradient(135deg, #f4b63f, #e6a020) !important;
  color: #1a1a1a !important;
  border: none !important;
  font-weight: 800;
  padding: 14px 32px;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(244, 182, 63, 0.35);
  text-transform: none;
  letter-spacing: 0.3px;
}
.campaign-actions .btn.gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(244, 182, 63, 0.5);
}
.campaign-actions .btn.primary {
  border-radius: 14px;
  padding: 14px 28px;
  font-weight: 700;
}

/* --- Hero stats: glass cards --- */
.hero-stat {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px 20px;
  backdrop-filter: blur(10px);
}
.hero-stat strong {
  font-size: 26px;
  background: linear-gradient(135deg, #fff, #f4b63f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Catalog tiles: premium glassmorphism --- */
.catalog-showcase .catalog-tile {
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 16px !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04)),
    linear-gradient(135deg, #f4a500, #3a3321) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2) !important;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease !important;
}
.catalog-showcase .catalog-tile:hover {
  transform: translateY(-8px) scale(1.02) !important;
  box-shadow: 0 24px 60px rgba(244, 165, 0, 0.4) !important;
  border-color: rgba(255,255,255,0.5) !important;
}

/* --- Product cards: modern redesign --- */
.product,
article.product {
  border-radius: 18px !important;
  overflow: hidden;
  border: 1px solid rgba(220, 228, 239, 0.7) !important;
  background: #fff !important;
  box-shadow: 0 4px 20px rgba(5, 25, 66, 0.06) !important;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease !important;
}
.product:hover,
article.product:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 50px rgba(5, 25, 66, 0.12) !important;
  border-color: var(--brand) !important;
}

/* --- Product image: zoom on hover --- */
.product-img img,
.product a img {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.product:hover .product-img img,
.product:hover a img {
  transform: scale(1.06);
}

/* --- Product price: gradient text --- */
.product .price,
.price {
  background: linear-gradient(135deg, var(--brand), #ffba22);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* --- Product buttons: polished --- */
.product-actions .btn.primary,
.hero-actions .btn.primary,
.add-cart-main-btn {
  border-radius: 12px !important;
  font-weight: 700;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 14px rgba(244, 165, 0, 0.2);
}
.product-actions .btn.primary:hover,
.hero-actions .btn.primary:hover,
.add-cart-main-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(244, 165, 0, 0.35);
}

/* --- Pills: modern look --- */
.pill {
  background: linear-gradient(135deg, var(--brand-soft), #dbeaff) !important;
  color: var(--brand) !important;
  border-radius: 50px !important;
  padding: 5px 16px !important;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2px;
  border: 1px solid rgba(244, 165, 0, 0.1);
}

/* --- Section headers: accent line --- */
.section-head h2 {
  position: relative;
  display: inline-block;
}
.section-head h2::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  border-radius: 3px;
}

/* --- Features cards: subtle entry --- */
.feature-card,
.trust-card {
  border-radius: 16px !important;
  border: 1px solid rgba(220, 228, 239, 0.5) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}
.feature-card:hover,
.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(5, 25, 66, 0.08) !important;
}

/* --- Footer: dark premium look --- */
.site-footer,
.compact-footer,
.final-footer {
  background: linear-gradient(180deg, #101010 0%, #151515 100%) !important;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(244, 165, 0, 0.2), transparent 70%);
  pointer-events: none;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.5);
}

/* --- WhatsApp button: floating animation --- */
.floating-whatsapp {
  border-radius: 50px !important;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.35) !important;
  animation: whatsappPulse 2.5s ease-in-out infinite;
  font-weight: 700;
  z-index: 95;
}
@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(37, 211, 102, 0.35); }
  50% { box-shadow: 0 8px 40px rgba(37, 211, 102, 0.55), 0 0 0 8px rgba(37, 211, 102, 0.1); }
}

/* --- Toast notification: modern --- */
.toast {
  border-radius: 14px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2) !important;
  backdrop-filter: blur(12px);
  font-weight: 600;
}

/* --- Order modal: premium --- */
.order-modal,
.enhanced-order-modal,
.polished-order-modal {
  border-radius: 20px !important;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3) !important;
}
.order-modal-head {
  background: linear-gradient(135deg, #101010, #f4a500) !important;
}

/* --- Buttons: global refinement --- */
.btn {
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn.primary {
  background: linear-gradient(135deg, #f4a500, #ffba22) !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(244, 165, 0, 0.25);
}
.btn.primary:hover {
  box-shadow: 0 8px 24px rgba(244, 165, 0, 0.4);
  transform: translateY(-1px);
}
.btn.gold {
  background: linear-gradient(135deg, #f4b63f, #e6a020) !important;
  color: #1a1a1a !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(244, 182, 63, 0.3);
}
.btn.gold:hover {
  box-shadow: 0 8px 24px rgba(244, 182, 63, 0.5);
  transform: translateY(-1px);
}

/* --- Inputs: refined fields --- */
.field, .select {
  border-radius: 12px !important;
  border: 1.5px solid var(--line) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.field:focus, .select:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 4px rgba(244, 165, 0, 0.1) !important;
  outline: none;
}

/* --- Panels: cleaner look --- */
.panel {
  border-radius: 16px !important;
  border: 1px solid rgba(220, 228, 239, 0.6) !important;
  box-shadow: 0 2px 12px rgba(5, 25, 66, 0.04) !important;
}

/* --- Scrollbar: styled --- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(244, 165, 0, 0.2);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(244, 165, 0, 0.4);
}

/* --- Fade-up animation --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up {
  animation: fadeUp 0.5s ease-out forwards;
}

/* --- Mobile improvements --- */
@media (max-width: 900px) {
  .site-header,
  .modern-site-header {
    position: sticky;
    top: 0;
    z-index: 90;
  }
  
  .nav-center {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(3, 14, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  .nav-center.open {
    display: flex;
  }
  .nav-center a {
    font-size: 22px;
    padding: 14px 40px;
    border-radius: 14px;
    color: #fff;
  }
  .nav-center a:hover {
    background: rgba(244, 165, 0, 0.3);
  }
}

/* --- Smooth page transitions --- */
#app {
  animation: fadeUp 0.3s ease-out;
}

/* --- Loading shimmer for images --- */
.product-img,
.product a {
  background: linear-gradient(135deg, #f3f6f9 0%, #e8eef5 50%, #f3f6f9 100%);
  background-size: 200% 100%;
}

/* Final hero and banner stability */
.campaign-hero.kit-brand-hero {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  background: #151515;
}

.campaign-hero .kit-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.banner-editor-modal .banner-modal-body {
  max-height: min(82vh, 860px);
  overflow: auto;
}

.banner-editor-modal .banner-form-actions {
  position: sticky;
  bottom: 0;
  background: rgba(255,255,255,0.96);
  padding: 12px;
  border-top: 1px solid var(--line);
  z-index: 3;
}

.banner-upload-box img {
  object-fit: contain;
  background: #eef4ff;
}

@media (min-width: 901px) {
  .campaign-hero.kit-brand-hero {
    min-height: clamp(520px, 43vw, 760px);
  }

  .campaign-hero .kit-hero-media {
    position: absolute;
    inset: 0;
  }

  .campaign-hero .kit-hero-actions {
    bottom: clamp(24px, 4vw, 58px);
    max-width: 1180px;
  }
}

@media (max-width: 900px) {
  .campaign-hero.kit-brand-hero {
    min-height: 0 !important;
    display: block;
    border-radius: 0;
  }

  .campaign-hero .kit-hero-media {
    position: relative !important;
    inset: auto !important;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
  }

  .campaign-hero .kit-hero-media img {
    object-fit: cover;
    object-position: center top;
    transform: none !important;
  }

  .campaign-hero .kit-hero-overlay {
    display: none !important;
  }

  .campaign-hero .kit-hero-actions {
    position: static !important;
    width: 100%;
    max-width: none;
    transform: none !important;
    margin: 0;
    border-radius: 0;
    background: linear-gradient(180deg, #151515, #f4a500);
    padding: 14px;
    display: grid;
    gap: 12px;
    box-shadow: none;
  }

  .campaign-hero .kit-hero-buttons,
  .campaign-hero .hero-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .campaign-hero .kit-hero-stats,
  .campaign-hero .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .campaign-hero .kit-hero-stats > *,
  .campaign-hero .hero-stats > * {
    min-width: 0;
    padding: 10px 6px;
    text-align: center;
  }
}
/* Marketing pixels and live analytics dashboard */
.pixels-dashboard,
.dingqi-dashboard-v2 {
  display: grid;
  gap: 18px;
}

.pixel-hero-card,
.dashboard-insight-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(244, 165, 0, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at 10% 10%, rgba(244, 165, 0, 0.16), transparent 36%),
    linear-gradient(135deg, #ffffff 0%, #edf5ff 100%);
  box-shadow: 0 18px 45px rgba(8, 32, 75, 0.08);
}

.pixel-hero-card h3,
.dashboard-insight-hero h3 {
  margin: 8px 0 8px;
  color: #1d1d19;
  font-size: clamp(24px, 3vw, 36px);
}

.pixel-hero-card p,
.dashboard-insight-hero p {
  margin: 0;
  max-width: 760px;
  color: #64748b;
  line-height: 1.9;
}

.pixel-grid-v2 {
  align-items: stretch;
}

.pixel-grid-v2 .pixel-card {
  min-height: 245px;
  border-radius: 18px;
  border-color: rgba(244, 165, 0, 0.18);
  box-shadow: 0 16px 38px rgba(8, 32, 75, 0.07);
}

.pixel-grid-v2 textarea.field,
.pixel-grid-v2 textarea {
  min-height: 116px;
  resize: vertical;
  direction: ltr;
  text-align: left;
  font-family: Consolas, "Courier New", monospace;
}

.pixel-test-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-pro-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pro-stat {
  min-height: 164px;
  border: 1px solid rgba(244, 165, 0, 0.14);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.98), rgba(239,246,255,0.92)),
    radial-gradient(circle at 80% 0%, rgba(255, 183, 44, 0.18), transparent 32%);
}

.pro-stat strong {
  color: #f4a500;
}

.pro-stat.live-card {
  background:
    linear-gradient(145deg, #09245b, #f4a500),
    radial-gradient(circle at 15% 10%, rgba(255,255,255,0.24), transparent 36%);
  color: #ffffff;
}

.pro-stat.live-card strong,
.pro-stat.live-card span {
  color: #ffffff;
}

.dashboard-split {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: start;
}

.analytics-platform-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.analytics-platform-list div {
  padding: 16px;
  border: 1px solid rgba(244, 165, 0, 0.14);
  border-radius: 14px;
  background: #f8fbff;
}

.analytics-platform-list strong {
  display: block;
  font-size: 28px;
  color: #f4a500;
}

.analytics-platform-list span {
  color: #64748b;
  font-weight: 700;
}

@media (max-width: 980px) {
  .dashboard-pro-grid,
  .dashboard-split {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-split > .panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .pixel-hero-card,
  .dashboard-insight-hero,
  .pixel-test-panel {
    align-items: stretch;
    flex-direction: column;
  }
  .dashboard-pro-grid,
  .pixel-grid-v2,
  .analytics-platform-list {
    grid-template-columns: 1fr;
  }
  .pixel-grid-v2 .span2 {
    grid-column: auto;
  }
}

/* Final checkout and admin stability layer */
.ops-order-backdrop {
  align-items: center;
  padding: 18px;
}

.ops-order-modal {
  width: min(860px, calc(100vw - 28px));
  max-height: min(820px, calc(100dvh - 28px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(5, 20, 55, 0.35);
}

.ops-order-head {
  background: linear-gradient(135deg, #24211a, #f4a500);
  color: #ffffff;
  padding: 18px 22px;
}

.ops-order-head strong {
  display: block;
  font-size: 24px;
}

.ops-order-head div div {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.84);
}

.ops-order-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px;
  background: #f5f9ff;
}

.ops-order-summary,
.ops-order-card,
.ops-qty-panel {
  border: 1px solid rgba(244, 165, 0, 0.14);
  border-radius: 16px;
  background: #ffffff;
  padding: 16px;
  margin-bottom: 14px;
}

.ops-order-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.ops-order-summary span,
.ops-qty-panel label {
  display: block;
  color: #64748b;
  font-weight: 800;
  margin-bottom: 6px;
}

.ops-order-summary strong {
  display: block;
  color: #1d1d19;
}

.ops-order-total {
  min-width: 160px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff8e8;
  border: 1px solid rgba(255, 183, 44, 0.45);
}

.ops-order-total strong {
  color: #f2a100;
  font-size: 22px;
}

.ops-qty-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ops-qty-control {
  width: min(320px, 100%);
}

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

.ops-order-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid rgba(244, 165, 0, 0.12);
  background: #ffffff;
}

.ops-order-footer .btn {
  min-height: 50px;
  justify-content: center;
  font-size: 16px;
}

.ops-order-footer .whatsapp-btn,
.floating-whatsapp {
  background: #16a34a;
  color: #ffffff;
  border-color: #16a34a;
}

.ops-order-footer .whatsapp-btn svg,
.floating-whatsapp svg {
  color: #ffffff;
}

.ops-cart-drawer {
  width: min(430px, 100vw);
}

.ops-cart-body {
  display: grid;
  gap: 12px;
}

.ops-cart-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(244, 165, 0, 0.14);
  border-radius: 16px;
  background: #ffffff;
}

.ops-cart-row img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: 12px;
  background: #f8fbff;
  border: 1px solid #e3edff;
}

.ops-cart-info {
  display: grid;
  gap: 4px;
}

.ops-cart-info strong {
  color: #1d1d19;
  line-height: 1.5;
}

.ops-cart-info span {
  color: #64748b;
  font-weight: 800;
}

.ops-cart-info b {
  color: #f2a100;
}

.ops-cart-qty {
  grid-column: 1 / -1;
}

.ops-cart-row .danger {
  grid-column: 1 / -1;
}

.invoice-editor-modal {
  width: min(820px, calc(100vw - 28px));
  max-height: calc(100dvh - 32px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.invoice-editor-body {
  overflow-y: auto;
}

.invoices-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

@media (max-width: 900px) {
  .modern-site-header {
    background: linear-gradient(135deg, #151515, #f4a500);
  }

  .modern-site-header .nav {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 14px 14px;
  }

  .modern-site-header .modern-brand {
    width: 100%;
    justify-content: center;
    gap: 12px;
  }

  .modern-site-header .modern-brand img {
    width: 126px;
    max-height: 54px;
    object-fit: contain;
  }

  .modern-site-header .brand-title {
    font-size: 18px;
    line-height: 1;
    white-space: nowrap;
  }

  .modern-site-header .brand-separator {
    height: 34px;
  }

  .modern-site-header .nav-center {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.16);
  }

  .modern-site-header .nav-center a {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 4px;
    border-radius: 10px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.08);
  }

  .modern-site-header .nav-actions {
    width: 100%;
  }

  .modern-site-header .cart-btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    background: #ffffff;
    color: #1d1d19;
    border-color: rgba(255, 255, 255, 0.85);
  }
}

@media (max-width: 640px) {
  .ops-order-backdrop {
    align-items: flex-end;
    padding: 8px;
  }

  .ops-order-modal {
    width: 100%;
    max-height: calc(100dvh - 14px);
    border-radius: 18px 18px 8px 8px;
  }

  .ops-order-head {
    padding: 14px 16px;
  }

  .ops-order-head strong {
    font-size: 20px;
  }

  .ops-order-scroll {
    padding: 12px;
  }

  .ops-order-summary,
  .ops-qty-panel {
    grid-template-columns: 1fr;
  }

  .ops-qty-panel {
    align-items: stretch;
  }

  .ops-payment-grid,
  .ops-order-footer {
    grid-template-columns: 1fr;
  }

  .customer-order-fields {
    grid-template-columns: 1fr;
  }

  .modern-site-header .nav-center {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modern-site-header .modern-brand img {
    width: 116px;
  }

  .modern-site-header .brand-title {
    font-size: 16px;
  }
}

/* Final production polish: clean header, locked modals, smoother admin panels */
.modern-top-strip {
  display: none !important;
}

body.modal-open {
  overflow: hidden !important;
  touch-action: none;
}

body.modal-open #app {
  overscroll-behavior: none;
}

.modern-site-header {
  background: linear-gradient(120deg, #151515 0%, #8a5b00 48%, #f4a500 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.modern-site-header .nav {
  max-width: 1220px;
  margin: 0 auto;
  padding: 18px 20px;
  display: grid !important;
  grid-template-columns: minmax(240px, auto) minmax(360px, 1fr) minmax(150px, auto);
  align-items: center;
  gap: 22px;
}

.modern-site-header .modern-brand {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  color: #fff;
  min-width: 0;
}

.modern-site-header .modern-brand img {
  width: 150px;
  max-height: 74px;
  object-fit: contain;
}

.modern-site-header .brand-title {
  font-size: 28px;
  line-height: 1;
  font-weight: 1000;
  color: #fff;
  white-space: nowrap;
}

.modern-site-header .brand-title small {
  display: none !important;
}

.modern-site-header .brand-separator {
  width: 1px;
  height: 50px;
  background: rgba(255, 255, 255, 0.35);
}

.modern-site-header .nav-center {
  width: fit-content;
  justify-self: center;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.modern-site-header .nav-center a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 10px;
  color: #fff;
  font-weight: 950;
  white-space: nowrap;
}

.modern-site-header .nav-center a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.modern-site-header .nav-actions {
  justify-self: start;
}

.modern-site-header .cart-btn {
  min-height: 48px;
  border-radius: 12px;
  background: #fff;
  color: #1d1d19;
  border: 0;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

.ops-order-backdrop,
.modal-backdrop.admin-modal-backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  touch-action: none;
}

.ops-order-modal,
.admin-modal {
  touch-action: auto;
  overscroll-behavior: contain;
}

.ops-order-scroll,
.order-modal-scroll,
.invoice-editor-body,
.admin-modal .admin-scroll,
.admin-modal-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.ops-order-scroll {
  max-height: min(64dvh, 620px);
}

.order-modal-scroll {
  min-height: 0;
  max-height: min(64dvh, 620px);
  padding: 16px 18px;
}

.ops-order-footer {
  position: sticky;
  bottom: 0;
  z-index: 7;
  box-shadow: 0 -12px 28px rgba(7, 29, 73, 0.08);
}

.orders-v5-table .btn,
.invoices-panel .btn {
  min-height: 40px;
  border-radius: 10px;
  font-weight: 900;
}

.ops-order-detail-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
}

.ops-detail-card,
.ops-products-card,
.ops-receipt-card {
  padding: 16px;
  border: 1px solid rgba(244, 165, 0, 0.14);
  border-radius: 18px;
  background: #fff;
}

.ops-detail-actions,
.ops-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ops-detail-product {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid #e3edff;
  border-radius: 14px;
  background: #f8fbff;
  margin-bottom: 10px;
}

.ops-detail-product img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}

.invoice-lines-editor {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.invoice-line-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.2fr) 86px 110px 44px;
  gap: 8px;
  align-items: end;
  padding: 12px;
  border: 1px solid #dbe8ff;
  border-radius: 16px;
  background: #f8fbff;
}

.invoice-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: #fff8e8;
  border: 1px solid rgba(255, 183, 44, 0.45);
  font-weight: 1000;
}

.analytics-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.analytics-mini-card {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff, #eff6ff);
  border: 1px solid #dbe8ff;
  box-shadow: 0 14px 32px rgba(7, 29, 73, 0.08);
}

.analytics-mini-card strong {
  display: block;
  color: #f4a500;
  font-size: 28px;
  line-height: 1.1;
}

.analytics-mini-card span {
  color: #64748b;
  font-weight: 900;
}

@media (max-width: 1020px) {
  .modern-site-header .nav {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .modern-site-header .modern-brand,
  .modern-site-header .nav-actions {
    justify-self: center;
  }
}

@media (max-width: 720px) {
  .modern-site-header .nav {
    padding: 12px 12px 14px;
  }

  .modern-site-header .modern-brand {
    width: 100%;
    justify-content: center;
    gap: 12px;
  }

  .modern-site-header .modern-brand img {
    width: 132px;
    max-height: 56px;
  }

  .modern-site-header .brand-title {
    font-size: 18px;
  }

  .modern-site-header .brand-separator {
    height: 34px;
  }

  .modern-site-header .nav-center {
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 6px;
    gap: 6px;
  }

  .modern-site-header .nav-center::-webkit-scrollbar {
    display: none;
  }

  .modern-site-header .nav-center a {
    flex: 0 0 auto;
    min-width: 88px;
    min-height: 40px;
    padding: 8px 12px;
    font-size: 13px;
  }

  .modern-site-header .nav-actions {
    width: 100%;
  }

  .modern-site-header .cart-btn {
    width: 100%;
    justify-content: center;
  }

  .ops-order-backdrop {
    padding: 0;
    align-items: stretch;
  }

  .ops-order-modal {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .ops-order-scroll {
    max-height: none;
    min-height: 0;
  }

  .order-modal-scroll {
    max-height: none;
    min-height: 0;
    padding: 12px;
  }

  .ops-order-detail-grid,
  .invoice-line-row,
  .analytics-mini-grid {
    grid-template-columns: 1fr;
  }

  .ops-detail-product {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .ops-detail-product strong:last-child {
    grid-column: 1 / -1;
  }
}

/* Dingqi final visibility and mobile header hotfix - 2026-05-03 */
.admin-layout.clean-admin-shell,
.admin-layout.stable-admin-shell.clean-admin-shell {
  direction: ltr !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 292px !important;
  gap: 24px !important;
  align-items: start !important;
  width: 100% !important;
  min-height: 100dvh !important;
  padding: 24px !important;
  background:
    radial-gradient(circle at 18% 6%, rgba(244, 165, 0, .13), transparent 32%),
    linear-gradient(180deg, #eff6ff 0%, #f8fbff 62%, #eef5ff 100%) !important;
  overflow: visible !important;
}

.clean-admin-shell .admin-main {
  direction: rtl !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 1 !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: calc(100dvh - 48px) !important;
  padding: 0 !important;
  margin: 0 !important;
  transform: none !important;
  overflow: visible !important;
}

.clean-admin-shell #adminContent {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 320px !important;
}

.clean-admin-shell .sidebar {
  direction: rtl !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  position: sticky !important;
  top: 20px !important;
  width: 100% !important;
  height: calc(100dvh - 40px) !important;
  min-height: 640px !important;
  padding: 26px 18px !important;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, #123a91 0%, #08265f 100%) !important;
  box-shadow: 0 28px 70px rgba(8, 38, 95, .22) !important;
  overflow-y: auto !important;
}

.clean-admin-shell .admin-hero {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  min-height: 174px !important;
  margin: 0 0 18px !important;
  padding: 30px !important;
  border: 1px solid rgba(255, 255, 255, .18) !important;
  border-radius: 20px !important;
  color: #fff !important;
  background:
    linear-gradient(135deg, rgba(6, 28, 79, .98), rgba(5, 91, 242, .96)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .18), transparent 30%) !important;
  box-shadow: 0 20px 52px rgba(244, 165, 0, .18) !important;
}

.clean-admin-shell .admin-hero h1,
.clean-admin-shell .admin-hero p {
  color: #fff !important;
  margin: 0 !important;
}

.clean-admin-shell .admin-hero h1 {
  font-size: clamp(28px, 3vw, 48px) !important;
  line-height: 1.15 !important;
}

.clean-admin-shell .admin-hero p {
  margin-top: 10px !important;
  max-width: 760px !important;
  color: rgba(255, 255, 255, .86) !important;
}

.clean-admin-shell .side-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  min-height: 50px !important;
  padding: 11px 14px !important;
  border: 1px solid rgba(255, 255, 255, .13) !important;
  border-radius: 12px !important;
  color: #fff !important;
  background: rgba(255, 255, 255, .07) !important;
  text-decoration: none !important;
  font-weight: 800 !important;
}

.clean-admin-shell .side-btn svg {
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 20px !important;
}

.clean-admin-shell .side-btn.active {
  color: #f4a500 !important;
  background: #fff !important;
  box-shadow: 0 16px 30px rgba(0, 0, 0, .12) !important;
}

.clean-admin-shell .admin-menu-toggle,
.clean-admin-shell .admin-drawer-close {
  display: none !important;
}

.clean-admin-shell .panel,
.clean-admin-shell .table-wrap,
.clean-admin-shell .admin-recovery-card {
  border-radius: 18px !important;
  border: 1px solid rgba(8, 38, 95, .10) !important;
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: 0 16px 44px rgba(8, 38, 95, .08) !important;
}

.site-header.modern-site-header {
  background: linear-gradient(100deg, #151515 0%, #f4a500 100%) !important;
  border: 0 !important;
  box-shadow: 0 16px 44px rgba(244, 165, 0, .16) !important;
}

.modern-site-header .nav {
  max-width: 1210px !important;
  min-height: 116px !important;
  margin: 0 auto !important;
  padding: 18px 18px !important;
  display: grid !important;
  grid-template-columns: auto minmax(360px, 1fr) auto !important;
  align-items: center !important;
  gap: 24px !important;
}

.modern-site-header .modern-brand {
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 18px !important;
  min-width: 0 !important;
}

.modern-site-header .modern-brand img {
  width: 190px !important;
  height: auto !important;
  max-height: 78px !important;
  object-fit: contain !important;
}

.modern-site-header .brand-title {
  color: #fff !important;
  font-size: clamp(26px, 2.4vw, 42px) !important;
  font-weight: 1000 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.modern-site-header .brand-title small {
  display: none !important;
}

.modern-site-header .brand-separator {
  display: block !important;
  width: 1px !important;
  height: 56px !important;
  background: rgba(255, 255, 255, .32) !important;
}

.modern-site-header .nav-center {
  position: static !important;
  inset: auto !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  padding: 8px !important;
  border: 1px solid rgba(255, 255, 255, .18) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, .10) !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.modern-site-header .nav-center a {
  color: #fff !important;
  background: transparent !important;
  border: 0 !important;
  min-height: 38px !important;
  padding: 8px 12px !important;
  font-weight: 900 !important;
  text-align: center !important;
  text-decoration: none !important;
}

.modern-site-header .nav-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

.modern-site-header .cart-btn {
  background: #fff !important;
  color: #1d1d19 !important;
  border: 0 !important;
  min-height: 52px !important;
  border-radius: 12px !important;
  font-weight: 1000 !important;
}

.modern-site-header .menu-toggle,
.modern-site-header .nav-toggle,
.modern-site-header .mobile-menu-toggle {
  display: none !important;
}

@media (max-width: 980px) {
  .admin-layout.clean-admin-shell,
  .admin-layout.stable-admin-shell.clean-admin-shell {
    display: block !important;
    padding: 74px 12px 18px !important;
    min-height: 100dvh !important;
    overflow-x: hidden !important;
  }

  .clean-admin-shell .admin-main {
    width: 100% !important;
    min-height: auto !important;
  }

  .clean-admin-shell .admin-hero {
    flex-direction: column !important;
    align-items: stretch !important;
    min-height: auto !important;
    padding: 20px !important;
    border-radius: 18px !important;
  }

  .clean-admin-shell .quick-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .clean-admin-shell .sidebar {
    position: fixed !important;
    inset: 0 0 0 auto !important;
    z-index: 1000 !important;
    width: min(86vw, 340px) !important;
    height: 100dvh !important;
    min-height: 0 !important;
    border-radius: 0 !important;
    transform: translateX(105%) !important;
    transition: transform .28s ease !important;
  }

  .clean-admin-shell.menu-open .sidebar {
    transform: translateX(0) !important;
  }

  .clean-admin-shell .admin-menu-backdrop {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 990 !important;
    background: rgba(2, 12, 32, .52) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity .22s ease !important;
  }

  .clean-admin-shell.menu-open .admin-menu-backdrop {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .clean-admin-shell .admin-menu-toggle {
    direction: ltr !important;
    display: inline-grid !important;
    place-items: center !important;
    position: fixed !important;
    top: 14px !important;
    right: 14px !important;
    z-index: 1100 !important;
    width: 48px !important;
    height: 48px !important;
    border: 1px solid rgba(8, 38, 95, .12) !important;
    border-radius: 14px !important;
    color: #f4a500 !important;
    background: #fff !important;
    box-shadow: 0 16px 34px rgba(8, 38, 95, .18) !important;
  }

  .clean-admin-shell .admin-menu-toggle svg {
    width: 24px !important;
    height: 24px !important;
  }

  .clean-admin-shell .admin-drawer-close {
    display: inline-grid !important;
    place-items: center !important;
    width: 42px !important;
    height: 42px !important;
    border: 1px solid rgba(255, 255, 255, .18) !important;
    border-radius: 12px !important;
    color: #fff !important;
    background: rgba(255, 255, 255, .08) !important;
  }
}

@media (max-width: 760px) {
  .modern-top-strip {
    display: none !important;
  }

  .site-header.modern-site-header,
  .modern-site-header {
    position: relative !important;
    top: auto !important;
    z-index: 20 !important;
    min-height: 0 !important;
    background: linear-gradient(160deg, #151515 0%, #f4a500 100%) !important;
  }

  .modern-site-header .nav {
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    padding: 12px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .modern-site-header .modern-brand {
    order: 1 !important;
    width: 100% !important;
    justify-content: center !important;
    gap: 10px !important;
  }

  .modern-site-header .modern-brand img {
    width: 146px !important;
    max-height: 56px !important;
  }

  .modern-site-header .brand-separator {
    height: 34px !important;
  }

  .modern-site-header .brand-title {
    font-size: 17px !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
  }

  .modern-site-header .nav-center {
    order: 2 !important;
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    width: 100% !important;
    gap: 6px !important;
    padding: 6px !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, .10) !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .modern-site-header .nav-center a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    min-height: 40px !important;
    padding: 6px 4px !important;
    border-radius: 10px !important;
    color: #fff !important;
    background: rgba(255, 255, 255, .08) !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
  }

  .modern-site-header .nav-actions {
    order: 3 !important;
    width: 100% !important;
    justify-content: stretch !important;
  }

  .modern-site-header .cart-btn {
    width: 100% !important;
    min-height: 46px !important;
    justify-content: center !important;
    font-size: 14px !important;
  }

  .hero,
  .hero.clean-hero {
    margin-top: 0 !important;
  }
}

@media (max-width: 420px) {
  .modern-site-header .nav-center {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
/* Cloudflare phase 1: cleaner product management */
.admin-products-modern {
  display: grid;
  gap: 18px;
  margin-bottom: 20px;
}

.admin-products-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(244, 165, 0, .16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 20%, rgba(244, 165, 0, .12), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%);
  box-shadow: 0 18px 45px rgba(5, 33, 83, .08);
}

.admin-products-hero h3 {
  margin: 8px 0 6px;
  color: #1d1d19;
  font-size: clamp(24px, 2.4vw, 38px);
  line-height: 1.15;
}

.admin-products-hero p {
  margin: 0;
  color: #63718a;
  line-height: 1.8;
}

.admin-products-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 10px;
}

.admin-products-stats span {
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 12px 14px;
  border: 1px solid rgba(244, 165, 0, .18);
  border-radius: 16px;
  background: rgba(255, 255, 255, .78);
  color: #66758f;
  text-align: center;
  align-content: center;
}

.admin-products-stats strong {
  color: #b87700;
  font-size: 26px;
  line-height: 1;
}

.admin-products-toolbar {
  padding: 12px;
  border: 1px solid rgba(16, 39, 79, .08);
  border-radius: 18px;
  background: #fff;
}

.admin-products-toolbar input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(244, 165, 0, .15);
  border-radius: 14px;
  padding: 0 16px;
  font: inherit;
  color: #1d1d19;
  background: #f8fbff;
}

.admin-product-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.admin-product-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(244, 165, 0, .16);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(5, 33, 83, .07);
}

.admin-product-media {
  min-height: 118px;
  border-radius: 16px;
  background: linear-gradient(145deg, #f8fbff, #eef5ff);
  display: grid;
  place-items: center;
  overflow: hidden;
}

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

.admin-product-body {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.admin-product-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.admin-product-title-row h4 {
  margin: 0 0 4px;
  color: #1d1d19;
  font-size: 18px;
  line-height: 1.35;
}

.admin-product-title-row p {
  margin: 0;
  color: #687792;
  font-size: 13px;
}

.admin-product-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-product-facts span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #f2f6ff;
  color: #233b65;
  font-size: 13px;
  font-weight: 700;
}

.admin-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-product-actions .btn {
  min-height: 40px;
  border-radius: 12px;
}

.admin-product-actions .btn.danger {
  background: #e11d48;
  color: #fff;
  border-color: #e11d48;
}

.admin-product-actions .btn.ghost {
  background: #fff;
  color: #b87700;
}

.is-hidden-by-filter {
  display: none !important;
}

@media (max-width: 900px) {
  .admin-products-hero {
    grid-template-columns: 1fr;
    text-align: right;
  }

  .admin-products-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .admin-products-modern {
    gap: 12px;
  }

  .admin-products-hero {
    padding: 16px;
    border-radius: 18px;
  }

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

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

  .admin-product-card {
    grid-template-columns: 96px minmax(0, 1fr);
    padding: 12px;
    border-radius: 18px;
  }

  .admin-product-media {
    min-height: 96px;
  }

  .admin-product-actions .btn {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
  }

  .admin-products-legacy {
    display: none;
  }
}


/* Dingqi Mauritania skin */
:root{--brand:#f4a500;--brand-dark:#141414;--brand-soft:#fff4cf;--ink:#151515;--muted:#687076;--line:#e6ddc4;--soft:#f7f5ef;--gold:#f4a500;--green:#008f68;--black:#111111;--shadow:0 24px 70px rgba(20,20,20,.13)}
.top-strip,.site-header.modern-site-header{background:linear-gradient(100deg,#111 0%,#2b2b24 48%,#f4a500 100%)!important;box-shadow:0 16px 44px rgba(17,17,17,.18)!important}.hero,.hero.clean-hero{background:radial-gradient(circle at 14% 16%,rgba(244,165,0,.35),transparent 30%),linear-gradient(135deg,#101010 0%,#263022 54%,#f4a500 118%)!important}.btn.primary,.clean-admin-shell .side-btn.active{background:#f4a500!important;border-color:#f4a500!important;color:#111!important}.btn.gold{background:#008f68!important;border-color:#008f68!important;color:#fff!important}.price,.category-card strong,.analytics-mini-card strong{color:#b87700!important}.product:hover{border-color:rgba(244,165,0,.42)!important;box-shadow:0 25px 60px rgba(244,165,0,.16)!important}.product-img,.admin-product-media{background:linear-gradient(180deg,#fffdf6,#f4f1e7)!important}.sidebar,.clean-admin-shell .sidebar{background:linear-gradient(180deg,#111 0%,#25251f 62%,#b87700 100%)!important}.admin-hero,.dashboard-command,.product-io-panel,.export-hub-panel{background:linear-gradient(135deg,#111,#3a3321 58%,#c98600)!important}.site-footer{background:linear-gradient(135deg,#101010,#2a261d)!important}.pill{color:#8a5b00!important;background:#fff4cf!important}.stock-pill{color:#fff!important;background:#111!important}.banner-card::after{background:linear-gradient(90deg,rgba(17,17,17,.92),rgba(244,165,0,.18))!important}

.modern-top-strip,.clean-admin-shell .topbar{background:#111!important;color:#fff!important}.btn.save,.btn.checkout,.cart-btn,.admin-login-card button[type="submit"],.product-actions .primary,.filter-chip.active{background:#f4a500!important;border-color:#f4a500!important;color:#111!important}.btn.success,.btn.whatsapp,.status-pill.paid,.status-pill.done{background:#008f68!important;border-color:#008f68!important;color:#fff!important}.kpi-card.blue,.kpi-card.primary,.dashboard-command,.product-io-panel,.export-hub-panel{background:linear-gradient(135deg,#111,#3a3321 58%,#c98600)!important}.clean-admin-shell input:focus,.clean-admin-shell textarea:focus,.clean-admin-shell select:focus,input:focus,textarea:focus,select:focus{border-color:#f4a500!important;box-shadow:0 0 0 4px rgba(244,165,0,.18)!important}a,.link-btn,.admin-link{color:#b87700!important}.tag,.chip,.pill{border-color:#f4a500!important}.brand-logo img,.admin-brand img{object-fit:contain!important}

body{background:radial-gradient(circle at 92% 4%,rgba(244,165,0,.12),transparent 30%),linear-gradient(180deg,#fffdf6 0%,#f3efe4 100%)!important;color:#151515!important}.kit-hero-actions{background:rgba(17,17,17,.78)!important;border-color:rgba(244,165,0,.32)!important;box-shadow:0 28px 60px rgba(17,17,17,.22)!important}.kit-hero-stat,.hero-stat{background:rgba(255,255,255,.08)!important;border-color:rgba(244,165,0,.35)!important}.kit-hero-stat strong,.hero-stat strong{color:#fff!important}.kit-hero-stat span,.hero-stat span{color:#f6d98d!important}.announcement-bar,.marquee-strip,.store-notice-marquee{background:linear-gradient(90deg,#fffaf0,#fff6dd,#fffaf0)!important;border-color:#f4a500!important;color:#151515!important}.announcement-bar strong,.marquee-strip strong,.store-notice-marquee,.store-notice-marquee *{color:#151515!important}.notice-marquee-track svg,.store-notice-marquee svg{color:#f4a500!important;stroke:#f4a500!important}.feature-card,.value-card{border-color:rgba(244,165,0,.28)!important;background:#fffef9!important}.feature-card svg,.value-card svg{color:#f4a500!important;stroke:#f4a500!important}

html,body,button,input,select,textarea{font-family:"Tajawal","Cairo",Tahoma,Arial,sans-serif!important}.modern-brand img,.site-header .brand img{width:300px!important;max-height:108px!important}.modern-site-header .nav,.site-header .nav{min-height:92px!important}.product-card-mark,.product-fav,.card-logo-frame .dingqi-image-watermark,.thumb-logo-frame .dingqi-image-watermark{display:none!important}.dingqi-clean-card{border:1px solid rgba(244,165,0,.26)!important;border-radius:18px!important;background:#fff!important;box-shadow:0 22px 55px rgba(17,17,17,.09)!important;overflow:hidden!important}.dingqi-clean-card .product-img{min-height:330px!important;background:linear-gradient(180deg,#fffdf7,#f3efe4)!important}.dingqi-clean-card .dingqi-product-photo{width:100%!important;height:320px!important;object-fit:contain!important;padding:16px!important;filter:drop-shadow(0 18px 22px rgba(17,17,17,.16))!important}.dingqi-clean-card .product-body{padding:18px!important;gap:10px!important}.dingqi-clean-card h3{font-size:22px!important;line-height:1.35!important;min-height:58px!important}.product-code-line{direction:ltr;align-self:flex-start;border:1px solid rgba(244,165,0,.34);background:#fff7df;color:#5b3b00;font-weight:900;border-radius:999px;padding:5px 10px;font-size:13px;letter-spacing:.3px}.product-category-pill{align-self:flex-start}.refined-price-line strong{font-size:24px!important;color:#111!important}.catalog-showcase{background:linear-gradient(135deg,#111 0%,#2d291d 58%,#d99100 130%)!important;color:#fff!important;border-radius:0!important;padding-block:54px!important}.catalog-showcase .section-head{align-items:end!important}.catalog-showcase .section-head h2,.catalog-showcase .section-head p{color:#fff!important}.catalog-showcase .catalog-icon-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important;gap:16px!important}.catalog-showcase .catalog-tile{min-height:172px!important;border:1px solid rgba(244,165,0,.38)!important;background:rgba(255,255,255,.08)!important;backdrop-filter:blur(8px);border-radius:16px!important;padding:16px!important;display:grid!important;grid-template-columns:92px 1fr!important;align-items:center!important;color:#fff!important;box-shadow:0 18px 45px rgba(0,0,0,.18)!important}.catalog-showcase .catalog-tile:hover{transform:translateY(-4px)!important;background:rgba(255,255,255,.13)!important;border-color:#f4a500!important}.catalog-showcase .catalog-symbol{width:86px!important;height:86px!important;border-radius:14px!important;background:#fff!important;padding:8px!important}.catalog-showcase .catalog-symbol img{width:100%!important;height:100%!important;object-fit:contain!important}.catalog-showcase .catalog-text strong{font-size:20px!important;color:#fff!important}.catalog-showcase .catalog-text .meta{color:#f6d98d!important;font-weight:800!important}.admin-layout.clean-admin-shell,.admin-layout.admin-shell{background:#f7f3e8!important}.admin-main{background:linear-gradient(180deg,#fffaf0,#f7f3e8)!important}.admin-hero{border:1px solid rgba(244,165,0,.35)!important;box-shadow:0 24px 60px rgba(17,17,17,.14)!important}.admin-product-card{border-color:rgba(244,165,0,.3)!important;border-radius:16px!important;box-shadow:0 14px 36px rgba(17,17,17,.07)!important}.admin-product-media{width:110px!important;height:110px!important;border-radius:14px!important;background:#fff!important}.admin-product-media img{object-fit:contain!important;padding:8px!important}.variant-option small b,.product-code-line{unicode-bidi:plaintext}@media(max-width:760px){.modern-brand img,.site-header .brand img{width:230px!important;max-height:90px!important}.dingqi-clean-card .product-img{min-height:275px!important}.dingqi-clean-card .dingqi-product-photo{height:265px!important}.catalog-showcase .catalog-tile{grid-template-columns:76px 1fr!important;min-height:142px!important}.catalog-showcase .catalog-symbol{width:72px!important;height:72px!important}}

.kit-home-catalogs{background:linear-gradient(135deg,#111 0%,#2b2619 58%,#d99100 128%)!important;color:#fff!important;padding:58px max(24px,calc((100vw - 1180px)/2))!important}.kit-home-catalogs .kit-section-head h2,.kit-home-catalogs .kit-section-head p,.kit-home-catalogs .kit-mini-label{color:#fff!important}.kit-catalog-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(210px,1fr))!important;gap:16px!important}.kit-catalog-tile{min-height:190px!important;border:1px solid rgba(244,165,0,.42)!important;background:rgba(255,255,255,.09)!important;box-shadow:0 22px 55px rgba(0,0,0,.18)!important;border-radius:18px!important;padding:16px!important;display:grid!important;grid-template-rows:96px auto auto!important;align-items:center!important;text-align:center!important;color:#fff!important;backdrop-filter:blur(8px)}.kit-catalog-tile:hover{transform:translateY(-5px)!important;background:rgba(255,255,255,.14)!important;border-color:#f4a500!important}.kit-catalog-tile img{width:104px!important;height:92px!important;object-fit:contain!important;margin:auto!important;background:#fff!important;border-radius:14px!important;padding:8px!important;box-shadow:0 16px 30px rgba(0,0,0,.16)!important}.kit-catalog-tile strong{font-size:20px!important;color:#fff!important;line-height:1.25!important}.kit-catalog-tile span{color:#f8d77d!important;font-weight:900!important}.kit-home-products .section-head,.products-section .section-head{align-items:end!important}.kit-home-products .grid,.products-section .grid{gap:22px!important}@media(max-width:760px){.kit-home-catalogs{padding:38px 16px!important}.kit-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.kit-catalog-tile{min-height:158px!important;padding:12px!important}.kit-catalog-tile img{width:78px!important;height:72px!important}.kit-catalog-tile strong{font-size:16px!important}}

/* Stable polished catalog layout */
.kit-home-catalogs{width:min(1180px,calc(100% - 32px))!important;margin:34px auto!important;border-radius:0!important;background:linear-gradient(145deg,#111 0%,#1e1c16 54%,#7b5400 100%)!important;padding:54px 44px!important;box-shadow:0 34px 90px rgba(17,17,17,.22)!important}.kit-home-catalogs .kit-section-head{display:flex!important;align-items:end!important;justify-content:space-between!important;gap:22px!important;margin-bottom:28px!important}.kit-home-catalogs .kit-section-head h2{font-size:clamp(32px,4vw,54px)!important;line-height:1.08!important;margin:8px 0!important}.kit-home-catalogs .kit-section-head p{max-width:620px!important;line-height:1.9!important;color:#f8e6b5!important}.kit-catalog-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px!important;max-width:100%!important;margin:0!important}.kit-catalog-tile{position:relative!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;gap:13px!important;min-height:226px!important;padding:22px 16px 18px!important;overflow:hidden!important;text-align:center!important;text-decoration:none!important;background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.055))!important;border:1px solid rgba(244,165,0,.45)!important;border-radius:22px!important;box-shadow:0 22px 48px rgba(0,0,0,.20)!important;backdrop-filter:blur(12px)!important}.kit-catalog-tile::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 50% 0%,rgba(244,165,0,.22),transparent 45%);pointer-events:none}.kit-catalog-tile:hover{transform:translateY(-6px)!important;border-color:#f4a500!important;background:linear-gradient(180deg,rgba(255,255,255,.16),rgba(255,255,255,.075))!important}.kit-catalog-tile img{position:relative!important;display:block!important;flex:0 0 auto!important;width:104px!important;height:104px!important;margin:0 auto 4px!important;object-fit:contain!important;background:#fff!important;border-radius:24px!important;padding:14px!important;box-shadow:0 18px 34px rgba(0,0,0,.22)!important}.kit-catalog-tile strong{position:relative!important;display:block!important;width:100%!important;min-height:52px!important;margin:0!important;color:#fff!important;font-size:20px!important;font-weight:900!important;line-height:1.35!important;text-shadow:none!important;letter-spacing:0!important;white-space:normal!important;overflow-wrap:break-word!important}.kit-catalog-tile span{position:relative!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:30px!important;margin-top:auto!important;padding:5px 12px!important;border-radius:999px!important;background:rgba(244,165,0,.16)!important;border:1px solid rgba(244,165,0,.35)!important;color:#ffe29a!important;font-size:13px!important;font-weight:900!important}.variant-dropdown-wrap{display:grid!important;gap:8px!important;margin:12px 0!important}.variant-dropdown-wrap>span{font-weight:900!important;color:#111!important}.variant-select-control{width:100%!important;min-height:48px!important;border-radius:12px!important;border:1px solid rgba(244,165,0,.45)!important;background:#fffdf7!important;color:#111!important;font-weight:800!important;padding:0 14px!important}.variant-selected-meta{display:block!important;color:#7a5200!important;background:#fff5d9!important;border:1px solid rgba(244,165,0,.34)!important;border-radius:10px!important;padding:8px 10px!important;font-weight:800!important}.variant-options{display:none!important}@media(max-width:1100px){.kit-catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.kit-home-catalogs{padding:44px 28px!important}}@media(max-width:760px){.kit-home-catalogs{width:calc(100% - 18px)!important;margin:18px auto!important;padding:30px 12px!important}.kit-home-catalogs .kit-section-head{display:block!important;text-align:center!important}.kit-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.kit-catalog-tile{min-height:178px!important;padding:16px 10px!important;border-radius:16px!important}.kit-catalog-tile img{width:76px!important;height:76px!important;border-radius:18px!important;padding:10px!important}.kit-catalog-tile strong{font-size:15px!important;min-height:42px!important}.kit-catalog-tile span{font-size:12px!important;padding:4px 9px!important}}
