:root {
  color-scheme: light;
  --bg: #fbfaf6;
  --surface: #ffffff;
  --surface-soft: #f2efe7;
  --ink: #242424;
  --muted: #66706a;
  --line: #ded8ca;
  --red: #a9322d;
  --red-strong: #8f2520;
  --green: #4f8a58;
  --green-soft: #dcebdd;
  --shadow: 0 16px 44px rgba(42, 34, 24, 0.1);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #fffdf8 0%, var(--bg) 42%, #f5f1e8 100%);
  color: var(--ink);
}

body.modal-is-open {
  overflow: hidden;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid rgba(222, 216, 202, 0.82);
  background: rgba(251, 250, 246, 0.94);
  backdrop-filter: blur(14px);
}

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

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.05;
}

.brand-caption {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

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

.nav a,
.cart-trigger {
  border-radius: 8px;
  padding: 10px 12px;
}

.nav a:hover,
.cart-trigger:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.cart-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.cart-trigger strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
}

main {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px) 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  align-items: center;
  gap: clamp(24px, 5vw, 68px);
  min-height: auto;
  padding: clamp(28px, 5vw, 64px) 0 clamp(24px, 4vw, 44px);
}

.hero-media {
  display: grid;
  gap: 14px;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.hero h1 {
  max-width: 850px;
  margin: 10px 0 18px;
  font-size: clamp(42px, 5.8vw, 78px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.hero-badges span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  padding: 8px 11px;
  font-size: 14px;
  font-weight: 750;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 680px;
  margin-top: 22px;
}

.hero-metrics div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 14px;
}

.hero-metrics strong {
  font-size: 24px;
  line-height: 1;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.eyebrow {
  margin: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions,
.form-actions,
.admin-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.admin-token-field {
  min-width: min(360px, 100%);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 750;
  white-space: nowrap;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

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

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

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

.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.ghost {
  border-color: transparent;
  background: var(--surface-soft);
  color: var(--muted);
}

.promo-band {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 340px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 18px;
  background: #1f1f1f;
}

.promo-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.74;
}

.promo-band::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(20, 20, 20, 0.72), rgba(20, 20, 20, 0.18));
}

.promo-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
  padding: clamp(22px, 5vw, 44px);
  color: #fff;
}

.promo-copy .eyebrow {
  color: #bfe0c2;
}

.promo-copy h2 {
  margin-bottom: 12px;
}

.promo-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.55;
}

.promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.light-button {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.quick-action {
  display: grid;
  gap: 6px;
  min-height: 94px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 16px;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 10px 28px rgba(42, 34, 24, 0.06);
}

.quick-action strong {
  font-size: 18px;
}

.quick-action span {
  color: var(--muted);
  line-height: 1.35;
}

.delivery-panel {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.delivery-panel div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 12px 4px;
}

.delivery-panel div:last-child {
  border-bottom: 0;
}

.delivery-panel span {
  color: var(--muted);
}

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

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

.section-note {
  max-width: 780px;
  margin: -6px 0 22px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

h2 {
  margin: 6px 0 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

.bundle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 18px;
}

.bundle-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(42, 34, 24, 0.08);
  cursor: pointer;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.bundle-card:hover,
.bundle-card:focus-visible {
  transform: translateY(-2px);
  border-color: #c9bfaa;
  box-shadow: 0 18px 42px rgba(42, 34, 24, 0.12);
  outline: none;
}

.bundle-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface-soft);
}

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

.bundle-card-media span {
  position: absolute;
  left: 12px;
  top: 12px;
  border-radius: 999px;
  background: rgba(169, 50, 45, 0.92);
  color: #fff;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 850;
}

.bundle-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  padding: 18px;
}

.bundle-card h3 {
  margin: 6px 0 8px;
  font-size: 28px;
  line-height: 1.05;
}

.bundle-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.bundle-contents {
  display: grid;
  align-self: start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
  padding: 12px;
}

.bundle-contents strong {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bundle-contents div,
.product-tags,
.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.bundle-contents span,
.product-tags span,
.modal-tags span {
  border-radius: 999px;
  background: var(--green-soft);
  color: #2f6338;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 800;
}

.bundle-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  min-width: 0;
}

.bundle-card-meta span {
  min-width: 0;
  color: var(--muted);
  font-weight: 750;
}

.bundle-card-meta strong {
  flex: 0 0 auto;
  font-size: 26px;
  white-space: nowrap;
}

.full-width {
  width: 100%;
  max-width: 100%;
}

.bundle-card .button,
.bundle-card .catalog-qty {
  width: 100%;
}

.bundle-card .catalog-qty {
  grid-template-columns: 42px minmax(0, 1fr) 42px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 240px) minmax(180px, 240px);
  gap: 12px;
  margin-bottom: 22px;
}

.category-chips {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.category-chips::-webkit-scrollbar {
  display: none;
}

.category-chips button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  flex: 0 0 auto;
  padding: 0 14px;
  font-weight: 800;
}

.category-chips button.is-active {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.field {
  display: grid;
  gap: 7px;
}

.field span,
.toggle span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  min-height: 44px;
  padding: 10px 12px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(79, 138, 88, 0.16);
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 18px;
}

.product-card {
  display: grid;
  gap: 14px;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(42, 34, 24, 0.06);
  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease;
}

.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-2px);
  border-color: #c9bfaa;
  box-shadow: 0 16px 34px rgba(42, 34, 24, 0.1);
  outline: none;
}

.product-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-soft);
}

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

.product-image span {
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: 999px;
  background: rgba(79, 138, 88, 0.92);
  color: #fff;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 850;
}

.product-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 0 16px;
}

.category-pill {
  align-self: start;
  max-width: 132px;
  border-radius: 999px;
  background: var(--green-soft);
  color: #2f6338;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.product-desc {
  min-height: 42px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  padding: 0 16px;
}

.product-tags {
  padding: 0 16px;
}

.product-tags span {
  background: var(--surface-soft);
  color: var(--muted);
}

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

.meta {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 9px;
  color: var(--muted);
  font-size: 13px;
}

.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(128px, auto);
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding: 0 16px 16px;
}

.price {
  min-width: 0;
  font-size: 26px;
  font-weight: 850;
  white-space: nowrap;
}

.price small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.card-actions {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.card-actions .button {
  width: 100%;
  min-width: 128px;
  padding: 0 16px;
}

.catalog-qty {
  display: grid;
  grid-template-columns: 38px minmax(42px, 1fr) 38px;
  align-items: center;
  min-width: 148px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.catalog-qty strong {
  text-align: center;
  font-size: 18px;
}

.catalog-qty .qty-button {
  width: 38px;
  height: 42px;
  border: 0;
  border-radius: 0;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  color: var(--muted);
  font-weight: 900;
}

.icon-button:hover {
  color: var(--ink);
  border-color: #c9bfaa;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(320px, 0.58fr);
  gap: clamp(20px, 5vw, 52px);
}

.delivery-section {
  padding-bottom: 20px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.steps-grid div {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
}

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

.steps-grid span {
  color: var(--muted);
  line-height: 1.45;
}

.area-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(360px, 0.58fr);
  gap: clamp(20px, 5vw, 52px);
  align-items: center;
}

.area-section p {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.map-card {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}

.real-map-card iframe {
  display: block;
  width: 100%;
  height: 430px;
  border: 0;
}

.map-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: grid;
  gap: 4px;
  max-width: calc(100% - 32px);
  border: 1px solid rgba(222, 216, 202, 0.85);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  padding: 12px 14px;
  box-shadow: 0 10px 28px rgba(42, 34, 24, 0.14);
}

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

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

.policy-grid article {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
}

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

.policy-grid span {
  color: var(--muted);
  line-height: 1.45;
}

.bot-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.44fr) minmax(360px, 0.56fr);
  gap: clamp(20px, 5vw, 52px);
  align-items: center;
}

.bot-section p {
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

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

.bot-cards article {
  display: grid;
  gap: 8px;
  min-height: 160px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  box-shadow: 0 10px 28px rgba(42, 34, 24, 0.06);
}

.bot-cards strong {
  font-size: 24px;
}

.bot-cards span {
  color: var(--muted);
  line-height: 1.4;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.38fr) minmax(360px, 0.62fr);
  gap: clamp(20px, 5vw, 52px);
  align-items: start;
}

.contact-section p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

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

.contact-grid article {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
}

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

.contact-grid span {
  color: var(--muted);
  line-height: 1.45;
}

.admin-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(36px, 7vw, 76px) 0 34px;
}

.admin-hero h1 {
  margin: 8px 0 14px;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

.admin-hero p,
.muted-text {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.55;
}

.admin-copy p {
  color: var(--muted);
  line-height: 1.55;
}

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

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

.promo-list {
  display: grid;
  gap: 10px;
}

.promo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
}

.promo-row strong {
  display: block;
  font-size: 20px;
}

.promo-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.promo-row.is-disabled {
  opacity: 0.62;
}

.promo-active-toggle {
  align-self: end;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

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

.orders-dashboard {
  border-top: 0;
  padding-top: 22px;
}

.orders-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.orders-toolbar select {
  width: auto;
  min-width: 190px;
}

.order-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.order-stats article {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
  box-shadow: 0 10px 28px rgba(42, 34, 24, 0.06);
}

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

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

.admin-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
}

.admin-thumb {
  width: 92px;
  height: 92px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-soft);
}

.admin-row-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.admin-row-title strong {
  font-size: 18px;
}

.admin-row-title span {
  border-radius: 999px;
  background: var(--green-soft);
  color: #2f6338;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
}

.admin-row p {
  margin: 7px 0 10px;
  color: var(--muted);
  line-height: 1.45;
}

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

.order-row {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
}

.order-row.status-new {
  border-left-color: var(--red);
}

.order-row.status-confirmed {
  border-left-color: var(--green);
}

.order-row.status-delivered {
  border-left-color: #637083;
}

.order-row.status-cancelled {
  opacity: 0.72;
}

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

.order-total {
  display: grid;
  gap: 4px;
  text-align: right;
}

.order-total span {
  justify-self: end;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
}

.order-contact {
  display: grid;
  gap: 4px;
  color: var(--muted);
}

.order-contact a {
  color: var(--red);
  font-weight: 850;
}

.order-row-head span,
.order-row p {
  color: var(--muted);
}

.order-row p {
  margin: 0;
}

.order-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.order-items span {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 7px 9px;
  font-size: 13px;
}

.product-form,
.cart-drawer {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.full {
  grid-column: 1 / -1;
}

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

.toggle input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--green);
}

.file-button {
  position: relative;
  overflow: hidden;
}

.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.cart-items {
  display: grid;
  gap: 10px;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(31, 28, 24, 0.34);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.cart-is-open .cart-overlay {
  opacity: 1;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 21;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
  width: min(440px, 100vw);
  height: 100vh;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
  transform: translateX(100%);
  transition: transform 0.2s ease;
}

.cart-is-open .cart-drawer {
  transform: translateX(0);
}

.cart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cart-head h2 {
  font-size: 34px;
}

.cart-subtitle {
  display: inline-block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.cart-drawer .cart-items {
  overflow: auto;
  min-height: 0;
  align-content: start;
}

.checkout-form {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.promo-box {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 12px;
}

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

.remember-toggle {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.cart-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cart-item strong {
  display: block;
}

.cart-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  cursor: pointer;
  font-weight: 900;
}

.cart-footer {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.cart-summary {
  display: grid;
  gap: 8px;
}

.cart-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cart-footer span,
.cart-summary span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.cart-footer strong {
  font-size: 20px;
}

.discount-row strong {
  color: var(--green);
}

.summary-total {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.summary-total strong {
  font-size: 30px;
}

.cart-footer .button {
  width: 100%;
}

.empty-state {
  margin: 24px 0 0;
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(360px, calc(100vw - 36px));
  border-radius: 8px;
  background: #242424;
  color: #fff;
  padding: 13px 15px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.success-modal,
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: grid;
  place-items: center;
  background: rgba(31, 28, 24, 0.38);
  padding: 18px;
}

.success-modal[hidden],
.product-modal[hidden] {
  display: none;
}

.product-modal {
  z-index: 24;
}

.product-modal-card {
  position: relative;
  width: min(980px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.product-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.94);
}

.product-modal-content {
  display: grid;
  grid-template-columns: minmax(280px, 0.48fr) minmax(320px, 0.52fr);
  min-height: 520px;
}

.product-modal-media {
  position: relative;
  min-height: 520px;
  background: var(--surface-soft);
}

.product-modal-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.product-modal-media span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  border-radius: 999px;
  background: rgba(79, 138, 88, 0.94);
  color: #fff;
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 850;
}

.product-modal-copy {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
}

.product-modal-copy h2 {
  margin-top: 8px;
  font-size: clamp(32px, 4vw, 52px);
}

.product-modal-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.modal-composition {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
  padding: 14px;
}

.modal-composition ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.35;
}

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

.modal-facts div {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.modal-facts span,
.modal-price span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.modal-facts strong {
  font-size: 15px;
}

.product-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.modal-price {
  display: grid;
  gap: 5px;
}

.modal-price strong {
  font-size: 30px;
}

.modal-price small {
  color: var(--muted);
  font-size: 15px;
}

.modal-qty {
  max-width: 190px;
}

.success-card {
  width: min(480px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 24px;
  box-shadow: var(--shadow);
}

.success-card h2 {
  font-size: 34px;
}

.success-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.mobile-tabbar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 15;
  display: none;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 8px;
  border: 1px solid rgba(222, 216, 202, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  padding: 8px;
  box-shadow: 0 16px 44px rgba(42, 34, 24, 0.18);
  backdrop-filter: blur(16px);
}

.mobile-tabbar a,
.mobile-tabbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
}

.mobile-tabbar button {
  gap: 8px;
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.mobile-tabbar strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 12px;
}

@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .admin-layout,
  .toolbar,
  .steps-grid,
  .quick-actions,
  .area-section,
  .policy-grid,
  .bot-section,
  .bot-cards,
  .contact-section,
  .contact-grid,
  .order-stats,
  .product-modal-content,
  .modal-facts {
    grid-template-columns: 1fr;
  }

  .admin-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .product-modal-media,
  .product-modal-media img {
    min-height: 280px;
  }

  .product-modal-content {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .product-card .price-row {
    grid-template-columns: 1fr;
  }

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

  .product-card .card-actions .button {
    flex: 1;
  }
}

@media (max-width: 560px) {
  body {
    padding-bottom: 74px;
  }

  main,
  .topbar {
    padding-left: 14px;
    padding-right: 14px;
  }

  .topbar {
    min-height: 64px;
    align-items: center;
    flex-direction: row;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-caption {
    font-size: 12px;
  }

  .nav a {
    display: none;
  }

  .nav {
    width: auto;
    overflow: visible;
  }

  .cart-trigger {
    min-height: 42px;
    padding: 8px 10px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero p {
    font-size: 17px;
  }

  .hero-media img {
    aspect-ratio: 16 / 10;
  }

  .product-modal {
    align-items: end;
    padding: 10px;
  }

  .product-modal-card {
    max-height: calc(100vh - 20px);
  }

  .product-modal-copy {
    padding: 20px;
  }

  .product-modal-copy h2 {
    font-size: 32px;
  }

  .modal-composition ul {
    grid-template-columns: 1fr;
  }

  .product-modal-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .modal-qty {
    max-width: none;
  }

  .mobile-tabbar {
    display: grid;
  }

  .toast {
    bottom: 86px;
  }

  .cart-drawer {
    width: 100vw;
  }

  .section-head,
  .price-row,
  .cart-footer,
  .admin-row,
  .promo-row,
  .bundle-card-meta,
  .promo-input-row {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-row,
  .promo-row,
  .bundle-card-meta,
  .promo-input-row {
    display: flex;
  }

  .admin-row-actions {
    width: 100%;
  }

  .order-row-head,
  .order-total {
    text-align: left;
  }

  .order-total span {
    justify-self: start;
  }

  .admin-row-actions .button {
    flex: 1;
  }

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

  .card-actions {
    width: 100%;
  }

  .card-actions .button {
    flex: 1;
  }
}
