:root {
  --blue: #0b4f86;
  --blue-dark: #073458;
  --blue-soft: #eaf4ff;
  --ink: #111827;
  --muted: #667085;
  --line: #d9e2ec;
  --paper: #ffffff;
  --soft: #f5f8fb;
  --promo: #d71920;
  --promo-dark: #9f1117;
  --gold: #f6b739;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

img,
svg {
  display: block;
}

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

button {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px max(20px, calc((100vw - 1160px) / 2));
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(217, 226, 236, 0.9);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #101828);
  border-radius: 8px;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(11, 79, 134, 0.24);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 13px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #263747;
  font-size: 14px;
  font-weight: 800;
}

.nav-links a:hover {
  color: var(--blue);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  color: #fff;
  background: var(--blue);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 900;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  border: 1px solid rgba(11, 79, 134, 0.16);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
}

.header-login.is-signed-in {
  color: #fff;
  background: #138a5b;
}

.hero {
  position: relative;
  min-height: clamp(560px, 76svh, 720px);
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -2;
  background: url("assets/hero-market.webp") center/cover;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 35%, rgba(255, 255, 255, 0.18) 74%),
    linear-gradient(0deg, rgba(11, 79, 134, 0.1), rgba(11, 79, 134, 0.1));
}

.hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: inherit;
  padding: 72px 0 86px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1 {
  width: min(700px, 100%);
  margin: 0;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  width: min(620px, 100%);
  margin: 22px 0 0;
  color: #344054;
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

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

.btn-primary {
  color: #fff;
  background: var(--blue);
}

.btn-dark {
  color: #fff;
  background: var(--ink);
}

.btn-light {
  color: var(--blue-dark);
  background: #fff;
  border: 1px solid rgba(11, 79, 134, 0.2);
}

.btn-promo {
  color: #fff;
  background: var(--promo);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-proof span {
  padding: 8px 12px;
  color: var(--blue-dark);
  background: rgba(234, 244, 255, 0.92);
  border: 1px solid rgba(11, 79, 134, 0.16);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 900;
}

.intro-strip {
  background: var(--ink);
  color: #fff;
}

.ad-strip {
  padding: 24px 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.ad-strip-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.landing-ad {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  background: var(--blue-soft);
  border: 1px solid rgba(11, 79, 134, 0.14);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
}

.landing-ad[data-mode="Promotion"] {
  background: #fff1f1;
  border-color: rgba(215, 25, 32, 0.2);
  border-left-color: var(--promo);
}

.landing-ad span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.landing-ad[data-mode="Promotion"] span {
  color: var(--promo);
}

.landing-ad h2 {
  margin: 5px 0 5px;
  font-size: 24px;
  line-height: 1.1;
}

.landing-ad p {
  margin: 0;
  color: #344054;
  font-size: 14px;
}

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

.intro-grid div {
  min-height: 104px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.07);
}

.intro-grid strong,
.intro-grid span {
  display: block;
}

.intro-grid span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.section {
  padding: 86px 0;
}

.products-section,
.shops-section,
.upload-section {
  background: var(--soft);
}

.section-heading {
  width: min(760px, 100%);
  margin: 0 auto 32px;
  text-align: center;
}

.section-heading.left {
  margin: 0;
  text-align: left;
}

.section-heading h2,
.offer-panel h2,
.final-inner h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.offer-panel p,
.final-inner p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 26px;
}

.filter-btn {
  min-height: 40px;
  padding: 0 15px;
  color: #263747;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
}

.filter-btn.is-active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.filter-btn.promo-filter.is-active {
  background: var(--promo);
  border-color: var(--promo);
}

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

.hub-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}

.hub-trust-row span {
  padding: 8px 12px;
  color: #073458;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 900;
}

.shop-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
}

.shop-card.is-active {
  border-color: var(--blue);
  box-shadow: 0 18px 42px rgba(11, 79, 134, 0.18);
}

.shop-cover {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #eef3f7;
}

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

.shop-promo {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 9px;
  color: #210b00;
  background: var(--gold);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.shop-card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.shop-card-body span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.shop-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.15;
}

.shop-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.shop-card-meta {
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 13px;
}

.shop-view-btn {
  min-height: 42px;
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 900;
}

.selected-shop {
  margin-top: 28px;
  margin-bottom: 18px;
}

.selected-shop-inner,
.empty-shop,
.empty-products {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
}

.selected-shop-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 26px;
  align-items: start;
}

.selected-shop h2,
.empty-shop h3,
.empty-products h3 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.selected-shop p,
.empty-shop p,
.empty-products p {
  margin: 12px 0 0;
  color: var(--muted);
}

.selected-shop-info {
  display: grid;
  gap: 9px;
}

.selected-shop-info span {
  padding: 11px 12px;
  background: var(--blue-soft);
  border-radius: 6px;
  color: #344054;
  font-size: 14px;
}

.copy-shop-btn {
  min-height: 42px;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 900;
}

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

.product-card {
  display: grid;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
}

.product-card[data-mode="Promotion"] {
  border-top-color: var(--promo);
}

.product-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #eef3f7;
}

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

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  color: #fff;
  background: var(--blue);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-card[data-mode="Promotion"] .badge {
  color: #210b00;
  background: var(--gold);
}

.product-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.product-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.product-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}

.price {
  color: var(--blue);
  font-size: 22px;
  font-weight: 900;
  white-space: nowrap;
}

.product-card[data-mode="Promotion"] .price {
  color: var(--promo);
}

.product-body p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  color: #344054;
  font-size: 13px;
}

.meta-grid span {
  padding: 8px 9px;
  background: var(--blue-soft);
  border-radius: 6px;
}

.product-card[data-mode="Promotion"] .meta-grid span {
  background: #fff1f1;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  color: #fff;
  background: #138a5b;
  border-radius: 6px;
  font-weight: 900;
}

.product-card[data-mode="Promotion"] .whatsapp-btn {
  background: var(--promo);
}

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

.plant-view-btn,
.details-btn,
.copy-product-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 12px;
  color: #073f2a;
  background: #dff8e8;
  border: 1px solid rgba(19, 138, 91, 0.22);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 900;
}

.details-btn {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.copy-product-btn {
  color: var(--blue-dark);
  background: var(--blue-soft);
  border-color: rgba(11, 79, 134, 0.18);
}

.plant-view-btn:hover,
.details-btn:hover,
.copy-product-btn:hover {
  background: #c9f0d8;
}

.details-btn:hover {
  background: var(--blue-dark);
}

.whatsapp-btn {
  grid-column: 1 / -1;
}

.upload-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 42px;
  align-items: start;
}

.upload-note {
  margin-top: 22px;
  padding: 16px;
  color: #344054;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  font-size: 15px;
}

.upload-note code {
  color: var(--blue-dark);
  font-weight: 900;
}

.upload-form {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
}

.hidden-field {
  display: none;
}

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

.upload-form label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 900;
}

.upload-form label.full {
  grid-column: 1 / -1;
}

.upload-form input,
.upload-form select,
.upload-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cdd6e0;
  border-radius: 6px;
  outline: none;
}

.upload-form textarea {
  resize: vertical;
}

.upload-form input:focus,
.upload-form select:focus,
.upload-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(11, 79, 134, 0.12);
}

.upload-form input[readonly] {
  background: var(--blue-soft);
  font-weight: 900;
}

.upload-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.upload-preview-wrap {
  margin-top: 48px;
}

.upload-preview-grid {
  max-width: 420px;
  margin: 0 auto;
}

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

.category-grid article,
.package-list article {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.category-grid span,
.package-list span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.category-grid h3,
.package-list h3 {
  margin: 8px 0 8px;
  font-size: 24px;
}

.category-grid p,
.package-list p {
  margin: 0;
  color: var(--muted);
}

.offer-section {
  color: #fff;
  background: linear-gradient(135deg, var(--promo-dark), var(--promo));
}

.offer-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.promo-eyebrow,
.offer-panel p {
  color: rgba(255, 255, 255, 0.82);
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 46px;
  align-items: start;
}

.shop-layout .btn {
  margin-top: 24px;
}

.package-list {
  display: grid;
  gap: 14px;
}

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

.funnel div {
  display: grid;
  gap: 12px;
  min-height: 150px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.06);
}

.funnel strong {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--blue);
  border-radius: 50%;
}

.funnel span {
  color: #344054;
  font-weight: 800;
}

.final-cta {
  padding: 78px 0;
  color: #fff;
  background: var(--blue-dark);
  text-align: center;
}

.final-inner {
  width: min(840px, calc(100% - 40px));
}

.final-inner p {
  color: rgba(255, 255, 255, 0.78);
}

.final-inner .btn {
  margin-top: 24px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 18, 31, 0.58);
}

.modal-panel {
  position: relative;
  width: min(520px, 100%);
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.modal-panel h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
}

.modal-panel p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  color: #344054;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  font-weight: 900;
}

.customer-form {
  display: grid;
  gap: 13px;
  margin-top: 18px;
}

.customer-form label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 900;
}

.customer-form input {
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #cdd6e0;
  border-radius: 6px;
  outline: none;
}

.customer-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(11, 79, 134, 0.12);
}

.plant-modal-panel {
  position: relative;
  width: min(1040px, 100%);
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.plant-view-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: center;
}

.plant-3d-stage {
  min-height: min(70svh, 640px);
  display: grid;
  place-items: center;
  perspective: 1100px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.5), transparent 28%),
    linear-gradient(145deg, #064b31, #0b7c4a 52%, #03261c);
  border-radius: 8px;
}

.plant-3d-card {
  width: min(84%, 430px);
  aspect-ratio: 4 / 5;
  padding: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
  transform-style: preserve-3d;
  transition: transform 180ms ease;
  animation: plantSlowTurn 7s ease-in-out infinite;
}

.plant-3d-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
  transform: translateZ(26px);
  box-shadow: 0 22px 38px rgba(0, 0, 0, 0.24);
}

@keyframes plantSlowTurn {
  0%,
  100% {
    transform: rotateX(0deg) rotateY(-7deg);
  }

  50% {
    transform: rotateX(2deg) rotateY(7deg);
  }
}

.plant-view-info h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.plant-view-info p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.plant-info-grid {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.plant-info-grid span {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  color: #344054;
  background: #ecfdf3;
  border: 1px solid rgba(19, 138, 91, 0.16);
  border-radius: 8px;
}

.plant-info-grid strong {
  color: #073f2a;
}

.plant-info-grid b {
  font-weight: 700;
}

.plant-view-actions {
  margin-top: 22px;
}

.product-modal-panel {
  position: relative;
  width: min(980px, 100%);
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-view-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
  align-items: start;
}

.product-view-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #eef3f7;
  border-radius: 8px;
}

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

.product-view-photo span {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 8px 11px;
  color: #fff;
  background: var(--blue);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-view-photo span[data-mode="Promotion"] {
  color: #210b00;
  background: var(--gold);
}

.product-view-info h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

#product-view-price {
  display: block;
  margin-top: 12px;
  color: var(--blue);
  font-size: 30px;
  line-height: 1;
}

.product-view-info p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
}

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

.product-view-grid span {
  display: grid;
  gap: 4px;
  padding: 12px;
  color: #344054;
  background: var(--blue-soft);
  border-radius: 8px;
}

.product-view-grid strong {
  color: var(--blue-dark);
}

.product-view-grid b {
  font-weight: 700;
}

.product-view-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.copy-status {
  min-height: 20px;
  color: #138a5b;
  font-size: 13px;
  font-weight: 900;
}

.salesman-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  width: min(420px, calc(100vw - 28px));
}

.salesman-toggle {
  display: grid;
  gap: 2px;
  width: fit-content;
  margin-left: auto;
  padding: 13px 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #138a5b);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(7, 18, 31, 0.22);
  cursor: pointer;
  font-weight: 900;
  text-align: left;
}

.salesman-toggle span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 700;
}

.salesman-panel {
  display: grid;
  gap: 14px;
  max-height: min(680px, calc(100svh - 118px));
  margin-bottom: 12px;
  padding: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.salesman-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.salesman-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.12;
}

#salesman-close {
  width: 34px;
  height: 34px;
  color: #344054;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  font-weight: 900;
}

.salesman-messages {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

.salesman-message {
  padding: 12px;
  border-radius: 8px;
}

.salesman-message p {
  margin: 0;
  color: #344054;
  font-size: 14px;
}

.salesman-message.customer {
  margin-left: 44px;
  color: #fff;
  background: var(--blue);
}

.salesman-message.customer p {
  color: #fff;
}

.salesman-message.ai {
  margin-right: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.salesman-product {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  margin-top: 10px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.salesman-product img {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 7px;
}

.salesman-product strong,
.salesman-product span,
.salesman-product small {
  display: block;
}

.salesman-product strong {
  font-size: 15px;
  line-height: 1.2;
}

.salesman-product span {
  margin: 3px 0 6px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.salesman-product-actions,
.mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.salesman-product-actions button,
.salesman-product-actions a,
.salesman-owner-link,
.small-link,
.small-ok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.salesman-product-actions a,
.salesman-owner-link,
.small-ok {
  background: #138a5b;
}

.salesman-owner-link {
  margin-top: 10px;
}

.salesman-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.salesman-quick button {
  min-height: 34px;
  padding: 0 10px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  border: 1px solid rgba(11, 79, 134, 0.16);
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.salesman-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.salesman-form input {
  min-height: 42px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #cdd6e0;
  border-radius: 6px;
  outline: none;
}

.salesman-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(11, 79, 134, 0.12);
}

.salesman-form button {
  min-height: 42px;
  padding: 0 14px;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 900;
}

.success-page {
  min-height: 100svh;
  background: var(--blue-dark);
}

.admin-page {
  min-height: 100svh;
  background: var(--soft);
}

.admin-section {
  min-height: calc(100svh - 76px);
}

.admin-gate {
  display: grid;
  place-items: center;
  min-height: calc(100svh - 240px);
}

.admin-lock-panel {
  width: min(620px, 100%);
  padding: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.admin-lock-panel h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1;
}

.admin-lock-panel p:not(.eyebrow),
.admin-login-form {
  margin-top: 16px;
}

.admin-lock-panel p:not(.eyebrow) {
  color: var(--muted);
}

.admin-login-form {
  display: grid;
  gap: 14px;
}

.admin-login-form label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 900;
}

.admin-login-form input {
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid #cdd6e0;
  border-radius: 6px;
  outline: none;
}

.admin-login-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(11, 79, 134, 0.12);
}

.admin-error {
  min-height: 20px;
  margin: 0;
  color: var(--promo);
  font-size: 14px;
  font-weight: 900;
}

.admin-workspace {
  display: grid;
  gap: 34px;
}

.admin-panel {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
}

.admin-panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.admin-panel-heading h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
}

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

.admin-stats-grid article {
  padding: 18px;
  background: var(--blue-soft);
  border: 1px solid rgba(11, 79, 134, 0.14);
  border-radius: 8px;
}

.admin-stats-grid span,
.admin-table span,
.mini-item span,
.activity-item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.admin-stats-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--blue-dark);
  font-size: 34px;
  line-height: 1;
}

.table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.admin-table th,
.admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: #344054;
  background: var(--soft);
  font-size: 13px;
  text-transform: uppercase;
}

.admin-table td {
  color: var(--ink);
  font-weight: 800;
}

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

.compact-form {
  padding: 0;
  border: 0;
  box-shadow: none;
}

.compact-form .btn {
  margin-top: 16px;
}

.mini-list,
.activity-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.mini-item,
.activity-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mini-item strong,
.activity-item strong {
  display: block;
  font-size: 15px;
}

.mini-item b {
  color: var(--blue);
  white-space: nowrap;
}

.mini-item small {
  display: block;
  margin-top: 4px;
  color: #475467;
  font-size: 12px;
}

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

.ad-mini em {
  color: var(--muted);
  font-style: normal;
  font-weight: 900;
}

.ad-mini em.is-active {
  color: #138a5b;
}

.small-danger {
  min-height: 36px;
  padding: 0 12px;
  color: #fff;
  background: var(--promo);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.small-link {
  background: var(--blue);
}

.small-ok {
  min-height: 36px;
  background: #138a5b;
}

.product-manager-list {
  max-height: 560px;
  overflow-y: auto;
  padding-right: 4px;
}

.product-manager-item {
  align-items: start;
}

.content-output-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.content-output-grid label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 900;
}

.content-output-grid textarea {
  width: 100%;
  min-height: 110px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid #cdd6e0;
  border-radius: 6px;
  resize: vertical;
}

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

.report-grid article {
  padding: 16px;
  background: var(--blue-soft);
  border: 1px solid rgba(11, 79, 134, 0.14);
  border-radius: 8px;
}

.report-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.report-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--blue-dark);
  font-size: 22px;
  line-height: 1.1;
}

.admin-help-text {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.inventory-mini {
  align-items: start;
}

.lead-mini {
  align-items: start;
}

.three-d-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: 24px;
  align-items: start;
}

.three-d-admin-stage {
  min-height: 480px;
  display: grid;
  place-items: center;
  perspective: 1100px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 15%, rgba(255, 255, 255, 0.58), transparent 26%),
    linear-gradient(145deg, #064b31, #0b7c4a 52%, #03261c);
  border-radius: 8px;
}

.three-d-admin-card {
  width: min(82%, 380px);
  aspect-ratio: 4 / 5;
  padding: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
  transform-style: preserve-3d;
  transition: transform 180ms ease;
  animation: plantSlowTurn 7s ease-in-out infinite;
}

.three-d-admin-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
  transform: translateZ(26px);
  box-shadow: 0 22px 38px rgba(0, 0, 0, 0.24);
}

.admin-upload-layout {
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
}

.admin-preview {
  margin-top: 0;
}

.is-hidden {
  display: none !important;
}

.success-panel {
  min-height: 100svh;
  display: grid;
  place-items: center;
}

.success-panel h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
}

.success-panel .btn + .btn {
  margin-left: 10px;
}

.site-footer {
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.78);
  background: #07121f;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: #9bd7ff;
  font-weight: 900;
}

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

  .product-grid,
  .category-grid,
  .ad-strip-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }

  .site-header {
    min-height: 68px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 620px;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.78));
  }

  .intro-grid,
  .shop-layout,
  .upload-layout,
  .selected-shop-inner,
  .plant-view-layout,
  .product-view-layout,
  .three-d-admin-layout,
  .offer-panel,
  .admin-grid-two {
    grid-template-columns: 1fr;
  }

  .offer-panel {
    display: grid;
  }

  .section {
    padding: 68px 0;
  }
}

@media (max-width: 560px) {
  .container,
  .final-inner {
    width: min(100% - 28px, 1160px);
  }

  .site-header {
    padding-inline: 14px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .brand strong {
    font-size: 14px;
  }

  .header-cta {
    min-height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }

  .header-actions {
    gap: 6px;
  }

  .header-login {
    min-height: 38px;
    padding: 0 10px;
    font-size: 12px;
  }

  .hero h1 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .hero-actions,
  .shop-grid,
  .product-grid,
  .category-grid,
  .ad-strip-inner,
  .funnel,
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .form-grid,
  .upload-actions {
    grid-template-columns: 1fr;
  }

  .upload-actions {
    display: grid;
  }

  .success-panel .btn + .btn {
    margin-left: 0;
    margin-top: 12px;
  }

  .product-top {
    display: grid;
  }

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

  .product-actions,
  .product-view-grid,
  .report-grid {
    grid-template-columns: 1fr;
  }

  .product-modal-panel {
    padding: 18px;
  }

  .footer-inner {
    display: grid;
  }

  .landing-ad,
  .mini-item,
  .activity-item,
  .admin-panel-heading {
    display: grid;
  }

  .admin-panel {
    padding: 18px;
  }

  .modal-panel {
    padding: 24px 18px;
  }

  .plant-modal {
    align-items: start;
    overflow-y: auto;
  }

  .plant-modal-panel {
    padding: 18px;
  }

  .plant-3d-stage {
    min-height: 420px;
  }

  .plant-3d-card {
    width: min(90%, 340px);
  }

  .salesman-widget {
    right: 14px;
    bottom: 14px;
  }

  .salesman-panel {
    max-height: calc(100svh - 96px);
    padding: 14px;
  }

  .salesman-message.customer,
  .salesman-message.ai {
    margin-inline: 0;
  }

  .salesman-product,
  .salesman-form {
    grid-template-columns: 1fr;
  }

  .salesman-product img {
    width: 100%;
    height: 180px;
  }

  .three-d-admin-stage {
    min-height: 380px;
  }
}
