/* The public shop: same tokens and parts as the staff app, laid out as a storefront. */
body.shop-page { overscroll-behavior-y: auto; }
.shop-wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }

.shop-top { position: sticky; top: 0; z-index: 20; background: var(--night); color: #fff; padding-top: var(--safe-top); }
.shop-top .shop-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.shop-top .brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; font-size: 16px; }
.shop-top .brand img { width: 36px; height: 36px; border-radius: 10px; background: #fff; object-fit: contain; }
.btn.wa { background: #1FAF5A; border-color: #1FAF5A; color: #fff; }
.btn.wa:hover { background: #18984D; }

.hero { background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); color: #E4F0F2; padding: 28px 0 34px; }
.hero h1 { margin: 0 0 8px; font-size: 26px; line-height: 1.35; color: #fff; }
.hero p { margin: 0 0 18px; max-width: 620px; color: #A9C2C9; }
.hero .btn { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #fff; }

.block { padding: 28px 0 8px; }
.block h2 { margin: 0 0 4px; font-size: 20px; }
.block .lead { margin: 0 0 16px; color: var(--muted); }
#products h2 { margin-bottom: 12px; }
#products .search { margin-bottom: 10px; }
#products .chips { margin-bottom: 14px; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid.pkgs { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .grid.pkgs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding: 44px 0 48px; }
  .hero h1 { font-size: 34px; }
}
@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid.pkgs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.card.pkg, .card.prod { display: flex; flex-direction: column; overflow: hidden; }
.pimg { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.pkg .pimg { aspect-ratio: 16 / 9; }
.prod .pimg { aspect-ratio: 1; cursor: zoom-in; }
.pimg img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.pimg .noimg { color: var(--faint); }
.pimg .noimg svg { width: 40px; height: 40px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 600; }
.tag svg { width: 14px; height: 14px; }
.pimg .tag { position: absolute; top: 10px; inset-inline-start: 10px; }
.tag.sm { padding: 1px 7px; font-size: 11.5px; margin-inline-end: 6px; }
.pbody { display: flex; flex-direction: column; gap: 8px; padding: 12px; flex: 1; }
.pbody h3 { margin: 0; font-size: 15px; line-height: 1.45; }
.prod .pbody h3 { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.parts { margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--muted); display: flex; flex-direction: column; gap: 3px; }
.parts .q { color: var(--brand-ink); font-weight: 600; }
.parts li { display: block; text-align: start; }
.parts .more { color: var(--faint); }
.pnote { margin: 0; font-size: 13px; color: var(--muted); }
.pfoot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.price { font-weight: 700; font-size: 16px; }
.pkg .price { font-size: 19px; }
.price .unit { font-weight: 400; font-size: 12.5px; color: var(--muted); }
.prod .pfoot { flex-direction: column; align-items: stretch; }
.prod .pfoot .btn, .prod .stepper { width: 100%; justify-content: center; }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--brand); border-radius: 10px; overflow: hidden; background: var(--surface); min-height: 36px; }
.stepper button { border: 0; background: var(--brand-soft); color: var(--brand-ink); width: 38px; min-height: 36px; display: grid; place-items: center; cursor: pointer; }
.stepper button svg { width: 16px; height: 16px; }
.stepper .num { min-width: 34px; text-align: center; font-weight: 600; }
.stepper.sm button { width: 32px; min-height: 30px; }
.stepper.sm { min-height: 30px; }

.cart-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + var(--safe-bottom)); background: linear-gradient(0deg, var(--bg) 70%, transparent); display: flex; justify-content: center; }
.cart-bar[hidden] { display: none; }
.cart-bar .btn { width: 100%; max-width: 520px; min-height: 52px; font-size: 15.5px; box-shadow: var(--shadow-lg); gap: 8px; }
.cart-bar .sep { opacity: .6; }
.cart-bar .go { margin-inline-start: auto; font-weight: 700; }

.cart-lines { display: flex; flex-direction: column; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-line .cl-name { grid-column: 1 / -1; font-weight: 500; }
.cart-line .cl-total { text-align: end; font-weight: 600; }
.cart-line .stepper { justify-self: start; }
@media (min-width: 720px) {
  .cart-line { grid-template-columns: 1fr auto 120px; }
  .cart-line .cl-name { grid-column: auto; }
}
.checkout-title { margin: 8px 0 0; font-size: 15px; }
.thanks { text-align: center; padding: 8px 0 4px; }
.thanks .ok-mark { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; }
.thanks .ok-mark svg { width: 28px; height: 28px; }
.thanks h3 { margin: 0 0 6px; }
.thanks p { margin: 0 0 16px; color: var(--muted); }

.shop-foot { margin-top: 36px; padding: 22px 0 110px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.shop-foot .shop-wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.shop-foot a { color: var(--brand-ink); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.shop-foot svg { width: 16px; height: 16px; }
