@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/unbounded-regular.ttf") format("truetype");
}

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/unbounded-semibold.ttf") format("truetype");
}

:root {
  --ink: #20201f;
  --muted: #6d6f69;
  --line: #dedbd2;
  --paper: #fffdf7;
  --panel: #f7f3ea;
  --white: #ffffff;
  --green: #21483a;
  --green-2: #3d7354;
  --on-green: #ffffff;
  --rose: #be5772;
  --gold: #d8aa41;
  --warn: #9b5a1f;
  --danger: #9a3939;
  --shadow: 0 20px 60px rgba(33, 40, 33, 0.14);
  --sticky-header-offset: 96px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--sticky-header-offset);
}

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

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

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

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

.hidden {
  display: none !important;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 58px);
  background: rgba(255, 253, 247, 0.94);
  border-bottom: 1px solid rgba(222, 219, 210, 0.9);
  backdrop-filter: blur(14px);
  transition: box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.topbar.is-scrolled {
  background: rgba(255, 253, 247, 0.98);
  border-bottom-color: rgba(32, 32, 31, 0.12);
  box-shadow: 0 14px 36px rgba(31, 39, 32, 0.12);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  font-family: "Unbounded", "Inter", sans-serif;
  font-size: 17px;
  font-weight: 700;
}

.brand-mark.logo-mark {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(32, 32, 31, 0.12);
  box-shadow: 0 8px 22px rgba(32, 32, 31, 0.08);
}

.brand-mark.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-mark.large-logo {
  width: 76px;
  height: 76px;
  margin-bottom: 4px;
}

.brand strong {
  display: block;
  font-family: "Unbounded", "Inter", sans-serif;
  font-size: 20px;
}

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

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

.nav a:hover,
.icon-link:hover {
  color: var(--green);
}

.icon-link,
.button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.icon-link {
  color: var(--ink);
  font-weight: 750;
  white-space: nowrap;
}

svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

i[data-lucide] {
  width: 18px;
  height: 18px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  font-style: normal;
  line-height: 1;
}

i[data-lucide]::before {
  content: "•";
  font-size: 18px;
}

i[data-lucide="phone"]::before,
i[data-lucide="phone-call"]::before { content: "☎"; }
i[data-lucide="shopping-bag"]::before,
i[data-lucide="shopping-basket"]::before { content: "◈"; }
i[data-lucide="message-circle"]::before,
i[data-lucide="messages-square"]::before { content: "✉"; }
i[data-lucide="sparkles"]::before { content: "✦"; }
i[data-lucide="clock-3"]::before,
i[data-lucide="calendar-clock"]::before,
i[data-lucide="alarm-clock"]::before { content: "◷"; }
i[data-lucide="truck"]::before { content: "⇢"; }
i[data-lucide="store"]::before { content: "⌂"; }
i[data-lucide="trash-2"]::before,
i[data-lucide="x"]::before { content: "×"; }
i[data-lucide="send"]::before { content: "➤"; }
i[data-lucide="external-link"]::before,
i[data-lucide="arrow-right"]::before { content: "→"; }
i[data-lucide="shopping-cart"]::before { content: "◈"; }
i[data-lucide="credit-card"]::before { content: "▤"; }
i[data-lucide="flower-2"]::before { content: "✽"; }
i[data-lucide="map-pin"]::before { content: "⌖"; }
i[data-lucide="lock-keyhole"]::before { content: "⌘"; }
i[data-lucide="layout-dashboard"]::before { content: "▦"; }
i[data-lucide="clipboard-list"]::before { content: "☷"; }
i[data-lucide="users"]::before { content: "◌"; }
i[data-lucide="package"]::before { content: "▣"; }
i[data-lucide="chart-no-axes-combined"]::before { content: "▥"; }
i[data-lucide="settings"]::before { content: "⚙"; }
i[data-lucide="log-out"]::before { content: "↩"; }
i[data-lucide="plus"]::before { content: "+"; }
i[data-lucide="save"]::before,
i[data-lucide="download"]::before { content: "↓"; }
i[data-lucide="bell"]::before,
i[data-lucide="bell-ring"]::before { content: "◍"; }
i[data-lucide="calendar-days"]::before,
i[data-lucide="calendar-check"]::before { content: "▣"; }
i[data-lucide="wallet"]::before,
i[data-lucide="receipt"]::before { content: "₽"; }
i[data-lucide="triangle-alert"]::before { content: "!"; }
i[data-lucide="eye-off"]::before { content: "◒"; }
i[data-lucide="badge-check"]::before { content: "✓"; }
i[data-lucide="globe"]::before { content: "○"; }

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 72px));
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #18241d;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero .tree-installation-motif {
  inset: auto -2vw -13% auto;
  z-index: 1;
  width: min(36vw, 520px);
  height: 92%;
  object-fit: contain;
  object-position: right bottom;
  opacity: 0.42;
  pointer-events: none;
  filter: drop-shadow(0 18px 35px rgba(0, 0, 0, 0.12));
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 29, 23, 0.84) 0%, rgba(18, 29, 23, 0.42) 45%, rgba(18, 29, 23, 0.06) 100%),
    linear-gradient(0deg, rgba(18, 29, 23, 0.5) 0%, rgba(18, 29, 23, 0.08) 42%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding: 0 clamp(20px, 6vw, 84px) clamp(42px, 9vh, 84px);
  color: #fff;
}

.hero-seal {
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}

.hero-seal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.hero-copy p,
.section-head p,
.feature-copy p,
.contacts p,
.about-contact p,
.admin-header p,
.login-card p,
.modal-card .section-head p {
  margin: 0 0 6px;
  color: var(--rose);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero-copy p {
  color: #f5d99c;
}

.hero-copy h1 {
  margin: 0;
  font-family: "Unbounded", "Inter", sans-serif;
  font-size: clamp(58px, 8vw, 118px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy > span {
  display: block;
  max-width: 600px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 23px);
}

.hero-actions,
.row-actions,
.pill-row,
.admin-actions,
.florist-toolbar,
.section-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-top: 28px;
}

.hero-actions .button {
  min-height: 54px;
  padding: 0 26px;
  font-size: 17px;
}

.hero-actions .button span {
  display: inline;
  margin: 0;
  color: inherit;
  font-size: inherit;
}

.button i[data-lucide],
.icon-link i[data-lucide],
.info-strip i[data-lucide],
.steps-grid i[data-lucide],
.map-card i[data-lucide],
.admin-nav i[data-lucide],
.kpi-card i[data-lucide],
.notice i[data-lucide] {
  display: none;
}

.button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.button.compact-button {
  min-height: 38px;
  padding: 0 14px;
  font-size: 13px;
}

.button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: var(--on-green);
  background: var(--green);
}

.button.primary:hover {
  background: var(--green-2);
}

.button.primary:disabled:hover {
  background: var(--green);
  transform: none;
}

.button.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.09);
}

.button.subtle {
  background: #fff;
  border-color: var(--line);
  color: var(--green);
}

.button.full {
  width: 100%;
}

.icon-button {
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--green);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.icon-button.small {
  width: 34px;
  height: 34px;
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.info-strip article {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: #fffaf0;
  color: var(--green);
  font-weight: 800;
  text-align: center;
}

.shop-layout,
.feature-band,
.content-band,
.reviews,
.contacts,
.telegram-band {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 70px) clamp(18px, 4vw, 58px);
}

.feature-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.feature-copy {
  display: block;
}

.feature-copy h2 {
  max-width: 820px;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.02;
}

.hero-note {
  display: block;
  width: fit-content;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 700;
}

.feature-copy h2,
.section-head h2,
.contacts h2,
.modal-card h2 {
  margin: 0;
  font-family: "Unbounded", "Inter", sans-serif;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
  letter-spacing: 0;
}

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

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

.section-head.compact {
  align-items: center;
  margin-bottom: 16px;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 42px;
  padding: 4px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.segment {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.segment.active {
  color: #fff;
  background: var(--green);
}

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

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

.product-card {
  display: grid;
  grid-template-rows: 190px minmax(190px, auto);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(37, 43, 36, 0.06);
}

.product-image {
  position: relative;
  overflow: hidden;
  background: #e9e8e1;
}

.product-image::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 45%, rgba(18, 29, 23, 0.22) 100%);
}

.product-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.75, 0.25, 1), filter 0.7s ease;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 7px 10px;
  color: var(--green);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 850;
  backdrop-filter: blur(10px);
}

.discount-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 7px 9px;
  color: #fff;
  background: #b64f62;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 850;
}

.price-stack {
  display: grid;
  justify-items: end;
  gap: 2px;
  white-space: nowrap;
}

.price-stack del {
  color: var(--muted);
  font-size: 12px;
}

.product-body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  padding: 15px;
}

.product-meta,
.cart-item-head,
.row-head,
.list-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.product-meta h3 {
  margin: 8px 0 0;
  font-size: 20px;
  line-height: 1.15;
}

.product-body p,
.product-body small,
.cart-item small,
.order-row small,
.client-card small,
.florist-card small {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.price {
  color: var(--green);
  font-weight: 900;
  white-space: nowrap;
}

.tag,
.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 9px;
  color: var(--green);
  background: #edf5ed;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.tag.off,
.pill.warn {
  color: var(--warn);
  background: #fff0d9;
}

.pill.ok {
  color: var(--green);
  background: #e6f5e9;
}

.cart-panel {
  position: sticky;
  top: 94px;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  scrollbar-gutter: stable;
}

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

.empty {
  display: grid;
  place-items: center;
  min-height: 76px;
  padding: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
  border: 1px dashed #c9c4b8;
  border-radius: 8px;
  text-align: center;
}

.cart-item,
.admin-row,
.order-row,
.client-card,
.florist-card,
.kpi-card,
.steps-grid article,
.review-grid article,
.table-wrap,
.login-card,
.modal-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-item,
.admin-row,
.order-row,
.client-card,
.florist-card {
  display: grid;
  gap: 9px;
  padding: 12px;
}

.qty {
  display: inline-grid;
  grid-auto-flow: column;
  grid-template-columns: 34px 34px 34px;
  align-items: center;
  justify-self: start;
  gap: 8px;
}

.qty span {
  width: 34px;
  min-width: 34px;
  max-width: 34px;
  min-height: 34px;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.qty button,
.row-actions button,
.mini-link {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--green);
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.order-row .row-actions,
.florist-card .row-actions,
.notice-card .row-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 6px;
}

.order-row .row-actions button,
.florist-card .row-actions button,
.notice-card .row-actions button,
.order-row .mini-link {
  width: 100%;
  min-height: 36px;
  padding: 6px 8px;
  line-height: 1.15;
  white-space: normal;
  text-align: center;
}

.florist-card .row-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-link {
  display: inline-flex;
  align-items: center;
}

.cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 18px;
}

.cart-summary strong {
  color: var(--green);
  font-size: 24px;
}

.checkout,
.admin-form,
.login-card,
.modal-card {
  display: grid;
  gap: 12px;
}

.delivery-details,
.recipient-fields {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.recipient-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.calm-switch {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  color: var(--ink);
}

.calm-switch input {
  min-height: auto;
}

.muted-block {
  opacity: 0.48;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbc7bd;
  border-radius: 8px;
  outline: none;
}

textarea {
  resize: vertical;
}

[hidden] {
  display: none !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green-2);
  box-shadow: 0 0 0 3px rgba(59, 115, 84, 0.14);
}

.product-card:hover .product-image img {
  transform: scale(1.035);
  filter: saturate(1.04);
}

.collection-band {
  padding: clamp(52px, 7vw, 96px) clamp(18px, 5vw, 76px);
  border-top: 1px solid var(--line);
}

.address-autocomplete {
  position: relative;
  display: block;
}

.address-suggestions {
  position: absolute;
  z-index: 90;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow-y: auto;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(29, 36, 30, 0.17);
}

.address-suggestions button {
  width: 100%;
  display: grid;
  gap: 3px;
  padding: 10px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
}

.address-suggestions button:hover,
.address-suggestions button:focus-visible {
  background: var(--panel);
  outline: none;
}

.address-suggestions small {
  color: var(--muted);
  font-weight: 600;
}

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

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease var(--reveal-delay, 0ms), transform 0.65s cubic-bezier(0.2, 0.75, 0.25, 1) var(--reveal-delay, 0ms);
}

.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.motion-ready .tree-installation-motif {
  animation: tree-breathe 8s ease-in-out infinite alternate;
}

@keyframes tree-breathe {
  from {
    transform: translate3d(0, 0, 0) rotate(-0.4deg);
  }
  to {
    transform: translate3d(0, -8px, 0) rotate(0.4deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.payment-note,
.status {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 750;
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.contact-button {
  min-height: 58px;
  display: grid;
  align-items: center;
  align-content: center;
  gap: 2px;
  padding: 10px 12px;
  color: #fff;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(33, 40, 33, 0.12);
}

.contact-button strong {
  font-size: 15px;
  font-weight: 900;
}

.contact-button small {
  color: #fff;
  opacity: 0.82;
  font-size: 11px;
  font-weight: 750;
}

.contact-button.telegram {
  background: #2a9fdc;
}

.contact-button.max {
  background: #4d54e8;
}

.contact-button.call {
  background: var(--green);
}

.content-band,
.reviews {
  border-top: 1px solid var(--line);
}

.telegram-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  border-top: 1px solid var(--line);
  background: linear-gradient(135deg, #f8fbff 0%, #fffaf0 100%);
}

.telegram-band p {
  margin: 0 0 6px;
  color: var(--rose);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.telegram-band h2 {
  margin: 0;
  font-family: "Unbounded", "Inter", sans-serif;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.telegram-band span {
  display: block;
  max-width: 680px;
  margin-top: 8px;
  color: var(--muted);
}

.telegram-link {
  min-width: 220px;
  min-height: 64px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 12px 18px;
  color: #fff;
  background: #2a9fdc;
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(42, 159, 220, 0.22);
  text-align: center;
}

.telegram-link strong {
  font-size: 16px;
  font-weight: 900;
}

.telegram-link span {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 800;
}

.steps-grid,
.review-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

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

.steps-grid article,
.review-grid article {
  padding: 18px;
}

.review-grid article {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  min-height: 180px;
  padding: 22px;
  box-shadow: 0 12px 34px rgba(37, 43, 36, 0.06);
}

.review-grid strong {
  font-size: 18px;
}

.review-grid p {
  margin: 0;
  color: var(--ink);
  font-family: "Unbounded", "Inter", sans-serif;
  font-size: 19px;
  line-height: 1.45;
}

.review-grid small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.review-head .button {
  white-space: nowrap;
}

.steps-grid h3 {
  margin: 12px 0 6px;
}

.contacts {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 20px;
  border-top: 1px solid var(--line);
}

.about-contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 20px;
  margin-top: 20px;
}

.contacts > div,
.about-contact > div,
.map-card {
  display: grid;
  gap: 10px;
  align-content: center;
  min-height: 250px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.map-card {
  justify-items: center;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(33, 72, 58, 0.92), rgba(33, 72, 58, 0.74)),
    url("assets/elle-fleurs-hero.jpg") center/cover;
  color: #fff;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 4vw, 58px);
  color: #fff;
  background: var(--green);
}

/* Admin */

body[data-page="admin"] {
  background: #f5f3ee;
}

.admin-app {
  min-height: 100vh;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(120deg, rgba(33, 72, 58, 0.86), rgba(33, 72, 58, 0.36)),
    url("assets/elle-fleurs-hero.jpg") center/cover;
}

.login-card {
  width: min(430px, 100%);
  padding: 24px;
  box-shadow: var(--shadow);
}

.login-card h1 {
  margin: 0;
  font-family: "Unbounded", "Inter", sans-serif;
  font-size: 38px;
}

.login-card small {
  color: var(--muted);
}

.admin-workspace {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 232px 1fr;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.96);
  border-right: 1px solid var(--line);
}

.admin-nav {
  display: grid;
  gap: 7px;
  align-content: start;
}

.admin-nav button {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  text-align: left;
}

.admin-nav button.active,
.admin-nav button:hover {
  color: var(--green);
  background: var(--panel);
}

.admin-main {
  min-width: 0;
  padding: 24px clamp(18px, 3vw, 42px) 48px;
}

.admin-view {
  display: grid;
  gap: 16px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.admin-header h1 {
  margin: 0;
  font-family: "Unbounded", "Inter", sans-serif;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.kpi-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(37, 43, 36, 0.05);
}

.kpi-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.kpi-card strong {
  font-size: 26px;
}

.split-grid,
.work-grid,
.client-grid,
.florist-board {
  display: grid;
  gap: 16px;
}

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

.work-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

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

.florist-board {
  grid-template-columns: repeat(4, minmax(230px, 1fr));
  align-items: start;
}

.florist-board section {
  display: grid;
  gap: 10px;
}

.florist-board h3,
.table-wrap h3 {
  margin: 0;
}

.table-wrap {
  padding: 16px;
  box-shadow: 0 12px 34px rgba(37, 43, 36, 0.05);
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 170px 170px 190px;
  gap: 10px;
  margin-bottom: 14px;
}

.order-scopes {
  display: flex;
  gap: 4px;
  width: fit-content;
  margin-bottom: 14px;
  padding: 4px;
  background: #ebe9e2;
  border-radius: 8px;
}

.order-scopes button {
  min-height: 38px;
  padding: 0 15px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
}

.order-scopes button.active {
  color: var(--green);
  background: #fff;
  box-shadow: 0 2px 8px rgba(37, 43, 36, 0.08);
}

.order-list {
  max-height: none;
  overflow: visible;
}

.order-row p,
.florist-card p {
  margin: 0;
}

.florist-card {
  border-left: 5px solid var(--rose);
}

.order-row.unseen,
.notice-card {
  border-color: #e6bb5d;
  background: #fffaf0;
  box-shadow: 0 12px 34px rgba(142, 102, 24, 0.12);
}

.notification-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.notice-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e6bb5d;
  border-radius: 8px;
}

.product-admin-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px 120px 120px;
  gap: 14px;
  align-items: center;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}

.product-admin-row > div,
.product-admin-row > label {
  min-width: 0;
}

.product-admin-row > div {
  display: grid;
  gap: 3px;
}

.product-admin-row.warning {
  background: #fff8e9;
}

.product-create-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.admin-disclosure > summary,
.form-details > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  cursor: pointer;
  font-weight: 850;
  list-style: none;
}

.admin-disclosure > summary::-webkit-details-marker,
.form-details > summary::-webkit-details-marker {
  display: none;
}

.admin-disclosure > summary svg {
  width: 18px;
}

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

.client-card {
  align-content: start;
}

.client-note-form textarea {
  min-height: 92px;
  background: #fffdf8;
}

.switch {
  grid-template-columns: 18px 1fr;
  align-items: center;
  color: var(--ink);
}

.switch input {
  min-height: auto;
}

.admin-row.warning {
  border-color: #e2bc7d;
  background: #fff8e9;
}

.mini-history {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.mini-history span {
  color: var(--muted);
  font-size: 12px;
}

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

.client-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 460px) auto;
  justify-content: space-between;
  gap: 12px;
}

.day-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2px;
  padding: 18px 0;
  border-block: 1px solid var(--line);
}

.day-summary > div {
  display: grid;
  gap: 5px;
  padding: 0 18px;
  border-right: 1px solid var(--line);
}

.day-summary > div:first-child {
  padding-left: 0;
}

.day-summary > div:last-child {
  border-right: 0;
}

.day-summary span,
.compact-order small,
.order-address {
  color: var(--muted);
}

.day-summary strong {
  font-size: 22px;
}

.compact-order {
  display: grid;
  gap: 8px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.compact-order:last-child {
  border-bottom: 0;
}

.compact-order p {
  margin: 0;
}

.compact-order-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.compact-order-footer button,
.next-action {
  min-height: 34px;
  padding: 0 12px;
  color: #fff;
  background: var(--green);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
}

.order-row .row-actions .next-action {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.order-row {
  gap: 14px;
  padding: 18px;
}

.order-card-head,
.order-controls,
.order-facts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.order-card-head h3 {
  display: inline;
  margin: 0 8px;
  font-size: 20px;
}

.order-card-head a {
  color: var(--green);
  font-weight: 750;
}

.order-number {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.order-total {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.order-total strong {
  font-size: 20px;
}

.order-facts {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.order-facts span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.order-facts svg {
  width: 15px;
  height: 15px;
}

.order-items {
  margin: 0;
  font-weight: 750;
}

.order-controls {
  align-items: end;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.order-controls > label {
  width: min(310px, 100%);
}

.primary-actions {
  justify-content: flex-end;
}

.order-details {
  padding-top: 2px;
}

.order-details summary {
  width: fit-content;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.history-list {
  display: grid;
  gap: 4px;
  margin: 10px 0;
}

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

.danger-link {
  padding: 0;
  color: #a04343;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 750;
}

.florist-next {
  margin-top: 4px;
}

.florist-done {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  color: var(--green);
  background: #edf5ed;
  border-radius: 6px;
  font-weight: 850;
}

.kpi-grid.single {
  grid-template-columns: minmax(220px, 360px);
  margin-top: 16px;
}

.notice {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  color: var(--green);
  background: #edf5ed;
  border-radius: 8px;
}

.modal {
  width: min(960px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(21, 25, 22, 0.46);
}

.modal-card {
  padding: 18px;
  border: 0;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.form-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.form-grid.five {
  grid-template-columns: 2fr repeat(4, 1fr);
}

.form-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

details {
  display: grid;
  gap: 6px;
}

details small {
  display: block;
  margin-top: 6px;
}

.loading-state {
  min-height: 240px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 750;
}

.error-notice {
  color: #943e3e;
  background: #fff0f0;
}

.assortment-toolbar,
.editor-heading,
.editor-save-row,
.collection-admin-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.kpi-inline,
.connection-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kpi-inline span {
  padding: 8px 10px;
  color: var(--green);
  background: #edf3ed;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.assortment-workspace {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 660px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-editor-list {
  min-width: 0;
  padding: 14px;
  background: #f0eee8;
  border-right: 1px solid var(--line);
}

.product-editor-list > input {
  margin-bottom: 10px;
}

.product-editor-list > div {
  display: grid;
  gap: 4px;
  max-height: 590px;
  overflow-y: auto;
}

.product-list-item {
  width: 100%;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 8px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
}

.product-list-item:hover,
.product-list-item.active {
  background: #fff;
}

.product-list-item img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 5px;
}

.product-list-item span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.product-list-item strong,
.product-list-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-list-item small,
.product-list-item em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.product-list-item em {
  color: #9d5e32;
}

.product-editor-area {
  min-width: 0;
}

.product-editor-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  min-height: 100%;
}

.product-editor-fields {
  display: grid;
  align-content: start;
  gap: 13px;
  padding: 22px;
}

.editor-heading h2,
.collection-manager h2 {
  margin: 3px 0 0;
  font-size: 24px;
}

.image-upload {
  position: relative;
  height: 190px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
}

.image-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.image-upload img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-upload::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(20, 28, 23, 0.3);
}

.image-upload span {
  position: relative;
  z-index: 1;
  padding: 9px 12px;
  background: rgba(24, 50, 40, 0.78);
  border-radius: 6px;
}

.product-live-preview {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px;
  background: #f0eee8;
  border-left: 1px solid var(--line);
}

.product-live-preview > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-live-preview .product-card {
  grid-template-rows: 180px minmax(220px, auto);
}

.collection-manager {
  display: grid;
  gap: 14px;
  margin-top: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

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

.collection-admin-card {
  align-items: end;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.collection-admin-card h3 {
  margin: 10px 0 4px;
}

.collection-admin-card p {
  margin: 0 0 8px;
  color: var(--muted);
}

.collection-products {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.collection-products legend {
  padding: 0 6px;
  font-weight: 800;
}

.collection-products > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
}

.collection-products label {
  grid-template-columns: 18px 38px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 7px;
  color: var(--ink);
  background: var(--panel);
  border-radius: 6px;
}

.collection-products input {
  min-height: auto;
}

.collection-products img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 4px;
}

.connection-status {
  grid-column: 1 / -1;
}

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

  .shop-layout,
  .feature-band,
  .contacts,
  .split-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .florist-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .product-live-preview {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .product-live-preview #productPreview {
    width: min(360px, 100%);
  }

  .cart-panel {
    position: static;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-row,
  .product-admin-row,
  .form-grid.five,
  .form-grid.four,
  .form-grid.three {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .topbar {
    flex-wrap: wrap;
    min-height: 86px;
  }

  .brand {
    min-width: 0;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    overflow: auto;
  }

  .icon-link span {
    display: none;
  }

  .hero {
    min-height: 620px;
  }

  .hero-copy h1 {
    font-size: 62px;
  }

  .hero-seal {
    width: 96px;
    height: 96px;
    margin-bottom: 16px;
  }

  .hero .tree-installation-motif {
    right: -24%;
    bottom: -16%;
    width: 92vw;
    height: 74%;
    opacity: 0.2;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
    min-height: 50px;
    font-size: 16px;
  }

  .info-strip,
  .product-grid,
  .popular-grid,
  .steps-grid,
  .review-grid,
  .kpi-grid,
  .client-grid,
  .filter-row,
  .product-admin-row,
  .form-grid.two,
  .form-grid.three,
  .form-grid.four,
  .form-grid.five,
  .recipient-fields,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .florist-board {
    grid-template-columns: 1fr;
  }

  .assortment-kpis,
  .day-summary {
    grid-template-columns: 1fr;
  }

  .day-summary > div,
  .day-summary > div:first-child {
    padding: 10px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .day-summary > div:last-child {
    border-bottom: 0;
  }

  .order-controls,
  .order-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .order-total {
    justify-items: start;
  }

  .primary-actions {
    justify-content: flex-start;
  }

  .client-toolbar {
    grid-template-columns: 1fr;
  }

  .order-edit-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .admin-header,
  .feature-copy {
    align-items: start;
    flex-direction: column;
  }

  .telegram-band {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .telegram-link {
    width: 100%;
    min-width: 0;
  }

  .contact-actions {
    grid-template-columns: 1fr;
  }

  .admin-workspace {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: sticky;
    z-index: 20;
    height: auto;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 10px;
    padding: 12px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-nav {
    grid-column: 1 / -1;
    display: flex;
    gap: 4px;
    overflow-x: auto;
  }

  .admin-nav button {
    flex: 0 0 auto;
    min-width: 126px;
  }

  .admin-sidebar > .button {
    width: auto;
  }

  .order-scopes {
    width: 100%;
    overflow-x: auto;
  }

  .order-scopes button {
    flex: 0 0 auto;
  }

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

  .assortment-toolbar,
  .editor-heading,
  .editor-save-row,
  .collection-admin-card {
    align-items: stretch;
    flex-direction: column;
  }

  .assortment-workspace {
    grid-template-columns: 1fr;
  }

  .product-editor-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .product-editor-list > div {
    max-height: 240px;
  }

  .collection-admin-grid,
  .collection-products > div {
    grid-template-columns: 1fr;
  }

  .admin-main {
    padding: 16px;
  }

  .footer {
    flex-direction: column;
  }
}

/* 2026 workspace redesign */

.consent-field {
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.consent-field input {
  min-height: 18px;
  margin-top: 2px;
}

.consent-field a,
.legal-content a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body[data-page="admin"] {
  color: #202622;
  background: #f2f3ef;
}

body[data-page="admin"] .admin-workspace {
  grid-template-columns: 248px minmax(0, 1fr);
}

body[data-page="admin"] .admin-sidebar {
  padding: 22px 16px 16px;
  background: #183c30;
  border: 0;
}

body[data-page="admin"] .admin-sidebar .brand {
  min-width: 0;
  padding: 0 8px;
  color: #fff;
}

body[data-page="admin"] .admin-sidebar .brand small {
  color: rgba(255, 255, 255, 0.62);
}

body[data-page="admin"] .admin-nav {
  gap: 5px;
}

body[data-page="admin"] .admin-nav button {
  position: relative;
  min-height: 50px;
  gap: 12px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.66);
  border-radius: 7px;
  font-size: 14px;
}

body[data-page="admin"] .admin-nav button:hover,
body[data-page="admin"] .admin-nav button.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.nav-icon {
  width: 26px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  font-weight: 900;
}

.admin-nav em {
  min-width: 21px;
  margin-left: auto;
  padding: 2px 6px;
  color: #183c30;
  background: #f1cc70;
  border-radius: 10px;
  font-size: 11px;
  font-style: normal;
  text-align: center;
}

.sidebar-footer {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 7px;
  padding: 12px 8px 0;
  color: rgba(255, 255, 255, 0.58);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-footer .text-button {
  color: #fff;
}

.connection-dot,
.live-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  background: #79bd82;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(121, 189, 130, 0.14);
}

.connection-dot.off {
  background: #d39f58;
  box-shadow: 0 0 0 4px rgba(211, 159, 88, 0.14);
}

body[data-page="admin"] .admin-main {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px 32px 54px;
}

body[data-page="admin"] .admin-header {
  margin-bottom: 20px;
  padding: 0 0 18px;
}

body[data-page="admin"] .admin-header h1 {
  font-family: inherit;
  font-size: 32px;
  font-weight: 760;
}

.text-button {
  width: fit-content;
  padding: 4px 0;
  color: var(--green);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 750;
}

.text-button.danger {
  color: var(--danger);
}

.work-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.work-summary > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 15px 18px;
  background: #fff;
}

.work-summary strong {
  font-size: 24px;
}

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

.queue-tabs,
.florist-daybar {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 5px;
  background: #e5e7e1;
  border-radius: 8px;
}

.queue-tabs button,
.florist-daybar button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  color: #60655f;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 750;
  white-space: nowrap;
}

.queue-tabs button.active,
.florist-daybar button.active {
  color: var(--green);
  background: #fff;
  box-shadow: 0 2px 7px rgba(32, 38, 34, 0.09);
}

.queue-tabs em,
.florist-daybar em {
  min-width: 21px;
  padding: 2px 6px;
  background: #edf1ec;
  border-radius: 10px;
  font-size: 11px;
  font-style: normal;
  text-align: center;
}

.order-workspace {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(520px, 1.4fr);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(30, 40, 34, 0.05);
}

.order-inbox {
  min-width: 0;
  background: #f7f8f5;
  border-right: 1px solid var(--line);
}

.order-search {
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

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

.archive-filters label {
  font-size: 10px;
}

.order-list-item {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 14px 13px;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #e5e7e1;
  cursor: pointer;
  text-align: left;
}

.order-list-item:hover,
.order-list-item.selected {
  background: #fff;
}

.order-list-item.selected::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  content: "";
  background: var(--green);
}

.order-list-item.unread::after {
  position: absolute;
  top: 12px;
  right: 9px;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--rose);
  border-radius: 50%;
}

.order-list-time,
.order-list-copy,
.order-list-side {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.order-list-time strong,
.order-list-copy small,
.order-list-side small {
  color: var(--muted);
  font-size: 11px;
}

.order-list-time small {
  font-size: 17px;
  font-weight: 780;
}

.order-list-copy strong,
.order-list-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-list-side {
  justify-items: end;
}

.order-detail {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 20px;
  padding: 24px;
}

.order-detail-head,
.modal-heading,
.builder-section-head,
.settings-heading,
.florist-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.order-detail-head h2,
.modal-heading h2,
.builder-section-head h2,
.settings-heading h2,
.florist-intro h2 {
  margin: 6px 0 2px;
  font-size: 24px;
  line-height: 1.15;
}

.order-detail-head p,
.florist-intro p,
.florist-intro span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.order-head-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.order-head-actions > strong {
  font-size: 23px;
  white-space: nowrap;
}

.stage-rail {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.stage-rail li {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 7px;
  color: #9a9e99;
}

.stage-rail li::before {
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  height: 2px;
  content: "";
  background: #dde0da;
}

.stage-rail li span {
  position: relative;
  z-index: 1;
  width: 12px;
  height: 12px;
  background: #dde0da;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #cfd3cc;
}

.stage-rail li.done::before,
.stage-rail li.done span,
.stage-rail li.current span {
  background: var(--green);
}

.stage-rail li.done,
.stage-rail li.current {
  color: var(--green);
}

.stage-rail small {
  max-width: 78px;
  font-size: 10px;
  font-weight: 750;
}

.order-detail-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 12px;
}

.order-detail-grid section,
.order-content,
.florist-assignment,
.settings-layout section {
  padding: 16px;
  background: #f7f8f5;
  border: 1px solid #e3e5df;
  border-radius: 8px;
}

.detail-label {
  margin: 0 0 7px;
  color: #7a8079;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.order-detail-grid h3,
.order-content h3,
.florist-assignment h3 {
  margin: 0 0 5px;
  font-size: 16px;
  line-height: 1.28;
}

.order-detail-grid p,
.order-content p,
.florist-assignment p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.contact-link {
  color: var(--green);
  font-size: 15px;
  font-weight: 780;
}

.postcard-note {
  display: grid;
  gap: 3px;
  margin-top: 12px;
  padding: 10px 12px;
  background: #fff8e8;
  border-left: 3px solid #deb65d;
  border-radius: 4px;
  font-size: 13px;
}

.florist-assignment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 16px;
  border-color: #d9ded7;
}

.florist-assignment.assigned {
  background: #eef5ef;
  border-color: #bfd3c2;
}

.florist-assignment label {
  grid-column: 1 / -1;
}

.order-settings summary {
  width: fit-content;
  color: var(--green);
  cursor: pointer;
  font-size: 13px;
  font-weight: 780;
}

.order-settings[open] {
  padding: 14px;
  background: #f7f8f5;
  border-radius: 8px;
}

.order-primary-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.order-primary-actions .button {
  min-width: 220px;
}

.button.danger {
  color: var(--danger);
  border-color: rgba(154, 57, 57, 0.24);
}

.product-stats-table {
  display: grid;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px;
  overflow: hidden;
}

.product-stats-table > div {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 180px 130px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.product-stats-table span,
.product-stats-table em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.product-stats-table em {
  justify-self: end;
  color: var(--green);
}

.pill.stage-inbox { color: #7c3150; background: #f8e9ee; }
.pill.stage-clarifying,
.pill.stage-approval { color: #725315; background: #fff3d6; }
.pill.stage-payment { color: #4e4a78; background: #eeedf8; }
.pill.stage-scheduled,
.pill.stage-ready { color: #24563e; background: #e7f2ea; }
.pill.stage-completed { color: #536158; background: #edf0ed; }
.pill.stage-canceled { color: #8c3f3f; background: #f7eaea; }

.florist-daybar {
  width: fit-content;
}

.florist-intro {
  align-items: end;
  padding: 22px 0 4px;
}

.florist-timeline {
  display: grid;
  gap: 12px;
}

.florist-task {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 230px;
  gap: 20px;
  align-items: center;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid #d1b06b;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(30, 40, 34, 0.05);
}

.florist-task.status-assembling { border-left-color: var(--rose); }
.florist-task.status-ready { border-left-color: #4b8b62; background: #f5faf6; }

.florist-task-time {
  display: grid;
  gap: 2px;
  padding-right: 18px;
  border-right: 1px solid var(--line);
}

.florist-task-time strong {
  font-size: 30px;
}

.florist-task-time span,
.florist-task-main .row-head span:last-child,
.florist-task-action > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.florist-task-main {
  min-width: 0;
}

.florist-task-main h3 {
  margin: 10px 0 5px;
  font-size: 20px;
}

.florist-task-main p {
  margin: 0;
  color: var(--muted);
}

.florist-task-action {
  display: grid;
  gap: 9px;
  justify-items: stretch;
}

.florist-task-action > strong {
  color: var(--green);
  text-align: right;
}

.builder-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.builder-toolbar > div:first-child {
  display: grid;
  grid-template-columns: 10px auto;
  gap: 2px 9px;
  align-items: center;
}

.builder-toolbar small {
  grid-column: 2;
  color: var(--muted);
}

.store-builder {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.builder-outline {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 5px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.builder-outline button {
  display: grid;
  gap: 2px;
  padding: 10px;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
}

.builder-outline button:hover {
  background: #f2f4ef;
}

.builder-outline span {
  font-weight: 780;
}

.builder-outline small {
  color: var(--muted);
}

.builder-canvas {
  min-width: 0;
  overflow: hidden;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(30, 40, 34, 0.08);
}

.builder-hero {
  position: relative;
  min-height: 330px;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 40px;
  color: #fff;
}

.builder-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(17, 35, 28, 0.86), rgba(17, 35, 28, 0.2));
}

.builder-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.builder-hero > div,
.builder-hero > em,
.hero-upload {
  position: relative;
  z-index: 1;
}

.builder-hero h2 {
  margin: 6px 0;
  font-family: "Unbounded", "Inter", sans-serif;
  font-size: 54px;
}

.builder-hero p {
  margin: 0;
}

.builder-hero > em {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 5px;
  font-size: 11px;
  font-style: normal;
}

.hero-upload {
  width: fit-content;
  margin-top: 18px;
  color: #fff;
  cursor: pointer;
}

.hero-upload input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.hero-upload span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 15px;
  color: var(--green);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 850;
}

.builder-section {
  padding: 30px;
  border-top: 1px solid #e8e3da;
  scroll-margin-top: 18px;
}

.builder-section.is-hidden {
  background: repeating-linear-gradient(135deg, #faf9f5, #faf9f5 10px, #f3f2ed 10px, #f3f2ed 20px);
  opacity: 0.72;
}

.builder-section-head {
  align-items: end;
  margin-bottom: 18px;
}

.builder-section-head span {
  color: var(--rose);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.builder-section-head h2 {
  font-family: "Unbounded", "Inter", sans-serif;
  font-size: 34px;
}

.builder-section-actions {
  display: flex;
  gap: 5px;
}

.builder-section-actions button {
  min-height: 35px;
  padding: 0 10px;
  color: var(--green);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 750;
}

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

.builder-product {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 0 0 12px;
  overflow: hidden;
  color: inherit;
  background: #fff;
  border: 1px solid #dedbd2;
  border-radius: 7px;
  cursor: pointer;
  text-align: left;
}

.builder-product:hover {
  border-color: var(--green);
  box-shadow: 0 12px 24px rgba(30, 40, 34, 0.12);
  transform: translateY(-2px);
}

.builder-product.is-hidden {
  opacity: 0.52;
}

.builder-product > div {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

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

.builder-product > div > span,
.builder-product > div > em {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 7px;
  background: #fff;
  border-radius: 4px;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}

.builder-product > div > em {
  inset: auto 8px 8px auto;
  color: #fff;
  background: var(--green);
  opacity: 0;
}

.builder-product:hover > div > em {
  opacity: 1;
}

.builder-product > small,
.builder-product > h3,
.builder-product > p,
.builder-product > i {
  margin: 0 11px;
}

.builder-product > small {
  margin-top: 5px;
  color: var(--muted);
}

.builder-product > h3 {
  min-height: 42px;
  font-size: 15px;
  line-height: 1.3;
}

.builder-product > p {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.builder-product del {
  color: var(--muted);
  font-size: 11px;
}

.builder-product > i {
  color: var(--green);
  font-size: 10px;
  font-style: normal;
  font-weight: 780;
}

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

.product-form-fields {
  display: grid;
  gap: 12px;
}

.product-modal-preview {
  padding: 14px;
  background: #f2f3ef;
  border-radius: 8px;
}

.product-modal-preview > p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.availability-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.availability-box legend {
  padding: 0 5px;
  font-weight: 800;
}

.availability-box > label {
  grid-template-columns: 18px 1fr;
  align-items: center;
}

.availability-box input[type="radio"],
.availability-box input[type="checkbox"] {
  min-height: 18px;
}

.availability-box > div {
  grid-column: 1 / -1;
}

.modal-save,
.settings-save {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.form-hint,
.privacy-note {
  color: var(--muted);
  font-size: 12px;
}

.privacy-note {
  display: flex;
  gap: 10px;
  padding: 12px 15px;
  background: #eef3ee;
  border-left: 3px solid var(--green);
  border-radius: 5px;
}

.client-table {
  display: grid;
  gap: 8px;
}

.client-table article {
  display: grid;
  grid-template-columns: 1fr 0.8fr minmax(300px, 1.5fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.client-table article > div {
  display: grid;
  gap: 3px;
}

.client-table a {
  color: var(--green);
  font-weight: 750;
}

.client-table span,
.client-table small {
  color: var(--muted);
  font-size: 12px;
}

.client-table textarea {
  min-height: 74px;
}

.client-history,
.client-table article > .text-button.danger {
  grid-column: 1 / -1;
}

.client-history summary {
  width: fit-content;
  color: var(--green);
  cursor: pointer;
  font-size: 12px;
  font-weight: 780;
}

.client-history > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.client-history > div small {
  grid-column: 1 / -1;
}

.reminder-form {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 150px minmax(180px, 1fr) auto;
  gap: 8px;
  align-items: end;
  margin-top: 10px;
}

.reminder-form input {
  min-height: 38px;
}

.reminder-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
}

.done-reminder {
  opacity: 0.58;
}

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

.settings-layout section {
  display: grid;
  gap: 14px;
  padding: 20px;
  background: #fff;
}

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

.connection-grid > div {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 2px 8px;
  align-items: center;
  padding: 13px;
  background: #f7f8f5;
  border-radius: 7px;
}

.connection-grid small {
  grid-column: 2;
  color: var(--muted);
}

.legal-page {
  min-height: 100vh;
  background: #f8f7f2;
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 18px clamp(20px, 6vw, 80px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(31, 39, 32, 0.05);
}

.legal-content {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 90px;
}

.legal-content h1 {
  margin: 7px 0 18px;
  font-family: "Unbounded", "Inter", sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
}

.legal-lead {
  color: #48504a;
  font-size: 19px;
}

.legal-content section {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.legal-content section p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 1180px) {
  .order-workspace { grid-template-columns: 330px minmax(0, 1fr); }
  .builder-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-form-layout { grid-template-columns: 1fr; }
  .product-modal-preview { display: none; }
  .client-table article { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  body[data-page="admin"] .admin-workspace { grid-template-columns: 1fr; }
  body[data-page="admin"] .admin-sidebar { position: sticky; top: 0; z-index: 30; height: auto; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto; align-items: center; padding: 9px 14px; }
  body[data-page="admin"] .admin-sidebar .brand { display: none; }
  body[data-page="admin"] .admin-nav { grid-column: 1; grid-row: 1; display: flex; overflow-x: auto; }
  body[data-page="admin"] .admin-nav button { flex: 0 0 auto; min-height: 42px; }
  .sidebar-footer { grid-column: 2; grid-row: 1; border: 0; padding: 0 0 0 10px; }
  .sidebar-footer small,
  .sidebar-footer .connection-dot { display: none; }
  body[data-page="admin"] .admin-main { padding: 18px 16px 40px; }
  .order-workspace { grid-template-columns: 1fr; }
  .order-inbox { border-right: 0; border-bottom: 1px solid var(--line); }
  .order-list-item:not(.selected) { display: none; }
  .order-list-item.selected { display: grid; }
  .store-builder { grid-template-columns: 1fr; }
  .builder-outline { position: static; display: flex; overflow-x: auto; }
  .builder-outline .detail-label { display: none; }
  .builder-outline button { flex: 0 0 160px; }
  .florist-task { grid-template-columns: 86px minmax(0, 1fr); }
  .florist-task-action { grid-column: 2; }
}

@media (max-width: 680px) {
  body[data-page="admin"] .admin-header { align-items: stretch; flex-direction: column; }
  body[data-page="admin"] .admin-header .admin-actions { width: 100%; }
  body[data-page="admin"] .admin-header .button { flex: 1; }
  .work-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-detail { padding: 16px; }
  .order-detail-grid { grid-template-columns: 1fr; }
  .order-detail-head { flex-direction: column; }
  .stage-rail small { display: none; }
  .florist-assignment { grid-template-columns: 1fr; }
  .florist-assignment label { grid-column: 1; }
  .order-primary-actions { align-items: stretch; flex-direction: column; }
  .order-primary-actions .button { width: 100%; }
  .florist-intro { align-items: flex-start; flex-direction: column; }
  .florist-task { grid-template-columns: 1fr; gap: 13px; }
  .florist-task-time { grid-template-columns: auto 1fr; align-items: baseline; padding: 0 0 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .florist-task-action { grid-column: 1; }
  .builder-toolbar { align-items: stretch; flex-direction: column; }
  .builder-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .builder-section { padding: 20px 14px; }
  .builder-section-head { align-items: flex-start; flex-direction: column; }
  .builder-hero { min-height: 270px; padding: 24px; }
  .builder-hero h2 { font-size: 42px; }
  .client-table article { grid-template-columns: 1fr; }
  .reminder-form { grid-template-columns: 1fr; }
  .reminder-actions { flex-direction: column; gap: 6px; }
  .connection-grid { grid-template-columns: 1fr; }
  .modal { width: calc(100% - 16px); max-height: calc(100vh - 16px); }
  .modal-card { padding: 14px; }
  .availability-box { grid-template-columns: 1fr; }
}

/* Storefront redesign: editorial floral storefront inspired by premium catalog UX. */

body[data-page="storefront"] {
  --sticky-header-offset: 104px;
  --ink: #191816;
  --muted: #747168;
  --line: #e4dfd4;
  --paper: #fbf8f0;
  --panel: #f3eee4;
  --green: #163f31;
  --green-2: #37745a;
  --on-green: #ffffff;
  --rose: #c05f78;
  --gold: #d6ad4f;
  --shadow: 0 28px 70px rgba(28, 33, 26, 0.1);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.9) 0, rgba(255, 255, 255, 0) 28%),
    linear-gradient(180deg, #fbf8f0 0%, #f6f0e5 100%);
  font-family: "Unbounded", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body[data-page="storefront"] .topline {
  display: none;
}

body[data-page="storefront"][data-theme="sage"] {
  --ink: #17241f;
  --muted: #5f6d65;
  --line: #d8e3d7;
  --paper: #f5f8f3;
  --panel: #e8f0e6;
  --green: #2f6f5d;
  --green-2: #5d987d;
  --rose: #b76f59;
  --gold: #f0d66b;
  background:
    radial-gradient(circle at 16% 0%, rgba(143, 182, 77, 0.17) 0, rgba(143, 182, 77, 0) 27%),
    linear-gradient(180deg, #f5f8f3 0%, #e8f0e6 100%);
}

body[data-page="storefront"][data-theme="peony"] {
  --ink: #2a1820;
  --muted: #806b72;
  --line: #efd3da;
  --paper: #fff3f5;
  --panel: #f8e1e7;
  --green: #4b2735;
  --green-2: #7b3c52;
  --rose: #d86b8a;
  --gold: #e5b86f;
  background:
    radial-gradient(circle at 82% 4%, rgba(216, 107, 138, 0.18) 0, rgba(216, 107, 138, 0) 28%),
    linear-gradient(180deg, #fff3f5 0%, #f8e1e7 100%);
}

body[data-page="storefront"][data-theme="noir"] {
  --ink: #f7efe2;
  --muted: #c8bba6;
  --line: #39352d;
  --paper: #131512;
  --panel: #1f211b;
  --green: #f7efe2;
  --green-2: #d8b56b;
  --on-green: #131512;
  --rose: #bd8064;
  --gold: #d8b56b;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
  background:
    radial-gradient(circle at 74% 0%, rgba(216, 181, 107, 0.16) 0, rgba(216, 181, 107, 0) 30%),
    linear-gradient(180deg, #131512 0%, #1f211b 100%);
}

body[data-page="storefront"][data-theme="jasmine"] {
  --ink: #162b34;
  --muted: #6a7475;
  --line: #dce7e8;
  --paper: #fffdf6;
  --panel: #edf7f8;
  --green: #214a5b;
  --green-2: #78a6b8;
  --rose: #c7836d;
  --gold: #b8a742;
  background:
    radial-gradient(circle at 12% 8%, rgba(120, 166, 184, 0.18) 0, rgba(120, 166, 184, 0) 31%),
    linear-gradient(180deg, #fffdf6 0%, #edf7f8 100%);
}

body[data-page="storefront"] .topline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 34px;
  color: #f8f3e8;
  background: var(--green);
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

body[data-page="storefront"] .topline span {
  display: grid;
  place-items: center;
  padding: 8px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

body[data-page="storefront"] .topline span:last-child {
  border-right: 0;
}

body[data-page="storefront"] .topbar {
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 92%, #fff 8%);
  border-bottom: 1px solid rgba(31, 45, 35, 0.1);
  box-shadow: 0 10px 34px rgba(37, 43, 36, 0.04);
}

body[data-page="storefront"] .topbar.is-scrolled {
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 94%, #fff 6%);
  border-bottom-color: rgba(31, 45, 35, 0.16);
  box-shadow: 0 16px 40px rgba(31, 45, 35, 0.13);
}

body[data-page="storefront"] main > [id],
body[data-page="storefront"] .collection-band {
  scroll-margin-top: var(--sticky-header-offset);
}

body[data-page="storefront"] .brand {
  gap: 14px;
}

body[data-page="storefront"] .brand-mark.logo-mark {
  width: 50px;
  height: 50px;
  border: 0;
  box-shadow: 0 12px 24px rgba(34, 40, 32, 0.1);
}

body[data-page="storefront"] .brand strong {
  font-family: "Unbounded", "Inter", sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}

body[data-page="storefront"] .brand small,
body[data-page="storefront"] .nav,
body[data-page="storefront"] .icon-link {
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body[data-page="storefront"] .brand small {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 800;
}

body[data-page="storefront"] .nav {
  gap: clamp(14px, 2vw, 28px);
  color: #34332f;
  font-size: 12px;
  font-weight: 850;
}

body[data-page="storefront"] .nav a {
  position: relative;
  padding: 8px 0;
}

body[data-page="storefront"] .nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s ease;
}

body[data-page="storefront"] .nav a:hover::after {
  transform: scaleX(1);
}

body[data-page="storefront"] .icon-link {
  min-height: 42px;
  padding: 0 16px;
  color: var(--green);
  background: #fff;
  border: 1px solid rgba(31, 45, 35, 0.12);
  border-radius: 999px;
  font-size: 12px;
  box-shadow: 0 8px 22px rgba(28, 33, 26, 0.06);
}

body[data-page="storefront"] .hero {
  min-height: min(780px, calc(100vh - 110px));
  align-items: center;
  background: #102119;
}

body[data-page="storefront"] .hero > img:first-child {
  filter: saturate(1.03) contrast(0.98);
  transform: scale(1.02);
}

body[data-page="storefront"].motion-ready .hero > img:first-child {
  animation: hero-drift 16s ease-in-out infinite alternate;
}

body[data-page="storefront"] .hero::after {
  background:
    linear-gradient(90deg, rgba(14, 28, 21, 0.88) 0%, rgba(14, 28, 21, 0.56) 42%, rgba(14, 28, 21, 0.14) 100%),
    linear-gradient(0deg, rgba(14, 28, 21, 0.62) 0%, rgba(14, 28, 21, 0.08) 62%);
}

body[data-page="storefront"] .hero-copy {
  width: min(820px, 100%);
  padding: clamp(42px, 7vw, 86px);
}

body[data-page="storefront"] .hero-seal {
  width: 108px;
  height: 108px;
  margin-bottom: 28px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.22);
}

body[data-page="storefront"] .hero-copy p,
body[data-page="storefront"] .section-head p,
body[data-page="storefront"] .feature-copy p,
body[data-page="storefront"] .contacts p,
body[data-page="storefront"] .about-contact p,
body[data-page="storefront"] .telegram-band p {
  color: var(--rose);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

body[data-page="storefront"] .hero-copy p {
  color: #f4d692;
}

body[data-page="storefront"] .hero-copy h1 {
  max-width: 760px;
  font-family: "Unbounded", "Inter", sans-serif;
  font-size: clamp(52px, 8vw, 112px);
  font-weight: 600;
  letter-spacing: 0;
}

body[data-page="storefront"] .hero-copy > span {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2.1vw, 26px);
  line-height: 1.35;
}

body[data-page="storefront"] .hero-actions {
  gap: 12px;
  margin-top: 34px;
}

body[data-page="storefront"] .button {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

body[data-page="storefront"] .hero-actions .button {
  min-height: 58px;
  padding: 0 30px;
  font-size: 13px;
}

body[data-page="storefront"] .button.primary {
  background: var(--green);
  box-shadow: 0 18px 40px rgba(17, 45, 33, 0.2);
}

body[data-page="storefront"] .button.primary:hover {
  background: #16372b;
  box-shadow: 0 22px 52px rgba(17, 45, 33, 0.26);
}

body[data-page="storefront"] .button.ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(12px);
}

body[data-page="storefront"] .button.subtle {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(31, 45, 35, 0.12);
}

body[data-page="storefront"] .button:hover,
body[data-page="storefront"] .icon-button:hover {
  transform: translateY(-2px);
}

body[data-page="storefront"] .hero-note {
  margin-top: 20px;
  padding: 9px 14px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

body[data-page="storefront"] .shop-layout,
body[data-page="storefront"] .feature-band,
body[data-page="storefront"] .content-band,
body[data-page="storefront"] .reviews,
body[data-page="storefront"] .contacts,
body[data-page="storefront"] .telegram-band {
  width: min(1500px, 100%);
  padding: clamp(44px, 6.5vw, 104px) clamp(18px, 4vw, 64px);
}

body[data-page="storefront"] .feature-band {
  gap: 34px;
}

body[data-page="storefront"] .feature-copy,
body[data-page="storefront"] .section-head {
  border-top: 1px solid rgba(31, 45, 35, 0.14);
  padding-top: 22px;
}

body[data-page="storefront"] .feature-copy h2,
body[data-page="storefront"] .section-head h2,
body[data-page="storefront"] .contacts h2,
body[data-page="storefront"] .telegram-band h2 {
  max-width: 900px;
  font-family: "Unbounded", "Inter", sans-serif;
  font-size: clamp(32px, 4.4vw, 66px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: 0;
}

body[data-page="storefront"] .section-head.compact {
  border-top: 0;
  padding-top: 0;
}

body[data-page="storefront"] .shop-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

body[data-page="storefront"] .catalog-panel {
  min-width: 0;
}

body[data-page="storefront"] .segmented {
  gap: 7px;
  min-height: 48px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

body[data-page="storefront"] .segment {
  min-height: 42px;
  padding: 0 16px;
  color: #34332f;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(31, 45, 35, 0.12);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body[data-page="storefront"] .segment.active {
  color: var(--on-green);
  background: var(--green);
  border-color: var(--green);
}

body[data-page="storefront"] .product-grid,
body[data-page="storefront"] .popular-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px);
}

body[data-page="storefront"] .product-card {
  position: relative;
  grid-template-rows: minmax(260px, 33vw) auto;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body[data-page="storefront"] .product-image {
  border-radius: 0;
  box-shadow: 0 18px 44px rgba(31, 45, 35, 0.1);
}

body[data-page="storefront"] .product-image::after {
  background: linear-gradient(180deg, rgba(16, 29, 22, 0) 60%, rgba(16, 29, 22, 0.24) 100%);
}

body[data-page="storefront"] .product-body {
  min-height: 212px;
  padding: 16px 0 0;
  background: transparent;
}

body[data-page="storefront"] .product-meta {
  gap: 14px;
}

body[data-page="storefront"] .tag {
  min-height: 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border-radius: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-page="storefront"] .product-meta h3 {
  margin: 8px 0 0;
  font-family: "Unbounded", "Inter", sans-serif;
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0;
}

body[data-page="storefront"] .product-body p {
  max-width: 94%;
  color: #68645b;
  font-size: 14px;
}

body[data-page="storefront"] .price-stack {
  align-self: start;
  padding-top: 6px;
}

body[data-page="storefront"] .price {
  color: var(--green);
  font-size: 18px;
}

body[data-page="storefront"] .badge,
body[data-page="storefront"] .discount-badge {
  top: 14px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body[data-page="storefront"] .product-body .button {
  width: fit-content;
  min-height: 40px;
  padding: 0 17px;
  background: transparent;
  color: var(--green);
  border: 1px solid rgba(31, 73, 57, 0.32);
  box-shadow: none;
}

body[data-page="storefront"] .product-body .button[data-add],
body[data-page="storefront"] .quick-view-copy .button.primary {
  color: var(--on-green);
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 14px 32px rgba(17, 45, 33, 0.18);
}

body[data-page="storefront"] .product-body .button[data-add]:hover,
body[data-page="storefront"] .quick-view-copy .button.primary:hover {
  color: var(--on-green);
  background: #16372b;
  border-color: #16372b;
  box-shadow: 0 18px 40px rgba(17, 45, 33, 0.24);
}

body[data-page="storefront"] .product-body .button:hover {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

body[data-page="storefront"] .collection-band {
  padding: clamp(54px, 7vw, 104px) clamp(18px, 4vw, 64px);
  border-top: 1px solid rgba(31, 45, 35, 0.12);
}

body[data-page="storefront"] .cart-panel {
  top: 96px;
  max-height: calc(100vh - 116px);
  padding: 22px;
  background: rgba(255, 253, 247, 0.88);
  border: 1px solid rgba(31, 45, 35, 0.14);
  border-radius: 0;
  box-shadow: 0 28px 80px rgba(31, 45, 35, 0.12);
  backdrop-filter: blur(18px);
}

body[data-page="storefront"]:not(.cart-route) .cart-page-head,
body[data-page="storefront"]:not(.cart-route) .cart-panel {
  display: none;
}

body[data-page="storefront"].cart-route main > section:not(.shop-layout),
body[data-page="storefront"].cart-route #collectionSections,
body[data-page="storefront"].cart-route .catalog-panel,
body[data-page="storefront"].cart-route .floating-cart {
  display: none;
}

body[data-page="storefront"].cart-route .shop-layout {
  width: min(880px, 100%);
  min-height: calc(100vh - 180px);
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  padding-top: clamp(32px, 6vw, 84px);
}

body[data-page="storefront"].cart-route .cart-page-head {
  display: grid;
  gap: 14px;
  margin-bottom: 8px;
  border-top: 1px solid rgba(31, 45, 35, 0.14);
  padding-top: 22px;
}

body[data-page="storefront"].cart-route .cart-page-head h2 {
  margin: 0;
  font-size: clamp(34px, 6vw, 62px);
}

body[data-page="storefront"].cart-route .cart-page-head p {
  margin: 0;
  color: var(--rose);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

body[data-page="storefront"].cart-route .cart-page-head .button {
  width: fit-content;
}

body[data-page="storefront"].cart-route .cart-panel {
  position: static;
  display: block;
  max-height: none;
}

.floating-cart {
  position: fixed;
  right: clamp(16px, 3vw, 36px);
  bottom: clamp(16px, 3vw, 36px);
  z-index: 40;
  min-width: 168px;
  min-height: 58px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  align-items: center;
  padding: 10px 14px 10px 18px;
  color: #fff;
  background: rgba(30, 73, 57, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  box-shadow: 0 22px 54px rgba(18, 38, 29, 0.26);
  backdrop-filter: blur(14px);
  transform: translateZ(0);
}

.floating-cart-icon {
  grid-column: 1;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.floating-cart strong {
  grid-column: 2;
  grid-row: 1 / 3;
  min-width: 34px;
  min-height: 34px;
  display: grid;
  place-items: center;
  color: var(--green);
  background: #fff;
  border-radius: 50%;
  font-size: 13px;
}

.floating-cart small {
  grid-column: 1;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 700;
}

.floating-cart.has-items {
  animation: cart-pulse 0.36s ease;
}

@keyframes cart-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.035); }
  100% { transform: scale(1); }
}

body[data-page="storefront"] .cart-panel .section-head h2 {
  font-size: 34px;
}

body[data-page="storefront"] .cart-panel .section-head.compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

body[data-page="storefront"] .cart-panel .section-head.compact p,
body[data-page="storefront"] .cart-panel .section-head.compact h2 {
  text-align: left;
}

body[data-page="storefront"] .empty,
body[data-page="storefront"] .cart-item,
body[data-page="storefront"] .delivery-details,
body[data-page="storefront"] .recipient-fields {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(31, 45, 35, 0.12);
  border-radius: 0;
}

body[data-page="storefront"] .cart-item {
  padding: 14px 0;
  background: transparent;
  border-width: 0 0 1px;
}

body[data-page="storefront"] .qty button {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  font-size: 18px;
  line-height: 1;
}

body[data-page="storefront"] .checkout {
  gap: 13px;
}

body[data-page="storefront"] label {
  gap: 7px;
  color: #57534b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-page="storefront"] input,
body[data-page="storefront"] select,
body[data-page="storefront"] textarea {
  min-height: 48px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(31, 45, 35, 0.18);
  border-radius: 0;
  font-size: 15px;
}

body[data-page="storefront"] textarea {
  min-height: 94px;
}

body[data-page="storefront"] input:invalid,
body[data-page="storefront"] select:invalid,
body[data-page="storefront"] textarea:invalid {
  border-color: rgba(154, 57, 57, 0.72);
  box-shadow: 0 0 0 3px rgba(154, 57, 57, 0.1);
}

body[data-page="storefront"] .consent-field {
  padding: 12px;
  border: 1px solid transparent;
}

body[data-page="storefront"] .checkout.needs-consent .consent-field {
  background: rgba(255, 248, 233, 0.92);
  border-color: rgba(155, 90, 31, 0.28);
}

body[data-page="storefront"] .status.error {
  display: block;
  padding: 12px 14px;
  color: #7b2929;
  background: #fff0f0;
  border: 1px solid rgba(154, 57, 57, 0.24);
}

body[data-page="storefront"] .status.success {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  color: var(--green);
  background: #eff7f1;
  border: 1px solid rgba(31, 73, 57, 0.18);
}

body[data-page="storefront"] input:focus,
body[data-page="storefront"] select:focus,
body[data-page="storefront"] textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(31, 73, 57, 0.1);
}

body[data-page="storefront"] .calm-switch {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-height: 34px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
}

body[data-page="storefront"] .consent-field {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: #5f5a52;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
}

body[data-page="storefront"] .calm-switch input,
body[data-page="storefront"] .consent-field input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--green);
}

body[data-page="storefront"] .calm-switch span,
body[data-page="storefront"] .consent-field span {
  min-width: 0;
  display: block;
  line-height: 1.35;
}

body[data-page="storefront"] .payment-note,
body[data-page="storefront"] .status {
  color: #596157;
  font-size: 13px;
  line-height: 1.4;
}

body[data-page="storefront"] .content-band,
body[data-page="storefront"] .reviews,
body[data-page="storefront"] .about-band,
body[data-page="storefront"] .telegram-band,
body[data-page="storefront"] .contacts {
  border-top: 1px solid rgba(31, 45, 35, 0.12);
}

body[data-page="storefront"] .about-band {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: clamp(44px, 6.5vw, 104px) clamp(18px, 4vw, 64px);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(31, 45, 35, 0.12);
  border-right: 0;
}

.about-grid article {
  display: grid;
  gap: 8px;
  min-height: 150px;
  align-content: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.46);
  border-right: 1px solid rgba(31, 45, 35, 0.12);
}

.about-grid strong {
  color: var(--green);
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 600;
}

.about-grid span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

body[data-page="storefront"] .about-contact {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
  gap: 0;
  margin-top: 28px;
  border: 1px solid rgba(31, 45, 35, 0.12);
  border-right: 0;
}

body[data-page="storefront"] .about-contact > div,
body[data-page="storefront"] .about-contact .map-card {
  min-height: 290px;
  padding: clamp(24px, 3vw, 36px);
  border: 0;
  border-right: 1px solid rgba(31, 45, 35, 0.12);
  border-radius: 0;
  box-shadow: none;
}

body[data-page="storefront"] .about-contact > div {
  align-content: center;
  background: rgba(255, 255, 255, 0.46);
}

body[data-page="storefront"] .about-contact h3 {
  margin: 0;
  color: var(--ink);
  font-family: "Unbounded", "Inter", sans-serif;
  font-size: clamp(26px, 3.4vw, 46px);
  font-weight: 600;
  line-height: 1.05;
}

body[data-page="storefront"] .about-contact > div > span {
  max-width: 560px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.about-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: var(--green);
  background: #fff;
  border: 1px solid rgba(31, 45, 35, 0.14);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

body[data-page="storefront"] .steps-grid,
body[data-page="storefront"] .review-grid {
  gap: 0;
  border: 1px solid rgba(31, 45, 35, 0.12);
  border-right: 0;
}

body[data-page="storefront"] .steps-grid article,
body[data-page="storefront"] .review-grid article {
  border: 0;
  border-right: 1px solid rgba(31, 45, 35, 0.12);
  border-radius: 0;
  box-shadow: none;
}

body[data-page="storefront"] .steps-grid h3 {
  font-family: "Unbounded", "Inter", sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
}

body[data-page="storefront"] .telegram-band {
  background:
    linear-gradient(90deg, rgba(31, 73, 57, 0.94), rgba(31, 73, 57, 0.82)),
    url("assets/tree-installation-motif.svg") right center/420px auto no-repeat;
  color: #fff;
}

body[data-page="storefront"] .telegram-band p,
body[data-page="storefront"] .telegram-band span {
  color: rgba(255, 255, 255, 0.72);
}

body[data-page="storefront"] .telegram-link {
  min-height: 58px;
  background: #fff;
  color: var(--green);
  border-radius: 999px;
  box-shadow: none;
}

body[data-page="storefront"] .telegram-link span {
  color: rgba(31, 73, 57, 0.64);
}

body[data-page="storefront"] .contacts > div,
body[data-page="storefront"] .map-card {
  min-height: 310px;
  border-radius: 0;
  box-shadow: none;
}

body[data-page="storefront"] .footer {
  background: var(--green);
}

body[data-page="storefront"] .footer a[href^="tel"] {
  white-space: nowrap;
}

.footer-link {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: inherit;
  font-weight: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 80;
  width: min(720px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  color: var(--ink);
  background: rgba(255, 253, 247, 0.96);
  border: 1px solid rgba(31, 45, 35, 0.16);
  box-shadow: 0 24px 70px rgba(31, 45, 35, 0.18);
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner strong {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
  font-size: 14px;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

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

.cookie-actions a {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-transform: uppercase;
}

@keyframes hero-drift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.07) translate3d(-10px, -8px, 0);
  }
}

@media (max-width: 1280px) {
  body[data-page="storefront"] .product-grid,
  body[data-page="storefront"] .popular-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1020px) {
  body[data-page="storefront"] .shop-layout {
    grid-template-columns: 1fr;
  }

  body[data-page="storefront"] .cart-panel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 820px) {
  body[data-page="storefront"] .topline {
    grid-template-columns: 1fr;
    text-align: left;
  }

  body[data-page="storefront"] .topline span {
    justify-content: start;
    min-height: 30px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    padding-inline: 18px;
  }

  body[data-page="storefront"] .topbar {
    min-height: 84px;
  }

  body[data-page="storefront"] .hero {
    min-height: 680px;
  }

  body[data-page="storefront"] .hero-copy {
    padding: 36px 20px 46px;
  }

  body[data-page="storefront"] .hero-copy h1 {
    font-size: clamp(58px, 17vw, 86px);
  }

  body[data-page="storefront"] .hero-copy > span {
    font-size: 18px;
  }

  body[data-page="storefront"] .hero-seal {
    width: 88px;
    height: 88px;
  }

  body[data-page="storefront"] .product-grid,
  body[data-page="storefront"] .popular-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="storefront"] .product-card {
    grid-template-rows: 340px auto;
  }

  body[data-page="storefront"] .feature-copy h2,
  body[data-page="storefront"] .section-head h2,
  body[data-page="storefront"] .contacts h2,
  body[data-page="storefront"] .about-contact h3,
  body[data-page="storefront"] .telegram-band h2 {
    font-size: clamp(36px, 12vw, 58px);
  }

  body[data-page="storefront"] .steps-grid,
  body[data-page="storefront"] .review-grid,
  body[data-page="storefront"] .about-grid,
  body[data-page="storefront"] .about-contact {
    grid-template-columns: 1fr;
    border-bottom: 0;
  }

  body[data-page="storefront"] .steps-grid article,
  body[data-page="storefront"] .review-grid article,
  body[data-page="storefront"] .about-grid article,
  body[data-page="storefront"] .about-contact > div,
  body[data-page="storefront"] .about-contact .map-card {
    border-right: 0;
    border-bottom: 1px solid rgba(31, 45, 35, 0.12);
  }

  body[data-page="storefront"] .recipient-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  html,
  body[data-page="storefront"] {
    width: 100%;
    overflow-x: hidden;
  }

  body[data-page="storefront"] {
    --sticky-header-offset: 118px;
  }

  body[data-page="storefront"] .topline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
    font-size: 7.5px;
    line-height: 1.25;
    letter-spacing: 0.03em;
    text-align: center;
  }

  body[data-page="storefront"] .topline span {
    justify-content: center;
    min-height: 30px;
    padding: 6px 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 0;
  }

  body[data-page="storefront"] .topbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 0;
    padding: 10px 14px;
  }

  body[data-page="storefront"] .brand {
    width: 100%;
    min-width: 0;
    gap: 10px;
  }

  body[data-page="storefront"] .brand-mark.logo-mark {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }

  body[data-page="storefront"] .brand strong {
    font-size: clamp(23px, 7vw, 30px);
    line-height: 1.05;
  }

  body[data-page="storefront"] .brand small {
    font-size: 9px;
    line-height: 1.2;
  }

  body[data-page="storefront"] .icon-link {
    display: none;
  }

  body[data-page="storefront"] .nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
    font-size: 9px;
  }

  body[data-page="storefront"] .nav a {
    min-width: 0;
    min-height: 32px;
    display: grid;
    place-items: center;
    padding: 0 4px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(31, 45, 35, 0.1);
    border-radius: 999px;
    text-align: center;
  }

  body[data-page="storefront"] .nav a::after {
    display: none;
  }

  body[data-page="storefront"] main > [id],
  body[data-page="storefront"] .collection-band {
    scroll-margin-top: var(--sticky-header-offset);
  }

  body[data-page="storefront"] .hero {
    min-height: min(590px, calc(100svh - 120px));
    align-items: end;
  }

  body[data-page="storefront"] .hero > img:first-child,
  body[data-page="storefront"].motion-ready .hero > img:first-child {
    animation: none;
    transform: none;
  }

  body[data-page="storefront"] .hero .tree-installation-motif {
    display: none;
  }

  body[data-page="storefront"] .hero-copy {
    width: 100%;
    padding: 28px 18px 34px;
  }

  body[data-page="storefront"] .hero-copy p {
    font-size: 10px;
    line-height: 1.3;
  }

  body[data-page="storefront"] .hero-copy h1 {
    max-width: 360px;
    font-size: clamp(48px, 18vw, 72px);
    line-height: 0.96;
  }

  body[data-page="storefront"] .hero-copy > span {
    max-width: 350px;
    font-size: 16px;
    line-height: 1.38;
  }

  body[data-page="storefront"] .hero-actions {
    display: grid;
    gap: 9px;
    margin-top: 22px;
  }

  body[data-page="storefront"] .hero-actions .button {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    font-size: 11px;
  }

  body[data-page="storefront"] .hero-note {
    width: fit-content;
    max-width: 100%;
    margin-top: 12px;
    border-radius: 14px;
    font-size: 11px;
    line-height: 1.35;
  }

  body[data-page="storefront"] .shop-layout,
  body[data-page="storefront"] .feature-band,
  body[data-page="storefront"] .content-band,
  body[data-page="storefront"] .reviews,
  body[data-page="storefront"] .telegram-band,
  body[data-page="storefront"] .about-band,
  body[data-page="storefront"] .collection-band {
    width: 100%;
    padding: 40px 16px;
  }

  body[data-page="storefront"] .feature-band {
    gap: 22px;
  }

  body[data-page="storefront"] .feature-copy,
  body[data-page="storefront"] .section-head {
    padding-top: 16px;
  }

  body[data-page="storefront"] .feature-copy h2,
  body[data-page="storefront"] .section-head h2,
  body[data-page="storefront"] .contacts h2,
  body[data-page="storefront"] .about-contact h3,
  body[data-page="storefront"] .telegram-band h2 {
    max-width: 100%;
    font-size: clamp(30px, 10.5vw, 42px);
    line-height: 1.04;
    overflow-wrap: break-word;
  }

  body[data-page="storefront"] .product-card {
    grid-template-rows: auto auto;
  }

  body[data-page="storefront"] .product-image {
    aspect-ratio: 1 / 1.08;
    min-height: 0;
  }

  body[data-page="storefront"] .product-meta {
    align-items: start;
    gap: 10px;
  }

  body[data-page="storefront"] .product-meta h3 {
    font-size: 19px;
  }

  body[data-page="storefront"] .price {
    font-size: 16px;
  }

  body[data-page="storefront"] .product-body {
    min-height: 0;
    gap: 10px;
  }

  body[data-page="storefront"] .product-body p {
    max-width: 100%;
    font-size: 13px;
  }

  body[data-page="storefront"] .product-body .button {
    width: 100%;
  }

  body[data-page="storefront"] .segmented {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  body[data-page="storefront"] .segmented::-webkit-scrollbar {
    display: none;
  }

  body[data-page="storefront"] .segment {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 13px;
    font-size: 10px;
  }

  body[data-page="storefront"] .steps-grid article,
  body[data-page="storefront"] .review-grid article,
  body[data-page="storefront"] .about-grid article,
  body[data-page="storefront"] .about-contact > div,
  body[data-page="storefront"] .about-contact .map-card {
    min-height: 0;
    padding: 22px;
  }

  body[data-page="storefront"] .about-grid strong {
    font-size: 28px;
  }

  body[data-page="storefront"] .about-contact {
    margin-top: 18px;
  }

  body[data-page="storefront"] .about-contact h3 {
    font-size: clamp(34px, 12vw, 48px);
    line-height: 0.98;
  }

  body[data-page="storefront"] .about-contact > div > span {
    font-size: 13px;
  }

  body[data-page="storefront"] .about-links {
    display: grid;
    grid-template-columns: 1fr;
  }

  body[data-page="storefront"] .about-links a {
    width: 100%;
    white-space: nowrap;
  }

  body[data-page="storefront"] .telegram-band {
    grid-template-columns: 1fr;
    gap: 18px;
    background:
      linear-gradient(180deg, rgba(31, 73, 57, 0.94), rgba(31, 73, 57, 0.86)),
      url("assets/tree-installation-motif.svg") right bottom/260px auto no-repeat;
  }

  body[data-page="storefront"] .telegram-link,
  body[data-page="storefront"] .review-head .button {
    width: 100%;
  }

  body[data-page="storefront"] .footer {
    align-items: flex-start;
    gap: 8px;
    padding-bottom: 94px;
    font-size: 12px;
  }

  .floating-cart {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    min-width: 0;
    min-height: 56px;
    padding: 9px 10px 9px 16px;
  }

  .floating-cart strong {
    width: 36px;
    height: 36px;
  }

  .cookie-banner {
    bottom: 78px;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
  }

  .cookie-banner p {
    font-size: 11px;
  }

  .cookie-actions .button {
    width: 100%;
    min-height: 42px;
  }
}

@media (max-width: 420px) {
  body[data-page="storefront"] .topline {
    font-size: 8.5px;
  }

  body[data-page="storefront"] .brand strong {
    font-size: 25px;
  }

  body[data-page="storefront"] .nav {
    font-size: 8.5px;
    gap: 5px;
  }

  body[data-page="storefront"] .hero-copy h1 {
    font-size: clamp(46px, 17vw, 64px);
  }

  body[data-page="storefront"] .feature-copy h2,
  body[data-page="storefront"] .section-head h2,
  body[data-page="storefront"] .contacts h2,
  body[data-page="storefront"] .about-contact h3,
  body[data-page="storefront"] .telegram-band h2 {
    font-size: clamp(29px, 10vw, 38px);
  }
}

body[data-page="storefront"] .topline {
  display: none !important;
}

/* Admin polish: same brand language, quieter operational UI. */

body[data-page="admin"] {
  --ink: #191816;
  --muted: #6f716a;
  --line: #e1ddd2;
  --paper: #f7f2e9;
  --panel: #f1ece2;
  --green: #1e4939;
  --green-2: #376b52;
  --rose: #b75b73;
  background: #f7f2e9;
  font-family: "Unbounded", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body[data-page="admin"] .admin-main {
  background:
    radial-gradient(circle at 82% 0%, rgba(255, 255, 255, 0.9) 0, rgba(255, 255, 255, 0) 22%),
    #f7f2e9;
}

body[data-page="admin"] .admin-header {
  padding: 6px 0 22px;
}

body[data-page="admin"] .admin-header h1,
body[data-page="admin"] .login-card h1,
body[data-page="admin"] .modal-card h2,
body[data-page="admin"] .order-detail-head h2,
  body[data-page="admin"] .builder-section-head h2,
  body[data-page="admin"] .settings-heading h2,
  body[data-page="admin"] .florist-intro h2 {
  font-family: "Unbounded", "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: 0;
}

body[data-page="admin"] .button {
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

body[data-page="admin"] .button.primary {
  background: var(--green);
  box-shadow: 0 14px 32px rgba(31, 73, 57, 0.16);
}

body[data-page="admin"] .button.subtle,
body[data-page="admin"] .icon-button,
body[data-page="admin"] .builder-section-actions button {
  background: #fffdf8;
  border-color: rgba(31, 45, 35, 0.14);
  border-radius: 999px;
}

body[data-page="admin"] input,
body[data-page="admin"] select,
body[data-page="admin"] textarea {
  border-color: rgba(31, 45, 35, 0.16);
  border-radius: 10px;
}

body[data-page="admin"] .work-summary > div,
body[data-page="admin"] .order-workspace,
body[data-page="admin"] .builder-toolbar,
body[data-page="admin"] .builder-canvas,
body[data-page="admin"] .settings-layout section,
body[data-page="admin"] .client-table article,
body[data-page="admin"] .florist-task,
body[data-page="admin"] .modal-card {
  border-color: rgba(31, 45, 35, 0.12);
  box-shadow: 0 18px 48px rgba(31, 45, 35, 0.06);
}

body[data-page="admin"] .queue-tabs,
body[data-page="admin"] .florist-daybar {
  padding: 5px;
  background: #ebe4d8;
  border-radius: 999px;
}

body[data-page="admin"] .queue-tabs button,
body[data-page="admin"] .florist-daybar button {
  border-radius: 999px;
}

body[data-page="admin"] .order-list-item {
  border-bottom-color: rgba(31, 45, 35, 0.09);
}

body[data-page="admin"] .order-list-item.selected {
  background: #f2ede3;
}

body[data-page="admin"] .builder-hero,
body[data-page="admin"] .builder-product img {
  border-radius: 0;
}

body[data-page="admin"] .builder-product {
  background: #fffdf8;
}

body[data-page="admin"] .reminder-form {
  align-items: stretch;
}

.theme-palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.theme-palette {
  position: relative;
  display: grid;
  gap: 9px;
  min-height: 136px;
  padding: 16px;
  background: #fffdf8;
  border: 1px solid rgba(31, 45, 35, 0.12);
  border-radius: 12px;
  cursor: pointer;
}

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

.theme-palette.active,
.theme-palette:has(input:checked) {
  border-color: var(--green);
  box-shadow: 0 16px 36px rgba(31, 73, 57, 0.12);
}

.theme-swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 36px;
  overflow: hidden;
  border: 1px solid rgba(31, 45, 35, 0.1);
  border-radius: 999px;
}

.theme-swatches i {
  display: block;
}

.theme-palette strong {
  color: var(--ink);
  font-size: 15px;
}

.theme-palette small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

/* Launch fixes */

.field-invalid input,
.field-invalid select,
.field-invalid textarea {
  border-color: rgba(154, 57, 57, 0.78) !important;
  box-shadow: 0 0 0 3px rgba(154, 57, 57, 0.1) !important;
}

.field-error,
.field-hint {
  color: var(--danger);
  font-size: 11px;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
}

.field-hint {
  color: var(--warn);
}

.product-actions {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 8px;
}

body[data-page="storefront"] .product-body .button.subtle {
  background: #fff;
  color: var(--green);
}

.product-quick-view {
  width: min(940px, calc(100vw - 28px));
}

.quick-view-card {
  position: relative;
}

.quick-view-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(31, 45, 35, 0.12);
  border-radius: 50%;
  box-shadow: 0 14px 34px rgba(31, 45, 35, 0.14);
  font-size: 0;
}

.quick-view-close::before,
.quick-view-close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  content: "";
  background: var(--green);
  border-radius: 999px;
  transform-origin: center;
}

.quick-view-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.quick-view-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.quick-view-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 22px;
}

.quick-view-image {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: var(--panel);
}

.quick-view-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quick-view-copy {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 12px 8px;
}

.quick-view-copy > p:first-child,
.quick-view-copy section span {
  margin: 0;
  color: var(--rose);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-view-copy h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

.quick-view-price {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.quick-view-price strong {
  color: var(--green);
  font-size: 24px;
}

.quick-view-price del {
  color: var(--muted);
}

.quick-view-copy p,
.quick-view-copy small {
  margin: 0;
  color: var(--muted);
}

.order-success {
  display: grid;
  gap: 10px;
}

.order-success > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.required-actions {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: #fffdf8;
  border: 1px solid rgba(31, 45, 35, 0.12);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(31, 45, 35, 0.06);
}

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

.required-actions-head h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.required-actions-head > span {
  min-width: 34px;
  min-height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  font-weight: 900;
}

.required-actions > div:last-child {
  display: grid;
  gap: 7px;
}

.required-action {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  color: inherit;
  background: #f7f2e9;
  border: 1px solid rgba(31, 45, 35, 0.1);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
}

.required-action span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.required-action small {
  color: var(--muted);
}

.required-action em {
  color: var(--green);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.notification-meta {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.secondary-actions {
  position: relative;
}

.secondary-actions summary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  color: var(--green);
  background: #fffdf8;
  border: 1px solid rgba(31, 45, 35, 0.14);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.secondary-actions summary::-webkit-details-marker {
  display: none;
}

.secondary-actions[open] {
  display: grid;
  gap: 8px;
}

.danger-note {
  background: #fff0f0;
  border-left-color: var(--danger);
}

.telegram-test-row,
.confirm-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.confirm-card {
  display: grid;
  gap: 14px;
}

.confirm-card p {
  margin: 0;
  color: var(--muted);
}

.admin-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  max-width: min(420px, calc(100vw - 36px));
  padding: 12px 14px;
  color: var(--green);
  background: #f1f7f1;
  border: 1px solid rgba(31, 73, 57, 0.18);
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 800;
}

.admin-toast.error {
  color: var(--danger);
  background: #fff0f0;
  border-color: rgba(154, 57, 57, 0.22);
}

.admin-toast[hidden] {
  display: none;
}

body[data-page="courier"] {
  min-height: 100vh;
  color: #17241f;
  background:
    radial-gradient(circle at 20% 0%, rgba(82, 131, 103, 0.18), transparent 28%),
    linear-gradient(180deg, #f7f5ec 0%, #edf1e7 100%);
}

.courier-app {
  min-height: 100vh;
}

.courier-login,
.courier-workspace {
  width: min(560px, 100%);
  margin: 0 auto;
}

.courier-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.courier-login-card {
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
  padding: 24px;
  background: rgba(255, 253, 247, 0.92);
  border: 1px solid rgba(31, 45, 35, 0.12);
  border-radius: 22px;
  box-shadow: 0 22px 70px rgba(31, 45, 35, 0.12);
}

.courier-login-card h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1;
}

.courier-workspace {
  padding: max(14px, env(safe-area-inset-top)) 14px max(22px, env(safe-area-inset-bottom));
}

.courier-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 -14px;
  padding: 12px 14px;
  background: rgba(247, 245, 236, 0.94);
  border-bottom: 1px solid rgba(31, 45, 35, 0.1);
  backdrop-filter: blur(14px);
}

.courier-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.courier-brand strong,
.courier-hero h1,
.courier-card h2 {
  font-family: "Unbounded", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
}

.courier-brand strong {
  display: block;
  font-size: 20px;
}

.courier-brand small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.courier-hero {
  display: grid;
  gap: 14px;
  padding: 24px 0 14px;
}

.courier-hero h1 {
  margin: 0;
  font-size: clamp(42px, 13vw, 68px);
  line-height: 0.95;
}

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

.courier-stats div {
  padding: 13px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(31, 45, 35, 0.1);
  border-radius: 16px;
}

.courier-stats strong,
.courier-stats span {
  display: block;
}

.courier-stats strong {
  font-size: 26px;
}

.courier-stats span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.courier-tabs {
  position: sticky;
  top: 66px;
  z-index: 19;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0 -14px 12px;
  padding: 8px 14px;
  background: rgba(247, 245, 236, 0.92);
  backdrop-filter: blur(14px);
}

.courier-tabs button {
  min-height: 42px;
  color: #17241f;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(31, 45, 35, 0.1);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.courier-tabs button.active {
  color: #fff;
  background: #21483a;
}

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

.courier-card {
  display: grid;
  gap: 13px;
  padding: 16px;
  background: #fffdf7;
  border: 1px solid rgba(31, 45, 35, 0.12);
  border-left: 5px solid #21483a;
  border-radius: 20px;
  box-shadow: 0 16px 42px rgba(31, 45, 35, 0.1);
}

.courier-card.status-picked {
  border-left-color: var(--rose);
}

.courier-card.status-delivered {
  border-left-color: #65976d;
  opacity: 0.82;
}

.courier-card-head,
.courier-contact,
.courier-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.courier-card-head span {
  padding: 7px 10px;
  color: #fff;
  background: #21483a;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.courier-card-head strong {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.courier-card h2 {
  margin: 0;
  font-size: clamp(23px, 7vw, 34px);
  line-height: 1.08;
}

.courier-card p,
.courier-card small {
  margin: 0;
  color: var(--muted);
}

.courier-contact {
  align-items: stretch;
}

.courier-contact span,
.courier-contact a {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 0 12px;
  background: #f3eee4;
  border-radius: 999px;
  font-weight: 900;
}

.courier-contact a {
  color: #21483a;
}

.courier-actions {
  align-items: stretch;
}

.courier-actions .button,
.courier-actions > strong {
  flex: 1;
  min-height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  text-align: center;
}

.courier-actions > strong {
  color: #21483a;
  background: #edf6ed;
}

.courier-assignment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: #f7f2e6;
  border: 1px solid rgba(31, 45, 35, 0.12);
  border-radius: 16px;
}

.courier-assignment.assigned {
  background: #eef7ef;
  border-color: rgba(31, 73, 57, 0.18);
}

.courier-report {
  display: grid;
  gap: 12px;
}

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

.courier-create-form,
.courier-account-card {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
  padding: 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.courier-create-form label,
.courier-account-card label {
  margin: 0;
}

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

.courier-account-card {
  grid-template-columns: minmax(220px, 1.2fr) minmax(150px, 0.8fr) minmax(170px, 0.8fr) auto;
}

.courier-account-card.is-disabled {
  background: #faf8f3;
  color: var(--muted);
}

.courier-account-card strong,
.courier-account-card small {
  display: block;
}

.courier-account-card small {
  color: var(--muted);
}

.courier-account-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.courier-report-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.courier-report-card strong,
.courier-report-card small {
  display: block;
}

.courier-report-card small {
  color: var(--muted);
}

.courier-report-card span,
.courier-report-card em {
  padding: 7px 9px;
  background: #f3eee4;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

@media (max-width: 620px) {
  .courier-card-head,
  .courier-contact,
  .courier-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .courier-card-head strong {
    text-align: left;
  }

  .courier-report-card {
    grid-template-columns: 1fr;
  }

  .courier-create-form,
  .courier-account-card {
    grid-template-columns: 1fr;
  }

  .courier-account-actions {
    justify-content: stretch;
  }

  .courier-account-actions .button {
    width: 100%;
  }

  .courier-assignment {
    grid-template-columns: 1fr;
  }
}

.not-found-page {
  min-height: 100vh;
  background:
    linear-gradient(110deg, rgba(31, 73, 57, 0.86), rgba(31, 73, 57, 0.38)),
    url("/assets/elle-fleurs-hero.jpg") center/cover;
}

.not-found {
  min-height: calc(100vh - 72px);
  display: grid;
  align-content: center;
  gap: 42px;
  width: min(860px, calc(100% - 36px));
  margin: 0 auto;
  color: #fff;
}

.not-found-topbar {
  background: rgba(255, 253, 247, 0.96);
  box-shadow: 0 12px 34px rgba(19, 23, 19, 0.1);
}

.not-found .brand small,
.not-found p {
  color: rgba(255, 255, 255, 0.76);
}

.not-found h1 {
  margin: 4px 0 12px;
  font-size: clamp(42px, 8vw, 92px);
  line-height: 0.95;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 720px) {
  .not-found-topbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 14px;
  }

  .not-found-topbar .brand {
    min-width: 0;
  }

  .not-found-topbar .brand strong {
    font-size: 22px;
    line-height: 1.05;
  }

  .not-found-topbar .brand small {
    font-size: 9px;
  }

  .not-found-topbar .brand-mark.logo-mark {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }

  .not-found-topbar .nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    font-size: 9px;
  }

  .not-found-topbar .nav a {
    display: grid;
    place-items: center;
    min-height: 32px;
    padding: 0 4px;
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid rgba(31, 45, 35, 0.1);
    border-radius: 999px;
    text-align: center;
  }

  .not-found-topbar .icon-link {
    display: none;
  }
}

.builder-product.no-hover {
  pointer-events: none;
}

@media (max-width: 900px) {
  body[data-page="admin"] {
    overflow-x: hidden;
  }

  body[data-page="admin"] .admin-workspace,
  body[data-page="admin"] .admin-main,
  body[data-page="admin"] .admin-view,
  body[data-page="admin"] .order-workspace {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body[data-page="admin"] .admin-sidebar {
    max-width: 100vw;
    overflow: hidden;
  }

  body[data-page="admin"] .admin-nav {
    min-width: 0;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  body[data-page="admin"] .admin-nav::-webkit-scrollbar,
  body[data-page="admin"] .queue-tabs::-webkit-scrollbar,
  body[data-page="admin"] .florist-daybar::-webkit-scrollbar {
    display: none;
  }

  body[data-page="admin"] .admin-nav button {
    flex: 0 0 auto;
    min-width: 112px;
    padding-inline: 10px;
  }

  .queue-tabs,
  .florist-daybar {
    max-width: 100%;
    border-radius: 14px;
  }

  .queue-tabs button,
  .florist-daybar button {
    flex: 0 0 auto;
  }

  .order-list-item {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .order-list-side {
    grid-column: 2;
    justify-items: start;
  }

  .product-stats-table > div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .product-actions {
    grid-template-columns: 1fr;
  }

  .quick-view-layout {
    grid-template-columns: 1fr;
  }

  .quick-view-image {
    min-height: 280px;
  }

  .required-action {
    align-items: start;
    flex-direction: column;
  }

  .required-action em {
    white-space: normal;
  }

  .telegram-test-row,
  .confirm-actions,
  .order-success > div,
  .not-found-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  body[data-page="admin"] .admin-main {
    padding-inline: 12px;
  }

  .work-summary > div {
    display: grid;
    gap: 2px;
  }
}
