:root {
  --cream: #fff4dc;
  --surface: #fffdf7;
  --surface-strong: #fff7e9;
  --ink: #18251f;
  --muted: #746d61;
  --line: rgba(24, 37, 31, .1);
  --blue: #2454d7;
  --red: #f04436;
  --yellow: #f5bf2d;
  --gold: #f5b932;
  --brown: #61311f;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 0, rgba(245, 191, 45, .15), transparent 30%),
    radial-gradient(circle at 78% 18%, rgba(240, 68, 54, .06), transparent 26%),
    var(--cream);
  color: var(--ink);
  font-family: Manrope, "Segoe UI", sans-serif;
}

:root[lang="ckb"] body,
:root[lang="ckb"] button,
:root[lang="ckb"] input {
  font-family: "Vazirmatn", "Segoe UI", system-ui, sans-serif;
}

:root[lang="ckb"] .brand-sign b,
:root[lang="ckb"] .coffee-corner-card h1,
:root[lang="ckb"] .brewing-wide-card span,
:root[lang="ckb"] .filter-panel-head h2,
:root[lang="ckb"] .section-head h2,
:root[lang="ckb"] .sheet-head h2 {
  font-family: "Vazirmatn", "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0;
  line-height: 1.12;
  text-transform: none;
}

:root[lang="ckb"] .brand-sign small,
:root[lang="ckb"] .fulfillment-bar small,
:root[lang="ckb"] .showcase-label,
:root[lang="ckb"] .filter-panel-head p,
:root[lang="ckb"] .section-head p,
:root[lang="ckb"] .sheet-head p,
:root[lang="ckb"] .coffee-card__label {
  letter-spacing: 0;
  text-transform: none;
}

:root[lang="ckb"] .coffee-topbar,
:root[lang="ckb"] .fulfillment-bar,
:root[lang="ckb"] .filter-panel-head,
:root[lang="ckb"] .section-head,
:root[lang="ckb"] .sheet-head,
:root[lang="ckb"] .coffee-card__bottom,
:root[lang="ckb"] .live-price,
:root[lang="ckb"] .total-row,
:root[lang="ckb"] .order-line {
  direction: rtl;
}

:root[lang="ckb"] .fulfillment-bar,
:root[lang="ckb"] .coffee-showcase,
:root[lang="ckb"] .coffee-card,
:root[lang="ckb"] .sheet-card {
  text-align: right;
}

:root[lang="ckb"] .fulfillment-bar > svg {
  margin-right: auto;
  margin-left: 0;
  transform: scaleX(-1);
}

:root[lang="ckb"] .cart-trigger b {
  right: auto;
  left: -4px;
}

:root[lang="ckb"] .coffee-corner-card h1 {
  position: relative;
  z-index: 3;
  align-self: flex-end;
  width: fit-content;
  max-width: 55%;
  margin: 10px 0 10px;
  padding: 0;
  border-radius: 0;
  background: none;
  font-family: "Vazirmatn", "Segoe UI", sans-serif;
  font-size: clamp(18px, 5vw, 22px) !important;
  font-weight: 900;
  line-height: 1.1;
  text-align: right;
  white-space: normal;
  direction: rtl;
  text-shadow: 0 2px 9px rgba(0, 0, 0, .4);
}

:root[lang="ckb"] .coffee-corner-card p {
  display: none;
}

:root[lang="ckb"] .coffee-corner-card .showcase-label {
  position: absolute;
  top: 16px;
  right: auto;
  left: 16px;
}

:root[lang="ckb"] .coffee-corner-card .showcase-cta {
  right: 16px;
  left: auto;
}

:root[lang="en"] .coffee-corner-card .showcase-cta {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  margin-top: 10px;
  align-self: flex-start;
}

:root[lang="en"] .coffee-corner-card .showcase-cta b {
  font-size: 0;
}

:root[lang="en"] .coffee-corner-card .showcase-cta b::before {
  content: "\2192";
  font-size: 18px;
  line-height: 1;
}

:root[lang="ckb"] .brewing-wide-card {
  direction: ltr;
}

:root[lang="ckb"] .brewing-wide-card span,
:root[lang="ckb"] .brewing-wide-card b {
  position: relative;
  left: auto;
  right: auto;
  width: fit-content;
  max-width: 160px;
  text-align: right;
  direction: rtl;
  z-index: 3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}

:root[lang="ckb"] .brewing-wide-card span {
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: center;
  top: auto;
  bottom: auto;
  font-family: "Vazirmatn", "Segoe UI", sans-serif;
  font-size: clamp(16px, 4.5vw, 19px) !important;
  font-weight: 900;
  line-height: 1.15;
  white-space: normal;
}

:root[lang="ckb"] .brewing-wide-card b {
  display: none;
}

:root[lang="ckb"] .brewing-wide-card i {
  display: none;
}


:root[lang="en"] .coffee-corner-card h1 {
  position: relative;
  z-index: 3;
  max-width: 110px;
  margin: 10px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 5vw, 21px);
  font-weight: 900;
  line-height: 1;
  direction: ltr;
  text-align: left;
  text-shadow: 0 2px 9px rgba(0, 0, 0, .4);
  transform: translate(-8px, 15px);
}

:root[lang="en"] .coffee-corner-card p,
:root[lang="en"] .brewing-wide-card b {
  display: none;
}

:root[lang="en"] .brewing-wide-card span {
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: center;
  max-width: 160px;
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: clamp(16px, 4.5vw, 19px);
  font-weight: 900;
  line-height: 1.15;
  white-space: normal;
  direction: ltr;
  text-align: left;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}

:root[lang="ckb"] .coffee-chip-row,
:root[lang="ckb"] .coffee-grid {
  direction: rtl;
}

:root[lang="ckb"] .section-head a {
  white-space: nowrap;
}

:root[lang="ckb"] .coffee-card__title {
  min-height: 42px;
  font-size: 16px;
  line-height: 1.22;
}

:root[lang="ckb"] .coffee-card__desc {
  min-height: 48px;
  font-size: 11px;
  line-height: 1.45;
}

:root[lang="ckb"] .coffee-card__meta,
:root[lang="ckb"] .live-price strong,
:root[lang="ckb"] .total-row strong {
  direction: ltr;
  unicode-bidi: isolate;
}

:root[lang="ckb"] .coffee-values article + article {
  border-left: 0;
  border-right: 1px solid rgba(255, 255, 255, .16);
}

:root[lang="ckb"] .coffee-values article:first-child {
  border-right: 0;
}

:root[lang="ckb"] .amount-tabs,
:root[lang="ckb"] .preset-grid {
  direction: rtl;
}

:root[lang="ckb"] .field {
  text-align: right;
}

:root[lang="ckb"] .field input {
  direction: rtl;
  text-align: right;
}

a { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.3; }

.coffee-app {
  width: min(100%, 430px);
  min-height: 100vh;
  margin-inline: auto;
  padding: 18px 16px 104px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 253, 247, .78), rgba(255, 250, 240, .68));
}

.coffee-site-header {
  display: grid;
  gap: 14px;
}

.coffee-topbar,
.brand-sign,
.topbar-actions,
.fulfillment-bar,
.filter-panel-head,
.section-head,
.sheet-head,
.total-row {
  display: flex;
  align-items: center;
}

.coffee-topbar {
  justify-content: space-between;
}

.brand-sign {
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-sign-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 19px 19px 7px 19px;
  background: var(--blue);
  color: white;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 28px;
  box-shadow: 5px 5px 0 rgba(36, 84, 215, .15);
}

.brand-sign b,
.brand-sign small {
  display: block;
}

.brand-sign b {
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 22px;
  letter-spacing: -.6px;
  line-height: 1;
  text-transform: uppercase;
}

.brand-sign small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1;
  text-transform: uppercase;
}

.topbar-actions {
  gap: 11px;
}

.round-action {
  position: relative;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 253, 247, .9);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(31, 21, 11, .09);
}

.round-action svg { width: 25px; height: 25px; }
.cart-trigger { border: 1px solid var(--line); }

.lang-toggle {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

:root[lang="ckb"] .lang-toggle {
  font-family: Manrope, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.cart-trigger b {
  position: absolute;
  right: -4px;
  top: -4px;
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--red);
  color: white;
  font-size: 13px;
  line-height: 1;
}

.fulfillment-bar {
  width: 100%;
  gap: 13px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 247, .72);
  color: var(--ink);
  text-align: left;
  text-decoration: none;
}

.fulfillment-bar > svg {
  width: 16px;
  height: 16px;
  margin-left: auto;
  color: var(--muted);
}

.fulfillment-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(147, 189, 69, .24);
  color: #527322;
}

.fulfillment-icon svg { width: 23px; height: 23px; }
.fulfillment-bar small,
.fulfillment-bar b { display: block; }
.fulfillment-bar small { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.fulfillment-bar b { margin-top: 2px; font-size: 15px; }

.coffee-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: clamp(230px, 58vw, 256px) 100px;
  gap: 8px;
  margin-top: 16px;
}

.coffee-showcase {
  position: relative;
  overflow: hidden;
  display: block;
  border-radius: 19px;
  color: var(--ink);
  text-decoration: none;
  isolation: isolate;
}

.coffee-showcase::after {
  position: absolute;
  z-index: -1;
  content: "";
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
}

.showcase-label {
  position: relative;
  z-index: 3;
  display: inline-flex;
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .24);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.coffee-corner-card {
  padding: 18px 15px 70px;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(145deg, rgba(18, 17, 15, .16), transparent 48%),
    radial-gradient(circle at 75% 26%, rgba(255, 229, 161, .12), transparent 29%),
    var(--red);
  color: white;
}

.coffee-corner-card::after {
  z-index: 0;
}

.coffee-corner-card::after {
  right: -44px;
  top: -42px;
  width: 130px;
  height: 130px;
}

.coffee-corner-card h1 {
  position: relative;
  z-index: 3;
  margin: 10px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 8.5vw, 40px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: .92;
  text-transform: none;
}

.coffee-title-arrow {
  display: inline-grid;
  width: .9em;
  height: .9em;
  place-items: center;
  vertical-align: -.08em;
}

.coffee-title-arrow svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.coffee-corner-card p {
  position: relative;
  z-index: 3;
  max-width: 118px;
  margin: 0;
  color: rgba(255, 255, 255, .88);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.coffee-corner-card img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none;
  transform: none;
}

.showcase-cta {
  position: absolute;
  left: 16px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
}

/* arrow stays absolute — flex gap is unreliable in tall card */
.coffee-corner-card .showcase-cta {
  position: absolute;
  right: 16px;
  left: auto;
  bottom: 18px;
  margin-top: 0;
}

.showcase-cta b {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #11100f;
  color: white;
  font-size: 20px;
  font-weight: 700;
}

.coffee-lab-card {
  padding: 0;
  background:
    /* fine horizontal brush-stroke texture */
    repeating-linear-gradient(
      91deg,
      transparent 0px,
      transparent 4px,
      rgba(255, 255, 255, .016) 4px,
      rgba(255, 255, 255, .016) 5px,
      transparent 5px,
      transparent 11px
    ),
    /* cross-grain strokes for painted depth */
    repeating-linear-gradient(
      176deg,
      transparent 0px,
      transparent 9px,
      rgba(0, 0, 0, .028) 9px,
      rgba(0, 0, 0, .028) 10px,
      transparent 10px,
      transparent 18px
    ),
    /* paint build-up — upper-left lighter patch */
    radial-gradient(ellipse 90% 55% at 10% 8%, rgba(190, 130, 65, .13), transparent),
    /* paint build-up — center right subtle darkening */
    radial-gradient(ellipse 55% 70% at 88% 45%, rgba(10, 5, 2, .22), transparent),
    /* paint worn thin — lower-left mid-tone lift */
    radial-gradient(ellipse 65% 45% at 18% 85%, rgba(160, 95, 40, .1), transparent),
    /* warm lamp-glow focus from bottom for machine */
    radial-gradient(ellipse 95% 50% at 50% 108%, rgba(195, 100, 28, .38), transparent 68%),
    /* base wall tone — warm sienna/umber plaster */
    #261510;
  color: white;
}

/* glowing counter line where machine sits */
.coffee-lab-card::before {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  height: 1px;
  content: "";
  background: linear-gradient(
    90deg,
    transparent 5%,
    rgba(200, 135, 55, .4) 28%,
    rgba(245, 185, 80, .75) 50%,
    rgba(200, 135, 55, .4) 72%,
    transparent 95%
  );
  z-index: 3;
}

/* warm ambient glow pool under the machine */
.coffee-lab-card::after {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 65px;
  border-radius: 50%;
  content: "";
  background: radial-gradient(ellipse, rgba(205, 105, 28, .42), transparent 70%);
  z-index: 0;
}

.coffee-lab-card .coffee-machine {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 2;
  width: 300px;
  height: 286px;
  transform: translateX(-50%) scale(.60);
  transform-origin: bottom center;
}

.brewing-wide-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  align-content: center;
  row-gap: 4px;
  column-gap: 12px;
  padding: 14px 18px;
  background:
    linear-gradient(145deg, rgba(18, 17, 15, .16), transparent 48%),
    radial-gradient(circle at 75% 26%, rgba(255, 229, 161, .12), transparent 29%),
    var(--red);
  color: white;
}

.brewing-wide-card::after {
  display: none;
}

.brewing-wide-card span,
.brewing-wide-card b {
  position: relative;
  z-index: 2;
  display: block;
}

.brewing-wide-card span {
  grid-column: 1;
  grid-row: 1;
  max-width: 160px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(19px, 5vw, 22px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}

.brewing-wide-card b {
  grid-column: 1;
  grid-row: 2;
  max-width: 150px;
  color: rgba(255, 255, 255, .82);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.brewing-wide-card i {
  display: none !important;
}

.brewing-wide-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  object-position: center 46%;
  filter: none;
}


.coffee-filter-panel {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(24, 37, 31, .08);
  border-radius: 22px;
  background: rgba(255, 253, 247, .72);
}

.filter-panel-head {
  justify-content: space-between;
  gap: 12px;
}

.filter-panel-head p,
.section-head p,
.sheet-head p {
  margin: 0 0 5px;
  color: var(--red);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.filter-panel-head h2,
.section-head h2,
.sheet-head h2 {
  margin: 0;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 25px;
  letter-spacing: -1.2px;
  line-height: .95;
  text-transform: uppercase;
}

.coffee-chip-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 82px;
  gap: 9px;
  margin: 13px -14px -2px;
  padding: 0 14px 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.coffee-chip-row::-webkit-scrollbar { display: none; }

.coffee-chip-row a {
  min-height: 106px;
  display: grid;
  grid-template-rows: 68px auto;
  align-items: center;
  justify-items: center;
  gap: 7px;
  padding: 8px 7px 9px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  scroll-snap-align: start;
}

.coffee-chip-row img {
  width: 64px;
  height: 64px;
  display: block;
  border-radius: 14px;
  object-fit: cover;
  background: var(--surface-strong);
}

.coffee-chip-row span {
  line-height: 1.05;
}

.coffee-content {
  display: grid;
  gap: 20px;
  padding-top: 18px;
  min-width: 0;
}

.coffee-section {
  min-width: 0;
  overflow: hidden;
  scroll-margin-top: 16px;
}

.section-head {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-head > div { min-width: 0; }

.section-head a {
  flex: 0 0 auto;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 247, .68);
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
}

.coffee-grid {
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 178px;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.coffee-grid::-webkit-scrollbar { display: none; }

.coffee-card {
  overflow: hidden;
  border: 1px solid rgba(24, 37, 31, .08);
  border-radius: 19px;
  background: var(--surface);
  box-shadow: 0 12px 20px rgba(31, 21, 11, .08);
  scroll-snap-align: start;
}

.coffee-card__image {
  height: 166px;
  background: #efe4d2 center / cover no-repeat;
}

.coffee-card__body {
  display: grid;
  gap: 6px;
  padding: 11px;
}

.coffee-card__label {
  margin: 0;
  color: var(--brown);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.coffee-card__title {
  min-height: 38px;
  margin: 0;
  font-size: 15px;
  line-height: 1.13;
}

.coffee-card__desc {
  min-height: 44px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.34;
}

.coffee-card__bottom {
  min-height: 40px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
  margin: 4px -11px -11px;
  padding: 9px 10px;
  background: var(--ink);
}

.coffee-card__meta {
  margin: 0;
  color: white;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
}

.coffee-card__add {
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
}

.coffee-card--gear .coffee-card__image { height: 150px; }

.coffee-values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 2px;
  padding: 16px 8px;
  border-radius: 22px;
  background: var(--ink);
  color: white;
}

.coffee-values article {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 0 6px;
  text-align: center;
}

.coffee-values article + article {
  border-left: 1px solid rgba(255, 255, 255, .16);
}

.coffee-values span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.coffee-values b { font-size: 10px; line-height: 1.2; }
.coffee-values small { color: rgba(255, 255, 255, .72); font-size: 9px; line-height: 1.2; }

.coffee-empty,
.empty {
  padding: 18px;
  border-radius: 18px;
  background: var(--surface-strong);
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  align-items: end;
  justify-items: center;
  opacity: 0;
  pointer-events: none;
  background: rgba(24, 37, 31, .5);
  transition: opacity .25s ease;
}

.sheet.open {
  opacity: 1;
  pointer-events: auto;
}

.sheet-card {
  width: min(100%, 430px);
  max-height: 86vh;
  overflow: auto;
  padding: 21px;
  border-radius: 25px 25px 18px 18px;
  background: var(--surface);
  box-shadow: 0 -18px 42px rgba(24, 37, 31, .18);
  transform: translateY(18px);
  transition: transform .25s ease;
}

.sheet.open .sheet-card { transform: translateY(0); }
.sheet-head { justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sheet-head h2 { font-size: 22px; }

.circle-close {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: white;
}

.circle-close svg { width: 19px; height: 19px; }

.amount-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(24, 37, 31, .08);
}

.amount-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.amount-tabs button.active {
  background: var(--surface-strong);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(31, 27, 19, .11);
}

.amount-area { margin: 18px 0; }

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

.preset-grid button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-strong);
  color: var(--ink);
  font-weight: 850;
}

.field {
  display: grid;
  gap: 8px;
  margin-top: 13px;
}

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

.field input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-strong);
  color: var(--ink);
  outline: 0;
}

.live-price {
  justify-content: space-between;
  padding-top: 16px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.live-price span { color: var(--muted); font-weight: 850; }
.live-price strong { font-size: 22px; }

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

.order-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-strong);
}

.order-line h3 { margin: 0 0 5px; font-size: 15px; }
.order-line p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.35; }
.remove-line { border: 0; background: transparent; color: var(--red); font-weight: 900; }

.total-row {
  justify-content: space-between;
  padding-top: 16px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.total-row span { color: var(--muted); font-weight: 850; }
.total-row strong { font-size: 22px; }

.whatsapp {
  width: 100%;
  min-height: 55px;
  display: grid;
  place-items: center;
  margin-top: 18px;
  border-radius: 18px;
  background: #1b9258;
  color: white;
  text-decoration: none;
  font-weight: 900;
}

.primary-button {
  width: 100%;
  min-height: 55px;
  display: grid;
  place-items: center;
  margin-top: 18px;
  border: 0;
  border-radius: 18px;
  background: var(--ink);
  color: white;
  font-weight: 900;
}

.coffee-machine {
  position: relative;
  width: 300px;
  height: 286px;
  filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .28));
}

.coffee-machine::before {
  position: absolute;
  inset: auto -28px -30px;
  height: 24px;
  border-radius: 3px 3px 1px 1px;
  content: "";
  background:
    /* wood grain — fine horizontal lines */
    repeating-linear-gradient(
      88deg,
      transparent 0px,
      transparent 5px,
      rgba(0, 0, 0, .06) 5px,
      rgba(0, 0, 0, .06) 6px,
      transparent 6px,
      transparent 13px
    ),
    /* wood tone — dark walnut */
    linear-gradient(180deg,
      #5c3520 0%,
      #3e2010 35%,
      #2b1509 100%
    );
  box-shadow:
    inset 0 1.5px 0 rgba(255, 200, 140, .35),
    0 5px 0 #1a0c06,
    0 8px 22px rgba(0, 0, 0, .55);
}

.coffee-header {
  position: absolute;
  inset: 0 0 auto;
  height: 84px;
  border: 2px solid rgba(56, 37, 28, .18);
  border-radius: 13px;
  background: linear-gradient(180deg, #fff3e6, #d8c9bf);
}

.coffee-header__buttons {
  position: absolute;
  top: 25px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #191716;
}

.coffee-header__buttons::after {
  position: absolute;
  bottom: -8px;
  left: calc(50% - 3px);
  width: 6px;
  height: 8px;
  content: "";
  background-color: #6a625e;
}

.coffee-header__button-one { left: 21px; }
.coffee-header__button-two { left: 55px; }

.coffee-header__display {
  position: absolute;
  top: calc(50% - 25px);
  left: calc(50% - 25px);
  width: 50px;
  height: 50px;
  border: 6px solid #3fbcae;
  border-radius: 50%;
  background-color: #bce2d9;
}

.coffee-header__details {
  position: absolute;
  top: 16px;
  right: 17px;
  width: 8px;
  height: 22px;
  background-color: #8b817d;
  box-shadow: -13px 0 0 #8b817d, -26px 0 0 #8b817d;
}

.coffee-medium {
  position: absolute;
  top: 80px;
  left: 4%;
  width: 92%;
  height: 168px;
  background-color: #b8aaa5;
}

.coffee-medium::before {
  position: absolute;
  bottom: 0;
  left: 5%;
  width: 90%;
  height: 104px;
  border-radius: 22px 22px 0 0;
  content: "";
  background-color: #736965;
}

.coffe-medium__exit {
  position: absolute;
  top: 0;
  left: calc(50% - 30px);
  width: 60px;
  height: 20px;
  background-color: #151312;
}

.coffe-medium__exit::before {
  position: absolute;
  bottom: -20px;
  left: calc(50% - 25px);
  width: 50px;
  height: 20px;
  border-radius: 0 0 50% 50%;
  content: "";
  background-color: #151312;
}

.coffe-medium__exit::after {
  position: absolute;
  bottom: -30px;
  left: calc(50% - 5px);
  width: 10px;
  height: 10px;
  content: "";
  background-color: #151312;
}

.coffee-medium__arm {
  position: absolute;
  top: 16px;
  right: 25px;
  width: 70px;
  height: 20px;
  background-color: #151312;
}

.coffee-medium__arm::before {
  position: absolute;
  top: 7px;
  left: -15px;
  width: 15px;
  height: 5px;
  content: "";
  background-color: #9a908c;
}

.coffee-medium__liquid {
  position: absolute;
  top: 50px;
  left: calc(50% - 3px);
  width: 6px;
  height: 63px;
  opacity: 0;
  background-color: #74311d;
  animation: liquid 4s 1s linear infinite;
}

.coffee-medium__cup {
  position: absolute;
  bottom: 0;
  left: calc(50% - 41px);
  width: 82px;
  height: 48px;
  border-radius: 0 0 72px 72px / 0 0 112px 112px;
  background-color: #fff;
}

.coffee-medium__cup::before {
  position: absolute;
  top: 10px;
  left: calc(50% - 6px);
  width: 12px;
  height: 12px;
  border-radius: 50% 0 50% 0;
  content: "";
  background: var(--gold);
  transform: rotate(-28deg);
}

.coffee-medium__cup::after {
  position: absolute;
  top: 6px;
  right: -13px;
  width: 20px;
  height: 20px;
  border: 5px solid #fff;
  border-radius: 50%;
  content: "";
}

.coffee-medium__smoke {
  position: absolute;
  width: 9px;
  height: 28px;
  border-radius: 999px;
  background-color: rgba(255, 243, 232, .72);
}

.coffee-medium__smoke-one { bottom: 50px; left: 106px; opacity: 0; animation: smokeOne 3s 1s linear infinite; }
.coffee-medium__smoke-two { bottom: 70px; left: 122px; opacity: 0; animation: smokeTwo 3s 2s linear infinite; }
.coffee-medium__smoke-three { right: 122px; bottom: 65px; opacity: 0; animation: smokeTwo 3s 3s linear infinite; }
.coffee-medium__smoke-for { right: 106px; bottom: 50px; opacity: 0; animation: smokeOne 3s 2s linear infinite; }

.coffee-footer {
  position: absolute;
  bottom: 26px;
  left: 2%;
  width: 96%;
  height: 16px;
  border-radius: 10px;
  background-color: #38bdae;
}

.coffee-footer::after {
  position: absolute;
  bottom: -25px;
  left: -9px;
  width: 106%;
  height: 27px;
  content: "";
  background-color: #070606;
}

@keyframes liquid {
  0% { height: 0; opacity: 1; }
  5% { height: 0; opacity: 1; }
  20% { height: 62px; opacity: 1; }
  95% { height: 62px; opacity: 1; }
  100% { height: 62px; opacity: 0; }
}

@keyframes smokeOne {
  0% { bottom: 20px; opacity: 0; transform: translateY(0) scale(.8); }
  40% { bottom: 50px; opacity: .62; }
  80% { bottom: 92px; opacity: .26; transform: translateY(-8px) scale(1.35); }
  100% { bottom: 96px; opacity: 0; transform: translateY(-10px) scale(1.5); }
}

@keyframes smokeTwo {
  0% { bottom: 40px; opacity: 0; transform: translateY(0) scale(.8); }
  40% { bottom: 70px; opacity: .62; }
  80% { bottom: 102px; opacity: .28; transform: translateY(-10px) scale(1.45); }
  100% { bottom: 108px; opacity: 0; transform: translateY(-12px) scale(1.6); }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE: Coffee page — compact phones (≤ 360px)
   Galaxy A mini, iPhone SE 1/2, older budget Androids
   ══════════════════════════════════════════════════ */
@media (max-width: 360px) {
  .coffee-app { padding-inline: 8px; }

  /* Showcase grid: tighter rows */
  .coffee-showcase-grid {
    grid-template-rows: clamp(206px, 56vw, 230px) 94px;
    gap: 8px;
  }

  .coffee-corner-card { padding: 13px 13px 56px; }
  .coffee-corner-card h1 { font-size: clamp(26px, 7.5vw, 32px); margin: 8px 0 8px; }
  .coffee-corner-card p { font-size: 12px; max-width: 100px; }
  .coffee-corner-card img { width: 100%; height: 100%; }

  .coffee-lab-card .coffee-machine {
    left: 50%;
    bottom: -8px;
    width: 300px;
    height: 286px;
    transform: translateX(-50%) scale(.52);
  }

  .brewing-wide-card span { font-size: 19px; }
  .brewing-wide-card b { max-width: 120px; font-size: 10px; }
  .brewing-wide-card img { inset: 0; width: 100%; height: 100%; object-position: center 46%; }

  /* Coffee category chips */
  .coffee-chip-row { grid-auto-columns: 72px; margin-inline: -8px; padding-inline: 8px; }
  .coffee-chip-row a { min-height: 94px; grid-template-rows: 58px auto; font-size: 10px; }
  .coffee-chip-row img { width: 54px; height: 54px; }

  /* Coffee cards */
  .coffee-grid { grid-auto-columns: 158px; }
  .coffee-card__image { height: 146px; }
  .coffee-card__title { font-size: 13px; min-height: 32px; }
  .coffee-card__desc { font-size: 10px; min-height: 36px; }

  /* Values strip: 2-column layout on very small phones */
  .coffee-values { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 0; }
  .coffee-values article:nth-child(3) { border-left: 0; }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE: Coffee page — mid phones (361px–390px)
   iPhone 12/13 mini, iPhone SE 3rd gen, Galaxy S22
   ══════════════════════════════════════════════════ */
@media (min-width: 361px) and (max-width: 390px) {
  .coffee-showcase-grid {
    grid-template-rows: clamp(218px, 57vw, 242px) 98px;
  }

  .coffee-corner-card { padding: 15px 14px 62px; }
  .coffee-corner-card h1 { font-size: clamp(28px, 8vw, 36px); }

  .coffee-chip-row { grid-auto-columns: 78px; }
  .coffee-grid { grid-auto-columns: 166px; }
}

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

/* ── Bottom navigation bar ── */
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 12px;
  z-index: 7;
  width: min(calc(100% - 28px), 402px);
  height: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(222, 214, 199, .9);
  border-radius: 26px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 42px rgba(31, 27, 19, .22);
  transform: translateX(-50%);
}

.bottom-nav-btn {
  position: relative;
  display: grid;
  place-items: center;
  gap: 3px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}

.bottom-nav-btn:hover,
.bottom-nav-btn:focus-visible {
  background: var(--ink);
  color: white;
  outline: 0;
}

.nav-active,
.nav-active:hover,
.nav-active:focus-visible {
  background: var(--ink);
  color: white;
  outline: 0;
  box-shadow: 0 4px 12px rgba(24, 37, 31, .28);
}

.bottom-nav-btn svg {
  width: 22px;
  height: 22px;
}

.bottom-nav-btn b.nav-cart-count {
  position: absolute;
  right: 6px;
  top: 4px;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--red);
  color: white;
  font-size: 10px;
  line-height: 1;
}

.bottom-nav--five {
  grid-template-columns: repeat(5, 1fr);
  width: min(calc(100% - 16px), 460px);
  gap: 4px;
  padding: 7px;
}

.bottom-nav--five .bottom-nav-btn {
  font-size: 10px;
}

.bottom-nav--five svg {
  width: 20px;
  height: 20px;
}
