@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400&family=Playfair+Display:wght@400;500&family=Work+Sans:wght@400;500;600&display=swap");

:root {
  --font-display: "Playfair Display", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-body: "Work Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --accent: #de4c00;
  --accent-strong: #b73e00;
  --radius: 8px;
  --radius-pill: 9999px;
  color-scheme: light;
}

body,
body[data-theme="light"] {
  --bg: #f7f1e8;
  --bg-soft: #fffaf2;
  --surface: #fffefb;
  --surface-strong: #eadfcf;
  --text: #1f160e;
  --muted: rgba(31, 22, 14, 0.68);
  --border: rgba(39, 21, 3, 0.16);
  --header: rgba(255, 254, 251, 0.82);
  --shadow: rgba(39, 21, 3, 0.16);
  --hero-overlay: linear-gradient(90deg, rgba(31, 22, 14, 0.64), rgba(31, 22, 14, 0.1));
  --hero-fade: linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(31, 22, 14, 0.14) 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.62;
}

body.modal-open {
  overflow: hidden;
}

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

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

button {
  cursor: pointer;
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  width: min(1120px, calc(100% - 32px));
  padding: 8px 10px 8px 18px;
  transform: translateX(-50%);
  border: 1px solid var(--border);
  border-radius: 30px;
  background: var(--header);
  box-shadow: 0 16px 40px var(--shadow);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
}

.logo-slot {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
}

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

.main-nav,
.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav {
  justify-content: center;
}

.main-nav a {
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
}

.main-nav a:hover {
  background: color-mix(in srgb, var(--text) 8%, transparent);
}

.button,
.theme-toggle,
.icon-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  white-space: nowrap;
}

.button {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button-primary {
  background: var(--accent);
  color: #fffefb;
}

.button-primary:hover {
  background: var(--accent-strong);
}

.button-secondary,
.button-ghost {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  color: var(--text);
}

.button-danger {
  border: 1px solid rgba(165, 40, 10, 0.3);
  background: rgba(165, 40, 10, 0.08);
  color: #8f2409;
}

.theme-toggle,
.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--text);
  font-size: 20px;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  padding: 132px 24px 76px;
  overflow: hidden;
  background: var(--bg);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero::before {
  background: var(--hero-overlay);
}

.hero::after {
  background: var(--hero-fade);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1040px, 100%);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 24px;
  color: var(--text);
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.04;
}

.hero h1 {
  color: #fffefb;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.12;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.25;
}

.hero-copy {
  max-width: 700px;
  margin-bottom: 32px;
  color: rgba(255, 254, 251, 0.86);
  font-size: 18px;
}

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

.hero-hint {
  position: absolute;
  right: 24px;
  bottom: 22px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 254, 251, 0.86);
  font-family: var(--font-mono);
  font-size: 12px;
}

.section {
  padding: 80px 24px;
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.section-intro {
  padding-top: 24px;
}

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

.intro-grid article,
.filters,
.review-card,
.lead-form,
.product-card,
.admin-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--shadow) 40%, transparent);
}

.intro-grid article {
  min-height: 150px;
  padding: 24px;
}

.metric {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.1;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 32px;
}

.section-heading h2 {
  max-width: 720px;
  margin-bottom: 0;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

.filters {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 16px;
  padding: 20px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--text);
  outline: none;
}

select,
input {
  min-height: 46px;
  padding: 0 12px;
}

input[type="checkbox"] {
  width: auto;
  min-height: auto;
}

textarea {
  resize: vertical;
  padding: 12px;
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--accent);
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
}

.catalog-toolbar p {
  margin: 0;
}

.muted,
.view-note {
  color: var(--muted);
}

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

.product-card {
  display: grid;
  gap: 18px;
  min-height: 420px;
  overflow: hidden;
}

.product-image {
  position: relative;
  min-height: 150px;
  background: var(--product-image) center / cover no-repeat;
}

.product-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.45));
}

.product-type-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 254, 251, 0.92);
  color: #271503;
  font-size: 12px;
  font-weight: 700;
}

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

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 12px;
}

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

.price-box {
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-soft);
}

.price-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.price-box strong {
  display: block;
  font-size: 18px;
}

.product-card .button {
  width: 100%;
}

.reviews-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 48px;
  align-items: start;
}

.review-card {
  min-height: 300px;
  padding: 32px;
}

.review-card blockquote {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.2;
}

.review-card cite {
  font-style: normal;
  font-weight: 700;
}

.review-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}

.review-dots {
  display: flex;
  gap: 8px;
}

.review-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--text) 26%, transparent);
}

.review-dot.active {
  background: var(--accent);
}

.contact-section {
  background: var(--bg-soft);
}

.seo-section,
.category-hero {
  background: var(--bg-soft);
}

.seo-copy {
  display: grid;
  gap: 18px;
}

.seo-copy p {
  max-width: 860px;
  color: var(--muted);
}

.seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.seo-links a {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-weight: 600;
}

.contact-list {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
}

.contact-list div {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.contact-list dt {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

.contact-list dd {
  margin: 4px 0 0;
}

.lead-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.consent-row input[type="checkbox"] {
  width: auto;
  height: auto;
  min-height: auto;
  margin-top: 4px;
}

.consent-row span {
  line-height: 1.4;
}

.form-status {
  min-height: 24px;
  margin: 0;
}

.form-status.error {
  color: #a5280a;
}

.form-status.success {
  color: #247238;
}

.site-footer {
  padding: 48px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.4fr);
  gap: 32px;
  align-items: start;
  color: var(--muted);
}

.footer-about {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-inner .brand {
  display: inline-block;
  color: var(--text);
}

.footer-legal dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 0;
}

.footer-legal div {
  min-width: 0;
}

.footer-legal dt {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.footer-legal dd {
  margin: 3px 0 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.footer-map {
  width: 100%;
  height: 260px;
  margin-top: auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.footer-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.modal-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(920px, calc(100% - 28px));
  max-height: min(86vh, 820px);
  overflow: auto;
  padding: 24px;
  transform: translate(-50%, -50%);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.52);
}

.modal-header,
.modal-actions,
.cart-total,
.cart-add-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.modal-header {
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-header h2 {
  margin: 0;
}

.cart-add-row {
  align-items: end;
  margin-bottom: 18px;
}

.cart-add-row label {
  flex: 1;
}

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

.empty-cart {
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr 128px 128px 42px;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-soft);
}

.cart-item.no-volume {
  grid-template-columns: 1fr 160px 42px;
}

.cart-item-title strong,
.cart-item-title span {
  display: block;
}

.cart-item-title span {
  color: var(--muted);
  font-size: 13px;
}

.item-subtotal {
  margin-top: 8px;
  color: var(--accent);
  font-weight: 700;
}

.cart-total {
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 22px;
}

.modal-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 20px;
}

.admin-body {
  min-height: 100vh;
  padding: 12px;
  overflow: hidden;
}

.admin-shell {
  width: min(1760px, calc(100vw - 16px));
  margin: 0 auto;
}

.admin-panel {
  height: calc(100vh - 24px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 18px 60px var(--shadow);
}

.admin-topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.compact-brand {
  font-size: 20px;
}

.compact-brand .logo-slot {
  width: 34px;
  height: 34px;
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-panel input,
.admin-panel select {
  min-height: 38px;
}

.admin-panel textarea {
  min-height: 86px;
  padding: 9px 10px;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  justify-content: space-between;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.admin-toolbar label {
  flex: 1 1 420px;
  max-width: 640px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}

.admin-tabs {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
}

.admin-tab {
  min-height: 34px;
  padding: 6px 13px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text);
  font-weight: 600;
}

.admin-tab.is-active {
  background: var(--accent);
  color: #fffefb;
}

.admin-view {
  flex: 1 1 auto;
  display: grid;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

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

.admin-form-grid textarea {
  min-height: 86px;
}

.admin-workspace {
  display: grid;
  grid-template-columns: minmax(720px, 1.35fr) minmax(460px, 0.65fr);
  gap: 12px;
  align-items: start;
  min-height: 0;
}

.admin-table-wrap {
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.lead-admin-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.45fr) minmax(0, 1fr);
  gap: 18px;
  min-height: 0;
}

.lead-create-panel,
.leads-workspace {
  min-height: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.lead-create-panel {
  align-self: start;
}

.lead-create-panel h2,
.leads-workspace h2,
.analytics-panel h2 {
  margin: 0;
  font-size: 26px;
}

.leads-workspace {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
}

.compact-toolbar {
  align-items: center;
  padding: 12px;
}

.view-switch {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
}

.view-switch-button {
  min-height: 36px;
  padding: 7px 14px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text);
  font-weight: 600;
}

.view-switch-button.is-active {
  background: var(--accent);
  color: #fffefb;
}

.leads-view {
  min-height: 0;
  overflow: auto;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 14px;
  min-width: 980px;
}

.kanban-column {
  min-height: 420px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.kanban-column h3 {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  font-size: 18px;
}

.kanban-cards {
  display: grid;
  gap: 10px;
}

.kanban-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(39, 21, 3, 0.08);
}

.kanban-card header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

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

.toast-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 28px));
  pointer-events: none;
}

.toast {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 52px var(--shadow);
  color: var(--text);
  opacity: 0;
  transform: translateY(10px);
  animation: toast-in 180ms ease forwards;
}

.toast.success {
  border-left-color: #247238;
}

.toast.error {
  border-left-color: #a5280a;
}

@keyframes toast-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

.admin-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bg-soft);
  color: var(--text);
  font-weight: 600;
}

.admin-table tbody tr {
  cursor: pointer;
}

.admin-table tbody tr:hover,
.admin-table tbody tr.is-selected {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.admin-table strong,
.admin-table span {
  display: block;
}

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

.product-editor {
  position: sticky;
  top: 0;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.product-editor h2 {
  margin-bottom: 4px;
  font-size: 22px;
}

.product-image-preview {
  min-height: 122px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.product-image-preview img {
  width: 100%;
  height: 122px;
  display: block;
  object-fit: cover;
}

.toggle-row {
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}

.toggle-row input {
  appearance: none;
  width: 46px;
  height: 26px;
  min-height: 26px;
  padding: 0;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--text) 16%, transparent);
  position: relative;
}

.toggle-row input::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 2px 6px rgba(39, 21, 3, 0.22);
  transition: transform 160ms ease;
}

.toggle-row input:checked {
  background: var(--accent);
}

.toggle-row input:checked::before {
  transform: translateX(20px);
}

.order-builder {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.order-builder-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px auto;
  gap: 10px;
  align-items: end;
}

.order-items-list {
  display: grid;
  gap: 8px;
  max-height: 180px;
  overflow: auto;
}

.order-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 34px;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.order-item-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.order-builder-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.span-2 {
  grid-column: 1 / -1;
}

.admin-note {
  margin: 0 0 16px;
  color: var(--muted);
}

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

.analytics-card,
.analytics-panel {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.analytics-card strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
  line-height: 1.15;
}

.analytics-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  gap: 18px;
}

.chart-list,
.top-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.chart-row,
.top-row {
  display: grid;
  gap: 6px;
}

.chart-row span,
.top-row span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.bar {
  height: 10px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--text) 10%, transparent);
}

.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.hidden {
  display: none !important;
}

@media (max-width: 880px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .intro-grid,
  .catalog-layout,
  .reviews-grid,
  .contact-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }

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

  .section-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .cart-item,
  .cart-item.no-volume,
  .admin-form-grid,
  .admin-workspace,
  .lead-admin-layout,
  .analytics-grid,
  .analytics-layout {
    grid-template-columns: 1fr;
  }

  .product-editor {
    position: static;
  }

  .admin-body {
    overflow: auto;
  }

  .admin-panel {
    height: auto;
    min-height: calc(100vh - 120px);
    overflow: visible;
  }

  .admin-view {
    overflow: visible;
  }
}

@media (max-width: 560px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    padding-left: 14px;
  }

  .brand {
    font-size: 20px;
  }

  .button {
    width: 100%;
  }

  .header-action {
    width: auto;
  }

  .hero {
    min-height: 90vh;
    padding: 116px 18px 70px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-actions,
  .cart-add-row {
    display: grid;
    width: 100%;
  }

  .section,
  .admin-body {
    padding-left: 18px;
    padding-right: 18px;
  }

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

  .footer-legal dl {
    grid-template-columns: 1fr;
  }

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