:root {
  --green: #20a83a;
  --green-dark: #08762a;
  --blue: #0957b5;
  --blue-dark: #07346f;
  --ink: #102033;
  --muted: #5b6b7a;
  --soft: #eef8f2;
  --line: #dbe7ee;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(8, 52, 111, .12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  color: var(--ink);
  background: #f7fbff;
}

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

img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: .02em;
  color: var(--blue-dark);
}

.brand-logo {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  display: grid;
  place-items: center;
  color: white;
  font-size: 22px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  padding: 10px 11px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

.nav-links a:hover, .nav-links .active {
  color: var(--blue-dark);
  background: #edf6ff;
}

.basket {
  background: var(--blue) !important;
  color: white !important;
}

.menu-toggle { display: none; }

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  width: min(1240px, calc(100% - 20px));
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 28px;
  align-items: center;
  min-height: calc(100vh - 110px);
  padding-bottom: 36px;
}

.hero-copy {
  padding: 36px 0 36px 14px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #cde9d4;
  border-radius: 999px;
  background: var(--soft);
  color: var(--green-dark);
  font-weight: 800;
  font-size: 13px;
}

h1, h2, h3 { margin: 0; line-height: 1.04; }

h1 {
  font-size: clamp(42px, 7vw, 84px);
  letter-spacing: 0;
  color: var(--blue-dark);
  margin-top: 22px;
}

.lead {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.5;
  max-width: 620px;
}

.hero-actions, .button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  font-weight: 900;
  cursor: pointer;
}

.btn-primary { background: var(--green); color: white; box-shadow: 0 12px 28px rgba(32, 168, 58, .28); }
.btn-secondary { background: var(--blue); color: white; box-shadow: 0 12px 28px rgba(9, 87, 181, .22); }
.btn-light { background: white; color: var(--blue-dark); border: 1px solid var(--line); }

.hero-media {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow);
}

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

.quick-panel {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.quick-panel div {
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  padding: 14px;
  font-weight: 900;
  color: var(--blue-dark);
  box-shadow: 0 10px 24px rgba(16, 32, 51, .12);
}

section { padding: 72px 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}

.section-head h2, .page-title h1 {
  color: var(--blue-dark);
  font-size: clamp(32px, 4vw, 54px);
}

.section-head p, .page-title p { color: var(--muted); max-width: 680px; line-height: 1.6; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(8, 52, 111, .08);
  padding: 22px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.card h3 { color: var(--blue-dark); margin-bottom: 9px; font-size: 21px; }
.card p, .card li { color: var(--muted); line-height: 1.55; }

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: white;
  font-weight: 900;
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #e9f8ed;
  color: var(--green-dark);
  margin-bottom: 14px;
  font-size: 22px;
}

.page-title {
  padding: 54px 0 32px;
}

.shop-shell {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 24px;
  align-items: start;
}

.retail-feature {
  align-items: stretch;
  margin-bottom: 28px;
}

.retail-feature .hero-media img {
  height: 100%;
  min-height: 340px;
}

.universal-search-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 24px;
  border-color: rgba(9, 87, 181, .16);
}

.section-head-compact {
  padding: 0 0 14px;
}

.filters {
  position: sticky;
  top: 96px;
}

.filter-list {
  display: grid;
  gap: 8px;
  max-height: 520px;
  overflow: auto;
}

.chip {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--muted);
  font-weight: 750;
}

.chip.is-active {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.combined-shop-section {
  padding-top: 18px;
}

.source-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.supplier-status {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.supplier-status[hidden] {
  display: none;
}

.supplier-status span {
  border: 1px solid rgba(9, 87, 181, .16);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: #f7fbff;
  color: var(--muted);
  font-weight: 750;
  padding: 12px 14px;
}

.appscenic-section, .avasam-section {
  padding-top: 52px;
}

.appscenic-card {
  border-color: rgba(32, 168, 58, .22);
}

.avasam-card {
  border-color: rgba(9, 87, 181, .22);
}

.appscenic-message, .supplier-message {
  grid-column: 1 / -1;
  min-height: auto;
}

.appscenic-filters, .avasam-filters {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 14px;
  border-color: rgba(9, 87, 181, .16);
}

.appscenic-category-list, .avasam-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.universal-no-results[hidden] {
  display: none;
}

.product-image {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: linear-gradient(135deg, #edf8f1, #eaf3ff);
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 44px;
  font-weight: 950;
  letter-spacing: .08em;
  margin-bottom: 16px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  background: white;
}

.product-image img.product-photo-tall {
  padding: 4px;
}

.product-image-large {
  aspect-ratio: auto;
  height: min(520px, 118vw);
}

.price { color: var(--green-dark); font-weight: 950; font-size: 22px; }
.meta { color: var(--muted); font-size: 14px; }
.supplier { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; display: grid; gap: 6px; }
.supplier span { overflow-wrap: anywhere; }

.supplier-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.supplier-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.supplier-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.supplier-score {
  display: grid;
  place-items: center;
  min-width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-weight: 950;
}

.supplier-metrics {
  display: grid;
  gap: 10px;
}

.supplier-metrics div,
.mini-row {
  display: grid;
  grid-template-columns: .8fr 1fr;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.supplier-metrics strong,
.mini-row strong {
  color: var(--blue-dark);
}

.supplier-metrics span,
.mini-row span {
  color: var(--muted);
}

.account-list {
  margin: 14px 0 18px;
}

.account-product-row {
  grid-template-columns: 1fr;
}

.account-notice[hidden] {
  display: none;
}

.supplier-products {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checklist {
  display: grid;
  gap: 12px;
}

.checklist label {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.checklist input {
  width: 20px;
  min-height: 20px;
}

.commerce-bar {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.plans .card { display: flex; flex-direction: column; }
.plan-price { font-size: 38px; color: var(--blue-dark); font-weight: 950; }

.form {
  display: grid;
  gap: 14px;
}

.hidden-field {
  display: none;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  background: white;
}

textarea { min-height: 140px; resize: vertical; }
label { font-weight: 850; color: var(--blue-dark); display: grid; gap: 7px; }

.slot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.slot {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 48px;
  display: grid;
  place-items: center;
  font-weight: 850;
  background: white;
}

.notice {
  border-left: 5px solid var(--green);
  background: #f0fbf4;
  padding: 18px;
  border-radius: 8px;
  color: var(--green-dark);
  font-weight: 750;
}

.faq details {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  box-shadow: 0 10px 26px rgba(8, 52, 111, .06);
}

.faq summary {
  font-weight: 900;
  color: var(--blue-dark);
  cursor: pointer;
}

.dashboard-list {
  display: grid;
  gap: 12px;
}

.admin-source-card strong {
  display: block;
  color: var(--green);
  font-size: 26px;
  margin: 8px 0;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 22px;
  background: white;
  box-shadow: 0 12px 32px rgba(8, 52, 111, .08);
}

.admin-toolbar h2 {
  color: var(--blue-dark);
  font-size: clamp(24px, 3vw, 36px);
  margin-top: 10px;
}

[data-edit],
.admin-save,
.admin-edit-panel {
  display: none;
}

.admin-editing [data-view] {
  display: none;
}

.admin-editing [data-edit],
.admin-editing .admin-save {
  display: block;
}

.admin-editing .admin-edit-panel {
  display: grid;
}

.row {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.cart-row {
  grid-template-columns: 1.3fr .7fr .7fr auto auto;
}

.admin-product-row {
  grid-template-columns: 1.4fr .7fr .5fr .7fr auto;
}

.admin-row input,
.admin-row select {
  min-height: 42px;
}

.tag {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 10px;
  background: #eaf3ff;
  color: var(--blue-dark);
  font-weight: 850;
  font-size: 13px;
}

.map-placeholder, .checkout-placeholder {
  min-height: 320px;
  border: 1px dashed #9eb6c8;
  border-radius: 8px;
  background: linear-gradient(135deg, #f3faf5, #edf5ff);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  padding: 24px;
}

.site-footer {
  margin-top: 60px;
  padding: 38px 0;
  background: var(--blue-dark);
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 24px;
}

.site-footer a, .site-footer p { color: rgba(255, 255, 255, .78); }

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
    border: 1px solid var(--line);
    background: white;
    border-radius: 8px;
    padding: 10px 12px;
    font-weight: 900;
  }

  .nav { flex-wrap: wrap; padding: 12px 0; }

  .nav-links {
    display: none;
    width: 100%;
    justify-content: flex-start;
    border-top: 1px solid var(--line);
    padding-top: 12px;
  }

  .nav-links.open { display: flex; }

  .hero, .shop-shell { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-copy { padding: 28px 4px 8px; }
  .filters { position: static; }
  .supplier-board { grid-template-columns: 1fr; }
  .grid-5, .grid-4, .grid-3, .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .container, .nav { width: min(100% - 22px, 1180px); }
  .brand-logo { width: 66px; height: 66px; }
  section { padding: 46px 0; }
  .grid-5, .grid-4, .grid-3, .grid-2, .slot-grid { grid-template-columns: 1fr; }
  .hero { width: min(100% - 12px, 1240px); }
  .quick-panel { position: static; grid-template-columns: 1fr; padding: 10px; }
  .section-head { display: block; }
  .admin-toolbar { display: block; }
  .universal-search-card, .appscenic-filters, .avasam-filters { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
}
