/* Coffee Y'all — the online shop (shop.coffeeyallespresso.com).
   Phone first. No web fonts yet and nothing from another site (the shop
   host's Content-Security-Policy allows only its own files), no inline
   styles: pages switch classes and the hidden attribute. Tap targets are
   44px or more and inputs 16px or more (smaller makes iPhones zoom in). */
:root {
  --dark: #1c1c1e;
  --cream: #f6f1ea;
  --gold: #bc8d4b;
  --gold-text: #8a6425;
  --ink-soft: #55504a;
  --line: #e7dfd3;
  --ok: #1e7a3c;
  --ok-bg: #e3f4e8;
  --warn: #8a5300;
  --warn-bg: #fff1d6;
  --bad: #a8261b;
  --bad-bg: #fde8e6;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--dark);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-text); }
button, input, select { font-family: var(--font); font-size: 17px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: #fff; padding: 10px 14px; }
.skip:focus { left: 8px; }

/* the header: the brand and the cart */
.shop-head {
  background: var(--dark);
  color: #fff;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 5;
}
.shop-brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; font-size: 15px;
}
.shop-brand img { width: 40px; height: 40px; border-radius: 10px; }
.shop-brand small { display: block; font-size: 10px; letter-spacing: 3px; color: var(--gold); }
.cart-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  border-radius: 999px; background: var(--gold); color: var(--dark); font-weight: 800; text-decoration: none;
}
.cart-count {
  min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--dark); color: #fff;
  font-size: 14px; display: inline-flex; align-items: center; justify-content: center;
}
.shop-cats {
  display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line);
}
.shop-cats a {
  flex: none; padding: 10px 16px; min-height: 44px; border-radius: 999px; border: 2px solid var(--line);
  color: var(--dark); text-decoration: none; font-weight: 700; font-size: 15px;
}
.shop-cats a[aria-current="page"] { border-color: var(--gold); background: var(--cream); }

main { max-width: 960px; margin: 0 auto; padding: 24px 16px 48px; }
h1 { font-size: clamp(28px, 8vw, 40px); line-height: 1.1; font-weight: 800; margin: 6px 0 12px; }
h2 { font-size: 22px; margin: 28px 0 12px; }
h2 a { color: var(--dark); text-decoration: none; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold-text);
}
.lede { font-size: 19px; color: var(--ink-soft); margin: 0 0 8px; }
.crumbs { font-size: 15px; margin: 0 0 8px; }
.small { font-size: 15px; margin: 4px 0; }
.muted { color: var(--ink-soft); }
.loading { color: var(--ink-soft); }
.note { color: var(--ink-soft); }

/* product cards */
.shop-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 640px) { .shop-cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .shop-cards { grid-template-columns: repeat(4, 1fr); } }
.shop-card { background: #fff; border-radius: var(--radius); padding: 10px; box-shadow: 0 3px 12px rgba(28, 28, 30, .07); }
.shop-card.is-hidden { border: 2px dashed var(--gold); }
.shop-card-link { display: block; color: var(--dark); text-decoration: none; }
.shop-card-link img, .shop-card-nophoto { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; background: var(--line); }
.shop-card-nophoto { display: block; }
.shop-card-name { display: block; font-weight: 700; margin: 8px 0 2px; }
.shop-card-price { display: block; color: var(--ink-soft); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.badge {
  display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: var(--cream); border: 1px solid var(--line); color: var(--dark);
}
.badge.state { background: var(--warn-bg); border-color: var(--warn-bg); color: var(--warn); margin-top: 6px; }
.badge.staff { background: var(--warn-bg); color: var(--warn); }

/* a product */
.shop-product h1 { margin-bottom: 6px; }
.shop-price { font-size: 22px; font-weight: 800; margin: 4px 0 8px; }
.shop-summary { font-size: 19px; color: var(--ink-soft); }
.shop-photos { display: grid; gap: 10px; margin: 14px 0; }
.shop-photos img { border-radius: var(--radius); background: var(--line); }
@media (min-width: 760px) { .shop-photos { grid-template-columns: repeat(2, 1fr); } }
.buy { background: #fff; border-radius: var(--radius); padding: 18px; margin: 18px 0; box-shadow: 0 4px 18px rgba(28, 28, 30, .08); }
.opt { border: 0; padding: 0; margin: 0 0 14px; }
.opt legend { font-weight: 800; margin-bottom: 6px; }
.opt-values { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-value { position: relative; }
.opt-value input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt-value .opt-word {
  display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 8px 16px;
  border-radius: 12px; border: 2px solid var(--line); background: #fff; font-weight: 700; cursor: pointer;
}
.opt-value input:checked + .opt-word { border-color: var(--gold); background: var(--cream); }
.opt-value input:focus-visible + .opt-word { outline: 3px solid var(--gold); outline-offset: 2px; }
.opt-out { display: block; font-size: 12px; color: var(--bad); text-align: center; }
.field { margin: 0 0 14px; }
.field label { display: block; font-weight: 800; margin-bottom: 6px; }
.field select { min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 2px solid var(--line); background: #fff; font-size: 17px; }
.buy-price { font-size: 22px; font-weight: 800; margin: 6px 0 2px; }
.buy-state { margin: 0 0 10px; color: var(--ink-soft); }
.qty { display: inline-flex; align-items: center; gap: 4px; margin: 6px 0; }
.step {
  width: 44px; height: 44px; border-radius: 999px; border: 2px solid var(--line); background: #fff;
  font-size: 22px; font-weight: 800; cursor: pointer; color: var(--dark);
}
.step:disabled { opacity: .4; cursor: default; }
.qty-n { min-width: 36px; text-align: center; font-weight: 800; font-size: 19px; }
.btn-big {
  display: block; width: 100%; min-height: 56px; margin: 14px 0 8px; padding: 14px; font-size: 18px; font-weight: 800;
  letter-spacing: .5px; text-transform: uppercase; text-align: center; text-decoration: none; border: 0;
  border-radius: 999px; background: var(--gold); color: var(--dark); cursor: pointer;
}
.btn-big.blocked { background: var(--line); color: var(--ink-soft); cursor: not-allowed; }
.added { margin: 6px 0 0; font-weight: 700; color: var(--ok); }
.msg { padding: 12px 14px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); }
.shop-prices { border-collapse: collapse; margin: 16px 0; width: 100%; max-width: 420px; }
.shop-prices th, .shop-prices td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.shop-details { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; }
.shop-details dt { font-weight: 700; }
.shop-details dd { margin: 0; }

/* cards and buttons (coming soon, errors, the staff test) */
.card { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: 0 4px 18px rgba(28, 28, 30, .08); margin: 20px 0; }
.card p { margin: 0 0 12px; color: var(--ink-soft); }
.card p:last-child { margin-bottom: 0; }
.card.staff { border: 2px dashed var(--gold); }
.card.soon { border-left: 6px solid var(--gold); }
.btn {
  display: inline-block; font-size: 15px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  text-decoration: none; padding: 13px 24px; border-radius: 999px; border: 3px solid var(--gold);
  background: var(--gold); color: var(--dark);
}
.btn.dark { background: var(--dark); border-color: var(--dark); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn-plain {
  min-height: 44px; padding: 8px 12px; border: 0; background: none; color: var(--gold-text);
  text-decoration: underline; cursor: pointer;
}

/* the cart and checkout */
.changes { padding: 12px 14px 12px 32px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); }
.changes li { margin: 2px 0; }
.cart-lines, .co-lines { list-style: none; padding: 0; margin: 0; }
.cart-line {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: start;
  background: #fff; border-radius: var(--radius); padding: 12px; margin: 0 0 12px;
}
.cart-line img, .cart-line-nophoto { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.cart-line-nophoto { display: block; background: var(--line); }
.cart-line-main { grid-column: 2; }
.cart-line-name { font-weight: 800; color: var(--dark); }
.cart-line-total { grid-column: 3; }
.cart-foot { background: #fff; border-radius: var(--radius); padding: 16px; }
.cart-sum { display: flex; justify-content: space-between; font-size: 19px; margin: 6px 0; }
.co-step { border: 0; padding: 0; margin: 22px 0; }
.co-step legend, .co-step h2 { font-size: 20px; font-weight: 800; margin: 0 0 8px; }
.co-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.radios { display: grid; gap: 8px; }
.radio {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; background: #fff;
  border: 2px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 700;
}
.radio input { width: 22px; height: 22px; accent-color: var(--gold); }
.radio.first { border-color: var(--gold); }

/* the self-test */
.st-summary { font-weight: 800; padding: 12px 14px; border-radius: 12px; background: #fff; }
.st-summary.good, .st-results .good { color: var(--ok); }
.st-summary.bad, .st-results .bad { color: var(--bad); }
.st-results { font-size: 14px; }

.shop-foot { max-width: 960px; margin: 0 auto; padding: 18px 16px 36px; color: var(--ink-soft); font-size: 15px; border-top: 1px solid var(--line); }
