:root {
  --navy: #0b2d4d;
  --blue: #1f8ed8;
  --commerce-accent: #f68b1e;
  --commerce-accent-dark: #d96f06;
  --light-blue: #e8f5ff;
  --ink: #17202a;
  --muted: #617386;
  --line: #d7e4ef;
  --commerce-line: #e5e7eb;
  --surface: #ffffff;
  --soft: #f1f3f6;
  --success: #167a48;
  --danger: #b42318;
  --warning: #a35b00;
  --header-height: 96px;
  --container: 1180px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.5;
}
body.public-shell {
  --public-bg: #0b2d4d;
  --public-bg-deep: #071f37;
  --public-bg-gradient:
    linear-gradient(125deg, rgba(0, 0, 0, .34), rgba(0, 0, 0, .2)),
    linear-gradient(135deg, #1c86ee 0%, #ffffff 52%, #000000 100%);
  --public-bg-line: rgba(255, 255, 255, .16);
  --public-text: #ffffff;
  --public-text-soft: #d7eafa;
  --public-surface-shadow: 0 14px 34px rgba(2, 17, 31, .2);
  background: var(--public-bg-gradient);
  background-attachment: fixed;
}
a { color: var(--navy); text-decoration: none; }
img { max-width: 100%; display: block; }
main { min-height: 70vh; }
.public-shell main {
  background: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: white;
  border-bottom: 1px solid var(--commerce-line);
  box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
}
.public-shell .site-header {
  background: var(--public-bg);
  border-bottom-color: var(--public-bg-line);
  box-shadow: 0 10px 26px rgba(2, 17, 31, .22);
}
.top-strip,
.header-main {
  width: min(var(--container), calc(100% - 24px));
  margin: 0 auto;
}
.top-strip {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  overflow: hidden;
}
.top-strip span,
.top-strip a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.top-strip a {
  color: var(--commerce-accent-dark);
}
.public-shell .top-strip {
  color: var(--public-text-soft);
}
.public-shell .top-strip a {
  color: var(--public-text);
}
.public-shell .top-strip a:hover,
.public-shell .nav a:hover,
.public-shell .nav .link-button:hover {
  color: #ffbf73;
}
.header-main {
  min-height: 66px;
  display: grid;
  grid-template-columns: minmax(150px, auto) minmax(220px, 1fr) minmax(0, auto);
  gap: clamp(8px, 1.4vw, 18px);
  align-items: center;
}
.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--navy);
}
.brand-logo {
  display: block;
  width: min(190px, 100%);
  max-width: 100%;
  height: auto;
  max-height: 48px;
  object-fit: contain;
}
.brand-fallback {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.brand span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--navy);
  color: white;
}
.public-shell .brand {
  color: var(--public-text);
}
.public-shell .brand-logo {
  width: min(184px, 100%);
  max-height: 42px;
  padding: 4px 8px;
  border-radius: 6px;
  background: white;
}
.public-shell .brand-mark {
  background: var(--public-text);
  color: var(--public-bg);
}
.site-search {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.site-search input {
  min-width: 0;
  min-height: 42px;
  border-radius: 4px;
  border-color: var(--commerce-line);
}
.site-search button {
  border-radius: 4px;
  min-width: 96px;
}
.public-shell .site-search input {
  border-color: rgba(255, 255, 255, .28);
  background: white;
}
.nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(6px, 1vw, 14px);
  flex-wrap: nowrap;
  white-space: nowrap;
  font-size: clamp(.78rem, .9vw, 1rem);
  font-weight: 800;
  overflow: hidden;
}
.nav a,
.nav .link-button,
.nav-role {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-role {
  color: var(--muted);
  font-size: .86em;
  font-weight: 900;
}
.public-shell .nav a,
.public-shell .nav .link-button {
  color: var(--public-text);
}
.public-shell .nav-role {
  color: var(--public-text-soft);
}
.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.badge { background: #fff1df; color: var(--commerce-accent-dark); padding: 2px 7px; border-radius: 999px; font-size: .8rem; }
.public-shell .badge {
  background: var(--commerce-accent);
  color: white;
}
.inline-form { display: inline; }
.link-button { border: 0; background: transparent; color: var(--navy); padding: 0; cursor: pointer; font: inherit; }
.link-button.danger, .danger { color: var(--danger); }

.button, button {
  border: 0;
  border-radius: 4px;
  background: var(--commerce-accent);
  color: white;
  font-weight: 700;
  padding: 10px 16px;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}
.button:hover, button:hover { background: var(--commerce-accent-dark); }
.button.ghost { background: white; color: var(--navy); border: 1px solid var(--line); }
.button.small { padding: 8px 12px; min-height: 36px; }
.button.full { width: 100%; }
.button.danger { background: var(--danger); color: white; }
.table-action-button {
  min-height: 34px;
  padding: 7px 14px;
  white-space: nowrap;
  font-weight: 850;
}
button:disabled { opacity: .5; cursor: not-allowed; }

.messages { padding: 12px clamp(16px, 4vw, 56px); }
.message { padding: 12px 14px; border-radius: 8px; background: var(--light-blue); border: 1px solid var(--line); margin-bottom: 8px; }
.message.error { background: #fff1f0; border-color: #f6b7b0; }
.message.success { background: #ecfdf3; border-color: #abefc6; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(11, 45, 77, .48);
}
.modal-panel {
  width: min(440px, 100%);
  background: white;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(11, 45, 77, .22);
  padding: 22px;
}
.modal-panel h2 {
  margin: 0 0 8px;
}
.modal-panel p {
  color: var(--muted);
  margin: 0 0 18px;
}
.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.consent-panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  width: min(520px, calc(100% - 32px));
}
.consent-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: white;
  border: 1px solid var(--commerce-line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(11, 45, 77, .18);
}
.consent-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .9rem;
}
.consent-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.consent-fields label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--ink);
  font-size: .84rem;
}
.consent-fields input[type="checkbox"] {
  width: auto;
  min-height: 0;
}
.consent-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.hero {
  min-height: 480px;
  display: flex;
  align-items: center;
  padding: clamp(48px, 8vw, 96px) clamp(16px, 4vw, 56px);
  color: white;
  background:
    linear-gradient(90deg, rgba(11,45,77,.94), rgba(11,45,77,.58)),
    url("https://images.unsplash.com/photo-1581092160607-ee22621dd758?auto=format&fit=crop&w=1800&q=80") center/cover;
}
.hero-copy { max-width: 720px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0; font-size: .82rem; font-weight: 800; color: var(--blue); }
.hero .eyebrow { color: #9dd8ff; }
h1, h2, h3 { line-height: 1.15; color: var(--navy); letter-spacing: 0; }
.hero h1 { color: white; font-size: clamp(2.2rem, 7vw, 4.8rem); margin: 8px 0 18px; max-width: 900px; }
.hero p { font-size: 1.1rem; max-width: 640px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.market-home {
  padding: 12px 0 20px;
  background: var(--soft);
  border-bottom: 1px solid var(--commerce-line);
}
.public-shell .market-home {
  background: transparent;
  border-bottom-color: transparent;
}
.market-toolbar {
  width: min(var(--container), calc(100% - 24px));
  margin: 0 auto 12px;
}
.market-link-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.market-link-row::-webkit-scrollbar { display: none; }
.market-link-row a {
  flex: 0 0 auto;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 4px;
  background: white;
  border: 1px solid var(--commerce-line);
  color: var(--ink);
  font-size: .9rem;
  font-weight: 800;
}
.public-shell .market-link-row a,
.public-shell .catalog-chips a {
  border-color: rgba(255, 255, 255, .24);
  box-shadow: 0 8px 18px rgba(2, 17, 31, .13);
}
.public-shell .market-link-row a:hover,
.public-shell .catalog-chips a:hover {
  border-color: var(--commerce-accent);
  color: var(--navy);
}
.market-layout {
  width: min(var(--container), calc(100% - 24px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 12px;
  align-items: start;
}
.market-categories {
  background: white;
  border: 1px solid var(--commerce-line);
  border-radius: 4px;
  padding: 8px;
  position: sticky;
  top: calc(var(--header-height) + 12px);
}
.public-shell .market-categories,
.public-shell .category-feature-list,
.public-shell .storefront-hero,
.public-shell .compact-heading,
.public-shell .product-card,
.public-shell .market-service-strip a,
.public-shell .filters,
.public-shell .catalog-head,
.public-shell .gallery,
.public-shell .product-info,
.public-shell .table-wrap,
.public-shell .summary-card,
.public-shell .form-card,
.public-shell .support-item,
.public-shell .modal-panel,
.public-shell .consent-card {
  border-color: rgba(255, 255, 255, .24);
  box-shadow: var(--public-surface-shadow);
}
.market-categories h2 {
  font-size: .92rem;
  margin: 4px 8px 8px;
}
.market-categories a {
  display: block;
  padding: 8px;
  border-radius: 4px;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 700;
}
.market-categories a:hover {
  background: #fff5eb;
  color: var(--navy);
}
.market-main {
  min-width: 0;
}
.landing-row-one {
  width: min(var(--container), calc(100% - 24px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr) minmax(250px, 300px);
  gap: 12px;
  align-items: stretch;
}
.landing-row-one .market-categories {
  position: static;
}
.landing-row-one .storefront-hero {
  grid-template-columns: 1fr;
  align-items: stretch;
  min-height: 100%;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 0;
}
.landing-row-one .storefront-hero-media {
  aspect-ratio: 16 / 9;
  display: block;
  width: 100%;
  max-width: 100%;
  justify-self: stretch;
}
.category-feature-list {
  background: white;
  border: 1px solid var(--commerce-line);
  border-radius: 4px;
  padding: 10px;
}
.mini-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.mini-section-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: .98rem;
}
.mini-section-head a {
  color: var(--commerce-accent-dark);
  font-size: .8rem;
  font-weight: 900;
}
.category-feature-item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid var(--commerce-line);
}
.category-feature-item:first-of-type {
  border-top: 0;
}
.category-feature-media {
  width: 78px;
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
  background: #f8fafc;
}
.category-feature-item img,
.mini-placeholder {
  width: 100%;
  height: 100%;
}
.category-feature-item img {
  object-fit: cover;
}
.mini-placeholder {
  display: grid;
  place-items: center;
  color: var(--navy);
  font-size: 1.3rem;
  font-style: normal;
  font-weight: 900;
}
.category-feature-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.category-feature-category,
.category-feature-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.category-feature-category {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 900;
}
.category-feature-name {
  color: var(--ink);
  font-size: .9rem;
  font-weight: 900;
}
.category-feature-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.category-feature-price strong {
  color: var(--commerce-accent-dark);
  font-size: 1rem;
  font-weight: 950;
}
.category-feature-price s {
  color: var(--muted);
  font-size: .78rem;
}
.category-feature-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 4px;
}
.category-feature-actions form {
  min-width: 0;
}
.category-feature-actions .button {
  width: 100%;
  min-height: 34px;
  padding: 7px 8px;
  font-size: .82rem;
  white-space: nowrap;
}
.storefront-hero {
  display: grid;
  grid-template-columns: minmax(260px, 42%) 1fr;
  gap: 18px;
  align-items: center;
  background: white;
  border: 1px solid var(--commerce-line);
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 12px;
  min-height: 300px;
}
.storefront-hero-media {
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  overflow: hidden;
  background: var(--light-blue);
}
.storefront-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.storefront-hero h1 {
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  margin: 8px 0;
}
.storefront-hero p {
  color: var(--muted);
  margin: 0 0 10px;
}
.hero-buy-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.hero-buy-row strong {
  color: var(--commerce-accent-dark);
  font-size: 1.35rem;
}
.hero-buy-row s,
.price-stack s {
  color: var(--muted);
  font-size: .85rem;
}
.compact-actions {
  margin-top: 8px;
}
.compact-heading {
  margin-bottom: 10px;
  background: white;
  border: 1px solid var(--commerce-line);
  border-radius: 4px 4px 0 0;
  padding: 10px 12px;
}
.compact-heading h1,
.compact-heading h2 {
  font-size: 1.05rem;
  margin: 0;
}
.market-grid {
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 8px;
}
.market-grid .product-card-body {
  padding: 10px;
}
.market-grid .product-card p {
  min-height: 38px;
  font-size: .9rem;
}
.market-section {
  width: min(var(--container), calc(100% - 24px));
  margin: 0 auto;
  padding: 18px 0;
}
.market-section.alt {
  background: var(--soft);
  border-block: 0;
}
.public-shell .market-section,
.public-shell .market-section.alt {
  background: transparent;
}
.category-product-row {
  padding-top: 12px;
}
.flash-section .compact-heading {
  background: var(--commerce-accent);
  border-color: var(--commerce-accent);
}
.flash-section .compact-heading h2,
.flash-section .compact-heading a {
  color: white;
}
.market-service-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}
.market-service-strip a {
  display: grid;
  gap: 2px;
  min-height: 64px;
  padding: 12px;
  background: white;
  border: 1px solid var(--commerce-line);
  border-radius: 4px;
}
.market-service-strip span {
  color: var(--muted);
  font-size: .85rem;
}

.section, .band, .page-title, .catalog-layout, .cart-layout, .checkout-layout, .dashboard-layout {
  padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 56px);
}
.band { background: var(--soft); border-block: 1px solid var(--line); }
.public-shell .section,
.public-shell .band {
  background: transparent;
}
.public-shell .band {
  border-block-color: rgba(255, 255, 255, .25);
}
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.product-card {
  background: white;
  border: 1px solid var(--commerce-line);
  border-radius: 4px;
  overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
}
.product-media {
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, .98) 0 34%, rgba(232, 242, 250, .9) 68%, #e6eff7 100%);
  display: block;
  position: relative;
  overflow: hidden;
}
.product-media img,
.main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.product-media img {
  padding: 10px;
}
.product-card-body { padding: 12px; }
.product-card h3 {
  color: var(--ink);
  font-size: .95rem;
  line-height: 1.3;
  margin: 0 0 7px;
  min-height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card p {
  color: var(--muted);
  min-height: 42px;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.category-link {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sale-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 4px;
  background: #fff1df;
  color: var(--commerce-accent-dark);
  font-size: .75rem;
  font-weight: 800;
}
.product-discount {
  position: absolute;
  top: 8px;
  right: 8px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 4px;
  background: #fff1df;
  color: var(--commerce-accent-dark);
  font-size: .75rem;
  font-weight: 900;
}
.price-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.product-card-price-row {
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
}
.price-label {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}
.price-stack {
  display: grid;
  gap: 2px;
}
.price-stack strong {
  color: var(--commerce-accent-dark);
  font-size: 1.05rem;
}
.card-actions { display: flex; gap: 8px; margin-top: 12px; }
.card-actions form { flex: 1; }
.card-actions .button { width: 100%; }
.product-commerce-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.product-commerce-actions .inquire-action {
  grid-column: 1 / -1;
}
.stock { font-size: .8rem; color: var(--warning); }
.stock.ok { color: var(--success); }
.muted { color: var(--muted); }
.mt-compact { margin-top: 10px; }
.image-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 180px;
  background: linear-gradient(135deg, var(--light-blue), #ffffff);
  color: var(--navy);
  font-size: 3rem;
  font-weight: 800;
}
.image-placeholder.large { min-height: 420px; border-radius: 8px; border: 1px solid var(--line); }

.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.category-tile, .metric, .summary-card, .form-card, .support-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.category-tile span { display: block; color: var(--muted); margin-top: 6px; }
.split, .grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.check-list { padding-left: 20px; }
.support-strip { text-align: center; }

.page-title {
  width: min(var(--container), calc(100% - 24px));
  margin: 0 auto;
  padding: 22px 0 12px;
}
.page-title h1 {
  margin: 0 0 4px;
  font-size: 1.6rem;
}
.page-title p {
  margin: 0;
  color: var(--muted);
}
.public-shell .page-title h1,
.public-shell .section > .section-heading h2,
.public-shell .band > .section-heading h2 {
  color: var(--navy);
}
.public-shell .page-title p,
.public-shell .section > p,
.public-shell .band > p {
  color: var(--muted);
}
.public-shell .pagination {
  color: var(--public-text);
}
.public-shell .pagination a {
  color: var(--public-text);
}
.catalog-chips {
  width: min(var(--container), calc(100% - 24px));
  margin: 0 auto 12px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.catalog-chips::-webkit-scrollbar { display: none; }
.catalog-chips a {
  flex: 0 0 auto;
  padding: 8px 12px;
  background: white;
  border: 1px solid var(--commerce-line);
  border-radius: 4px;
  color: var(--ink);
  font-weight: 800;
  font-size: .9rem;
}
.catalog-layout {
  width: min(var(--container), calc(100% - 24px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 12px;
  align-items: start;
  padding: 0 0 32px;
}
.filters {
  background: white;
  border: 1px solid var(--commerce-line);
  border-radius: 4px;
  padding: 14px;
  position: sticky;
  top: calc(var(--header-height) + 12px);
}
.filters h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}
.catalog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: white;
  border: 1px solid var(--commerce-line);
  border-radius: 4px;
}
.catalog-head span {
  color: var(--muted);
  font-size: .9rem;
}
label { display: grid; gap: 6px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--commerce-line);
  border-radius: 4px;
  min-height: 42px;
  padding: 9px 10px;
  font: inherit;
  color: var(--ink);
  background: white;
}
input[type="checkbox"] {
  width: auto;
  min-height: 0;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.product-detail {
  width: min(1040px, calc(100% - 24px));
  margin: 18px auto;
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 16px;
  padding: 0;
}
.gallery,
.product-info {
  background: white;
  border: 1px solid var(--commerce-line);
  border-radius: 4px;
  padding: 16px;
}
.main-image {
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  border: 1px solid var(--commerce-line);
  background:
    radial-gradient(circle at 50% 42%, #ffffff 0 35%, #edf6fd 72%, #e4eef7 100%);
  padding: clamp(12px, 2.5vw, 28px);
}
.thumb-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.thumb-button {
  flex: 0 0 74px;
  width: 74px;
  min-height: 74px;
  padding: 0;
  border: 1px solid var(--commerce-line);
  border-radius: 4px;
  background: #f8fbff;
}
.thumb-button.active {
  border-color: var(--commerce-accent);
  box-shadow: 0 0 0 2px rgba(246, 139, 30, .18);
}
.thumb-button img {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}
.product-info h1 {
  color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 2rem);
  margin: 6px 0 10px;
}
.detail-price { font-size: 1.8rem; font-weight: 900; color: var(--commerce-accent-dark); margin: 16px 0; }
.detail-promises {
  display: grid;
  gap: 8px;
  margin: 14px 0 18px;
}
.detail-promises span {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid var(--commerce-line);
  border-radius: 4px;
  color: var(--ink);
  font-weight: 800;
}
.add-cart { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.product-related-section .section-heading h2 {
  color: var(--navy);
}
.variation-editor {
  display: grid;
  gap: 8px;
}
.variation-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(90px, 1fr));
  gap: 8px;
  align-items: center;
}
.variation-row-head {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}
.existing-variation-list {
  margin-top: 8px;
}
.specs { display: grid; grid-template-columns: 160px 1fr; gap: 8px 12px; }
.specs dt { font-weight: 800; color: var(--navy); }
.review { border-bottom: 1px solid var(--line); padding: 12px 0; }
.review span { color: var(--muted); display: block; }
.public-shell .review {
  margin-bottom: 8px;
  padding: 12px;
  background: white;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 4px;
  box-shadow: 0 8px 18px rgba(2, 17, 31, .12);
}
.reply { display: block; border-left: 3px solid var(--line); padding: 8px 10px; margin: 8px 0; background: var(--soft); }
.reply.staff { border-left-color: var(--blue); background: var(--light-blue); }
.inline-action { margin-top: 12px; }

.cart-layout, .checkout-layout {
  width: min(var(--container), calc(100% - 24px));
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 12px;
  align-items: start;
  padding: 0;
}
.table-wrap { overflow-x: auto; border: 1px solid var(--commerce-line); border-radius: 4px; background: white; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--navy); background: var(--soft); font-size: .9rem; }
.clickable-row { cursor: pointer; }
.clickable-row:hover { background: #f8fbff; }
.qty-form { display: flex; gap: 8px; max-width: 180px; }
.summary-card { position: sticky; top: calc(var(--header-height) + 12px); border-color: var(--commerce-line); border-radius: 4px; }
.summary-card p, .list-row { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding: 10px 0; margin: 0; }
.grand-total { font-size: 1.15rem; color: var(--navy); }
.coupon-form { display: flex; gap: 8px; margin-bottom: 14px; }

.auth-panel { max-width: 520px; margin: 40px auto; padding: 0 16px; }
.public-shell .auth-panel h1 {
  color: var(--public-text);
}
.public-shell .auth-panel > p {
  color: var(--public-text-soft);
}
.public-shell .auth-panel > p a {
  color: var(--public-text);
  font-weight: 800;
}
.public-shell .auth-panel > p a:hover {
  color: #ffbf73;
}
.form-card.narrow { max-width: 560px; }
.form-card.wide { max-width: 960px; }
.form-card p { margin: 0 0 12px; }
.form-card ul { color: var(--muted); }
.google-auth-button {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 12px 0;
  padding: 10px 14px;
  border: 1px solid var(--commerce-line);
  border-radius: 6px;
  background: white;
  color: #263238;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(11, 45, 77, .08);
}
.google-auth-button:hover {
  border-color: #c7d7e5;
  color: #111827;
}
.google-logo,
.google-logo svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--commerce-line);
}
.auth-divider span {
  flex: 0 0 auto;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  padding: 0;
  height: calc(100vh - var(--header-height));
  min-height: calc(100vh - var(--header-height));
  overflow: hidden;
}
.sidebar {
  background: white;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 18px 14px;
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #9ccce8 transparent;
}
.sidebar.navy { background: var(--navy); color: white; border-right-color: rgba(255,255,255,.14); }
.sidebar.navy h2, .sidebar.navy a { color: white; }
.account-sidebar {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}
.sidebar.navy.account-sidebar {
  background: var(--navy);
}
.sidebar-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.sidebar.navy .sidebar-head {
  border-bottom-color: rgba(255,255,255,.15);
}
.sidebar-avatar {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--light-blue);
  color: var(--navy);
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(11, 45, 77, .12);
}
.sidebar.navy .sidebar-avatar {
  background: white;
}
.sidebar h2 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}
.sidebar-role {
  margin: 0;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.sidebar.navy .sidebar-role {
  color: #b9d8ee;
}
.sidebar-nav {
  display: grid;
  gap: 4px;
}
.sidebar a,
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 10px;
  border-radius: 7px;
  color: var(--navy);
  font-weight: 750;
}
.sidebar-link i,
.sidebar-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.sidebar a:hover,
.sidebar-link:hover {
  background: var(--light-blue);
}
.sidebar.navy a:hover,
.sidebar.navy .sidebar-link:hover {
  background: rgba(255,255,255,.12);
}
.sidebar a.active,
.sidebar-link.active {
  background: var(--light-blue);
  color: var(--navy);
  font-weight: 900;
  box-shadow: inset 3px 0 0 var(--navy);
}
.sidebar.navy a.active,
.sidebar.navy .sidebar-link.active {
  background: white;
  color: var(--navy);
  box-shadow: inset 3px 0 0 var(--light-blue);
}
.dashboard-main {
  min-width: 0;
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
  padding: clamp(24px, 4vw, 48px);
}
.dashboard-layout .button:not(.ghost):not(.danger),
.dashboard-layout button:not(.link-button):not(.danger) {
  background: var(--blue);
}
.dashboard-layout .button:not(.ghost):not(.danger):hover,
.dashboard-layout button:not(.link-button):not(.danger):hover {
  background: #167cc0;
}
.dashboard-hero-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg, #e8f6ff 0%, #ffffff 58%, #dff2ff 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  margin-bottom: 20px;
  box-shadow: 0 16px 34px rgba(11, 45, 77, .08);
}
.dashboard-hero-panel h1 {
  margin: 4px 0 8px;
}
.dashboard-hero-panel p {
  margin: 0;
  max-width: 680px;
}
.quick-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.dashboard-panel {
  position: static;
  padding: 18px;
  margin: 0;
}
.workflow-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.workflow-card {
  display: grid;
  gap: 6px;
  min-height: 126px;
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(11, 45, 77, .06);
}
.workflow-card:hover {
  border-color: var(--blue);
  box-shadow: 0 14px 32px rgba(11, 45, 77, .12);
}
.workflow-card span {
  color: var(--muted);
  font-weight: 900;
}
.workflow-card strong {
  color: var(--navy);
  font-size: 1.45rem;
}
.workflow-card small {
  color: var(--muted);
  font-weight: 700;
}
.action-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin: 12px 0 18px;
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}
.employee-form,
.guided-form {
  display: grid;
  gap: 18px;
}
.form-section {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.form-section:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}
.form-section h2 {
  margin: 0 0 6px;
  font-size: 1rem;
}
.form-section p {
  margin: 0;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.field-grid.single-column {
  grid-template-columns: 1fr;
}
.field-grid .full-width {
  grid-column: 1 / -1;
}
.field-grid label {
  margin-bottom: 0;
}
.field-with-help {
  position: relative;
}
.field-label-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin-bottom: 6px;
}
.field-info-tooltip {
  width: 22px;
  height: 22px;
}
.field-info-tooltip svg {
  width: 13px;
  height: 13px;
}
.checkbox-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}
.checkbox-field input {
  flex: 0 0 auto;
}
.checkbox-field span {
  min-width: 0;
}
.field-grid small {
  color: var(--muted);
  font-weight: 650;
}
.field-grid .errorlist,
.employee-form .errorlist,
.field-errors .errorlist {
  margin: 4px 0 0;
  padding-left: 18px;
  color: var(--danger);
  font-weight: 800;
}
.form-card p {
  position: relative;
}
.form-card .helptext {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-left: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--light-blue);
  color: transparent;
  cursor: help;
  font-size: 0;
  font-weight: 800;
  line-height: 1;
  overflow: visible;
  vertical-align: middle;
}
.form-card .helptext::before {
  content: "i";
  color: var(--navy);
  font-size: .78rem;
  font-weight: 900;
}
.form-card .helptext:hover,
.form-card .helptext:focus {
  position: absolute;
  right: 0;
  top: calc(100% - 2px);
  z-index: 35;
  width: min(320px, 78vw);
  height: auto;
  min-height: 0;
  display: block;
  padding: 10px 12px;
  border-radius: 7px;
  background: white;
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(11, 45, 77, .18);
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.4;
}
.form-card .helptext:hover::before,
.form-card .helptext:focus::before {
  content: none;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.section-title-with-help {
  display: flex;
  align-items: center;
  gap: 8px;
}
.info-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--light-blue);
  color: var(--navy);
  cursor: help;
  flex: 0 0 auto;
}
.info-tooltip svg {
  width: 15px;
  height: 15px;
}
.info-tooltip-text {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 30;
  width: min(320px, 78vw);
  display: none;
  padding: 10px 12px;
  border: 1px solid rgba(11, 45, 77, .16);
  border-radius: 7px;
  background: white;
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(11, 45, 77, .18);
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.4;
}
.info-tooltip:hover .info-tooltip-text,
.info-tooltip:focus .info-tooltip-text,
.info-tooltip:focus-within .info-tooltip-text {
  display: block;
}
.customer-kpi-grid .workflow-card {
  min-height: 138px;
}
.customer-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.customer-mini-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.customer-mini-card strong {
  color: var(--navy);
}
.customer-mini-card span,
.customer-mini-card small {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
}
.hr-section-panel {
  margin: 18px 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.action-details {
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}
.action-details summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  color: var(--navy);
  cursor: pointer;
  font-weight: 900;
}
.action-details[open] summary {
  border-bottom: 1px solid var(--line);
}
.action-details .form-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.payroll-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.payroll-steps span {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 10px;
  background: var(--light-blue);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--navy);
  font-size: .88rem;
  font-weight: 850;
}
.table-action-cell {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 18px 0 26px; }
.metric span { color: var(--muted); display: block; font-weight: 800; }
.metric strong { color: var(--navy); font-size: 1.5rem; }
.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
  margin: 18px 0 26px;
}
.chart-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  min-height: 340px;
  overflow: hidden;
}
.chart-card canvas {
  width: 100%;
  height: 316px;
  display: block;
}
.chart-tooltip {
  position: absolute;
  z-index: 2000;
  min-width: 120px;
  max-width: 240px;
  display: none;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid rgba(11, 45, 77, .14);
  border-radius: 6px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 12px 28px rgba(11, 45, 77, .18);
  color: var(--ink);
  pointer-events: none;
}
.chart-tooltip.visible {
  display: grid;
}
.chart-tooltip strong {
  font-size: .82rem;
  line-height: 1.25;
}
.chart-tooltip span {
  color: var(--commerce-accent-dark);
  font-size: .9rem;
  font-weight: 900;
}
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar input, .toolbar select { max-width: 280px; }
.status { color: var(--navy); background: var(--light-blue); padding: 8px 10px; border-radius: 8px; font-weight: 800; }
.stack { display: grid; gap: 10px; }
.category-order-form {
  padding-bottom: 12px;
}
.order-input {
  width: 86px;
  min-height: 36px;
}
.table-actions {
  display: flex;
  justify-content: flex-end;
  padding: 12px;
}
.pagination { display: flex; gap: 12px; justify-content: center; padding: 20px 0; }
.footer {
  background: var(--navy);
  color: white;
  padding: 0;
}
.footer-inner {
  width: min(var(--container), calc(100% - 24px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 1fr));
  gap: 28px;
  padding: 38px 0 28px;
}
.footer section {
  display: grid;
  align-content: start;
  gap: 8px;
}
.footer h2 {
  margin: 0 0 4px;
  color: white;
  font-size: .92rem;
  text-transform: uppercase;
}
.footer strong {
  color: white;
  font-size: 1.1rem;
}
.footer p {
  max-width: 430px;
  margin: 4px 0 8px;
  color: #d7eafa;
}
.footer a {
  color: #d7eafa;
  font-weight: 750;
}
.footer a:hover {
  color: #ffbf73;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .14);
  width: min(var(--container), calc(100% - 24px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 18px;
  color: #d7eafa;
  font-size: .86rem;
  font-weight: 750;
}
.public-shell .footer {
  background: var(--public-bg-deep);
  border-top: 1px solid var(--public-bg-line);
}
.public-shell .footer p,
.public-shell .footer a,
.public-shell .footer-bottom {
  color: var(--public-text-soft);
}

.product-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: start;
}
.product-image-manager {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}
.product-image-manager h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
}
.product-image-manager p {
  margin: 0;
}
.product-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
.product-image-edit-card {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.product-image-edit-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border: 1px solid var(--commerce-line);
  border-radius: 6px;
  background: #f4f7fb;
}
.image-dimension-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}
.image-dimension-row strong {
  color: var(--success);
}
.image-dimension-row em {
  color: var(--warning);
  font-style: normal;
}
.feature-image-preview {
  display: grid;
  gap: 8px;
}
.feature-image-preview img,
.feature-preview-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  background: #f4f7fb;
}
.product-image-edit-card label {
  margin: 0;
}
.product-image-edit-card input[type="file"] {
  min-height: 0;
  padding: 8px;
}
.product-image-edit-card .danger {
  color: var(--danger);
}
.product-public-preview-panel {
  position: sticky;
  top: calc(var(--header-height) + 14px);
  display: grid;
  gap: 12px;
}
.preview-product-card {
  box-shadow: 0 12px 28px rgba(11, 45, 77, .1);
}
.public-detail-mini-preview {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 28px rgba(11, 45, 77, .08);
}
.public-detail-mini-preview h3,
.public-detail-mini-preview h2,
.public-detail-mini-preview p {
  margin: 0;
}
.public-detail-mini-preview h3 {
  color: var(--muted);
  font-size: .82rem;
  text-transform: uppercase;
}
.public-detail-mini-preview strong {
  color: var(--commerce-accent-dark);
  font-size: 1.2rem;
}
.public-preview-banner {
  width: min(var(--container), calc(100% - 24px));
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid #b9d8ee;
  border-radius: 8px;
  background: #eff8ff;
  color: var(--navy);
}
.public-preview-banner div {
  display: grid;
  gap: 2px;
}
.public-preview-banner span {
  color: var(--muted);
  font-size: .9rem;
}

@media (max-width: 900px) and (min-width: 641px) {
  .top-strip {
    gap: 10px;
    font-size: .72rem;
  }
  .header-main {
    width: min(var(--container), calc(100% - 18px));
    grid-template-columns: minmax(128px, 170px) minmax(180px, 1fr) minmax(170px, auto);
    gap: 8px;
  }
  .brand {
    gap: 8px;
    font-size: .92rem;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
  }
  .site-search {
    gap: 6px;
  }
  .site-search input {
    min-height: 38px;
    padding-inline: 8px;
  }
  .site-search button {
    min-width: 74px;
    min-height: 38px;
    padding-inline: 10px;
  }
  .nav {
    gap: 7px;
    font-size: .78rem;
  }
  .nav > a:first-child {
    display: none;
  }
  .nav .inline-form {
    display: none;
  }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .catalog-layout, .product-detail, .cart-layout, .checkout-layout, .dashboard-layout, .split, .grid-2 { grid-template-columns: 1fr; }
  .market-layout, .landing-row-one, .storefront-hero { grid-template-columns: 1fr; }
  .market-categories { position: static; display: flex; gap: 8px; overflow-x: auto; align-items: center; }
  .market-categories h2 { margin: 0; white-space: nowrap; }
  .market-categories a { white-space: nowrap; border: 1px solid var(--commerce-line); }
  .filters { position: static; }
  .storefront-hero {
    min-height: 0;
  }
  .summary-card { position: static; }
  .dashboard-layout {
    height: auto;
    min-height: auto;
    overflow: visible;
  }
  .sidebar {
    position: sticky;
    top: var(--header-height);
    z-index: 15;
    height: auto;
    max-height: 42vh;
    overflow-y: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .dashboard-main {
    height: auto;
    overflow-y: visible;
    padding: 20px 16px;
  }
  .dashboard-hero-panel {
    align-items: stretch;
    flex-direction: column;
  }
  .form-section,
  .field-grid {
    grid-template-columns: 1fr;
  }
  .product-editor-layout {
    grid-template-columns: 1fr;
  }
  .product-public-preview-panel {
    position: static;
  }
  .variation-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .variation-row-head {
    display: none;
  }
  .form-actions {
    justify-content: stretch;
  }
  .form-actions .button {
    width: 100%;
  }
  .chart-grid {
    grid-template-columns: 1fr;
  }
  .chart-card {
    min-height: 330px;
  }
  .chart-card canvas {
    height: 306px;
  }
  .quick-actions .button {
    width: 100%;
  }
  .hero { min-height: 420px; }
}

@media (max-width: 640px) {
  :root { --header-height: 126px; }
  .top-strip {
    display: none;
  }
  .header-main {
    min-height: 126px;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 10px 0;
  }
  .site-search {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .nav {
    justify-content: flex-end;
    gap: 10px;
    font-size: .9rem;
  }
  .nav > a:first-child,
  .nav .inline-form {
    display: none;
  }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .catalog-layout, .product-detail, .cart-layout, .checkout-layout, .dashboard-layout, .split, .grid-2 { grid-template-columns: 1fr; }
  .market-layout, .landing-row-one, .storefront-hero { grid-template-columns: 1fr; }
  .market-categories { position: static; display: flex; gap: 8px; overflow-x: auto; align-items: center; }
  .market-categories h2 { margin: 0; white-space: nowrap; }
  .market-categories a { white-space: nowrap; border: 1px solid var(--commerce-line); }
  .filters { position: static; }
  .storefront-hero {
    min-height: 0;
  }
  .summary-card { position: static; }
  .dashboard-layout {
    height: auto;
    min-height: auto;
    overflow: visible;
  }
  .sidebar {
    position: sticky;
    top: var(--header-height);
    z-index: 15;
    height: auto;
    max-height: 42vh;
    overflow-y: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .dashboard-main {
    height: auto;
    overflow-y: visible;
    padding: 20px 16px;
  }
  .dashboard-hero-panel {
    align-items: stretch;
    flex-direction: column;
  }
  .form-section,
  .field-grid {
    grid-template-columns: 1fr;
  }
  .product-editor-layout {
    grid-template-columns: 1fr;
  }
  .product-public-preview-panel {
    position: static;
  }
  .variation-row {
    grid-template-columns: 1fr;
  }
  .public-preview-banner {
    align-items: stretch;
    flex-direction: column;
  }
  .form-actions {
    justify-content: stretch;
  }
  .form-actions .button {
    width: 100%;
  }
  .chart-grid {
    grid-template-columns: 1fr;
  }
  .chart-card {
    min-height: 330px;
  }
  .chart-card canvas {
    height: 306px;
  }
  .quick-actions .button {
    width: 100%;
  }
  .hero { min-height: 420px; }
}

@media (max-width: 560px) {
  :root { --header-height: 118px; }
  .header-main {
    width: min(100% - 16px, var(--container));
    min-height: 118px;
  }
  .brand {
    max-width: 48vw;
  }
  .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
  }
  .site-search {
    gap: 6px;
  }
  .site-search input {
    min-width: 0;
  }
  .site-search button {
    min-width: 76px;
    padding-inline: 10px;
  }
  .nav { gap: 8px; font-size: .84rem; }
  .nav a[href*="login"],
  .nav a[href*="account"] {
    display: none;
  }
  .hero h1 { font-size: 2.2rem; }
  .section-heading, .toolbar, .add-cart, .coupon-form { align-items: stretch; flex-direction: column; }
  .heading-actions { justify-content: stretch; }
  .heading-actions .button { flex: 1; }
  .modal-actions { grid-template-columns: 1fr; }
  .consent-fields { grid-template-columns: 1fr; }
  .consent-actions { flex-direction: column; }
  .consent-actions .button,
  .consent-actions button { width: 100%; }
  .market-home { padding-top: 8px; }
  .market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-card-body { padding: 8px; }
  .product-card h3 {
    font-size: .86rem;
    min-height: 34px;
  }
  .market-grid .product-card p { display: none; }
  .product-card p { display: none; }
  .market-grid .card-actions,
  .card-actions { flex-direction: column; gap: 6px; }
  .card-actions .button {
    min-height: 34px;
    padding: 7px 8px;
  }
  .market-grid .product-meta-row,
  .market-grid .price-row { align-items: flex-start; flex-direction: column; }
  .market-service-strip { grid-template-columns: 1fr; }
  .compact-heading {
    border-radius: 4px;
  }
  .page-title {
    padding-top: 16px;
  }
  .catalog-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .gallery,
  .product-info {
    padding: 12px;
  }
  .cart-layout,
  .checkout-layout {
    padding-inline: 12px;
  }
  table { min-width: 560px; }
}

/* Betacoat public storefront refresh */
body.public-shell {
  --public-bg: #06284a;
  --public-bg-deep: #041b33;
  --public-text: #ffffff;
  --public-text-soft: #d8e8f6;
  --public-surface-shadow: 0 10px 24px rgba(6, 40, 74, .1);
  --soft: #f4f7fb;
  background: #f4f7fb;
}
.public-shell main {
  background: #f4f7fb;
}
.public-shell .site-header {
  background: #06284a;
  border-bottom: 0;
  box-shadow: 0 8px 22px rgba(4, 27, 51, .18);
}
.public-shell .top-strip {
  display: none;
}
.public-shell .header-main {
  width: 100%;
  min-height: 58px;
  grid-template-columns: minmax(176px, 220px) minmax(260px, 1fr) minmax(200px, auto);
  padding: 8px max(12px, calc((100% - var(--container)) / 2));
  background: #ffffff;
}
.public-shell .brand {
  color: #06284a;
  font-size: 1.02rem;
  line-height: 1.05;
}
.public-shell .brand-logo {
  max-height: 46px;
  padding: 0;
  background: transparent;
  border-radius: 0;
}
.public-shell .brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(246, 139, 30, .65);
  background: #07213d;
  color: #f6a12f;
  font-weight: 950;
}
.public-shell .site-search {
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 0;
}
.public-shell .site-search input {
  min-height: 36px;
  border-radius: 6px 0 0 6px;
  border: 1px solid #d7e4ef;
  border-right: 0;
  padding-inline: 14px;
  color: #0d2740;
}
.public-shell .site-search button {
  min-width: 44px;
  min-height: 36px;
  border-radius: 0 6px 6px 0;
  background: #06284a;
  color: white;
  border: 1px solid #06284a;
  border-left: 1px solid #06284a;
  padding: 0;
  font-size: .76rem;
}
.public-shell .nav {
  gap: 18px;
  font-size: .86rem;
}
.public-shell .nav a,
.public-shell .nav .link-button {
  color: #06284a;
}
.public-shell .cart-link .badge {
  min-width: 22px;
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 1px 6px;
  background: #f68b1e;
  color: white;
}
.public-category-nav {
  width: min(var(--container), calc(100% - 24px));
  min-height: 38px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.public-category-nav::-webkit-scrollbar {
  display: none;
}
.public-category-nav a {
  flex: 0 0 auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  color: #edf6ff;
  font-size: .82rem;
  font-weight: 850;
}
.public-category-nav a:first-child {
  padding-left: 4px;
  color: white;
}
.public-category-nav a:hover {
  color: #ffbf73;
}
.betacoat-home {
  padding: 14px 0 0;
  background: #f4f7fb;
  border-bottom: 0;
}
.public-shell .market-home {
  background: #f4f7fb;
}
.betacoat-storefront {
  width: min(var(--container), calc(100% - 24px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
}
.betacoat-category-rail {
  position: static;
  display: grid;
  gap: 3px;
  align-content: start;
  min-height: 365px;
  padding: 14px 12px;
  background: rgba(255, 255, 255, .72);
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}
.betacoat-category-rail a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 38px;
  padding: 7px 8px;
  color: #17314b;
  border-radius: 5px;
  font-size: .86rem;
  font-weight: 800;
}
.betacoat-category-rail a:hover {
  background: #f3f8fd;
  color: #06284a;
}
.betacoat-category-rail small {
  color: #6f8193;
  font-size: .72rem;
  font-weight: 850;
}
.category-icon,
.service-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 5px;
  border: 1px solid #dce8f1;
  color: #0b406e;
  background: #f8fbfe;
  font-size: .76rem;
  font-weight: 950;
}
.service-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.betacoat-hero {
  min-height: 350px;
  height: 100%;
  position: relative;
  display: block;
  overflow: hidden;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #06284a;
  box-shadow: none;
}
.betacoat-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(4, 27, 51, .96) 0%, rgba(6, 40, 74, .88) 28%, rgba(6, 40, 74, .58) 46%, rgba(6, 40, 74, .22) 66%, rgba(6, 40, 74, 0) 88%),
    linear-gradient(180deg, rgba(4, 27, 51, .06), rgba(4, 27, 51, .22));
  pointer-events: none;
}
.betacoat-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 72% 48%, rgba(255, 255, 255, .12) 0 22%, rgba(255, 255, 255, .05) 42%, transparent 68%);
  pointer-events: none;
}
.betacoat-hero-copy {
  position: relative;
  z-index: 3;
  width: min(48%, 540px);
  min-width: 0;
  margin: 0;
  padding: clamp(24px, 3.4vw, 38px) clamp(24px, 4vw, 50px);
}
.hero-kicker {
  width: fit-content;
  margin: 0 0 10px;
  padding: 6px 10px;
  border: 1px solid #cfe4f5;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #ffbf73;
  font-size: .84rem;
  font-weight: 950;
  text-transform: uppercase;
}
.betacoat-hero h1 {
  max-width: 540px;
  margin: 0 0 12px;
  color: #ffffff;
  font-size: clamp(2rem, 3.6vw, 3.15rem);
  line-height: 1.01;
}
.hero-summary {
  max-width: 520px;
  margin: 0 0 16px;
  color: #ffffff;
  font-size: clamp(.98rem, 1.4vw, 1.08rem);
  font-weight: 650;
  text-shadow: 0 1px 10px rgba(2, 17, 31, .35);
}
.betacoat-hero .feature-message {
  color: #ffffff;
}
.whatsapp-action {
  gap: 8px;
}
.whatsapp-action .whatsapp-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: #25d366;
}
.whatsapp-action:hover .whatsapp-icon {
  fill: currentColor;
}
.hero-points {
  display: grid;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  color: #f3f8fd;
  font-size: .95rem;
  font-weight: 720;
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-points li::before {
  content: "";
  width: 7px;
  height: 12px;
  flex: 0 0 7px;
  border-right: 2px solid #16834f;
  border-bottom: 2px solid #16834f;
  transform: rotate(42deg);
}
.hero-spec-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  color: #e8f3fb;
  font-size: .86rem;
  font-weight: 850;
}
.hero-spec-line span:not(.stock) {
  padding-right: 10px;
  border-right: 1px solid rgba(255, 255, 255, .22);
}
.betacoat-hero .hero-buy-row {
  margin: 0 0 14px;
}
.betacoat-hero .hero-buy-row strong {
  color: #f47d0b;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 950;
}
.betacoat-hero .compact-actions {
  margin-top: 0;
  gap: 12px;
}
.betacoat-hero .button {
  min-width: 144px;
  min-height: 44px;
}
.betacoat-hero .storefront-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: #06284a;
  box-shadow: none;
}
.betacoat-hero .storefront-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  filter: saturate(1.04) contrast(1.03);
}
.betacoat-hero .image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 350px;
  border-radius: 0;
  background: linear-gradient(135deg, #06284a, #e9f4fb);
}
.betacoat-service-strip {
  width: min(var(--container), calc(100% - 24px));
  margin: 14px auto 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid #dde8f2;
  border-radius: 6px;
  background: white;
  box-shadow: 0 10px 22px rgba(6, 40, 74, .06);
}
.betacoat-service-strip a {
  min-height: 74px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-content: center;
  padding: 13px 18px;
  border: 0;
  border-right: 1px solid #e3edf5;
  border-radius: 0;
  box-shadow: none;
}
.betacoat-service-strip a:last-child {
  border-right: 0;
}
.betacoat-service-strip .service-icon {
  grid-row: 1 / span 2;
  width: 32px;
  height: 32px;
  align-self: center;
  color: #08284a;
  border-color: #cbddea;
}
.betacoat-service-strip strong {
  min-width: 0;
  color: #08284a;
  font-size: .86rem;
  line-height: 1.2;
}
.betacoat-service-strip span:not(.service-icon) {
  color: #617386;
  font-size: .78rem;
}
.popular-products-section {
  padding-top: 18px;
}
.betacoat-section-heading {
  margin-bottom: 10px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.betacoat-section-heading h2 {
  color: #08284a;
  font-size: 1.18rem;
  font-weight: 950;
}
.betacoat-section-heading a {
  color: #0d5b96;
  font-size: .9rem;
  font-weight: 900;
}
.betacoat-product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.betacoat-product-grid .product-card {
  border-color: #dde8f2;
  border-radius: 6px;
  box-shadow: 0 10px 22px rgba(6, 40, 74, .06);
}
.betacoat-product-grid .product-media {
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 50% 40%, #ffffff 0 34%, #eef7fd 68%, #e3edf6 100%);
}
.betacoat-product-grid .product-media img {
  padding: 14px;
  object-fit: contain;
}
.betacoat-product-grid .product-card h3 {
  color: #08284a;
}

@media (max-width: 1020px) {
  .public-shell .header-main {
    grid-template-columns: minmax(160px, auto) minmax(220px, 1fr) minmax(150px, auto);
  }
  .betacoat-category-rail {
    min-height: 0;
    display: flex;
    overflow-x: auto;
  }
  .betacoat-category-rail a {
    min-width: 190px;
  }
  .betacoat-hero-copy {
    width: min(62%, 560px);
  }
  .betacoat-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root { --header-height: 136px; }
  .public-shell .header-main {
    width: 100%;
    min-height: 92px;
    grid-template-columns: 1fr auto;
    padding: 8px 9px 6px;
  }
  .public-shell .site-search {
    grid-column: 1 / -1;
  }
  .public-shell .nav {
    gap: 10px;
    font-size: .84rem;
  }
  .public-shell .brand-logo {
    width: min(168px, 48vw);
    max-height: 38px;
    padding: 0;
  }
  .public-category-nav {
    width: min(100% - 18px, var(--container));
  }
  .betacoat-home {
    padding-top: 10px;
  }
  .betacoat-storefront,
  .betacoat-service-strip,
  .market-section {
    width: min(100% - 18px, var(--container));
  }
  .betacoat-hero h1 {
    font-size: clamp(1.75rem, 9vw, 2.45rem);
  }
  .betacoat-hero {
    min-height: 390px;
  }
  .betacoat-hero::before {
    background:
      linear-gradient(90deg, rgba(4, 27, 51, .96) 0%, rgba(6, 40, 74, .88) 38%, rgba(6, 40, 74, .44) 64%, rgba(6, 40, 74, .08) 88%, rgba(6, 40, 74, 0) 100%),
      linear-gradient(180deg, rgba(4, 27, 51, .08), rgba(4, 27, 51, .3));
  }
  .betacoat-hero-copy {
    width: min(62%, 520px);
  }
  .betacoat-hero .storefront-hero-media {
    padding: 0;
  }
  .betacoat-service-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .betacoat-service-strip a:nth-child(2) {
    border-right: 0;
  }
  .betacoat-service-strip a:nth-child(-n + 2) {
    border-bottom: 1px solid #e3edf5;
  }
  .betacoat-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 480px) {
  :root { --header-height: 142px; }
  .public-shell .brand {
    max-width: 50vw;
  }
  .public-shell .brand-logo {
    width: min(148px, 50vw);
    max-height: 34px;
    padding: 0;
  }
  .public-shell .nav a[href*="register"],
  .public-shell .nav a[href*="product_list"] {
    display: none;
  }
  .public-category-nav a {
    padding-inline: 10px;
  }
  .betacoat-category-rail {
    padding: 9px;
  }
  .betacoat-category-rail a {
    min-width: 165px;
  }
  .betacoat-hero-copy {
    width: auto;
    margin: 0;
    padding: 22px 18px;
  }
  .betacoat-hero {
    min-height: 430px;
  }
  .betacoat-hero::before {
    background:
      linear-gradient(180deg, rgba(4, 27, 51, .96) 0%, rgba(6, 40, 74, .86) 44%, rgba(6, 40, 74, .32) 72%, rgba(6, 40, 74, .08) 100%);
  }
  .betacoat-hero .storefront-hero-media {
    padding: 0;
  }
  .betacoat-hero .storefront-hero-media img {
    width: 100%;
    height: 100%;
    object-position: center bottom;
  }
  .betacoat-hero .compact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .betacoat-hero .button {
    width: 100%;
  }
  .betacoat-service-strip {
    grid-template-columns: 1fr;
  }
  .betacoat-service-strip a,
  .betacoat-service-strip a:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid #e3edf5;
  }
  .betacoat-service-strip a:last-child {
    border-bottom: 0;
  }
}
