:root {
  --ink: #17201c;
  --muted: #66736d;
  --line: #dce5df;
  --surface: #ffffff;
  --soft: #f5faf1;
  --brand-primary: #1f395c;
  --brand-secondary: #aee9f9;
  --brand-accent: #55635e;
  --accent: var(--brand-primary);
  --accent-dark: var(--brand-primary);
  --gold: #ffc94a;
  --lime: var(--brand-secondary);
  --danger: #c84d3f;
  --shadow: 0 16px 42px rgba(35, 52, 42, 0.14);
}

* {
  box-sizing: border-box;
  min-width: 0;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: #fbfcf7;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  padding-bottom: 88px;
}

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

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

img,
svg,
video,
canvas {
  max-width: 100%;
}

.promo-ribbon {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 4vw, 34px);
  padding: 6px 16px;
  color: #264018;
  background: var(--lime);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.promo-ribbon span + span {
  position: relative;
}

.promo-ribbon span + span::before {
  content: "*";
  position: absolute;
  left: -20px;
  color: var(--accent-dark);
}

.delivery-strip {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 8vw, 90px);
  padding: 8px 18px;
  color: #24401d;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.delivery-strip div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.delivery-strip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.delivery-strip strong {
  font-size: 14px;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 4px clamp(14px, 4vw, 32px) 0;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--accent);
  font-weight: 800;
}

.brand-logo {
  width: min(251px, 62vw);
  height: 66px;
  object-fit: contain;
  border-radius: 8px;
  background: white;
  transform: translateY(12px);
  box-shadow: 0 12px 28px rgba(31, 57, 92, 0.18);
}

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

.brand small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.top-nav {
  display: flex;
  gap: 8px;
}

.top-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: #31442d;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
}

.top-nav a:hover {
  color: var(--ink);
  background: var(--soft);
}

.cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  flex: 0 0 auto;
}

.cart-pill strong {
  display: grid;
  min-width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: var(--accent);
  font-size: 13px;
}

.hero {
  position: relative;
  min-height: min(560px, calc(100vh - 156px));
  overflow: hidden;
  background: #1d2d23;
}

.hero-who-button {
  position: absolute;
  right: clamp(16px, 4vw, 44px);
  bottom: clamp(16px, 4vw, 34px);
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
}

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

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 27, 20, 0.8), rgba(13, 27, 20, 0.3) 50%, rgba(13, 27, 20, 0.08));
}

.hero-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: inherit;
  width: min(720px, 100%);
  flex-direction: column;
  justify-content: center;
  padding: 48px clamp(18px, 6vw, 64px) 92px;
  transform: translateY(-24px);
  color: white;
}

.hero-overlay p,
.section-heading p {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-overlay p {
  color: #d8f4e3;
}

.hero-overlay h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-subtitle {
  display: block;
  max-width: 620px;
  margin-top: 14px;
  color: #e9fbff;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.45;
}

.hero-actions,
.bot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

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

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

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

.full {
  width: 100%;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.homepage-highlights article:nth-child(1) {
  background: #eef9fc;
}

.homepage-highlights article:nth-child(2) {
  background: #f2f7f4;
}

.homepage-highlights article:nth-child(3) {
  background: #eef3fa;
}

.homepage-highlights article strong {
  font-size: clamp(18px, 2vw, 24px);
}

.homepage-highlights article span {
  line-height: 1.45;
}

.metrics-strip article {
  padding: 22px clamp(16px, 5vw, 44px);
  border-right: 1px solid var(--line);
}

.metrics-strip article:last-child {
  border-right: 0;
}

.metrics-strip strong,
.metrics-strip span {
  display: block;
}

.metrics-strip strong {
  font-size: 28px;
}

.metrics-strip span {
  color: var(--muted);
  font-weight: 700;
}

.offer-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1320px;
  margin: 28px auto 0;
  padding: 22px clamp(18px, 5vw, 34px);
  border: 1px solid #f0dd9c;
  border-radius: 8px;
  background: #fff6d8;
}

.offer-band p {
  margin: 0 0 6px;
  color: #815d00;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.offer-band h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.05;
}

.workspace {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 34px clamp(16px, 4vw, 44px);
}

.product-app-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 30px clamp(14px, 4vw, 44px) 52px;
}

.quick-search-form {
  position: sticky;
  top: 66px;
  z-index: 15;
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px 0;
  background: #fbfcf7;
}

.quick-search-form label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-search-form input {
  min-height: 48px;
  border-color: #cad9d5;
  background: white;
  font-size: 16px;
}

.filters {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.category-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 6px;
}

.category-rail a {
  padding: 8px 10px;
  border: 1px solid #d2e7c0;
  border-radius: 8px;
  color: #365925;
  background: #f6fbef;
  font-size: 13px;
  font-weight: 800;
}

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

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

input,
select {
  height: 44px;
  padding: 0 12px;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 138, 95, 0.13);
}

.delivery-card {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 14px;
  border-radius: 8px;
  background: #f9f2dc;
}

.delivery-card span,
.bot-copy p,
.bot-note span,
.admin-login span {
  color: var(--muted);
  line-height: 1.55;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 38px);
}

.section-heading > span {
  color: var(--muted);
  font-weight: 800;
}

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

.empty-state {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  font-weight: 800;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 312px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(48, 72, 39, 0.06);
}

.product-art {
  position: relative;
  display: grid;
  height: auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  place-items: center;
  border-radius: 8px;
  background: var(--tone, #edf8ef);
  color: var(--accent-dark);
  font-weight: 800;
}

.product-art img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 14px;
  background: var(--tone, #edf8ef);
}

.product-art-placeholder {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 1px solid rgba(31, 57, 92, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  color: rgba(31, 57, 92, 0.72);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.discount-badge {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 8px;
  padding: 4px 7px;
  border-radius: 7px;
  color: white;
  background: #dd4634;
  font-size: 11px;
  font-weight: 800;
}

.product-title-row {
  display: flex;
  min-height: 48px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0 10px;
}

.product-info h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
}

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

.pack-line {
  flex: 0 0 auto;
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf9;
  font-weight: 800;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.product-foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.card-qty-controls {
  display: grid;
  grid-template-columns: 38px 34px 38px;
  align-items: center;
  gap: 4px;
}

.card-qty-controls span {
  display: grid;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.price-stack {
  display: grid;
  gap: 2px;
}

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

.price-stack strong {
  font-size: 20px;
  font-weight: 800;
}

.countdown-strip {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 18px;
}

.countdown-strip span {
  min-width: 78px;
  padding: 9px 10px;
  border-radius: 8px;
  color: #23391b;
  background: var(--lime);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.qty-stepper {
  display: inline-grid;
  grid-template-columns: 34px 38px 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.qty-stepper button {
  height: 36px;
  border: 0;
  background: white;
  cursor: pointer;
}

.qty-stepper span {
  display: grid;
  place-items: center;
  border-inline: 1px solid var(--line);
  font-weight: 800;
}

.bot-panel,
.admin-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 34px clamp(16px, 4vw, 44px);
}

.bot-layout {
  display: grid;
  grid-template-columns: minmax(300px, 430px) 1fr;
  gap: 32px;
  align-items: center;
}

.phone-shell {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #121815;
  box-shadow: var(--shadow);
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 14px;
  color: white;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #43dc87;
}

.chat-window {
  display: flex;
  min-height: 390px;
  max-height: 430px;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 14px;
  border-radius: 18px;
  background: #edf6ee;
}

.message {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 14px;
  background: white;
  line-height: 1.45;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.message.user {
  align-self: end;
  background: #d7f8df;
}

.chat-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding-top: 10px;
}

.bot-copy h3 {
  max-width: 650px;
  margin: 0 0 10px;
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.04;
}

.bot-copy p {
  max-width: 560px;
  margin: 0;
  font-size: 17px;
}

.bot-note {
  display: grid;
  gap: 4px;
  max-width: 540px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.simulator-layout {
  display: grid;
  grid-template-columns: minmax(300px, 430px) 1fr;
  gap: 22px;
  align-items: start;
}

.simulator-phone {
  position: sticky;
  top: 92px;
}

.simulator-chat .message {
  display: grid;
  gap: 4px;
}

.simulator-chat .message small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.simulator-chat .message pre {
  margin: 0;
  font: inherit;
  white-space: pre-wrap;
}

.simulator-panel {
  display: grid;
  gap: 14px;
}

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

.admin-login > div,
.admin-login form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 16px;
}

.admin-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-card h3 {
  margin: 0;
}

.admin-card-head span {
  color: var(--muted);
  font-weight: 800;
}

.order-list,
.inventory-list,
.settings-card {
  display: grid;
  gap: 10px;
}

.order-row,
.inventory-row {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.order-row header,
.inventory-row header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.order-row p,
.inventory-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.status-select {
  height: 36px;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  justify-content: end;
  background: rgba(14, 24, 19, 0.44);
}

.cart-drawer.open {
  display: flex;
}

.drawer-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(430px, 100%);
  height: 100%;
  background: white;
  box-shadow: var(--shadow);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.drawer-head h2 {
  margin: 0;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  cursor: pointer;
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 10px;
  overflow-y: auto;
  padding: 18px;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.checkout-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-top: 1px solid var(--line);
  background: #fbfdfb;
}

.checkout-card.plain {
  border-top: 0;
  border-radius: 8px;
}

.customer-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 44px) 56px;
}

.customer-page.narrow {
  max-width: 760px;
}

.customer-form-card,
.tracking-form-card {
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mobile-lookup-form {
  display: grid;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.field-hint {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.checkout-fields {
  margin-top: 4px;
}

.cart-items.tight {
  padding: 10px 0 0;
}

.confirmation-card {
  display: grid;
  gap: 18px;
  text-align: left;
}

.confirmation-card > p {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.confirmation-card h1 {
  margin: 0;
  color: var(--accent);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
}

.confirmation-card > span {
  color: var(--muted);
  font-weight: 800;
}

.order-track-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

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

.static-content-card > p {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.static-content-card h1 {
  margin: 0;
  color: var(--accent);
}

.static-content {
  color: var(--ink);
  line-height: 1.75;
}

.site-footer {
  display: grid;
  gap: 7px;
  padding: 28px 16px 116px;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--accent);
  font-weight: 800;
}

.site-footer-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  color: var(--accent);
}

.fixed-checkout-bar {
  position: fixed;
  right: clamp(12px, 4vw, 28px);
  bottom: 14px;
  left: clamp(12px, 4vw, 28px);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
  padding: 12px;
  border: 1px solid rgba(31, 57, 92, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 40px rgba(20, 34, 52, 0.18);
}

.fixed-checkout-bar div {
  display: grid;
  gap: 2px;
}

.fixed-checkout-bar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.fixed-checkout-bar.empty {
  opacity: 0.72;
}

.fixed-checkout-bar.empty .button {
  pointer-events: none;
  filter: grayscale(1);
}

.total-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.grand {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 18px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 80;
  max-width: min(420px, calc(100vw - 32px));
  transform: translateX(-50%) translateY(24px);
  padding: 12px 14px;
  border-radius: 8px;
  color: white;
  background: #17201c;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.alert {
  position: fixed;
  left: 50%;
  top: 88px;
  z-index: 90;
  width: min(520px, calc(100vw - 32px));
  transform: translateX(-50%);
  padding: 12px 14px;
  border: 1px solid #ffd1ca;
  border-radius: 8px;
  color: var(--danger);
  background: #fff4f2;
  box-shadow: var(--shadow);
}

.alert p {
  margin: 0;
}

.page-busy-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(6, 15, 26, 0.58);
  backdrop-filter: blur(3px);
  cursor: wait;
}

.page-busy-overlay[hidden] {
  display: none !important;
}

.page-busy-overlay.active {
  display: grid;
}

.page-busy-card {
  width: min(360px, 100%);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(6, 15, 26, 0.28);
  text-align: center;
}

.page-busy-card strong {
  display: block;
  color: var(--rf-n1, var(--ink));
  font-size: 18px;
}

.page-busy-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.page-busy-progress {
  position: relative;
  display: block;
  height: 8px;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(45, 138, 82, 0.14);
}

.page-busy-progress span {
  position: absolute;
  inset-block: 0;
  left: -40%;
  width: 40%;
  border-radius: inherit;
  background: var(--rf-green, #2d8a52);
  animation: busy-progress 1s ease-in-out infinite;
}

body.is-busy {
  cursor: wait;
}

body.is-busy .button,
body.is-busy a,
body.is-busy input,
body.is-busy select,
body.is-busy textarea {
  pointer-events: none;
}

@keyframes busy-progress {
  to {
    left: 100%;
  }
}

.filter-form,
.checkout-card form,
.settings-card form,
.bot-order-form {
  display: grid;
  gap: 10px;
}

.cart-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 34px clamp(16px, 4vw, 44px);
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 430px);
  gap: 16px;
  align-items: start;
}

.inline-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inline-form input {
  width: 86px;
}

.order-row form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.check-row input {
  width: 18px;
  height: 18px;
}

.hidden {
  display: none !important;
}

.backend-screen {
  max-width: 1500px;
}

.backend-heading {
  align-items: center;
}

.backend-login {
  max-width: 760px;
}

.backend-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: start;
}

.backend-menu {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.backend-menu a {
  padding: 11px 12px;
  border-radius: 8px;
  color: #30422c;
  font-size: 14px;
  font-weight: 800;
}

.backend-menu a:hover {
  background: var(--soft);
}

.backend-menu a.active {
  color: white;
  background: var(--accent);
}

.backend-main {
  display: grid;
  gap: 16px;
}

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

.backend-stats article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.backend-stats span,
.backend-table small,
.admin-card-head p {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.backend-stats strong {
  display: block;
  margin-top: 6px;
  font-size: 32px;
}

.backend-panel {
  scroll-margin-top: 92px;
}

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

.backend-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

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

.backend-table th {
  color: var(--muted);
  background: #f8fbf5;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.backend-table.compact td {
  padding-block: 9px;
}

.status-row {
  border-left: 6px solid transparent;
}

.status-row-new {
  background: #eef6ff;
  border-left-color: #2563eb;
}

.status-row-pending-payment {
  background: #fff8e6;
  border-left-color: #f59e0b;
}

.status-row-payment-failed,
.status-row-cancelled {
  background: #fff1f2;
  border-left-color: #dc2626;
}

.status-row-confirmed {
  background: #ecfdf3;
  border-left-color: #16a34a;
}

.status-row-processing {
  background: #eefafa;
  border-left-color: #0891b2;
}

.status-row-packed {
  background: #f4f0ff;
  border-left-color: #7c3aed;
}

.status-row-out-for-delivery {
  background: #fff4e6;
  border-left-color: #ea580c;
}

.status-row-delivered {
  background: #edf9f0;
  border-left-color: #15803d;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.status-badge-new,
.status-select-new {
  color: #1d4ed8;
  background: #dbeafe;
}

.status-badge-pending-payment,
.status-select-pending-payment {
  color: #92400e;
  background: #fef3c7;
}

.status-badge-payment-failed,
.status-badge-cancelled,
.status-select-payment-failed,
.status-select-cancelled {
  color: #991b1b;
  background: #fee2e2;
}

.status-badge-confirmed,
.status-select-confirmed {
  color: #166534;
  background: #dcfce7;
}

.status-badge-processing,
.status-select-processing {
  color: #155e75;
  background: #cffafe;
}

.status-badge-packed,
.status-select-packed {
  color: #5b21b6;
  background: #ede9fe;
}

.status-badge-out-for-delivery,
.status-select-out-for-delivery {
  color: #9a3412;
  background: #ffedd5;
}

.status-badge-delivered,
.status-select-delivered {
  color: #14532d;
  background: #dcfce7;
}

.product-admin-table {
  table-layout: fixed;
  min-width: 1060px;
}

.product-admin-table th:nth-child(1),
.product-admin-table td:nth-child(1) {
  width: 132px;
}

.product-admin-table th:nth-child(3),
.product-admin-table td:nth-child(3),
.product-admin-table th:nth-child(6),
.product-admin-table td:nth-child(6),
.product-admin-table th:nth-child(7),
.product-admin-table td:nth-child(7) {
  width: 110px;
}

.product-admin-table input:not([type="file"]) {
  width: 100%;
  min-width: 0;
}

.quick-form,
.inline-admin-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inline-admin-form input {
  width: 110px;
}

.product-thumb {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: var(--soft);
  color: var(--accent-dark);
  font-weight: 800;
}

.product-image-form {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.thumb-link {
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 800;
}

.thumb-link.muted {
  color: var(--muted);
}

.image-upload-control {
  display: grid;
  gap: 4px;
  width: 100%;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.image-upload-control input {
  width: 100%;
  max-width: 112px;
  font-size: 11px;
}

.product-edit-row {
  display: grid;
  grid-template-columns: auto 1.1fr 0.8fr 0.8fr auto 1fr auto;
  gap: 8px;
  align-items: center;
}

.product-id {
  color: var(--accent-dark);
  white-space: nowrap;
}

.range-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 6px;
  align-items: center;
}

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

.delivery-rule-row,
.delivery-rule-edit {
  display: grid;
  gap: 10px;
}

.delivery-rule-row {
  grid-template-columns: 1fr auto;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf9;
}

.delivery-rule-edit {
  grid-template-columns: 1.2fr repeat(4, minmax(90px, 1fr)) auto auto;
  align-items: end;
}

.delivery-rule-edit label {
  display: grid;
  gap: 6px;
}

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

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

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

.form-grid label {
  display: grid;
  gap: 6px;
}

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

.stock-action-grid form {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdf9;
}

.stock-action-grid h4 {
  margin: 0;
  color: var(--ink);
}

.policy-editor-block {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf9;
}

.compact-head {
  margin-bottom: 0;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.danger-text {
  color: #b42318;
}

.payload-details {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 12px;
  overflow: hidden;
}

.payload-details summary {
  cursor: pointer;
  font-weight: 800;
  padding: 12px 14px;
  background: #f7faf7;
}

.payload-details pre {
  margin: 0;
  max-height: 360px;
  overflow: auto;
  padding: 14px;
  white-space: pre-wrap;
  word-break: break-word;
  background: #101828;
  color: #f8fafc;
  font-size: 12px;
}

.integration-help {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf7;
}

.integration-help h4 {
  margin: 0;
}

.integration-help p {
  margin: 0;
  color: var(--muted);
}

.integration-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 14px;
  border: 1px solid #bfe0ee;
  border-radius: 8px;
  background: #eef9fc;
  color: var(--ink);
}

.integration-status strong {
  margin-right: auto;
}

.integration-status span {
  font-weight: 800;
  color: var(--muted);
}

.payment-warning {
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #f5c2c7;
  border-radius: 8px;
  background: #fff5f5;
  color: #b42318;
  font-weight: 800;
}

.form-divider {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  margin: 6px 0;
}

.queue-error summary {
  cursor: pointer;
  font-weight: 800;
}

.queue-error p {
  max-width: 360px;
  margin: 8px 0 0;
  color: #b42318;
  word-break: break-word;
}

.report-filter {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 16px;
}

.report-filter label {
  display: grid;
  gap: 6px;
}

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

.create-product-form {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.manual-order-grid {
  display: grid;
  gap: 14px;
}

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

.form-note {
  align-self: end;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.payment-choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf9;
}

.payment-choice input {
  width: auto;
  margin-top: 3px;
}

.payment-choice strong,
.payment-choice small {
  display: block;
}

.payment-choice small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.manual-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-height: 430px;
  overflow-y: auto;
  padding: 4px;
}

.manual-items label {
  display: grid;
  grid-template-columns: 1fr 76px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf9;
}

.manual-items strong,
.manual-items small {
  display: block;
}

.manual-items small {
  color: var(--muted);
  font-size: 12px;
}

.line-running-total {
  margin-top: 5px;
  color: var(--rf-green-dark) !important;
  font-weight: 900;
}

.manual-order-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.manual-order-summary article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdf9;
}

.manual-order-summary span,
.manual-order-summary strong {
  display: block;
}

.manual-order-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.manual-order-summary strong {
  margin-top: 6px;
  color: var(--ink);
  font-size: 20px;
}

.manual-order-summary .grand {
  border-color: rgba(45, 138, 82, 0.35);
  background: #eef8ef;
}

.manual-order-summary .grand strong {
  color: var(--rf-green-dark);
}

.copyable-link {
  word-break: break-all;
  font-size: 12px;
  color: var(--muted);
}

.movement-pill {
  display: inline-flex;
  min-width: 112px;
  justify-content: center;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.movement-pill.in {
  color: #315b15;
  background: #e4f5c4;
}

.movement-pill.out {
  color: #894034;
  background: #ffe4df;
}

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

.detail-grid article {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf9;
}

.detail-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-grid p {
  margin: 0;
  color: var(--muted);
}

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

  .workspace,
  .bot-layout,
  .simulator-layout,
  .admin-grid,
  .checkout-layout,
  .backend-layout,
  .backend-stats,
  .form-grid,
  .manual-items,
  .manual-order-summary,
  .stock-action-grid,
  .report-filter,
  .detail-grid,
  .product-edit-row,
  .delivery-rule-row,
  .delivery-rule-edit {
    grid-template-columns: 1fr;
  }

  .backend-menu {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .filters {
    position: static;
  }

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

@media (max-width: 640px) {
  .promo-ribbon {
    overflow-x: auto;
    justify-content: start;
    white-space: nowrap;
  }

  .delivery-strip {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }

  .app-header {
    min-height: 58px;
    gap: 10px;
    width: 100%;
    padding: 2px 18px 0;
  }

  .brand-logo {
    width: min(188px, 52vw);
    height: 78px;
    transform: translateY(16px);
    box-shadow: 0 14px 30px rgba(31, 57, 92, 0.2);
  }

  .brand small,
  .cart-pill span {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero {
    min-height: 560px;
    width: 100%;
    max-width: 100vw;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(13, 27, 20, 0.5), rgba(13, 27, 20, 0.82));
  }

  .hero-overlay {
    justify-content: center;
    width: 100%;
    max-width: 100vw;
    padding: 48px 18px 74px;
    transform: translateY(-28px);
  }

  .hero-overlay h1 {
    max-width: 100%;
    font-size: 37px;
    line-height: 1.02;
    overflow-wrap: break-word;
  }

  .hero-subtitle {
    max-width: 100%;
    font-size: 17px;
    overflow-wrap: break-word;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    max-width: 340px;
    margin-top: 36px;
  }

  .hero-actions .button {
    width: 100%;
    min-width: 0;
    padding-inline: 10px;
    white-space: nowrap;
  }

  .hero-who-button {
    right: auto;
    bottom: 82px;
    left: 18px;
    width: min(340px, calc(100vw - 36px));
  }

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

  .metrics-strip article,
  .product-app-section,
  .site-footer {
    width: 100%;
    max-width: 100%;
  }

  .fixed-checkout-bar {
    right: 10px;
    left: 10px;
    max-width: calc(100vw - 20px);
  }

  .offer-band {
    align-items: stretch;
    flex-direction: column;
    margin: 18px 16px 0;
  }

  .metrics-strip article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .product-app-section {
    padding-inline: 10px;
  }

  .product-card {
    min-height: 0;
    padding: 8px;
  }

  .product-art {
    aspect-ratio: 1 / 1;
  }

  .product-art img {
    padding: 8px;
  }

  .product-art-placeholder {
    width: 56px;
    height: 56px;
    font-size: 20px;
  }

  .discount-badge {
    top: 6px;
    left: 6px;
    padding: 3px 5px;
    font-size: 9px;
  }

  .product-title-row {
    min-height: 34px;
    margin: 9px 0 8px;
    gap: 6px;
  }

  .product-info h3 {
    font-size: 13px;
  }

  .pack-line {
    min-height: 24px;
    padding: 2px 7px;
    font-size: 11px;
  }

  .product-meta {
    display: none;
  }

  .product-foot {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 10px;
  }

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

  .price-stack small {
    font-size: 10px;
  }

  .price-stack strong {
    font-size: 17px;
  }

  .card-qty-controls {
    grid-template-columns: 34px 1fr 34px;
  }

  .card-qty-controls .button {
    min-height: 34px;
    padding: 0;
  }

  .card-qty-controls span {
    height: 34px;
  }

  .section-heading,
  .admin-login,
  .admin-login form,
  .admin-login > div {
    align-items: stretch;
    flex-direction: column;
  }

  .chat-compose {
    grid-template-columns: 1fr;
  }
}

/* Raw Freeze redesign reference styling - public storefront only */
:root {
  --rf-n0: #060f1a;
  --rf-n1: #0d1a26;
  --rf-n2: #162032;
  --rf-n3: #1e3a52;
  --rf-green: #2d8a52;
  --rf-green-dark: #1a5c38;
  --rf-green-light: #4dbb7a;
  --rf-ice: #ddeef7;
  --rf-ice-soft: #f0f7fc;
  --rf-off: #f5f9fb;
  --rf-text: #0d1a26;
  --rf-muted: #5a7080;
  --rf-border: #c8dde8;
  --rf-border-soft: #d8eaf2;
  --rf-radius: 14px;
  --rf-shadow-sm: 0 2px 10px rgba(13, 26, 38, 0.08);
  --rf-shadow-md: 0 6px 24px rgba(13, 26, 38, 0.12);
  --rf-shadow-lg: 0 16px 48px rgba(13, 26, 38, 0.18);
  --ink: var(--rf-text);
  --muted: var(--rf-muted);
  --line: var(--rf-border-soft);
  --accent: var(--rf-green);
  --accent-dark: var(--rf-green-dark);
  --soft: var(--rf-off);
}

body:not(:has(.backend-screen)) {
  background: #ffffff;
}

.app-header {
  min-height: 64px;
  padding: 0;
  background: var(--rf-n1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: none;
  backdrop-filter: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1280px, 100%);
  height: 64px;
  margin: 0 auto;
  padding: 0 32px;
}

.brand {
  flex: 0 0 auto;
  gap: 10px;
  color: #ffffff;
}

.brand-logo {
  width: 42px;
  height: 42px;
  padding: 3px;
  border-radius: 8px;
  background: #ffffff;
  object-fit: contain;
  transform: none;
  box-shadow: none;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-wordmark strong {
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

.brand-wordmark small {
  color: rgba(255, 255, 255, 0.34);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 2.3px;
  text-transform: uppercase;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
}

.top-nav a {
  padding: 9px 14px;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
  font-weight: 700;
  text-transform: none;
  transition: color 0.18s ease, background 0.18s ease;
}

.top-nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.cart-pill {
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  font-size: 13px;
  transition: background 0.18s ease;
}

.cart-pill:hover {
  background: rgba(255, 255, 255, 0.14);
}

.cart-pill strong {
  min-width: 20px;
  height: 20px;
  background: var(--rf-green);
  font-size: 11px;
}

.hero {
  display: flex;
  align-items: center;
  min-height: 540px;
  background: var(--rf-n0);
}

.hero-photo,
.hero img {
  object-position: center 58%;
  opacity: 0.52;
}

.hero::after {
  background: linear-gradient(96deg, rgba(6, 15, 26, 1) 0%, rgba(6, 15, 26, 0.96) 28%, rgba(6, 15, 26, 0.8) 46%, rgba(6, 15, 26, 0.38) 64%, rgba(6, 15, 26, 0.08) 82%, transparent 100%);
}

.hero-overlay {
  width: min(1280px, 100%);
  min-height: auto;
  margin: 0 auto;
  padding: 88px 32px 80px;
  transform: none;
}

.hero-overlay p {
  margin-bottom: 16px;
  color: var(--rf-green-light);
  font-size: 11px;
  letter-spacing: 3px;
}

.hero-overlay h1 {
  max-width: 640px;
  font-size: clamp(38px, 5.5vw, 62px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-finest {
  display: block;
  margin-top: 10px;
  color: var(--rf-green-light);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(20px, 2.8vw, 30px);
  font-style: italic;
  letter-spacing: 0.5px;
  text-shadow: 0 0 32px rgba(45, 138, 82, 0.4);
}

.hero-subtitle {
  max-width: 460px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15.5px;
  line-height: 1.7;
}

.hero-actions {
  gap: 12px;
  margin-top: 36px;
}

.button {
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.18s ease, border-color 0.18s ease;
}

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

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

.button.primary:hover {
  background: var(--rf-green-dark);
  box-shadow: var(--rf-shadow-md);
}

.button.secondary {
  border-color: var(--rf-border);
  color: var(--rf-n1);
  background: #ffffff;
}

.button.secondary:hover {
  background: var(--rf-ice);
  box-shadow: var(--rf-shadow-md);
}

.button.danger {
  color: #ffffff;
  background: var(--danger);
  border-color: var(--danger);
}

.button.danger:hover {
  background: #a93f34;
  box-shadow: var(--rf-shadow-md);
}

.hero-who-button {
  right: clamp(24px, 5vw, 64px);
  bottom: clamp(24px, 5vw, 48px);
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.95);
}

.metrics-strip {
  background: var(--rf-ice);
  border-bottom: 1px solid var(--rf-border);
}

.metrics-strip article {
  padding: 22px 28px;
  border-right: 1px solid var(--rf-border);
}

.homepage-highlights article:nth-child(1),
.homepage-highlights article:nth-child(2),
.homepage-highlights article:nth-child(3) {
  background: var(--rf-ice);
}

.metrics-strip strong {
  margin-bottom: 4px;
  color: var(--rf-n1);
  font-size: 14px;
  font-weight: 800;
}

.metrics-strip span {
  color: var(--rf-n3);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

.product-app-section,
.catalog {
  max-width: 1280px;
  padding: 52px 32px 100px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading p {
  color: var(--rf-green);
  font-size: 11px;
  letter-spacing: 2.5px;
}

.section-heading h2 {
  color: var(--rf-n1);
  font-size: 28px;
  letter-spacing: 0;
}

.quick-search-form {
  margin-bottom: 32px;
}

.quick-search-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--rf-muted);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.quick-search-form input {
  border: 1.5px solid var(--rf-border);
  border-radius: 10px;
  background: #ffffff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.quick-search-form input:focus {
  border-color: var(--rf-green);
  box-shadow: 0 0 0 4px rgba(45, 138, 82, 0.1);
}

.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(224px, 1fr));
  gap: 14px;
}

.product-card {
  border: 1.5px solid var(--rf-border-soft);
  border-radius: var(--rf-radius);
  box-shadow: var(--rf-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--rf-green);
  box-shadow: var(--rf-shadow-md);
}

.product-art {
  border-radius: 12px;
  overflow: hidden;
}

.pack-line,
.card-qty-controls span {
  border-color: var(--rf-border);
}

.card-qty-controls .button {
  width: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 8px;
}

.site-footer {
  padding: 52px 32px 116px;
  border-top: none;
  background: var(--rf-n1);
  color: rgba(255, 255, 255, 0.42);
  text-align: left;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 36px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-logo-row img {
  width: 38px;
  height: 38px;
  padding: 3px;
  border-radius: 8px;
  background: #ffffff;
  object-fit: contain;
}

.footer-logo-row strong,
.footer-brand-block strong {
  display: block;
  color: #ffffff;
  font-size: 15px;
  line-height: 1;
}

.footer-logo-row span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.28);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.footer-tagline,
.footer-finest {
  color: rgba(255, 255, 255, 0.34);
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
}

.footer-brand-block p,
.footer-bottom p {
  margin: 0 0 6px;
}

.footer-col h4 {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.site-footer a,
.footer-col a {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12.5px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.site-footer a:hover,
.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.policy-page {
  min-height: 80vh;
  background: var(--rf-off);
}

.policy-hero {
  padding: 48px 32px 36px;
  border-bottom: 3px solid var(--rf-ice);
  background: var(--rf-n1);
}

.policy-hero p {
  margin: 0 0 10px;
  color: var(--rf-green-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.policy-hero h1 {
  margin: 0 0 5px;
  color: #ffffff;
  font-size: 28px;
  font-weight: 800;
}

.policy-hero span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 13.5px;
}

.policy-tabs {
  position: sticky;
  top: 64px;
  z-index: 10;
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 0 32px;
  border-bottom: 1px solid var(--rf-border);
  background: #ffffff;
}

.policy-tabs a {
  flex: 0 0 auto;
  padding: 14px 18px;
  border-bottom: 3px solid transparent;
  color: var(--rf-muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.policy-tabs a:hover,
.policy-tabs a.active {
  color: var(--rf-green);
}

.policy-tabs a.active {
  border-bottom-color: var(--rf-green);
  font-weight: 800;
}

.policy-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 32px 88px;
}

.policy-pane {
  display: none;
  animation: policy-fade 0.22s ease;
}

.policy-pane.active {
  display: block;
}

@keyframes policy-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.policy-pane h2 {
  margin: 0 0 4px;
  color: var(--rf-n1);
  font-size: 24px;
  font-weight: 800;
}

.policy-date {
  margin: 0 0 26px;
  color: var(--rf-muted);
  font-size: 12px;
}

.policy-intro {
  margin-bottom: 28px;
  padding: 18px 22px;
  border-left: 4px solid var(--rf-n1);
  border-radius: 8px;
  background: var(--rf-ice);
}

.policy-intro p,
.policy-pane p,
.policy-pane li,
.policy-pane .static-content {
  color: #2c3e50;
  font-size: 14px;
  line-height: 1.8;
}

.policy-pane h3 {
  margin: 28px 0 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--rf-border-soft);
  color: var(--rf-n1);
  font-size: 16px;
}

.policy-pane ul {
  margin: 6px 0 14px 18px;
  padding: 0;
}

@media (max-width: 900px) {
  .header-inner {
    padding: 0 16px;
  }

  .top-nav {
    justify-content: flex-start;
    overflow-x: auto;
    order: 3;
    flex: 1 1 100%;
    width: 100%;
    padding-bottom: 10px;
  }

  .app-header {
    min-height: auto;
  }

  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding-top: 10px;
  }

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

@media (max-width: 640px) {
  .header-inner {
    gap: 10px;
    padding: 8px 14px 0;
  }

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

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

  .brand-wordmark small,
  .cart-pill span {
    display: none;
  }

  .top-nav a {
    padding: 8px 11px;
    font-size: 13.5px;
  }

  .hero {
    min-height: 620px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(6, 15, 26, 0.5), rgba(6, 15, 26, 0.9));
  }

  .hero-overlay {
    padding: 74px 18px 150px;
  }

  .hero-overlay h1 {
    font-size: 38px;
    line-height: 1.06;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
    width: 100%;
    max-width: 340px;
    grid-template-columns: 1fr;
  }

  .hero-actions .button,
  .hero-who-button {
    width: min(340px, calc(100vw - 36px));
  }

  .hero-who-button {
    right: auto;
    bottom: 82px;
    left: 18px;
  }

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

  .metrics-strip article {
    border-right: none;
    border-bottom: 1px solid var(--rf-border);
  }

  .product-app-section,
  .catalog {
    padding: 40px 10px 100px;
  }

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

  .product-card:hover {
    transform: translateY(-2px);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .site-footer {
    padding: 42px 18px 118px;
  }

  .policy-hero {
    padding: 40px 18px 30px;
  }

  .policy-tabs {
    top: 102px;
    padding: 0 16px;
  }

  .policy-body {
    padding: 38px 18px 84px;
  }
}
