:root {
  --ink: #1f2933;
  --muted: #667085;
  --line: #d8dee8;
  --paper: #fffdf9;
  --panel: #ffffff;
  --blush: #d9466f;
  --leaf: #2f7d68;
  --gold: #b7791f;
  --sky: #eef7f8;
  --violet: #6451a6;
  --danger: #b42318;
  --ok: #067647;
  --shadow: 0 18px 50px rgba(31, 41, 51, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255,253,249,.94);
  border-bottom: 1px solid rgba(216,222,232,.8);
  backdrop-filter: blur(14px);
}

.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 224px; }
.logo-brand {
  min-width: 252px;
  max-width: 320px;
}
.logo-brand img {
  width: min(300px, 42vw);
  height: auto;
  max-height: 64px;
  object-fit: contain;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--blush), var(--leaf));
  color: white;
  font-weight: 800;
  letter-spacing: 0;
}
.brand strong { display: block; font-size: 1.04rem; }
.brand small { display: block; color: var(--muted); font-size: .78rem; }

.main-nav { display: flex; align-items: center; justify-content: center; gap: 8px; }
.main-nav a {
  padding: 9px 12px;
  border-radius: 6px;
  color: #344054;
  font-weight: 650;
  font-size: .93rem;
}
.main-nav a:hover, .main-nav a.active { background: #f4f7f6; color: var(--leaf); }
.staff-link { border: 1px solid var(--line); }
.call-link {
  justify-self: end;
  padding: 10px 14px;
  border-radius: 6px;
  color: white;
  background: var(--leaf);
  font-weight: 750;
  white-space: nowrap;
}
.nav-toggle { display: none; border: 0; background: transparent; font-size: 1.5rem; }

.page { min-height: 68vh; }
.section { padding: 56px clamp(18px, 5vw, 72px); }
.section-tight { padding: 28px clamp(18px, 5vw, 72px); }
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 24px;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.4rem, 5vw, 5.8rem); line-height: .96; letter-spacing: 0; margin-bottom: 18px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.05; margin-bottom: 8px; }
h3 { margin-bottom: 8px; }
.lead { color: #475467; font-size: clamp(1.02rem, 2vw, 1.28rem); max-width: 720px; }
.eyebrow { color: var(--gold); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: end;
  padding: clamp(30px, 7vw, 88px);
  color: white;
  background:
    linear-gradient(90deg, rgba(14,29,38,.88), rgba(14,29,38,.50), rgba(14,29,38,.12)),
    url("https://images.unsplash.com/photo-1487530811176-3780de880c2d?auto=format&fit=crop&w=1800&q=80") center/cover;
}
.hero-inner { max-width: 900px; padding-bottom: min(8vh, 80px); }
.hero .lead { color: rgba(255,255,255,.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 12px;
  max-width: 850px;
  margin-top: 34px;
}
.proof-item {
  padding: 14px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  border-radius: 8px;
}
.proof-item strong { display: block; font-size: 1.35rem; }
.proof-item span { color: rgba(255,255,255,.82); font-size: .86rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  background: var(--ink);
  color: white;
}
.btn.primary { background: var(--blush); }
.btn.leaf { background: var(--leaf); }
.btn.ghost { background: white; color: var(--ink); border-color: var(--line); }
.btn.subtle { background: #f6f8fb; color: var(--ink); border-color: var(--line); }
.btn.danger { background: var(--danger); }
.btn.full { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.category-card, .product-card, .panel, .metric, .order-row, .florist-row {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(31,41,51,.05);
}
.category-card { min-height: 230px; overflow: hidden; position: relative; color: white; }
.category-card img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.68); }
.category-card div { position: absolute; inset: auto 18px 18px 18px; }
.category-card h3 { font-size: 1.5rem; margin: 0 0 4px; }

.product-card { overflow: hidden; display: flex; flex-direction: column; }
.product-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #f3f4f6; }
.product-card-body { padding: 16px; display: grid; gap: 10px; flex: 1; }
.product-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .86rem; }
.price { font-weight: 900; font-size: 1.24rem; color: var(--leaf); }
.pill, .status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: .78rem;
  font-weight: 800;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: #344054;
  white-space: nowrap;
}
.pill.ok { color: var(--ok); background: #ecfdf3; border-color: #abefc6; }
.pill.warn { color: #b54708; background: #fffaeb; border-color: #fedf89; }
.pill.bad { color: var(--danger); background: #fef3f2; border-color: #fecdca; }

.shop-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 24px;
}
.filters { align-self: start; position: sticky; top: 92px; }
.panel { padding: 18px; }
.panel h3 { margin-bottom: 14px; }
.field { display: grid; gap: 6px; margin-bottom: 13px; }
.field label { font-size: .84rem; color: #344054; font-weight: 800; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid #ccd4df;
  border-radius: 6px;
  background: white;
  padding: 10px 11px;
  color: var(--ink);
}
.field textarea { min-height: 92px; resize: vertical; }
.inline-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }

.product-detail {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, .85fr);
  gap: 36px;
  align-items: start;
}
.product-hero-img { width: 100%; border-radius: 8px; aspect-ratio: 1/1; object-fit: cover; box-shadow: var(--shadow); }
.tier-options, .addon-list { display: grid; gap: 10px; }
.choice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.choice input { width: 18px; height: 18px; }
.cart-summary { position: sticky; top: 92px; }
.summary-line { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid #eef2f6; }
.summary-line.total { font-size: 1.2rem; font-weight: 900; border-bottom: 0; }

.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.form-card { background: white; border: 1px solid var(--line); border-radius: 8px; padding: 20px; margin-bottom: 16px; }
.form-card h3 { color: var(--leaf); }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 22px 0; }
.track-step {
  min-height: 82px;
  padding: 12px 8px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  font-weight: 800;
}
.track-step.active { border-color: var(--leaf); background: #ecfdf3; color: var(--leaf); }

.auth-screen { min-height: 68vh; display: grid; place-items: center; padding: 40px 18px; }
.auth-card { width: min(460px, 100%); background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 24px; }

.app-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 72vh; }
.side-nav {
  background: #17212b;
  color: white;
  padding: 22px 16px;
}
.side-nav h2 { font-size: 1.15rem; margin-bottom: 18px; }
.side-nav a, .side-nav button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  margin-bottom: 6px;
  border: 0;
  border-radius: 6px;
  color: rgba(255,255,255,.88);
  background: transparent;
  text-align: left;
}
.side-nav a.active, .side-nav a:hover, .side-nav button:hover { background: rgba(255,255,255,.12); color: white; }
.workspace { padding: 24px; background: #f5f7fb; overflow: auto; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.toolbar-left, .toolbar-right { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toolbar input, .toolbar select { border: 1px solid var(--line); border-radius: 6px; padding: 9px 10px; background: white; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.metric { padding: 16px; }
.metric span { color: var(--muted); font-size: .82rem; font-weight: 800; text-transform: uppercase; }
.metric strong { display: block; margin-top: 8px; font-size: 1.7rem; }

.data-table { width: 100%; border-collapse: collapse; background: white; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.data-table th, .data-table td { padding: 11px 12px; border-bottom: 1px solid #edf0f5; text-align: left; vertical-align: top; font-size: .9rem; }
.data-table th { background: #f8fafc; color: #475467; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.data-table tr:last-child td { border-bottom: 0; }
.table-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-btn { border: 1px solid var(--line); background: white; border-radius: 6px; padding: 6px 8px; font-weight: 750; font-size: .78rem; }

.board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 14px; align-items: start; }
.lane { background: #eaf0f6; border: 1px solid #d8e0ea; border-radius: 8px; min-height: 220px; padding: 12px; }
.lane h3 { display: flex; justify-content: space-between; font-size: .96rem; }
.order-row, .florist-row { padding: 12px; margin-bottom: 10px; box-shadow: none; }
.order-row strong, .florist-row strong { display: block; }
.muted { color: var(--muted); }
.compact { font-size: .86rem; }
.note-box { background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; padding: 12px; }

.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tab { border: 0; border-bottom: 3px solid transparent; background: transparent; padding: 10px 12px; font-weight: 850; color: var(--muted); }
.tab.active { color: var(--leaf); border-bottom-color: var(--leaf); }
.upload-zone {
  display: grid;
  place-items: center;
  min-height: 190px;
  border: 2px dashed #aab5c3;
  border-radius: 8px;
  background: white;
  text-align: center;
  padding: 24px;
}
.thumb-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.thumb { width: 92px; height: 92px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); }

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 72px);
  background: #17212b;
  color: rgba(255,255,255,.82);
}
.site-footer h2, .site-footer h3 { color: white; }
.site-footer p { margin-bottom: 6px; }

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #17212b;
  color: white;
  box-shadow: var(--shadow);
  transform: translateY(150%);
  transition: transform .2s ease;
}
.toast.show { transform: translateY(0); }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav, .call-link { display: none; }
  .main-nav.open {
    display: grid;
    grid-column: 1 / -1;
    justify-content: stretch;
    border-top: 1px solid var(--line);
    padding-top: 10px;
  }
  .nav-toggle { display: block; justify-self: end; }
  .hero-proof, .grid.four, .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-layout, .product-detail, .checkout-layout, .app-shell { grid-template-columns: 1fr; }
  .filters, .cart-summary { position: static; }
  .board { grid-template-columns: repeat(2, minmax(240px, 1fr)); }
}

@media (max-width: 680px) {
  .site-header { gap: 10px; padding: 10px 14px; }
  .brand, .logo-brand { min-width: 0; }
  .logo-brand img { width: min(245px, 72vw); max-height: 56px; }
  .hero { min-height: 760px; padding: 26px 18px; }
  .hero-proof, .grid.two, .grid.three, .grid.four, .metrics, .inline-fields, .steps, .board, .site-footer {
    grid-template-columns: 1fr;
  }
  .section-title, .toolbar { align-items: stretch; flex-direction: column; }
  .data-table { display: block; overflow-x: auto; }
}
