:root {
  --bg: #eaf8ff;
  --surface: #ffffff;
  --surface-2: #e5f6ff;
  --ink: #18323f;
  --muted: #55717f;
  --line: #afd9ef;
  --primary: #57c928;
  --primary-dark: #267a20;
  --secondary: #ff8a00;
  --secondary-dark: #d95d00;
  --accent: #e32636;
  --yellow: #ffb000;
  --green-soft: #ecffd9;
  --shadow: 0 14px 42px rgba(37, 150, 190, 0.16);
  --shadow-strong: 0 22px 64px rgba(227, 38, 54, 0.18);
}
/* Sprint 3 customer marketplace UI */
body {
  background: #f4fbf7;
}

.market-home-header,
.market-controls,
.market-hero,
.shops-explorer-shell,
.local-shop-card,
.local-product-card {
  letter-spacing: 0;
}

#shopView.active {
  display: block;
}

#shopView .shop-layout,
.shops-explorer-shell {
  max-width: 1120px;
  margin: 0 auto;
}

#shopView .shop-layout {
  gap: 16px;
}

.market-cart-panel {
  display: none;
}

.market-home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(13, 93, 85, 0.12);
  border-radius: 14px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(13, 93, 85, 0.08);
}

.market-home-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.market-home-title .brand-mark {
  background: #0d5d55;
  color: #ffffff;
}

.market-home-title h1 {
  margin: 0;
  color: #093f3a;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.05;
}

.market-home-title span {
  display: block;
  margin-top: 4px;
  color: #536760;
  font-size: 14px;
  font-weight: 800;
}

.notification-btn {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(245, 130, 32, 0.22);
  border-radius: 999px;
  background: #fff7ed;
  color: transparent;
  cursor: pointer;
}

.notification-btn::before {
  content: "🔔";
  color: #f58220;
  font-size: 18px;
}

.market-controls {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(220px, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(13, 93, 85, 0.1);
  border-radius: 14px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(13, 93, 85, 0.06);
}

.market-controls #categorySelect {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.market-location-chip {
  appearance: none;
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid rgba(13, 93, 85, 0.16);
  border-radius: 999px;
  padding: 10px 14px;
  background: #effaf5;
  color: #093f3a;
  cursor: pointer;
  text-align: left;
}

.market-location-chip span {
  color: #5d756e;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.market-location-chip strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-controls input[type="search"] {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(13, 93, 85, 0.14);
  border-radius: 999px;
  padding: 0 16px;
  background: #ffffff;
  color: #132522;
  font-size: 14px;
  outline: none;
}

.market-controls input[type="search"]:focus {
  border-color: #0d5d55;
  box-shadow: 0 0 0 4px rgba(13, 93, 85, 0.1);
}

.market-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 172px;
  border-radius: 14px;
  padding: 22px;
  background:
    linear-gradient(135deg, #0d5d55 0%, #0b4b45 62%, #f58220 160%);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(13, 93, 85, 0.2);
}

.market-hero .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.market-hero h2 {
  margin: 4px 0 6px;
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1;
}

.market-hero span {
  display: block;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
}

.hero-cta,
.text-link-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.hero-cta {
  min-width: 122px;
  padding: 12px 18px;
  background: #f58220;
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(245, 130, 32, 0.28);
}

.text-link-button {
  padding: 8px 12px;
  background: #fff7ed;
  color: #be5a05;
}

.category-rail {
  grid-auto-columns: minmax(96px, 132px);
  padding: 4px 2px 12px;
}

.category-chip {
  border-color: rgba(13, 93, 85, 0.13);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(13, 93, 85, 0.06);
}

.category-chip span {
  background: #effaf5;
  color: #0d5d55;
}

.category-chip.active {
  border-color: rgba(245, 130, 32, 0.38);
  background: #fff7ed;
  color: #9f4b04;
}

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

.local-shop-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid rgba(13, 93, 85, 0.12);
  border-radius: 14px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(13, 93, 85, 0.08);
  cursor: pointer;
}

.local-shop-card:hover {
  transform: translateY(-1px);
}

.shop-thumb {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 14px;
  background: #e4f6ef;
  color: #0d5d55;
  font-weight: 1000;
}

.shop-card-body {
  min-width: 0;
}

.shop-card-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}

.shop-card-title h3 {
  margin: 0;
  color: #102522;
  font-size: 15px;
  line-height: 1.2;
}

.shop-card-title span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 3px 7px;
  background: #effaf5;
  color: #0d5d55;
  font-size: 11px;
  font-weight: 900;
}

.shop-card-body p {
  margin: 4px 0 8px;
  color: #5d756e;
  font-size: 12px;
  font-weight: 800;
}

.shop-card-meta,
.shop-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.shop-card-meta span,
.shop-badge-row span,
.trust-row span {
  border-radius: 999px;
  padding: 4px 7px;
  background: #f4fbf7;
  color: #435d56;
  font-size: 10px;
  font-weight: 900;
}

.shop-badge-row span {
  background: #fff7ed;
  color: #be5a05;
}

.local-product-card {
  border-color: rgba(13, 93, 85, 0.12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(13, 93, 85, 0.08);
}

.local-product-card .limited-ribbon {
  background: #0d5d55;
}

.local-product-card .discount-badge {
  background: #f58220;
}

.local-product-card .product-media {
  min-height: 142px;
}

.local-product-card .product-body h3 {
  min-height: 38px;
  font-size: 15px;
}

.local-product-card .review-summary {
  display: none;
}

.local-product-card .sale-price {
  color: #0d5d55;
}

.view-mini {
  background: #f58220;
  color: #ffffff;
}

.shops-explorer-shell {
  display: grid;
  gap: 14px;
  padding-bottom: 22px;
}

.shops-page-header {
  margin-bottom: 0;
}

.back-chip {
  border: 1px solid rgba(13, 93, 85, 0.16);
  border-radius: 999px;
  padding: 8px 12px;
  background: #effaf5;
  color: #0d5d55;
  cursor: pointer;
  font-weight: 900;
}

.shops-controls {
  grid-template-columns: minmax(130px, 190px) minmax(130px, 190px) minmax(220px, 1fr);
}

.area-chip-row,
.shop-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 8px;
}

.area-chip-row button,
.shop-tabs button {
  flex: 0 0 auto;
  border: 1px solid rgba(13, 93, 85, 0.14);
  border-radius: 999px;
  padding: 9px 12px;
  background: #ffffff;
  color: #33534c;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.area-chip-row button.active,
.shop-tabs button.active {
  border-color: rgba(245, 130, 32, 0.42);
  background: #fff7ed;
  color: #be5a05;
}

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

@media (max-width: 980px) {
  .shop-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  body {
    background: #f4fbf7;
  }

  #shopView .shop-layout,
  .shops-explorer-shell {
    padding: 10px 10px 0;
  }

  .market-home-header {
    border-radius: 14px;
    padding: 12px;
  }

  .market-home-title h1 {
    font-size: 24px;
  }

  .market-home-title span {
    font-size: 12px;
  }

  .market-controls,
  .shops-controls {
    grid-template-columns: 1fr;
  }

  .market-hero {
    align-items: stretch;
    flex-direction: column;
    min-height: 0;
    padding: 18px;
  }

  .hero-cta {
    width: fit-content;
  }

  .shop-card-grid,
  .shop-card-grid.explorer {
    grid-template-columns: 1fr;
  }

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

  .local-product-card .product-media {
    min-height: 118px;
  }

  .local-product-card .product-body {
    padding: 10px;
  }

  .local-product-card .trust-row {
    gap: 4px;
  }

  .local-product-card .trust-row span {
    font-size: 9px;
  }

  .nav-item[data-view="shops"]::before {
    content: "▤";
  }

  .nav-item[data-view="orders"]::before {
    content: "▱";
  }

  .nav-item[data-view="account"]::before {
    content: "●";
  }

  .nav-item.active,
  .nav-item:hover {
    background: #effaf5;
    color: #0d5d55;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(216, 27, 96, 0.12), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(106, 27, 154, 0.1), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 52%, #ffffff 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.auth-checking {
  overflow: hidden;
}

body.auth-checking .app-shell,
body.auth-checking .login-screen {
  visibility: hidden;
}

.opening-splash {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(216, 27, 96, 0.12), transparent 18%),
    radial-gradient(circle at 92% 18%, rgba(216, 27, 96, 0.1), transparent 17%),
    linear-gradient(180deg, #fff 0%, #fff5fa 72%, #ffd9ea 100%);
}

body.auth-checking .opening-splash {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.splash-brand {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 48px 20px 0;
  text-align: center;
}

.splash-bag {
  position: relative;
  display: grid;
  width: 76px;
  height: 68px;
  place-items: center;
  transform: rotate(4deg);
  border-radius: 10px 10px 16px 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  font-size: 38px;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(216, 27, 96, 0.22);
}

.splash-bag::before {
  position: absolute;
  top: -22px;
  width: 34px;
  height: 26px;
  border: 6px solid var(--primary);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  content: "";
}

.splash-brand h1 {
  margin: 6px 0 0;
  color: var(--primary);
  font-size: 44px;
  line-height: 1;
}

.splash-brand p {
  margin: 0;
  color: var(--secondary);
  font-size: 15px;
  font-style: italic;
  font-weight: 900;
}

.splash-model {
  position: relative;
  z-index: 1;
  align-self: end;
  width: min(82vw, 360px);
  height: min(54vh, 470px);
  justify-self: center;
  margin-top: 12px;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 68%, rgba(255, 245, 250, 0.92) 100%),
    url("assets/local-online-shop-model.jpeg");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 30px 30px 0 0;
  filter: drop-shadow(0 18px 28px rgba(80, 31, 88, 0.18));
}

.splash-promise-card {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 18px;
  margin: -34px 18px 24px;
  border: 1px solid rgba(216, 27, 96, 0.12);
  border-radius: 24px;
  padding: 18px 14px 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 38px rgba(80, 31, 88, 0.14);
  backdrop-filter: blur(14px);
  text-align: center;
}

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

.splash-benefits span {
  display: grid;
  gap: 3px;
  min-width: 0;
  border-right: 1px solid rgba(216, 27, 96, 0.12);
  color: var(--ink);
}

.splash-benefits span:last-child {
  border-right: 0;
}

.splash-benefits span::before {
  color: var(--primary);
  font-size: 22px;
  line-height: 1;
}

.splash-benefits span:nth-child(1)::before {
  content: "▣";
}

.splash-benefits span:nth-child(2)::before {
  content: "▸";
}

.splash-benefits span:nth-child(3)::before {
  content: "▱";
}

.splash-benefits strong {
  overflow-wrap: anywhere;
  font-size: 10px;
}

.splash-benefits small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.splash-promise-card h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.28;
}

.splash-promise-card b {
  color: var(--primary);
}

.splash-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
}

.splash-dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #f3c3d8;
}

.splash-dots span:first-child {
  background: var(--primary);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.login-screen {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(246, 247, 244, 0.96);
  z-index: 30;
}

.login-screen.hidden {
  display: none;
}

.login-card {
  display: grid;
  gap: 22px;
  width: min(460px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.side-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  background: linear-gradient(180deg, #3f0f5f 0%, #6a1b9a 42%, #d81b60 150%);
  color: #fff;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #d81b60 0%, #6a1b9a 100%);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(216, 27, 96, 0.22);
}

.brand-mark::before {
  position: absolute;
  top: -6px;
  left: 12px;
  width: 18px;
  height: 12px;
  border: 3px solid currentColor;
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  content: "";
  opacity: 0.9;
}

.brand-block span,
.quick-stat small,
.quick-stat span {
  display: block;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.brand-block.dark span {
  color: var(--muted);
}

.side-nav nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  border: 0;
  border-radius: 8px;
  padding: 12px 14px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  text-align: left;
  transition: background 160ms ease, transform 160ms ease, color 160ms ease;
}

.nav-item.active,
.nav-item:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transform: translateX(2px);
}

.nav-item[hidden] {
  display: none;
}

.quick-stat {
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 16px;
}

.quick-stat strong {
  display: block;
  margin: 4px 0;
  font-size: 28px;
}

main {
  min-width: 0;
  padding: 30px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(106, 27, 154, 0.97) 0%, rgba(216, 27, 96, 0.96) 64%, rgba(255, 87, 34, 0.9) 150%),
    var(--secondary);
  color: #fff;
  box-shadow: 0 24px 70px rgba(106, 27, 154, 0.24);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.topbar .eyebrow {
  color: #ffe082;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  max-width: 840px;
}

.topbar h1 {
  color: #fff;
}

h2 {
  margin-bottom: 0;
  font-size: 20px;
}

.top-actions,
.payment-row,
.coupon-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.payment-row label.disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.language-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.topbar .language-toggle {
  color: rgba(255, 255, 255, 0.86);
}

.user-chip {
  max-width: 190px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar .user-chip,
.topbar .secondary-action {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.topbar .primary-action {
  background: #ffd54f;
  color: #17243a;
}

.topbar .primary-action:hover {
  background: #ffb300;
  color: #17243a;
}

.primary-action,
.secondary-action {
  border: 0;
  border-radius: 8px;
  min-height: 42px;
  padding: 0 16px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-action {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
}

.primary-action:hover {
  background: var(--primary-dark);
  box-shadow: 0 12px 28px rgba(216, 27, 96, 0.26);
  transform: translateY(-1px);
}

.secondary-action {
  background: linear-gradient(135deg, var(--surface-2) 0%, #f7fbf9 100%);
  color: var(--primary-dark);
}

.full {
  width: 100%;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

#shopView.active {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.shop-layout {
  display: grid;
  gap: 14px;
}

.shop-appbar {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(216, 27, 96, 0.14);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(80, 31, 88, 0.08);
}

.shop-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.shop-brand strong,
.shop-brand span {
  display: block;
}

.shop-brand span,
.location-chip span,
.cart-shortcut span {
  color: var(--muted);
  font-size: 12px;
}

.location-chip,
.cart-shortcut {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.location-chip strong {
  display: block;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-shortcut {
  position: relative;
  min-width: 64px;
  text-align: center;
}

.cart-shortcut strong {
  position: absolute;
  top: -8px;
  right: -7px;
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
}

.campaign-strip,
.cart-panel,
.work-panel,
.metric-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.campaign-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, #fff8fb 0%, #fff 50%, #f5e6ff 100%);
  border-color: #f1c4d8;
  border-left: 7px solid var(--primary);
}

.campaign-strip::after {
  content: "CITY FLASH SALE";
  position: absolute;
  right: 22px;
  bottom: 12px;
  color: rgba(216, 27, 96, 0.08);
  font-size: 34px;
  font-weight: 900;
  pointer-events: none;
}

.campaign-strip p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.timer-box {
  min-width: 150px;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--primary-dark) 100%);
  color: #fff;
  text-align: center;
}

.timer-box span {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.timer-box strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
}

.filters {
  display: grid;
  grid-template-columns: 170px 190px minmax(160px, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 32px rgba(80, 31, 88, 0.05);
}

.category-rail,
.offer-carousel {
  display: grid;
  grid-auto-flow: column;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 2px 12px 10px 2px;
  scrollbar-width: none;
}

.category-rail {
  grid-auto-columns: clamp(84px, 10vw, 108px);
}

.offer-carousel {
  grid-auto-columns: minmax(270px, 1fr);
}

.category-rail::-webkit-scrollbar,
.offer-carousel::-webkit-scrollbar {
  display: none;
}

.category-row {
  display: contents;
}

.category-chip {
  width: 100%;
  min-width: 0;
  appearance: none;
  display: grid;
  justify-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  box-shadow: 0 10px 24px rgba(80, 31, 88, 0.06);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.category-chip span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #fce4ec 0%, #f3e5f5 100%);
  color: var(--secondary);
  font-size: 13px;
  font-weight: 900;
}

.category-chip strong {
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-chip.active {
  border-color: rgba(216, 27, 96, 0.48);
  background: linear-gradient(135deg, #fff0f6 0%, #f7e6ff 100%);
}

.category-chip:hover {
  border-color: rgba(216, 27, 96, 0.36);
  box-shadow: 0 14px 28px rgba(80, 31, 88, 0.11);
  transform: translateY(-1px);
}

.category-chip:active {
  transform: translateY(0);
}

.category-chip.active strong {
  color: var(--primary-dark);
}

.offer-card {
  display: grid;
  gap: 4px;
  min-width: 0;
  appearance: none;
  border: 1px solid rgba(216, 27, 96, 0.16);
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #fff0f6 100%);
  box-shadow: 0 12px 30px rgba(80, 31, 88, 0.08);
  color: var(--ink);
  cursor: default;
  font: inherit;
  text-align: left;
}

button.offer-card {
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

button.offer-card:hover {
  border-color: rgba(216, 27, 96, 0.42);
  box-shadow: 0 16px 36px rgba(80, 31, 88, 0.13);
  transform: translateY(-2px);
}

button.offer-card:active {
  transform: translateY(0);
}

button.offer-card:focus-visible {
  outline: 3px solid rgba(216, 27, 96, 0.22);
  outline-offset: 2px;
}

.offer-card.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, #fff0f6 0%, #f6e6ff 100%);
  box-shadow: 0 0 0 3px rgba(216, 27, 96, 0.12), 0 16px 36px rgba(80, 31, 88, 0.13);
}

.offer-card.selected::after {
  content: "Selected";
  justify-self: start;
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.offer-card.primary {
  background: linear-gradient(135deg, #d81b60 0%, #6a1b9a 74%, #ff5722 160%);
  color: #fff;
}

.offer-card.warm {
  background: linear-gradient(135deg, #fff4e9 0%, #ffe0d6 100%);
}

.offer-card span,
.offer-card small {
  color: inherit;
  opacity: 0.78;
  font-size: 12px;
}

.offer-card strong {
  overflow-wrap: anywhere;
  font-size: 18px;
  line-height: 1.24;
}

.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.section-title-row span {
  color: var(--muted);
  font-size: 12px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 12px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(216, 27, 96, 0.13);
}

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

.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #f0d6e4;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(80, 31, 88, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-card::before {
  display: none;
}

.product-card:hover {
  border-color: rgba(216, 27, 96, 0.32);
  box-shadow: var(--shadow-strong);
  transform: translateY(-3px);
}

.limited-ribbon {
  display: grid;
  min-height: 24px;
  place-items: center;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-media {
  display: grid;
  aspect-ratio: 1 / 1;
  min-height: 0;
  place-items: center;
  position: relative;
  margin: 7px 7px 0;
  overflow: hidden;
  border: 1px solid #eed4e4;
  border-radius: 12px;
  background: var(--media-bg, #fff0f6);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  color: rgba(23, 33, 31, 0.72);
  font-size: 30px;
  font-weight: 900;
  box-shadow: inset 0 0 0 5px #fff, 0 8px 20px rgba(80, 31, 88, 0.06);
}

.product-media.has-image {
  background-color: #fff;
  background-origin: content-box;
  padding: 6px;
  color: transparent;
}

.product-body {
  padding: 9px 9px 10px;
}

.product-body h3 {
  display: -webkit-box;
  min-height: 36px;
  margin: 0 0 4px;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.discount-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  border-radius: 999px;
  padding: 4px 7px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  z-index: 2;
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 7px;
  overflow: hidden;
  white-space: nowrap;
}

.trust-row span {
  border-radius: 999px;
  padding: 3px 6px;
  background: #fff5f2;
  color: #7c3b26;
  font-size: 9px;
  font-weight: 800;
}

.trust-row .rating-pill {
  background: #eef7ee;
  color: #1f7a37;
}

.review-summary {
  display: grid;
  gap: 3px;
  margin-top: 7px;
  border-radius: 8px;
  padding: 7px;
  background: #fffaf0;
  color: #5e4420;
}

.review-summary strong {
  font-size: 11px;
}

.review-summary span {
  color: #f59e0b;
  font-size: 13px;
  letter-spacing: 0;
}

.review-summary small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag-row,
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pill {
  border-radius: 999px;
  padding: 5px 10px;
  background: #fff0f6;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
}

.price-row {
  margin: 8px 0;
}

.mrp {
  color: var(--muted);
  font-size: 12px;
  text-decoration: line-through;
}

.sale-price {
  color: var(--ink);
  font-size: 19px;
  font-weight: 900;
}

.product-meta {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-row strong {
  color: var(--primary-dark);
  font-size: 11px;
}

.stock {
  border-radius: 999px;
  padding: 4px 7px;
  background: #ffe9e4;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wish-mini {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(216, 27, 96, 0.24);
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-size: 18px;
  font-weight: 900;
}

.wish-mini.saved {
  background: #fff0f6;
  border-color: rgba(216, 27, 96, 0.5);
}

.add-mini {
  min-width: 58px;
  border: 0;
  border-radius: 999px;
  padding: 8px 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.product-detail-shell {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-detail-topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.detail-top-actions {
  display: flex;
  gap: 8px;
}

.detail-icon-btn {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
}

.detail-icon-btn.saved {
  border-color: rgba(216, 27, 96, 0.42);
  background: #fff0f6;
  color: var(--primary);
}

.product-detail-media {
  position: relative;
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: center;
  background: var(--media-bg, #fff0f6);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  color: rgba(106, 27, 154, 0.26);
  font-size: 88px;
  font-weight: 900;
}

.product-detail-media.has-image {
  background-color: #fff;
  background-origin: content-box;
  padding: 16px;
  color: transparent;
}

.product-detail-media strong {
  position: absolute;
  top: 14px;
  left: 14px;
  border-radius: 8px;
  padding: 7px 9px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
}

.product-detail-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.detail-title-row,
.detail-price-row,
.detail-rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-title-row {
  justify-content: space-between;
  align-items: start;
}

.detail-title-row h2 {
  margin: 2px 0 0;
  font-size: 24px;
  line-height: 1.18;
}

.trusted-seller {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 8px;
  background: #f5edff;
  color: var(--secondary);
  font-size: 11px;
  font-weight: 900;
}

.detail-price-row strong {
  color: var(--primary);
  font-size: 28px;
  font-weight: 900;
}

.detail-price-row span {
  color: var(--muted);
  text-decoration: line-through;
}

.detail-price-row b {
  color: var(--accent);
  font-size: 13px;
}

.detail-rating-row {
  flex-wrap: wrap;
}

.detail-rating-row span,
.detail-badge-row span {
  border-radius: 999px;
  padding: 5px 8px;
  background: #eef8f2;
  color: #1f7a37;
  font-size: 12px;
  font-weight: 900;
}

.detail-rating-row small {
  color: var(--muted);
}

.detail-delivery-card,
.detail-coupon-card,
.detail-section {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.detail-delivery-card {
  display: grid;
  gap: 10px;
  background: linear-gradient(135deg, #fff 0%, #fff6fa 100%);
}

.detail-delivery-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.detail-delivery-card button {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 900;
}

.detail-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.detail-coupon-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #fff0f6 0%, #f5e6ff 100%);
}

.detail-coupon-card span {
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: var(--primary);
  font-weight: 900;
}

.detail-section {
  display: grid;
  gap: 9px;
}

.detail-section h3 {
  margin: 0;
  font-size: 16px;
}

.detail-section ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.detail-stars {
  color: #f59e0b;
  font-size: 20px;
}

.detail-review {
  display: grid;
  gap: 3px;
  border-top: 1px solid var(--line);
  padding-top: 9px;
}

.detail-review span {
  color: #f59e0b;
}

.detail-review small {
  color: var(--muted);
}

.product-detail-actions {
  position: sticky;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
}

.product-detail-empty {
  display: grid;
  gap: 8px;
  min-height: 320px;
  place-items: center;
  padding: 24px;
  text-align: center;
}

.cart-panel {
  position: sticky;
  top: 20px;
  padding: 20px;
  border-color: var(--line);
  border-top: 6px solid var(--primary);
  box-shadow: -12px 0 50px rgba(80, 31, 88, 0.08);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.panel-heading span {
  color: var(--muted);
  font-size: 13px;
}

.cart-items,
.order-list,
.campaign-list {
  display: grid;
  gap: 10px;
}

.cart-empty {
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.order-success {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  border: 1px solid rgba(216, 27, 96, 0.22);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(135deg, #fff0f6 0%, #fff7ea 100%);
  color: var(--ink);
}

.order-success strong {
  color: var(--primary-dark);
}

.order-success span,
.order-success small {
  color: var(--muted);
}

.cart-line,
.order-card,
.campaign-item {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(23, 33, 31, 0.04);
}

.line-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-controls button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.checkout-summary {
  display: grid;
  gap: 8px;
  padding: 16px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff9fc;
}

.checkout-summary div {
  display: flex;
  justify-content: space-between;
}

.checkout-form,
.stack-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.field-with-status {
  display: grid;
  gap: 5px;
}

.field-with-status small {
  min-height: 17px;
  color: var(--muted);
  font-size: 12px;
}

.field-with-status small.success {
  color: var(--primary-dark);
}

.field-with-status small.error {
  color: var(--accent);
}

.manual-price-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.manual-price-toggle input {
  width: auto;
}

.image-preview {
  display: grid;
  aspect-ratio: 4 / 3;
  min-height: 160px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #cfded8;
  border-radius: 8px;
  background: var(--surface-2);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  color: var(--muted);
  font-weight: 800;
  box-shadow: inset 0 0 0 4px #fff;
}

.image-preview.has-image {
  background-color: #fff;
  background-origin: content-box;
  padding: 8px;
  color: transparent;
}

.admin-product-list {
  display: grid;
  gap: 10px;
}

.admin-product-row {
  display: grid;
  grid-template-columns: 64px minmax(160px, 1fr) 100px 100px auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.admin-thumb {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-2);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--primary-dark);
  font-weight: 900;
}

.admin-thumb[style*="background-image"] {
  border: 1px solid #cfded8;
  background-color: #fff;
  background-origin: content-box;
  background-size: contain;
  box-shadow: inset 0 0 0 3px #fff;
  padding: 4px;
}

.admin-product-row input {
  min-width: 0;
}

.category-admin-row {
  grid-template-columns: 64px minmax(160px, 1fr) auto auto;
}

.category-status {
  justify-self: start;
  border-radius: 999px;
  padding: 7px 10px;
  background: #eef8f2;
  color: #1f7a3d;
  font-size: 12px;
  font-weight: 900;
}

.category-status.off {
  background: #f3f0f6;
  color: var(--muted);
}

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

.review-form {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fffaf0;
}

.review-form strong,
.review-form small {
  display: block;
}

.review-form textarea {
  min-height: 72px;
  resize: vertical;
}

.star-input {
  display: flex;
  gap: 4px;
}

.star-input label {
  display: grid;
  cursor: pointer;
}

.star-input input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.star-input span {
  border-radius: 6px;
  padding: 2px 4px;
  color: #f59e0b;
  font-size: 22px;
  line-height: 1;
}

.review-waiting {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.danger-action {
  border: 0;
  border-radius: 8px;
  min-height: 38px;
  padding: 0 12px;
  background: #ffe4df;
  color: #a83224;
  font-weight: 800;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 8px;
  padding: 0 10px;
  background: #e5f7eb;
  color: #146c3d;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.ghost-link {
  color: var(--primary-dark);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

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

.metric-grid article {
  padding: 18px;
  transition: transform 180ms ease, box-shadow 180ms ease;
  border-top: 5px solid var(--primary);
}

.metric-grid article:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-2px);
}

.metric-grid span,
.muted {
  color: var(--muted);
}

.metric-grid strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 30px;
}

.admin-grid,
.delivery-layout,
.marketing-grid,
.studio-layout,
.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

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

.account-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 7px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.account-tabs button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: #f5faf8;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.account-tabs button.active {
  border-color: rgba(13, 93, 85, 0.22);
  background: linear-gradient(135deg, #0d6a60, #f58220);
  color: #ffffff;
}

.account-page {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
}

.account-page .stack-form,
.account-page .profile-action-grid,
.account-page .policy-link-row {
  max-width: 680px;
  margin-inline: auto;
}

.location-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 560px);
  justify-self: center;
  border: 1px solid rgba(13, 93, 85, 0.16);
  border-radius: 16px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(13, 93, 85, 0.12);
}

.location-picker[hidden] {
  display: none !important;
}

.location-picker label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.location-picker select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 10px;
  background: #f8fbfa;
  color: var(--ink);
  font: inherit;
}

.admin-profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: #f8fbfa;
}

.admin-profile-card > div:first-child {
  display: grid;
  gap: 5px;
}

.admin-profile-card span,
.admin-profile-card small {
  color: var(--muted);
}

.admin-profile-card strong {
  font-size: 20px;
}

.admin-create-form {
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.admin-create-form > small {
  color: var(--muted);
  line-height: 1.5;
}

.admin-account-item {
  align-items: center;
}

.role-profile-form[hidden],
.admin-profile-summary[hidden],
.account-page[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .location-picker,
  .account-tabs {
    grid-template-columns: 1fr;
  }

  .admin-profile-card {
    align-items: stretch;
    flex-direction: column;
  }

  .account-page .two-col {
    grid-template-columns: 1fr;
  }
}

.studio-layout {
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
}

.studio-form-panel {
  position: sticky;
  top: 20px;
}

.channel-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fbf9;
}

.channel-picker label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.channel-picker input {
  width: auto;
}

.studio-empty {
  display: grid;
  gap: 8px;
  min-height: 220px;
  place-content: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #fbfdfb;
  color: var(--muted);
  text-align: center;
}

.studio-empty strong {
  color: var(--ink);
  font-size: 20px;
}

.studio-loading {
  border-style: solid;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.62)),
    #edf7f3;
  background-size: 220% 100%;
  animation: studioPulse 1.5s linear infinite;
}

.studio-error {
  border-color: #f1b8ad;
  background: #fff5f2;
}

.studio-results {
  display: grid;
  gap: 16px;
}

.studio-concept,
.copy-grid article,
.studio-split article,
.image-results article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(23, 33, 31, 0.05);
}

.studio-concept {
  padding: 18px;
  border-left: 6px solid var(--primary);
}

.studio-concept h3,
.copy-grid h3,
.studio-split h3 {
  margin: 0 0 8px;
}

.studio-concept p {
  color: var(--muted);
}

.studio-insights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.studio-insights span,
.prompt-block {
  display: grid;
  gap: 5px;
  border-radius: 8px;
  padding: 12px;
  background: #f7fbf9;
  color: var(--muted);
}

.studio-insights strong,
.prompt-block strong {
  color: var(--ink);
}

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

.copy-grid article {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.copy-grid span {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.copy-grid p,
.copy-grid small,
.prompt-block p,
.studio-split li {
  color: var(--muted);
}

.studio-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.studio-split article {
  padding: 16px;
}

.studio-split ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.prompt-block + .prompt-block {
  margin-top: 10px;
}

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

.image-results article {
  overflow: hidden;
}

.image-results img,
.image-missing {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #edf3f1;
  object-fit: cover;
}

.image-missing {
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.image-results strong {
  display: block;
  padding: 12px 14px;
}

@keyframes studioPulse {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 220% 0;
  }
}

.work-panel {
  padding: 20px;
  border-color: #d6e2dd;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.status-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.status-track span {
  min-height: 8px;
  border-radius: 999px;
  background: var(--line);
}

.status-track span.done {
  background: var(--primary);
}

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

.order-actions button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
}

.partner-card {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  padding: 16px;
  border-radius: 8px;
  background: var(--surface-2);
}

.route-bars {
  display: grid;
  gap: 7px;
}

.route-bars i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
}

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

.tool-list button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.tool-list button:hover {
  border-color: rgba(15, 118, 110, 0.32);
  background: #f7fbf9;
  transform: translateY(-1px);
}

.qr-box {
  display: grid;
  grid-template-columns: repeat(6, 24px);
  gap: 5px;
  width: max-content;
  padding: 16px;
  margin: 6px 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.qr-box span {
  width: 24px;
  height: 24px;
  border-radius: 3px;
  background: #17211f;
}

.qr-box span:nth-child(2n),
.qr-box span:nth-child(7),
.qr-box span:nth-child(13),
.qr-box span:nth-child(20) {
  background: #fff;
}

.coupon-row {
  justify-content: space-between;
  padding: 12px;
  border-radius: 8px;
  background: #fff6dc;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 32px));
  transform: translateY(120%);
  border-radius: 8px;
  padding: 14px 16px;
  background: #17211f;
  color: #fff;
  box-shadow: var(--shadow);
  transition: transform 180ms ease;
  z-index: 10;
}

.toast.show {
  transform: translateY(0);
}

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

  #shopView.active {
    grid-template-columns: 1fr;
  }

  .cart-panel {
    position: static;
  }
}

@media (max-width: 860px) {
  body {
    min-height: 100vh;
    padding-bottom: 92px;
    background:
      radial-gradient(circle at 0% 0%, rgba(216, 27, 96, 0.16), transparent 34%),
      radial-gradient(circle at 100% 10%, rgba(106, 27, 154, 0.12), transparent 28%),
      linear-gradient(180deg, #fff 0%, #fff6fa 44%, #fff 100%);
  }

  .app-shell {
    display: block;
  }

  .side-nav {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    height: auto;
    padding: 7px max(10px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    border: 1px solid rgba(216, 27, 96, 0.12);
    border-radius: 20px 20px 0 0;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -14px 36px rgba(74, 20, 95, 0.16);
    backdrop-filter: blur(16px);
  }

  .brand-block {
    display: none;
  }

  .side-nav nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
  }

  .nav-item {
    display: grid;
    place-items: center;
    gap: 2px;
    border-radius: 14px;
    color: #53445c;
    text-align: center;
    min-height: 58px;
    padding: 8px 2px 7px;
    font-size: 10px;
    font-weight: 800;
  }

  .nav-item::before {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    color: inherit;
    font-size: 20px;
    line-height: 1;
  }

  .nav-item[data-view="shop"]::before {
    content: "⌂";
  }

  .nav-item[data-scroll-target="categoryRail"]::before {
    content: "▦";
  }

  .nav-item[data-view="wishlist"]::before {
    content: "♡";
  }

  .nav-item[data-view="orders"]::before {
    content: "▱";
  }

  .nav-item[data-view="account"]::before {
    content: "●";
  }

  .nav-item.active,
  .nav-item:hover {
    background: #fff0f6;
    color: var(--primary);
    transform: none;
  }

  .quick-stat {
    display: none;
  }

  main {
    padding: 0 0 18px;
  }

  .topbar {
    display: none;
  }

  .campaign-strip {
    align-items: stretch;
    flex-direction: column;
  }

  #shopView.active {
    display: block;
  }

  .shop-layout {
    gap: 12px;
    max-width: 100vw;
    padding: 10px 10px 0;
    overflow: hidden;
  }

  .shop-appbar {
    position: sticky;
    top: 0;
    z-index: 12;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    border-width: 1px;
    border-radius: 16px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 10px 24px rgba(80, 31, 88, 0.08);
    backdrop-filter: blur(16px);
  }

  .shop-brand .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: 15px;
  }

  .shop-brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand-mark::before {
    top: -5px;
    left: 9px;
    width: 14px;
    height: 9px;
    border-width: 2px;
  }

  .shop-brand strong {
    color: var(--primary);
    font-size: 20px;
    line-height: 1;
  }

  .shop-brand span {
    display: block;
    max-width: 118px;
    overflow: hidden;
    color: var(--secondary);
    font-size: 10px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .location-chip {
    flex: 0 1 96px;
    max-width: none;
    min-height: 38px;
    border-radius: 999px;
    padding: 6px 9px;
    box-shadow: 0 6px 16px rgba(80, 31, 88, 0.06);
  }

  .cart-shortcut {
    flex: 0 0 40px;
    display: grid;
    width: 40px;
    min-width: 40px;
    min-height: 38px;
    place-items: center;
    border-radius: 999px;
    padding: 6px 8px;
    color: transparent;
    overflow: visible;
  }

  .cart-shortcut::before {
    content: "🛒";
    color: var(--ink);
    font-size: 18px;
  }

  .top-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .language-toggle,
  .user-chip,
  .top-actions button {
    justify-content: center;
    min-height: 42px;
  }

  .filters,
  .admin-grid,
  .account-grid,
  .delivery-layout,
  .marketing-grid,
  .studio-layout,
  .metric-grid,
  .admin-product-row {
    grid-template-columns: 1fr;
  }

  .filters {
    position: sticky;
    top: 58px;
    z-index: 9;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    border: 0;
    border-radius: 0;
    padding: 0 0 2px;
    background: transparent;
    box-shadow: none;
  }

  #searchInput {
    grid-column: 1 / -1;
    order: -1;
    min-height: 44px;
    border-radius: 999px;
    padding-left: 42px;
    background:
      linear-gradient(90deg, rgba(216, 27, 96, 0.08), rgba(216, 27, 96, 0) 22px),
      #fff;
    box-shadow: 0 8px 18px rgba(80, 31, 88, 0.07);
  }

  #searchInput::placeholder {
    color: #8a7b91;
  }

  .filters select {
    min-height: 40px;
    border-radius: 999px;
    padding: 9px 34px 9px 12px;
    background-color: #fff;
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
  }

  .category-chip {
    width: auto;
    min-height: 68px;
    border-color: rgba(216, 27, 96, 0.12);
    border-radius: 13px;
    padding: 6px 3px 7px;
    background: linear-gradient(180deg, #fff 0%, #fff8fb 100%);
    box-shadow: 0 8px 18px rgba(80, 31, 88, 0.06);
  }

  .category-rail {
    display: grid !important;
    grid-auto-flow: row !important;
    grid-auto-columns: initial !important;
    grid-template-columns: 1fr !important;
    gap: 8px 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0;
    overflow: hidden !important;
    padding: 2px 0 8px;
  }

  .category-rail > * {
    min-width: 0 !important;
  }

  .category-row {
    display: grid;
    grid-template-columns: repeat(5, 64px);
    justify-content: space-between;
    gap: 4px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .offer-carousel {
    grid-auto-columns: minmax(190px, 62vw);
    gap: 8px;
    margin-right: -10px;
    padding: 2px 10px 8px 1px;
  }

  .category-chip span {
    width: 34px;
    height: 34px;
    background:
      radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.8), transparent 34%),
      linear-gradient(135deg, #ffe0ec 0%, #ede7f6 100%);
    color: var(--primary);
  }

  .category-chip strong {
    color: #44334d;
    font-size: 8.5px;
    line-height: 1.15;
    white-space: normal;
  }

  .category-more span {
    background: #fff0f6;
    color: var(--primary);
    font-size: 18px;
  }

  .offer-card {
    min-height: 108px;
    border: 0;
    border-radius: 16px;
    padding: 13px;
    background:
      radial-gradient(circle at 86% 16%, rgba(255, 255, 255, 0.32), transparent 24%),
      linear-gradient(135deg, #d81b60 0%, #8b1aa4 62%, #ff5722 150%);
    color: #fff;
    box-shadow: 0 14px 30px rgba(106, 27, 154, 0.22);
  }

  .offer-card strong {
    max-width: 170px;
    font-size: 18px;
    letter-spacing: 0;
  }

  .offer-card small,
  .offer-card span {
    max-width: 170px;
  }

  .offer-card.warm {
    background:
      radial-gradient(circle at 86% 16%, rgba(255, 255, 255, 0.42), transparent 24%),
      linear-gradient(135deg, #6a1b9a 0%, #8f2bbd 52%, #ff5722 150%);
    color: #fff;
  }

  .offer-card.primary {
    background:
      radial-gradient(circle at 86% 16%, rgba(255, 255, 255, 0.36), transparent 24%),
      linear-gradient(135deg, #d81b60 0%, #6a1b9a 74%, #ff5722 160%);
  }

  .campaign-strip {
    gap: 12px;
    border: 0;
    border-radius: 16px;
    padding: 14px;
    margin: 8px 0 0;
    background:
      linear-gradient(90deg, rgba(216, 27, 96, 0.08), transparent 40%),
      #fff;
    box-shadow: 0 10px 22px rgba(80, 31, 88, 0.07);
  }

  .campaign-strip > div:first-child {
    min-width: 0;
  }

  .campaign-strip h2,
  .campaign-strip p {
    overflow-wrap: anywhere;
  }

  .campaign-strip::after {
    right: 12px;
    bottom: 8px;
    font-size: 24px;
  }

  .campaign-strip h2 {
    font-size: 18px;
  }

  .campaign-strip p:last-child {
    font-size: 13px;
  }

  .timer-box {
    min-width: 0;
    border-radius: 14px;
    padding: 10px;
  }

  .studio-form-panel {
    position: static;
  }

  .studio-insights,
  .copy-grid,
  .studio-split,
  .image-results,
  .channel-picker {
    grid-template-columns: 1fr;
  }

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

  .product-card {
    width: 100%;
    margin: 0;
    border-color: rgba(216, 27, 96, 0.12);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(80, 31, 88, 0.08);
    cursor: pointer;
  }

  .limited-ribbon {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    min-height: auto;
    border-radius: 999px;
    padding: 4px 7px;
    background: rgba(216, 27, 96, 0.92);
    font-size: 8px;
  }

  .product-media {
    margin: 0;
    border: 0;
    border-radius: 12px 12px 0 0;
    box-shadow: none;
  }

  .product-media.has-image {
    padding: 4px;
  }

  .product-body {
    padding: 8px;
  }

  .product-body h3 {
    min-height: 32px;
    margin-bottom: 3px;
    font-size: 12px;
  }

  .trust-row {
    gap: 3px;
    margin-top: 5px;
  }

  .review-summary {
    display: none;
  }

  .sale-price {
    color: var(--primary);
    font-size: 16px;
  }

  .mrp {
    font-size: 10px;
  }

  .stock {
    max-width: 62px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .wish-mini {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .add-mini {
    min-width: 44px;
    min-height: 30px;
    padding: 6px 8px;
    font-size: 12px;
  }

  .section-title-row {
    align-items: center;
    margin-top: 2px;
  }

  .section-title-row h2 {
    font-size: 18px;
  }

  .section-title-row span {
    max-width: 108px;
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

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

  .cart-panel {
    margin: 14px 10px;
    border: 0;
    border-radius: 18px;
    padding: 14px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(80, 31, 88, 0.1);
  }

  .cart-panel .panel-heading {
    position: relative;
    margin: -14px -14px 12px;
    border-radius: 18px 18px 0 0;
    padding: 16px 14px;
    background: linear-gradient(135deg, #d81b60 0%, #6a1b9a 100%);
    color: #fff;
  }

  .cart-panel .panel-heading span {
    color: rgba(255, 255, 255, 0.82);
  }

  .cart-line {
    border-color: rgba(216, 27, 96, 0.12);
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(80, 31, 88, 0.05);
  }

  .checkout-summary {
    border: 0;
    border-radius: 14px;
    background: #fff8fb;
    box-shadow: inset 0 0 0 1px rgba(216, 27, 96, 0.12);
  }

  .checkout-summary div:last-child {
    border-top: 1px dashed rgba(216, 27, 96, 0.24);
    padding-top: 8px;
  }

  .checkout-summary div:last-child strong {
    color: var(--primary);
    font-size: 20px;
  }

  .checkout-form {
    border-radius: 14px;
    padding: 12px;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(216, 27, 96, 0.12);
  }

  .checkout-form input,
  .checkout-form textarea,
  .checkout-form select {
    border-radius: 12px;
    background: #fffafd;
  }

  .payment-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .payment-row label {
    min-height: 46px;
    border: 1px solid rgba(216, 27, 96, 0.18);
    border-radius: 12px;
    padding: 12px;
    background: #fff;
    font-weight: 900;
  }

  .ghost-link {
    border-radius: 12px;
    padding: 12px;
    background: #eef8f2;
    color: #137a39;
    text-align: center;
    font-weight: 900;
  }

  .login-screen {
    align-items: stretch;
    padding: 0;
    background:
      radial-gradient(circle at 50% 8%, rgba(216, 27, 96, 0.18), transparent 32%),
      linear-gradient(180deg, #fff 0%, #fff0f6 100%);
  }

  .login-card {
    align-content: center;
    width: 100%;
    max-width: none;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    padding: 24px 18px 96px;
    box-shadow: none;
  }

  .login-card .brand-block {
    display: flex;
    justify-content: center;
  }

  .login-card h1 {
    font-size: 25px;
    text-align: center;
  }

  .login-card .muted,
  .login-card .eyebrow {
    text-align: center;
  }

  .login-card input,
  .login-card button {
    border-radius: 14px;
  }

  .work-panel {
    margin: 10px;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(80, 31, 88, 0.08);
  }

  .work-panel .panel-heading {
    margin: -20px -20px 14px;
    border-radius: 18px 18px 0 0;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fff0f6 0%, #f6e6ff 100%);
  }

  .work-panel .panel-heading h2 {
    color: var(--primary-dark);
    font-size: 19px;
  }

  .account-grid,
  #wishlistView .product-grid {
    gap: 10px;
  }

  #wishlistView .work-panel,
  #ordersView .work-panel,
  #accountView .work-panel {
    background: rgba(255, 255, 255, 0.96);
  }

  .stack-form input,
  .stack-form textarea,
  .stack-form select {
    min-height: 46px;
    border-radius: 13px;
    background: #fffafd;
  }

  .campaign-item,
  .order-card {
    border-color: rgba(216, 27, 96, 0.12);
    border-radius: 15px;
    padding: 13px;
    box-shadow: 0 8px 18px rgba(80, 31, 88, 0.06);
  }

  .order-card .line-top,
  .campaign-item .line-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .order-card .line-top strong,
  .campaign-item .line-top strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .status-track {
    gap: 5px;
  }

  .status-track span {
    height: 6px;
    border-radius: 999px;
  }

  .review-form {
    border: 0;
    border-radius: 14px;
    background: #fff8ed;
    box-shadow: inset 0 0 0 1px rgba(255, 87, 34, 0.16);
  }

  .star-input span {
    font-size: 25px;
  }

  .order-actions,
  .compact-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .order-actions button,
  .order-actions a,
  .compact-actions button {
    display: grid;
    min-height: 38px;
    place-items: center;
    border-radius: 10px;
    text-align: center;
    font-size: 11px;
  }

  #wishlistView .card-footer {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  #wishlistView .secondary-action {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 11px;
  }

  .metric-grid {
    margin: 10px;
    gap: 8px;
  }

  .metric-grid article {
    border: 0;
    border-radius: 15px;
    padding: 14px;
    background: linear-gradient(135deg, #fff 0%, #fff0f6 100%);
    box-shadow: 0 8px 18px rgba(80, 31, 88, 0.08);
  }

  .metric-grid article strong {
    color: var(--primary);
    font-size: 23px;
  }

  .admin-grid,
  .delivery-layout,
  .marketing-grid,
  .studio-layout {
    gap: 10px;
  }

  .admin-product-row,
  .category-admin-row {
    border-radius: 14px;
    padding: 12px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(80, 31, 88, 0.06);
  }

  .admin-product-row {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .category-admin-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .compact-actions {
    grid-column: 1 / -1;
  }

  .image-preview {
    min-height: 190px;
    border-radius: 15px;
  }

  .delivery-summary,
  .marketing-tools,
  .studio-output,
  .studio-form-panel {
    border-radius: 16px;
  }

  .tool-list {
    gap: 8px;
  }

  .tool-list button {
    min-height: 44px;
    border-radius: 12px;
    background: #fff8fb;
    font-weight: 900;
  }

  #productDetailView.active {
    display: block;
  }

  .product-detail-shell {
    max-width: none;
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #fff6fa;
    box-shadow: none;
    overflow: visible;
    overflow-x: hidden;
    padding-bottom: 82px;
  }

  .product-detail-topbar {
    top: 0;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    justify-content: stretch;
    justify-items: center;
    width: 100%;
    max-width: 100vw;
    border-bottom: 1px solid rgba(216, 27, 96, 0.12);
    padding: 10px;
  }

  .product-detail-topbar > strong {
    align-self: center;
    min-width: 0;
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .detail-top-actions {
    justify-self: end;
    display: flex;
    min-width: 0;
  }

  .detail-top-actions [data-detail-cart] {
    display: none;
  }

  .detail-icon-btn {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .product-detail-media {
    margin: 0 10px;
    border-radius: 18px;
    aspect-ratio: 1 / 1;
    box-shadow: 0 12px 28px rgba(80, 31, 88, 0.1);
  }

  .product-detail-media.has-image {
    padding: 10px;
  }

  .product-detail-body {
    gap: 10px;
    padding: 12px 10px;
  }

  .detail-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .detail-title-row h2 {
    font-size: 19px;
  }

  .trusted-seller {
    align-self: start;
    font-size: 9px;
  }

  .detail-price-row {
    flex-wrap: wrap;
    border-radius: 14px;
    padding: 10px;
    background: #fff;
  }

  .detail-price-row strong {
    font-size: 26px;
  }

  .detail-delivery-card,
  .detail-coupon-card,
  .detail-section {
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(80, 31, 88, 0.06);
  }

  .detail-delivery-card > div:first-child {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .detail-delivery-card button {
    justify-self: start;
    padding: 0;
  }

  .detail-delivery-card > div:first-child span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .detail-coupon-card {
    align-items: start;
    flex-direction: column;
  }

  .product-detail-actions {
    position: fixed;
    bottom: 72px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    justify-content: stretch;
    padding: 10px;
    box-shadow: 0 -12px 28px rgba(80, 31, 88, 0.12);
  }
}

@media (max-width: 520px) {
  .side-nav nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .top-actions,
  .payment-row,
  .two-col {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 28px;
  }

  .primary-action,
  .secondary-action {
    min-height: 46px;
  }

  .stock,
  .price-row strong,
  .product-meta {
    font-size: 9px;
  }

  .discount-badge,
  .trust-row span {
    font-size: 8px;
  }

  .trust-row span {
    padding: 3px 5px;
  }
}

/* Sprint 3 final customer overrides */
body {
  background: #f4fbf7;
}

body:not(.auth-checking) .app-shell {
  background: #f4fbf7;
}

#shopView.active {
  display: block;
}

#shopView.active .cart-panel.market-cart-panel {
  display: none;
}

#shopView .shop-layout,
.shops-explorer-shell {
  max-width: 1120px;
  margin: 0 auto;
}

.market-home-header,
.market-controls,
.market-hero,
.local-shop-card,
.local-product-card {
  border-radius: 14px;
}

.market-home-title h1,
.section-title-row h2,
.local-shop-card h3 {
  color: #093f3a;
}

.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
}

.local-product-card .product-body h3,
.local-shop-card h3 {
  overflow-wrap: anywhere;
}

.side-nav {
  border-color: rgba(13, 93, 85, 0.12);
}

.nav-item.active,
.nav-item:hover {
  background: #effaf5;
  color: #0d5d55;
}

.nav-item[data-view="shops"]::before {
  content: "▤";
}

body.customer-shell {
  min-height: 100vh;
  padding: 0 0 86px;
  background: #fafcfc;
}

body.customer-shell .app-shell {
  display: block;
  width: 100%;
  min-height: 100vh;
  background: #fafcfc;
}

body.customer-shell main {
  width: min(100%, 480px);
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 12px 12px 96px;
  background: #fafcfc;
}

body.customer-shell .topbar {
  display: none;
}

body.customer-shell .side-nav {
  position: fixed;
  top: auto;
  right: auto;
  bottom: 0;
  left: 50%;
  z-index: 50;
  width: min(100%, 480px);
  height: auto;
  min-height: 0;
  transform: translateX(-50%);
  border: 1px solid rgba(13, 93, 85, 0.12);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  padding: 8px max(10px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -14px 32px rgba(13, 93, 85, 0.14);
  backdrop-filter: blur(16px);
}

body.customer-shell .side-nav .brand-block,
body.customer-shell .quick-stat {
  display: none;
}

body.customer-shell .side-nav nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
}

body.customer-shell .nav-item {
  display: grid;
  min-width: 0;
  min-height: 56px;
  place-items: center;
  gap: 2px;
  border-radius: 14px;
  padding: 7px 2px 6px;
  background: transparent;
  color: #48625b;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  box-shadow: none;
}

body.customer-shell .nav-item[hidden] {
  display: none;
}

body.customer-shell .nav-item::before {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: inherit;
  font-size: 19px;
  line-height: 1;
}

body.customer-shell .nav-item[data-view="shop"]::before {
  content: "⌂";
}

body.customer-shell .nav-item[data-view="shops"]::before {
  content: "▤";
}

body.customer-shell .nav-item[data-scroll-target="categoryRail"]::before {
  content: "▦";
}

body.customer-shell .nav-item[data-view="orders"]::before {
  content: "▱";
}

body.customer-shell .nav-item[data-view="account"]::before {
  content: "●";
}

body.customer-shell .nav-item.active,
body.customer-shell .nav-item:hover {
  background: #effaf5;
  color: #0d5d55;
  transform: none;
}

body.customer-shell #shopView .shop-layout,
body.customer-shell .shops-explorer-shell {
  width: 100%;
  max-width: 456px;
  margin: 0 auto;
  padding: 0;
}

body.customer-shell .market-home-header,
body.customer-shell .market-controls,
body.customer-shell .market-hero,
body.customer-shell .local-shop-card,
body.customer-shell .local-product-card {
  box-shadow: 0 12px 28px rgba(13, 93, 85, 0.08);
}

body.customer-shell .market-home-header {
  position: relative;
  z-index: 2;
}

body.customer-shell .product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.customer-shell .shop-card-grid,
body.customer-shell .shop-card-grid.explorer {
  grid-template-columns: 1fr;
}

body.customer-shell .cart-panel,
body.customer-shell .campaign-strip,
body.customer-shell .offer-carousel[hidden] {
  display: none;
}

body.customer-shell.admin-shell .side-nav {
  display: none;
}

/* Sprint 4 shop and product detail views */
body.customer-shell #shopDetailView.active,
body.customer-shell #productDetailView.active {
  display: block;
}

body.seller-workspace {
  min-height: 100vh;
  padding: 0 0 86px;
  background: #f6fbf8;
}

body.seller-workspace .topbar,
body.seller-workspace .side-nav {
  display: none;
}

body.seller-workspace .app-shell {
  display: block;
  min-height: 100vh;
  background: #f6fbf8;
}

body.seller-workspace main {
  width: min(100%, 520px);
  max-width: 520px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 12px 12px 96px;
  background: #f6fbf8;
}

.seller-shell {
  width: 100%;
  max-width: 496px;
  margin: 0 auto;
  color: #093f3a;
}

.seller-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(13, 93, 85, 0.12);
  border-radius: 0 0 18px 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 30px rgba(13, 93, 85, 0.1);
  backdrop-filter: blur(16px);
}

.seller-header h1 {
  margin: 2px 0;
  font-size: 22px;
  line-height: 1.1;
}

.seller-header span,
.seller-demo-login span,
.seller-product-row small {
  color: #58736d;
  font-size: 12px;
}

.seller-header-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.seller-status-pill {
  border-radius: 999px;
  padding: 7px 10px;
  background: #effaf5;
  color: #0d5d55;
  font-size: 11px;
  font-weight: 900;
}

.seller-demo-login,
.seller-summary-grid article,
.seller-quick-actions,
.seller-tabbar,
.seller-panel .work-panel,
.seller-orders-placeholder {
  border: 1px solid rgba(13, 93, 85, 0.1);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(13, 93, 85, 0.08);
}

.seller-demo-login {
  display: grid;
  gap: 12px;
  margin: 12px 0;
  padding: 14px;
}

.seller-demo-login[hidden] {
  display: none;
}

.seller-demo-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.seller-demo-buttons button {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(13, 93, 85, 0.12);
  border-radius: 14px;
  padding: 10px;
  background: #f9fffc;
  color: #093f3a;
  text-align: left;
}

.seller-demo-buttons button strong,
.seller-demo-buttons button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.seller-summary-grid article {
  padding: 12px;
}

.seller-summary-grid article strong {
  display: block;
  margin-top: 4px;
  color: #0d5d55;
  font-size: 24px;
}

.seller-summary-grid article span,
.seller-summary-grid article small {
  color: #58736d;
  font-size: 11px;
  font-weight: 800;
}

.seller-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
  padding: 10px;
}

.seller-tabbar {
  position: sticky;
  bottom: 8px;
  z-index: 25;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin: 12px 0;
  padding: 7px;
}

.seller-tabbar button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #58736d;
  font-size: 11px;
  font-weight: 900;
}

.seller-tabbar button.active {
  background: #effaf5;
  color: #0d5d55;
}

.seller-two-column,
.seller-panel {
  display: grid;
  gap: 12px;
}

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

.seller-filter-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.seller-product-list {
  display: grid;
  gap: 8px;
}

.seller-product-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(13, 93, 85, 0.09);
  border-radius: 14px;
  padding: 9px;
  background: #fbfffd;
}

.seller-product-row.inactive {
  opacity: 0.68;
}

.seller-product-row > div:nth-child(2) {
  min-width: 0;
}

.seller-product-row strong,
.seller-product-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-product-thumb,
.seller-image-preview {
  border: 1px solid rgba(13, 93, 85, 0.12);
  border-radius: 14px;
  background: #effaf5 center / contain no-repeat;
}

.seller-product-thumb {
  width: 54px;
  height: 54px;
}

.seller-product-row input {
  min-width: 0;
}

.seller-image-preview {
  display: grid;
  min-height: 150px;
  place-items: center;
  color: #58736d;
  font-weight: 800;
}

.seller-image-preview.small-preview {
  min-height: 90px;
}

.seller-image-preview.banner-preview {
  min-height: 120px;
  background-size: cover;
}

.seller-image-preview.has-image {
  color: transparent;
}

.seller-account-entry p,
.seller-orders-placeholder p {
  margin: 0 0 12px;
  color: #58736d;
  line-height: 1.5;
}

@media (min-width: 560px) {
  .seller-filter-row {
    grid-template-columns: minmax(0, 1fr) 150px 150px;
  }

  .seller-product-row {
    grid-template-columns: 58px minmax(0, 1fr) 82px 92px auto;
  }

  .seller-two-column {
    grid-template-columns: 1fr 1fr;
  }
}

body.customer-shell .shop-detail-shell,
body.customer-shell .product-detail-shell {
  width: 100%;
  max-width: 456px;
  min-height: 100vh;
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  padding: 0 0 92px;
  background: #fafcfc;
  box-shadow: none;
  overflow: visible;
}

.customer-detail-appbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  border-bottom: 1px solid rgba(13, 93, 85, 0.12);
  padding: 8px;
  background: rgba(255, 255, 255, 0.97);
  color: #093f3a;
  box-shadow: 0 8px 24px rgba(13, 93, 85, 0.08);
  backdrop-filter: blur(16px);
}

.customer-detail-appbar > div:nth-child(2) {
  min-width: 0;
}

.customer-detail-appbar strong,
.customer-detail-appbar span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-detail-appbar strong {
  font-size: 15px;
}

.customer-detail-appbar span {
  margin-top: 2px;
  color: #5d756e;
  font-size: 11px;
  font-weight: 800;
}

.customer-detail-appbar .detail-top-actions {
  display: flex;
  gap: 4px;
}

.customer-detail-appbar .detail-icon-btn {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(13, 93, 85, 0.14);
  border-radius: 999px;
  padding: 0;
  background: #effaf5;
  color: #0d5d55;
  cursor: pointer;
  font-size: 20px;
}

.customer-detail-appbar .detail-icon-btn.saved {
  border-color: rgba(245, 130, 32, 0.35);
  background: #fff7ed;
  color: #be5a05;
}

.shop-detail-hero {
  display: grid;
  gap: 12px;
  padding: 12px 0 6px;
}

.shop-detail-banner {
  display: flex;
  min-height: 150px;
  align-items: end;
  border-radius: 14px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(13, 93, 85, 0.94), rgba(9, 63, 58, 0.88)),
    #0d5d55;
  background-position: center;
  background-size: cover;
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(13, 93, 85, 0.18);
}

.shop-detail-banner.has-image {
  background-color: #0d5d55;
}

.shop-detail-banner span {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 11px;
  font-weight: 900;
}

.shop-detail-identity {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.shop-detail-logo {
  display: grid;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  place-items: center;
  border: 3px solid #ffffff;
  border-radius: 14px;
  background: #e4f6ef;
  background-position: center;
  background-size: cover;
  color: #0d5d55;
  box-shadow: 0 10px 24px rgba(13, 93, 85, 0.14);
  font-weight: 1000;
}

.shop-detail-identity h1 {
  margin: 2px 0 6px;
  color: #093f3a;
  font-size: 22px;
  line-height: 1.15;
}

.shop-detail-meta,
.shop-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.shop-detail-meta span,
.shop-detail-badges span {
  border-radius: 999px;
  padding: 5px 8px;
  background: #effaf5;
  color: #0d5d55;
  font-size: 10px;
  font-weight: 900;
}

.shop-detail-badges span {
  background: #fff7ed;
  color: #be5a05;
}

.shop-detail-hero > p {
  margin: 0;
  color: #536760;
  font-size: 13px;
  line-height: 1.55;
}

.shop-product-toolbar {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.shop-product-toolbar h2 {
  margin: 3px 0 0;
  color: #093f3a;
  font-size: 18px;
}

.shop-category-filters {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 0 0 5px;
}

.shop-category-filters button {
  flex: 0 0 auto;
  border: 1px solid rgba(13, 93, 85, 0.14);
  border-radius: 999px;
  padding: 8px 11px;
  background: #ffffff;
  color: #33534c;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
}

.shop-category-filters button.active {
  border-color: rgba(245, 130, 32, 0.42);
  background: #fff7ed;
  color: #be5a05;
}

.shop-product-grid,
.explorer-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px;
}

.local-product-card {
  position: relative;
}

.product-wishlist-btn {
  position: absolute;
  top: 34px;
  right: 8px;
  z-index: 3;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(13, 93, 85, 0.15);
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.94);
  color: #0d5d55;
  cursor: pointer;
  font-size: 16px;
  box-shadow: 0 7px 18px rgba(13, 93, 85, 0.12);
}

.product-wishlist-btn.saved {
  color: #be5a05;
}

.shop-detail-actions,
.product-detail-actions {
  position: fixed;
  left: auto;
  right: 50%;
  bottom: 72px;
  z-index: 40;
  display: grid;
  width: min(calc(100% - 24px), 456px);
  max-width: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  transform: translateX(50%);
  border: 1px solid rgba(13, 93, 85, 0.12);
  border-radius: 14px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -12px 28px rgba(13, 93, 85, 0.12);
  backdrop-filter: blur(16px);
}

.shop-detail-actions button,
.product-detail-actions button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  font-weight: 900;
}

body.customer-shell .product-detail-media {
  display: grid;
  min-height: 300px;
  margin: 12px 0 0;
  place-items: center;
  border: 1px solid rgba(13, 93, 85, 0.1);
  border-radius: 14px;
  background-color: var(--media-bg, #eaf3ef);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  box-shadow: 0 14px 30px rgba(13, 93, 85, 0.1);
}

body.customer-shell .product-detail-media strong {
  align-self: start;
  justify-self: start;
  margin: 10px;
  border-radius: 999px;
  padding: 6px 9px;
  background: #f58220;
  color: #ffffff;
  font-size: 11px;
}

body.customer-shell .product-detail-media span {
  color: #0d5d55;
  font-size: 44px;
  font-weight: 1000;
}

body.customer-shell .product-detail-media.has-image span {
  display: none;
}

body.customer-shell .product-detail-body {
  display: grid;
  gap: 10px;
  padding: 12px 0;
}

body.customer-shell .detail-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

body.customer-shell .detail-title-row h2 {
  margin: 3px 0;
  color: #093f3a;
  font-size: 21px;
  line-height: 1.2;
}

.detail-seller-line {
  color: #5d756e;
  font-size: 12px;
  font-weight: 800;
}

.stock-status-badge {
  align-self: start;
  border-radius: 999px;
  padding: 6px 9px;
  background: #effaf5;
  color: #137a39;
  font-size: 10px;
  font-weight: 900;
}

.stock-status-badge.low-stock {
  background: #fff7ed;
  color: #be5a05;
}

.stock-status-badge.out-of-stock {
  background: #fff0f0;
  color: #b42318;
}

body.customer-shell .detail-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.customer-shell .detail-rating-row span {
  border-radius: 999px;
  padding: 5px 8px;
  background: #effaf5;
  color: #0d5d55;
  font-size: 11px;
  font-weight: 900;
}

.open-box-detail-card,
body.customer-shell .detail-delivery-card,
body.customer-shell .detail-section,
.seller-info-card {
  border: 1px solid rgba(13, 93, 85, 0.12);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(13, 93, 85, 0.07);
}

.open-box-detail-card,
body.customer-shell .detail-delivery-card {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.open-box-detail-card {
  border-color: rgba(245, 130, 32, 0.24);
  background: #fff7ed;
  color: #9f4b04;
}

.open-box-detail-card span,
body.customer-shell .detail-delivery-card span {
  color: #5d756e;
  font-size: 11px;
  line-height: 1.45;
}

body.customer-shell .detail-delivery-card button {
  justify-self: start;
  border: 0;
  padding: 4px 0 0;
  background: transparent;
  color: #0d5d55;
  cursor: pointer;
  font-weight: 900;
}

body.customer-shell .detail-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  border-radius: 14px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(13, 93, 85, 0.07);
}

body.customer-shell .detail-price-row strong {
  color: #0d5d55;
  font-size: 28px;
}

body.customer-shell .detail-price-row span {
  color: #8a9b96;
  text-decoration: line-through;
}

body.customer-shell .detail-price-row b,
body.customer-shell .detail-price-row em {
  border-radius: 999px;
  padding: 5px 8px;
  background: #fff7ed;
  color: #be5a05;
  font-size: 10px;
  font-style: normal;
}

body.customer-shell .detail-section {
  padding: 12px;
}

body.customer-shell .detail-section h3,
body.customer-shell .detail-section p {
  margin: 0;
}

body.customer-shell .detail-section p,
body.customer-shell .detail-section li {
  color: #536760;
  font-size: 12px;
  line-height: 1.55;
}

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

.detail-options > div {
  display: grid;
  gap: 8px;
}

.detail-option-chip {
  width: fit-content;
  border-radius: 999px;
  padding: 7px 9px;
  background: #effaf5;
  color: #0d5d55;
  font-size: 11px;
  font-weight: 900;
}

.quantity-selector {
  display: grid;
  width: fit-content;
  grid-template-columns: 30px 34px 30px;
  align-items: center;
  border: 1px solid rgba(13, 93, 85, 0.14);
  border-radius: 999px;
  overflow: hidden;
}

.quantity-selector button {
  min-height: 30px;
  border: 0;
  background: #effaf5;
  color: #0d5d55;
  cursor: pointer;
  font-weight: 1000;
}

.quantity-selector strong {
  text-align: center;
}

.seller-info-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px;
  color: #102522;
  cursor: pointer;
  text-align: left;
}

.seller-info-card .shop-detail-logo {
  width: 48px;
  height: 48px;
  border-width: 1px;
}

.seller-info-card span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.seller-info-card strong,
.seller-info-card em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-info-card em {
  color: #5d756e;
  font-size: 10px;
  font-style: normal;
}

.seller-info-card b {
  border-radius: 999px;
  padding: 5px 7px;
  background: #fff7ed;
  color: #be5a05;
  font-size: 9px;
}

.detail-empty-state {
  display: grid;
  min-height: 60vh;
  place-items: center;
  gap: 10px;
  padding: 20px;
  color: #536760;
  text-align: center;
}

@media (max-width: 420px) {
  .customer-detail-appbar {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }

  .customer-detail-appbar .detail-icon-btn {
    width: 34px;
    height: 34px;
  }

  .shop-detail-banner {
    min-height: 132px;
  }

  .shop-detail-identity h1 {
    font-size: 20px;
  }

  body.customer-shell .product-detail-media {
    min-height: 270px;
  }

  .seller-info-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .seller-info-card b {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 860px) {
  body {
    background: #f4fbf7;
  }

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

  .market-controls,
  .shops-controls {
    grid-template-columns: 1fr;
  }

  .shop-card-grid,
  .shop-card-grid.explorer {
    grid-template-columns: 1fr;
  }

  .category-rail {
    grid-auto-columns: minmax(96px, 118px);
  }
}

/* Sprint 6 cart, checkout, order tracking */
.checkout-promise-row,
.cart-shop-title,
.open-box-note {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.checkout-promise-row span,
.open-box-note,
.checkout-section-title {
  border: 1px solid rgba(13, 93, 85, 0.12);
  border-radius: 14px;
  background: #f2fbf7;
  color: #0d5d55;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
}

.cart-shop-group {
  display: grid;
  gap: 10px;
  padding: 10px 0;
}

.cart-line {
  grid-template-columns: 56px 1fr;
  align-items: stretch;
}

.cart-line-media {
  min-height: 64px;
  border-radius: 12px;
  background: #eaf3ef;
  background-position: center;
  background-size: cover;
}

.cart-line-body {
  display: grid;
  gap: 7px;
}

.upi-reference-box,
.tracking-card {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(13, 93, 85, 0.12);
  border-radius: 14px;
  background: #ffffff;
  padding: 12px;
}

.upi-reference-box strong {
  color: #0d5d55;
}

.tracking-card .status-track {
  margin: 2px 0;
}

.open-box-note {
  justify-content: space-between;
  background: #fff7ed;
  color: #9a4b00;
  border-color: rgba(245, 130, 32, 0.22);
}

.open-box-note span {
  font-weight: 600;
  color: #5f6f6a;
}

.seller-order-card .order-actions button {
  min-width: 84px;
}

/* Sprint 7 super admin control center */
.platform-control-center {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.platform-admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid rgba(13, 93, 85, 0.14);
  border-radius: 18px;
  background: linear-gradient(135deg, #0d5d55, #123b36);
  color: #ffffff;
  padding: 18px;
  box-shadow: 0 16px 34px rgba(13, 93, 85, 0.18);
}

.platform-admin-header h1,
.platform-admin-header p,
.platform-admin-header span {
  margin: 0;
}

.platform-admin-header h1 {
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.05;
}

.platform-admin-header .eyebrow {
  color: #ffcf99;
  font-weight: 900;
  text-transform: uppercase;
}

.platform-admin-header span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.platform-tabbar,
.platform-metric-grid,
.platform-tool-grid,
.platform-alert-grid {
  display: grid;
  gap: 10px;
}

.platform-tabbar {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 8px;
  border: 1px solid rgba(13, 93, 85, 0.12);
  border-radius: 16px;
  background: #ffffff;
}

.platform-tabbar button,
.platform-tool-grid button {
  min-height: 42px;
  border: 1px solid rgba(13, 93, 85, 0.12);
  border-radius: 12px;
  background: #f6fbf8;
  color: #17443f;
  cursor: pointer;
  font-weight: 900;
}

.platform-tabbar button.active,
.platform-tool-grid button:hover {
  border-color: rgba(245, 130, 32, 0.34);
  background: #fff7ed;
  color: #a65304;
}

.platform-tabbar button:focus-visible,
.platform-tool-grid button:focus-visible {
  outline: 3px solid rgba(245, 130, 32, 0.32);
  outline-offset: 2px;
}

.platform-panel {
  display: grid;
  gap: 14px;
}

.platform-panel[hidden] {
  display: none !important;
}

.platform-metric-grid,
.platform-alert-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.platform-metric-grid article,
.platform-alert-grid article {
  display: grid;
  gap: 5px;
  min-height: 96px;
  border: 1px solid rgba(13, 93, 85, 0.12);
  border-radius: 16px;
  background: #ffffff;
  padding: 14px;
}

.platform-metric-grid span,
.platform-alert-grid span {
  color: #5d756e;
  font-size: 12px;
  font-weight: 800;
}

.platform-metric-grid strong,
.platform-alert-grid strong {
  color: #0d5d55;
  font-size: 26px;
  line-height: 1;
}

.platform-metric-grid small {
  color: #7a8d87;
}

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

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

.platform-control-center .platform-list {
  max-height: min(620px, 58vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.platform-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(13, 93, 85, 0.11);
  border-radius: 14px;
  background: #ffffff;
  padding: 12px;
}

.platform-item > div:first-child {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.platform-item strong,
.platform-item span,
.platform-item small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.platform-item strong {
  color: #153f3a;
}

.platform-item span,
.platform-item small {
  color: #647a73;
  font-size: 12px;
}

.platform-item .compact-actions {
  justify-content: flex-end;
  max-width: 320px;
}

.platform-control-center .platform-tool-section {
  align-items: stretch;
  flex-direction: column;
}

.platform-control-center .platform-tool-section.tool-section-focus {
  border-color: rgba(245, 130, 32, 0.7);
  box-shadow: 0 0 0 4px rgba(245, 130, 32, 0.12), var(--shadow);
}

.admin-data-source {
  margin-bottom: 12px;
  border: 1px solid rgba(13, 93, 85, 0.2);
  border-radius: 10px;
  padding: 9px 12px;
  background: #effaf5;
  color: #075c54;
  font-size: 12px;
  font-weight: 900;
}

.admin-data-source.warning {
  border-color: rgba(190, 90, 5, 0.35);
  background: #fff7ed;
  color: #9a4300;
}

.platform-control-center .platform-tool-items {
  display: grid;
  gap: 8px;
  width: 100%;
}

.platform-control-center .platform-tool-row {
  align-items: center;
  background: rgba(247, 252, 250, 0.88);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 10px 12px;
}

.platform-control-center .platform-tool-row small {
  display: block;
}

.platform-control-center .state-action {
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.platform-control-center .state-action.state-good {
  border-color: rgba(29, 128, 80, 0.38);
  background: #e9f8ef;
  color: #0f6840;
}

.platform-control-center .state-action.state-danger {
  border-color: rgba(198, 69, 55, 0.34);
  background: #fde9e6;
  color: #a83225;
}

.platform-control-center .state-action.state-warning {
  border-color: rgba(245, 130, 32, 0.34);
  background: #fff7ed;
  color: #a65304;
}

.platform-alert-grid article {
  min-height: 74px;
  background: #fffdf8;
}

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

.platform-control-center .stack-form {
  margin-bottom: 12px;
}

.platform-control-center .stack-form input,
.platform-control-center .stack-form select {
  min-height: 42px;
}

@media (max-width: 960px) {
  .platform-tabbar,
  .platform-metric-grid,
  .platform-alert-grid,
  .platform-tool-grid,
  .platform-two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-item {
    grid-template-columns: 1fr;
  }

  .platform-item .compact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .platform-admin-header,
  .platform-tabbar,
  .platform-metric-grid,
  .platform-alert-grid,
  .platform-tool-grid,
  .platform-two-column {
    grid-template-columns: 1fr;
  }

  .platform-admin-header {
    display: grid;
  }
}

body.admin-shell .admin-hero {
  background: linear-gradient(135deg, #0d5d55, #f58220);
}

body.admin-shell .admin-hero .eyebrow {
  color: #fff7ed;
}
body.customer-shell.admin-shell .side-nav {
  background: linear-gradient(180deg, #0d5d55, #123b36);
}

body.customer-shell.admin-shell .side-nav .nav-item.active,
body.customer-shell.admin-shell .side-nav .nav-item:hover {
  background: #fff7ed;
  color: #9a4b00;
}

body.customer-shell.admin-shell .nav-revenue-card {
  border-color: rgba(245, 130, 32, 0.28);
  background: rgba(245, 130, 32, 0.16);
}
body.admin-shell .side-nav {
  background: linear-gradient(180deg, #0d5d55, #123b36);
}

body.admin-shell .side-nav .nav-item.active,
body.admin-shell .side-nav .nav-item:hover {
  background: #fff7ed;
  color: #9a4b00;
}

body.admin-shell .nav-revenue-card {
  border-color: rgba(245, 130, 32, 0.28);
  background: rgba(245, 130, 32, 0.16);
}
body.admin-shell .topbar {
  background: linear-gradient(135deg, #0d5d55, #f58220);
}

body.admin-shell .topbar .eyebrow {
  color: #fff7ed;
}

.platform-admin-header .seller-status-pill {
  align-self: start;
  background: #effaf5;
  color: #0d5d55;
}

@media (max-width: 860px) {
  body.admin-shell {
    padding-bottom: 0;
    background: #f4fbf7;
  }

  body.admin-shell .app-shell {
    display: block;
  }

  body.admin-shell .side-nav {
    position: sticky;
    top: 0;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: 60;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 10px;
    transform: none;
    border: 0;
    border-radius: 0 0 16px 16px;
    background: linear-gradient(180deg, #0d5d55, #123b36);
    box-shadow: 0 12px 26px rgba(13, 93, 85, 0.16);
  }

  body.admin-shell .side-nav .brand-block {
    display: flex;
    margin-bottom: 8px;
  }

  body.admin-shell .side-nav nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  body.admin-shell .nav-item {
    min-height: 42px;
    border-radius: 10px;
    padding: 8px 6px;
    background: transparent;
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
  }

  body.admin-shell .nav-item.active,
  body.admin-shell .nav-item:hover {
    background: #fff7ed;
    color: #9a4b00;
  }

  body.admin-shell .nav-item::before {
    display: none;
  }

  body.admin-shell .quick-stat {
    display: none;
  }

  body.admin-shell .topbar {
    display: none;
  }

  body.admin-shell main {
    padding: 12px 10px 24px;
  }
}

/* Customer reference polish - 16 Jun 2026 */
body.customer-shell:not(.admin-shell) {
  background:
    radial-gradient(circle at 50% -8%, rgba(13, 93, 85, 0.08), transparent 34%),
    #f8fcfb;
}

body.customer-shell:not(.admin-shell) main {
  width: min(100%, 480px);
  padding: 10px 12px 96px;
  background: #fbfdfc;
}

body.customer-shell:not(.admin-shell) #shopView .shop-layout,
body.customer-shell:not(.admin-shell) .shops-explorer-shell {
  gap: 14px;
}

body.customer-shell:not(.admin-shell) .market-home-header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 0;
  padding: 8px 2px 2px;
  background: transparent;
  box-shadow: none;
}

body.customer-shell:not(.admin-shell) .customer-menu-btn,
body.customer-shell:not(.admin-shell) .notification-btn,
body.customer-shell:not(.admin-shell) .detail-icon-btn {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: transparent;
  cursor: pointer;
  font-size: 0;
}

body.customer-shell:not(.admin-shell) .customer-menu-btn::before {
  content: "☰";
  color: #101817;
  font-size: 28px;
  line-height: 1;
}

body.customer-shell:not(.admin-shell) .notification-btn {
  position: relative;
  border: 1px solid rgba(13, 93, 85, 0.1);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(13, 93, 85, 0.08);
}

body.customer-shell:not(.admin-shell) .notification-btn::before {
  content: "♢";
  color: #101817;
  font-size: 26px;
  transform: rotate(45deg);
}

body.customer-shell:not(.admin-shell) .notification-btn::after {
  content: "3";
  position: absolute;
  top: 4px;
  right: 2px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: #ff7918;
  color: #ffffff;
  font-size: 10px;
  font-weight: 1000;
}

body.customer-shell:not(.admin-shell) .market-home-title {
  justify-content: center;
  gap: 9px;
  text-align: left;
}

body.customer-shell:not(.admin-shell) .market-home-title .brand-mark {
  position: relative;
  width: 48px;
  height: 56px;
  border-radius: 10px 10px 15px 15px;
  background: linear-gradient(145deg, #0d8b80 0%, #076d66 100%);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(13, 93, 85, 0.18);
}

body.customer-shell:not(.admin-shell) .market-home-title .brand-mark::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 13px;
  width: 20px;
  height: 18px;
  border: 4px solid #0d8b80;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
}

body.customer-shell:not(.admin-shell) .market-home-title .brand-mark span {
  display: grid;
  width: 22px;
  height: 22px;
  margin: 18px auto 0;
  place-items: center;
  border-radius: 999px;
  background: #ffffff;
  color: #ff7918;
  font-size: 10px;
  line-height: 1;
}

body.customer-shell:not(.admin-shell) .market-home-title .brand-mark span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ff7918;
}

body.customer-shell:not(.admin-shell) .market-home-title h1 {
  margin: 0;
  color: #087c73;
  font-size: 27px;
  line-height: 0.98;
  font-weight: 1000;
}

body.customer-shell:not(.admin-shell) .market-home-title h1 span,
body.customer-shell:not(.admin-shell) .market-home-title h1 b {
  display: inline;
  margin: 0;
  color: #087c73;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

body.customer-shell:not(.admin-shell) .market-home-title h1 b {
  color: #ff7918;
}

body.customer-shell:not(.admin-shell) .market-home-title > div > span {
  margin-top: 2px;
  color: #222b2a;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

body.customer-shell:not(.admin-shell) .market-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  border: 0;
  border-radius: 0;
  padding: 4px 0 8px;
  background: transparent;
  box-shadow: none;
}

body.customer-shell:not(.admin-shell) .market-location-chip {
  justify-self: center;
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  border-color: rgba(9, 126, 116, 0.36);
  border-radius: 999px;
  padding: 8px 15px 8px 9px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(13, 93, 85, 0.07);
}

body.customer-shell:not(.admin-shell) .market-location-chip::before {
  content: "●";
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #0b8f85, #07645e);
  color: #ffffff;
  font-size: 11px;
}

body.customer-shell:not(.admin-shell) .market-location-chip span {
  display: none;
}

body.customer-shell:not(.admin-shell) .market-location-chip strong {
  color: #161d1c;
  font-size: 14px;
  font-weight: 1000;
}

body.customer-shell:not(.admin-shell) .market-location-chip strong::after {
  content: "⌄";
  margin-left: 8px;
  color: #076d66;
}

body.customer-shell:not(.admin-shell) .market-search-box {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  align-items: center;
  min-height: 56px;
  border: 1px solid rgba(13, 93, 85, 0.1);
  border-radius: 18px;
  padding: 0 14px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 24px rgba(13, 93, 85, 0.08);
}

body.customer-shell:not(.admin-shell) .market-search-box > span,
body.customer-shell:not(.admin-shell) .market-search-box > b {
  color: transparent;
  font-size: 0;
}

body.customer-shell:not(.admin-shell) .market-search-box > span::before {
  content: "⌕";
  color: #687472;
  font-size: 28px;
  line-height: 1;
}

body.customer-shell:not(.admin-shell) .market-search-box > b::before {
  content: "♪";
  color: #5d6866;
  font-size: 22px;
  line-height: 1;
}

body.customer-shell:not(.admin-shell) .market-controls input[type="search"] {
  min-height: 52px;
  border: 0;
  border-radius: 0;
  padding: 0 6px;
  box-shadow: none;
  color: #182321;
  font-size: 14px;
}

body.customer-shell:not(.admin-shell) .market-controls input[type="search"]:focus {
  box-shadow: none;
}

body.customer-shell:not(.admin-shell) .market-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 148px;
  gap: 10px;
  min-height: 190px;
  overflow: hidden;
  border-radius: 16px;
  padding: 20px 16px;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 211, 79, 0.36), transparent 17%),
    radial-gradient(circle at 96% 78%, rgba(255, 121, 24, 0.3), transparent 18%),
    linear-gradient(135deg, #086f68 0%, #075d56 54%, #003c39 100%);
  box-shadow: 0 20px 42px rgba(7, 109, 102, 0.25);
}

body.customer-shell:not(.admin-shell) .market-hero::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -48px;
  width: 230px;
  height: 132px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

body.customer-shell:not(.admin-shell) .market-hero .eyebrow {
  color: #ffd35a;
  font-size: 26px;
  font-weight: 1000;
  line-height: 1.03;
  text-transform: none;
}

body.customer-shell:not(.admin-shell) .market-hero h2 {
  margin: 2px 0 8px;
  color: #ffffff;
  font-size: 26px;
  line-height: 1.05;
}

body.customer-shell:not(.admin-shell) .market-hero span {
  max-width: 250px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  line-height: 1.4;
}

body.customer-shell:not(.admin-shell) .hero-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}

body.customer-shell:not(.admin-shell) .hero-proof-row small {
  border-radius: 999px;
  padding: 4px 7px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
}

body.customer-shell:not(.admin-shell) .hero-visual {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  gap: 8px;
  justify-items: center;
}

body.customer-shell:not(.admin-shell) .delivery-box {
  display: grid;
  width: 132px;
  min-height: 108px;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  align-content: end;
  border-radius: 12px 12px 18px 18px;
  padding: 12px 9px 10px;
  background: linear-gradient(160deg, #d69043 0%, #b96d21 100%);
  box-shadow: 0 16px 22px rgba(0, 0, 0, 0.22);
}

body.customer-shell:not(.admin-shell) .delivery-box span {
  display: grid;
  min-height: 34px;
  place-items: center;
  border-radius: 10px;
  background: #fff5df;
  color: #0a4d49;
  font-size: 9px;
  font-weight: 1000;
  text-align: center;
}

body.customer-shell:not(.admin-shell) .delivery-box strong {
  grid-column: 1 / -1;
  color: #2b1708;
  font-size: 13px;
  line-height: 1.05;
  text-align: center;
}

body.customer-shell:not(.admin-shell) .hero-cta {
  min-width: 116px;
  border-radius: 13px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #ff8a1f, #ff6812);
  box-shadow: 0 12px 24px rgba(255, 121, 24, 0.34);
}

body.customer-shell:not(.admin-shell) .hero-cta::after {
  content: " →";
}

body.customer-shell:not(.admin-shell) .hero-dots {
  display: flex;
  gap: 5px;
}

body.customer-shell:not(.admin-shell) .hero-dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
}

body.customer-shell:not(.admin-shell) .hero-dots span:first-child {
  background: #ffffff;
}

body.customer-shell:not(.admin-shell) .category-rail {
  grid-auto-columns: minmax(74px, 84px);
  padding: 6px 0 10px;
}

body.customer-shell:not(.admin-shell) .category-chip {
  min-height: 86px;
  border: 1px solid rgba(13, 93, 85, 0.1);
  border-radius: 16px;
  padding: 8px 6px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(9, 63, 58, 0.07);
}

body.customer-shell:not(.admin-shell) .category-chip.active {
  border-color: #07837a;
  background: linear-gradient(145deg, #0d8b80, #057067);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(7, 109, 102, 0.22);
}

body.customer-shell:not(.admin-shell) .category-chip .category-icon {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: #fffaf4;
}

body.customer-shell:not(.admin-shell) .category-chip .category-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

body.customer-shell:not(.admin-shell) .category-chip strong {
  color: #1b2625;
  font-size: 11px;
  font-weight: 900;
}

body.customer-shell:not(.admin-shell) .category-chip.active strong {
  color: #ffffff;
}

body.customer-shell:not(.admin-shell) .section-title-row {
  align-items: end;
  margin: 2px 0 0;
}

body.customer-shell:not(.admin-shell) .section-title-row .eyebrow {
  display: none;
}

body.customer-shell:not(.admin-shell) .section-title-row h2 {
  margin: 0;
  color: #111b1a;
  font-size: 17px;
  line-height: 1.2;
}

body.customer-shell:not(.admin-shell) .text-link-button,
body.customer-shell:not(.admin-shell) #productSectionHint {
  background: transparent;
  color: #087c73;
  font-size: 12px;
  font-weight: 1000;
}

body.customer-shell:not(.admin-shell) .text-link-button::after,
body.customer-shell:not(.admin-shell) #productSectionHint::after {
  content: " ›";
}

body.customer-shell:not(.admin-shell) .shop-card-grid,
body.customer-shell:not(.admin-shell) .shop-card-grid.explorer {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.customer-shell:not(.admin-shell) .local-shop-card {
  border-color: rgba(13, 93, 85, 0.11);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(9, 63, 58, 0.08);
}

body.customer-shell:not(.admin-shell) .local-shop-card.compact {
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 8px;
}

body.customer-shell:not(.admin-shell) .shop-thumb {
  width: 100%;
  height: 84px;
  border-radius: 7px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 220, 120, 0.2), transparent 18%),
    linear-gradient(135deg, var(--shop-accent, #07594f), color-mix(in srgb, var(--shop-accent, #07594f) 78%, #000000));
  color: #ffe8a8;
  font-size: 18px;
  letter-spacing: 1px;
}

body.customer-shell:not(.admin-shell) .shop-thumb.has-image {
  background-color: var(--shop-accent, #07594f);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 58px;
}

body.customer-shell:not(.admin-shell) .shop-card-title h3 {
  color: #111b1a;
  font-size: 13px;
  line-height: 1.18;
}

body.customer-shell:not(.admin-shell) .shop-card-title span {
  background: transparent;
  color: #f8a300;
  padding: 0;
  font-size: 11px;
}

body.customer-shell:not(.admin-shell) .shop-card-body p {
  margin: 3px 0 7px;
  color: #34413f;
  font-size: 11px;
}

body.customer-shell:not(.admin-shell) .shop-card-meta span {
  background: transparent;
  color: #60716d;
  padding: 0;
  font-size: 10px;
}

body.customer-shell:not(.admin-shell) .shop-card-meta span:last-child {
  color: #087c73;
}

body.customer-shell:not(.admin-shell) .shop-badge-row span {
  border: 1px solid rgba(28, 176, 91, 0.22);
  background: #f0fff5;
  color: #12833a;
}

body.customer-shell:not(.admin-shell) .product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.customer-shell:not(.admin-shell) .local-product-card {
  overflow: hidden;
  border: 1px solid rgba(13, 93, 85, 0.1);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(9, 63, 58, 0.08);
}

body.customer-shell:not(.admin-shell) .local-product-card .limited-ribbon {
  border-radius: 0 0 8px 0;
  background: #0a8c6b;
  color: #ffffff;
}

body.customer-shell:not(.admin-shell) .local-product-card .product-media {
  min-height: 118px;
  background-color: #f7faf8;
  background-size: contain;
}

body.customer-shell:not(.admin-shell) .local-product-card .discount-badge {
  background: #ddffe7;
  color: #08752e;
  box-shadow: none;
}

body.customer-shell:not(.admin-shell) .local-product-card .product-body {
  gap: 6px;
  padding: 9px;
}

body.customer-shell:not(.admin-shell) .local-product-card .product-body h3 {
  min-height: 34px;
  color: #111b1a;
  font-size: 13px;
  line-height: 1.25;
}

body.customer-shell:not(.admin-shell) .local-product-card .product-meta {
  color: #5c6b68;
  font-size: 10px;
}

body.customer-shell:not(.admin-shell) .local-product-card .trust-row {
  gap: 4px;
}

body.customer-shell:not(.admin-shell) .local-product-card .trust-row span {
  background: transparent;
  color: #087c73;
  padding: 0;
  font-size: 9px;
}

body.customer-shell:not(.admin-shell) .local-product-card .sale-price {
  color: #111b1a;
  font-size: 18px;
}

body.customer-shell:not(.admin-shell) .local-product-card .mrp {
  color: #8a9694;
  font-size: 11px;
}

body.customer-shell:not(.admin-shell) .local-product-card .price-row > strong {
  color: #08752e;
  font-size: 10px;
}

body.customer-shell:not(.admin-shell) .view-mini {
  border-radius: 10px;
  background: linear-gradient(135deg, #ff8a1f, #ff6812);
}

body.customer-shell:not(.admin-shell) .shops-page-header {
  grid-template-columns: 1fr;
  padding-top: 4px;
  text-align: left;
}

body.customer-shell:not(.admin-shell) .shops-page-header .market-home-title {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  width: 100%;
  justify-content: stretch;
}

body.customer-shell:not(.admin-shell) .shops-page-header .market-home-title > div {
  min-width: 0;
}

body.customer-shell:not(.admin-shell) .shops-page-header .market-home-title h1 {
  display: block;
  max-width: 100%;
  color: #087c73;
  font-size: 26px;
  line-height: 1.04;
}

body.customer-shell:not(.admin-shell) .shops-page-header .market-home-title .eyebrow {
  display: block;
  color: #087c73;
  font-size: 11px;
}

body.customer-shell:not(.admin-shell) .shops-controls {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.customer-shell:not(.admin-shell) .shops-controls .market-location-chip {
  width: 100%;
  justify-self: stretch;
  justify-content: center;
  padding-right: 10px;
}

body.customer-shell:not(.admin-shell) .shops-controls .market-location-chip strong {
  font-size: 13px;
}

body.customer-shell:not(.admin-shell) .shops-controls .market-search-box {
  grid-column: 1 / -1;
}

body.customer-shell:not(.admin-shell) .back-chip {
  width: 40px;
  height: 40px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
}

body.customer-shell:not(.admin-shell) .back-chip::before {
  content: "‹";
  color: #101817;
  font-size: 36px;
  line-height: 0.8;
}

body.customer-shell:not(.admin-shell) .area-chip-row {
  padding-bottom: 4px;
}

body.customer-shell:not(.admin-shell) .area-chip-row button,
body.customer-shell:not(.admin-shell) .shop-tabs button {
  min-height: 40px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 16px rgba(9, 63, 58, 0.05);
}

body.customer-shell:not(.admin-shell) .area-chip-row button.active,
body.customer-shell:not(.admin-shell) .shop-tabs button.active {
  border-color: #087c73;
  background: linear-gradient(135deg, #0d8b80, #057067);
  color: #ffffff;
}

body.customer-shell:not(.admin-shell) .shop-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid rgba(13, 93, 85, 0.1);
  border-radius: 17px;
  padding: 4px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(9, 63, 58, 0.07);
}

body.customer-shell:not(.admin-shell) .shop-tabs button {
  justify-content: center;
  box-shadow: none;
}

body.customer-shell:not(.admin-shell) .shop-card-grid.explorer .local-shop-card {
  grid-template-columns: 62px minmax(0, 1fr);
  min-height: 128px;
  gap: 8px;
  padding: 8px;
}

body.customer-shell:not(.admin-shell) .shop-card-grid.explorer .shop-thumb {
  width: 62px;
  height: 62px;
  background-size: 48px;
}

body.customer-shell:not(.admin-shell) .shop-card-grid.explorer .shop-card-title {
  align-items: start;
}

body.customer-shell:not(.admin-shell) .shop-card-grid.explorer .shop-card-title h3 {
  font-size: 12px;
}

body.customer-shell:not(.admin-shell) .shop-card-grid.explorer .shop-card-body p {
  font-size: 10px;
}

body.customer-shell:not(.admin-shell) .shop-card-grid.explorer .shop-card-meta {
  gap: 3px 5px;
}

body.customer-shell:not(.admin-shell) .customer-detail-appbar {
  min-height: 62px;
  border: 0;
  padding: 8px 6px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 18px rgba(9, 63, 58, 0.06);
}

body.customer-shell:not(.admin-shell) .customer-detail-appbar .detail-icon-btn {
  color: #111b1a;
  font-size: 26px;
}

body.customer-shell:not(.admin-shell) .customer-detail-appbar .detail-top-actions .detail-icon-btn {
  border: 0;
  background: transparent;
  color: #0b6f68;
}

body.customer-shell:not(.admin-shell) .shop-detail-hero {
  overflow: hidden;
  border: 1px solid rgba(13, 93, 85, 0.1);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(9, 63, 58, 0.08);
}

body.customer-shell:not(.admin-shell) .shop-detail-banner {
  min-height: 146px;
  border-radius: 0;
  box-shadow: none;
}

body.customer-shell:not(.admin-shell) .shop-detail-identity,
body.customer-shell:not(.admin-shell) .shop-detail-badges,
body.customer-shell:not(.admin-shell) .shop-detail-hero > p {
  margin: 0 12px;
}

body.customer-shell:not(.admin-shell) .shop-detail-logo {
  border-radius: 12px;
}

body.customer-shell:not(.admin-shell) .shop-detail-badges span:first-child {
  background: #effaf2;
  color: #08752e;
}

body.customer-shell:not(.admin-shell) .shop-category-filters button.active {
  border-color: #087c73;
  background: linear-gradient(135deg, #0d8b80, #057067);
  color: #ffffff;
}

body.customer-shell:not(.admin-shell) .shop-product-grid .local-product-card .product-media {
  min-height: 118px;
}

body.customer-shell:not(.admin-shell) .product-detail-media {
  min-height: 420px;
  margin: 0 -12px;
  border: 0;
  border-radius: 0 0 18px 18px;
  background-color: #fff5e8;
  background-size: cover;
  box-shadow: none;
}

body.customer-shell:not(.admin-shell) .product-detail-media strong {
  margin: 22px;
  background: #0b8f58;
  color: #ffffff;
  font-size: 12px;
}

body.customer-shell:not(.admin-shell) .product-thumb-strip {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: -18px 0 4px;
}

body.customer-shell:not(.admin-shell) .product-thumb-strip span {
  position: relative;
  z-index: 2;
  display: grid;
  width: 11px;
  height: 11px;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: #cdd5d2;
  background-position: center;
  background-size: cover;
  color: #ffffff;
  font-size: 10px;
  font-weight: 1000;
}

body.customer-shell:not(.admin-shell) .product-thumb-strip span.active {
  background: #087c73;
}

body.customer-shell:not(.admin-shell) .product-detail-body {
  gap: 12px;
}

body.customer-shell:not(.admin-shell) .detail-title-row h2 {
  color: #111b1a;
  font-size: 24px;
}

body.customer-shell:not(.admin-shell) .detail-rating-row span {
  background: transparent;
  color: #f8a300;
  padding: 0;
  font-size: 13px;
}

body.customer-shell:not(.admin-shell) .open-box-detail-card {
  border: 0;
  background: linear-gradient(90deg, #e9f8f2, #f8fbf8);
  color: #111b1a;
  box-shadow: none;
}

body.customer-shell:not(.admin-shell) .detail-price-row {
  box-shadow: none;
  padding: 2px 0;
}

body.customer-shell:not(.admin-shell) .detail-price-row strong {
  color: #111b1a;
  font-size: 32px;
}

body.customer-shell:not(.admin-shell) .detail-price-row b {
  background: transparent;
  color: #078435;
  font-size: 14px;
}

body.customer-shell:not(.admin-shell) .detail-price-row em {
  border: 1px solid rgba(18, 131, 58, 0.22);
  background: #f0fff5;
  color: #12833a;
}

body.customer-shell:not(.admin-shell) .detail-options,
body.customer-shell:not(.admin-shell) .detail-delivery-card,
body.customer-shell:not(.admin-shell) .detail-section,
body.customer-shell:not(.admin-shell) .seller-info-card {
  border-radius: 0;
  border-width: 1px 0 0;
  box-shadow: none;
}

body.customer-shell:not(.admin-shell) .quantity-selector {
  border-radius: 8px;
}

body.customer-shell:not(.admin-shell) .seller-info-card b {
  background: #effaf2;
  color: #08752e;
}

body.customer-shell:not(.admin-shell) .product-detail-actions,
body.customer-shell:not(.admin-shell) .shop-detail-actions {
  bottom: 72px;
  border-radius: 14px 14px 0 0;
  padding: 8px 10px 10px;
}

body.customer-shell:not(.admin-shell) .product-detail-actions .secondary-action,
body.customer-shell:not(.admin-shell) .shop-detail-actions .secondary-action {
  border: 1px solid #087c73;
  background: #ffffff;
  color: #087c73;
}

body.customer-shell:not(.admin-shell) .product-detail-actions .primary-action,
body.customer-shell:not(.admin-shell) .shop-detail-actions .primary-action {
  background: linear-gradient(135deg, #ff8a1f, #ff6812);
  color: #ffffff;
}

@media (max-width: 390px) {
  body.customer-shell:not(.admin-shell) .market-home-title h1 {
    font-size: 24px;
  }

  body.customer-shell:not(.admin-shell) .market-home-title .brand-mark {
    width: 42px;
    height: 50px;
  }

  body.customer-shell:not(.admin-shell) .market-hero {
    grid-template-columns: 1fr;
  }

  body.customer-shell:not(.admin-shell) .hero-visual {
    justify-items: start;
  }

  body.customer-shell:not(.admin-shell) .shop-card-grid,
  body.customer-shell:not(.admin-shell) .shop-card-grid.explorer {
    grid-template-columns: 1fr;
  }
}

/* Home page exact reference style polish - 16 Jun 2026 */
body.customer-shell:not(.admin-shell) main {
  width: min(100%, 430px);
  max-width: 430px;
  padding: 10px 12px 94px;
  background: #ffffff;
}

body.customer-shell:not(.admin-shell) #shopView .shop-layout {
  gap: 12px;
}

body.customer-shell:not(.admin-shell) .market-home-header {
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 4px;
  padding: 8px 2px 0;
}

body.customer-shell:not(.admin-shell) .customer-menu-btn,
body.customer-shell:not(.admin-shell) .notification-btn {
  width: 34px;
  height: 38px;
}

body.customer-shell:not(.admin-shell) .customer-menu-btn::before {
  font-size: 27px;
}

body.customer-shell:not(.admin-shell) .notification-btn {
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.customer-shell:not(.admin-shell) .notification-btn::before {
  content: "🔔";
  transform: none;
  color: #111827;
  font-size: 21px;
}

body.customer-shell:not(.admin-shell) .notification-btn::after {
  content: "3";
  position: absolute;
  top: 1px;
  right: 2px;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #ff7a18;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

body.customer-shell:not(.admin-shell) .market-home-title {
  justify-content: center;
  gap: 6px;
}

body.customer-shell:not(.admin-shell) .market-home-title .brand-mark {
  width: 40px;
  height: 48px;
  border-radius: 9px 9px 13px 13px;
  box-shadow: none;
}

body.customer-shell:not(.admin-shell) .market-home-title .brand-mark::before {
  top: -8px;
  left: 12px;
  width: 17px;
  height: 16px;
  border-width: 3px;
}

body.customer-shell:not(.admin-shell) .market-home-title .brand-mark span {
  width: 21px;
  height: 21px;
  margin-top: 16px;
}

body.customer-shell:not(.admin-shell) .market-home-title h1 {
  white-space: nowrap;
  font-size: 22px;
  line-height: 0.95;
}

body.customer-shell:not(.admin-shell) .market-home-title > div > span {
  white-space: nowrap;
  font-size: 10px;
  font-weight: 800;
}

body.customer-shell:not(.admin-shell) .market-controls {
  gap: 10px;
  padding: 2px 0 6px;
}

body.customer-shell:not(.admin-shell) .market-location-chip {
  min-height: 42px;
  padding: 5px 13px 5px 7px;
  border-color: rgba(0, 121, 107, 0.46);
  background: #ffffff;
}

body.customer-shell:not(.admin-shell) .market-location-chip::before {
  content: "⌖";
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #00897b, #00695c);
  font-size: 17px;
}

body.customer-shell:not(.admin-shell) .market-location-chip strong {
  font-size: 14px;
}

body.customer-shell:not(.admin-shell) .market-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  border-color: #e5e7eb;
  border-radius: 17px;
  box-shadow: 0 8px 18px rgba(31, 41, 51, 0.07);
}

body.customer-shell:not(.admin-shell) .market-search-box > span,
body.customer-shell:not(.admin-shell) .market-search-box > b {
  position: relative;
  display: inline-flex;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: transparent;
  font-size: 0;
  white-space: nowrap;
}

body.customer-shell:not(.admin-shell) .market-search-box > span::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  border: 2px solid #6b7280;
  border-radius: 999px;
  box-sizing: border-box;
  box-shadow: 7px 7px 0 -5px #6b7280;
  transform: rotate(-8deg);
}

body.customer-shell:not(.admin-shell) .market-search-box > b::before {
  content: "";
  display: block;
  width: 8px;
  height: 14px;
  border: 2px solid #6b7280;
  border-radius: 999px;
  box-sizing: border-box;
}

body.customer-shell:not(.admin-shell) .market-search-box > b::after {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  width: 12px;
  height: 9px;
  border-right: 2px solid #6b7280;
  border-bottom: 2px solid #6b7280;
  border-left: 2px solid #6b7280;
  border-radius: 0 0 10px 10px;
  transform: translateX(-50%);
}

body.customer-shell:not(.admin-shell) .market-controls input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 48px;
  width: auto;
  padding-right: 2px;
  font-size: 12px;
  text-overflow: ellipsis;
}

body.customer-shell:not(.admin-shell) .market-controls input[type="search"]::placeholder {
  color: #8b7f92;
  opacity: 1;
}

.policy-ack {
  display: block;
  color: #61706d;
  font-size: 12px;
  line-height: 1.45;
}

.policy-ack a,
.policy-link-row a,
.manual-price-toggle a {
  color: #00796b;
  font-weight: 800;
  text-decoration: none;
}

.policy-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.policy-link-row a {
  border: 1px solid rgba(0, 121, 107, 0.18);
  border-radius: 999px;
  background: #eefaf7;
  padding: 8px 10px;
  font-size: 12px;
}

body.customer-shell:not(.admin-shell) .market-hero {
  grid-template-columns: minmax(0, 1fr) 142px;
  min-height: 176px;
  gap: 8px;
  border-radius: 15px;
  padding: 18px 14px 22px;
  background:
    radial-gradient(circle at 72% 16%, rgba(255, 178, 42, 0.38), transparent 11%),
    radial-gradient(circle at 92% 92%, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(135deg, rgba(0, 121, 107, 0.98) 0%, rgba(0, 95, 86, 0.98) 66%, rgba(0, 72, 66, 0.98) 100%);
  box-shadow: 0 12px 28px rgba(0, 95, 86, 0.22);
}

body.customer-shell:not(.admin-shell) .market-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  height: 46px;
  opacity: 0.18;
  background:
    linear-gradient(90deg, transparent 0 6%, rgba(255, 255, 255, 0.6) 6% 7%, transparent 7% 14%, rgba(255, 255, 255, 0.5) 14% 15%, transparent 15% 22%, rgba(255, 255, 255, 0.45) 22% 23%, transparent 23% 100%);
}

body.customer-shell:not(.admin-shell) .market-hero::after {
  right: -32px;
  bottom: -58px;
  width: 190px;
  height: 120px;
}

body.customer-shell:not(.admin-shell) .market-hero .eyebrow {
  display: block;
  margin: 0;
  color: #ffffff;
  max-width: 100%;
  overflow: visible;
  font-size: clamp(20px, 5.9vw, 25px);
  line-height: 1.05;
  white-space: normal;
}

body.customer-shell:not(.admin-shell) .market-hero .eyebrow span {
  display: block;
  color: #ffd54f;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

body.customer-shell:not(.admin-shell) .market-hero .eyebrow strong {
  display: block;
  color: #ffffff;
  font-size: inherit;
  line-height: inherit;
}

body.customer-shell:not(.admin-shell) .market-hero h2 {
  margin: 9px 0 7px;
  max-width: 210px;
  font-size: clamp(14px, 3.7vw, 16px);
  line-height: 1.1;
}

body.customer-shell:not(.admin-shell) .market-hero h2::before {
  content: "⌖ ";
  color: #ffffff;
}

body.customer-shell:not(.admin-shell) .market-hero > div:first-child > span {
  max-width: min(224px, 100%);
  border-top: 1px dashed rgba(255, 213, 79, 0.62);
  padding-top: 6px;
  color: #ffffff;
  font-size: clamp(11px, 3vw, 12px);
  line-height: 1.35;
}

body.customer-shell:not(.admin-shell) .market-hero .hero-cta {
  position: relative;
  z-index: 2;
  width: fit-content;
  min-width: 104px;
  margin-top: 10px;
  border-radius: 11px;
  padding: 9px 13px;
  font-size: 13px;
}

body.customer-shell:not(.admin-shell) .hero-visual {
  position: relative;
  display: grid;
  align-content: center;
  min-width: 0;
}

body.customer-shell:not(.admin-shell) .hero-shopping-art {
  width: 154px;
  max-width: 118%;
  aspect-ratio: 1;
  justify-self: end;
  object-fit: cover;
  object-position: center 58%;
  border-radius: 18px;
  transform: translate(9px, 6px);
  filter: drop-shadow(0 12px 18px rgba(0, 44, 40, 0.28));
}

body.customer-shell:not(.admin-shell) .local-support-badge {
  position: absolute;
  right: -2px;
  bottom: 18px;
  z-index: 3;
  display: grid;
  width: 48px;
  min-height: 48px;
  place-items: center;
  border: 2px solid #f4c466;
  border-radius: 999px;
  background: #fffaf0;
  color: #453421;
  box-shadow: 0 6px 12px rgba(0, 42, 38, 0.18);
  font-size: 6px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
}

body.customer-shell:not(.admin-shell) .local-support-badge b {
  color: #ff6b00;
  font-size: 8px;
}

body.customer-shell:not(.admin-shell) .hero-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
}

body.customer-shell:not(.admin-shell) .category-rail {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding: 0 2px 8px;
}

body.customer-shell:not(.admin-shell) .category-row {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: max-content;
}

body.customer-shell:not(.admin-shell) .category-chip {
  flex: 0 0 72px;
  width: 72px;
  min-height: 78px;
  border-radius: 12px;
  padding: 7px 5px 6px;
  border-color: #eef0f2;
  background: #fff;
  box-shadow: 0 7px 16px rgba(31, 41, 51, 0.08);
}

body.customer-shell:not(.admin-shell) .category-chip .category-icon {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: #f7fbfa;
}

body.customer-shell:not(.admin-shell) .category-chip .category-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

body.customer-shell:not(.admin-shell) .category-chip strong {
  font-size: 9px;
  line-height: 1.15;
}

body.customer-shell:not(.admin-shell) #homeShopGrid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 116px;
  grid-template-columns: none;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 0 64px 10px 2px;
  scrollbar-width: none;
}

body.customer-shell:not(.admin-shell) #homeShopGrid::-webkit-scrollbar {
  display: none;
}

body.customer-shell:not(.admin-shell) #homeShopGrid .local-shop-card.compact {
  min-height: 202px;
  border-radius: 8px;
  padding: 7px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(31, 41, 51, 0.1);
}

body.customer-shell:not(.admin-shell) #homeShopGrid .shop-thumb {
  height: 84px;
  border-radius: 8px;
  background-size: 54px;
}

body.customer-shell:not(.admin-shell) .brand-logo-tile {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  padding: 7px 4px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 221, 128, 0.18), transparent 28%),
    linear-gradient(135deg, color-mix(in srgb, var(--shop-accent), #000 4%), color-mix(in srgb, var(--shop-accent), #000 26%));
  color: #ffe7a3;
  text-align: center;
}

body.customer-shell:not(.admin-shell) .brand-logo-tile .brand-logo-mark {
  font-size: 17px;
  line-height: 1;
}

body.customer-shell:not(.admin-shell) .brand-logo-tile strong {
  max-width: 100%;
  overflow: hidden;
  color: #ffe89f;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1;
  text-overflow: ellipsis;
}

body.customer-shell:not(.admin-shell) .brand-logo-tile small {
  max-width: 100%;
  overflow: hidden;
  color: #fff3ce;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.1;
  text-overflow: ellipsis;
}

body.customer-shell:not(.admin-shell) #homeShopGrid .shop-card-title {
  display: grid;
  gap: 4px;
}

body.customer-shell:not(.admin-shell) #homeShopGrid .shop-card-title h3 {
  min-height: 32px;
  font-size: 11.5px;
}

body.customer-shell:not(.admin-shell) #homeShopGrid .shop-card-title span {
  color: #f5a400;
  font-size: 9.5px;
}

body.customer-shell:not(.admin-shell) #homeShopGrid .shop-card-body p,
body.customer-shell:not(.admin-shell) #homeShopGrid .shop-badge-row {
  display: none;
}

body.customer-shell:not(.admin-shell) #homeShopGrid .shop-card-meta {
  display: grid;
  gap: 3px;
}

body.customer-shell:not(.admin-shell) #homeShopGrid .shop-card-meta span {
  font-size: 9px;
  line-height: 1.1;
}

body.customer-shell:not(.admin-shell) #homeShopGrid .shop-card-meta span:first-child {
  display: none;
}

body.customer-shell:not(.admin-shell) #homeShopGrid .shop-card-meta span:last-child {
  color: #00796b;
  font-size: 10.5px;
  font-weight: 900;
}

body.customer-shell:not(.admin-shell) #productGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.customer-shell:not(.admin-shell) .home-reference-deal {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  min-height: 124px;
  border: 1px solid #eef0f2;
  border-radius: 10px;
  padding: 8px 8px 8px 7px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 18px rgba(31, 41, 51, 0.08);
}

body.customer-shell:not(.admin-shell) .home-reference-deal .product-media {
  grid-column: 1;
  grid-row: 1;
  width: 76px;
  min-height: 108px;
  border-radius: 8px;
  background-color: #f7fbfa;
  background-size: 96%;
  background-position: center;
}

body.customer-shell:not(.admin-shell) .home-reference-deal .product-media span {
  font-size: 0;
}

body.customer-shell:not(.admin-shell) .home-reference-deal .product-wishlist-btn {
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border: 0;
  box-shadow: none;
  font-size: 18px;
}

body.customer-shell:not(.admin-shell) .home-reference-deal .product-body {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  position: relative;
  z-index: 2;
  align-content: start;
  gap: 6px;
  padding: 2px 0 2px 10px;
}

body.customer-shell:not(.admin-shell) .home-reference-deal .product-body h3 {
  min-height: 32px;
  max-height: 34px;
  overflow: hidden;
  padding-right: 24px;
  font-size: 12px;
  line-height: 1.25;
}

body.customer-shell:not(.admin-shell) .home-reference-deal .discount-badge {
  position: static;
  justify-self: start;
  border: 1px solid rgba(18, 131, 58, 0.32);
  border-radius: 4px;
  padding: 2px 5px;
  background: #ddffe7;
  color: #08752e;
  font-size: 9.5px;
}

body.customer-shell:not(.admin-shell) .home-reference-deal .price-row {
  display: flex;
  justify-content: start;
  gap: 7px;
}

body.customer-shell:not(.admin-shell) .home-reference-deal .sale-price {
  color: #111827;
  font-size: 19px;
}

body.customer-shell:not(.admin-shell) .home-reference-deal .mrp {
  color: #8a8f98;
  font-size: 11px;
}

body.customer-shell:not(.admin-shell) .home-reference-deal .product-meta {
  color: #424b57;
  font-size: 9px;
  line-height: 1.2;
}

body.customer-shell:not(.admin-shell) .home-reference-deal .product-meta::before {
  content: "▣ ";
  color: #111827;
}

body.customer-shell:not(.admin-shell) .section-title-row h2 {
  font-size: 16px;
}

body.customer-shell:not(.admin-shell) .text-link-button,
body.customer-shell:not(.admin-shell) #productSectionHint {
  color: #00796b;
  font-size: 11px;
}

body.customer-shell:not(.admin-shell) .side-nav {
  width: min(100%, 430px);
  border-color: #eef2f2;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -8px 18px rgba(31, 41, 51, 0.1);
}

body.customer-shell:not(.admin-shell) .nav-item {
  min-height: 52px;
  border-radius: 12px;
  color: #3f464d;
}

body.customer-shell:not(.admin-shell) .nav-item.active,
body.customer-shell:not(.admin-shell) .nav-item:hover {
  background: #e8f7f4;
  color: #00796b;
}

body.customer-shell:not(.admin-shell) .customer-quick-menu {
  position: absolute;
  top: 50px;
  left: 4px;
  z-index: 70;
  display: grid;
  min-width: 150px;
  gap: 6px;
  border: 1px solid rgba(0, 121, 107, 0.14);
  border-radius: 14px;
  padding: 8px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(31, 41, 51, 0.16);
}

body.customer-shell:not(.admin-shell) .customer-quick-menu[hidden] {
  display: none;
}

body.customer-shell:not(.admin-shell) .customer-quick-menu button {
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  background: #f0faf8;
  color: #005f56;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-align: left;
}

body.customer-shell:not(.admin-shell) .customer-cart-shortcut {
  position: fixed;
  right: calc(50% - min(215px, 50vw) + 12px);
  bottom: 72px;
  z-index: 45;
  display: grid;
  width: 44px;
  height: 44px;
  grid-template-columns: 1fr;
  place-items: center;
  border: 1px solid rgba(0, 121, 107, 0.16);
  border-radius: 999px;
  padding: 0;
  background: linear-gradient(135deg, #00796b, #005f56);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 95, 86, 0.24);
  cursor: pointer;
}

body.customer-shell:not(.admin-shell) .customer-cart-shortcut::before {
  content: "🛒";
  grid-column: 1;
  grid-row: 1;
  font-size: 17px;
}

body.customer-shell:not(.admin-shell) .customer-cart-shortcut span {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  justify-self: end;
  display: grid;
  min-width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 999px;
  background: #ff6b00;
  color: #ffffff;
  font-size: 9px;
  font-weight: 1000;
  transform: translate(8px, -8px);
}

body.customer-shell:not(.admin-shell) .customer-cart-shortcut strong {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

body.customer-shell:not(.admin-shell) .nav-item[data-view="seller"],
body.customer-shell:not(.admin-shell) .nav-item[data-view="admin"],
body.customer-shell:not(.admin-shell) .nav-item[data-view="delivery"],
body.customer-shell:not(.admin-shell) .nav-item[data-view="marketing"],
body.customer-shell:not(.admin-shell) .nav-item[data-view="studio"] {
  display: none !important;
}

body.customer-shell:not(.admin-shell) .market-cart-panel.open {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 0;
  z-index: 80;
  display: grid !important;
  width: min(100%, 430px);
  max-height: min(82vh, 720px);
  overflow: auto;
  transform: translateX(-50%);
  border: 1px solid rgba(0, 121, 107, 0.14);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  padding: 14px 12px calc(88px + env(safe-area-inset-bottom));
  background: #ffffff;
  box-shadow: 0 -18px 44px rgba(31, 41, 51, 0.22);
}

body.customer-shell:not(.admin-shell) .market-cart-panel.open .panel-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 34px;
  align-items: center;
  gap: 8px;
}

body.customer-shell:not(.admin-shell) .cart-close-btn {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #f0faf8;
  color: #005f56;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}
.profile-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.profile-action-grid a,
.profile-action-grid button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.profile-logout-action {
  color: #a92525;
  border-color: #e8b2b2;
}

.seller-permission-message {
  padding: 10px 12px;
  border: 1px solid #efb36d;
  border-radius: 6px;
  background: #fff7e9;
  color: #814800;
  font-size: 0.88rem;
  line-height: 1.4;
}

.seller-permission-message.allowed {
  border-color: #8ecabc;
  background: #eaf7f3;
  color: #075f55;
}

.privileged-session-warning {
  position: fixed;
  right: 24px;
  bottom: 84px;
  z-index: 30;
  display: grid;
  gap: 8px;
  max-width: min(380px, calc(100vw - 32px));
  padding: 14px 16px;
  border: 1px solid #e79a3c;
  border-radius: 12px;
  background: #fff8e8;
  color: #513100;
  box-shadow: var(--shadow);
}

.privileged-session-warning[hidden] {
  display: none;
}

.privileged-session-warning button {
  justify-self: start;
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  background: #0d5d55;
  color: #fff;
  font: inherit;
  font-weight: 800;
}
.login-access-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.seller-application-card { max-height: min(92vh, 860px); overflow: auto; }

.account-role-message { margin: 16px 0; padding: 14px; border: 1px solid rgba(13, 93, 85, 0.16); border-radius: 14px; background: #f7fffb; color: #0d5d55; font-weight: 700; }

.login-access-actions [hidden] { display: none; }

body.login-overlay-open .customer-cart-shortcut, body.seller-application-open .customer-cart-shortcut { display: none !important; }
@media (max-width: 860px) {
  body.login-overlay-open .login-card { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
  body.seller-application-open .seller-application-card { max-height: calc(100vh - 82px); margin-bottom: 82px; padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
}

/* Bright marketplace palette: sky blue, red, orange and parrot green. */
body {
  background: linear-gradient(180deg, #eaf8ff 0%, #ffffff 48%, #efffdc 100%);
}

.login-screen {
  background: linear-gradient(145deg, rgba(184, 232, 255, 0.96) 0%, rgba(255, 255, 255, 0.98) 52%, rgba(233, 255, 205, 0.96) 100%);
}

.brand-mark,
.splash-bag {
  background: linear-gradient(135deg, #42c92f 0%, #ff8a00 58%, #e32636 100%);
}

.primary-action,
.add-mini {
  background: linear-gradient(105deg, #42bd30 0%, #ff9500 58%, #e32636 100%);
}

.secondary-action {
  border: 1px solid #a9dff5;
  background: linear-gradient(135deg, #e4f7ff 0%, #efffdc 100%);
  color: #175f2a;
}

body.login-overlay-open .login-card {
  max-height: calc(100vh - 92px);
  margin-bottom: 92px;
  overflow-y: auto;
  padding-bottom: 28px;
}

body.seller-application-open .seller-application-card {
  max-height: calc(100vh - 92px);
  margin-bottom: 92px;
}

.toast {
  right: 20px;
  bottom: 96px;
  z-index: 200;
  border: 3px solid #ff9a00;
  background: linear-gradient(135deg, #e32636 0%, #c4142b 100%);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 16px 38px rgba(227, 38, 54, 0.38);
}

.toast.show {
  transform: translateY(0);
}

input:focus,
select:focus,
textarea:focus {
  border-color: #39bde8;
  box-shadow: 0 0 0 3px rgba(87, 201, 40, 0.2);
}
.side-nav,
.seller-header,
.platform-admin-header,
.platform-control-center > header {
  border-color: #a8daf0;
  background: linear-gradient(120deg, #58c9f2 0%, #62d832 38%, #ff9800 72%, #e32636 100%);
}

.nav-item.active,
.account-tabs button.active,
.seller-tabbar button.active,
.platform-tabbar button.active,
.category-chip.active {
  border-color: #41bde8;
  background: linear-gradient(135deg, #cfefff 0%, #e9ffd5 100%);
  color: #185f25;
}

.market-hero,
.campaign-strip {
  border-color: #4cc5ed;
  background: linear-gradient(120deg, #48c7f2 0%, #57d52d 36%, #ff9700 72%, #e32636 100%);
  color: #ffffff;
}

.danger-action,
.state-danger {
  border-color: #e32636;
  background: #e32636;
  color: #ffffff;
}

.state-good,
.seller-status-pill {
  border-color: #57c928;
  background: #edffdc;
  color: #236f20;
}

.state-warning,
.rating-pill,
.stock {
  border-color: #ff9800;
  background: #fff0d4;
  color: #b34c00;
}

.work-panel,
.local-shop-card,
.local-product-card,
.login-card {
  border-color: #b7def1;
  box-shadow: 0 12px 30px rgba(53, 174, 221, 0.14);
}

a,
.ghost-link,
.policy-link-row a {
  color: #d91f32;
}

.mock-otp-notice {
  display: block;
  border: 1px solid #ff9800;
  border-radius: 12px;
  padding: 9px 11px;
  background: #fff4d9;
  color: #8f3f00;
  font-weight: 800;
  line-height: 1.35;
}

.mock-otp-notice[hidden] {
  display: none;
}

/* Customer mobile dock: polished navigation without changing its behaviour. */
body.portal-route .app-shell {
  grid-template-columns: minmax(0, 1fr);
}

body.portal-route .side-nav {
  display: none !important;
}

body.customer-shell:not(.admin-shell) .side-nav {
  right: auto;
  bottom: max(8px, env(safe-area-inset-bottom));
  width: min(calc(100% - 18px), 430px);
  overflow: visible;
  border: 1px solid rgba(57, 189, 232, 0.42);
  border-radius: 24px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 36px rgba(18, 73, 92, 0.18), 0 3px 10px rgba(18, 73, 92, 0.1);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}

body.customer-shell:not(.admin-shell) .side-nav nav {
  gap: 4px;
}

body.customer-shell:not(.admin-shell) .nav-item {
  position: relative;
  min-height: 58px;
  gap: 3px;
  overflow: visible;
  border: 1px solid transparent;
  border-radius: 17px;
  padding: 8px 2px 6px;
  background: transparent;
  color: #52646b;
  font-size: 10px;
  letter-spacing: -0.1px;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

body.customer-shell:not(.admin-shell) .nav-item::before {
  display: block;
  width: 23px;
  height: 23px;
  background: currentColor;
  content: "";
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

body.customer-shell:not(.admin-shell) .nav-item[data-view="shop"]::before {
  color: #39bde8;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 11 9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10M9 20v-6h6v6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 11 9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10M9 20v-6h6v6'/%3E%3C/svg%3E");
}

body.customer-shell:not(.admin-shell) .nav-item[data-view="shops"]::before {
  color: #ff7a00;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9h18l-2-5H5L3 9Z'/%3E%3Cpath d='M5 9v11h14V9M9 20v-6h6v6M3 9a3 3 0 0 0 6 0 3 3 0 0 0 6 0 3 3 0 0 0 6 0'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9h18l-2-5H5L3 9Z'/%3E%3Cpath d='M5 9v11h14V9M9 20v-6h6v6M3 9a3 3 0 0 0 6 0 3 3 0 0 0 6 0 3 3 0 0 0 6 0'/%3E%3C/svg%3E");
}

body.customer-shell:not(.admin-shell) .nav-item[data-scroll-target="categoryRail"]::before {
  color: #55c92b;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='2'/%3E%3Crect x='14' y='3' width='7' height='7' rx='2'/%3E%3Crect x='3' y='14' width='7' height='7' rx='2'/%3E%3Crect x='14' y='14' width='7' height='7' rx='2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='2'/%3E%3Crect x='14' y='3' width='7' height='7' rx='2'/%3E%3Crect x='3' y='14' width='7' height='7' rx='2'/%3E%3Crect x='14' y='14' width='7' height='7' rx='2'/%3E%3C/svg%3E");
}

body.customer-shell:not(.admin-shell) .nav-item[data-view="orders"]::before {
  color: #e32636;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v18l-3-2-3 2-3-2-3 2V3Z'/%3E%3Cpath d='M9 8h6M9 12h6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v18l-3-2-3 2-3-2-3 2V3Z'/%3E%3Cpath d='M9 8h6M9 12h6'/%3E%3C/svg%3E");
}

body.customer-shell:not(.admin-shell) .nav-item[data-view="account"]::before {
  color: #008b7c;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E");
}

body.customer-shell:not(.admin-shell) .nav-item.active,
body.customer-shell:not(.admin-shell) .nav-item:hover {
  border-color: rgba(57, 189, 232, 0.38);
  background: linear-gradient(145deg, #d9f4ff 0%, #eeffdf 100%);
  color: #114d43;
  box-shadow: 0 7px 16px rgba(57, 189, 232, 0.2);
  transform: translateY(-4px);
}

body.customer-shell:not(.admin-shell) .nav-item.active::after {
  position: absolute;
  right: 27%;
  bottom: 3px;
  left: 27%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #55c92b, #ff8a00, #e32636);
  content: "";
}

body.customer-shell:not(.admin-shell) .nav-item.active::before,
body.customer-shell:not(.admin-shell) .nav-item:hover::before {
  color: #087d70;
  transform: scale(1.08);
}

/* Focused auth portal: inline OTP feedback keeps the Login action in view. */
.login-screen {
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 300;
  background:
    radial-gradient(circle at 14% 8%, rgba(85, 193, 244, 0.24), transparent 28%),
    radial-gradient(circle at 86% 92%, rgba(218, 35, 54, 0.16), transparent 30%),
    linear-gradient(155deg, #eaf8ff 0%, #ffffff 48%, #f5f7fb 100%);
}

.login-card {
  border-color: rgba(57, 189, 232, 0.58);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 44px rgba(13, 30, 45, 0.16);
}

.login-card .brand-mark {
  background: linear-gradient(135deg, #111827 0%, #202938 48%, #d91f32 100%);
  box-shadow: 0 10px 22px rgba(217, 31, 50, 0.24);
}

.login-card .eyebrow {
  color: #1678b7;
}

.login-card h1,
.login-card .brand-block strong {
  color: #121a26;
}

.login-card .primary-action {
  border-color: #161d29;
  background: linear-gradient(105deg, #111827 0%, #303b4d 48%, #d91f32 100%);
  box-shadow: 0 9px 18px rgba(217, 31, 50, 0.18);
}

.login-card .secondary-action {
  border-color: #8bcff1;
  background: #edf9ff;
  color: #142331;
}

.login-card input {
  border-color: #9ed7f2;
  background: #fbfdff;
  color: #121a26;
}

.login-card #otpStatus:not(:empty) {
  display: block;
  border-left: 3px solid #39bde8;
  padding: 8px 10px;
  background: #eef9ff;
  color: #174866;
  font-weight: 700;
}

.login-card .mock-otp-notice {
  border-color: rgba(217, 31, 50, 0.42);
  background: #fff2f4;
  color: #8f1828;
}

body.login-overlay-open .login-card {
  max-height: none;
  margin-block: auto;
  overflow: visible;
  padding-bottom: calc(30px + env(safe-area-inset-bottom));
}

body.login-overlay-open {
  overflow: hidden;
}

body.login-overlay-open .side-nav,
body.login-overlay-open .shop-detail-actions,
body.login-overlay-open .product-detail-actions,
body.login-overlay-open .customer-cart-shortcut {
  display: none !important;
}

body.login-overlay-open .toast {
  top: max(12px, env(safe-area-inset-top));
  right: 50%;
  bottom: auto;
  width: min(calc(100% - 32px), 430px);
  max-width: none;
  transform: translate(50%, -160%);
  border: 1px solid rgba(92, 203, 245, 0.82);
  border-radius: 12px;
  padding: 10px 14px;
  background: linear-gradient(105deg, #111827 0%, #263447 52%, #d91f32 100%);
  color: #ffffff;
  font-size: 13px;
  line-height: 1.35;
  box-shadow: 0 12px 28px rgba(13, 30, 45, 0.24);
}

body.login-overlay-open .toast.show {
  transform: translate(50%, 0);
}

@media (max-width: 860px) {
  body.login-overlay-open .login-screen {
    align-items: flex-start;
    padding: max(8px, env(safe-area-inset-top)) 10px max(18px, env(safe-area-inset-bottom));
  }

  body.login-overlay-open .login-card {
    width: min(100%, 520px);
    min-height: 0;
    margin: 0 auto;
    padding: 18px 16px calc(40px + env(safe-area-inset-bottom));
  }

  body.customer-shell:not(.admin-shell) .side-nav {
    width: min(calc(100% - 36px), 390px);
    border-radius: 19px;
    padding: 5px;
    border-color: rgba(57, 189, 232, 0.62);
    box-shadow: 0 12px 28px rgba(13, 30, 45, 0.18);
  }

  body.customer-shell:not(.admin-shell) .nav-item {
    min-height: 54px;
    border-radius: 13px;
    padding: 7px 1px 5px;
    color: #283442;
    font-size: 9px;
    font-weight: 800;
  }

  body.customer-shell:not(.admin-shell) .nav-item[data-view="shop"]::before,
  body.customer-shell:not(.admin-shell) .nav-item[data-view="shops"]::before,
  body.customer-shell:not(.admin-shell) .nav-item[data-scroll-target="categoryRail"]::before {
    color: #1688c7;
  }

  body.customer-shell:not(.admin-shell) .nav-item[data-view="orders"]::before,
  body.customer-shell:not(.admin-shell) .nav-item[data-view="account"]::before {
    color: #d91f32;
  }

  body.customer-shell:not(.admin-shell) .nav-item.active,
  body.customer-shell:not(.admin-shell) .nav-item:hover {
    border-color: rgba(57, 189, 232, 0.55);
    background: linear-gradient(145deg, #e4f6ff 0%, #ffffff 58%, #fff0f2 100%);
    color: #111827;
    box-shadow: 0 6px 14px rgba(57, 189, 232, 0.16);
  }

  body.customer-shell:not(.admin-shell) .nav-item.active::after {
    background: linear-gradient(90deg, #39bde8, #d91f32);
  }
}
