.cart-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--accent);
  border-radius: 9px;
  background: white;
  color: var(--accent);
  font-size: .9rem;
  font-weight: 650;
  white-space: nowrap;
}
.cart-trigger:hover { background: var(--chosen); }
.cart-trigger svg { flex: none; }
.cart-count {
  min-width: 22px;
  padding: 2px 4px;
  border-radius: 99px;
  background: var(--accent);
  color: #fff;
  font-size: .75rem;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.floating-cart {
  position: fixed;
  z-index: 3;
  inset: auto 16px max(16px, env(safe-area-inset-bottom)) auto;
  gap: 9px;
  min-height: 48px;
  padding-inline: 13px;
  border-radius: 99px;
  box-shadow: 0 4px 18px #06162a2b;
}
body:has(.floating-cart:not([hidden])) .cart-status {
  bottom: calc(max(16px, env(safe-area-inset-bottom)) + 56px);
}
.order-fields { display: grid; grid-template-columns: minmax(0, 1fr) 82px; align-items: end; gap: 8px; }
.order-fields .pack-price { align-self: center; margin: 0; }
.order input {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  color: var(--ink);
  font-weight: 400;
}
.order select { font-size: .9rem; padding-inline: 8px; }

.cart-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  box-sizing: border-box;
  width: min(100%, 490px);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--card);
  color: var(--ink);
}
.cart-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
body:has(.cart-dialog[open]) { overflow: hidden; }
.cart-dialog::backdrop { background: #06162a88; }
.cart-heading, .cart-body, .cart-summary { padding: 18px clamp(16px, 4vw, 26px); }
.cart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.cart-heading h2 { margin: 0; font-size: 1.55rem; }
.cart-close { min-height: 44px; padding-inline: 8px; }
.cart-body { overflow-y: auto; overscroll-behavior: contain; }
.cart-footer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.cart-whatsapp { flex: 1 1 auto; }
.cart-clear { min-height: 44px; padding-inline: 6px; color: #88503e; }
.cart-lines { margin: 0; padding: 0; list-style: none; }
.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}
.cart-line-details { display: grid; gap: 4px; }
.cart-line-details span, .cart-note { color: var(--muted); font-size: .875rem; }
.cart-line-controls { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
.cart-line-total { align-self: start; font-variant-numeric: tabular-nums; }
.cart-stepper {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--accent);
}
.cart-stepper button {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-weight: 700;
}
.cart-stepper button:hover:enabled { background: var(--chosen); }
.cart-stepper button:disabled { opacity: .45; cursor: default; }
.cart-stepper span { min-width: 2ch; text-align: center; font-variant-numeric: tabular-nums; }
.cart-remove { min-height: 44px; padding-inline: 6px; }
.cart-summary { border-top: 1px solid var(--line); padding-bottom: max(18px, env(safe-area-inset-bottom)); }
.cart-total { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.cart-note { margin-bottom: 12px; }
.cart-whatsapp { display: grid; place-items: center; text-align: center; text-decoration: none; }
.cart-status {
  position: fixed;
  z-index: 4;
  inset: auto 16px max(16px, env(safe-area-inset-bottom)) auto;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: .9rem;
  pointer-events: none;
}
.cart-status:empty { opacity: 0; }

@media (max-width: 1000px) {
  .nav-title { display: none; }
}
@media (max-width: 650px) {
  .nav-cart { padding-inline: 6px; gap: 4px; }
  .nav-cart-label { display: none; }
}
@media (max-width: 600px) {
  body:has(.layout:not([hidden])) .floating-cart {
    bottom: calc(max(16px, env(safe-area-inset-bottom)) + 60px);
  }
}
@media (max-width: 430px) {
  .nav { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; }
  .nav-actions { grid-column: 1 / -1; grid-row: 2; }
  .nav-cart { grid-column: 3; grid-row: 1; }
}

/* Compact result cards keep tasting and ordering details in a consistent order. */
.card { padding: clamp(14px, 2vw, 22px); }
.card .product-photo { margin-bottom: 10px; }
.card .product-photo img { aspect-ratio: 16 / 10; object-position: center 53%; }
.card h3 { margin: 5px 0 8px; font-size: clamp(1.2rem, 2.05vw, 1.48rem); letter-spacing: -.035em; }
.card .origin { font-size: .82rem; }
.card .taste-notes { margin-bottom: 8px; }
.card .taste-notes li { padding: 3px 7px; font-size: .82rem; }
.card-profile { display: flex; flex-wrap: wrap; gap: 2px 9px; margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.card-profile span:last-child { font-weight: 650; color: var(--accent); }
.card .order { gap: 7px; padding-top: 10px; }
.card .order select, .card .order input { min-height: 44px; }
.card .order .primary { padding-inline: 10px; }
@media (max-width: 430px) {
  .cart-footer-actions { flex-direction: column; align-items: stretch; }
}

.cup-description { margin: 0 0 8px; color: var(--muted); font-size: .875rem; line-height: 1.42; }
