:root {
  --ink: #17202a;
  --muted: #667085;
  --line: #e7eaf0;
  --soft: #f5f7fb;
  --primary: #0f7b6c;
  --primary-dark: #0a5d52;
  --accent: #f2a900;
  --danger: #e34b4b;
  --panel: #ffffff;
}

* {
  letter-spacing: 0;
}

body {
  color: var(--ink);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

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

.top-strip {
  background: #102a43;
  color: #fff;
  font-size: .875rem;
  min-height: 38px;
  padding: .32rem 0;
}

.top-strip-inner {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-height: 30px;
}

.top-strip-message {
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-strip-actions {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  flex-wrap: nowrap;
  gap: .55rem;
  justify-content: flex-end;
}

.top-help-link {
  border-right: 1px solid rgba(255, 255, 255, .24);
  line-height: 1;
  padding-right: .55rem;
  white-space: nowrap;
}

.top-utility-selector button {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 8px;
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1;
  min-height: 28px;
  padding: .2rem .5rem;
  white-space: nowrap;
}

.top-utility-selector button:hover,
.top-utility-selector button:focus {
  background: rgba(255, 255, 255, .2);
  border-color: rgba(255, 255, 255, .4);
  color: #fff;
}

.top-utility-selector .dropdown-menu {
  font-size: .9rem;
}

.site-header {
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  z-index: 1030;
}

.navbar-brand {
  align-items: center;
  color: var(--primary);
  display: inline-flex;
  gap: .55rem;
  font-size: 1.6rem;
  font-weight: 900;
  white-space: nowrap;
}

.brand-logo {
  display: block;
  height: 42px;
  max-width: 190px;
  object-fit: contain;
  width: auto;
}

.brand-word span {
  color: var(--ink);
}

.brand-mark {
  align-items: center;
  background: var(--primary);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 1rem;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.brand-word {
  color: var(--primary);
}

.user-chip {
  color: var(--primary);
  font-weight: 800;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-shell {
  max-width: 850px;
  border: 2px solid var(--primary);
  border-radius: 8px;
  overflow: visible;
  position: relative;
}

.search-shell .form-select,
.search-shell .form-control,
.search-shell .btn {
  border: 0;
  border-radius: 0;
}

.search-shell .form-select {
  max-width: 150px;
  background-color: #f8fafc;
}

.search-input-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
}

.search-suggest-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(22, 34, 31, .14);
  display: none;
  left: 0;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: calc(100% + .45rem);
  z-index: 1080;
}

.search-suggest-panel.is-open {
  display: block;
}

.suggestion-heading {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  padding: .65rem .85rem .35rem;
  text-transform: uppercase;
}

.suggestion-item {
  align-items: center;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem .85rem;
}

.suggestion-item:hover {
  background: var(--soft);
}

.suggestion-item small {
  color: var(--muted);
  font-weight: 800;
  text-transform: capitalize;
}

.mobile-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: .5rem;
  position: relative;
}

.mega-menu-wrap {
  position: static;
}

.mega-menu {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(22, 34, 31, .14);
  display: none;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  left: 50%;
  max-height: 70vh;
  max-width: 1080px;
  overflow-y: auto;
  padding: 1rem;
  transform: translateX(-50%);
  width: min(92vw, 1080px);
}

.mega-menu.show {
  display: grid;
}

.mega-menu section {
  display: grid;
  gap: .35rem;
}

.mega-menu a {
  border-radius: 8px;
  color: var(--muted);
  padding: .35rem .45rem;
}

.mega-menu a:hover {
  background: var(--soft);
  color: var(--primary-dark);
}

.mega-parent {
  color: var(--ink) !important;
  font-weight: 900;
}

.mega-parent span,
.mobile-category-drawer span {
  background: #edf7f5;
  border-radius: 999px;
  color: var(--primary);
  display: inline-grid;
  font-size: .72rem;
  font-weight: 900;
  height: 26px;
  margin-right: .35rem;
  place-items: center;
  width: 26px;
}

.mobile-category-drawer,
.mobile-search-drawer {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: .65rem;
}

.mobile-category-drawer summary,
.mobile-search-drawer summary {
  cursor: pointer;
  font-weight: 900;
  padding: .75rem .85rem;
}

.mobile-search-drawer summary {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.mobile-search-drawer summary::after {
  color: var(--primary);
  content: "+";
  font-size: 1.15rem;
  font-weight: 900;
}

.mobile-search-drawer[open] summary::after {
  content: "-";
}

.mobile-search-drawer .mobile-search {
  border-top: 1px solid var(--line);
  padding: .85rem;
}

.mobile-search-drawer .mobile-popular {
  border-top: 1px solid var(--line);
  margin-top: 0;
  padding: .75rem .85rem;
}

.mobile-category-drawer div {
  border-top: 1px solid var(--line);
  display: grid;
  gap: .25rem;
  max-height: 52vh;
  overflow-y: auto;
  padding: .65rem;
}

.mobile-category-drawer a {
  border-radius: 8px;
  padding: .45rem .5rem;
}

.mobile-category-drawer a.child {
  color: var(--muted);
  padding-left: 2.35rem;
}

.category-banner {
  aspect-ratio: 6 / 1.4;
  border-radius: 8px;
  display: block;
  margin-bottom: 1rem;
  object-fit: cover;
  width: 100%;
}

.category-admin-tree {
  display: grid;
  gap: .5rem;
}

.category-admin-tree article {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: .5rem;
  grid-template-columns: 42px minmax(0, 1fr) minmax(200px, auto);
  padding: .6rem 0 .6rem calc(var(--depth) * 1.4rem);
}

.category-admin-tree span {
  background: #edf7f5;
  border-radius: 50%;
  color: var(--primary);
  display: grid;
  font-size: .78rem;
  font-weight: 900;
  height: 34px;
  place-items: center;
  width: 34px;
}

.category-admin-tree small {
  color: var(--muted);
}

.homepage-category-picker {
  display: grid;
  gap: .55rem;
}

.homepage-category-picker label {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: .55rem;
  grid-template-columns: auto 38px minmax(0, 1fr) minmax(140px, auto);
  padding: .65rem .75rem .65rem calc(.75rem + (var(--depth) * 1.35rem));
}

.homepage-category-picker label span {
  background: #edf7f5;
  border-radius: 999px;
  color: var(--primary);
  display: grid;
  font-size: .76rem;
  font-weight: 900;
  height: 32px;
  place-items: center;
}

.homepage-category-picker label small {
  color: var(--muted);
  justify-self: end;
}

.mobile-search .search-input-wrap {
  grid-column: 1 / -1;
}

.mobile-search .btn {
  grid-column: 1 / -1;
}

.popular-searches {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
  padding: .35rem 0 .55rem;
}

.popular-searches .container-xl,
.mobile-popular {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .7rem;
}

.popular-searches span {
  color: var(--ink);
  font-weight: 800;
}

.popular-searches a {
  color: var(--primary-dark);
  font-weight: 700;
}

.utility-selector .nav-link {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .45rem .65rem;
}

.cart-link {
  white-space: nowrap;
}

.account-toggle {
  align-items: flex-start;
  display: inline-flex;
  flex-direction: column;
  gap: .05rem;
  line-height: 1.1;
  max-width: 190px;
}

.account-toggle span,
.account-toggle small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.account-toggle span {
  font-weight: 900;
}

.account-toggle small {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
}

.role-menu {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(22, 34, 31, .14);
  min-width: min(92vw, 620px);
  overflow: hidden;
  padding: 0;
}

.role-menu-head {
  align-items: center;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: .75rem;
  justify-content: space-between;
  padding: .85rem 1rem;
}

.role-menu-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-menu-head-actions {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: .65rem;
}

.role-menu-head-actions form {
  margin: 0;
}

.role-menu-head a,
.role-menu-head button {
  background: transparent;
  border: 0;
  color: var(--primary-dark);
  font-size: .85rem;
  font-weight: 900;
  padding: 0;
}

.role-menu-head button {
  color: var(--danger);
}

.role-menu-section {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: .75rem;
  grid-template-columns: 140px minmax(0, 1fr);
  padding: .85rem 1rem;
}

.role-menu-section > span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.role-menu-section > div {
  display: grid;
  gap: .35rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.role-menu .dropdown-item {
  border-radius: 8px;
  color: var(--ink);
  font-weight: 800;
  min-height: 36px;
  overflow: hidden;
  padding: .5rem .65rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-menu .dropdown-item:hover,
.role-menu .dropdown-item:focus {
  background: #edf7f5;
  color: var(--primary-dark);
}

.role-menu-logout {
  border-radius: 0 !important;
  color: var(--danger) !important;
  width: 100%;
}

.cart-expiry {
  background: #fff6d8;
  border: 1px solid #f2d27a;
  border-radius: 8px;
  color: #6f4a00;
  font-weight: 800;
  margin-bottom: 1rem;
  padding: .7rem .85rem;
}

.invoice-head,
.invoice-addresses {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.invoice-head {
  align-items: start;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

.invoice-addresses h3 {
  font-size: 1rem;
  font-weight: 900;
}

.invoice-addresses p,
.invoice-head p {
  margin: 0 0 .3rem;
}

.invoice-summary {
  margin-left: auto;
  margin-top: 1rem;
  max-width: 360px;
}

.mini-cart-menu {
  min-width: 320px;
  padding: .85rem;
}

.mini-cart-head,
.mini-cart-total,
.mini-cart-actions {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: .75rem;
}

.mini-cart-head span {
  color: var(--muted);
  font-size: .85rem;
  font-weight: 700;
}

.mini-cart-empty {
  color: var(--muted);
  margin: .75rem 0;
}

.mini-cart-item {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: .65rem;
  grid-template-columns: 54px minmax(0, 1fr);
  padding: .75rem 0;
}

.mini-cart-item img {
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  width: 54px;
}

.mini-cart-item strong {
  display: block;
  font-size: .9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-cart-item small {
  color: var(--muted);
  display: block;
  font-weight: 700;
  margin-top: .15rem;
}

.mini-cart-total {
  border-top: 1px solid var(--line);
  padding: .7rem 0;
}

.mini-cart-actions .btn {
  flex: 1;
}

.sell-button {
  white-space: nowrap;
}

.logo-preview {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: .85rem;
  padding: .75rem;
}

.logo-preview img {
  background: var(--soft);
  border-radius: 8px;
  height: 56px;
  object-fit: contain;
  padding: .35rem;
  width: 120px;
}

.logo-preview span {
  color: var(--muted);
  font-weight: 800;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #1b1b1b;
  font-weight: 700;
}

.form-control,
.form-select {
  border-color: #d9dee8;
  border-radius: 8px;
  color: var(--ink);
  min-height: 44px;
}

.form-control::placeholder {
  color: #8a94a6;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 .22rem rgba(15, 123, 108, .14);
}

.form-control:disabled,
.form-select:disabled,
.form-control[readonly] {
  background-color: #f1f4f8;
  color: #5f6b7a;
}

textarea.form-control {
  line-height: 1.5;
  min-height: 96px;
  resize: vertical;
}

input[type="file"].form-control {
  align-items: center;
  display: flex;
  height: auto;
  min-height: 48px;
  padding: .55rem;
}

.form-control-sm,
.form-select-sm {
  border-radius: 8px;
  min-height: 36px;
}

form label {
  color: #344054;
  font-weight: 800;
}

.required-mark {
  color: var(--danger);
  font-weight: 900;
  margin-left: .15rem;
}

.form-field-hint,
.form-error-hint {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  margin-top: .35rem;
}

.form-field-hint {
  color: var(--muted);
}

.form-error-hint {
  color: var(--danger);
}

.was-validated .form-control:invalid,
.was-validated .form-select:invalid,
.form-control.is-invalid,
.form-select.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 .2rem rgba(227, 75, 75, .12);
}

.password-field {
  position: relative;
}

.password-field .form-control {
  padding-right: 4.7rem;
}

.password-toggle {
  background: transparent;
  border: 0;
  color: var(--primary-dark);
  font-size: .82rem;
  font-weight: 900;
  min-height: 32px;
  padding: .25rem .5rem;
  position: absolute;
  right: .35rem;
  top: 50%;
  transform: translateY(-50%);
}

.password-toggle:focus {
  border-radius: 8px;
  outline: 2px solid rgba(15, 123, 108, .28);
  outline-offset: 1px;
}

.hero-band {
  background: linear-gradient(135deg, #e8f5f2 0%, #fff7df 100%);
  padding: 1.25rem 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 280px;
  gap: 1rem;
  align-items: stretch;
}

.category-rail,
.deal-panel,
.content-panel,
.filter-panel,
.summary-panel,
.auth-card,
.seller-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(16, 42, 67, .06);
}

.category-rail {
  padding: .85rem;
}

.rail-title {
  font-weight: 800;
  margin-bottom: .5rem;
}

.category-rail a {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: .6rem;
  font-size: .86rem;
  font-weight: 800;
  padding: .55rem;
  border-radius: 8px;
}

.category-rail a:hover {
  background: var(--soft);
}

.home-category-group {
  border-bottom: 1px solid var(--line);
}

.home-category-group summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: .6rem;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  list-style: none;
  padding: .55rem;
}

.home-category-group summary::-webkit-details-marker {
  display: none;
}

.home-category-group summary::after {
  color: var(--primary);
  content: "+";
  font-weight: 900;
  justify-self: end;
  line-height: 1;
}

.home-category-group[open] summary::after {
  content: "-";
}

.home-category-group summary small {
  margin-right: 0;
}

.home-category-group summary strong {
  font-size: .84rem;
  font-weight: 800;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-category-group div {
  display: grid;
  gap: .15rem;
  padding: 0 .35rem .5rem 2.55rem;
}

.category-rail .home-category-group div a {
  grid-template-columns: 1fr auto;
  font-size: .82rem;
  font-weight: 700;
  padding: .42rem .55rem;
}

.category-rail span {
  background: #edf7f5;
  color: var(--primary);
  border-radius: 50%;
  display: grid;
  height: 32px;
  place-items: center;
  width: 32px;
  font-size: .78rem;
  font-weight: 800;
}

.category-rail small {
  color: var(--muted);
}

.hero-copy {
  background: url("https://images.unsplash.com/photo-1556742502-ec7c0e9f34b1?auto=format&fit=crop&w=1600&q=80") center/cover;
  border-radius: 8px;
  color: #fff;
  min-height: 430px;
  padding: clamp(1.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}

.hero-copy::before {
  background: rgba(8, 31, 44, .68);
  content: "";
  inset: 0;
  position: absolute;
}

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

.hero-copy h1 {
  font-size: clamp(1.8rem, 3.8vw, 3.25rem);
  font-weight: 900;
  line-height: 1.08;
  max-width: 700px;
}

.hero-copy p {
  font-size: 1.08rem;
  max-width: 620px;
}

.eyebrow {
  color: var(--primary);
  display: inline-block;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: #a7f3d0;
}

.hero-actions,
.trust-strip,
.product-actions,
.detail-actions,
.store-actions,
.payment-options {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.hero-copy .hero-actions {
  margin-bottom: 1.35rem;
}

.trust-strip span {
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  color: inherit;
  padding: .45rem .75rem;
}

.deal-panel {
  padding: 1.25rem;
}

.deal-panel h2 {
  font-weight: 900;
}

.section-band,
.page-band,
.dashboard-band {
  padding: 2.5rem 0;
}

.muted {
  background: var(--soft);
}

.section-heading,
.page-title-row,
.dashboard-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-heading h2,
.page-title-row h1,
.dashboard-heading h1 {
  font-weight: 900;
  margin: 0;
}

.product-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover {
  box-shadow: 0 14px 36px rgba(16, 42, 67, .12);
  transform: translateY(-2px);
}

.product-image {
  aspect-ratio: 4 / 3;
  background: var(--soft);
  display: block;
  position: relative;
}

.product-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.product-badge-stack {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  left: .6rem;
  position: absolute;
  right: .6rem;
  top: .6rem;
}

.badge-sponsored,
.badge-delivery,
.badge-discount {
  position: static;
}

.badge-delivery {
  background: var(--primary);
}

.badge-discount {
  background: var(--danger);
}

.product-body {
  display: grid;
  gap: .45rem;
  min-width: 0;
  padding: .85rem;
}

.product-card-top {
  align-items: center;
  display: flex;
  gap: .5rem;
  justify-content: space-between;
}

.product-body h3 {
  font-size: 1rem;
  font-weight: 800;
  min-height: 2.6rem;
  margin: 0;
  overflow-wrap: anywhere;
}

.condition,
.verified,
.stock-pill {
  background: #edf7f5;
  border-radius: 999px;
  color: var(--primary);
  display: inline-block;
  font-size: .75rem;
  font-weight: 800;
  padding: .25rem .55rem;
}

.stock-pill {
  background: var(--soft);
  color: var(--muted);
  max-width: 52%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.verified {
  background: #fff6d8;
  color: #7a4d00;
}

.icon-btn {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  height: 32px;
  width: 32px;
}

.price-row {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.price-row strong,
.detail-price strong {
  color: var(--danger);
  font-size: 1.12rem;
}

.price-row span,
.detail-price span,
.rating-row,
.location-line,
.seller-line {
  color: var(--muted);
  font-size: .85rem;
}

.seller-line .verified {
  margin-left: .35rem;
}

.seller-line {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.price-row span,
.detail-price span {
  text-decoration: line-through;
}

.price-row em {
  color: var(--primary-dark);
  font-size: .78rem;
  font-style: normal;
  font-weight: 900;
}

.rating-row {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.pagination-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: center;
}

.search-console,
.search-discovery {
  margin-bottom: 1rem;
}

.search-console {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.search-console span {
  color: var(--muted);
  display: block;
  font-size: .88rem;
}

.search-discovery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.chip-row a {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--primary-dark);
  font-size: .85rem;
  font-weight: 800;
  padding: .35rem .65rem;
}

.saved-search-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: .75rem;
  justify-content: space-between;
  padding: .55rem 0;
}

.rating-stars {
  color: #9b6a00;
  font-weight: 900;
}

.seller-line,
.location-line {
  margin: 0;
}

.seller-attachment-fields {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .65rem .75rem;
}

.seller-attachment-fields summary {
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.seller-attachment-fields .form-control {
  margin-top: .65rem;
}

.product-actions {
  display: grid;
  gap: .45rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: .25rem;
}

.product-actions .btn,
.product-actions form {
  width: 100%;
}

.product-actions .btn {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 34px;
  white-space: nowrap;
}

.product-view-action {
  grid-column: span 1;
}

.product-utility-action .btn {
  background: #fff;
  color: var(--muted);
}

.location-grid,
.store-grid,
.metric-grid,
.module-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.location-grid a,
.store-card,
.metric-card,
.module-grid a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}

.store-card {
  display: grid;
  gap: .25rem;
}

.newsletter-band {
  background: #102a43;
  color: #fff;
  padding: 2rem 0;
}

.newsletter-band .container-xl {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.newsletter-band form {
  display: grid;
  grid-template-columns: minmax(220px, 360px) auto;
  gap: .5rem;
}

.promo-banner-strip {
  background: #fff;
  padding: 1.25rem 0;
}

.promo-banner-strip .container-xl {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.promo-banner-strip.inline-ad-strip {
  background: transparent;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 0 1rem;
}

.report-filter-form {
  margin-bottom: 1rem;
}

.report-filter-panel {
  margin-bottom: 1rem;
}

.report-filter-panel summary {
  color: var(--primary-dark);
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.report-filter-panel summary::-webkit-details-marker {
  display: none;
}

.report-filter-grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.report-toolbar {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: .85rem;
}

.report-toolbar strong {
  display: block;
}

.report-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: flex-end;
}

.report-mobile-card-list {
  margin-top: .75rem;
}

@media (min-width: 992px) {
  .report-filter-panel {
    position: sticky;
    top: 88px;
    z-index: 8;
  }
}

.promo-banner {
  align-items: end;
  aspect-ratio: 5 / 1.35;
  border-radius: 8px;
  color: #fff;
  display: flex;
  font-size: 1.35rem;
  font-weight: 900;
  overflow: hidden;
  padding: 1rem;
  position: relative;
}

.promo-banner img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.promo-banner::after {
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .68));
  content: "";
  inset: 0;
  position: absolute;
}

.promo-banner strong {
  position: relative;
  z-index: 1;
}

.flash-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.flash-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: .55rem;
  overflow: hidden;
}

.flash-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.flash-card span,
.flash-card strong {
  padding: 0 .8rem;
}

.flash-card strong {
  color: var(--danger);
  padding-bottom: .8rem;
}

.footer-band {
  background: #071923;
  color: #dce7ef;
  padding: 2.5rem 0 5rem;
}

.footer-band a {
  color: #dce7ef;
  display: block;
  margin: .3rem 0;
}

.bottom-nav {
  background: #fff;
  border-top: 1px solid var(--line);
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  left: 0;
  position: fixed;
  right: 0;
  z-index: 1030;
}

.bottom-nav a,
.bottom-nav button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--muted);
  display: flex;
  font-size: .8rem;
  justify-content: center;
  min-width: 0;
  padding: .65rem .25rem;
  text-align: center;
  width: 100%;
}

.bottom-nav a.is-active,
.bottom-nav button.is-active {
  background: #eaf6f1;
  color: var(--primary);
  font-weight: 900;
}

.seller-mobile-cta {
  display: none;
}

.whatsapp-float {
  background: #16a34a;
  border-radius: 999px;
  bottom: calc(4.85rem + env(safe-area-inset-bottom));
  box-shadow: 0 10px 24px rgba(16, 42, 67, .18);
  color: #fff;
  font-weight: 800;
  padding: .7rem 1rem;
  position: fixed;
  right: 1rem;
  z-index: 1020;
}

.admin-layout-body .whatsapp-float,
.admin-layout-body .bottom-nav,
.admin-layout-body .seller-mobile-cta {
  display: none !important;
}

.offline-page {
    min-height: 58vh;
    display: flex;
    align-items: center;
}

.offline-panel {
    max-width: 680px;
}

.listing-layout,
.product-detail,
.cart-layout,
.checkout-layout,
.seller-signup,
.admin-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 280px minmax(0, 1fr);
}

.product-detail {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 300px;
}

.cart-layout,
.checkout-layout,
.seller-signup,
.admin-grid {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.filter-panel,
.summary-panel,
.auth-card,
.seller-panel,
.content-panel {
  padding: 1.25rem;
}

.filter-panel label,
.auth-card label {
  display: block;
  font-weight: 800;
  margin-top: 1rem;
}

.filter-title-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.filter-title-row h2 {
  margin: 0;
}

.mobile-filter-trigger,
.filter-scrim {
  display: none;
}

.check-list {
  display: grid;
  gap: .4rem;
}

.check-list span {
  align-items: center;
  display: flex;
  gap: .45rem;
}

.filter-group {
  border-top: 1px solid var(--line);
  padding: .8rem 0;
}

.filter-group:first-of-type {
  border-top: 0;
}

.filter-group summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-weight: 900;
  justify-content: space-between;
  list-style: none;
}

.filter-group summary::-webkit-details-marker {
  display: none;
}

.filter-count {
  background: #eaf6f1;
  border: 1px solid #cce2da;
  border-radius: 999px;
  color: var(--primary);
  font-size: .72rem;
  font-weight: 900;
  min-width: 1.45rem;
  padding: .1rem .4rem;
  text-align: center;
}

.filter-group summary::after {
  color: var(--muted);
  content: "+";
  font-weight: 900;
}

.filter-group[open] summary::after {
  content: "-";
}

.filter-subtitle {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .04em;
  margin-top: 1rem;
  text-transform: uppercase;
}

.price-filter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}

.filter-actions {
  display: grid;
  gap: .6rem;
  margin-top: 1rem;
}

.result-bar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.filter-summary {
  color: var(--muted);
  display: block;
  font-size: .88rem;
}

.active-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: -.35rem 0 1rem;
}

.active-filter-chips a {
  align-items: center;
  background: #eef6f3;
  border: 1px solid #cce2da;
  border-radius: 999px;
  color: var(--primary);
  display: inline-flex;
  font-size: .82rem;
  font-weight: 800;
  gap: .4rem;
  padding: .38rem .65rem;
  text-decoration: none;
}

.active-filter-chips a span {
  color: var(--muted);
  font-weight: 900;
}

.active-filter-chips .clear-filter-chip {
  background: #fff;
  border-color: var(--line);
  color: var(--muted);
}

.empty-state {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  grid-column: 1 / -1;
  padding: 2rem;
  text-align: center;
}

.support-admin-item {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: .75rem;
  padding: 1rem 0;
}

.support-admin-item:last-child {
  border-bottom: 0;
}

.support-admin-item p {
  color: var(--muted);
  margin: .25rem 0 0;
}

.end-of-results {
  color: var(--muted);
  display: inline-block;
  font-weight: 700;
  padding: .75rem 1rem;
}

.list-mode {
  grid-template-columns: 1fr;
}

.list-mode .product-card {
  display: grid;
  grid-template-columns: 260px 1fr;
}

.breadcrumb-line {
  color: var(--muted);
  margin-bottom: 1rem;
}

.gallery-panel img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  transition: transform .2s ease;
  width: 100%;
}

.gallery-panel .zoomable-image:hover {
  transform: scale(1.04);
}

.thumb-row,
.tabs-lite {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .75rem;
}

.thumb-row button,
.tabs-lite button,
.qty-control button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .55rem .75rem;
}

.thumb-row [data-product-gallery-thumb] {
  display: grid;
  padding: .2rem;
  position: relative;
}

.thumb-row [data-product-gallery-thumb].is-active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(15, 123, 108, .16);
}

.thumb-row [data-product-gallery-thumb] img {
  aspect-ratio: 1;
  border-radius: 6px;
  height: 64px;
  object-fit: cover;
  width: 64px;
}

.thumb-row [data-product-gallery-thumb] span {
  background: rgba(16, 42, 67, .82);
  border-radius: 999px;
  bottom: .35rem;
  color: #fff;
  font-size: .68rem;
  font-weight: 900;
  padding: .1rem .35rem;
  position: absolute;
  right: .35rem;
}

.gallery-video-thumb {
  align-items: center;
  aspect-ratio: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--primary-dark);
  display: grid;
  font-size: .72rem;
  font-weight: 900;
  height: 70px;
  justify-items: center;
  padding: .35rem;
  text-align: center;
  text-decoration: none;
  width: 70px;
}

.gallery-video-thumb span {
  background: var(--soft);
  border-radius: 999px;
  padding: .18rem .45rem;
}

.tabs-lite {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .75rem;
}

.tabs-lite button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
  padding: .55rem .8rem;
}

.tabs-lite button.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.tab-panel[hidden] {
  display: none;
}

.vendor-profile-tabs {
  display: grid;
  gap: 1rem;
}

.vendor-tab-form {
  display: grid;
  gap: .85rem;
}

.support-intent-tabs {
  display: grid;
  gap: 1rem;
}

.support-intent-card-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0;
}

.support-intent-card-tabs button {
  align-content: start;
  display: grid;
  gap: .35rem;
  min-height: 118px;
  padding: .9rem;
  text-align: left;
}

.support-intent-card-tabs button span {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.support-intent-card-tabs button strong {
  font-size: 1rem;
}

.support-intent-card-tabs button small {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.35;
}

.support-intent-card-tabs button.is-active span,
.support-intent-card-tabs button.is-active small {
  color: rgba(255, 255, 255, .82);
}

.support-intent-form {
  max-width: 720px;
}

.content-tool-list {
  display: grid;
  gap: 1rem;
}

.content-tool-card-list {
  display: grid;
  gap: .85rem;
}

.content-tool-card-list.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-tool-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: .85rem;
  padding: 1rem;
}

.content-tool-card.compact {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
}

.content-tool-card h3 {
  font-size: 1rem;
  font-weight: 900;
  margin: .35rem 0 .2rem;
}

.content-tool-card p {
  color: var(--muted);
  margin: 0;
}

.content-tool-create,
.content-tool-editor {
  border: 1px solid var(--line);
  border-radius: 8px;
}

.content-tool-create {
  display: grid;
  gap: 1rem;
}

.content-tool-create > summary,
.content-tool-editor > summary {
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.content-tool-create > summary::-webkit-details-marker,
.content-tool-editor > summary::-webkit-details-marker {
  display: none;
}

.content-tool-editor {
  background: var(--soft);
  padding: .8rem;
}

.content-tool-editor .admin-form,
.content-tool-create .admin-form {
  display: grid;
  gap: .75rem;
  margin-top: .75rem;
}

.rich-description {
  color: #26323f;
  font-size: 1rem;
  line-height: 1.75;
}

.rich-description p,
.rich-description blockquote {
  align-items: initial;
  border-bottom: 0;
  display: block;
  justify-content: initial;
  margin: 0 0 .9rem;
  padding-bottom: 0;
}

.rich-description h2,
.rich-description h3,
.rich-description h4 {
  color: var(--ink);
  font-weight: 900;
  margin: 1rem 0 .45rem;
}

.rich-description h2 {
  font-size: 1.35rem;
}

.rich-description h3 {
  font-size: 1.15rem;
}

.rich-description h4 {
  font-size: 1rem;
}

.rich-description ul,
.rich-description ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.rich-description li {
  margin-bottom: .35rem;
}

.rich-description blockquote {
  background: var(--soft);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
  padding: .85rem 1rem;
}

.rich-description a {
  color: var(--primary-dark);
  font-weight: 800;
  text-decoration: underline;
}

.spec-table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: auto;
}

.spec-table {
  background: #fff;
  border-collapse: collapse;
  min-width: 560px;
  width: 100%;
}

.spec-table th,
.spec-table td {
  border-bottom: 1px solid var(--line);
  padding: .8rem .95rem;
  text-align: left;
  vertical-align: top;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: 0;
}

.spec-table th {
  background: var(--soft);
  color: var(--ink);
  font-size: .88rem;
  font-weight: 900;
  width: 32%;
}

.spec-table td {
  color: var(--muted);
  font-weight: 700;
}

.rich-editor-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.rich-editor-wrap textarea.form-control {
  border: 0;
  border-radius: 0;
  min-height: 190px;
  resize: vertical;
}

.rich-editor-toolbar {
  align-items: center;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  padding: .45rem;
}

.rich-editor-toolbar button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 900;
  min-height: 32px;
  min-width: 36px;
  padding: .25rem .55rem;
}

.rich-editor-toolbar button:hover,
.rich-editor-toolbar button:focus {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.spec-editor {
  font-family: Consolas, "Courier New", monospace;
  line-height: 1.6;
}

.detail-panel h1 {
  font-weight: 900;
}

.detail-price {
  display: flex;
  gap: .75rem;
  margin: .75rem 0;
}

.detail-price strong {
  font-size: 2rem;
}

.product-commerce-card,
.seller-trust-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: .55rem;
  margin: 1rem 0;
  padding: .85rem;
}

.product-commerce-card p,
.seller-trust-card p {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: .75rem;
  justify-content: space-between;
  margin: 0;
  padding-bottom: .5rem;
}

.product-commerce-card p span,
.seller-trust-card p span {
  color: var(--muted);
}

.product-commerce-card p strong,
.seller-trust-card p strong {
  text-align: right;
}

.product-commerce-card p:last-child,
.seller-trust-card p:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.product-buy-box {
  align-items: end;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(16, 42, 67, .08);
  display: grid;
  gap: .85rem;
  padding: .85rem;
  position: sticky;
  top: 112px;
  z-index: 3;
}

.buy-box-heading {
  display: grid;
  gap: .15rem;
}

.buy-box-heading span,
.buy-box-heading small,
.product-mobile-buy-bar small {
  color: var(--muted);
}

.buy-box-heading span {
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.buy-box-heading strong {
  color: var(--primary-dark);
  font-size: 1.35rem;
  line-height: 1.1;
}

.buy-box-heading small,
.product-mobile-buy-bar small {
  font-size: .78rem;
}

.buy-box-controls {
  align-items: end;
  display: grid;
  gap: .75rem;
  grid-template-columns: 130px minmax(0, 1fr) minmax(0, 1fr);
}

.buy-box-controls form,
.buy-box-controls .btn,
.product-secondary-actions form,
.product-secondary-actions .btn {
  width: 100%;
}

.product-secondary-actions {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-quantity-control {
  display: grid;
  gap: .35rem;
  min-width: 130px;
}

.product-quantity-control span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-mobile-buy-bar {
  display: none;
}

.seller-panel {
  display: grid;
  align-content: start;
  gap: .75rem;
  position: sticky;
  top: 120px;
}

.store-hero {
  background: #102a43;
  background-position: center;
  background-size: cover;
  color: #fff;
  padding: 2.5rem 0;
}

.store-hero .container-xl {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.store-identity {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: auto minmax(0, 1fr);
}

.store-logo {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 8px;
  height: 96px;
  object-fit: contain;
  padding: .5rem;
  width: 96px;
}

.store-identity h1 {
  font-weight: 900;
  margin: 0;
}

.store-identity p {
  color: rgba(255, 255, 255, .86);
  max-width: 760px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

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

.store-facts h2 {
  font-size: 1.15rem;
  font-weight: 900;
}

.check-grid {
  display: grid;
  gap: .5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.check-grid label {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: .5rem;
  padding: .6rem .75rem;
}

.cart-item {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 1rem;
  grid-template-columns: 120px 1fr 130px auto;
  margin-bottom: 1rem;
  padding: 1rem;
}

.cart-item img {
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.cart-item h2 {
  font-size: 1rem;
  font-weight: 900;
}

.qty-control {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
}

.qty-control input {
  border: 1px solid var(--line);
  min-width: 0;
  text-align: center;
}

.summary-panel {
  align-self: start;
  display: grid;
  gap: .8rem;
  position: sticky;
  top: 110px;
}

.summary-panel p,
.content-panel p {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .6rem;
}

.checkout-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

.checkout-step-nav {
  display: grid;
  gap: .5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.checkout-step-nav a {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  display: flex;
  font-weight: 900;
  gap: .5rem;
  padding: .65rem;
  text-decoration: none;
}

.checkout-step-nav a.is-active {
  background: #edf7f5;
  border-color: rgba(15, 123, 108, .45);
  box-shadow: 0 10px 24px rgba(16, 42, 67, .08);
  color: var(--primary-dark);
}

.checkout-step-nav a.is-complete span,
.checkout-step[data-step-state="complete"] > summary span {
  background: #1f7a4d;
}

.checkout-step-nav span,
.checkout-step > summary span {
  background: var(--primary);
  border-radius: 999px;
  color: #fff;
  display: inline-grid;
  font-size: .78rem;
  font-weight: 900;
  height: 28px;
  place-items: center;
  width: 28px;
}

.checkout-step {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: .85rem;
  padding: 1rem;
}

.checkout-step > summary,
.checkout-summary-panel > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-weight: 900;
  gap: .6rem;
  justify-content: space-between;
  list-style: none;
}

.checkout-step > summary {
  justify-content: flex-start;
}

.checkout-step > summary::-webkit-details-marker,
.checkout-summary-panel > summary::-webkit-details-marker {
  display: none;
}

.checkout-step[open] > summary {
  margin-bottom: .85rem;
}

.checkout-step-actions {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: .75rem;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
}

.checkout-step-actions span {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
}

.checkout-review-list {
  display: grid;
  gap: .6rem;
}

.checkout-form h2 {
  font-size: 1.2rem;
  font-weight: 900;
  margin: 1rem 0 .15rem;
}

.admin-form > h2,
.checkout-form > h2 {
  color: var(--ink);
}

.admin-form > h2:not(:first-child),
.checkout-form > h2:not(:first-child) {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.payment-options label {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  gap: .55rem;
  min-height: 48px;
  padding: .75rem;
}

.payment-options label:hover,
.payment-options label:focus-within {
  border-color: rgba(15, 123, 108, .4);
  box-shadow: 0 8px 22px rgba(16, 42, 67, .08);
}

.payment-options label:has(input:checked),
.check-grid label:has(input:checked),
.inline-check:has(input:checked),
.terms-line:has(input:checked) {
  background: #edf7f5;
  border-color: rgba(15, 123, 108, .45);
  color: var(--primary-dark);
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--primary);
  flex: 0 0 auto;
  min-height: 1rem;
  min-width: 1rem;
}

.reward-row,
.vendor-split-preview {
  display: grid;
  gap: .6rem;
}

.reward-row {
  align-items: center;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
}

.reward-row span,
.vendor-split-preview h3 {
  color: var(--muted);
  font-size: .9rem;
  margin: 0;
}

.vendor-split-preview {
  border-top: 1px solid var(--line);
  margin-top: 1rem;
  padding-top: 1rem;
}

.terms-line {
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: .55rem;
  margin-top: 1rem;
  padding: .75rem;
}

.checkout-summary-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  max-height: calc(100dvh - 130px);
  overflow: auto;
}

.auth-band {
  background: var(--soft);
  display: grid;
  min-height: 640px;
  place-items: center;
  padding: 2rem 1rem;
}

.auth-card {
  display: grid;
  gap: .75rem;
  max-width: 460px;
  width: 100%;
}

.auth-card h1 {
  font-weight: 900;
}

.auth-card p {
  margin: 0;
}

.account-summary-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: .25rem;
  padding: .85rem;
}

.account-summary-card strong {
  color: var(--primary-dark);
}

.account-summary-card span {
  color: var(--muted);
  font-size: .9rem;
  overflow-wrap: anywhere;
}

.dashboard-band {
  background: var(--soft);
}

.metric-card span {
  color: var(--muted);
  display: block;
  font-size: .85rem;
}

.metric-card strong {
  display: block;
  font-size: 1.45rem;
  margin-top: .35rem;
}

.priority-metric-card {
  color: inherit;
  text-decoration: none;
}

.priority-metric-card:hover,
.priority-metric-card:focus {
  border-color: rgba(15, 123, 108, .35);
  box-shadow: 0 12px 28px rgba(16, 42, 67, .08);
  color: inherit;
}

.admin-priority-metrics .priority-metric-card {
  border-left: 4px solid var(--primary);
}

.admin-secondary-analytics {
  display: block;
}

.admin-secondary-analytics summary {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  font-weight: 900;
  justify-content: space-between;
  list-style: none;
  padding: .85rem 1rem;
}

.admin-secondary-analytics summary::-webkit-details-marker {
  display: none;
}

.admin-secondary-analytics summary::after {
  content: "+";
  font-size: 1.1rem;
}

.admin-secondary-analytics[open] summary::after {
  content: "-";
}

.section-heading.compact {
  margin-bottom: 1rem;
}

.revenue-chart {
  align-items: end;
  display: grid;
  gap: .5rem;
  grid-template-columns: repeat(auto-fit, minmax(28px, 1fr));
  min-height: 180px;
}

.revenue-bar {
  align-items: center;
  display: grid;
  gap: .45rem;
  grid-template-rows: 140px auto;
}

.revenue-bar span {
  align-self: end;
  background: linear-gradient(180deg, var(--accent), var(--primary));
  border-radius: 6px 6px 0 0;
  display: block;
  min-height: 8px;
  width: 100%;
}

.revenue-bar small {
  color: var(--muted);
  font-size: .72rem;
  text-align: center;
}

.dashboard-table {
  display: grid;
  gap: .75rem;
  overflow-x: auto;
}

.dashboard-table > * {
  border-bottom: 1px solid var(--line);
  padding-bottom: .65rem;
}

.product-performance,
.vendor-performance,
.recent-activity-table {
  grid-template-columns: minmax(180px, 1fr) 100px 130px 110px;
}

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

.module-section-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.module-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .85rem;
}

.module-section h3 {
  color: var(--primary-dark);
  font-size: .9rem;
  font-weight: 900;
  margin: 0 0 .65rem;
  text-transform: uppercase;
}

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

.module-grid a {
  align-items: center;
  display: flex;
  font-weight: 900;
  justify-content: space-between;
  min-height: 54px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.module-grid a::after {
  color: var(--primary);
  content: "›";
  font-size: 1.35rem;
  line-height: 1;
}

.module-grid a:hover,
.module-grid a:focus {
  border-color: rgba(15, 123, 108, .35);
  box-shadow: 0 12px 28px rgba(16, 42, 67, .1);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.admin-form {
  display: grid;
  gap: .75rem;
}

.admin-form .btn,
.checkout-form .btn,
.auth-card .btn {
  min-height: 42px;
}

.admin-form .form-control,
.admin-form .form-select,
.checkout-form .form-control,
.checkout-form .form-select,
.auth-card .form-control,
.auth-card .form-select {
  width: 100%;
}

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

.status-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: .5rem;
  grid-template-columns: 1fr 140px auto;
  padding: .65rem 0;
}

.admin-table {
  display: grid;
  gap: .6rem .75rem;
  grid-template-columns: minmax(220px, 1fr) 180px 130px 110px;
  overflow-x: auto;
}

.admin-table > * {
  border-bottom: 1px solid var(--line);
  padding-bottom: .5rem;
}

.content-panel p > span + strong,
.content-panel p > strong + span,
.content-panel p > strong + a,
.content-panel p > a + strong,
.admin-table > strong + span,
.admin-table > span + strong {
  margin-left: .4rem;
}

.order-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.order-item {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  padding: .75rem 0;
}

.order-item img {
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.order-item h3 {
  font-size: 1rem;
  font-weight: 900;
}

.timeline p {
  align-items: start;
  display: grid;
  gap: .75rem;
  grid-template-columns: 180px 140px 1fr;
}

.orders-table {
  display: grid;
  gap: .75rem;
  grid-template-columns: 150px minmax(160px, 1fr) 120px 140px 140px 160px;
  overflow-x: auto;
}

.orders-table.vendor {
  grid-template-columns: 150px 80px 140px 140px 160px;
}

.payments-table {
  display: grid;
  gap: .75rem;
  grid-template-columns: 170px 150px 120px 130px 130px 180px;
  overflow-x: auto;
}

.payment-reconciliation-grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.payment-reconciliation-grid article {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: .25rem;
  padding: .85rem;
}

.payment-reconciliation-grid span,
.payment-reconciliation-grid small {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}

.payment-reconciliation-grid strong {
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
}

.deliveries-table {
  display: grid;
  gap: .75rem;
  grid-template-columns: 150px 150px 120px 160px 150px 190px;
  overflow-x: auto;
}

.vendors-table {
  display: grid;
  gap: .75rem;
  grid-template-columns: 180px 170px 130px 130px 80px 190px;
  overflow-x: auto;
}

.saved-grid {
  display: grid;
  gap: 1rem;
}

.saved-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 1rem;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  padding: 1rem;
}

.saved-card img {
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.saved-card h2 {
  font-size: 1rem;
  font-weight: 900;
}

.saved-actions,
.inline-settings {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.inline-settings {
  margin-top: .75rem;
}

.inline-settings label {
  color: var(--muted);
  font-size: .88rem;
}

.share-input {
  max-width: 360px;
}

.compare-table {
  display: grid;
  gap: .75rem;
  grid-template-columns: minmax(180px, 1.5fr) 120px 110px 110px 80px 150px 90px;
  overflow-x: auto;
}

.comparison-matrix {
  display: grid;
  gap: .75rem;
  grid-template-columns: 150px repeat(var(--compare-cols), minmax(180px, 1fr));
  min-width: 720px;
  overflow-x: auto;
}

.comparison-matrix > * {
  border-bottom: 1px solid var(--line);
  padding-bottom: .75rem;
}

.comparison-matrix img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  display: block;
  margin-bottom: .5rem;
  object-fit: cover;
  width: 100%;
}

.messages-table {
  display: grid;
  gap: .75rem;
  grid-template-columns: minmax(200px, 1fr) 140px 160px 160px 170px;
  overflow-x: auto;
}

.promo-admin-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.promo-table {
  display: grid;
  gap: .75rem;
  grid-template-columns: 120px 130px 120px 190px 190px;
  overflow-x: auto;
}

.promo-table > * {
  border-bottom: 1px solid var(--line);
  padding-bottom: .65rem;
}

.marketing-table,
.abandoned-cart-table {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  overflow-x: auto;
}

.marketing-table > *,
.abandoned-cart-table > * {
  border-bottom: 1px solid var(--line);
  padding-bottom: .65rem;
}

.report-link-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.report-link-grid a {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: .3rem;
  padding: 1rem;
}

.report-link-grid span {
  color: var(--muted);
  font-size: .88rem;
}

.cms-body {
  font-size: 1rem;
  line-height: 1.8;
}

.cms-heading {
  align-items: flex-start;
}

.cms-heading p {
  color: var(--muted);
  margin: .35rem 0 0;
  max-width: 720px;
}

.cms-heading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: flex-end;
}

.cms-stat-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.cms-stat-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}

.cms-stat-grid span {
  color: var(--muted);
  display: block;
  font-size: .85rem;
  font-weight: 800;
}

.cms-stat-grid strong {
  display: block;
  font-size: 1.5rem;
  margin-top: .25rem;
}

.cms-required-grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cms-required-grid a {
  align-content: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: .2rem;
  min-height: 78px;
  padding: .85rem;
}

.cms-required-grid a:hover,
.cms-required-grid a:focus {
  background: #edf7f5;
  border-color: rgba(15, 123, 108, .35);
  color: var(--primary-dark);
}

.cms-required-grid strong {
  font-size: .95rem;
}

.cms-required-grid span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cms-editor-layout {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
}

.cms-create-form {
  position: sticky;
  top: 130px;
}

.cms-page-panel {
  min-width: 0;
}

.cms-page-list {
  display: grid;
  gap: 1rem;
}

.cms-page-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}

.cms-page-card-head,
.cms-card-actions {
  align-items: flex-start;
  display: flex;
  gap: .75rem;
  justify-content: space-between;
}

.cms-page-card-head {
  border-bottom: 1px solid var(--line);
  margin-bottom: .85rem;
  padding-bottom: .85rem;
}

.cms-page-card-head h3 {
  font-size: 1.08rem;
  font-weight: 900;
  margin: .35rem 0 .15rem;
}

.cms-page-card-head p {
  border: 0;
  color: var(--muted);
  display: block;
  font-size: .82rem;
  margin: 0;
  padding: 0;
}

.status-pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: .74rem;
  font-weight: 900;
  padding: .22rem .55rem;
}

.status-pill.published {
  background: #edf7f5;
  color: var(--primary-dark);
}

.status-pill.draft {
  background: #fff6d8;
  color: #7a4d00;
}

.cms-form-row {
  display: grid;
  gap: .75rem;
  grid-template-columns: minmax(180px, 1.2fr) minmax(160px, 1fr) minmax(120px, .55fr);
}

.cms-page-edit-form label {
  display: grid;
  gap: .35rem;
}

.cms-page-edit-form label span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
}

.cms-card-actions {
  align-items: center;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  margin-top: .25rem;
  padding-top: .85rem;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: .85rem 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-item p {
  color: var(--muted);
  margin: .7rem 0 0;
}

.blog-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.generic-report-table {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(var(--cols), minmax(140px, 1fr));
  overflow-x: auto;
}

.generic-report-table > * {
  border-bottom: 1px solid var(--line);
  padding-bottom: .65rem;
}

.inventory-table,
.stock-history-table {
  display: grid;
  gap: .75rem;
  overflow-x: auto;
}

.inventory-table {
  grid-template-columns: minmax(180px, 1fr) 150px 120px 150px minmax(260px, 1.2fr);
}

.vendor-inventory-table {
  grid-template-columns: minmax(220px, 1fr) 170px 130px minmax(280px, 1.25fr);
}

.stock-history-table {
  grid-template-columns: 150px minmax(180px, 1fr) 90px 90px 90px 140px 160px 140px;
}

.inventory-table > *,
.stock-history-table > * {
  border-bottom: 1px solid var(--line);
  padding-bottom: .65rem;
}

.inventory-adjust-form {
  display: grid;
  gap: .45rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.inventory-workspace .dashboard-heading p,
.inventory-upload-panel > div > p {
  color: var(--muted);
  margin: .35rem 0 0;
  max-width: 760px;
}

.inventory-upload-panel {
  align-items: end;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
}

.dashboard-band .content-panel > summary {
  color: var(--primary-dark);
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.dashboard-band .content-panel > summary::-webkit-details-marker {
  display: none;
}

.inventory-upload-panel > summary {
  grid-column: 1 / -1;
}

.inventory-upload-panel .admin-form {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .85rem;
}

.inventory-empty-state {
  grid-column: 1 / -1;
}

.inventory-setup-panel {
  display: grid;
  gap: .75rem;
  max-width: 760px;
}

.inventory-setup-panel h2 {
  font-weight: 900;
  margin: 0;
}

.inventory-setup-panel p {
  border: 0;
  color: var(--muted);
  display: block;
  margin: 0;
  padding: 0;
}

.vendor-inventory-page .metric-grid {
  margin-bottom: 1rem;
}

.vendor-inventory-page .content-panel {
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(16, 42, 67, .06);
}

.vendor-inventory-page .inventory-table {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}

.vendor-inventory-page .inventory-upload-panel {
  align-items: start;
  background: #fff;
}

.vendor-inventory-page .inventory-upload-panel .admin-form,
.vendor-inventory-page .inventory-adjust-form {
  background: #f8fbfa;
}

.vendor-inventory-page .stock-history-table {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}

.vendor-workspace-nav,
.customer-workspace-nav,
.delivery-workspace-nav {
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(16, 42, 67, .05);
}

.vendor-workspace-nav .container-xl,
.customer-workspace-nav .container-xl,
.delivery-workspace-nav .container-xl {
  display: flex;
  gap: .4rem;
  overflow-x: auto;
  padding-bottom: .5rem;
  padding-top: .5rem;
}

.vendor-workspace-nav a,
.customer-workspace-nav a,
.delivery-workspace-nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  flex: 0 0 auto;
  font-size: .86rem;
  font-weight: 900;
  padding: .45rem .75rem;
  white-space: nowrap;
}

.vendor-workspace-nav a:hover,
.vendor-workspace-nav a:focus,
.vendor-workspace-nav a.is-active,
.customer-workspace-nav a:hover,
.customer-workspace-nav a:focus,
.customer-workspace-nav a.is-active,
.delivery-workspace-nav a:hover,
.delivery-workspace-nav a:focus,
.delivery-workspace-nav a.is-active {
  background: #edf7f5;
  border-color: rgba(15, 123, 108, .32);
  color: var(--primary-dark);
}

.vendor-dashboard .dashboard-heading p {
  color: var(--muted);
  margin: .35rem 0 0;
  max-width: 680px;
}

.vendor-hub-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.vendor-hub-grid a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: .35rem;
  min-height: 116px;
  padding: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.vendor-hub-grid a:hover,
.vendor-hub-grid a:focus {
  border-color: rgba(15, 123, 108, .34);
  box-shadow: 0 12px 28px rgba(16, 42, 67, .1);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.vendor-hub-grid strong {
  font-size: 1rem;
  font-weight: 900;
}

.vendor-hub-grid span {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.45;
}

.customer-dashboard .dashboard-heading p,
.customer-orders-page .dashboard-heading p,
.customer-wishlist-page .dashboard-heading p,
.customer-compare-page .dashboard-heading p,
.customer-wallet-page .dashboard-heading p,
.customer-messages-page .dashboard-heading p,
.customer-support-page .dashboard-heading p {
  color: var(--muted);
  margin: .35rem 0 0;
  max-width: 720px;
}

.customer-priority-actions {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 1.15rem 0 1rem;
}

.customer-priority-card {
  background: #fff;
  border: 1px solid rgba(15, 123, 108, .24);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(16, 42, 67, .07);
  color: var(--text);
  display: grid;
  gap: .45rem;
  min-height: 154px;
  padding: 1.1rem;
  text-decoration: none;
}

.customer-priority-card.is-primary {
  background: linear-gradient(135deg, #0f7b6c, #102a43);
  border-color: transparent;
  color: #fff;
}

.customer-priority-card.needs-action {
  border-color: rgba(194, 65, 12, .34);
  box-shadow: 0 14px 34px rgba(194, 65, 12, .11);
}

.customer-priority-card:hover,
.customer-priority-card:focus {
  border-color: rgba(15, 123, 108, .48);
  color: var(--primary-dark);
}

.customer-priority-card span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.customer-priority-card.is-primary span,
.customer-priority-card.is-primary small {
  color: rgba(255, 255, 255, .82);
}

.customer-priority-card strong {
  font-size: 1.08rem;
  font-weight: 900;
}

.customer-priority-card small {
  color: var(--muted);
  line-height: 1.45;
}

.customer-priority-card form {
  align-self: end;
  margin: 0;
}

.customer-priority-card .btn {
  justify-self: start;
}

.customer-hub-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.customer-secondary-actions {
  margin-top: 1.25rem;
}

.customer-hub-grid a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: .35rem;
  min-height: 108px;
  padding: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.customer-hub-grid a:hover,
.customer-hub-grid a:focus {
  border-color: rgba(15, 123, 108, .34);
  box-shadow: 0 12px 28px rgba(16, 42, 67, .1);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.customer-hub-grid strong {
  font-size: 1rem;
  font-weight: 900;
}

.customer-hub-grid span {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.45;
}

.dashboard-band .order-card-grid .content-panel,
.dashboard-band .saved-card,
.dashboard-band .support-admin-item,
.dashboard-band .chat-bubble {
  box-shadow: 0 10px 30px rgba(16, 42, 67, .06);
}

.dashboard-band .order-card-grid .content-panel {
  display: grid;
  gap: .6rem;
}

.dashboard-band .order-card-grid .content-panel h2,
.dashboard-band .saved-card h2 {
  font-size: 1.05rem;
  margin: 0;
}

.dashboard-band .saved-card {
  align-items: start;
}

.dashboard-band .saved-card > div {
  min-width: 0;
}

.dashboard-band .saved-card p {
  border: 0;
  color: var(--muted);
  display: block;
  margin: .25rem 0 .35rem;
  padding: 0;
}

.dashboard-band .saved-card strong {
  color: var(--danger);
}

.dashboard-band .saved-actions .btn,
.dashboard-band .inline-settings .btn {
  width: 100%;
}

.dashboard-band .comparison-matrix {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .25rem;
}

.dashboard-band .comparison-matrix > * {
  align-content: center;
  padding: .75rem;
}

.dashboard-band .comparison-matrix > strong {
  background: var(--soft);
  color: #475467;
  font-size: .78rem;
  text-transform: uppercase;
}

.dashboard-band .messages-table a {
  font-weight: 900;
}

.dashboard-band .chat-start-form,
.dashboard-band .report-chat-form {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .85rem;
}

.delivery-agent-page .dashboard-heading p,
.delivery-admin-page .dashboard-heading p,
.delivery-zones-page .dashboard-heading p {
  color: var(--muted);
  margin: .35rem 0 0;
  max-width: 760px;
}

.delivery-task-card {
  display: grid;
  gap: 1rem;
}

.delivery-work-panel,
.delivery-secondary-grid {
  margin-top: 1.25rem;
}

.delivery-priority-metrics .metric-card {
  border-left: 4px solid var(--primary);
}

.delivery-money-panel {
  border-left: 4px solid var(--accent);
}

.delivery-money-grid .metric-card {
  background: #fffdf7;
}

.delivery-route-grid {
  align-items: start;
}

.delivery-task-head {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.delivery-task-head h2 {
  font-size: 1.08rem;
  margin: 0;
}

.delivery-task-head span {
  color: var(--muted);
  display: block;
  font-size: .86rem;
  font-weight: 800;
  margin-top: .2rem;
}

.delivery-task-head > strong {
  background: #edf7f5;
  border: 1px solid rgba(15, 123, 108, .24);
  border-radius: 999px;
  color: var(--primary-dark);
  flex: 0 0 auto;
  font-size: .78rem;
  padding: .35rem .7rem;
}

.delivery-task-details {
  display: grid;
  gap: .65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.delivery-task-details.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.delivery-task-details p {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: .15rem;
  margin: 0;
  padding: .75rem;
}

.delivery-task-details span {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.delivery-form-grid {
  display: grid;
  gap: .65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.delivery-update-form {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .85rem;
}

.delivery-update-form.compact {
  gap: .7rem;
}

.delivery-quick-update {
  display: grid;
  gap: .65rem;
  grid-template-columns: minmax(150px, .8fr) minmax(0, 1fr) auto;
}

.delivery-card-tools {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .75rem;
}

.delivery-card-tools summary,
.delivery-setup-panel > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  list-style: none;
}

.delivery-card-tools summary::-webkit-details-marker,
.delivery-setup-panel > summary::-webkit-details-marker {
  display: none;
}

.delivery-card-tools summary {
  color: var(--primary-dark);
  font-weight: 900;
}

.delivery-card-tools summary::after,
.delivery-setup-panel > summary::after {
  color: var(--primary);
  content: "+";
  font-size: 1.15rem;
  font-weight: 900;
}

.delivery-card-tools[open] summary::after,
.delivery-setup-panel[open] > summary::after {
  content: "-";
}

.delivery-card-tools .delivery-form-grid,
.delivery-card-tools textarea,
.delivery-card-tools form {
  margin-top: .75rem;
}

.delivery-card-tools.danger summary {
  color: #9f1239;
}

.delivery-admin-page .section-head {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.delivery-agent-page .section-head {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.delivery-admin-page .section-head h2 {
  font-size: 1.15rem;
  margin: 0;
}

.delivery-agent-page .section-head h2 {
  font-size: 1.15rem;
  margin: 0;
}

.delivery-admin-page .section-head p,
.delivery-agent-page .section-head p {
  color: var(--muted);
  margin: .2rem 0 0;
}

.delivery-agency-grid {
  align-items: start;
}

.delivery-agency-form {
  gap: .85rem;
}

.delivery-setup-panel {
  display: block;
}

.delivery-setup-panel > summary {
  margin: -.25rem 0;
}

.delivery-setup-panel > summary span {
  display: grid;
  gap: .2rem;
}

.delivery-setup-panel > summary strong {
  color: var(--primary-dark);
  font-size: 1.05rem;
}

.delivery-setup-panel > summary small {
  color: var(--muted);
  font-weight: 700;
}

.delivery-setup-panel > summary em {
  background: #edf7f5;
  border: 1px solid rgba(15, 123, 108, .24);
  border-radius: 999px;
  color: var(--primary-dark);
  font-style: normal;
  font-weight: 900;
  padding: .35rem .75rem;
}

.delivery-setup-panel[open] > summary {
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

.delivery-summary-panel {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}

.delivery-summary-panel p {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 0;
  padding: .65rem 0;
}

.delivery-summary-panel p:last-child {
  border-bottom: 0;
}

.delivery-summary-panel span {
  color: var(--muted);
  font-weight: 800;
}

.delivery-route-summary-panel .section-head {
  margin-bottom: .8rem;
}

.delivery-route-preview {
  align-self: start;
}

.delivery-route-block {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: .55rem;
  padding: .85rem 0;
}

.delivery-route-block:first-of-type {
  padding-top: 0;
}

.delivery-route-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.delivery-route-block > strong {
  color: var(--primary-dark);
}

.delivery-route-block > span {
  color: var(--muted);
  font-weight: 800;
}

.delivery-route-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.delivery-route-chip-list span {
  background: #edf7f5;
  border: 1px solid rgba(15, 123, 108, .22);
  border-radius: 999px;
  color: var(--primary-dark);
  font-size: .82rem;
  font-weight: 900;
  padding: .32rem .65rem;
}

.delivery-secondary-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
}

.delivery-section-title {
  font-size: 1.2rem;
  font-weight: 900;
  margin: 1.5rem 0 1rem;
}

.delivery-signup-grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tracking-page .dashboard-heading p {
  color: var(--muted);
  margin: .35rem 0 0;
  max-width: 760px;
}

.tracking-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
}

.tracking-lookup-card,
.tracking-help-card {
  min-height: 100%;
}

.tracking-lookup-card p {
  color: var(--muted);
  margin: 0;
}

.tracking-help-card {
  display: grid;
  gap: .75rem;
}

.tracking-help-card p {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: .2rem;
  margin: 0;
  padding: .85rem;
}

.tracking-help-card span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tracking-page .section-head {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.tracking-page .section-head h2 {
  font-size: 1.15rem;
  margin: 0;
}

.tracking-page .section-head p {
  color: var(--muted);
  margin: .2rem 0 0;
}

.tracking-order-list {
  display: grid;
  gap: .75rem;
}

.tracking-order-card {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: .75rem;
  grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(110px, .75fr)) minmax(100px, .7fr);
  padding: .85rem;
}

.tracking-order-card a {
  font-weight: 900;
}

.tracking-order-card small {
  color: var(--muted);
  display: block;
  font-weight: 700;
  margin-top: .2rem;
}

.tracking-order-card > span {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #475467;
  font-size: .78rem;
  font-weight: 900;
  justify-self: start;
  padding: .32rem .65rem;
}

.tracking-order-card > strong {
  justify-self: end;
}

.customer-address-layout {
  align-items: start;
}

.customer-card-list {
  display: grid;
  gap: .85rem;
}

.customer-mini-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: .75rem;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0;
  padding: .85rem;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.customer-mini-card:hover,
.customer-mini-card:focus-within {
  border-color: rgba(15, 123, 108, .3);
  box-shadow: 0 10px 24px rgba(16, 42, 67, .08);
  transform: translateY(-1px);
}

.customer-mini-card span {
  min-width: 0;
}

.customer-mini-card strong {
  display: block;
}

.customer-mini-card small {
  color: var(--muted);
  display: block;
  font-weight: 700;
  margin-top: .15rem;
}

.customer-mini-card .btn {
  justify-self: end;
}

.vendor-products-page .dashboard-heading p {
  color: var(--muted);
  margin: .35rem 0 0;
  max-width: 720px;
}

.admin-products-page .dashboard-heading p {
  color: var(--muted);
  margin: .35rem 0 0;
  max-width: 760px;
}

.dashboard-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: flex-end;
}

.admin-primary-actions {
  max-width: 720px;
}

.admin-primary-actions .btn {
  flex: 1 1 160px;
}

.product-workspace-stats,
.vendor-product-form {
  gap: 1.15rem;
}

.product-workspace-grid {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.dropship-grid {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.dropship-import-form,
.dropship-side-stack {
  display: grid;
  gap: 1rem;
}

.product-editor-form,
.vendor-product-form {
  overflow: hidden;
}

.product-form-head,
.product-form-actions,
.vendor-form-head,
.vendor-form-actions,
.vendor-product-summary {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.product-form-head p,
.vendor-form-head p {
  border: 0;
  color: var(--muted);
  display: block;
  margin: .25rem 0 0;
  padding: 0;
}

.product-form-head h2,
.vendor-form-head h2 {
  margin: 0;
}

.product-form-section,
.vendor-form-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: .85rem;
  padding: 1rem;
}

.product-form-section {
  background: #fff;
}

.product-step-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.product-step-nav a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-weight: 900;
  padding: .65rem .8rem;
  text-decoration: none;
}

.product-step-nav a:hover,
.product-step-nav a:focus {
  border-color: rgba(15, 123, 108, .35);
  color: var(--primary-dark);
}

.product-form-section h3,
.vendor-form-section h3,
.product-advanced-panel summary,
.vendor-advanced-panel summary {
  font-size: 1rem;
  font-weight: 900;
  margin: 0;
}

.product-form-section > summary {
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
  list-style: none;
}

.product-form-section > summary::-webkit-details-marker {
  display: none;
}

.product-form-section[open] > summary {
  margin-bottom: .1rem;
}

.form-section-note {
  color: var(--muted);
  font-size: .9rem;
  margin: .25rem 0 .85rem;
  max-width: 760px;
}

.product-form-grid,
.product-advanced-grid,
.vendor-form-grid,
.vendor-advanced-grid,
.vendor-product-edit {
  display: grid;
  gap: .75rem;
}

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

.product-form-grid.three,
.vendor-form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-form-grid.four,
.vendor-form-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-form-section label,
.product-advanced-grid label,
.vendor-form-section label,
.vendor-advanced-grid label,
.vendor-product-edit label {
  display: grid;
  gap: .35rem;
}

.product-form-section label > span,
.product-advanced-grid label > span,
.vendor-form-section label span,
.vendor-advanced-grid label span,
.vendor-product-edit label span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
}

.product-form-section small,
.vendor-form-section small {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}

.product-advanced-panel,
.vendor-advanced-panel {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .85rem 1rem;
}

.product-advanced-panel summary,
.vendor-advanced-panel summary {
  cursor: pointer;
}

.product-advanced-grid,
.vendor-advanced-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: .85rem;
}

.product-form-actions,
.vendor-form-actions {
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

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

.product-side-panel {
  position: sticky;
  top: 110px;
}

.approval-stack {
  display: grid;
  gap: .75rem;
}

.approval-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: .65rem;
  grid-template-columns: minmax(0, 1fr);
  padding: .85rem;
}

.approval-card strong,
.approval-card small {
  display: block;
}

.approval-card small {
  color: var(--muted);
  font-weight: 700;
  margin-top: .15rem;
}

.compact-empty {
  padding: 1rem;
  text-align: left;
}

.compact-empty h3 {
  font-size: 1rem;
  font-weight: 900;
  margin: 0 0 .25rem;
}

.management-product-list,
.vendor-product-list {
  display: grid;
  gap: 1rem;
}

.management-product-card,
.vendor-product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: .85rem;
  padding: 1rem;
}

.management-product-card {
  align-items: center;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
}

.management-product-card:hover,
.vendor-product-card:hover {
  border-color: rgba(15, 123, 108, .3);
  box-shadow: 0 12px 28px rgba(16, 42, 67, .08);
}

.vendor-product-summary {
  border-bottom: 1px solid var(--line);
  padding-bottom: .85rem;
}

.management-product-card h3,
.vendor-product-summary h3 {
  font-size: 1.08rem;
  font-weight: 900;
  margin: .35rem 0 .15rem;
}

.management-product-card p,
.vendor-product-summary p,
.vendor-product-price span {
  color: var(--muted);
  font-size: .85rem;
  margin: 0;
}

.management-product-card > strong,
.vendor-product-price {
  text-align: right;
}

.management-product-card > strong,
.vendor-product-price strong {
  color: var(--danger);
  display: block;
  font-size: 1.05rem;
}

.management-product-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: flex-end;
}

.management-product-actions form {
  margin: 0;
}

.admin-product-share {
  position: relative;
}

.admin-product-share summary {
  cursor: pointer;
  list-style: none;
}

.admin-product-share summary::-webkit-details-marker {
  display: none;
}

.admin-product-share-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(16, 42, 67, .16);
  display: grid;
  gap: .65rem;
  min-width: 280px;
  padding: .75rem;
  position: absolute;
  right: 0;
  top: calc(100% + .45rem);
  z-index: 40;
}

.admin-product-share-panel label {
  display: grid;
  gap: .25rem;
  margin: 0;
}

.admin-product-share-panel label span {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-product-share-grid {
  display: grid;
  gap: .45rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-product-share-grid .btn {
  justify-content: center;
}

.admin-product-share-card {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.admin-product-share-card h3 {
  font-size: 1rem;
  font-weight: 900;
  margin: 0 0 .65rem;
}

.admin-product-share-card .admin-product-share {
  display: inline-block;
}

.admin-product-share-card .admin-product-share-panel {
  left: 0;
  right: auto;
}

.product-card-select {
  display: grid;
  place-items: center;
}

.product-card-select input,
.product-card-select-all input {
  block-size: 16px;
  inline-size: 16px;
}

.product-card-select-all {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: .82rem;
  font-weight: 900;
  justify-content: flex-end;
  margin: -.35rem 0 .75rem;
}

.product-card-select-all label {
  align-items: center;
  display: inline-flex;
  gap: .45rem;
}

.product-create-shell .product-editor-form {
  max-width: none;
}

.visually-hidden {
  block-size: 1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  inline-size: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
}

.vendor-product-edit {
  align-items: end;
  grid-template-columns: minmax(180px, 1.4fr) 110px 100px minmax(140px, 1fr) 130px auto;
}

.vendor-product-promote {
  align-items: end;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: .6rem;
  grid-template-columns: minmax(180px, 260px) auto;
  justify-content: start;
  padding: .75rem;
}

.vendor-orders-page .dashboard-heading p,
.vendor-reviews-page .dashboard-heading p,
.vendor-earnings-page .dashboard-heading p,
.vendor-profile-page .dashboard-heading p {
  color: var(--muted);
  margin: .35rem 0 0;
  max-width: 720px;
}

.vendor-order-list,
.vendor-review-list {
  display: grid;
  gap: 1rem;
}

.vendor-order-card,
.vendor-review-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: .85rem;
  padding: 1rem;
}

.vendor-order-card:hover,
.vendor-review-card:hover {
  border-color: rgba(15, 123, 108, .3);
  box-shadow: 0 12px 28px rgba(16, 42, 67, .08);
}

.vendor-order-summary,
.vendor-review-head {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.vendor-order-summary {
  border-bottom: 1px solid var(--line);
  padding-bottom: .85rem;
}

.vendor-order-summary h3,
.vendor-review-card h3 {
  font-size: 1.08rem;
  font-weight: 900;
  margin: .35rem 0 .15rem;
}

.product-edit-page .product-editor-form > .row,
.product-edit-page .product-editor-form > input,
.product-edit-page .product-editor-form > textarea,
.product-edit-page .product-editor-form > select,
.product-edit-page .product-editor-form > .check-list {
  margin-bottom: .25rem;
}

.promo-command-strip,
.report-preset-bar,
.promo-tabs {
  margin-top: 1rem;
}

.promo-tabs,
.report-preset-bar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.promo-tabs a,
.customer-shortcut-list a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-weight: 900;
  padding: .7rem .9rem;
  text-decoration: none;
}

.promo-tabs a:hover,
.promo-tabs a:focus,
.promo-tabs a.is-active,
.promo-create-switch a:hover,
.promo-create-switch a:focus,
.promo-create-switch a.is-active {
  border-color: rgba(15, 123, 108, .35);
  color: var(--primary-dark);
}

.promo-action-grid,
.promo-create-switch {
  display: grid;
  gap: .75rem;
}

.promo-action-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.promo-action-grid a,
.promo-create-switch a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  display: grid;
  gap: .2rem;
  min-height: 78px;
  padding: .85rem;
  text-decoration: none;
}

.promo-action-grid a span {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.promo-action-grid a strong,
.promo-create-switch a {
  font-weight: 900;
}

.promo-create-switch {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.promo-create-switch a {
  min-height: 46px;
  place-items: center;
  text-align: center;
}

.promotion-form-shell {
  max-width: 980px;
}

.promo-dashboard-section summary {
  align-items: center;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  font-size: 1.05rem;
  font-weight: 900;
  justify-content: space-between;
  list-style: none;
  margin-bottom: 1rem;
}

.promo-dashboard-section summary::-webkit-details-marker {
  display: none;
}

.promo-dashboard-section summary::after {
  content: "-";
}

.promo-dashboard-section:not([open]) summary {
  margin-bottom: 0;
}

.promo-dashboard-section:not([open]) summary::after {
  content: "+";
}

.promo-builder-grid .content-panel {
  border-top: 4px solid rgba(15, 123, 108, .35);
}

.report-chart-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: .75rem;
  grid-template-columns: minmax(150px, 1fr) minmax(120px, 2fr) auto;
  padding: .7rem 0;
}

.report-chart-row div {
  background: var(--soft);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.report-chart-row i {
  background: var(--brand);
  display: block;
  height: 100%;
}

.settings-panel-grid,
.customer-account-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-card label {
  display: grid;
  gap: .35rem;
}

.settings-card label span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
}

.settings-quick-edit {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 1rem;
  padding: 1rem;
}

.customer-shortcut-list {
  display: grid;
  gap: .65rem;
}

.customer-shortcut-list a {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.order-progress-strip {
  display: grid;
  gap: .35rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: .85rem 0;
}

.order-progress-strip span {
  background: var(--soft);
  border-radius: 999px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  padding: .45rem .5rem;
  text-align: center;
}

.order-progress-strip .is-done {
  background: rgba(15, 123, 108, .12);
  color: var(--brand);
}

.customer-mini-timeline {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .65rem .8rem;
}

.compact-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .settings-panel-grid,
  .customer-account-grid,
  .product-workspace-grid {
    grid-template-columns: 1fr;
  }

  .product-side-panel {
    position: static;
  }

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

  .product-step-nav {
    display: none;
  }

  .tabs-lite {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: .2rem;
  }

  .support-intent-card-tabs {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .tabs-lite button {
    flex: 0 0 auto;
  }

  .support-intent-card-tabs button {
    min-height: auto;
  }

  .report-chart-row,
  .order-progress-strip {
    grid-template-columns: 1fr;
  }
}

.vendor-order-summary p,
.vendor-review-card p {
  border: 0;
  color: var(--muted);
  display: block;
  margin: 0;
  padding: 0;
}

.vendor-order-summary > strong {
  color: var(--danger);
  font-size: 1.08rem;
  white-space: nowrap;
}

.vendor-order-form {
  align-items: end;
  display: grid;
  gap: .75rem;
  grid-template-columns: 170px minmax(180px, 1fr) minmax(180px, 1fr) auto;
}

.vendor-order-form label {
  display: grid;
  gap: .35rem;
}

.vendor-order-form label span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
}

.vendor-review-head strong {
  color: #9b6a00;
}

.vendor-review-card small {
  color: var(--muted);
  font-weight: 800;
}

.review-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.review-item {
  border-bottom: 1px solid var(--line);
  padding: .75rem 0;
}

.review-summary {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: .75rem;
  padding: .75rem;
}

.review-media {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .75rem 0;
}

.review-media img,
.review-media video {
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  width: 96px;
}

.review-reply {
  background: #fff;
  border-left: 3px solid var(--accent);
  margin-top: .75rem;
  padding: .65rem .75rem;
}

.review-action-form {
  display: grid;
  gap: .5rem;
  margin-top: .75rem;
}

.reviews-admin-table {
  display: grid;
  gap: .75rem;
  grid-template-columns: minmax(140px, 1fr) 130px 80px minmax(180px, 1.2fr) 100px 70px 120px;
  overflow-x: auto;
}

.customers-admin-table,
.messages-admin-table,
.locations-admin-table {
  display: grid;
  gap: .75rem;
  overflow-x: auto;
}

.customers-admin-table {
  grid-template-columns: minmax(160px, 1fr) minmax(180px, 1fr) 80px 120px 100px 150px;
}

.messages-admin-table {
  grid-template-columns: minmax(180px, 1fr) 130px minmax(180px, 1fr) 120px 100px 130px;
}

.locations-admin-table {
  grid-template-columns: 150px 150px 130px 90px;
}

.contents {
  display: contents;
}

.review-reports-table {
  display: grid;
  gap: .75rem;
  grid-template-columns: 90px 90px 150px minmax(180px, 1fr) 110px 120px;
  overflow-x: auto;
}

.customers-admin-table > *,
.messages-admin-table > *,
.locations-admin-table > *,
.reviews-admin-table > *,
.review-reports-table > * {
  border-bottom: 1px solid var(--line);
  padding-bottom: .65rem;
}

.chat-list {
  display: grid;
  gap: .75rem;
}

.chat-meta,
.chat-start-form,
.report-chat-form {
  display: grid;
  gap: .75rem;
  margin-bottom: 1rem;
}

.chat-start-form {
  grid-template-columns: 180px minmax(220px, 1fr) auto;
}

.chat-meta {
  color: var(--muted);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chat-bubble {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  max-width: 680px;
  padding: .85rem;
}

.chat-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .6rem 0;
}

.chat-attachments img {
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  width: 88px;
}

.delivery-card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.orders-table > *,
.payments-table > *,
.deliveries-table > *,
.vendors-table > *,
.compare-table > *,
.messages-table > * {
  border-bottom: 1px solid var(--line);
  padding-bottom: .65rem;
}

.payment-simulator {
  max-width: 560px;
}

.payment-summary p {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .6rem;
}

.order-card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.narrow-page {
  max-width: 860px;
}

/* Admin workspace polish */
.dashboard-band {
  background:
    linear-gradient(180deg, #f6f8fb 0%, #eef3f6 100%);
  min-height: 72vh;
}

.dashboard-band .dashboard-heading {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(16, 42, 67, .06);
  margin-bottom: 1rem;
  padding: 1rem;
}

.dashboard-band .dashboard-heading h1 {
  font-size: clamp(1.45rem, 3vw, 2.15rem);
}

.dashboard-band .dashboard-heading .eyebrow {
  color: var(--primary-dark);
}

.dashboard-band .dashboard-heading .btn,
.dashboard-band .hero-actions .btn {
  min-height: 40px;
}

.dashboard-band .alert {
  border-radius: 8px;
  border-width: 1px;
  font-weight: 800;
}

.dashboard-band .content-panel {
  box-shadow: 0 10px 30px rgba(16, 42, 67, .06);
}

.dashboard-band .content-panel > h2,
.dashboard-band .admin-form > h2 {
  font-size: 1.1rem;
  font-weight: 900;
  margin: 0 0 .85rem;
}

.dashboard-band .content-panel > h2::after,
.dashboard-band .admin-form > h2::after {
  background: var(--primary);
  border-radius: 999px;
  content: "";
  display: block;
  height: 3px;
  margin-top: .45rem;
  width: 42px;
}

.dashboard-band .admin-grid {
  align-items: start;
}

.dashboard-band .admin-form {
  gap: .85rem;
}

.dashboard-band .admin-form .btn-primary,
.dashboard-band .admin-form .btn-outline-primary,
.dashboard-band .admin-form .btn-outline-danger {
  justify-self: start;
}

.dashboard-band .status-row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: .65rem;
  padding: .75rem;
}

.admin-table,
.orders-table,
.payments-table,
.deliveries-table,
.vendors-table,
.compare-table,
.messages-table,
.reviews-admin-table,
.review-reports-table,
.customers-admin-table,
.messages-admin-table,
.locations-admin-table,
.inventory-table,
.stock-history-table,
.promo-table,
.marketing-table,
.abandoned-cart-table,
.generic-report-table,
.dashboard-table {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  gap: 0;
  overflow-x: auto;
  padding: .25rem;
}

.admin-table > *,
.orders-table > *,
.payments-table > *,
.deliveries-table > *,
.vendors-table > *,
.compare-table > *,
.messages-table > *,
.reviews-admin-table > *,
.review-reports-table > *,
.customers-admin-table > *,
.messages-admin-table > *,
.locations-admin-table > *,
.inventory-table > *,
.stock-history-table > *,
.promo-table > *,
.marketing-table > *,
.abandoned-cart-table > *,
.generic-report-table > *,
.dashboard-table > * {
  align-content: center;
  border-bottom: 1px solid var(--line);
  min-height: 44px;
  padding: .7rem .75rem;
}

.admin-table > strong,
.orders-table > strong,
.payments-table > strong,
.deliveries-table > strong,
.vendors-table > strong,
.compare-table > strong,
.messages-table > strong,
.reviews-admin-table > strong,
.review-reports-table > strong,
.customers-admin-table > strong,
.messages-admin-table > strong,
.locations-admin-table > strong,
.inventory-table > strong,
.stock-history-table > strong,
.promo-table > strong,
.marketing-table > strong,
.abandoned-cart-table > strong,
.generic-report-table > strong,
.dashboard-table > strong {
  background: var(--soft);
  color: #475467;
  font-size: .78rem;
  font-weight: 900;
  position: sticky;
  text-transform: uppercase;
  top: 0;
  z-index: 1;
}

.admin-table small,
.orders-table small,
.vendors-table small,
.customers-admin-table small,
.messages-admin-table small {
  color: var(--muted);
  display: block;
  font-weight: 700;
  margin-top: .15rem;
}

.dashboard-band .content-panel p {
  border-bottom-color: #edf0f5;
  margin-bottom: .55rem;
}

.dashboard-band .content-panel p:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.dashboard-band .content-panel p small {
  color: var(--muted);
  display: block;
  font-size: .78rem;
  font-weight: 700;
  margin-top: .15rem;
}

.dashboard-band .btn-sm {
  min-height: 34px;
}

.admin-table-toolbar {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: .55rem;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, .45fr) minmax(150px, .45fr) auto auto;
  margin-bottom: .85rem;
  padding: .65rem;
}

.admin-table-toolbar [data-table-count] {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 900;
  min-width: 84px;
  text-align: right;
}

.admin-enhanced-table {
  position: relative;
}

.admin-enhanced-table .is-sticky-col {
  background: #fff;
  box-shadow: 1px 0 0 var(--line);
  left: .25rem;
  position: sticky;
  z-index: 2;
}

.admin-enhanced-table > strong.is-sticky-col {
  background: var(--soft);
  z-index: 3;
}

.admin-row-select {
  display: grid;
  place-items: center;
}

.admin-status-badge {
  background: #eef2f7;
  border: 1px solid #dde4ee;
  border-radius: 999px;
  color: #475467;
  display: inline-flex;
  font-size: .76rem;
  font-weight: 900;
  line-height: 1.1;
  padding: .28rem .58rem;
}

.admin-status-badge.status-active,
.admin-status-badge.status-successful,
.admin-status-badge.status-payment-confirmed,
.admin-status-badge.status-approved,
.admin-status-badge.status-published,
.admin-status-badge.status-delivered,
.admin-status-badge.status-completed {
  background: #e8f7ef;
  border-color: #b7e3c9;
  color: #17623a;
}

.admin-status-badge.status-pending,
.admin-status-badge.status-pending-approval,
.admin-status-badge.status-awaiting-payment,
.admin-status-badge.status-processing,
.admin-status-badge.status-in-transit {
  background: #fff7df;
  border-color: #f8df9a;
  color: #7a4d00;
}

.admin-status-badge.status-failed,
.admin-status-badge.status-payment-failed,
.admin-status-badge.status-cancelled,
.admin-status-badge.status-suspended,
.admin-status-badge.status-banned,
.admin-status-badge.status-rejected,
.admin-status-badge.status-deleted,
.admin-status-badge.status-disputed {
  background: #fdecec;
  border-color: #f6c2c2;
  color: #9b1c1c;
}

.admin-status-badge.status-refunded,
.admin-status-badge.status-returned,
.admin-status-badge.status-inactive {
  background: #eef2f7;
  border-color: #d9e2ec;
  color: #475467;
}

.orders-table.admin-enhanced-table {
  --mobile-table-cols: 52px 160px minmax(180px, 1fr) 130px 150px 150px minmax(260px, 1.25fr);
  grid-template-columns: 52px 160px minmax(180px, 1fr) 130px 150px 150px minmax(260px, 1.25fr);
}

.users-admin-table.admin-enhanced-table {
  --mobile-table-cols: 52px minmax(220px, 1fr) 180px 130px minmax(220px, .85fr);
  grid-template-columns: 52px minmax(220px, 1fr) 180px 130px minmax(220px, .85fr);
}

.gateway-payments-table.admin-enhanced-table {
  --mobile-table-cols: 52px 170px 150px 120px 140px 160px minmax(280px, 1.2fr);
  grid-template-columns: 52px 170px 150px 120px 140px 160px minmax(280px, 1.2fr);
}

.vendors-table.admin-enhanced-table {
  --mobile-table-cols: minmax(180px, 1fr) 180px 170px 150px 180px minmax(260px, 1.1fr);
  grid-template-columns: minmax(180px, 1fr) 180px 170px 150px 180px minmax(260px, 1.1fr);
}

.admin-mobile-card-list {
  display: none;
}

.admin-secondary-mobile-cards {
  margin-top: .75rem;
}

.admin-mobile-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: .85rem;
  padding: .9rem;
}

.admin-mobile-card-head {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: space-between;
}

.admin-mobile-card-head h3 {
  font-size: 1rem;
  font-weight: 900;
  margin: .1rem 0 0;
}

.admin-mobile-card-select {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: .76rem;
  font-weight: 900;
  gap: .35rem;
}

.admin-mobile-card-select input {
  block-size: 16px;
  inline-size: 16px;
}

.admin-mobile-card-fields {
  display: grid;
  gap: .65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-mobile-card-fields span,
.admin-mobile-card-more {
  min-width: 0;
}

.admin-mobile-card-fields small {
  color: var(--muted);
  display: block;
  font-size: .72rem;
  font-weight: 900;
  margin-bottom: .15rem;
  text-transform: uppercase;
}

.admin-mobile-card-more {
  border-top: 1px solid var(--line);
  padding-top: .55rem;
}

.admin-mobile-card-more summary {
  color: var(--primary-dark);
  cursor: pointer;
  font-size: .84rem;
  font-weight: 900;
  list-style: none;
}

.admin-mobile-card-more summary::-webkit-details-marker {
  display: none;
}

.admin-mobile-card-more[open] summary {
  margin-bottom: .55rem;
}

.admin-mobile-card-more form + form {
  margin-top: .5rem;
}

.dashboard-band .form-control-sm,
.dashboard-band .form-select-sm {
  min-height: 38px;
}

.dashboard-band .content-panel > .admin-form.mb-3,
.dashboard-band .inline-management,
.dashboard-band .inventory-adjust-form,
.dashboard-band .report-filter-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: .85rem !important;
  padding: .85rem;
}

.dashboard-band .content-panel > .admin-form.mb-3:hover,
.dashboard-band .inline-management:hover {
  border-color: rgba(15, 123, 108, .28);
  box-shadow: 0 10px 26px rgba(16, 42, 67, .08);
}

.dashboard-band .content-panel > .admin-form.mb-3:last-child {
  margin-bottom: 0 !important;
}

.dashboard-band .admin-form.horizontal,
.dashboard-band .report-filter-grid,
.dashboard-band .inventory-adjust-form {
  align-items: end;
}

.dashboard-band .d-flex.gap-2,
.dashboard-band .hero-actions {
  flex-wrap: wrap;
}

.dashboard-band .module-grid a,
.dashboard-band .report-link-grid a {
  min-height: 78px;
}

.dashboard-band .empty-state {
  background: #fff;
}

.promo-admin-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (max-width: 1199px) {
  .hero-grid,
  .product-detail {
    grid-template-columns: 1fr;
  }

  .category-rail {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .rail-title {
    grid-column: 1 / -1;
  }

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

@media (max-width: 991px) {
  .report-toolbar {
    align-items: stretch;
    display: grid;
  }

  .report-toolbar-actions {
    justify-content: flex-start;
  }

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

  .top-strip-inner {
    align-items: center;
    flex-direction: row;
    gap: .75rem;
  }

  .top-strip-actions {
    gap: .4rem;
    justify-content: flex-end;
  }

  .site-header .navbar {
    padding-bottom: .5rem;
  }

  .navbar-brand {
    font-size: 1.25rem;
  }

  .brand-logo {
    height: 36px;
    max-width: 150px;
  }

  .brand-mark {
    height: 30px;
    width: 30px;
  }

  .navbar-collapse {
    border-top: 1px solid var(--line);
    margin-top: .65rem;
    padding-top: .65rem;
  }

  .navbar-nav {
    align-items: stretch !important;
  }

  .navbar-nav .nav-link,
  .utility-selector .nav-link,
  .sell-button {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-height: 42px;
    width: 100%;
  }

  .account-toggle {
    max-width: 100%;
  }

  .account-toggle small {
    color: inherit;
    opacity: .78;
  }

  .role-menu {
    min-width: 100%;
  }

  .role-menu-section {
    grid-template-columns: 1fr;
  }

  .mini-cart-menu {
    min-width: 100%;
  }

  .mobile-popular {
    margin-top: .55rem;
    padding: 0;
  }

  .listing-layout,
  .cart-layout,
  .checkout-layout,
  .search-discovery,
  .seller-signup,
  .promo-action-grid,
  .promo-create-switch,
  .inventory-upload-panel,
  .product-workspace-grid,
  .admin-grid,
  .inventory-table,
  .stock-history-table,
  .inventory-adjust-form {
    grid-template-columns: 1fr;
  }

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

  .checkout-step-nav {
    display: none;
  }

  .checkout-step {
    padding: .85rem;
  }

  .checkout-step-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .checkout-step-actions .btn {
    width: 100%;
  }

  .summary-panel {
    position: static;
  }

  .checkout-summary-panel {
    max-height: none;
  }

  .mobile-filter-trigger {
    display: inline-flex;
    margin-bottom: 1rem;
  }

  .filter-panel {
    border-radius: 0;
    box-shadow: 0 18px 60px rgba(22, 34, 31, .2);
    height: 100dvh;
    left: 0;
    max-width: 380px;
    overflow-y: auto;
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
    position: fixed;
    top: 0;
    transform: translateX(-105%);
    transition: transform .2s ease;
    width: min(88vw, 380px);
    z-index: 1060;
  }

  .filter-panel .filter-group {
    padding: .55rem 0;
  }

  .filter-panel .filter-group summary {
    min-height: 44px;
  }

  .filter-drawer-open .filter-panel {
    transform: translateX(0);
  }

  .filter-scrim {
    background: rgba(15, 26, 23, .42);
    inset: 0;
    position: fixed;
    z-index: 1050;
  }

  .filter-drawer-open .filter-scrim {
    display: block;
  }

  .product-grid,
  .location-grid,
  .store-grid,
  .metric-grid,
  .promo-banner-strip .container-xl,
  .flash-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-priority-metrics {
    gap: .7rem;
  }

  .admin-priority-metrics .metric-card {
    padding: .85rem;
  }

  .admin-priority-metrics .metric-card strong {
    font-size: 1.28rem;
  }

  .newsletter-band .container-xl,
  .store-hero .container-xl {
    align-items: stretch;
    flex-direction: column;
  }

  .order-layout,
  .order-card-grid,
  .delivery-card-grid,
  .review-layout,
  .store-dashboard,
  .promo-admin-grid,
  .cms-editor-layout,
  .report-link-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .cms-create-form {
    position: static;
  }

  .cms-stat-grid,
  .cms-required-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .customer-hub-grid,
  .customer-priority-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-priority-card.is-primary {
    grid-column: 1 / -1;
  }

  .product-side-panel {
    position: static;
  }

  .product-form-grid.two,
  .product-form-grid.three,
  .product-form-grid.four,
  .product-advanced-grid,
  .compact-check-grid,
  .management-product-card,
  .vendor-form-grid.two,
  .vendor-form-grid.three,
  .vendor-form-grid.four,
  .vendor-advanced-grid,
  .vendor-product-edit {
    grid-template-columns: 1fr;
  }

  .vendor-product-promote {
    grid-template-columns: 1fr;
  }

  .management-product-card > strong {
    grid-column: 2;
    text-align: left;
  }

  .management-product-card {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .management-product-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

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

  .delivery-form-grid,
  .delivery-task-details,
  .delivery-task-details.compact,
  .delivery-quick-update,
  .delivery-secondary-grid,
  .tracking-layout,
  .tracking-order-card {
    grid-template-columns: 1fr;
  }

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

  .promo-banner-strip .container-xl,
  .flash-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .report-filter-grid {
    grid-template-columns: 1fr;
  }

  .top-strip {
    font-size: .76rem;
  }

  .top-strip-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .top-strip-message {
    white-space: normal;
  }

  .top-help-link {
    display: none;
  }

  .top-utility-selector button {
    min-height: 26px;
    padding: .15rem .42rem;
  }

  .brand-word {
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-logo {
    max-width: 128px;
  }

  .mobile-search {
    grid-template-columns: 1fr;
  }

  .mobile-search .search-input-wrap,
  .mobile-search .btn {
    grid-column: auto;
  }

  .popular-searches {
    font-size: .78rem;
  }

  .hero-band {
    padding-top: .75rem;
  }

  .hero-copy {
    min-height: 390px;
  }

  .category-rail,
  .product-grid,
  .location-grid,
  .store-grid,
  .metric-grid,
  .promo-action-grid,
  .promo-create-switch,
  .module-section-grid,
  .cms-stat-grid,
  .cms-required-grid,
  .vendor-hub-grid,
  .customer-hub-grid,
  .customer-priority-actions,
  .content-tool-card-list.compact,
  .content-tool-card.compact,
  .module-grid,
  .module-section .module-grid,
  .product-performance,
  .vendor-performance,
  .recent-activity-table {
    grid-template-columns: 1fr;
  }

  .customer-priority-actions {
    gap: .75rem;
  }

  .customer-priority-card {
    min-height: auto;
  }

  .cms-heading,
  .cms-page-card-head,
  .product-form-head,
  .product-form-actions,
  .vendor-form-head,
  .vendor-form-actions,
  .vendor-product-summary,
  .vendor-order-summary,
  .vendor-review-head,
  .delivery-task-head,
  .delivery-agent-page .section-head,
  .delivery-admin-page .section-head,
  .tracking-page .section-head,
  .cms-card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .delivery-signup-grid {
    grid-template-columns: 1fr;
  }

  .tracking-order-card > strong {
    justify-self: start;
  }

  .cms-heading-actions,
  .dashboard-actions,
  .product-form-actions .btn,
  .management-product-actions,
  .vendor-form-actions .btn,
  .vendor-product-promote .btn,
  .cms-card-actions .btn {
    width: 100%;
  }

  .dashboard-actions,
  .management-product-actions {
    justify-content: stretch;
  }

  .dashboard-actions .btn,
  .management-product-actions .btn,
  .management-product-actions form,
  .management-product-actions .admin-product-share,
  .management-product-actions .admin-product-share summary {
    width: 100%;
  }

  .admin-product-share-panel,
  .admin-product-share-card .admin-product-share-panel {
    left: 0;
    right: 0;
    min-width: 0;
    position: static;
    width: 100%;
  }

  .vendor-product-price {
    text-align: left;
  }

  .cms-heading-actions .btn {
    flex: 1;
  }

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

  .list-mode .product-card,
  .cart-item,
  .status-row,
  .role-menu-section > div,
  .store-identity,
  .approval-card,
  .check-grid,
  .admin-table,
  .order-item,
  .timeline p,
  .orders-table,
  .orders-table.vendor,
  .payments-table,
  .deliveries-table,
  .vendors-table,
  .reviews-admin-table,
  .review-reports-table,
  .saved-card,
  .compare-table,
  .comparison-matrix,
  .messages-table,
  .customer-mini-card,
  .chat-start-form,
  .chat-meta,
  .promo-table,
  .marketing-table,
  .abandoned-cart-table,
  .customers-admin-table,
  .messages-admin-table,
  .locations-admin-table,
  .generic-report-table {
    grid-template-columns: 1fr;
  }

  .customer-mini-card .btn,
  .customer-mini-card button {
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 991px) {
  .admin-table-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .admin-table-toolbar [data-table-search],
  .admin-table-toolbar [data-table-count] {
    grid-column: 1 / -1;
  }

  .admin-table-toolbar [data-table-count] {
    text-align: left;
  }

  .dashboard-band {
    padding-bottom: 5.25rem;
  }

  .dashboard-band .dashboard-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-band .dashboard-heading > .btn,
  .dashboard-band .dashboard-heading > form,
  .dashboard-band .dashboard-heading .hero-actions {
    width: 100%;
  }

  .dashboard-band .dashboard-heading .hero-actions .btn,
  .dashboard-band .dashboard-heading > .btn,
  .dashboard-band .dashboard-heading > form .btn {
    width: 100%;
  }

  .dashboard-band .admin-form .btn-primary,
  .dashboard-band .admin-form .btn-outline-primary,
  .dashboard-band .admin-form .btn-outline-danger {
    justify-self: stretch;
  }

  .dashboard-band .status-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .admin-table-toolbar {
    grid-template-columns: 1fr;
  }

  .dashboard-band {
    padding-top: 1.25rem;
  }

  .dashboard-band .container-xl {
    padding-left: .85rem;
    padding-right: .85rem;
  }

  .dashboard-band .saved-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .dashboard-band .saved-actions {
    grid-column: 1 / -1;
    width: 100%;
  }

  .dashboard-band .saved-actions form,
  .dashboard-band .saved-actions .btn {
    width: 100%;
  }

  .dashboard-band .content-panel,
  .dashboard-band .auth-card,
  .dashboard-band .seller-panel,
  .dashboard-band .filter-panel,
  .dashboard-band .summary-panel,
  .support-intent-form {
    padding: 1rem;
    max-width: none;
  }

  .customer-support-page .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-table,
  .orders-table,
  .payments-table,
  .deliveries-table,
  .vendors-table,
  .compare-table,
  .messages-table,
  .reviews-admin-table,
  .review-reports-table,
  .customers-admin-table,
  .messages-admin-table,
  .locations-admin-table,
  .inventory-table,
  .stock-history-table,
  .promo-table,
  .marketing-table,
  .abandoned-cart-table,
  .generic-report-table,
  .dashboard-table {
    -webkit-overflow-scrolling: touch;
    grid-template-columns: var(--mobile-table-cols, repeat(4, minmax(150px, 1fr))) !important;
    margin-left: -1rem;
    margin-right: -1rem;
    min-width: calc(100% + 2rem);
    padding: .15rem;
  }

  .orders-table {
    --mobile-table-cols: 150px 170px 120px 140px 140px minmax(220px, 1fr);
  }

  .orders-table.vendor {
    --mobile-table-cols: 150px 90px 140px 140px minmax(220px, 1fr);
  }

  .payments-table,
  .deliveries-table,
  .vendors-table,
  .messages-table,
  .reviews-admin-table,
  .review-reports-table,
  .customers-admin-table,
  .messages-admin-table,
  .promo-table,
  .marketing-table,
  .abandoned-cart-table {
    --mobile-table-cols: repeat(6, minmax(140px, 1fr));
  }

  .inventory-table {
    --mobile-table-cols: minmax(180px, 1fr) 140px 120px 140px minmax(240px, 1.2fr);
  }

  .vendor-inventory-table {
    --mobile-table-cols: minmax(180px, 1fr) 140px 120px minmax(240px, 1.2fr);
  }

  .stock-history-table {
    --mobile-table-cols: repeat(8, minmax(120px, 1fr));
  }

  .generic-report-table {
    --mobile-table-cols: repeat(var(--cols), minmax(130px, 1fr));
  }

  .orders-table.admin-enhanced-table,
  .users-admin-table.admin-enhanced-table,
  .gateway-payments-table.admin-enhanced-table,
  .vendors-table.admin-enhanced-table,
  .admin-mobile-paired-table {
    display: none;
  }

  .admin-mobile-card-list {
    display: grid;
    gap: .75rem;
  }

  .admin-mobile-card-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  main,
  .container-xl,
  .container-fluid,
  .hero-grid,
  .listing-layout,
  .product-detail,
  .auth-card,
  .content-panel,
  .product-card,
  .detail-panel,
  .seller-panel,
  .gallery-panel {
    min-width: 0;
  }

  .hero-copy {
    order: 1;
  }

  .deal-panel {
    order: 2;
  }

  .category-rail {
    order: 3;
  }

  .page-title-row,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .view-tools,
  .view-tools .form-select {
    max-width: 100%;
    width: 100%;
  }

  .search-console {
    align-items: stretch;
    flex-direction: column;
  }

  .product-detail {
    gap: 1.25rem;
  }

  .detail-panel h1 {
    overflow-wrap: anywhere;
  }

  .detail-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-buy-box {
    position: static;
  }

  .buy-box-controls {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .buy-box-controls .product-quantity-control {
    grid-column: 1 / -1;
  }

  .detail-actions .btn,
  .detail-actions form {
    width: 100%;
  }

  .seller-panel {
    position: static;
  }

  .tabs-lite {
    flex-wrap: nowrap;
    margin-left: -.25rem;
    margin-right: -.25rem;
    overflow-x: auto;
    padding: 0 .25rem .25rem;
  }

  .tabs-lite button {
    flex: 0 0 auto;
  }

  .whatsapp-float {
    bottom: 4.75rem;
    max-width: calc(100vw - 2rem);
  }
}

@media (max-width: 575px) {
  body {
    padding-bottom: 3.1rem;
  }

  .container-xl,
  .container-fluid {
    max-width: 100%;
    overflow-x: clip;
  }

  .hero-grid {
    gap: .85rem;
  }

  .hero-copy {
    min-height: 340px;
    padding: 1.5rem;
  }

  .hero-copy h1,
  .page-title-row h1,
  .auth-card h1 {
    font-size: clamp(1.8rem, 10vw, 2.2rem);
    line-height: 1.12;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .detail-panel h1 {
    font-size: clamp(1.65rem, 8vw, 1.95rem);
    line-height: 1.12;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .breadcrumb-line,
  .content-panel,
  .search-console,
  .detail-panel,
  .seller-panel,
  .auth-card,
  .product-body,
  .rich-description {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .category-rail {
    max-height: 360px;
    overflow-y: auto;
  }

  .product-grid {
    gap: .85rem;
  }

  .product-card {
    border-radius: 8px;
  }

  .product-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .product-utility-action {
    display: none;
  }

  .list-mode .product-card {
    grid-template-columns: 1fr;
  }

  .price-filter,
  .detail-actions {
    grid-template-columns: 1fr;
  }

  .product-mobile-buy-bar {
    align-items: center;
    background: #fff;
    border-top: 1px solid var(--line);
    bottom: 58px;
    box-shadow: 0 -10px 28px rgba(16, 42, 67, .12);
    display: grid;
    gap: .45rem;
    grid-template-columns: 42px minmax(0, 1fr) 52px auto auto;
    left: 0;
    padding: .65rem .85rem calc(.65rem + env(safe-area-inset-bottom));
    position: fixed;
    right: 0;
    z-index: 1030;
  }

  .product-mobile-buy-bar img {
    aspect-ratio: 1;
    border-radius: 6px;
    height: 42px;
    object-fit: cover;
    width: 42px;
  }

  .product-mobile-buy-bar .btn {
    min-height: 38px;
    padding-left: .55rem;
    padding-right: .55rem;
  }

  .mobile-quantity-control input {
    min-height: 38px;
    padding-left: .35rem;
    padding-right: .25rem;
    text-align: center;
  }

  .product-mobile-buy-bar span,
  .product-mobile-buy-bar strong,
  .product-mobile-buy-bar small {
    display: block;
    line-height: 1.15;
  }

  .product-mobile-buy-bar span {
    color: var(--primary-dark);
    font-weight: 900;
  }

  .product-mobile-buy-bar strong {
    font-size: .76rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .product-mobile-buy-bar small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .product-mobile-buy-bar + .section-band {
    padding-bottom: 6rem;
  }

  .seller-mobile-cta {
    background: var(--accent);
    border-radius: 999px;
    bottom: calc(4.6rem + env(safe-area-inset-bottom));
    box-shadow: 0 10px 24px rgba(16, 42, 67, .2);
    color: #111827;
    display: inline-flex;
    font-size: .78rem;
    font-weight: 900;
    left: 1rem;
    padding: .7rem .95rem;
    position: fixed;
    text-decoration: none;
    z-index: 1025;
  }

  .price-row,
  .rating-row,
  .seller-line,
  .product-commerce-card p,
  .seller-trust-card p,
  .chip-row {
    max-width: 100%;
  }

  .product-commerce-card p,
  .seller-trust-card p {
    align-items: flex-start;
  }

  .chip-row {
    flex-wrap: nowrap;
    margin-right: -1rem;
    overflow-x: auto;
    padding-bottom: .2rem;
  }

  .chip-row a {
    flex: 0 0 auto;
  }

  .auth-band {
    min-height: auto;
    padding: 2rem .75rem;
    place-items: start stretch;
  }

  .auth-card {
    overflow: hidden;
    padding: 1.25rem;
  }

  .password-field,
  .password-field .form-control {
    min-width: 0;
  }

  .auth-card .d-flex.justify-content-between {
    align-items: flex-start !important;
    flex-wrap: wrap;
    gap: .65rem;
  }

  .auth-card .btn {
    white-space: normal;
  }

  .bottom-nav a,
  .bottom-nav button {
    min-width: 0;
  }

  .whatsapp-float {
    border-radius: 999px;
    bottom: calc(4.85rem + env(safe-area-inset-bottom));
    font-size: .9rem;
    padding: .6rem .85rem;
    right: .75rem;
  }
}

.admin-layout-body {
  background: #eef3f6;
}

.admin-layout-body .dashboard-band {
  background: transparent;
  min-height: auto;
  padding: 1.25rem 0 2rem;
}

.admin-layout-body .dashboard-band > .container-xl {
  max-width: none;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.admin-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  background: #071d2a;
  color: #dce7ef;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 1rem;
  height: 100vh;
  min-height: 100vh;
  padding: 1rem;
  position: sticky;
  top: 0;
}

.admin-brand {
  align-items: center;
  color: #fff;
  display: flex;
  gap: .7rem;
  font-size: 1.05rem;
  font-weight: 900;
  min-height: 44px;
}

.admin-brand img {
  height: 34px;
  object-fit: contain;
  width: 34px;
}

.admin-side-nav {
  display: grid;
  gap: .25rem;
  overflow-y: auto;
  padding-right: .15rem;
}

.admin-side-nav a,
.admin-mobile-menu nav a {
  border-radius: 8px;
  color: inherit;
  font-weight: 800;
}

.admin-side-nav a {
  padding: .72rem .85rem;
}

.admin-nav-group {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: .25rem;
}

.admin-nav-group summary {
  align-items: center;
  border-radius: 8px;
  color: #9fb3c8;
  cursor: pointer;
  display: flex;
  font-size: .76rem;
  font-weight: 900;
  justify-content: space-between;
  letter-spacing: .02em;
  list-style: none;
  min-height: 34px;
  padding: .45rem .85rem;
  text-transform: uppercase;
}

.admin-nav-group summary::-webkit-details-marker {
  display: none;
}

.admin-nav-group summary::after {
  color: #dce7ef;
  content: "+";
  font-size: 1rem;
  line-height: 1;
}

.admin-nav-group[open] summary::after {
  content: "-";
}

.admin-nav-group summary:hover,
.admin-nav-group summary:focus {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.admin-nav-group div {
  display: grid;
  gap: .18rem;
  padding: .12rem 0 .35rem;
}

.admin-nav-group .is-active {
  color: #fff;
}

.admin-side-nav a:hover,
.admin-side-nav a:focus,
.admin-side-nav a.is-active {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.admin-side-nav a.is-active {
  box-shadow: inset 3px 0 0 var(--accent);
}

.admin-sidebar-card {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  display: grid;
  gap: .15rem;
  padding: .85rem;
}

.admin-sidebar-card span,
.admin-sidebar-card small,
.admin-topbar-title span {
  color: #9fb3c8;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-sidebar-card strong {
  color: #fff;
}

.admin-workspace {
  min-width: 0;
}

.admin-topbar {
  align-items: center;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-height: 66px;
  padding: .75rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.admin-topbar-title {
  display: grid;
  min-width: 0;
}

.admin-topbar-title strong {
  color: var(--ink);
  font-size: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-topbar-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: flex-end;
}

.admin-topbar-actions a,
.admin-topbar-actions button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--primary-dark);
  font-size: .82rem;
  font-weight: 900;
  min-height: 36px;
  padding: .45rem .65rem;
}

.admin-topbar-actions form {
  margin: 0;
}

.admin-topbar-actions button {
  color: var(--danger);
}

.admin-mobile-menu {
  display: none;
}

.admin-main {
  min-width: 0;
}

.admin-bottom-nav {
  display: none;
}

@media (max-width: 1199px) {
  .admin-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .admin-topbar-actions a:nth-child(n+3) {
    display: none;
  }
}

@media (max-width: 991px) {
  .admin-layout-body {
    padding-bottom: 3.4rem;
  }

  .admin-shell {
    display: block;
  }

  .admin-sidebar {
    display: none;
  }

  .admin-topbar {
    align-items: stretch;
    flex-wrap: wrap;
    gap: .75rem;
    padding: .75rem;
  }

  .admin-mobile-menu {
    display: block;
    order: 1;
  }

  .admin-mobile-menu summary {
    background: #071d2a;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-weight: 900;
    list-style: none;
    min-height: 40px;
    padding: .55rem .8rem;
  }

  .admin-mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .admin-mobile-menu nav {
    background: #071d2a;
    border-radius: 8px;
    display: grid;
    gap: .2rem;
    margin-top: .45rem;
    min-width: min(86vw, 320px);
    padding: .45rem;
    position: absolute;
    z-index: 1040;
  }

  .admin-mobile-menu nav a {
    color: #dce7ef;
    padding: .65rem .75rem;
  }

  .admin-mobile-menu .admin-nav-group {
    border-top-color: rgba(255, 255, 255, .08);
  }

  .admin-mobile-menu .admin-nav-group summary {
    color: #9fb3c8;
    min-height: 36px;
    padding: .55rem .75rem;
  }

  .admin-mobile-menu .admin-nav-group div {
    padding: .1rem 0 .45rem .35rem;
  }

  .admin-mobile-menu nav a.is-active,
  .admin-mobile-menu nav a:hover,
  .admin-mobile-menu nav a:focus {
    background: rgba(255, 255, 255, .1);
    color: #fff;
  }

  .admin-topbar-title {
    flex: 1;
    min-width: 0;
    order: 2;
  }

  .admin-topbar-actions {
    display: none;
  }

  .admin-layout-body .dashboard-band {
    padding-top: 1rem;
  }

  .admin-layout-body .dashboard-band > .container-xl {
    padding-left: .85rem;
    padding-right: .85rem;
  }

  .admin-bottom-nav {
    background: #fff;
    border-top: 1px solid var(--line);
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    left: 0;
    position: fixed;
    right: 0;
    z-index: 1030;
  }

  .admin-bottom-nav a,
  .admin-bottom-nav button {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--muted);
    display: flex;
    font-size: .76rem;
    font-weight: 800;
    justify-content: center;
    min-height: 48px;
    min-width: 0;
    padding: .35rem .2rem;
    text-align: center;
  }

  .admin-bottom-nav a.is-active,
  .admin-bottom-nav button.is-active {
    color: var(--primary-dark);
  }
}

@media (max-width: 575px) {
  .admin-layout-body .dashboard-band > .container-xl {
    padding-left: .75rem;
    padding-right: .75rem;
  }

  .admin-topbar-title strong {
    font-size: .95rem;
  }

  .admin-layout-body .dashboard-band .dashboard-heading {
    padding: .9rem;
  }
}
