/* v=mob3 left-rail */
:root {
  --bg: #070b14;
  --surface: #0f172a;
  --surface-2: #1e293b;
  --border: rgba(148,163,184,.16);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --green: #4ade80;
  --red: #f87171;
  --yellow: #fbbf24;
  --blue: #38bdf8;
  --accent: #f4772a;
  --accent-hover: #e05e1a;
  --pink: #f4772a;
  --pink-soft: #ffb37a;
  --purple: #2a4bd7;
  --radius: 14px;
}
* { margin:0; padding:0; box-sizing:border-box; }
html { color-scheme:dark; }
body {
  font-family: 'Noto Sans Bengali', 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(56,189,248,.08), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(244,119,42,.07), transparent 50%),
    radial-gradient(800px 400px at 50% 100%, rgba(42,75,215,.06), transparent 55%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}
a { color: var(--blue); text-decoration:none; }
a:hover { text-decoration:underline; color:#7dd3fc; }
img { max-width:100%; height:auto; }

/* ── Navbar ── */
.nav {
  background: rgba(15,23,42,.9);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  display: flex; align-items: center; height: 56px; gap: 18px;
  position: sticky; top:0; z-index:80;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
}
.nav-brand {
  font-size: 1.25rem; font-weight: 800;
  color: #fff; display: flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.nav-brand:hover { text-decoration:none; color:#fff; }
.nav-brand .logo-icon { font-size:1.5rem; }
.nav-links { display:flex; gap:4px; align-items:center; margin-left:auto; flex-wrap:wrap; }
.nav-links a, .nav-links .nav-btn {
  color: var(--muted); padding: 8px 14px; border-radius: 10px;
  font-size: 0.875rem; font-weight: 600; transition:.15s; text-decoration:none;
  background: none; border: none; cursor: pointer; font-family: inherit;
}
.nav-links a:hover, .nav-links .nav-btn:hover {
  color: #fff; background: rgba(255,255,255,.06); text-decoration:none;
}
.nav-cart {
  position: relative;
  display: flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff !important; padding: 8px 16px; border-radius: 10px;
  font-weight: 700; font-size: .875rem; text-decoration:none;
  transition: .15s;
}
.nav-cart:hover { box-shadow: 0 4px 16px rgba(244,119,42,.35); text-decoration:none; color:#fff !important; }
.nav-cart .badge-cart {
  position: absolute; top: -6px; right: -6px;
  background: var(--red); color: #fff; font-size: .7rem;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; padding: 0 4px;
}

/* ── Mobile nav ── */
.hamburger { display:none; background:none; border:none; color:var(--text); font-size:1.5rem; cursor:pointer; }
@media (max-width:768px) {
  .hamburger { display:block; margin-left:auto; }
  .nav-links { display:none; position:absolute; top:56px; left:0; right:0; background:rgba(15,23,42,.98); flex-direction:column; padding:12px; gap:2px; border-bottom:1px solid var(--border); backdrop-filter:blur(14px); }
  .nav-links.open { display:flex; }
}

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden;
  padding: 100px 20px 80px;
  text-align: center;
  background: linear-gradient(160deg, rgba(30,41,59,.7), rgba(15,23,42,.95));
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 20% 20%, rgba(244,119,42,.12), transparent 70%),
    radial-gradient(500px 250px at 80% 50%, rgba(56,189,248,.08), transparent 70%),
    radial-gradient(400px 200px at 60% 80%, rgba(42,75,215,.08), transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-size: 3.2rem; font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(105deg, #ffb37a 0%, #8fa8ff 40%, #7dd3fc 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; line-height: 1.2; position: relative;
}
.hero p {
  font-size: 1.1rem; color: var(--muted); max-width: 600px;
  margin: 16px auto 28px; position: relative;
}
@media (max-width:768px) {
  .hero h1 { font-size:2rem; }
  .hero { padding:60px 16px 50px; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px; border-radius: 10px;
  font-size: .875rem; font-weight: 700; cursor: pointer;
  border: 1px solid transparent; transition: .15s;
  font-family: inherit; text-decoration:none; line-height:1.4;
}
.btn:hover { text-decoration:none; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff; border: none;
  box-shadow: 0 4px 14px rgba(224,94,26,.25);
}
.btn-primary:hover { box-shadow: 0 6px 22px rgba(224,94,26,.4); transform: translateY(-1px); color:#fff; }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.2); color:#fff; }
.btn-sm { padding: 6px 14px; font-size: .8rem; border-radius: 8px; }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: 12px; }
.btn-danger { background: var(--red); color: #fff; border:none; }

/* ── Cards ── */
.card {
  background: linear-gradient(160deg, rgba(30,41,59,.55), rgba(15,23,42,.92));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
  transition: .2s;
}
.card:hover { border-color: rgba(255,255,255,.12); }

/* ── Product Grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.product-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  overflow: hidden;
  transition: .25s;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 18px rgba(0,0,0,.08);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.16);
}
.product-card .img-wrap {
  position: relative;
  overflow: hidden;
  background: #f4f4f5;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .3s;
}
.product-card:hover .img-wrap img { transform: scale(1.04); }
.product-card .img-wrap .no-img {
  font-size: 3.5rem;
  color: #ccc;
}
.discount-tag {
  position: absolute;
  top: 12px;
  left: 0;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  padding: 6px 14px 6px 12px;
  border-radius: 0 8px 8px 0;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(234,88,12,.35);
}
.product-card .card-body {
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #fff;
}
.product-card .cat-label {
  font-size: .72rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
}
.product-card h3 {
  font-size: .95rem;
  font-weight: 700;
  margin: 6px 0 10px;
  line-height: 1.35;
  color: #1e293b;
  min-height: 2.6em;
}
.product-card h3 a {
  color: #1e293b;
  text-decoration: none;
}
.product-card h3 a:hover {
  color: #ea580c;
  text-decoration: none;
}
.product-card .price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}
.product-card .price {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ea580c;
  letter-spacing: -0.02em;
}
.product-card .old-price {
  font-size: .95rem;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 500;
}
.product-card .card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}
.product-card .btn-add {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 8px;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid #ea580c;
  background: #fff;
  color: #ea580c;
  transition: .15s;
  font-family: inherit;
  text-decoration: none;
  width: 100%;
}
.product-card .btn-add:hover {
  background: #fff7ed;
  text-decoration: none;
  color: #c2410c;
}
.product-card .btn-order {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 8px;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  background: #0f172a;
  color: #fff;
  transition: .15s;
  font-family: inherit;
  text-decoration: none;
}
.product-card .btn-order:hover {
  background: #1e293b;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 4px 14px rgba(15,23,42,.25);
}
@media (max-width:768px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .product-card .card-actions { grid-template-columns: 1fr; }
  .product-card .btn-add, .product-card .btn-order { font-size: .72rem; padding: 10px 6px; }
  .product-card .price { font-size: 1.2rem; }
  .product-card h3 { font-size: .85rem; min-height: auto; }
}

/* ── Container ── */
.container { max-width: 1280px; margin:0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.section-title {
  font-size: 1.8rem; font-weight: 800; margin-bottom: 32px;
  background: linear-gradient(105deg, #ffb37a, #8fa8ff, #7dd3fc);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; display: inline-block;
}
@media (max-width:768px) {
  .section-title { font-size:1.4rem; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap:12px; }
}

/* ── Breadcrumb ── */
.breadcrumb {
  padding: 14px 0;
  font-size: .85rem; color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: rgba(15,23,42,.5);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }

/* ── Detail page ── */
.detail-layout { display:grid; grid-template-columns:1fr 1fr; gap:40px; padding:40px 0; }
.detail-img {
  background: rgba(0,0,0,.15); border-radius: 16px;
  display:flex; align-items:center; justify-content:center;
  min-height: 400px; overflow:hidden; border: 1px solid var(--border);
}
.detail-img img { width:100%; height:100%; object-fit:contain; max-height:500px; }
.detail-info { display:flex; flex-direction:column; gap:16px; }
.detail-info h2 { font-size:2rem; font-weight:800; }
.detail-info .badge-cat {
  display:inline-block; background:rgba(42,75,215,.15); color:var(--purple);
  padding:4px 12px; border-radius:8px; font-size:.8rem; font-weight:700;
}
.detail-price-row { display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; }
.detail-price-row .price { font-size:2rem; font-weight:800; color:#fb923c; }
.detail-price-row .old-price { font-size:1.1rem; color:var(--muted); text-decoration:line-through; }
.detail-price-row .sale-badge {
  background: rgba(248,113,113,.15); color: var(--red);
  padding: 4px 12px; border-radius: 8px; font-weight: 800; font-size: .85rem;
}
.detail-info .desc { color: var(--muted); line-height:1.7; }
.detail-info .stock { color: var(--green); font-weight:600; }
@media (max-width:768px) {
  .detail-layout { grid-template-columns:1fr; gap:20px; }
  .detail-img { min-height:280px; }
}

/* ── Forms ── */
.form-group { margin-bottom: 16px; }
.form-label { display:block; font-size:.85rem; font-weight:600; color:var(--muted); margin-bottom:6px; }
.form-control, .form-select {
  width: 100%; padding: 10px 14px;
  background: rgba(2,6,23,.65); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-size: .9rem;
  font-family: inherit; transition: .15s;
}
.form-control:focus, .form-select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(244,119,42,.15);
}
.form-select { appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 14px center; padding-right:36px; }

/* ── Cart Table ── */
.cart-table { width:100%; border-collapse:collapse; }
.cart-table th { text-align:left; padding:12px 8px; font-size:.8rem; color:var(--muted); text-transform:uppercase; letter-spacing:.05em; border-bottom:1px solid var(--border); }
.cart-table td { padding:14px 8px; border-bottom:1px solid var(--border); vertical-align:middle; }
.cart-item { display:flex; align-items:center; gap:14px; }
.cart-item img { width:64px; height:64px; object-fit:cover; border-radius:10px; }
.cart-qty { width:70px; text-align:center; }

/* ── Checkout Summary ── */
.summary-card {
  background: linear-gradient(160deg, rgba(30,41,59,.55), rgba(15,23,42,.92));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; position: sticky; top: 80px;
}

/* ── Empty state ── */
.empty-state { text-align:center; padding:80px 20px; }
.empty-state .icon { font-size:4rem; color:rgba(255,255,255,.08); margin-bottom:16px; }
.empty-state h3 { font-size:1.3rem; color:var(--muted); }

/* ── Alerts ── */
.alert {
  padding: 12px 18px; border-radius: 10px; margin-bottom: 16px;
  font-size: .875rem; font-weight: 600;
  display: flex; align-items: center; gap: 10px;
}
.alert-success { background: rgba(74,222,128,.12); color: var(--green); border:1px solid rgba(74,222,128,.2); }
.alert-error { background: rgba(248,113,113,.12); color: var(--red); border:1px solid rgba(248,113,113,.2); }
.alert-info { background: rgba(56,189,248,.12); color: var(--blue); border:1px solid rgba(56,189,248,.2); }

/* ── Footer ── */
.footer {
  background: rgba(15,23,42,.95); border-top: 1px solid var(--border);
  padding: 50px 0 30px; margin-top: 80px;
}
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr; gap:40px; }
.footer h5 { color:#fff; font-size:1rem; margin-bottom:14px; }
.footer p, .footer a { color: var(--muted); font-size:.875rem; line-height:1.7; }
.footer a:hover { color:var(--accent); text-decoration:none; }
.footer-bottom { text-align:center; padding-top:24px; margin-top:24px; border-top:1px solid var(--border); color:var(--muted); font-size:.8rem; }
@media (max-width:768px) {
  .footer-grid { grid-template-columns:1fr; gap:24px; }
}

/* ── Pagination ── */
.pagination { display:flex; gap:4px; justify-content:center; margin-top:32px; }
.pagination a, .pagination span {
  display:flex; align-items:center; justify-content:center;
  width:40px; height:40px; border-radius:10px; font-size:.85rem; font-weight:700;
  border:1px solid var(--border); color:var(--muted);
  background:var(--surface); transition:.15s; text-decoration:none;
}
.pagination a:hover { border-color:var(--accent); color:#fff; background:rgba(244,119,42,.1); }
.pagination .active { background:linear-gradient(135deg,var(--accent),var(--accent-hover)); color:#fff; border:none; }

/* ── Features bar ── */
.features-bar { background:rgba(15,23,42,.7); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.features-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; text-align:center; padding:40px 0; }
.feature-item .ficon { font-size:2rem; margin-bottom:10px; }
.feature-item h4 { font-size:.95rem; color:#fff; margin-bottom:4px; }
.feature-item p { font-size:.85rem; color:var(--muted); }
@media (max-width:768px) {
  .features-grid { grid-template-columns:1fr; gap:24px; }
}

/* ── Admin Sidebar ── */
.admin-layout { display:flex; min-height:calc(100vh - 56px); }
.admin-sidebar {
  width: 240px; background: rgba(15,23,42,.95);
  border-right: 1px solid var(--border); padding-top: 16px;
  flex-shrink: 0;
}
.admin-sidebar .brand { padding: 0 20px 20px; border-bottom:1px solid var(--border); margin-bottom:8px; font-weight:800; font-size:1.1rem; color:#fff; }
.admin-sidebar a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; margin:2px 8px; border-radius: 8px;
  font-size: .85rem; font-weight: 600; color: var(--muted);
  text-decoration: none; transition:.15s;
}
.admin-sidebar a:hover, .admin-sidebar a.active { background:rgba(255,255,255,.06); color:#fff; text-decoration:none; }
.admin-sidebar a.active { background:rgba(244,119,42,.12); color:var(--accent); }
.admin-main { flex:1; padding: 24px 32px; overflow-x:auto; }
.admin-main h2, .admin-main h3 { color:#fff; margin-bottom:20px; }
@media (max-width:768px) {
  .admin-sidebar { width:100%; position:fixed; bottom:0; z-index:90; border-right:none; border-top:1px solid var(--border); flex-direction:row; overflow-x:auto; padding:0; display:flex; }
  .admin-sidebar .brand { display:none; }
  .admin-sidebar a { flex-shrink:0; margin:4px; padding:8px 14px; font-size:.75rem; white-space:nowrap; }
}

/* ── Admin stat cards ── */
.stat-cards { display:grid; grid-template-columns:repeat(auto-fill, minmax(200px,1fr)); gap:16px; margin-bottom:28px; }
.stat-card {
  background: linear-gradient(160deg, rgba(30,41,59,.55), rgba(15,23,42,.92));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: 0 10px 28px rgba(0,0,0,.22);
}
.stat-card .stat-label { font-size:.75rem; color:var(--muted); text-transform:uppercase; letter-spacing:.06em; }
.stat-card .stat-value { font-size:2rem; font-weight:800; color:#fff; margin-top:4px; }

/* ── Admin Table ── */
.data-table { width:100%; border-collapse:collapse; }
.data-table th { text-align:left; padding:10px 12px; font-size:.75rem; color:var(--muted); text-transform:uppercase; letter-spacing:.05em; border-bottom:1px solid var(--border); background:rgba(0,0,0,.1); }
.data-table td { padding:10px 12px; border-bottom:1px solid var(--border); }
.data-table tr:hover { background:rgba(255,255,255,.02); }

/* ── Badges ── */
.badge {
  display:inline-flex; align-items:center; padding:3px 10px; border-radius:7px;
  font-size:.75rem; font-weight:700; gap:4px;
}
.badge-success { background:rgba(74,222,128,.15); color:var(--green); }
.badge-warning { background:rgba(251,191,36,.15); color:var(--yellow); }
.badge-info { background:rgba(56,189,248,.15); color:var(--blue); }
.badge-danger { background:rgba(248,113,113,.15); color:var(--red); }
.badge-purple { background:rgba(42,75,215,.15); color:var(--purple); }

/* ── Utility ── */
.text-muted { color: var(--muted) !important; }
.text-accent { color: var(--accent) !important; }
.mt-1 { margin-top:8px; } .mt-2 { margin-top:16px; } .mt-3 { margin-top:24px; } .mt-4 { margin-top:32px; } .mt-5 { margin-top:48px; }
.mb-1 { margin-bottom:8px; } .mb-2 { margin-bottom:16px; } .mb-3 { margin-bottom:24px; }
.gap-2 { gap:8px; } .gap-3 { gap:16px; }
.d-flex { display:flex; } .align-center { align-items:center; }
.justify-between { justify-content:space-between; }
.flex-wrap { flex-wrap:wrap; }
.fw-bold { font-weight:700; }

.checkout-grid { display:grid; grid-template-columns:1fr 380px; gap:32px; }
@media (max-width:768px) {
  .checkout-grid { grid-template-columns:1fr; }
  .summary-card { position:static; }
}


/* ── Oxiosoft-style admin shell: rail + product subnav ───────── */
.admin-body { background: #0b1220; margin: 0; }
.admin-shell {
  display: flex;
  min-height: 100vh;
  background: #0b1220;
}
.admin-rail {
  width: 200px;
  flex-shrink: 0;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 14px 12px 18px;
  gap: 4px;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 40;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.admin-rail .rail-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 6px 8px;
  margin-bottom: 12px;
  border-radius: 12px;
  text-decoration: none !important;
  color: #0f172a !important;
}
.admin-rail .rail-brand-mark {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1b2f7f, #e05e1a);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(27,47,127,.35);
}
.admin-rail .rail-brand-text {
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: -0.02em;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-rail .rail-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-rail .rail-item {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: #475569;
  text-decoration: none !important;
  transition: .15s;
  position: relative;
  box-sizing: border-box;
}
.admin-rail .rail-item:hover {
  background: #eef2ff;
  color: #2a4bd7;
}
.admin-rail .rail-item.active {
  background: #0f1b4d;
  color: #fff;
  box-shadow: 0 6px 16px rgba(15,27,77,.28);
}
.admin-rail .rail-item.active .rail-label { color: #fff; }
.admin-rail .rail-ico {
  font-size: 1.1rem;
  line-height: 1;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}
.admin-rail .rail-label {
  font-size: .9rem;
  font-weight: 600;
  color: inherit;
  white-space: nowrap;
}
.admin-rail .rail-spacer { flex: 1; min-height: 12px; }
.admin-rail .rail-nav-bottom {
  border-top: 1px solid #e2e8f0;
  padding-top: 10px;
  margin-top: 4px;
}

/* Product nested sub-menu panel */
.admin-subnav {
  width: 240px;
  flex-shrink: 0;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  padding: 18px 14px 28px;
  overflow-y: auto;
  height: 100vh;
  position: sticky;
  top: 0;
}
.admin-subnav .subnav-head {
  padding: 4px 10px 16px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 10px;
}
.admin-subnav .subnav-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.admin-subnav .subnav-dash {
  display: inline-block;
  margin-top: 4px;
  font-size: .8rem;
  color: #64748b;
  text-decoration: none;
}
.admin-subnav .subnav-dash:hover { color: #2a4bd7; text-decoration: none; }

.admin-subnav .subnav-group {
  padding: 8px 0 6px;
  border-bottom: 1px solid #eef2f7;
  margin-bottom: 2px;
}
.admin-subnav .subnav-group:last-child { border-bottom: none; }
.admin-subnav .subnav-group-title {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: #94a3b8;
  padding: 6px 12px 6px;
  text-transform: uppercase;
}
.admin-subnav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  margin: 2px 4px;
  border-radius: 10px;
  color: #334155;
  font-size: .92rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: .12s;
}
.admin-subnav a .sub-ico {
  width: 18px;
  text-align: center;
  color: #94a3b8;
  font-size: .95rem;
}
.admin-subnav a:hover {
  background: #eef2ff;
  color: #1b2f7f;
}
.admin-subnav a:hover .sub-ico { color: #2a4bd7; }
.admin-subnav a.active {
  background: #0f1b4d;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(15,27,77,.28);
}
.admin-subnav a.active .sub-ico { color: #c7d2ff; }

.admin-shell .admin-main {
  flex: 1;
  min-width: 0;
  padding: 28px 32px;
  background: #0b1220;
  overflow-x: auto;
}
.admin-shell .admin-main h2,
.admin-shell .admin-main h3 { color: #fff; margin-bottom: 20px; }

/* kill old flat sidebar when present */
.admin-layout > .admin-sidebar { display: none; }

/* ── Advanced dashboard ─────────────────────────────────────── */
.dash-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; flex-wrap: wrap; margin-bottom: 22px;
}
.dash-sub { color: #94a3b8; font-size: .85rem; margin: 6px 0 0; }
.dash-header-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.kpi-card {
  background: #111827;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: center;
  position: relative;
  overflow: hidden;
  min-height: 96px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
  border-color: rgba(42,75,215,.35);
}
.kpi-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #2a4bd7, #e05e1a);
}
.kpi-rev::before { background: linear-gradient(180deg, #34d399, #059669); }
.kpi-orders::before { background: linear-gradient(180deg, #60a5fa, #2563eb); }
.kpi-aov::before { background: linear-gradient(180deg, #f4772a, #e05e1a); }
.kpi-catalog::before { background: linear-gradient(180deg, #2a4bd7, #1b2f7f); }
.kpi-stock::before { background: linear-gradient(180deg, #fbbf24, #d97706); }
.kpi-msg::before { background: linear-gradient(180deg, #22d3ee, #0891b2); }

.kpi-icon {
  width: 44px; height: 44px; min-width: 44px; max-width: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06);
  color: #e2e8f0;
  font-weight: 800;
  font-size: 1.1rem;
  flex: 0 0 44px;
}
.kpi-body { flex: 1; min-width: 0; }
.kpi-label {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .06em;
  color: #94a3b8; font-weight: 600;
}
.kpi-value {
  font-size: 1.55rem; font-weight: 800; color: #fff;
  margin-top: 2px; line-height: 1.15; letter-spacing: -.02em;
}
.kpi-trend { font-size: .75rem; color: #94a3b8; margin-top: 6px; line-height: 1.35; }
.kpi-trend .up { color: #34d399; font-weight: 600; }
.kpi-trend .warn { color: #fbbf24; font-weight: 600; }
.text-warn { color: #fbbf24 !important; }

.dash-grid-2 {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
}
.dash-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.dash-panel {
  padding: 18px;
  background: #111827 !important;
  border: 1px solid rgba(148,163,184,.12);
  border-radius: 16px;
}
.dash-panel h4 { color: #fff; margin: 0; font-size: 1rem; font-weight: 700; }
.panel-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; margin-bottom: 16px;
}
.panel-meta { font-size: .8rem; }
.panel-link { font-size: .8rem; color: #8fa8ff; text-decoration: none; font-weight: 600; }
.panel-link:hover { color: #c7d2fe; text-decoration: none; }

.bar-chart {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  align-items: end;
  gap: 6px;
  height: 210px;
  padding: 28px 4px 0;
}
.bar-col {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  height: 100%; min-width: 0; position: relative;
}
.bar-val {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  font-size: .58rem; color: #94a3b8; white-space: nowrap;
  opacity: 0; transition: opacity .12s; pointer-events: none;
}
.bar-col:hover .bar-val { opacity: 1; }
.bar-fill {
  width: 100%; max-width: 28px; min-height: 6px;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, #2a4bd7 0%, #2a4bd7 50%, #e05e1a 100%);
  box-shadow: 0 6px 14px rgba(27,47,127,.28);
  transition: height .35s ease, filter .15s;
}
.bar-col:hover .bar-fill { filter: brightness(1.18); }
.bar-label {
  margin-top: 8px; font-size: .65rem; color: #64748b; font-weight: 600;
}

.line-chip-row {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  align-items: end;
  gap: 6px;
  min-height: 110px;
  padding-top: 8px;
}
.chip-col { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.chip {
  width: 100%; max-width: 26px; min-height: 16px; border-radius: 8px;
  background: linear-gradient(180deg, rgba(56,189,248,.95), rgba(27,47,127,.8));
  box-shadow: 0 4px 12px rgba(56,189,248,.18);
}
.chip-n { font-size: .68rem; color: #cbd5e1; margin-top: 6px; font-weight: 700; }
.chip-l { font-size: .62rem; color: #64748b; }

.status-list { display: flex; flex-direction: column; gap: 6px; max-height: 280px; overflow-y: auto; }
.status-row {
  display: grid;
  grid-template-columns: 10px minmax(70px, 0.9fr) 1fr 32px;
  gap: 10px; align-items: center;
  padding: 8px 10px; border-radius: 10px;
  color: #e2e8f0; text-decoration: none !important;
  transition: background .12s;
}
.status-row:hover { background: rgba(255,255,255,.04); }
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #64748b; box-shadow: 0 0 0 3px rgba(148,163,184,.12);
}
.status-name {
  font-size: .84rem; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.status-bar-bg {
  height: 6px; background: rgba(255,255,255,.06);
  border-radius: 99px; overflow: hidden;
}
.status-bar-fg { height: 100%; border-radius: 99px; min-width: 2px; }
.status-count { font-weight: 700; text-align: right; color: #fff; font-size: .9rem; }

.feed-list { display: flex; flex-direction: column; gap: 2px; max-height: 360px; overflow-y: auto; }
.feed-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 8px; border-radius: 10px;
  color: inherit; text-decoration: none !important;
  border-bottom: 1px solid rgba(148,163,184,.08);
  transition: background .12s;
}
.feed-item:last-child { border-bottom: none; }
.feed-item:hover:not(.static) { background: rgba(255,255,255,.04); }
.feed-thumb {
  width: 40px; height: 40px; border-radius: 10px; overflow: hidden;
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.feed-thumb img { width: 100%; height: 100%; object-fit: cover; }
.feed-main { flex: 1; min-width: 0; }
.feed-main strong { color: #fff; font-size: .9rem; }
.feed-sub { color: #94a3b8; font-size: .75rem; margin-top: 2px; }
.feed-msg { color: #cbd5e1; font-size: .8rem; margin-top: 4px; line-height: 1.35; }
.feed-right {
  text-align: right; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
}

.qa-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.qa-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 12px; border-radius: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(148,163,184,.1);
  color: #e2e8f0; text-decoration: none !important;
  font-size: .82rem; font-weight: 600; transition: .12s;
}
.qa-btn:hover {
  background: rgba(27,47,127,.14);
  border-color: rgba(42,75,215,.35); color: #fff;
}
.dash-snapshot {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding-top: 12px; border-top: 1px solid rgba(148,163,184,.1); margin-top: 12px;
}
.dash-snapshot .snap {
  background: rgba(255,255,255,.03); border-radius: 10px; padding: 10px; text-align: center;
}
.dash-snapshot .snap span {
  display: block; font-size: .68rem; color: #94a3b8;
  text-transform: uppercase; letter-spacing: .04em;
}
.dash-snapshot .snap strong {
  display: block; margin-top: 4px; color: #fff; font-size: 1.15rem;
}

@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid-3 { grid-template-columns: 1fr 1fr; }
  .dash-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .dash-grid-3 { grid-template-columns: 1fr; }
  .qa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bar-chart, .line-chip-row { gap: 3px; }
}


/* ── Settings page ──────────────────────────────────────────── */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.settings-full { grid-column: 1 / -1; }
.settings-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.settings-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-bottom: 24px;
}
.switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: #e2e8f0;
  font-size: .9rem;
  cursor: pointer;
  user-select: none;
}
.switch-row input { width: 18px; height: 18px; accent-color: #1b2f7f; }

/* ── Phone responsive admin ─────────────────────────────────── */

/* ═══════════════════════════════════════════════════════════
   PHONE / TABLET RESPONSIVE (admin + store) — consolidated
   ═══════════════════════════════════════════════════════════ */

.admin-mobile-bar {
  display: none;
  align-items: center;
  gap: 10px;
  margin: -6px 0 16px;
  padding: 10px 12px;
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 12px;
}
.mobile-bar-title {
  color: #e2e8f0;
  font-weight: 700;
  font-size: .95rem;
}
.btn-menu-toggle {
  background: #2a4bd7;
  color: #fff !important;
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
  font-size: .85rem;
}
.subnav-close {
  display: none;
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  font-size: 1rem;
  cursor: pointer;
  margin-left: auto;
}
.admin-subnav .subnav-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.admin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,.55);
  z-index: 60;
}
body.admin-lock { overflow: hidden; }
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.settings-grid .full { grid-column: 1 / -1; }
.settings-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.settings-card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 16px;
  padding: 18px 18px 8px;
  margin-bottom: 16px;
}
.settings-card h4 {
  color: #e2e8f0;
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 700;
}
.settings-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.settings-form label {
  color: #94a3b8;
  font-size: .82rem;
  font-weight: 600;
}
.settings-form .form-control,
.settings-form .form-select,
.settings-form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: #0b1220;
  border: 1px solid #334155;
  color: #f1f5f9;
  border-radius: 10px;
  padding: 10px 12px;
}
.settings-form .form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cbd5e1;
  margin-bottom: 12px;
}
.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  padding-top: 8px;
}

@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .dash-grid-3 { grid-template-columns: 1fr 1fr !important; }
}

@media (max-width: 900px) {
  .settings-grid,
  .settings-2col { grid-template-columns: 1fr !important; }
  .admin-mobile-bar { display: flex; }
  .subnav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Keep menus on the LEFT (row shell) — never flip rail to top */
  .admin-shell {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }
  .admin-rail {
    width: 168px !important;
    min-width: 168px !important;
    max-width: 168px !important;
    height: 100vh !important;
    max-height: 100vh !important;
    position: sticky !important;
    top: 0;
    left: 0;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 10px 8px 12px !important;
    gap: 2px !important;
    z-index: 50;
    border-right: 1px solid #e2e8f0 !important;
    border-bottom: none !important;
    -webkit-overflow-scrolling: touch;
  }
  .admin-rail .rail-spacer { display: block !important; flex: 1 1 auto; min-height: 8px; }
  .admin-rail .rail-brand {
    margin: 0 0 8px 0 !important;
    width: 100% !important;
    height: auto !important;
    padding: 4px 6px !important;
  }
  .admin-rail .rail-brand-mark {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    font-size: .95rem !important;
  }
  .admin-rail .rail-brand-text { font-size: .82rem !important; }
  .admin-rail .rail-item {
    width: 100% !important;
    min-height: 40px !important;
    height: auto !important;
    border-radius: 10px !important;
    padding: 8px 10px !important;
    flex-shrink: 0;
  }
  .admin-rail .rail-label { font-size: .82rem !important; }
  .admin-rail .rail-ico { font-size: 1rem !important; width: 20px !important; }

  /* Subnav: fixed left drawer beside rail when opened */
  .admin-shell.has-subnav .admin-subnav {
    position: fixed !important;
    left: 168px;
    top: 0;
    bottom: 0;
    width: min(260px, calc(100vw - 176px)) !important;
    max-height: none !important;
    height: 100vh !important;
    z-index: 70;
    transform: translateX(-110%);
    transition: transform .22s ease;
    box-shadow: 8px 0 30px rgba(0,0,0,.25);
    border-right: 1px solid #e2e8f0;
    border-bottom: none !important;
  }
  .admin-shell.has-subnav.subnav-open .admin-subnav {
    transform: translateX(0);
  }
  .admin-shell.has-subnav.subnav-open .admin-overlay {
    display: block;
  }
  .admin-shell:not(.has-subnav) .admin-subnav { display: none !important; }

  .admin-shell .admin-main {
    width: auto !important;
    max-width: none !important;
    flex: 1 1 auto !important;
    padding: 14px 12px 88px !important;
    overflow-x: hidden !important;
    min-width: 0 !important;
  }

  /* dash / tables */
  .kpi-grid { grid-template-columns: 1fr 1fr !important; }
  .dash-grid-2, .dash-grid-3 { grid-template-columns: 1fr !important; }
  .qa-grid { grid-template-columns: 1fr 1fr !important; }
  .bar-chart, .line-chip-row { gap: 3px; }
  .bar-val, .chip-n { display: none; }
  .dash-header-actions .btn { padding: 8px 10px; font-size: .8rem; }
  .status-row {
    grid-template-columns: 10px minmax(60px, 1fr) 1fr 28px;
    gap: 6px;
    padding: 8px 6px;
  }
  .data-table { min-width: 560px; }
  .settings-form .data-table { min-width: 0; }
  .admin-body, body.admin-body { overflow-x: hidden; max-width: 100vw; }
}

@media (max-width: 520px) {
  .kpi-grid { grid-template-columns: 1fr !important; }
  .kpi-value { font-size: 1.35rem; }
  .qa-grid { grid-template-columns: 1fr !important; }
  .dash-snapshot { grid-template-columns: 1fr 1fr; }
  .admin-main h3 { font-size: 1.2rem; }
  .data-table { font-size: .82rem; min-width: 480px; }
  .data-table th, .data-table td { padding: 8px 10px; }
  .btn, .btn-sm { min-height: 40px; }
  .form-control, .form-select, textarea { font-size: 16px; }

  /* Icon-only left rail on tiny screens (still LEFT, never top) */
  .admin-rail {
    width: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
    padding: 10px 6px 12px !important;
    align-items: center !important;
  }
  .admin-rail .rail-brand {
    justify-content: center;
    padding: 0 !important;
  }
  .admin-rail .rail-brand-text,
  .admin-rail .rail-label { display: none !important; }
  .admin-rail .rail-item {
    width: 44px !important;
    min-height: 44px !important;
    justify-content: center;
    padding: 8px !important;
  }
  .admin-shell.has-subnav .admin-subnav { left: 58px; width: min(270px, calc(100vw - 66px)) !important; }
}

/* Storefront phone */
@media (max-width: 768px) {
  .site-header .nav-links { gap: 4px; }
  .hero { padding: 36px 0 28px; }
  .hero h1 { font-size: 1.7rem !important; line-height: 1.25; }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .product-card .card-body { padding: 10px 10px 12px; }
  .product-card h3 { font-size: .82rem; min-height: 2.4em; }
  .product-card .price { font-size: 1.05rem; }
  .product-card .old-price { font-size: .78rem; }
  .product-card .card-actions {
    grid-template-columns: 1fr !important;
    gap: 6px;
  }
  .product-card .btn-add,
  .product-card .btn-order {
    font-size: .72rem !important;
    padding: 10px 6px !important;
  }
  .section { padding: 36px 0; }
  .section-title { font-size: 1.25rem; }
  .container { padding: 0 12px; }
  footer .footer-grid,
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 18px;
  }
  .checkout-grid, .cart-layout, .detail-layout {
    grid-template-columns: 1fr !important;
  }
  .navbar, .site-nav, header.site-header {
    padding-left: 8px;
    padding-right: 8px;
  }
  body { overflow-x: hidden; }
}

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


/* === PHONE RESPONSIVE FIX mob7 === */
html, body.admin-body {
  max-width: 100vw;
  overflow-x: hidden;
}

.admin-shell {
  width: 100%;
  max-width: 100vw;
  min-height: 100dvh;
  overflow-x: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.admin-rail {
  box-sizing: border-box;
  flex: 0 0 var(--admin-rail-w);
  width: var(--admin-rail-w);
  max-width: var(--admin-rail-w);
  overflow-x: hidden !important;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.admin-main {
  flex: 1 1 auto;
  min-width: 0 !important;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.admin-shell.has-subnav .admin-main {
  margin-left: 0 !important;
}

/* Tablet + phone: left icon rail + fully hidden subnav drawer */
@media (max-width: 900px) {
  .admin-shell {
    --admin-rail-w: 60px;
  }

  .admin-rail {
    position: sticky;
    top: 0;
    height: 100dvh;
    height: 100vh;
    z-index: 100;
    /* match dark admin shell on phone — avoids white strip looking “broken” */
    background: #0f172a !important;
    border-right: 1px solid rgba(255,255,255,.08) !important;
    color: #e2e8f0;
    padding: 10px 6px 14px !important;
    padding-bottom: max(14px, env(safe-area-inset-bottom, 0px)) !important;
  }

  .admin-rail .rail-brand-mark {
    box-shadow: 0 6px 16px rgba(27,47,127,.45);
  }

  .admin-rail .rail-brand-text {
    color: #f8fafc;
  }

  .admin-rail .rail-item {
    color: #94a3b8 !important;
    border-radius: 12px;
  }

  .admin-rail .rail-item:hover,
  .admin-rail .rail-item.active {
    background: rgba(27,47,127,.22) !important;
    color: #eef1ff !important;
  }

  .admin-rail .rail-item.danger { color: #fca5a5 !important; }
  .admin-rail .rail-item.success { color: #86efac !important; }
  .admin-rail .rail-spacer { min-height: 12px; }
  .admin-rail .rail-sep {
    border-top-color: rgba(255,255,255,.1) !important;
  }

  .admin-shell.has-subnav .admin-subnav,
  .admin-subnav {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: var(--admin-rail-w, 56px) !important;
    width: min(280px, calc(100vw - var(--admin-rail-w, 56px) - 12px)) !important;
    max-width: calc(100vw - var(--admin-rail-w, 56px) - 8px) !important;
    height: 100dvh !important;
    height: 100vh !important;
    transform: translate3d(-120%, 0, 0) !important;
    visibility: hidden !important;
    pointer-events: none !important;
    box-shadow: none !important;
    z-index: 95 !important;
    background: #111827 !important;
    color: #e2e8f0 !important;
    border-right: 1px solid rgba(255,255,255,.08) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .admin-shell.has-subnav.subnav-open .admin-subnav,
  .admin-shell.subnav-open .admin-subnav {
    transform: translate3d(0, 0, 0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
    box-shadow: 12px 0 36px rgba(0,0,0,.5) !important;
  }

  .admin-shell.has-subnav.subnav-open .admin-overlay,
  .admin-shell.subnav-open .admin-overlay {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    left: var(--admin-rail-w, 56px) !important;
    background: rgba(2,6,23,.55) !important;
    z-index: 90 !important;
  }

  /* Readable subnav on dark panel */
  .admin-subnav .subnav-title,
  .admin-subnav .subnav-group-title {
    color: #cbd5e1 !important;
  }
  .admin-subnav a {
    color: #e2e8f0 !important;
  }
  .admin-subnav a .sub-ico {
    color: #8fa8ff !important;
  }
  .admin-subnav a.active {
    background: rgba(27,47,127,.28) !important;
    color: #fff !important;
  }
  .admin-subnav .subnav-dash {
    color: #93c5fd !important;
  }
  .admin-subnav .subnav-close {
    color: #e2e8f0 !important;
  }

  .admin-main {
    width: auto !important;
    max-width: calc(100vw - var(--admin-rail-w)) !important;
    padding: 12px 12px max(28px, env(safe-area-inset-bottom, 0px)) !important;
  }

  .admin-main > *,
  .admin-main .card,
  .admin-main form {
    max-width: 100%;
    box-sizing: border-box;
  }

  .admin-main .card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-main .data-table {
    display: block;
    width: 100% !important;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-main .data-table thead,
  .admin-main .data-table tbody,
  .admin-main .data-table tfoot {
    display: table;
    width: 100%;
    min-width: 560px;
    table-layout: auto;
  }

  .admin-main .data-table th,
  .admin-main .data-table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    font-size: .82rem;
  }

  .admin-main .badge {
    white-space: nowrap !important;
    display: inline-block;
    max-width: 9.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    line-height: 1.2;
  }

  .admin-main [style*="grid-template-columns:1fr 1fr"],
  .admin-main [style*="grid-template-columns: 1fr 1fr"],
  .admin-main [style*="grid-template-columns:1fr 280px"],
  .admin-main [style*="grid-template-columns: 1fr 280px"] {
    grid-template-columns: 1fr !important;
  }

  .admin-mobile-bar {
    background: rgba(15,23,42,.92) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    color: #e2e8f0 !important;
    backdrop-filter: blur(8px);
  }
}

/* Narrow phones: pure icon rail */
@media (max-width: 520px) {
  .admin-shell {
    --admin-rail-w: 52px;
  }

  .admin-rail {
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    padding: 8px 3px 12px !important;
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)) !important;
  }

  .admin-rail .rail-item {
    width: 100%;
    justify-content: center !important;
    padding: 11px 2px !important;
    gap: 0 !important;
    min-height: 42px;
  }

  .admin-rail .rail-label,
  .admin-rail .rail-brand-text {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    clip: rect(0, 0, 0, 0) !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .admin-rail .rail-brand {
    justify-content: center !important;
    padding: 2px 0 8px !important;
    gap: 0 !important;
  }

  .admin-rail .rail-brand-mark {
    width: 34px;
    height: 34px;
    font-size: .95rem;
  }

  .admin-main {
    max-width: calc(100vw - 52px) !important;
    padding: 10px 10px max(22px, env(safe-area-inset-bottom, 0px)) !important;
  }

  .admin-mobile-bar {
    padding: 8px 10px !important;
    font-size: .86rem;
  }

  .admin-main h1 { font-size: 1.12rem !important; letter-spacing: -.02em; }
  .admin-main h2 { font-size: 1.02rem !important; }
  .admin-main h3 { font-size: .98rem !important; }

  .admin-main .btn,
  .admin-main .btn-sm {
    font-size: .8rem;
  }

  /* action row stacks */
  .admin-main .card > div[style*="display:flex"] {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
}

/* Storefront phone */
@media (max-width: 600px) {
  .navbar .nav-inner {
    gap: 8px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .nav-brand {
    font-size: .95rem;
    max-width: 58vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .hero { padding: 28px 16px !important; }
  .container { padding-left: 12px; padding-right: 12px; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 18px !important; }
  .cart-fab { right: 14px; bottom: max(18px, env(safe-area-inset-bottom, 0px)); }
}
/* === END PHONE RESPONSIVE FIX mob7 === */

/* mob7 storefront nav polish */
@media (max-width: 600px) {
  .nav-brand {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    max-width: min(62vw, 240px) !important;
    overflow: hidden !important;
    white-space: nowrap !important;
  }
  .nav-brand .logo-icon {
    flex: 0 0 auto;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #e05e1a, #2a4bd7);
    color: #fff !important;
    font-weight: 800;
    font-size: .95rem;
    line-height: 1;
  }
  .nav-brand .nav-brand-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
  }
  .price, .product-card .price, .old-price {
    font-family: "Noto Sans Bengali", "Segoe UI", system-ui, sans-serif !important;
  }
}



/* Dhaka Exclusive logo icon-only PNG */
.nav-brand .logo-img,
.nav-brand .logo-icon.logo-img {
  width: 42px !important;
  height: 42px !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  border: 0 !important;
  display: block !important;
  flex: 0 0 auto;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
}
.rail-brand-logo,
img.rail-brand-mark {
  width: 36px !important;
  height: 36px !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  border: 0 !important;
  display: block !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
}
.logo-icon {
  background: transparent !important;
}
@media (max-width: 600px) {
  .nav-brand .logo-icon.logo-img {
    width: 34px !important;
    height: 34px !important;
    border-radius: 0 !important;
    background: transparent !important;
  }
}

/* Dhaka Exclusive homepage hero banner */
.hero.hero-banner,
.hero.hero-banner.hero-slider {
  position: relative;
  overflow: hidden;
  padding: 0 !important;
  margin: 0 !important;
  text-align: center;
  background: #0a0c14;
  border-bottom: 1px solid var(--border);
  width: 100%;
  max-width: 100%;
  display: block;
  line-height: 0;
  box-sizing: border-box;
}
.hero.hero-banner::before {
  display: none !important;
}
.hero.hero-banner .hero-media {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
}
.hero.hero-banner .hero-banner-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto !important;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center center;
  margin: 0 auto;
  vertical-align: top;
}
.hero.hero-banner .hero-banner-overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 0 52px clamp(14px, 2.4vw, 28px);
  /* light foot fade only — cover art already has design/text */
  background: linear-gradient(180deg, transparent 55%, rgba(6,8,16,.12) 78%, rgba(6,8,16,.38) 100%);
  line-height: normal;
  pointer-events: none;
  box-sizing: border-box;
}
.hero.hero-banner .hero-banner-overlay a,
.hero.hero-banner .hero-banner-overlay .hero-cta {
  pointer-events: auto;
}

.hero.hero-banner .hero-banner-overlay--text {
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding-top: clamp(24px, 6vw, 48px);
  /* push Shop Collection toward the bottom of the cover */
  padding-bottom: clamp(40px, 7vw, 58px);
  background: linear-gradient(180deg, transparent 35%, rgba(6,8,16,.22) 58%, rgba(6,8,16,.75) 100%);
}
.hero.hero-banner .hero-banner-title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: .02em;
  text-shadow: 0 2px 16px rgba(0,0,0,.45);
  line-height: 1.2;
}
.hero.hero-banner .hero-banner-sub {
  margin: 0 0 6px;
  color: rgba(255,255,255,.88);
  font-size: clamp(.9rem, 1.6vw, 1.1rem);
  max-width: 36rem;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
}
.hero.hero-banner .hero-cta {
  box-shadow: 0 12px 32px rgba(224, 94, 26, .45);
  min-width: 180px;
  letter-spacing: .02em;
  margin-top: clamp(4px, 1vw, 10px);
  margin-bottom: 0;
  position: relative;
  z-index: 4;
  align-self: center;
}
@media (max-width: 768px) {
  .hero.hero-banner,
  .hero.hero-banner.hero-slider {
    padding: 0 !important;
    margin: 0 !important;
  }
  .hero.hero-banner .hero-banner-img {
    aspect-ratio: auto;
    width: 100%;
    height: auto !important;
    min-height: 0;
    object-fit: contain;
  }
  .hero.hero-banner .hero-banner-overlay {
    padding: 0 40px clamp(18px, 6vw, 28px);
  }
  .hero.hero-banner .hero-banner-overlay--text {
    padding-bottom: clamp(34px, 9vw, 46px);
    gap: 6px;
  }
  .hero.hero-banner .hero-cta {
    min-width: 140px;
    padding: 10px 16px;
    font-size: .9rem;
    margin-top: 2px;
  }
}


/* Homepage multi-slide hero carousel */
.hero.hero-banner.hero-slider {
  position: relative;
}
.hero-slider-track {
  position: relative;
  width: 100%;
  line-height: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .55s ease, visibility .55s ease;
  z-index: 1;
}
.hero-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.hero-slide .hero-media {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
}
.hero-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(8, 12, 22, .68);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: background .15s, transform .15s, opacity .15s;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  margin: 0;
  padding: 0;
}
.hero-slider-btn:hover {
  background: rgba(224, 94, 26, .92);
  transform: translateY(-50%) scale(1.06);
}
/* hard against left/right edges of the cover photo */
.hero-slider-prev { left: 10px; }
.hero-slider-next { right: 10px; }
.hero-slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 6;
  display: flex;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}
.hero-dot {
  pointer-events: auto;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: width .2s, background .2s;
}
.hero-dot.is-active {
  width: 22px;
  background: var(--accent, #e05e1a);
}
@media (max-width: 768px) {
  .hero-slider-btn {
    width: 34px;
    height: 34px;
    font-size: 1.3rem;
  }
  .hero-slider-prev { left: 6px; }
  .hero-slider-next { right: 6px; }
  .hero-slider-dots { bottom: 8px; }
  .hero.hero-banner .hero-banner-overlay {
    padding-bottom: clamp(28px, 8vw, 40px);
  }
}
/* ── Dynamic hero: ambient glow, entrance, progress, counter ── */
.hero-glow {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(60px);
  mix-blend-mode: screen;
  opacity: .5;
  animation: heroGlowFloat 9s ease-in-out infinite alternate;
}
.hero-glow--a {
  width: 42vw; height: 42vw; min-width: 320px; min-height: 320px;
  left: -8vw; top: -12vw;
  background: radial-gradient(circle, rgba(224,94,26,.55), rgba(224,94,26,0) 70%);
}
.hero-glow--b {
  width: 36vw; height: 36vw; min-width: 280px; min-height: 280px;
  right: -6vw; bottom: -10vw;
  background: radial-gradient(circle, rgba(42,75,215,.55), rgba(42,75,215,0) 70%);
  animation-delay: -4s;
}
@keyframes heroGlowFloat {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(4vw,3vw,0) scale(1.18); }
}
.hero-spark {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  color: rgba(255,255,255,.6);
  text-shadow: 0 0 14px rgba(224,94,26,.9);
  animation: heroSparkFloat 6s ease-in-out infinite;
}
.hero-spark.s1 { top: 20%; left: 12%; font-size: 1.1rem; animation-delay: 0s; }
.hero-spark.s2 { top: 32%; right: 15%; font-size: .9rem; animation-delay: -2s; }
.hero-spark.s3 { bottom: 24%; left: 22%; font-size: .8rem; animation-delay: -4s; }
.hero-spark.s4 { bottom: 32%; right: 8%; font-size: 1rem; animation-delay: -1s; }
@keyframes heroSparkFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: .3; }
  50%      { transform: translateY(-24px) rotate(22deg); opacity: .95; }
}

/* Slide content entrance */
.hero-slide .hero-banner-overlay > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease;
}
.hero-slide.is-active .hero-banner-overlay > * {
  opacity: 1;
  transform: none;
}
.hero-slide.is-active .hero-banner-overlay > *:nth-child(1) { transition-delay: .12s; }
.hero-slide.is-active .hero-banner-overlay > *:nth-child(2) { transition-delay: .24s; }
.hero-slide.is-active .hero-banner-overlay > *:nth-child(3) { transition-delay: .36s; }

/* Autoplay progress bar */
.hero-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  z-index: 6; background: rgba(255,255,255,.12); pointer-events: none;
}
.hero-progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, #e05e1a, #2a4bd7);
  transform-origin: left center; transform: scaleX(0);
}
.hero-progress.is-running span { animation: heroProgress linear forwards; }
@keyframes heroProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Slide counter */
.hero-count {
  position: absolute; right: 14px; bottom: 12px; z-index: 6;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  color: rgba(255,255,255,.85); background: rgba(8,12,22,.55);
  border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
  padding: 4px 10px; backdrop-filter: blur(6px); pointer-events: none;
}

/* Offer ticker */
.hero-ticker {
  position: relative; overflow: hidden;
  background: linear-gradient(90deg, #0e1533, #16224d 50%, #0e1533);
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #e6ebff; font-size: .82rem; font-weight: 600;
}
.hero-ticker::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, #0e1533, transparent 12%, transparent 88%, #0e1533);
}
.hero-ticker-track {
  display: flex; width: max-content;
  animation: heroTicker 30s linear infinite;
}
.hero-ticker:hover .hero-ticker-track { animation-play-state: paused; }
.hero-ticker-item {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 26px; white-space: nowrap;
}
.hero-ticker-item b { color: #ffb37a; font-weight: 800; }
@keyframes heroTicker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Shop by category chips */
.hero-cats { background: #0d1117; border-bottom: 1px solid rgba(255,255,255,.06); }
.hero-cats-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; padding: 12px 16px; flex-wrap: wrap;
  text-align: center;
}
.hero-cats-label {
  font-size: .68rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: #94a3b8; white-space: nowrap;
}
.hero-cats-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(42,75,215,.16), rgba(224,94,26,.14));
  border: 1px solid rgba(42,75,215,.28);
  color: #c7d2ff; font-size: .8rem; font-weight: 700;
  text-decoration: none;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.hero-chip-icon {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem; line-height: 1;
  filter: drop-shadow(0 0 6px rgba(224,94,26,.45));
  transition: transform .15s;
}
.hero-chip:hover .hero-chip-icon { transform: scale(1.18); }
.hero-chip b {
  font-size: .68rem; font-weight: 800; color: #fff;
  background: rgba(224,94,26,.9); border-radius: 999px; padding: 1px 7px;
}
.hero-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(224,94,26,.6);
  box-shadow: 0 6px 18px rgba(224,94,26,.25);
  color: #fff;
}
@media (max-width: 640px) {
  .hero-ticker-item { padding: 8px 18px; font-size: .78rem; }
  .hero-cats-inner { justify-content: center; }
}

/* Luxury product cards */
.product-card {
  background: linear-gradient(180deg, #161b2a 0%, #121722 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(224, 94, 26, 0.35) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(224, 94, 26, 0.12);
}
.product-card .img-wrap {
  background: linear-gradient(145deg, #1a2030, #0f131c) !important;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}
.product-card .img-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  transition: transform .4s ease;
  display: block;
}
.product-card:hover .img-wrap img {
  transform: scale(1.06);
}
.product-card .card-body {
  padding: 14px 14px 16px;
}
.product-card h3 a {
  font-weight: 650;
  letter-spacing: .01em;
}
.product-card .price {
  color: #c2410c !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em;
}
.product-card .old-price {
  color: #94a3b8 !important;
  font-weight: 600 !important;
}
.product-card h3 a {
  color: #0f172a !important;
}
.product-card .cat-label {
  color: #64748b !important;
}
.section-title {
  letter-spacing: .04em;
}


/* ── Out of Stock — stock truth fix ─────────────────────────────── */
.product-card .img-wrap .oos-tag {
  position: absolute;
  top: 12px;
  right: 0;
  background: linear-gradient(135deg, #64748b, #475569);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 6px 12px 6px 14px;
  border-radius: 8px 0 0 8px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(15,23,42,.25);
}
.detail-info .stock.in-stock { color: var(--green); }
.detail-info .stock.out-of-stock { color: #dc2626; }
.product-card .btn-add:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  border-color: #e2e8f0;
  cursor: not-allowed;
}


/* ============================================================
   ADMIN RESPONSIVE v2 — PC / Tablet / Phone (2026-08-14)
   Overrides conflicting earlier admin media queries.
   ============================================================ */

/* Topbar + bottom nav hidden on desktop by default */
.admin-topbar { display: none; }
.admin-bottom-nav { display: none; }

/* Table wrap + card list defaults */
.admin-table-wrap { padding: 0; overflow: auto; -webkit-overflow-scrolling: touch; }
.admin-table-wrap .data-table { min-width: 640px; }
.admin-table-wrap .tbl-thumb {
  width: 44px; height: 44px; object-fit: cover; border-radius: 8px; display: block;
}
.admin-card-list { display: none; }

.admin-item-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #111827;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
}
.admin-item-card .aic-thumb {
  width: 64px; height: 64px; min-width: 64px;
  border-radius: 12px; overflow: hidden;
  background: rgba(255,255,255,.05);
  display: flex; align-items: center; justify-content: center;
}
.admin-item-card .aic-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-item-card .aic-placeholder { font-size: 1.4rem; opacity: .7; }
.admin-item-card .aic-body { flex: 1; min-width: 0; }
.admin-item-card .aic-title {
  color: #fff; font-weight: 700; font-size: .95rem; text-decoration: none;
  display: block; line-height: 1.3;
  word-break: break-word;
}
.admin-item-card .aic-title:hover { color: #ffb37a; }
.admin-item-card .aic-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  color: #94a3b8; font-size: .78rem; margin-top: 4px;
}
.admin-item-card .aic-dot { opacity: .5; }
.admin-item-card .aic-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-top: 8px; flex-wrap: wrap;
}
.admin-item-card .aic-row-top { margin-top: 0; }
.admin-item-card .aic-price { color: #f5d0c0; font-size: 1.05rem; }
.admin-item-card .aic-actions {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px;
}
.admin-item-card .aic-actions form { margin: 0; }

/* Safe area helpers */
.admin-body {
  --admin-rail-w: 220px;
  --admin-topbar-h: 56px;
  --admin-bottom-h: 64px;
  --admin-safe-bottom: env(safe-area-inset-bottom, 0px);
  --admin-safe-top: env(safe-area-inset-top, 0px);
}

/* Desktop shell polish */
@media (min-width: 901px) {
  .admin-shell {
    display: grid !important;
    grid-template-columns: var(--admin-rail-w) minmax(0, 1fr);
    grid-template-rows: 1fr;
    min-height: 100vh;
    min-height: 100dvh;
  }
  .admin-shell.has-subnav {
    grid-template-columns: var(--admin-rail-w) 240px minmax(0, 1fr);
  }
  .admin-rail {
    position: sticky !important;
    top: 0;
    height: 100vh;
    height: 100dvh;
    width: var(--admin-rail-w) !important;
    max-width: var(--admin-rail-w) !important;
    flex: none !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 40;
  }
  .admin-rail .rail-brand-text,
  .admin-rail .rail-label { display: inline !important; }
  .admin-rail .rail-item {
    flex-direction: row !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    padding: 10px 14px !important;
  }
  .admin-subnav {
    position: sticky !important;
    top: 0;
    height: 100vh;
    height: 100dvh;
    width: 240px !important;
    max-width: 240px !important;
    left: auto !important;
    transform: none !important;
    display: block !important;
    overflow-y: auto;
    z-index: 30;
  }
  .admin-shell .admin-main {
    min-width: 0 !important;
    width: auto !important;
    max-width: 100% !important;
    padding: 22px 28px 40px !important;
    overflow-x: hidden !important;
  }
  .admin-mobile-bar { display: none !important; }
  .admin-topbar { display: none !important; }
  .admin-bottom-nav { display: none !important; }
  .admin-overlay { display: none !important; }
}

/* Tablet: icon rail + collapsible subnav */
@media (max-width: 900px) {
  .admin-shell {
    display: block !important;
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: calc(var(--admin-topbar-h) + var(--admin-safe-top)) !important;
    padding-bottom: calc(var(--admin-bottom-h) + var(--admin-safe-bottom) + 8px) !important;
    --admin-rail-w: 0px !important;
  }

  .admin-topbar {
    display: flex !important;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 120;
    height: calc(var(--admin-topbar-h) + var(--admin-safe-top));
    padding: var(--admin-safe-top) 10px 0;
    align-items: center;
    gap: 8px;
    background: rgba(11, 18, 32, 0.94);
    border-bottom: 1px solid rgba(148,163,184,.16);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .topbar-btn {
    appearance: none;
    border: 1px solid rgba(148,163,184,.2);
    background: rgba(255,255,255,.04);
    color: #e2e8f0;
    width: 40px; height: 40px;
    border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.05rem; font-weight: 700;
    cursor: pointer; text-decoration: none;
    flex: 0 0 auto;
  }
  .topbar-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
  .topbar-brand {
    flex: 1; min-width: 0;
    display: flex; align-items: center; gap: 8px;
    color: #fff; font-weight: 700; font-size: .95rem;
    text-decoration: none;
  }
  .topbar-brand img {
    width: 28px; height: 28px; object-fit: contain; border-radius: 6px;
  }
  .topbar-brand span {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .topbar-actions { display: flex; gap: 6px; flex: 0 0 auto; }

  /* Rail as left drawer */
  .admin-rail {
    position: fixed !important;
    top: 0; left: 0; bottom: 0;
    width: min(280px, 86vw) !important;
    max-width: min(280px, 86vw) !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 140 !important;
    transform: translateX(-105%);
    transition: transform .22s ease;
    box-shadow: 12px 0 40px rgba(0,0,0,.45);
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
  .admin-shell.rail-open .admin-rail {
    transform: translateX(0);
  }
  .admin-rail .rail-brand {
    padding: 16px 14px 12px !important;
  }
  .admin-rail .rail-brand-text,
  .admin-rail .rail-label {
    display: inline !important;
    font-size: .9rem !important;
  }
  .admin-rail .rail-item {
    flex-direction: row !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    padding: 12px 14px !important;
    min-height: 44px;
  }
  .admin-rail .rail-ico { font-size: 1.15rem !important; width: 24px !important; }

  /* Subnav drawer */
  .admin-shell.has-subnav .admin-subnav,
  .admin-subnav {
    position: fixed !important;
    top: 0; left: 0; bottom: 0;
    width: min(300px, 88vw) !important;
    max-width: min(300px, 88vw) !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 145 !important;
    transform: translateX(-105%) !important;
    transition: transform .22s ease !important;
    display: block !important;
    overflow-y: auto !important;
    box-shadow: 12px 0 40px rgba(0,0,0,.45);
  }
  .admin-shell.has-subnav.subnav-open .admin-subnav,
  .admin-shell.subnav-open .admin-subnav {
    transform: translateX(0) !important;
  }
  .subnav-close {
    display: inline-flex !important;
    align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 10px;
    border: 1px solid rgba(148,163,184,.2);
    background: rgba(255,255,255,.04);
    color: #e2e8f0; cursor: pointer;
  }

  .admin-overlay {
    position: fixed !important;
    inset: 0;
    z-index: 130 !important;
    background: rgba(2, 6, 23, 0.62) !important;
    backdrop-filter: blur(2px);
  }
  .admin-shell.rail-open .admin-overlay,
  .admin-shell.subnav-open .admin-overlay {
    display: block !important;
  }
  .admin-overlay[hidden] { display: none !important; }

  .admin-shell .admin-main {
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    padding: 14px 14px 24px !important;
    margin: 0 !important;
    overflow-x: hidden !important;
  }

  .admin-mobile-bar {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    padding: 0;
  }
  .btn-menu-toggle {
    appearance: none;
    border: 1px solid rgba(148,163,184,.22);
    background: rgba(255,255,255,.04);
    color: #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
  }
  .mobile-bar-title {
    color: #94a3b8;
    font-size: .85rem;
    font-weight: 600;
  }

  /* Bottom nav */
  .admin-bottom-nav {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 120;
    height: calc(var(--admin-bottom-h) + var(--admin-safe-bottom));
    padding: 6px 4px calc(6px + var(--admin-safe-bottom));
    background: rgba(11, 18, 32, 0.96);
    border-top: 1px solid rgba(148,163,184,.16);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .bnav-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; text-decoration: none !important;
    color: #94a3b8; font-size: .65rem; font-weight: 600;
    border-radius: 10px; min-height: 48px;
    -webkit-tap-highlight-color: transparent;
  }
  .bnav-item .bnav-ico { font-size: 1.15rem; line-height: 1; }
  .bnav-item.active {
    color: #ffb37a;
    background: rgba(244, 119, 42, 0.1);
  }

  /* Dashboard responsive */
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .kpi-card {
    min-height: 84px !important;
    padding: 12px 12px !important;
    gap: 10px !important;
  }
  .kpi-icon { width: 36px !important; height: 36px !important; min-width: 36px !important; max-width: 36px !important; flex-basis: 36px !important; font-size: .95rem !important; }
  .kpi-value { font-size: 1.2rem !important; }
  .kpi-trend { font-size: .7rem !important; }
  .dash-grid-2,
  .dash-grid-3 { grid-template-columns: 1fr !important; gap: 12px !important; }
  .dash-header { gap: 10px !important; margin-bottom: 14px !important; }
  .dash-header h3 { font-size: 1.25rem !important; }
  .dash-header-actions { width: 100%; }
  .dash-header-actions .btn { flex: 1 1 auto; justify-content: center; min-height: 40px; }
  .bar-chart {
    height: 160px !important;
    gap: 3px !important;
    padding-top: 20px !important;
    overflow-x: auto;
  }
  .bar-val { display: none !important; }
  .bar-label { font-size: .55rem !important; }
  .line-chip-row { gap: 3px !important; min-height: 90px !important; }
  .chip-n, .chip-l { font-size: .58rem !important; }
  .qa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .qa-btn { min-height: 48px; font-size: .82rem; }
  .status-row {
    grid-template-columns: 10px minmax(64px, 0.85fr) 1fr 28px !important;
    gap: 8px !important;
    padding: 10px 8px !important;
  }
  .feed-item { padding: 12px 6px !important; }
  .stat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }

  /* Tables → cards on phone-ish widths */
  .admin-table-wrap { display: none !important; }
  .admin-card-list { display: block !important; }

  /* Forms / settings */
  .settings-layout { grid-template-columns: 1fr !important; gap: 12px !important; }
  .settings-nav {
    position: static !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }
  .settings-nav-item { width: auto !important; min-height: 40px; }
  .setting-row { flex-direction: column !important; gap: 6px !important; align-items: stretch !important; }
  .setting-row > .form-label { flex: none !important; padding-top: 0 !important; }
  .setting-control { flex-wrap: wrap; }
  .setting-control .form-control,
  .setting-control textarea,
  .setting-control select { width: 100%; }
  .settings-panel-head { flex-direction: column !important; align-items: stretch !important; gap: 10px !important; }

  .admin-main .form-control,
  .admin-main .form-select,
  .admin-main textarea,
  .admin-main .btn {
    min-height: 42px;
  }
  .admin-main h3 { font-size: 1.2rem !important; word-break: break-word; }

  body.admin-body,
  html {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
}

/* Phone narrow */
@media (max-width: 520px) {
  .kpi-grid { grid-template-columns: 1fr !important; }
  .qa-grid { grid-template-columns: 1fr 1fr !important; }
  .stat-cards { grid-template-columns: 1fr 1fr !important; }
  .dash-header-actions .btn { font-size: .78rem; padding: 8px 10px; }
  .admin-shell .admin-main { padding: 12px 12px 20px !important; }
  .bnav-item .bnav-lbl { font-size: .6rem; }
  .admin-item-card .aic-thumb { width: 56px; height: 56px; min-width: 56px; }
}

/* Very narrow */
@media (max-width: 380px) {
  .qa-grid { grid-template-columns: 1fr !important; }
  .topbar-brand span { font-size: .88rem; }
}

/* --- Admin responsive v2.1 hotfixes --- */
@media (max-width: 900px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .kpi-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    min-height: 0 !important;
    padding: 14px !important;
  }
  .kpi-card .kpi-icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    flex: 0 0 34px !important;
  }
  .kpi-card .kpi-body {
    width: 100% !important;
    min-width: 0 !important;
  }
  .kpi-card .kpi-label {
    font-size: .72rem !important;
    white-space: normal !important;
    line-height: 1.25 !important;
  }
  .kpi-card .kpi-value {
    font-size: 1.15rem !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: keep-all !important;
  }
  .kpi-card .kpi-trend {
    white-space: normal !important;
    line-height: 1.3 !important;
    font-size: .68rem !important;
  }
  .dash-header {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .dash-header > div:first-child {
    width: 100%;
  }
  .dash-header h3 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }
  .dash-header .badge {
    white-space: nowrap;
  }
  .admin-main .card {
    max-width: 100% !important;
    overflow: hidden;
  }
  .feed-list, .status-list {
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  .kpi-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .kpi-card .kpi-value {
    font-size: 1.05rem !important;
  }
}

/* Ensure bottom nav never covers content focus outlines */
.admin-main .btn:focus-visible,
.admin-main a:focus-visible,
.bnav-item:focus-visible,
.topbar-btn:focus-visible {
  outline: 2px solid #ffb37a;
  outline-offset: 2px;
}

/* Product description rich content */
.detail-info .product-desc { color: var(--muted); line-height:1.75; margin: 12px 0 16px; }
.detail-info .product-desc p { margin: 0 0 10px; }
.detail-info .product-desc .pd-lead { color: var(--text, #e5e7eb); font-size: 1.02rem; }
.detail-info .product-desc .pd-features { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; }
.detail-info .product-desc .pd-features li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  background: rgba(212,175,55,.06); border: 1px solid rgba(212,175,55,.18);
  color: var(--text, #e5e7eb); font-size: .95rem;
}
.detail-info .product-desc .pd-features li .ico { color: #d4af37; flex-shrink: 0; font-weight: 700; }
.detail-info .product-desc .pd-meta {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px;
}
.detail-info .product-desc .pd-chip {
  font-size: .78rem; font-weight: 600; letter-spacing: .03em;
  padding: 5px 10px; border-radius: 999px;
  border: 1px solid rgba(212,175,55,.35); color: #d4af37;
  background: rgba(212,175,55,.08);
}


/* ============================================================
   PDP v2 — simple, dynamic product detail (screenshot layout)
   ============================================================ */
.pdp { padding-bottom: 48px; }
.pdp-layout { align-items: start; gap: 28px; padding-top: 24px; }
.pdp-gallery {
  position: relative;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pdp-gallery img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
  display: block;
  background: #fff;
}
.pdp-no-img { font-size: 5rem; opacity: .25; }
.pdp-disc-pill {
  position: absolute; top: 14px; left: 14px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff; font-weight: 800; font-size: .78rem;
  padding: 6px 12px; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(239,68,68,.35);
}
.pdp-oos-overlay { position: absolute; top: 14px; right: 14px; }

.pdp-info { gap: 12px !important; }
.pdp-trust-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(74,222,128,.12);
  color: #4ade80;
  border: 1px solid rgba(74,222,128,.28);
  padding: 5px 12px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; width: fit-content;
}
.pdp-trust-pill .pdp-check {
  display: inline-flex; width: 16px; height: 16px;
  align-items: center; justify-content: center;
  background: #22c55e; color: #fff; border-radius: 50%;
  font-size: .65rem; font-weight: 900;
}
.pdp-title {
  font-size: 1.55rem !important;
  font-weight: 800 !important;
  line-height: 1.25;
  color: #fff;
  margin: 0;
  letter-spacing: -.01em;
}
.pdp-meta-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}
.pdp-stock-badge {
  font-size: .68rem; font-weight: 800; letter-spacing: .06em;
  padding: 4px 10px; border-radius: 6px; text-transform: uppercase;
}
.pdp-stock-badge.in {
  background: rgba(34,197,94,.15); color: #4ade80;
  border: 1px solid rgba(34,197,94,.3);
}
.pdp-stock-badge.out {
  background: rgba(248,113,113,.15); color: #f87171;
  border: 1px solid rgba(248,113,113,.3);
}
.pdp-sku {
  font-size: .78rem; color: var(--muted);
}
.pdp-sku strong {
  color: var(--text); font-weight: 700; letter-spacing: .02em;
}
.pdp-sold-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(251,191,36,.1);
  border: 1px solid rgba(251,191,36,.28);
  color: #fbbf24;
  padding: 6px 12px; border-radius: 10px;
  font-size: .82rem; width: fit-content;
}
.pdp-sold-chip strong { color: #fde68a; font-weight: 800; }
.pdp-fire { font-size: .95rem; }

.pdp-price-row { align-items: baseline; gap: 10px !important; margin-top: 2px; }
.pdp-price-row .price {
  font-size: 1.95rem !important;
  font-weight: 900 !important;
  color: #fb923c !important;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
.pdp-price-row .old-price {
  font-size: 1.1rem !important;
  color: #94a3b8 !important;
  text-decoration: line-through;
  font-weight: 600 !important;
  order: -1;
  opacity: .9;
}
.pdp-title {
  color: #f8fafc !important;
}
.pdp-sku {
  color: #94a3b8 !important;
}
.pdp-sku strong {
  color: #e2e8f0 !important;
}

.pdp-urgency {
  border: 1.5px dashed rgba(248,113,113,.55);
  background: linear-gradient(90deg, rgba(254,243,199,.12), rgba(254,226,226,.08));
  border-radius: 12px;
  padding: 12px 16px;
  color: #fca5a5;
}
.pdp-urgency em {
  font-style: italic;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  letter-spacing: .01em;
}
.pdp-urgency span {
  color: #f87171;
  font-weight: 900;
  font-style: normal;
  font-family: inherit;
}
.pdp-urgency.mild {
  border-color: rgba(251,191,36,.45);
  color: #fcd34d;
}
.pdp-urgency.mild span { color: #fbbf24; }

.pdp-qty-row {
  display: inline-flex; align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  width: fit-content;
  background: rgba(15,23,42,.6);
}
.pdp-qty-btn {
  width: 42px; border: none; background: transparent;
  color: var(--text); font-size: 1.25rem; font-weight: 700;
  cursor: pointer; transition: .15s;
}
.pdp-qty-btn:hover { background: rgba(255,255,255,.06); color: #fff; }
.pdp-qty-input {
  width: 52px; border: none; border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: transparent; color: #fff;
  text-align: center; font-size: 1rem; font-weight: 700;
  font-family: inherit; -moz-appearance: textfield;
}
.pdp-qty-input::-webkit-outer-spin-button,
.pdp-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pdp-qty-input:focus { outline: none; }

.pdp-cta-stack {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 4px;
}
.pdp-cta-form { margin: 0; }
.pdp-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  padding: 14px 18px;
  border: none; border-radius: 12px;
  font-size: 1rem; font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform .12s, box-shadow .15s, filter .15s;
  line-height: 1.2;
}
.pdp-btn:hover { filter: brightness(1.06); text-decoration: none !important; }
.pdp-btn:active { transform: scale(.99); }
.pdp-btn:disabled {
  opacity: .45; cursor: not-allowed; filter: none;
}
.pdp-btn-cart {
  background: #1d4ed8;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(29,78,216,.28);
}
.pdp-btn-order {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(234,88,12,.28);
}
.pdp-btn-call {
  background: #15803d;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(21,128,61,.25);
}
.pdp-btn-wa {
  background: #22c55e;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(34,197,94,.25);
}

.pdp-cats {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding-top: 6px;
}
.pdp-cats-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  color: var(--muted); text-transform: uppercase;
}
.pdp-cat-chip {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--text) !important;
  font-size: .8rem; font-weight: 600;
  text-decoration: none !important;
}
.pdp-cat-chip:hover {
  border-color: rgba(244,119,42,.45);
  color: var(--pink-soft) !important;
}

.pdp-trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 14px 0 4px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.pdp-trust-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; text-align: center;
  font-size: .78rem; font-weight: 600; color: var(--muted);
}
.pdp-trust-ico {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(251,146,60,.1);
  border: 1px solid rgba(251,146,60,.22);
  font-size: 1.05rem;
}

.pdp-bullets {
  list-style: none; padding: 0; margin: 4px 0 0;
  display: grid; gap: 8px;
}
.pdp-bullets li {
  position: relative;
  padding: 2px 0 2px 28px;
  color: var(--text);
  font-size: .9rem;
  line-height: 1.45;
}
.pdp-bullets li::before {
  content: "✓";
  position: absolute; left: 0; top: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #22c55e; color: #fff;
  font-size: .7rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  line-height: 18px; text-align: center;
}

.pdp-wish-row { margin-top: 4px; }

.pdp-desc-section { margin-top: 28px; }
.pdp-desc-tab {
  font-size: 1.05rem; font-weight: 800;
  color: var(--text);
  padding-bottom: 10px;
  border-bottom: 2px solid #f97316;
  display: inline-block;
  margin-bottom: 14px;
}
.pdp-desc-card {
  background: rgba(15,23,42,.55);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 20px;
}
.pdp-about-title {
  font-size: 1.15rem; font-weight: 800;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f97316;
  display: inline-block;
  color: #fff;
}
.pdp-related { padding-top: 8px; }

@media (max-width: 768px) {
  .pdp-layout { gap: 18px; padding-top: 12px; }
  .pdp-gallery { min-height: 280px; border-radius: 14px; }
  .pdp-gallery img { max-height: 380px; }
  .pdp-title { font-size: 1.28rem !important; }
  .pdp-price-row .price { font-size: 1.55rem !important; }
  .pdp-btn { padding: 13px 14px; font-size: .95rem; border-radius: 11px; }
  .pdp-trust-row { gap: 4px; }
  .pdp-trust-item { font-size: .72rem; }
  .pdp-trust-ico { width: 36px; height: 36px; font-size: .95rem; }
  .pdp-desc-card { padding: 16px 14px; }
  .pdp-bullets li { font-size: .86rem; }
}


/* ============================================================
   CHECKOUT v2 — stepped premium order form (screenshot layout)
   Light cream shell over dark site chrome
   ============================================================ */
.co-page {
  background:
    radial-gradient(900px 320px at 50% -10%, rgba(251,146,60,.12), transparent 55%),
    linear-gradient(180deg, #faf6f1 0%, #f3ebe3 45%, #efe6dc 100%);
  min-height: calc(100vh - 56px);
  padding-bottom: 40px;
  color: #0f172a;
}
.co {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 16px 64px;
}
.co-hero {
  text-align: center;
  background:
    radial-gradient(520px 160px at 50% 0%, rgba(251,146,60,.22), transparent 70%),
    linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid #fed7aa;
  border-radius: 22px;
  padding: 28px 20px 26px;
  margin-bottom: 18px;
  box-shadow: 0 10px 28px rgba(234, 88, 12, .08);
}
.co-hero-pill {
  display: inline-block;
  background: #fff;
  color: #c2410c;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(194, 65, 12, .12);
}
.co-hero-title {
  font-size: 1.75rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 8px;
  letter-spacing: -.02em;
}
.co-hero-sub {
  margin: 0;
  color: #64748b;
  font-size: .92rem;
  line-height: 1.5;
}

.co-form { display: flex; flex-direction: column; gap: 14px; }

.co-card {
  border-radius: 18px;
  padding: 18px 16px 16px;
  border: 1px solid transparent;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}
.co-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.co-card-head h2 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  color: #0f172a;
}
.co-step {
  width: 32px; height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: .95rem;
  color: #0f172a;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(15,23,42,.06);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(15,23,42,.06);
}
.co-card-green  { background: linear-gradient(180deg, #ecfdf5, #f0fdf4); border-color: #bbf7d0; }
.co-card-blue   { background: linear-gradient(180deg, #eff6ff, #f8fafc); border-color: #bfdbfe; }
.co-card-yellow { background: linear-gradient(180deg, #fffbeb, #fefce8); border-color: #fde68a; }
.co-card-pink   { background: linear-gradient(180deg, #fff7ed, #ffedd5); border-color: #fed7aa; }
.co-card-purple { background: linear-gradient(180deg, #eef1ff, #e6ebff); border-color: #c7d2ff; }
.co-card-orange { background: linear-gradient(180deg, #fff7ed, #ffedd5); border-color: #fed7aa; }

/* product row */
.co-products { display: grid; gap: 10px; }
.co-product {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  background: #fff;
  border: 1.5px solid #fdba74;
  border-radius: 14px;
  padding: 12px;
  align-items: start;
  box-shadow: 0 4px 14px rgba(234, 88, 12, .06);
}
.co-product-img {
  width: 72px; height: 72px;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
  display: flex; align-items: center; justify-content: center;
}
.co-product-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.co-product-emoji { font-size: 1.8rem; }
.co-product-name {
  margin: 0 0 6px;
  font-size: .98rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  padding-right: 22px;
}
.co-product-price-row {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px;
}
.co-price-now { font-size: 1.15rem; font-weight: 900; color: #c2410c; }
.co-price-old { font-size: .9rem; color: #94a3b8; text-decoration: line-through; }
.co-off-badge {
  font-size: .72rem; font-weight: 700;
  background: #16a34a; color: #fff;
  padding: 3px 8px; border-radius: 999px;
}
.co-save { margin-top: 4px; font-size: .82rem; font-weight: 700; color: #16a34a; }
.co-qty {
  display: inline-flex; align-items: center;
  margin-top: 10px;
  border: 1.5px solid #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.co-qty-btn {
  width: 34px; height: 32px;
  border: none; background: transparent;
  color: #0f172a; font-size: 1.1rem; font-weight: 700;
  cursor: pointer;
}
.co-qty-btn:hover { background: #f8fafc; }
.co-qty-val {
  min-width: 28px; text-align: center;
  font-weight: 800; color: #0f172a; font-size: .95rem;
}
.co-product-check {
  position: absolute; right: 10px; bottom: 10px;
  width: 26px; height: 26px; border-radius: 50%;
  background: #ea580c; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 900;
  box-shadow: 0 4px 10px rgba(234,88,12,.35);
}

/* fields */
.co-fields { display: grid; gap: 12px; }
.co-field { display: grid; gap: 6px; }
.co-label {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: #334155;
  text-transform: uppercase;
}
.co-label .req { color: #ea580c; }
.co-label .opt { color: #94a3b8; font-weight: 600; text-transform: none; letter-spacing: 0; }
.co-input {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: .95rem;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.co-input::placeholder { color: #94a3b8; }
.co-input:focus {
  outline: none;
  border-color: #fb923c;
  box-shadow: 0 0 0 3px rgba(251,146,60,.2);
}
.co-textarea { resize: vertical; min-height: 72px; }

/* radios */
.co-radio-list { display: grid; gap: 10px; }
.co-radio { display: block; cursor: pointer; }
.co-radio input { position: absolute; opacity: 0; pointer-events: none; }
.co-radio-ui {
  display: flex; align-items: center; gap: 12px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.co-radio input:checked + .co-radio-ui {
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234,88,12,.12);
}
.co-radio-dot {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #cbd5e1;
  position: relative; flex-shrink: 0;
}
.co-radio input:checked + .co-radio-ui .co-radio-dot {
  border-color: #ea580c;
}
.co-radio input:checked + .co-radio-ui .co-radio-dot::after {
  content: "";
  position: absolute; inset: 3px;
  border-radius: 50%;
  background: #ea580c;
}
.co-radio-text {
  flex: 1;
  font-weight: 700;
  color: #0f172a;
  font-size: .95rem;
}
.co-radio-price {
  font-weight: 800;
  color: #c2410c;
  font-size: .95rem;
}
.co-hint {
  margin: 10px 2px 0;
  font-size: .8rem;
  color: #64748b;
}
.co-hint strong { color: #16a34a; }
.co-pay-ref { margin-top: 12px; display: grid; gap: 8px; }

/* coupon */
.co-coupon-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.co-coupon-input {
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 700;
}
.co-btn-apply {
  border: none;
  background: linear-gradient(135deg, #ea580c, #c2410c);
  color: #fff;
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: .06em;
  padding: 0 22px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  min-height: 48px;
  box-shadow: 0 8px 18px rgba(234,88,12,.28);
}
.co-btn-apply:hover { filter: brightness(1.05); }
.co-coupon-active {
  margin-top: 10px;
  font-size: .85rem;
  color: #334155;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.co-coupon-remove {
  border: none; background: transparent;
  color: #dc2626; font-weight: 700; cursor: pointer;
  font-family: inherit; font-size: .82rem;
  text-decoration: underline;
}

/* summary */
.co-summary {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #fed7aa;
  padding: 16px 14px 14px;
  box-shadow: 0 4px 14px rgba(234, 88, 12, .05);
}
.co-sum-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 6px 2px;
  color: #475569;
  font-size: .95rem;
}
.co-sum-right { display: inline-flex; align-items: baseline; gap: 8px; }
.co-sum-old {
  color: #94a3b8;
  text-decoration: line-through;
  font-size: .88rem;
}
.co-sum-row strong { color: #0f172a; font-weight: 800; }
.co-sum-discount strong { color: #16a34a; }
.co-sum-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 8px 0 10px;
}
.co-sum-total {
  font-size: 1.15rem;
  color: #0f172a;
  font-weight: 800;
}
.co-sum-total strong {
  color: #c2410c;
  font-size: 1.25rem;
  font-weight: 900;
}
.co-free { color: #16a34a; font-weight: 800; }

.co-urgency {
  margin: 14px 0 4px;
  border: 1.5px dashed #475569;
  background: #fffbeb;
  border-radius: 12px;
  padding: 12px 14px;
  text-align: center;
}
.co-urgency em {
  font-style: italic;
  font-family: Georgia, 'Times New Roman', serif;
  color: #0f172a;
  font-size: 1rem;
}
.co-urgency span#urgencyN {
  color: #dc2626;
  font-weight: 900;
  font-style: normal;
  font-family: inherit;
}
.co-urgency-accent {
  color: #ea580c;
  font-style: italic;
}

.co-place-btn {
  margin-top: 14px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 999px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #ea580c, #c2410c);
  color: #fff !important;
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: .04em;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(234,88,12,.35);
  transition: transform .12s, filter .15s;
}
.co-place-btn:hover { filter: brightness(1.05); }
.co-place-btn:active { transform: scale(.99); }
.co-place-btn:disabled,
.co-place-btn.is-loading {
  opacity: .7;
  cursor: wait;
}

.co-trust {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 18px;
  font-size: .78rem;
  font-weight: 600;
  color: #64748b;
}

@media (max-width: 480px) {
  .co { padding: 12px 12px 56px; }
  .co-hero { padding: 22px 14px 20px; border-radius: 18px; }
  .co-hero-title { font-size: 1.45rem; }
  .co-card { padding: 14px 12px 12px; border-radius: 16px; }
  .co-product { grid-template-columns: 64px 1fr; }
  .co-product-img { width: 64px; height: 64px; }
  .co-coupon-row { grid-template-columns: 1fr; }
  .co-btn-apply { min-height: 46px; border-radius: 12px; }
  .co-place-btn { border-radius: 14px; }
}

/* --- Dashboard responsive + live v3 --- */
.dash-page { min-width: 0; }
.dash-title {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
}
.dash-clock {
  font-size: .78rem;
  font-weight: 500;
  color: #94a3b8;
}
.dash-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #bbf7d0;
  background: rgba(34,197,94,.14);
  border: 1px solid rgba(74,222,128,.28);
  border-radius: 999px;
  padding: 3px 8px;
}
.dash-live i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74,222,128,.7);
  animation: dash-pulse 1.6s infinite;
}
.dash-live.is-sync i { background: #60a5fa; animation: none; }
.dash-live.is-err {
  color: #fecaca;
  background: rgba(239,68,68,.14);
  border-color: rgba(248,113,113,.35);
}
.dash-live.is-err i { background: #f87171; animation: none; }
@keyframes dash-pulse {
  0% { box-shadow: 0 0 0 0 rgba(74,222,128,.55); }
  70% { box-shadow: 0 0 0 7px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}
a.kpi-card {
  text-decoration: none !important;
  color: inherit;
  cursor: pointer;
}
.chart-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  margin: 0 -4px;
  padding: 0 4px;
}
.chart-scroll .bar-chart,
.chart-scroll .line-chip-row {
  min-width: 560px;
}
.feed-item .fw-bold { color: #fff; }

@media (max-width: 900px) {
  .dash-title-text { display: none; }
  .dash-header { flex-direction: column; align-items: stretch; gap: 12px; }
  .dash-header-actions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); width: 100%; }
  .dash-header-actions .btn { width: 100%; justify-content: center; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .kpi-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    min-height: 0 !important;
  }
  .dash-grid-2,
  .dash-grid-3 { grid-template-columns: 1fr !important; }
  .qa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .dash-snapshot { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .kpi-value { font-size: 1.05rem !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dash-snapshot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-header-actions { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1101px) {
  .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.kpi-icon {
  font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", "DejaVu Sans", sans-serif;
  line-height: 1;
}
.qa-btn span {
  font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}


/* --- Subnav flyout hide after content v1 --- */
.admin-subnav[hidden] { display: none !important; }

@media (min-width: 901px) {
  .admin-shell,
  .admin-shell.has-subnav {
    grid-template-columns: var(--admin-rail-w) minmax(0, 1fr) !important;
  }
  .admin-subnav {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: var(--admin-rail-w, 220px) !important;
    width: 260px !important;
    max-width: 260px !important;
    height: 100vh !important;
    height: 100dvh !important;
    transform: translate3d(-120%, 0, 0) !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: 80 !important;
    box-shadow: none !important;
    display: block !important;
    overflow-y: auto !important;
    transition: transform .22s ease, visibility .22s !important;
  }
  .admin-subnav[hidden] { display: none !important; }
  .admin-shell.subnav-open .admin-subnav.is-visible {
    transform: translate3d(0, 0, 0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
    box-shadow: 16px 0 40px rgba(0,0,0,.28) !important;
    display: block !important;
  }
  .admin-overlay {
    display: none !important;
  }
  .admin-shell.subnav-open .admin-overlay:not([hidden]) {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    left: var(--admin-rail-w, 220px) !important;
    background: rgba(2,6,23,.38) !important;
    z-index: 70 !important;
  }
  .admin-subnav .subnav-close {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #0f172a;
    cursor: pointer;
  }
}

@media (max-width: 900px) {
  .admin-shell.has-subnav.subnav-open .admin-subnav,
  .admin-shell.subnav-open .admin-subnav {
    transform: translateX(-105%) !important;
  }
  .admin-shell.subnav-open .admin-subnav.is-visible {
    transform: translateX(0) !important;
    display: block !important;
  }
}
/* --- Oxio-style All Sales v1 --- */
.ox-sales { min-width: 0; color: #0f172a; }
.ox-sales-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.ox-sales-title {
  margin: 0 !important;
  color: #f8fafc !important;
  font-size: 1.35rem;
  font-weight: 800;
}
.ox-sales-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.ox-tool {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155 !important;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none !important;
}
.ox-tool-soft { background: #fff7ed; border-color: #fed7aa; color: #c2410c !important; }
.ox-tool-primary { background: #10b981; border-color: #10b981; color: #fff !important; }
.ox-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0 12px;
  -webkit-overflow-scrolling: touch;
}
.ox-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  color: #94a3b8 !important;
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none !important;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.ox-tab b {
  min-width: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: .72rem;
}
.ox-tab .ox-tab-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #94a3b8; flex: 0 0 auto;
}
.ox-tab b { transition: background .15s, color .15s; }
/* per-status tab tones (idle) */
.ox-tab-pending .ox-tab-dot { background: #f59e0b; }
.ox-tab-processing .ox-tab-dot { background: #38bdf8; }
.ox-tab-follow .ox-tab-dot { background: #2a4bd7; }
.ox-tab-confirmed .ox-tab-dot { background: #10b981; }
.ox-tab-shipped .ox-tab-dot { background: #3b82f6; }
.ox-tab-delivered .ox-tab-dot { background: #22c55e; }
.ox-tab-partial .ox-tab-dot { background: #f97316; }
.ox-tab-returns .ox-tab-dot { background: #f4772a; }
.ox-tab-hold .ox-tab-dot { background: #eab308; }
.ox-tab-exchange .ox-tab-dot { background: #2a4bd7; }
.ox-tab-cancelled .ox-tab-dot { background: #ef4444; }
.ox-tab-all .ox-tab-dot { background: #64748b; }
/* active tab inherits status color */
.ox-tab.is-on { font-weight: 800; }
.ox-tab-all.is-on { color: #e2e8f0 !important; border-bottom-color: #94a3b8; }
.ox-tab-all.is-on b { background: #334155; color: #f8fafc; }
.ox-tab-pending.is-on { color: #fbbf24 !important; border-bottom-color: #f59e0b; }
.ox-tab-pending.is-on b { background: rgba(245,158,11,.22); color: #fbbf24; }
.ox-tab-processing.is-on { color: #7dd3fc !important; border-bottom-color: #38bdf8; }
.ox-tab-processing.is-on b { background: rgba(56,189,248,.2); color: #7dd3fc; }
.ox-tab-follow.is-on { color: #8fa8ff !important; border-bottom-color: #2a4bd7; }
.ox-tab-follow.is-on b { background: rgba(42,75,215,.22); color: #8fa8ff; }
.ox-tab-confirmed.is-on { color: #34d399 !important; border-bottom-color: #10b981; }
.ox-tab-confirmed.is-on b { background: rgba(16,185,129,.22); color: #34d399; }
.ox-tab-shipped.is-on { color: #60a5fa !important; border-bottom-color: #3b82f6; }
.ox-tab-shipped.is-on b { background: rgba(59,130,246,.22); color: #60a5fa; }
.ox-tab-delivered.is-on { color: #4ade80 !important; border-bottom-color: #22c55e; }
.ox-tab-delivered.is-on b { background: rgba(34,197,94,.22); color: #4ade80; }
.ox-tab-partial.is-on { color: #fb923c !important; border-bottom-color: #f97316; }
.ox-tab-partial.is-on b { background: rgba(249,115,22,.22); color: #fb923c; }
.ox-tab-returns.is-on { color: #ffb37a !important; border-bottom-color: #f4772a; }
.ox-tab-returns.is-on b { background: rgba(244,119,42,.22); color: #ffb37a; }
.ox-tab-hold.is-on { color: #facc15 !important; border-bottom-color: #eab308; }
.ox-tab-hold.is-on b { background: rgba(234,179,8,.22); color: #facc15; }
.ox-tab-exchange.is-on { color: #2a4bd7 !important; border-bottom-color: #2a4bd7; }
.ox-tab-exchange.is-on b { background: rgba(42,75,215,.22); color: #2a4bd7; }
.ox-tab-cancelled.is-on { color: #f87171 !important; border-bottom-color: #ef4444; }
.ox-tab-cancelled.is-on b { background: rgba(239,68,68,.22); color: #f87171; }
/* count pill gets a soft tint even when idle if count > 0 via data later; keep base readable */
.ox-tabs { scrollbar-width: thin; }
.ox-table-wrap {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.ox-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  background: #fff;
}
.ox-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: .7rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}
.ox-table td {
  padding: 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
  font-size: .82rem;
  color: #0f172a;
}
.ox-table tr:hover td { background: #f8fafc; }
.ox-oid { color: #2563eb !important; font-weight: 800; text-decoration: none !important; }
.ox-muted { color: #64748b; font-size: .74rem; margin-top: 3px; }
.ox-mini-acts { display: flex; gap: 6px; margin-top: 8px; }
.ox-mini-acts a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 24px;
  padding: 0 6px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #475569 !important;
  font-size: .64rem;
  font-weight: 700;
  text-decoration: none !important;
  background: #fff;
}
.ox-name { font-weight: 700; }
.ox-phone-row { display: flex; align-items: center; gap: 6px; margin-top: 3px; color: #2563eb; }
.ox-pill {
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: #047857;
  background: #d1fae5;
  border-radius: 4px;
  padding: 1px 5px;
}
.ox-addr { color: #64748b; font-size: .74rem; margin-top: 4px; max-width: 240px; line-height: 1.35; }
.ox-src {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: .72rem;
  font-weight: 700;
}
.ox-td-prod { display: flex; gap: 8px; align-items: center; }
.ox-thumb {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
  flex: 0 0 auto;
}
.ox-thumb-empty { display: inline-block; }
.ox-qty { font-weight: 700; }
.ox-ship-line { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.ox-dot { width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; display: inline-block; flex: 0 0 auto; }
.ox-dot-pending { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.18); }
.ox-dot-processing { background: #38bdf8; box-shadow: 0 0 0 3px rgba(56,189,248,.18); }
.ox-dot-follow { background: #2a4bd7; box-shadow: 0 0 0 3px rgba(42,75,215,.18); }
.ox-dot-confirmed { background: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,.18); }
.ox-dot-shipped, .ox-dot-in_review { background: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.18); }
.ox-dot-delivered, .ox-dot-completed { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
.ox-dot-partial { background: #f97316; box-shadow: 0 0 0 3px rgba(249,115,22,.18); }
.ox-dot-returns { background: #f4772a; box-shadow: 0 0 0 3px rgba(244,119,42,.18); }
.ox-dot-hold, .ox-dot-temporary { background: #eab308; box-shadow: 0 0 0 3px rgba(234,179,8,.18); }
.ox-dot-exchange { background: #2a4bd7; box-shadow: 0 0 0 3px rgba(42,75,215,.18); }
.ox-dot-cancelled { background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.18); }
.ox-courier { color: #475569; font-weight: 600; }
.ox-courier-st { margin-top: 2px; max-width: 180px; }
.ox-ship-status { flex-wrap: wrap; gap: 4px 6px; }
.ox-st, .ox-confirm {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .02em;
  border: 1px solid transparent;
  white-space: nowrap;
}
.ox-st-pending { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.ox-st-processing { background: #f0f9ff; color: #0369a1; border-color: #bae6fd; }
.ox-st-follow { background: #eef1ff; color: #1b2f7f; border-color: #c7d2ff; }
.ox-st-confirmed { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.ox-st-shipped, .ox-st-in_review { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.ox-st-delivered, .ox-st-completed { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.ox-st-partial { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.ox-st-returns { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.ox-st-hold, .ox-st-temporary { background: #fefce8; color: #a16207; border-color: #fde047; }
.ox-st-exchange { background: #eef1ff; color: #1b2f7f; border-color: #c7d2ff; }
.ox-st-cancelled { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.ox-st-cancel-pending { background: #fff7ed; color: #c2410c; border-color: #fdba74; }
.ox-st-cancel-approved { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.ox-st-cancel-rejected { background: #f1f5f9; color: #475569; border-color: #cbd5e1; }
/* row tint by status (subtle left accent) */
.ox-table tbody tr { position: relative; }
.ox-table tbody tr[data-st] td:first-child { box-shadow: inset 3px 0 0 var(--st-accent, transparent); }

.ox-bar-label { font-size: .62rem; color: #94a3b8; letter-spacing: .04em; margin-top: 6px; }
.ox-bar { height: 6px; background: #e2e8f0; border-radius: 99px; overflow: hidden; margin: 4px 0; }
.ox-bar i { display: block; height: 100%; background: #22c55e; }
.ox-td-money { white-space: nowrap; color: #334155; }
.ox-profit { color: #16a34a; font-weight: 700; }
.ox-note { color: #334155; margin-bottom: 6px; max-width: 160px; }
.ox-note-form input {
  width: 132px;
  height: 28px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 0 8px;
  font-size: .74rem;
  background: #fff;
}
.ox-td-act { display: flex; align-items: flex-start; gap: 6px; position: relative; }
.ox-ok {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  cursor: pointer;
}
.ox-ok:disabled { opacity: .45; cursor: default; }
.ox-more { position: relative; }
.ox-dots {
  width: 32px;
  height: 32px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
}
.ox-menu {
  position: fixed;
  right: auto;
  top: 0;
  z-index: 5000;
  min-width: 180px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15,23,42,.16);
  padding: 6px;
}
.ox-menu a,
.ox-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 8px 10px;
  border-radius: 8px;
  color: #0f172a;
  font-size: .84rem;
  text-decoration: none !important;
  cursor: pointer;
}
.ox-menu a:hover,
.ox-menu button:hover { background: #f1f5f9; }
.ox-menu .ox-danger { color: #dc2626; }
.ox-empty { text-align: center; color: #64748b; padding: 36px !important; }
.ox-invoice-actions { display: flex; gap: 8px; margin-bottom: 14px; }
.ox-invoice {
  max-width: 760px;
  background: #fff;
  color: #0f172a;
  border-radius: 14px;
  padding: 24px;
}
.ox-invoice-head, .ox-invoice-grid { display: flex; justify-content: space-between; gap: 16px; }
.ox-invoice-head h2, .ox-invoice h4 { margin: 0 0 6px; color: #0f172a; }
.ox-invoice-table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.ox-invoice-table th, .ox-invoice-table td { border-bottom: 1px solid #e2e8f0; padding: 8px; text-align: left; }
.ox-invoice-totals { margin-left: auto; width: 240px; }
.ox-invoice-totals div { display: flex; justify-content: space-between; margin: 4px 0; }
.ox-invoice-grand { font-size: 1.05rem; }
@media print {
  .no-print, .admin-rail, .admin-subnav, .admin-bottom-nav, .admin-mobile-bar { display: none !important; }
  .ox-invoice { box-shadow: none; }
}
@media (max-width: 900px) {
  .admin-table-wrap { display: none !important; }
  .admin-card-list { display: none !important; }
  .ox-table-wrap { display: block !important; }
  .ox-sales-title { font-size: 1.15rem !important; }
}
/* --- Courier fraud report --- */
.ox-fraud-hit {
  display: block;
  width: 100%;
  margin: 0;
  padding: 4px 0 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.ox-fraud-hit:hover .ox-bar-label { color: #0f766e; }
.ox-fraud-hit:hover .ox-bar { box-shadow: 0 0 0 2px #ccfbf1; }
.ox-bar[data-risk="safe"] i, .ox-fraud-hit[data-risk="safe"] .ox-bar i { background: #22c55e; }
.ox-bar[data-risk="low"] i, .ox-fraud-hit[data-risk="low"] .ox-bar i { background: #84cc16; }
.ox-bar[data-risk="medium"] i, .ox-fraud-hit[data-risk="medium"] .ox-bar i { background: #f59e0b; }
.ox-bar[data-risk="high"] i, .ox-fraud-hit[data-risk="high"] .ox-bar i { background: #ef4444; }
.ox-bar[data-risk="unknown"] i, .ox-fraud-hit[data-risk="unknown"] .ox-bar i { background: #94a3b8; }
.ox-fraud-modal {
  position: fixed;
  inset: 0;
  z-index: 6000;
  background: rgba(15, 23, 42, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.ox-fraud-modal[hidden] { display: none !important; }
.ox-fraud-card {
  position: relative;
  width: min(440px, 100%);
  max-height: min(86vh, 640px);
  overflow: auto;
  background: #fff;
  color: #0f172a;
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .25);
}
.ox-fraud-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  background: #f1f5f9;
  border-radius: 999px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #334155;
}
.ox-fraud-head h3 { margin: 2px 0 4px; font-size: 1.05rem; }
.ox-fraud-meta { color: #64748b; font-size: .8rem; }
.ox-fraud-verdict {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f1f5f9;
  font-weight: 700;
  font-size: .88rem;
}
.ox-fraud-verdict[data-risk="safe"] { background: #dcfce7; color: #166534; }
.ox-fraud-verdict[data-risk="low"] { background: #ecfccb; color: #3f6212; }
.ox-fraud-verdict[data-risk="medium"] { background: #fef3c7; color: #92400e; }
.ox-fraud-verdict[data-risk="high"] { background: #fee2e2; color: #991b1b; }
.ox-fraud-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.ox-fraud-kpis div {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
}
.ox-fraud-kpis b { display: block; font-size: .95rem; }
.ox-fraud-kpis span { color: #64748b; font-size: .62rem; }
.ox-fraud-row { margin: 10px 0; }
.ox-fraud-row-top { display: flex; justify-content: space-between; font-size: .82rem; margin-bottom: 4px; }
@media (max-width: 520px) {
  .ox-fraud-kpis { grid-template-columns: repeat(2, 1fr); }
}
/* --- Page courier report --- */
.ox-new-sale {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 16px;
  align-items: start;
}
.ox-page-fraud {
  background: #fff;
  color: #0f172a;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}
.ox-page-fraud-wide { max-width: 720px; margin-top: 16px; }
.ox-page-fraud-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 4px; }
.ox-page-fraud-head h4 { margin: 0; color: #0f172a; font-size: 1rem; }
.ox-fraud-search { display: flex; gap: 8px; max-width: 520px; margin: 14px 0 4px; }
.ox-check-phone { white-space: nowrap; }
@media (max-width: 900px) {
  .ox-new-sale { grid-template-columns: 1fr; }
}


/* === Storefront header hdr3 — Dhaka Exclusive 3-row, Primeless colors === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, .98);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  backdrop-filter: blur(16px);
}

/* Row 1 — utility / hotline bar */
.sh-util {
  background: linear-gradient(90deg, #0a0f1a 0%, #0f172a 50%, #0a0f1a 100%);
  border-bottom: 1px solid rgba(148, 163, 184, .12);
  font-size: .78rem;
}
.sh-util-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 18px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sh-util-left,
.sh-util-right {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex-wrap: wrap;
}
.sh-util-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: color .15s;
}
.sh-util-link:hover {
  color: #fff;
  text-decoration: none;
}
.sh-util-phone {
  color: #86efac;
}
.sh-util-phone:hover {
  color: #bbf7d0;
}
.sh-util-phone svg {
  color: #22c55e;
  flex: 0 0 auto;
}

/* Row 2 — logo + search + icons */
.sh-main {
  border-bottom: 1px solid rgba(148, 163, 184, .1);
}
.sh-main-inner,
.sh-catbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.sh-main-inner {
  min-height: 78px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.sh-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  flex: 0 0 auto;
  min-width: 0;
  max-width: 300px;
}
.sh-brand:hover {
  text-decoration: none;
  color: #fff;
}
.sh-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
  border-radius: 0;
  background: transparent;
}
.sh-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}
.sh-brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sh-brand-tag {
  font-size: .72rem;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 210px;
}
.sh-search {
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
  min-width: 0;
  max-width: 640px;
  margin: 0 auto;
  border: 1.5px solid rgba(244, 119, 42, .55);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(7, 11, 20, .55);
  box-shadow: 0 0 0 3px rgba(244, 119, 42, .08);
  transition: border-color .15s, box-shadow .15s;
}
.sh-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(244, 119, 42, .16);
}
.sh-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  padding: 12px 16px;
  font-size: .95rem;
  font-family: inherit;
}
.sh-search input::placeholder {
  color: #64748b;
}
.sh-search-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  padding: 0 18px;
  background: linear-gradient(135deg, #1e3a5f, #0f2744);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  font-family: inherit;
  transition: background .15s, filter .15s;
}
.sh-search-btn:hover {
  filter: brightness(1.12);
}
.sh-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.sh-icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(145deg, #1e3a5f, #152a45);
  border: 1px solid rgba(148, 163, 184, .18);
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.sh-icon-btn:hover {
  text-decoration: none;
  color: #fff;
  transform: translateY(-1px);
  border-color: rgba(244, 119, 42, .45);
  box-shadow: 0 6px 16px rgba(244, 119, 42, .2);
}
.sh-cart-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border-color: transparent;
}
.sh-cart-btn:hover {
  box-shadow: 0 6px 18px rgba(224, 94, 26, .35);
}
.sh-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid rgba(15, 23, 42, .95);
}
.sh-hamburger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, .18);
  background: rgba(30, 41, 59, .8);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}
.sh-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.sh-hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.sh-hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.sh-hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Row 3 — categories */
.sh-catbar {
  background: linear-gradient(180deg, #0b1220 0%, #0a1628 100%);
  border-top: 1px solid rgba(148, 163, 184, .08);
}
.sh-catbar-inner {
  min-height: 46px;
  justify-content: center;
  gap: 8px;
}
.sh-cats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 6px 0;
}
.sh-cats::-webkit-scrollbar { display: none; }
.sh-cat {
  flex: 0 0 auto;
  color: #cbd5e1;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.sh-cat:hover {
  color: #fff;
  background: rgba(255, 255, 255, .06);
  text-decoration: none;
}
.sh-cat.is-active {
  color: #fff;
  background: rgba(244, 119, 42, .16);
}

/* Mobile drawer */
.sh-mobile {
  display: none;
  border-top: 1px solid var(--border);
  background: rgba(15, 23, 42, .98);
  padding: 14px 16px 18px;
}
.sh-mobile[hidden] { display: none !important; }
.sh-mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.sh-mobile-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid rgba(244, 119, 42, .4);
  border-radius: 10px;
  background: rgba(7, 11, 20, .6);
  color: var(--text);
  padding: 11px 14px;
  font-size: .92rem;
  font-family: inherit;
  outline: 0;
}
.sh-mobile-search button {
  border: 0;
  border-radius: 10px;
  padding: 0 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.sh-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sh-mobile-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
  padding: 12px 12px;
  border-radius: 10px;
}
.sh-mobile-links a:hover {
  background: rgba(255, 255, 255, .05);
  text-decoration: none;
  color: #fff;
}
.sh-mobile-hotline {
  color: #86efac !important;
  margin-top: 6px;
  border: 1px solid rgba(34, 197, 94, .25);
}

body > .nav { display: none !important; }

@media (max-width: 980px) {
  .sh-brand-tag { display: none; }
  .sh-brand { max-width: 180px; }
  .sh-search { max-width: none; }
  .sh-util-email { display: none; }
}
@media (max-width: 768px) {
  .sh-util { display: none; }
  .sh-main-inner {
    min-height: 60px;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 10px;
  }
  .sh-search { display: none; }
  .sh-catbar { display: none; }
  .sh-hamburger { display: inline-flex; }
  .sh-logo { width: 36px; height: 36px; }
  .sh-brand-name { font-size: 1rem; }
  .sh-brand { max-width: min(48vw, 180px); }
  .sh-icon-btn { width: 38px; height: 38px; }
  .sh-mobile:not([hidden]) { display: block; }
  .sh-actions .sh-icon-btn:first-child { display: none; }
}
@media (max-width: 420px) {
  .sh-main-inner { padding-left: 12px; padding-right: 12px; }
  .sh-brand-name { max-width: 34vw; }
}

/* hero banner hard overrides — full natural cover size, no crop */
.hero.hero-banner.hero-slider,
section.hero.hero-banner {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100vw !important;
  overflow: hidden !important;
  background: #0a0c14 !important;
  line-height: 0 !important;
}
.hero.hero-banner .hero-slider-track,
.hero.hero-banner .hero-media,
.hero.hero-banner .hero-slide.is-active {
  width: 100% !important;
  line-height: 0 !important;
}
.hero.hero-banner .hero-banner-img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: 0 !important;
  padding: 0 !important;
}
@media (max-width: 768px) {
  .hero.hero-banner.hero-slider,
  section.hero.hero-banner {
    padding: 0 !important;
  }
  .hero.hero-banner .hero-banner-img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    min-height: 0 !important;
  }
  .hero-slider-dots { bottom: 10px; }
  .hero.hero-banner .hero-banner-overlay {
    padding: 0 36px clamp(12px, 4vw, 22px) !important;
  }
  .hero.hero-banner .hero-cta {
    min-width: 148px;
    padding: 10px 18px;
    font-size: .88rem;
  }
}
@media (min-width: 1400px) {
  /* keep ultra-wide covers sharp but not endlessly tall on huge monitors */
  .hero.hero-banner .hero-banner-img {
    width: 100% !important;
    max-height: 560px;
    object-fit: cover !important;
    object-position: center 42%;
  }
}


.ox-table tbody tr[data-st="pending"] { --st-accent: #f59e0b; }
.ox-table tbody tr[data-st="processing"] { --st-accent: #38bdf8; }
.ox-table tbody tr[data-st="follow"] { --st-accent: #2a4bd7; }
.ox-table tbody tr[data-st="confirmed"] { --st-accent: #10b981; }
.ox-table tbody tr[data-st="shipped"],
.ox-table tbody tr[data-st="in_review"] { --st-accent: #3b82f6; }
.ox-table tbody tr[data-st="delivered"],
.ox-table tbody tr[data-st="completed"] { --st-accent: #22c55e; }
.ox-table tbody tr[data-st="partial"] { --st-accent: #f97316; }
.ox-table tbody tr[data-st="returns"] { --st-accent: #f4772a; }
.ox-table tbody tr[data-st="hold"],
.ox-table tbody tr[data-st="temporary"] { --st-accent: #eab308; }
.ox-table tbody tr[data-st="exchange"] { --st-accent: #2a4bd7; }
.ox-table tbody tr[data-st="cancelled"] { --st-accent: #ef4444; }

/* ── Admin brand theme v13: dark sidebar + Primeless palette ── */
.admin-body {
  --ad-brand: #1b2f7f;
  --ad-brand-2: #e05e1a;
  --ad-brand-soft: #e6ebff;
  --ad-brand-mid: #0f1b4d;
  --ad-brand-grad: linear-gradient(135deg, #1b2f7f 0%, #2a4bd7 45%, #e05e1a 100%);
  --ad-brand-glow: 0 8px 22px rgba(27, 47, 127, .32);
  --ad-rail-bg: #0f172a;
  --ad-rail-border: rgba(148, 163, 184, .14);
  --ad-rail-text: #cbd5e1;
  --ad-rail-muted: #94a3b8;
  --ad-rail-hover: rgba(27, 47, 127, .16);
  --ad-main-bg: #0b1220;
  --ad-main-text: #e2e8f0;
  --ad-main-muted: #94a3b8;
  --ad-main-title: #f8fafc;
  --ad-card: #111827;
  --ad-card-border: rgba(148, 163, 184, .14);
  --ad-ok: #10b981;
  --ad-warn: #f59e0b;
  --ad-danger: #ef4444;
  --ad-info: #38bdf8;
}

.admin-body,
.admin-shell {
  background: var(--ad-main-bg) !important;
  color: var(--ad-main-text);
}

/* Rail + brand */
.admin-rail {
  background: var(--ad-rail-bg) !important;
  border-right: 1px solid var(--ad-rail-border) !important;
}
.admin-rail .rail-brand {
  color: #f8fafc !important;
  background: transparent;
  border-radius: 14px;
  transition: background .15s, box-shadow .15s;
}
.admin-rail .rail-brand:hover {
  background: var(--ad-rail-hover);
  text-decoration: none !important;
}
.admin-rail .rail-brand-text {
  color: #0f172a !important;
  background: linear-gradient(105deg, #1b2f7f, #e05e1a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}
.admin-rail .rail-brand-mark,
.admin-rail img.rail-brand-mark,
.admin-rail .rail-brand-logo {
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
  padding: 4px !important;
  background: var(--ad-brand-grad) !important;
  box-shadow: var(--ad-brand-glow) !important;
  object-fit: contain !important;
  color: transparent !important;
}
.admin-rail .rail-item {
  color: var(--ad-rail-text) !important;
}
.admin-rail .rail-item .rail-label {
  color: inherit !important;
}
.admin-rail .rail-item:hover {
  background: var(--ad-rail-hover) !important;
  color: #c7d2ff !important;
}
.admin-rail .rail-item.active {
  background: var(--ad-brand-grad) !important;
  color: #fff !important;
  box-shadow: var(--ad-brand-glow) !important;
}
.admin-rail .rail-item.active .rail-label {
  color: #fff !important;
}
.admin-rail .rail-nav-bottom {
  border-top-color: var(--ad-rail-border) !important;
}
.admin-rail .rail-nav-bottom .rail-item {
  color: var(--ad-rail-muted) !important;
}
.admin-rail .rail-nav-bottom .rail-item:hover {
  color: #c7d2ff !important;
}

/* Subnav */
.admin-subnav {
  background: var(--ad-rail-bg) !important;
  border-right-color: var(--ad-rail-border) !important;
}
.admin-subnav .subnav-title {
  color: #f8fafc !important;
  background: linear-gradient(105deg, #ffb37a, #8fa8ff, #7dd3fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.admin-subnav .subnav-dash { color: var(--ad-rail-muted) !important; }
.admin-subnav .subnav-dash:hover { color: var(--ad-brand) !important; }
.admin-subnav .subnav-group-title { color: #64748b !important; }
.admin-subnav a {
  color: var(--ad-rail-text) !important;
}
.admin-subnav a:hover {
  background: var(--ad-rail-hover) !important;
  color: #c7d2ff !important;
}
.admin-subnav a:hover .sub-ico { color: var(--ad-brand) !important; }
.admin-subnav a.active {
  background: var(--ad-brand-grad) !important;
  color: #fff !important;
  box-shadow: var(--ad-brand-glow) !important;
}
.admin-subnav a.active .sub-ico { color: #fff1e6 !important; }

/* Main content text hierarchy */
.admin-shell .admin-main {
  background: var(--ad-main-bg) !important;
  color: var(--ad-main-text);
}
.admin-shell .admin-main h1,
.admin-shell .admin-main h2,
.admin-shell .admin-main h3,
.admin-shell .admin-main .ox-sales-title,
.admin-shell .admin-main .dash-title,
.admin-shell .admin-main .dash-title-text {
  color: var(--ad-main-title) !important;
  -webkit-text-fill-color: unset;
}
.admin-shell .admin-main h2,
.admin-shell .admin-main h3.ox-sales-title,
.admin-shell .admin-main .dash-title-text {
  background: linear-gradient(105deg, #ffb37a 0%, #8fa8ff 45%, #7dd3fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}
.admin-shell .admin-main p,
.admin-shell .admin-main .text-muted,
.admin-shell .admin-main .dash-sub,
.admin-shell .admin-main .dash-clock,
.admin-shell .admin-main label {
  color: var(--ad-main-muted);
}
.admin-shell .admin-main a:not(.btn):not(.ox-tool):not(.ox-tab):not(.rail-item):not(.bnav-item):not(.qa-btn):not(.ox-oid):not(.ox-mini-acts a) {
  color: #8fa8ff;
}
.admin-shell .admin-main a:not(.btn):not(.ox-tool):not(.ox-tab):hover {
  color: #ffb37a;
}

/* Unified buttons inside admin */
.admin-body .btn-primary,
.admin-shell .btn-primary {
  background: var(--ad-brand-grad) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: var(--ad-brand-glow) !important;
}
.admin-body .btn-primary:hover,
.admin-shell .btn-primary:hover {
  filter: brightness(1.06);
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(219, 39, 119, .35) !important;
}
.admin-body .btn-outline,
.admin-shell .btn-outline {
  background: rgba(27, 47, 127, .08) !important;
  border: 1px solid rgba(42, 75, 215, .35) !important;
  color: #c7d2ff !important;
}
.admin-body .btn-outline:hover,
.admin-shell .btn-outline:hover {
  background: rgba(27, 47, 127, .18) !important;
  border-color: rgba(244, 119, 42, .45) !important;
  color: #fff !important;
}
.admin-body .btn-danger,
.admin-shell .btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  color: #fff !important;
  border: none !important;
}
.admin-body .btn-success,
.admin-shell .btn-success {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #fff !important;
  border: none !important;
}

/* Sales page tools → brand */
.ox-tool {
  border-color: rgba(27, 47, 127, .2) !important;
  background: #fff !important;
  color: #4c1d95 !important;
}
.ox-tool:hover {
  background: var(--ad-brand-soft) !important;
  border-color: rgba(27, 47, 127, .4) !important;
  color: var(--ad-brand-mid) !important;
}
.ox-tool-primary {
  background: var(--ad-brand-grad) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: var(--ad-brand-glow);
}
.ox-tool-primary:hover {
  filter: brightness(1.05);
  color: #fff !important;
}
.ox-tool-soft {
  background: #fff7ed !important;
  border-color: #fed7aa !important;
  color: #c2410c !important;
}
.ox-oid { color: var(--ad-brand) !important; }
.ox-oid:hover { color: var(--ad-brand-2) !important; }
.ox-phone-row { color: var(--ad-brand-mid) !important; }
.ox-pill {
  color: #1b2f7f !important;
  background: #e6ebff !important;
}
.ox-src {
  background: #e6ebff !important;
  color: #1b2f7f !important;
}
.ox-mini-acts a:hover {
  border-color: rgba(27, 47, 127, .4) !important;
  color: var(--ad-brand-mid) !important;
  background: var(--ad-brand-soft) !important;
}
.ox-act-ok {
  background: var(--ad-brand-grad) !important;
  border-color: transparent !important;
  color: #fff !important;
}

/* Cards / tables / forms in admin main */
.admin-shell .admin-main .card,
.admin-shell .admin-main .dash-panel,
.admin-shell .admin-main .kpi-card,
.admin-shell .admin-main .settings-card {
  background: var(--ad-card);
  border-color: var(--ad-card-border);
}
.admin-shell .admin-main .kpi-card:hover {
  border-color: rgba(42, 75, 215, .4);
}
.admin-shell .admin-main .form-control,
.admin-shell .admin-main .form-select,
.admin-shell .admin-main textarea,
.admin-shell .admin-main input[type="text"],
.admin-shell .admin-main input[type="number"],
.admin-shell .admin-main input[type="email"],
.admin-shell .admin-main input[type="tel"],
.admin-shell .admin-main input[type="password"],
.admin-shell .admin-main select {
  background: #0b1220;
  border: 1px solid #334155;
  color: #f1f5f9;
}
.admin-shell .admin-main .form-control:focus,
.admin-shell .admin-main input:focus,
.admin-shell .admin-main select:focus,
.admin-shell .admin-main textarea:focus {
  border-color: rgba(42, 75, 215, .65);
  outline: none;
  box-shadow: 0 0 0 3px rgba(27, 47, 127, .2);
}

/* Topbar + bottom nav brand */
.admin-topbar {
  background: rgba(11, 18, 32, .92) !important;
  border-bottom: 1px solid rgba(42, 75, 215, .18) !important;
  backdrop-filter: blur(12px);
}
.admin-topbar .topbar-brand {
  color: #f8fafc !important;
  font-weight: 800;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.admin-topbar .topbar-brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  padding: 3px;
  background: var(--ad-brand-grad);
  box-shadow: 0 4px 12px rgba(27, 47, 127, .35);
  object-fit: contain;
}
.admin-topbar .topbar-btn {
  color: #c7d2ff !important;
  border: 1px solid rgba(42, 75, 215, .28);
  background: rgba(27, 47, 127, .12);
  border-radius: 10px;
}
.admin-topbar .topbar-btn:hover {
  background: rgba(27, 47, 127, .25);
  color: #fff !important;
}
.admin-bottom-nav {
  background: #0f172a !important;
  border-top: 1px solid rgba(148, 163, 184, .14) !important;
}
.admin-bottom-nav .bnav-item {
  color: #94a3b8 !important;
  text-decoration: none !important;
}
.admin-bottom-nav .bnav-item.active {
  color: #c7d2ff !important;
}
.admin-bottom-nav .bnav-item.active .bnav-lbl {
  color: #c7d2ff !important;
  font-weight: 700;
}

/* Mobile menu toggle */
.admin-mobile-bar .btn-menu-toggle {
  background: var(--ad-brand-grad) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: var(--ad-brand-glow);
}
.admin-mobile-bar .mobile-bar-title {
  color: #f8fafc !important;
  font-weight: 700;
}

/* Dashboard accents */
.admin-shell .kpi-icon {
  background: var(--ad-brand-grad) !important;
  color: #fff !important;
  box-shadow: var(--ad-brand-glow);
}
.admin-shell .qa-btn:hover {
  border-color: rgba(42, 75, 215, .45);
  color: #c7d2ff;
}
.admin-shell .dash-live {
  color: #bbf7d0;
}

/* Table row left accent stays status-colored; header tint brand */
.ox-table th {
  color: #64748b !important;
}
.ox-table tbody tr[data-st] td:first-child {
  box-shadow: inset 3px 0 0 0 var(--st-accent, transparent);
}

/* Login page if uses admin-body */
body.admin-body .login-card h1,
body.admin-body .login-brand {
  background: linear-gradient(105deg, #1b2f7f, #e05e1a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}


/* ── Dark sidebar polish v13 ── */
.admin-rail,
.admin-subnav {
  color-scheme: dark;
  scrollbar-color: rgba(148,163,184,.35) transparent;
}
.admin-rail .rail-brand-text {
  background: linear-gradient(105deg, #ffb37a 0%, #8fa8ff 50%, #2a4bd7 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}
.admin-rail .rail-item {
  color: #cbd5e1 !important;
}
.admin-rail .rail-item:hover .rail-label {
  color: #f1f5f9 !important;
}
.admin-rail .rail-item.active {
  background: var(--ad-brand-grad) !important;
  color: #fff !important;
}
.admin-rail .rail-nav-bottom {
  border-top: 1px solid rgba(148, 163, 184, .14) !important;
}
.admin-rail .rail-nav-bottom .rail-item {
  color: #94a3b8 !important;
}
.admin-subnav {
  background: #0f172a !important;
  border-right: 1px solid rgba(148, 163, 184, .14) !important;
  box-shadow: 8px 0 28px rgba(0,0,0,.35);
}
.admin-subnav .subnav-head {
  border-bottom-color: rgba(148, 163, 184, .14) !important;
}
.admin-subnav .subnav-group {
  border-bottom-color: rgba(148, 163, 184, .08) !important;
}
.admin-subnav a {
  color: #cbd5e1 !important;
}
.admin-subnav a .sub-ico {
  color: #94a3b8 !important;
}
.admin-subnav a:hover .sub-ico {
  color: #c7d2ff !important;
}
.admin-subnav a.active {
  background: var(--ad-brand-grad) !important;
  color: #fff !important;
}
.admin-subnav .subnav-close {
  background: rgba(27, 47, 127, .15) !important;
  border-color: rgba(42, 75, 215, .3) !important;
  color: #c7d2ff !important;
}
.admin-subnav .subnav-dash:hover {
  color: #c7d2ff !important;
}


/* ── Sales dark surface v14 (match dashboard) ── */
.ox-sales { color: #e2e8f0 !important; }
.ox-sales-title {
  background: linear-gradient(105deg, #ffb37a 0%, #8fa8ff 45%, #7dd3fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}

/* tools on dark */
.ox-sales .ox-tool {
  background: rgba(15, 23, 42, .9) !important;
  border: 1px solid rgba(148, 163, 184, .22) !important;
  color: #e2e8f0 !important;
}
.ox-sales .ox-tool:hover {
  background: rgba(27, 47, 127, .2) !important;
  border-color: rgba(42, 75, 215, .45) !important;
  color: #f8fafc !important;
}
.ox-sales .ox-tool-primary {
  background: var(--ad-brand-grad, linear-gradient(135deg, #1b2f7f, #e05e1a)) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(27, 47, 127, .32);
}
.ox-sales .ox-tool-soft {
  background: rgba(244, 119, 42, .14) !important;
  border-color: rgba(255, 179, 122, .35) !important;
  color: #ffb37a !important;
}

/* tabs idle counts on dark */
.ox-sales .ox-tab {
  color: #94a3b8 !important;
}
.ox-sales .ox-tab b {
  background: rgba(148, 163, 184, .16);
  color: #cbd5e1;
}
.ox-sales .ox-tab-all.is-on b {
  background: rgba(148, 163, 184, .28);
  color: #f8fafc;
}

/* table card = dashboard card */
.ox-sales .ox-table-wrap {
  background: #111827 !important;
  border: 1px solid rgba(148, 163, 184, .14) !important;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
  overflow: auto;
}
.ox-sales .ox-table {
  background: transparent !important;
  color: #e2e8f0;
}
.ox-sales .ox-table th {
  background: rgba(15, 23, 42, .85) !important;
  color: #94a3b8 !important;
  border-bottom: 1px solid rgba(148, 163, 184, .14) !important;
}
.ox-sales .ox-table td {
  color: #e2e8f0 !important;
  border-bottom: 1px solid rgba(148, 163, 184, .1) !important;
  background: transparent;
}
.ox-sales .ox-table tr:hover td {
  background: rgba(27, 47, 127, .08) !important;
}
.ox-sales .ox-oid {
  color: #8fa8ff !important;
}
.ox-sales .ox-oid:hover {
  color: #ffb37a !important;
}
.ox-sales .ox-muted {
  color: #94a3b8 !important;
}
.ox-sales .ox-name {
  color: #f8fafc !important;
}
.ox-sales .ox-phone-row {
  color: #8fa8ff !important;
}
.ox-sales .ox-addr {
  color: #94a3b8 !important;
}
.ox-sales .ox-pill {
  color: #8fa8ff !important;
  background: rgba(27, 47, 127, .22) !important;
}
.ox-sales .ox-src {
  background: rgba(27, 47, 127, .2) !important;
  color: #c7d2ff !important;
}
.ox-sales .ox-mini-acts a {
  background: rgba(15, 23, 42, .9) !important;
  border: 1px solid rgba(148, 163, 184, .22) !important;
  color: #cbd5e1 !important;
}
.ox-sales .ox-mini-acts a:hover {
  background: rgba(27, 47, 127, .22) !important;
  border-color: rgba(42, 75, 215, .4) !important;
  color: #f8fafc !important;
}
.ox-sales .ox-thumb {
  border-color: rgba(148, 163, 184, .2) !important;
  background: #0f172a !important;
}
.ox-sales .ox-courier {
  color: #cbd5e1 !important;
}
.ox-sales .ox-td-money {
  color: #e2e8f0 !important;
}
.ox-sales .ox-profit {
  color: #4ade80 !important;
}
.ox-sales .ox-note {
  color: #cbd5e1 !important;
}
.ox-sales .ox-note-form input {
  background: #0b1220 !important;
  border: 1px dashed rgba(148, 163, 184, .35) !important;
  color: #e2e8f0 !important;
}
.ox-sales .ox-note-form input::placeholder {
  color: #64748b;
}
.ox-sales .ox-bar {
  background: rgba(148, 163, 184, .18) !important;
}
.ox-sales .ox-bar-label,
.ox-sales .ox-fraud-status {
  color: #94a3b8 !important;
}
.ox-sales .ox-ok {
  background: var(--ad-brand-grad, linear-gradient(135deg, #1b2f7f, #e05e1a)) !important;
  color: #fff !important;
}
.ox-sales .ox-ok:disabled {
  opacity: .45;
  cursor: default;
}
.ox-sales .ox-dots {
  background: rgba(148, 163, 184, .12) !important;
  border: 1px solid rgba(148, 163, 184, .22) !important;
  color: #e2e8f0 !important;
}
.ox-sales .ox-menu {
  background: #111827 !important;
  border: 1px solid rgba(148, 163, 184, .18) !important;
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}
.ox-sales .ox-menu a,
.ox-sales .ox-menu button {
  color: #e2e8f0 !important;
  background: transparent !important;
}
.ox-sales .ox-menu a:hover,
.ox-sales .ox-menu button:hover {
  background: rgba(27, 47, 127, .18) !important;
}
.ox-sales .ox-empty {
  color: #94a3b8 !important;
}

/* status chips stay colored but slightly richer on dark */
.ox-sales .ox-st-pending { background: rgba(245,158,11,.16); color: #fbbf24; border-color: rgba(245,158,11,.35); }
.ox-sales .ox-st-processing { background: rgba(56,189,248,.14); color: #7dd3fc; border-color: rgba(56,189,248,.35); }
.ox-sales .ox-st-follow { background: rgba(42,75,215,.16); color: #8fa8ff; border-color: rgba(42,75,215,.35); }
.ox-sales .ox-st-confirmed { background: rgba(16,185,129,.16); color: #34d399; border-color: rgba(16,185,129,.35); }
.ox-sales .ox-st-shipped,
.ox-sales .ox-st-in_review { background: rgba(59,130,246,.16); color: #60a5fa; border-color: rgba(59,130,246,.35); }
.ox-sales .ox-st-delivered,
.ox-sales .ox-st-completed { background: rgba(34,197,94,.16); color: #4ade80; border-color: rgba(34,197,94,.35); }
.ox-sales .ox-st-partial { background: rgba(249,115,22,.16); color: #fb923c; border-color: rgba(249,115,22,.35); }
.ox-sales .ox-st-returns { background: rgba(244,119,42,.16); color: #ffb37a; border-color: rgba(244,119,42,.35); }
.ox-sales .ox-st-hold,
.ox-sales .ox-st-temporary { background: rgba(234,179,8,.16); color: #facc15; border-color: rgba(234,179,8,.35); }
.ox-sales .ox-st-exchange { background: rgba(42,75,215,.16); color: #2a4bd7; border-color: rgba(42,75,215,.35); }
.ox-sales .ox-st-cancelled { background: rgba(239,68,68,.16); color: #f87171; border-color: rgba(239,68,68,.35); }
.ox-sales .ox-st-cancel-pending { background: rgba(249,115,22,.16); color: #fb923c; border-color: rgba(249,115,22,.4); }
.ox-sales .ox-st-cancel-approved { background: rgba(239,68,68,.16); color: #f87171; border-color: rgba(239,68,68,.35); }
.ox-sales .ox-st-cancel-rejected { background: rgba(148,163,184,.14); color: #94a3b8; border-color: rgba(148,163,184,.3); }

/* qty / money labels */
.ox-sales .ox-qty { color: #f8fafc !important; }

/* ── Cover photo size fix v15 ── */
section.hero.hero-banner,
.hero.hero-banner.hero-slider {
  --hero-ar: 2160 / 730;
  width: 100%;
  max-width: 100%;
  padding: 0 !important;
  margin: 0 !important;
  background: #070a12;
  overflow: hidden;
}
.hero.hero-banner .hero-slider-track {
  position: relative;
  width: 100%;
}
.hero.hero-banner .hero-slide .hero-media,
.hero.hero-banner .hero-media {
  width: 100%;
  line-height: 0;
}
.hero.hero-banner .hero-banner-img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  display: block !important;
}
/* phones/tablets: show full artwork, no forced 16:9 crop */
@media (max-width: 900px) {
  .hero.hero-banner .hero-banner-img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
  }
}


/* dynamic svg icons v16 */
.admin-rail .rail-ico,
.admin-subnav a .sub-ico,
.bnav-item .bnav-ico,
.kpi-icon,
.qa-btn .qa-ico,
.topbar-btn,
.subnav-close,
.btn-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.admin-rail .rail-ico svg,
.admin-rail .rail-ico .ico,
.admin-subnav a .sub-ico svg,
.admin-subnav a .sub-ico .ico,
.bnav-item .bnav-ico svg,
.bnav-item .bnav-ico .ico,
.kpi-icon svg,
.kpi-icon .ico,
.qa-btn .qa-ico svg,
.qa-btn .qa-ico .ico,
.topbar-btn svg,
.subnav-close svg,
.btn-menu-toggle svg {
  display: block;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  stroke: currentColor;
  color: inherit;
}
.admin-rail .rail-ico {
  font-size: 1.15rem;
  width: 22px;
  height: 22px;
}
.admin-rail .rail-ico svg,
.admin-rail .rail-ico .ico {
  width: 20px;
  height: 20px;
}
.admin-subnav a .sub-ico {
  width: 18px;
  height: 18px;
  font-size: 0;
  line-height: 0;
}
.admin-subnav a .sub-ico svg,
.admin-subnav a .sub-ico .ico {
  width: 16px;
  height: 16px;
}
.bnav-item .bnav-ico {
  font-size: 0;
  line-height: 0;
  width: 22px;
  height: 22px;
}
.bnav-item .bnav-ico svg,
.bnav-item .bnav-ico .ico {
  width: 20px;
  height: 20px;
}
.admin-shell .kpi-icon {
  font-size: 0 !important;
  line-height: 0;
}
.admin-shell .kpi-icon svg,
.admin-shell .kpi-icon .ico {
  width: 20px;
  height: 20px;
  color: #fff;
  stroke: currentColor;
}
.qa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.qa-btn .qa-ico {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: inherit;
  opacity: .9;
}
.admin-topbar .topbar-btn svg {
  width: 20px;
  height: 20px;
}
.admin-subnav .subnav-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.admin-subnav .subnav-close svg {
  width: 16px;
  height: 16px;
}
.btn-menu-toggle svg {
  width: 16px;
  height: 16px;
  margin-right: 4px;
  vertical-align: -2px;
}
.admin-rail .rail-item.active .rail-ico,
.admin-subnav a.active .sub-ico,
.bnav-item.active .bnav-ico {
  color: inherit;
}

/* ── Mobile hero CTA under cover v19 ── */
.hero-mobile-cta {
  display: none;
}

@media (max-width: 768px) {
  /* Image-only cover: hide overlaid CTA + text strip on phones */
  .hero.hero-banner .hero-banner-overlay {
    display: none !important;
  }

  .hero-mobile-cta {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 16px 12px;
    margin: 0;
    background: #0a0c14;
    box-sizing: border-box;
    position: relative;
    z-index: 3;
  }

  .hero-mobile-cta .hero-cta--bar {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    width: auto;
    max-width: min(72vw, 200px);
    padding: 8px 16px !important;
    margin: 0 !important;
    font-size: 0.78rem !important;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    border-radius: 999px !important;
    box-shadow: 0 4px 14px rgba(224, 94, 26, 0.3);
    white-space: nowrap;
    transform: none !important;
  }

  .hero-slider-dots {
    bottom: 8px !important;
    gap: 5px !important;
  }
  .hero-dot {
    width: 6px !important;
    height: 6px !important;
  }
  .hero-dot.is-active {
    width: 14px !important;
  }
  .hero-slider-btn {
    width: 28px !important;
    height: 28px !important;
    font-size: 1.1rem !important;
    opacity: 0.88;
  }
}

@media (max-width: 420px) {
  .hero-mobile-cta {
    padding: 8px 12px 10px;
  }
  .hero-mobile-cta .hero-cta--bar {
    padding: 7px 14px !important;
    font-size: 0.72rem !important;
    max-width: min(68vw, 180px);
  }
}

@media (min-width: 769px) {
  .hero-mobile-cta {
    display: none !important;
  }
  .hero.hero-banner .hero-cta .hero-cta-short { display: none; }
  .hero.hero-banner .hero-cta .hero-cta-full { display: inline; }
  .hero.hero-banner .hero-cta {
    margin-bottom: clamp(18px, 3.2vw, 36px);
  }
}

/* ox product thumb link */
.ox-sales .ox-thumb-link {
  display: inline-flex;
  flex-shrink: 0;
  border-radius: 8px;
  line-height: 0;
  text-decoration: none;
  outline: none;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.ox-sales .ox-thumb-link:hover {
  transform: scale(1.06);
  box-shadow: 0 0 0 2px rgba(168, 85, 247, .55);
  opacity: 1;
}
.ox-sales .ox-thumb-link:focus-visible {
  box-shadow: 0 0 0 2px rgba(224, 94, 26, .7);
}
.ox-sales .ox-thumb-link .ox-thumb {
  cursor: pointer;
}



/* ── Product multi-image gallery ── */
.pdp-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(0,0,0,.2);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 10px;
  min-height: auto;
}
.pdp-gallery-main {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.pdp-gallery-main img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  display: block;
}
.pdp-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.pdp-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: rgba(15,23,42,.6);
  cursor: pointer;
  transition: border-color .15s, transform .15s;
  flex: 0 0 auto;
}
.pdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pdp-thumb:hover { border-color: rgba(251,146,60,.55); transform: translateY(-1px); }
.pdp-thumb.is-active {
  border-color: #fb923c;
  box-shadow: 0 0 0 2px rgba(251,146,60,.25);
}
@media (max-width: 768px) {
  .pdp-gallery { padding: 8px; gap: 10px; }
  .pdp-gallery-main { min-height: 260px; }
  .pdp-gallery-main img { max-height: 380px; }
  .pdp-thumb { width: 60px; height: 60px; border-radius: 8px; }
}

/* Admin product gallery */
.pf-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.pf-gal-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.25);
  background: #0b1220;
}
.pf-gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pf-gal-item .pf-gal-badge {
  position: absolute;
  top: 6px; left: 6px;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: linear-gradient(135deg,#f97316,#ea580c);
  color: #fff;
  padding: 3px 7px;
  border-radius: 6px;
}
.pf-gal-item .pf-gal-rm {
  position: absolute;
  top: 6px; right: 6px;
  width: 26px; height: 26px;
  border: 0;
  border-radius: 8px;
  background: rgba(15,23,42,.85);
  color: #fca5a5;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
}
.pf-gal-item .pf-gal-rm:hover { background: #7f1d1d; color: #fff; }
.pf-gal-item .pf-gal-primary {
  position: absolute;
  left: 6px; right: 6px; bottom: 6px;
  border: 0;
  border-radius: 8px;
  padding: 5px 6px;
  font-size: .68rem;
  font-weight: 700;
  background: rgba(15,23,42,.88);
  color: #e2e8f0;
  cursor: pointer;
}
.pf-gal-item.is-primary .pf-gal-primary {
  background: rgba(234,88,12,.9);
  color: #fff;
}
.pf-gal-add {
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1.5px dashed rgba(148,163,184,.35);
  background: rgba(15,23,42,.45);
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 600;
  text-align: center;
  padding: 8px;
  transition: border-color .15s, color .15s;
}
.pf-gal-add:hover {
  border-color: #fb923c;
  color: #fb923c;
}
.pf-gal-add input { display: none; }
.pf-gal-hint {
  font-size: .78rem;
  color: #94a3b8;
  margin-top: 6px;
}

/* ── Dashboard dynamic (period tabs, window meta, payment mix, quick actions, toasts) ── */
.panel-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.dash-period {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  background: rgba(148, 163, 184, .08);
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 9px;
}
.dash-period button {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: .72rem;
  font-weight: 600;
  line-height: 1;
  padding: 5px 9px;
  border-radius: 7px;
  cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
}
.dash-period button:hover { color: #e2e8f0; }
.dash-period button.active {
  background: #2a4bd7;
  color: #fff;
  box-shadow: 0 2px 8px rgba(27, 47, 127, .45);
}
#windowMeta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
#windowMeta strong { color: #fff; font-size: .95rem; }
.dash-trend {
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  white-space: nowrap;
}
.dash-trend.up { color: #34d399; background: rgba(52, 211, 153, .12); }
.dash-trend.down { color: #ffb37a; background: rgba(255, 179, 122, .12); }
.dash-trend.flat { color: #94a3b8; background: rgba(148, 163, 184, .12); }
.meta-sub {
  display: block;
  width: 100%;
  color: #64748b;
  font-size: .68rem;
  margin-top: 2px;
  text-align: right;
}
.dash-interval {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  font-size: .78rem;
  font-weight: 600;
}
.dash-interval select {
  background: #111827;
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: .78rem;
  cursor: pointer;
  outline: none;
}
.dash-interval select:focus { border-color: #2a4bd7; }

/* charts adapt to selected period (scrolls when many columns) */
.bar-chart,
.line-chip-row {
  grid-template-columns: repeat(var(--chart-cols, 14), minmax(12px, 1fr));
  overflow-x: auto;
  scrollbar-width: thin;
}

/* Payment methods panel */
.pay-list { display: flex; flex-direction: column; gap: 8px; max-height: 300px; overflow-y: auto; }
.pay-row {
  display: grid;
  grid-template-columns: 10px minmax(80px, auto) 1fr 32px 80px;
  gap: 10px;
  align-items: center;
  padding: 7px 8px;
  border-radius: 10px;
  transition: background .12s;
}
.pay-row:hover { background: rgba(255, 255, 255, .04); }
.pay-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.pay-name {
  color: #e2e8f0;
  font-size: .8rem;
  font-weight: 600;
  text-transform: capitalize;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pay-bar-bg { height: 8px; border-radius: 99px; background: rgba(148, 163, 184, .14); overflow: hidden; }
.pay-bar-fg { height: 100%; border-radius: 99px; transition: width .4s ease; }
.pay-count { color: #cbd5e1; font-size: .78rem; font-weight: 700; text-align: right; }
.pay-rev { color: #94a3b8; font-size: .74rem; text-align: right; white-space: nowrap; }

/* Recent orders: quick status actions */
.feed-row { display: flex; align-items: center; gap: 4px; }
.feed-row .feed-item { flex: 1; min-width: 0; border-radius: 10px 6px 6px 10px; }
.feed-acts { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.mini-act {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, .22);
  background: rgba(255, 255, 255, .04);
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color .12s, border-color .12s, background .12s, opacity .12s;
}
.mini-act.ok:hover { color: #34d399; border-color: rgba(52, 211, 153, .5); background: rgba(52, 211, 153, .12); }
.mini-act.no:hover { color: #ffb37a; border-color: rgba(255, 179, 122, .5); background: rgba(255, 179, 122, .12); }
.mini-act:disabled { opacity: .45; cursor: wait; }

/* New-order toasts */
.dash-toasts {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(340px, calc(100vw - 32px));
}
.dash-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, .25);
  border-left: 3px solid #34d399;
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  animation: dashToastIn .28s ease;
}
.dash-toast.out { animation: dashToastOut .4s ease forwards; }
@keyframes dashToastIn {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to { opacity: 1; transform: none; }
}
@keyframes dashToastOut {
  to { opacity: 0; transform: translateY(8px) scale(.97); }
}
.t-ico { color: #34d399; display: flex; flex-shrink: 0; }
.t-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.t-main strong { color: #fff; font-size: .85rem; }
.t-sub { font-size: .75rem; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-sub a { color: #8fa8ff; text-decoration: none; font-weight: 600; }
.t-sub a:hover { color: #c7d2fe; text-decoration: none; }
.t-x {
  background: none;
  border: 0;
  color: #64748b;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 6px;
  flex-shrink: 0;
}
.t-x:hover { color: #e2e8f0; background: rgba(255, 255, 255, .06); }

/* Dashboard responsive tweaks */
@media (max-width: 720px) {
  .panel-head { flex-wrap: wrap; }
  .panel-title-wrap { width: 100%; }
  #windowMeta { justify-content: flex-start; }
  .meta-sub { text-align: left; }
  .pay-row { grid-template-columns: 10px minmax(70px, auto) 1fr 30px; }
  .pay-rev { display: none; }
  .feed-acts { flex-direction: row; }
  .mini-act { width: 28px; height: 28px; }
  .dash-interval span { display: none; }
  .dash-toasts { left: 12px; right: 12px; max-width: none; }
}

/* ── Ad campaigns panel (dashboard) ─────────────────────────────── */
.cmp-totals { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 10px 14px; margin-bottom: 12px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.02); font-size: .8rem; color: #94a3b8; }
.cmp-totals b { color: #e2e8f0; font-weight: 700; margin-left: 2px; }
.cmp-totals .pos { color: #34d399; }
.cmp-totals .neg { color: #f87171; }
.cmp-forms { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-bottom: 14px; }
.cmp-form { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: rgba(255,255,255,.02); }
.cmp-form-head { font-size: .8rem; font-weight: 700; color: #e2e8f0; margin-bottom: 10px; letter-spacing: .02em; }
.cmp-form-head .text-muted { font-weight: 500; }
.cmp-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin-bottom: 10px; }
.cmp-form-grid .cmp-wide { grid-column: 1 / -1; }
.cmp-in { width: 100%; background: rgba(255,255,255,.04); border: 1px solid var(--border); color: #e2e8f0; border-radius: 8px; padding: 8px 10px; font-size: .82rem; }
.cmp-in:focus { outline: none; border-color: var(--accent); }
.cmp-in::placeholder { color: #64748b; }
.cmp-lab { display: flex; flex-direction: column; gap: 4px; font-size: .74rem; color: #94a3b8; font-weight: 600; }
.cmp-fees { min-width: 260px; }
.cmp-list { display: flex; flex-direction: column; gap: 12px; }
.cmp-card { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: rgba(255,255,255,.02); }
.cmp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.cmp-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cmp-title strong { color: #fff; font-size: .95rem; }
.cmp-pill { font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; letter-spacing: .03em; text-transform: uppercase; }
.cmp-pill.running { color: #34d399; background: rgba(52,211,153,.14); }
.cmp-pill.paused { color: #94a3b8; background: rgba(148,163,184,.16); }
.cmp-pill.plat { color: #93c5fd; background: rgba(147,197,253,.12); text-transform: none; }
.cmp-pill.auto { color: #8fa8ff; background: rgba(42,75,215,.14); text-transform: none; border: 1px solid rgba(42,75,215,.35); }
.cmp-acts { display: flex; gap: 6px; }
.cmp-metrics { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .78rem; color: #94a3b8; margin-bottom: 8px; }
.cmp-metrics b { color: #e2e8f0; font-weight: 700; }
.cmp-metrics b.neg { color: #f87171; }
.cmp-costs { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .78rem; color: #94a3b8; padding: 8px 10px; border-radius: 8px; background: rgba(0,0,0,.22); margin-bottom: 8px; }
.cmp-costs b { color: #fbbf24; font-weight: 700; }
.cmp-sub { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .78rem; color: #94a3b8; margin-bottom: 10px; }
.cmp-sub b { color: #e2e8f0; font-weight: 700; }
.cmp-sub .pos { color: #34d399; font-weight: 700; }
.cmp-sub .neg { color: #f87171; font-weight: 700; }
.cmp-spend { display: grid; grid-template-columns: 130px 1fr 1.2fr auto; gap: 8px; align-items: end; }
.cmp-spend .cmp-in { height: 36px; }
@media (max-width: 900px) {
  .cmp-forms { grid-template-columns: 1fr; }
  .cmp-spend { grid-template-columns: 1fr 1fr; }
  .cmp-form-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .cmp-spend { grid-template-columns: 1fr; }
  .cmp-form-grid { grid-template-columns: 1fr; }
}
