:root {
  --cream: #fff8df;
  --linen: #fffaf0;
  --paper: #fffdf6;
  --espresso: #4b260e;
  --cocoa: #7a4a25;
  --leaf: #1f6f5b;
  --leaf-soft: #dff2ea;
  --copper: #cf7a2d;
  --berry: #672d3f;
  --ink: #201713;
  --muted: #75675f;
  --line: rgba(75, 38, 14, 0.16);
  --shadow: 0 18px 45px rgba(32, 23, 19, 0.12);
  --radius: 8px;
  --header-h: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--linen);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.55;
}

[hidden] {
  display: none !important;
}

body.cart-open,
body.dialog-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

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

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px max(18px, env(safe-area-inset-left)) 12px max(18px, env(safe-area-inset-right));
  background: rgba(255, 250, 240, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.brand__logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(75, 38, 14, 0.18);
}

.brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  color: var(--espresso);
  letter-spacing: 0;
}

.brand small {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-inline: auto;
}

.main-nav a,
.admin-nav a {
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--muted);
  transition: background 180ms ease, color 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.admin-nav a:hover,
.admin-nav a:focus-visible {
  background: var(--leaf-soft);
  color: var(--leaf);
  outline: none;
}

.cart-trigger,
.button,
.icon-button {
  border: 0;
  border-radius: 6px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.cart-trigger {
  background: var(--espresso);
  color: #fff;
  padding: 10px 14px;
}

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

.cart-count {
  min-width: 24px;
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  padding-inline: 7px;
  border-radius: 999px;
  background: var(--copper);
  color: #fff;
  font-size: 0.82rem;
}

.button {
  padding: 12px 18px;
}

.button--primary {
  color: #fff;
  background: var(--espresso);
  box-shadow: 0 14px 30px rgba(75, 38, 14, 0.22);
}

.button--ghost {
  color: var(--espresso);
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid var(--line);
}

.button--light {
  color: var(--espresso);
  background: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

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

.icon-button {
  width: 44px;
  padding: 0;
  color: var(--espresso);
  background: var(--cream);
  font-size: 1.45rem;
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 78% 18%, rgba(207, 122, 45, 0.42), transparent 28%),
    linear-gradient(135deg, #26130b 0%, #4b260e 44%, #672d3f 100%);
}

.hero.has-banner {
  background-size: cover;
  background-position: center;
}

.hero__canvas,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__canvas {
  opacity: 0.58;
}

.hero__overlay {
  background:
    linear-gradient(90deg, rgba(25, 13, 8, 0.8), rgba(25, 13, 8, 0.42) 50%, rgba(25, 13, 8, 0.18)),
    linear-gradient(0deg, rgba(32, 23, 19, 0.4), rgba(32, 23, 19, 0));
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: clamp(28px, 5vw, 74px);
  min-height: calc(100svh - var(--header-h));
  padding-block: clamp(56px, 8vw, 96px);
}

.eyebrow,
.mini-label {
  color: var(--copper);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero .eyebrow {
  color: #ffd89d;
}

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

h1,
h2,
h3 {
  line-height: 1.06;
  color: var(--espresso);
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 9vw, 7.8rem);
  font-weight: 500;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.38);
}

.hero__lead {
  max-width: 640px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1rem, 2vw, 1.22rem);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.32);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 680px;
  margin: 0;
}

.hero__metrics div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.hero__metrics dt {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
}

.hero__metrics dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.hero__visual {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
}

.hero-mark {
  width: min(88vw, 520px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 248, 223, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 28px 90px rgba(0, 0, 0, 0.28);
  animation: floatMark 7s ease-in-out infinite;
}

.hero-mark img {
  width: 76%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 8px solid rgba(255, 248, 223, 0.22);
}

.roast-note {
  position: absolute;
  right: 0;
  bottom: 50px;
  width: min(280px, 72vw);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.14);
  backdrop-filter: blur(12px);
}

.roast-note span {
  display: block;
  color: #ffd89d;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
}

.roast-note strong {
  display: block;
  margin-top: 6px;
  color: #fff;
}

.value-band {
  background: var(--leaf);
  color: #f7fff9;
}

.value-band__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.value-band article {
  padding: clamp(24px, 4vw, 42px);
  background: var(--leaf);
}

.value-band h2,
.value-band p {
  color: inherit;
}

.value-band p {
  margin-bottom: 0;
  opacity: 0.82;
}

.section {
  padding-block: clamp(64px, 10vw, 112px);
}

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

.section-heading h2,
.story h2,
.contact h2 {
  max-width: 780px;
  margin-bottom: 12px;
  font-size: clamp(2rem, 5vw, 4.2rem);
}

.section-heading p:last-child,
.story__copy p,
.contact p {
  max-width: 680px;
  color: var(--muted);
}

.story {
  background: var(--paper);
}

.story__grid,
.contact__grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 72px);
  align-items: center;
}

.story__media {
  display: grid;
  place-items: center;
  min-height: 360px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(31, 111, 91, 0.13), transparent),
    var(--cream);
  border: 1px solid var(--line);
}

.story__media img {
  width: min(74%, 420px);
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.story-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.story-points span,
.filter-chips button,
.product-card__note {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--espresso);
}

.story-points span {
  padding: 8px 10px;
  font-weight: 700;
}

.services {
  background: linear-gradient(180deg, var(--linen), var(--paper));
}

.services__grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.services__media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: var(--shadow);
}

.services__media img {
  width: 100%;
  aspect-ratio: 18 / 10;
  object-fit: cover;
}

.services__copy h2 {
  max-width: 720px;
  margin-bottom: 14px;
  font-size: clamp(2rem, 5vw, 3.8rem);
}

.services__copy > p:last-of-type {
  color: var(--muted);
}

.service-cards {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.service-cards article {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.service-cards span {
  color: var(--leaf);
  font-size: 0.78rem;
  font-weight: 900;
}

.service-cards h3 {
  margin-bottom: 0;
  font-size: 1.1rem;
}

.service-cards p {
  margin-bottom: 0;
  color: var(--muted);
}

.products {
  background:
    linear-gradient(180deg, rgba(223, 242, 234, 0.72), transparent 38%),
    var(--linen);
}

.product-tools {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.search-box {
  flex: 1 1 320px;
  max-width: 520px;
}

.sort-box {
  flex: 0 1 220px;
}

label span {
  display: block;
  margin-bottom: 7px;
  color: var(--espresso);
  font-size: 0.86rem;
  font-weight: 800;
}

.spam-guard {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(31, 111, 91, 0.14);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-chips button {
  min-height: 42px;
  padding: 9px 12px;
  font-weight: 800;
}

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

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

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(32, 23, 19, 0.07);
  transform: translateY(0);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 111, 91, 0.34);
  box-shadow: var(--shadow);
}

.product-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 20%, rgba(207, 122, 45, 0.22), transparent 32%),
    linear-gradient(135deg, var(--cream), #e9f4ef);
}

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

.product-placeholder {
  width: 54%;
  max-width: 190px;
  aspect-ratio: 0.72;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 8px 8px 22px 22px;
  background: linear-gradient(160deg, #693517, #2d160b);
  box-shadow: 0 24px 42px rgba(75, 38, 14, 0.24);
}

.product-placeholder::before {
  content: "";
  position: absolute;
  top: 12%;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--cream);
  opacity: 0.95;
}

.product-placeholder img {
  position: relative;
  z-index: 1;
  width: 44%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 9px;
  border-radius: 6px;
  background: var(--berry);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}

.product-card__top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.product-card h3 {
  margin-bottom: 5px;
  font-size: 1.22rem;
}

.product-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.product-card__desc {
  color: var(--muted);
  margin-bottom: 0;
}

.product-card__notes {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.product-card__note {
  padding: 5px 8px;
  font-size: 0.78rem;
  font-weight: 700;
}

.price {
  min-width: max-content;
  color: var(--espresso);
  text-align: right;
  font-weight: 900;
}

.price del {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

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

.stock {
  color: var(--leaf);
  font-size: 0.86rem;
  font-weight: 800;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 42px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
}

.promo {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(103, 45, 63, 0.92), rgba(31, 111, 91, 0.94)),
    var(--leaf);
}

.promo__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.promo h2 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 4rem);
}

.promo p {
  max-width: 680px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.flow {
  background: var(--paper);
}

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

.flow-step,
.contact-form,
.login-card,
.admin-panel,
.admin-stats article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(32, 23, 19, 0.06);
}

.flow-step {
  padding: 24px;
}

.flow-step span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--leaf-soft);
  color: var(--leaf);
  font-weight: 900;
}

.flow-step h3 {
  font-size: 1.2rem;
}

.flow-step p {
  margin-bottom: 0;
  color: var(--muted);
}

.contact {
  background: var(--linen);
}

.contact a {
  color: var(--leaf);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  justify-items: end;
  background: rgba(32, 23, 19, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.cart-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer__panel {
  width: min(760px, 100%);
  height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  transform: translateX(100%);
  transition: transform 260ms ease;
}

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

.cart-drawer__head,
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.cart-drawer__head h2,
.dialog-head h2 {
  margin-bottom: 0;
  font-size: 1.5rem;
}

.cart-items {
  flex: 0 1 36%;
  min-height: 160px;
  overflow: auto;
  padding: 18px;
}

.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}

.cart-line__thumb {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--cream);
}

.cart-line h3 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.cart-line p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.quantity-control button {
  width: 34px;
  height: 34px;
  border: 0;
  background: #fff;
  color: var(--espresso);
  font-weight: 900;
}

.quantity-control span {
  width: 36px;
  text-align: center;
  font-weight: 800;
}

.cart-summary {
  flex: 1 1 auto;
  display: grid;
  gap: 14px;
  overflow: auto;
  padding: 18px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.coupon-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}

.cart-checkout-form {
  display: grid;
  gap: 14px;
}

.cart-section-title,
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 1.04rem;
}

.cart-section-title {
  align-items: center;
  padding-top: 4px;
  color: var(--espresso);
  font-weight: 900;
}

.cart-section-title strong {
  color: var(--leaf);
  font-size: 0.9rem;
}

.cart-form-grid,
.delivery-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.delivery-fields {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.delivery-fields > .form-wide,
.delivery-fields > label:first-child {
  grid-column: 1 / -1;
}

.delivery-fields[hidden],
.pickup-card[hidden] {
  display: none !important;
}

.pickup-card {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(31, 111, 91, 0.24);
  border-radius: var(--radius);
  background: var(--leaf-soft);
  color: var(--leaf);
}

.pickup-card span {
  color: var(--espresso);
  font-size: 0.92rem;
}

.cart-totals {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.bank-transfer-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(31, 111, 91, 0.24);
  border-radius: var(--radius);
  background: var(--leaf-soft);
}

.bank-transfer-card[hidden] {
  display: none !important;
}

.bank-transfer-card img {
  width: 140px;
  aspect-ratio: 1;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
}

.bank-transfer-card div {
  display: grid;
  gap: 4px;
}

.bank-transfer-card strong {
  color: var(--leaf);
}

.bank-transfer-card span {
  color: var(--espresso);
  font-size: 0.92rem;
}

.cart-message {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.shipping-options {
  display: grid;
  gap: 8px;
  padding-block: 4px;
}

.shipping-option,
.check-line {
  display: flex;
  align-items: center;
  gap: 9px;
}

.shipping-option {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.shipping-option input,
.check-line input {
  width: auto;
}

.shipping-option span,
.check-line span {
  margin: 0;
}

.cart-total-row {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.cart-total-row strong {
  color: var(--leaf);
}

.cart-page {
  min-height: calc(100svh - var(--header-h));
  padding-block: clamp(34px, 6vw, 72px);
  background:
    linear-gradient(180deg, rgba(223, 242, 234, 0.78), transparent 34%),
    var(--linen);
}

.cart-page__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}

.cart-page__head h1 {
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  font-weight: 500;
}

.cart-page__head p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
}

.cart-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.48fr);
  gap: 22px;
  align-items: start;
}

.cart-page__items,
.cart-page__summary .cart-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 34px rgba(32, 23, 19, 0.08);
}

.cart-page__items {
  overflow: hidden;
}

.cart-page__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.cart-page__panel-head h2 {
  margin-bottom: 0;
  font-size: 1.28rem;
}

.cart-page__panel-head--compact {
  padding: 0 0 14px;
  border-bottom: 0;
  background: transparent;
}

.cart-page__badge {
  min-width: max-content;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--leaf-soft);
  color: var(--leaf);
  font-size: 0.86rem;
  font-weight: 900;
}

.cart-page .cart-items {
  min-height: 0;
  max-height: none;
  overflow: visible;
  padding: 4px 18px 18px;
}

.cart-page .cart-summary {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  overflow: visible;
  border-top: 1px solid var(--line);
}

.cart-page .delivery-fields {
  grid-template-columns: 1fr;
}

.cart-page .checkout-address-grid {
  grid-template-columns: 1fr;
}

.cart-page .delivery-fields label,
.cart-page .delivery-fields .checkout-address-grid,
.cart-page .delivery-fields select {
  min-width: 0;
  width: 100%;
}

.cart-line--page {
  grid-template-columns: 84px 1fr;
  gap: 16px;
  padding-block: 18px;
}

.cart-line--page .cart-line__thumb {
  width: 84px;
  height: 84px;
}

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

.cart-line__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.small-button--ghost {
  background: #fff;
  color: var(--espresso);
}

.cart-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: clamp(34px, 7vw, 72px) 18px;
  text-align: center;
}

.cart-empty__mark {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cream);
  color: var(--espresso);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px var(--line);
}

.cart-empty h2 {
  margin-bottom: 0;
  font-size: 1.5rem;
}

.cart-empty p {
  max-width: 460px;
  margin-bottom: 8px;
  color: var(--muted);
}

.checkout-dialog,
.product-dialog,
.order-success-dialog {
  width: min(620px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 28px 70px rgba(32, 23, 19, 0.28);
}

.checkout-dialog::backdrop,
.product-dialog::backdrop,
.order-success-dialog::backdrop {
  background: rgba(32, 23, 19, 0.42);
}

.checkout-form {
  display: grid;
  gap: 14px;
  padding: 0 18px 18px;
}

.order-success-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.order-success-body > p {
  margin-bottom: 0;
  color: var(--muted);
}

.checkout-form .dialog-head {
  margin-inline: -18px;
}

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

.checkout-review {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.checkout-review div,
.product-dialog__line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.product-dialog__body {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.product-dialog__grid {
  display: grid;
  grid-template-columns: minmax(160px, 0.72fr) minmax(0, 1fr);
  gap: 18px;
}

.product-dialog__media {
  min-height: 220px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--cream);
  overflow: hidden;
}

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

.product-dialog__meta {
  display: grid;
  gap: 10px;
}

.product-options {
  display: grid;
  gap: 10px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 80;
  max-width: min(420px, calc(100% - 32px));
  padding: 12px 14px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 18px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

.hero .reveal {
  opacity: 1;
  transform: none;
}

@keyframes floatMark {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-14px) rotate(1deg);
  }
}

.admin-body {
  background:
    linear-gradient(135deg, rgba(31, 111, 91, 0.12), transparent 36%),
    var(--linen);
}

.admin-shell {
  min-height: 100svh;
}

.login-panel {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.login-card {
  width: min(440px, 100%);
  display: grid;
  gap: 16px;
  padding: 30px;
}

.login-card img,
.logo-preview {
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.login-card h1 {
  margin-bottom: 0;
  font-size: 2rem;
}

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

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

.forgot-form {
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.text-button {
  width: max-content;
  border: 0;
  background: transparent;
  color: var(--leaf);
  padding: 0;
  font-weight: 900;
  text-align: left;
}

.text-button:hover,
.text-button:focus-visible {
  color: var(--espresso);
  outline: none;
}

.admin-app {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100svh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  padding: 20px;
  border-right: 1px solid var(--line);
  background: rgba(255, 253, 246, 0.84);
  backdrop-filter: blur(16px);
}

.brand--admin .brand__logo {
  width: 48px;
  height: 48px;
}

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

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

.admin-topbar,
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-topbar h1,
.panel-heading h2 {
  margin-bottom: 0;
}

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

.admin-user-badge {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.admin-stats article {
  padding: 20px;
}

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

.admin-stats strong {
  display: block;
  margin-top: 8px;
  color: var(--espresso);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
}

.admin-panel {
  padding: clamp(18px, 3vw, 28px);
}

.admin-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

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

.product-form {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 248, 223, 0.42);
}

.form-wide,
.form-actions {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.preview-stack {
  grid-row: span 3;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 14px;
}

.logo-preview {
  width: 160px;
  height: 160px;
}

.file-drop {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px dashed rgba(75, 38, 14, 0.28);
  border-radius: var(--radius);
  background: #fff;
}

.file-drop input {
  padding: 0;
  border: 0;
  background: transparent;
}

.admin-list,
.order-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.admin-row,
.order-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.admin-row img,
.order-thumb {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--cream);
}

.admin-row h3,
.order-row h3 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.admin-row p,
.order-row p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-row--text {
  grid-template-columns: minmax(0, 1fr) auto;
}

.role-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.role-matrix article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.role-matrix h3 {
  margin-bottom: 4px;
  color: var(--espresso);
  font-size: 1rem;
}

.role-matrix p {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.role-caps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.role-caps span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--espresso);
  font-size: 0.78rem;
  font-weight: 800;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.small-button {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--espresso);
  font-weight: 800;
}

.small-button.is-danger {
  color: #8d1f1f;
}

.status-select {
  min-width: 150px;
}

.order-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.order-row .order-thumb {
  display: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--leaf-soft);
  color: var(--leaf);
  font-size: 0.78rem;
  font-weight: 800;
}

@media (max-width: 1040px) {
  .site-header {
    flex-wrap: wrap;
  }

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

  .hero__inner,
  .story__grid,
  .services__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    min-height: 360px;
  }

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

@media (max-width: 820px) {
  :root {
    --header-h: 70px;
  }

  .site-header {
    gap: 12px;
  }

  .brand__logo {
    width: 48px;
    height: 48px;
  }

  .hero {
    min-height: auto;
  }

  .hero__inner {
    min-height: auto;
    padding-block: 52px 38px;
  }

  .hero__metrics,
  .value-band__grid,
  .flow-grid,
  .cart-form-grid,
  .delivery-fields,
  .bank-transfer-card,
  .checkout-address-grid,
  .admin-stats,
  .product-dialog__grid,
  .grid-form,
  .product-form {
    grid-template-columns: 1fr;
  }

  .product-tools,
  .promo__inner,
  .section-heading,
  .cart-page__head,
  .admin-topbar,
  .panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .cart-page__layout {
    grid-template-columns: 1fr;
  }

  .cart-page .cart-summary {
    position: static;
  }

  .filter-chips {
    justify-content: flex-start;
  }

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

  .admin-sidebar {
    position: static;
    height: auto;
    grid-template-rows: auto;
  }

  .admin-nav {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    grid-template-columns: none;
    overflow-x: auto;
  }

  .preview-stack {
    grid-row: auto;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    padding-inline: 12px;
  }

  .brand span {
    display: none;
  }

  .cart-trigger {
    margin-left: auto;
  }

  .hero h1 {
    font-size: clamp(3rem, 16vw, 4.8rem);
  }

  .hero__actions,
  .form-actions {
    display: grid;
  }

  .hero__metrics,
  .products-grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    min-height: 280px;
  }

  .roast-note {
    position: static;
    width: 100%;
    margin-top: 16px;
  }

  .value-band__grid {
    width: 100%;
  }

  .section {
    padding-block: 54px;
  }

  .product-card__actions,
  .coupon-form {
    grid-template-columns: 1fr;
  }

  .cart-line--page {
    grid-template-columns: 64px 1fr;
  }

  .cart-line--page .cart-line__thumb {
    width: 64px;
    height: 64px;
  }

  .cart-line__actions {
    align-items: stretch;
  }

  .admin-row,
  .order-row {
    grid-template-columns: 56px 1fr;
  }

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

  .admin-row img,
  .order-thumb {
    width: 56px;
    height: 56px;
  }

  .row-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .row-actions > * {
    flex: 1 1 auto;
  }
}

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