/* card.css — the public digital card (Section 4, 12).
   Mobile first: most people open a card from a QR scan or an NFC tap.
   Colours come from the owner's choices via --pc-* custom properties, which
   the server has already adjusted for contrast (apps/cards/colors.py). */

.pcard {
  container-type: inline-size;
  --pc-radius: var(--radius-pill);
  --pc-link: var(--pc-accent-text);
  position: relative;
  width: 100%;
  max-width: 30rem;
  margin-inline: auto;
  background: var(--surface);
  color: var(--ink);
  overflow: hidden;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pcard {
    --pc-link: var(--pc-accent-text-dark);
  }
}
:root[data-theme="dark"] .pcard {
  --pc-link: var(--pc-accent-text-dark);
}
.pcard--btn-rounded {
  --pc-radius: 0.75rem;
}
.pcard--btn-square {
  --pc-radius: 0.25rem;
}

/* --- band and head --------------------------------------------------- */

.pcard__band {
  position: relative;
  height: 8.5rem;
  background: var(--pc-band);
  background-image: radial-gradient(28rem 10rem at 85% 0%, rgb(255 255 255 / 0.18), transparent 70%),
    linear-gradient(135deg, color-mix(in srgb, var(--pc-band) 100%, #000 0%), color-mix(in srgb, var(--pc-band) 70%, #000));
  background-size: cover;
  background-position: center;
}
.pcard__logo {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
  padding: 0.35rem;
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.18);
}
.pcard__head {
  padding: 0 1.5rem;
  text-align: center;
}
.pcard__avatar {
  width: 7.5rem;
  height: 7.5rem;
  margin: -3.75rem auto 0;
  border-radius: 50%;
  border: 4px solid var(--surface);
  background: var(--pc-accent);
  color: var(--pc-on-accent);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 8px 24px -8px rgb(0 0 0 / 0.35);
  position: relative;
}
.pcard__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* A logo in the profile circle: whole, on white, never cropped. */
.pcard__avatar--logo {
  background: #ffffff;
}
.pcard__avatar--logo img {
  object-fit: contain;
  padding: 20%;
}
.pcard__avatar span {
  font-size: 2.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.pcard__name {
  margin-top: 1rem;
  font-size: 1.625rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}
.pcard__role {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.975rem;
}
.pcard__org {
  color: var(--ink-soft);
  font-weight: 550;
}

/* Banner: left-aligned, taller band, avatar sits on the band's edge. */
.pcard--banner .pcard__band {
  height: 10.5rem;
}
.pcard--banner .pcard__head {
  text-align: left;
}
.pcard--banner .pcard__avatar {
  margin-left: 0;
}
/* Minimal: no band. */
.pcard--minimal .pcard__band {
  height: 0;
}
.pcard--minimal .pcard__logo {
  display: none;
}
.pcard--minimal .pcard__avatar {
  margin-top: 2rem;
  border-color: color-mix(in srgb, var(--pc-accent) 25%, var(--surface));
}

/* --- actions --------------------------------------------------------------- */

.pcard__primary {
  display: flex;
  gap: 0.625rem;
  padding: 1.5rem 1.5rem 0;
}
.pcard__save {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  border-radius: var(--pc-radius);
  background: var(--pc-accent);
  color: var(--pc-on-accent);
  font-weight: 650;
  font-size: 1.0625rem;
  text-decoration: none;
  box-shadow: 0 10px 20px -10px color-mix(in srgb, var(--pc-accent) 80%, transparent);
  transition: transform var(--dur-fast), box-shadow var(--dur-fast), filter var(--dur-fast);
}
.pcard__save:hover {
  text-decoration: none;
  filter: brightness(1.06);
}
.pcard__save:active {
  transform: scale(0.98);
}
.pcard__share {
  display: grid;
  place-items: center;
  width: 3.25rem;
  min-height: 3.25rem;
  border-radius: var(--pc-radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
}
.pcard__share:hover {
  background: var(--bg-alt);
}

.pcard__quick {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 0.5rem;
  padding: 1rem 1.5rem 0;
}
.pcard__quick a {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: 0.75rem 0.25rem;
  border-radius: 0.875rem;
  background: var(--bg-alt);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 550;
  text-decoration: none;
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.pcard__quick a span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pcard__quick a .icon {
  color: var(--pc-link);
}
.pcard__quick a:hover {
  background: color-mix(in srgb, var(--pc-accent) 12%, var(--bg-alt));
}
.pcard__quick a:active {
  transform: scale(0.97);
}

/* --- details --------------------------------------------------------------- */

.pcard__details ul,
.pcard__social ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pcard__details {
  padding: 1.25rem 1.5rem 0;
}
.pcard__details li + li {
  border-top: 1px solid var(--border);
}
.pcard__details a,
.pcard__static {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-height: 3.5rem;
  padding: 0.5rem 0;
  color: var(--ink);
  text-decoration: none;
}
.pcard__details a:hover .pcard__val {
  color: var(--pc-link);
  text-decoration: underline;
}
.pcard__ico {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--pc-accent) 12%, var(--surface));
  color: var(--pc-link);
}
.pcard__val {
  display: block;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.pcard__lbl {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
}

.pcard__bio {
  margin: 1.25rem 1.5rem 0;
  padding: 1rem 1.125rem;
  border-radius: 1rem;
  background: var(--bg-alt);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* --- social ----------------------------------------------------------------------- */

.pcard__social {
  padding: 1.25rem 1.5rem 0;
}
.pcard__social--list ul {
  display: grid;
  gap: 0.5rem;
}
.pcard__social--list a {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-height: 3.25rem;
  padding: 0.375rem 1rem 0.375rem 0.375rem;
  border: 1px solid var(--border);
  border-radius: var(--pc-radius);
  color: var(--ink);
  text-decoration: none;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.pcard__social--list a:hover {
  border-color: var(--pc-accent);
}
.pcard__social--list .pcard__ico,
.pcard__social--grid .pcard__ico {
  border-radius: calc(var(--pc-radius) - 0.25rem);
}
.pcard__social--list .pcard__val {
  flex: 1;
}
.pcard__go {
  color: var(--muted);
}
.pcard__social--grid ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
.pcard__social--grid a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 3.25rem;
  padding: 0.375rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  color: var(--ink);
  font-size: 0.9rem;
  text-decoration: none;
}
.pcard__social--grid .pcard__go {
  display: none;
}
.pcard__social--row ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
}
.pcard__social--row a {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--pc-radius);
  background: var(--bg-alt);
  color: var(--pc-link);
}
.pcard__social--row .pcard__ico {
  background: transparent;
}

/* --- panels (lead capture, QR) ------------------------------------------------ */

.pcard__panel {
  margin: 1.25rem 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: 1rem;
}
.pcard__panel + .pcard__panel {
  margin-top: 0.625rem;
}
.pcard__panel summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0 1rem;
  list-style: none;
  cursor: pointer;
  font-weight: 600;
}
.pcard__panel summary::-webkit-details-marker {
  display: none;
}
.pcard__panel summary > .icon:first-child {
  color: var(--pc-link);
}
.pcard__panel summary span {
  flex: 1;
}
.pcard__chev {
  transition: transform var(--dur);
  color: var(--muted);
}
.pcard__panel[open] .pcard__chev {
  transform: rotate(180deg);
}
.pcard__form {
  padding: 0 1rem 1rem;
  gap: 1rem;
}
.pcard__submit {
  min-height: 3rem;
  border: 0;
  border-radius: var(--pc-radius);
  background: var(--pc-accent);
  color: var(--pc-on-accent);
  font-weight: 650;
}
.pcard__qr {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  padding: 0 1rem 1.25rem;
  text-align: center;
}
.pcard__qr svg {
  width: 13rem;
  height: auto;
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 0.25rem;
}

/* --- foot --------------------------------------------------------------------------- */

.pcard__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1.75rem 1.5rem 2rem;
}
.pcard__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.25rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 550;
  text-decoration: none;
}
.pcard__brand img {
  width: 1.5rem;
  height: auto;
}
.pcard__brand--small {
  font-size: 0.75rem;
  opacity: 0.8;
}
.pcard__report {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2rem;
  color: var(--muted);
  font-size: 0.75rem;
}

/* --- the page around the card ------------------------------------------------------- */

.card-page {
  background: var(--bg);
}
@media (min-width: 36rem) {
  .card-page main {
    padding: 2.5rem 1rem 4rem;
  }
  .card-page .pcard {
    border-radius: 1.75rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
}
.card-page .toasts {
  top: 1rem;
}

/* --- business page ------------------------------------------------------------------ */

/* The "Explore Business" button on the card, and the same look for "Contact card" on the page. */
.pcard__explore-row {
  padding: 0.75rem 1.5rem 0;
}
.pcard__explore {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  border: 1.5px solid var(--pc-accent);
  border-radius: var(--pc-radius);
  color: var(--pc-link);
  font-weight: 650;
  text-decoration: none;
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.pcard__explore:hover {
  background: color-mix(in srgb, var(--pc-accent) 10%, var(--surface));
  text-decoration: none;
}
.pcard__explore:active {
  transform: scale(0.98);
}

.pcard.biz {
  max-width: 40rem;
}
/* On a computer the business page is a shop front that uses the window, not a phone card in the middle of it. */
@media (min-width: 60rem) {
  .pcard.biz {
    max-width: 76rem;
  }
}
.biz-preview {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  background: var(--bg-alt);
  color: var(--ink-soft);
  font-size: 0.8125rem;
}
.biz-section {
  padding: 1.5rem 1.5rem 0;
}
.biz-section h2 {
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.biz-text {
  display: block;
  color: var(--ink-soft);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}
.biz-grid,
.biz-list,
.biz-reviews {
  list-style: none;
  margin: 0;
  padding: 0;
}
.biz-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (min-width: 36rem) {
  .biz-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.biz-item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
}
.biz-item[hidden] {
  display: none;
}
.biz-item__link {
  display: flex;
  flex: 1;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}
.biz-item__link:hover h3,
.biz-item__link:focus-visible h3 {
  text-decoration: underline;
}
.biz-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--bg-alt);
}
.biz-item__body {
  padding: 0.625rem 0.75rem 0.75rem;
}
.biz-item h3 {
  font-size: 0.95rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.biz-price {
  margin-top: 0.125rem;
  color: var(--pc-link);
  font-weight: 650;
}
.biz-item--picked {
  outline: 2px solid var(--pc-accent);
  outline-offset: 2px;
}
.biz-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 0.375rem;
  min-height: 2.5rem;
  padding: 0.5rem 0.625rem;
  border-radius: 0.75rem;
  background: #0b7a3e; /* WhatsApp green, dark enough for white text (5.6:1) */
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 650;
  text-decoration: none;
}
.biz-buy:hover,
.biz-buy:focus-visible {
  background: #095f31;
}
.biz-item .biz-text {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
}
.biz-list {
  display: grid;
  gap: 0.75rem;
}
.biz-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}
.biz-list strong {
  display: block;
  font-weight: 600;
}
.biz-reviews {
  display: grid;
  gap: 0.75rem;
}
.biz-reviews li {
  padding: 1rem 1.125rem;
  border-radius: 1rem;
  background: var(--bg-alt);
}
.biz-stars {
  color: var(--pc-link);
  letter-spacing: 0.1em;
}
.biz-reviews blockquote {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}
.biz-author {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

/* --- the shop front -------------------------------------------------------------------------------------- */

.shop-top__text {
  min-width: 0;
}
@media (min-width: 60rem) {
  .shop-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 28rem);
    gap: 0 2rem;
    align-items: start;
    padding: 0 2rem;
  }
  .shop-top .pcard__head {
    display: flex;
    align-items: flex-end;
    gap: 1.25rem;
    padding: 0;
    text-align: left;
  }
  .shop-top .pcard__avatar {
    flex: none;
    margin: -3.75rem 0 0;
  }
  .pcard--minimal .shop-top .pcard__avatar {
    margin-top: 2rem;
  }
  .shop-top .pcard__name {
    margin-top: 0;
  }
  .shop-top .pcard__primary,
  .shop-top .pcard__quick {
    padding-inline: 0;
  }
  .shop-top .pcard__primary {
    padding-top: 1.25rem;
  }
}

.shop-products {
  padding: 1.5rem 1.5rem 0;
}
@media (min-width: 60rem) {
  .shop-products {
    padding: 2rem 2rem 0;
  }
  .biz-grid {
    grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
    gap: 1rem;
  }
}
.shop-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}
.shop-tools[hidden] {
  display: none;
}
.shop-search {
  position: relative;
  display: flex;
  flex: 1 1 14rem;
  align-items: center;
  max-width: 24rem;
}
.shop-search .icon {
  position: absolute;
  left: 0.875rem;
  color: var(--muted);
  pointer-events: none;
}
.shop-search input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.875rem 0.5rem 2.5rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
.shop-search input:focus-visible {
  outline: 2px solid var(--pc-accent);
  outline-offset: 2px;
}
.shop-chips {
  display: flex;
  gap: 0.5rem;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}
.shop-chip {
  flex: none;
  min-height: 2.5rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 550;
}
.shop-chip[aria-pressed="true"] {
  border-color: var(--pc-accent);
  background: var(--pc-accent);
  color: var(--pc-on-accent);
}
.shop-empty {
  padding: 2rem 0;
  color: var(--muted);
  text-align: center;
}
.biz-item .biz-clamp {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

/* Buy, and the small Add that puts the product in the order. */
.biz-item__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.75rem 0.75rem;
}
.biz-cart {
  display: inline-flex;
  flex: none;
}
.biz-add,
.biz-step {
  min-height: 2.5rem;
  border: 1px solid var(--border-strong);
  border-radius: 0.75rem;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 650;
}
.biz-add {
  padding: 0 0.875rem;
}
.biz-add:hover {
  background: var(--bg-alt);
}
.biz-step {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
}
.biz-step button {
  width: 2.25rem;
  align-self: stretch;
  border: 0;
  background: var(--bg-alt);
  color: var(--ink);
  font-size: 1.125rem;
}
.biz-step output {
  min-width: 1.75rem;
  text-align: center;
}

/* The shop's other sections sit side by side under the products. */
@media (min-width: 60rem) {
  .shop-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
    gap: 0 2rem;
    align-items: start;
    padding: 0 2rem;
  }
  .shop-info .biz-section {
    padding: 2rem 0 0;
  }
  .shop-info .biz-section--wide {
    grid-column: 1 / -1;
  }
}
.shop-info .pcard__details {
  padding: 0;
}
@media (min-width: 60rem) {
  .shop-narrow {
    max-width: 40rem;
    margin-inline: auto;
  }
  .pcard__social.shop-narrow,
  .pcard__primary.shop-narrow {
    width: 100%;
  }
}

/* The big view of one product. */
.shop-dialog {
  width: min(52rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 1.25rem;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.shop-dialog::backdrop {
  background: rgb(0 0 0 / 0.55);
}
.shop-dialog[open] {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 40rem) {
  .shop-dialog[open] {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
.shop-dialog__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--bg-alt);
}
/* Several pictures: arrows, a "2 / 5" counter and a sideways swipe. */
.shop-dialog__pic {
  position: relative;
  touch-action: pan-y;
}
.shop-dialog__nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.6);
  color: #fff;
}
.shop-dialog__nav[hidden],
.shop-dialog__count[hidden] {
  display: none;
}
.shop-dialog__nav--prev {
  left: 0.75rem;
}
.shop-dialog__nav--next {
  right: 0.75rem;
}
.shop-dialog__count {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  translate: -50% 0;
  margin: 0;
  padding: 0.125rem 0.625rem;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.6);
  color: #fff;
  font-size: 0.8125rem;
}
.shop-dialog__body {
  align-self: center;
  display: grid;
  gap: 0.5rem;
  padding: 1.5rem;
}
.shop-dialog__body h2 {
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.shop-dialog__price {
  color: var(--pc-link);
  font-size: 1.125rem;
  font-weight: 650;
}
.shop-dialog .biz-text {
  font-size: 1rem;
}
.shop-dialog .biz-item__actions {
  padding: 1rem 0 0;
}
.shop-dialog__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.6);
  color: #fff;
}
.shop-dialog-open {
  overflow: hidden;
}

/* The order bar: shown once something is in the order, pinned to the bottom of the window. */
.shop-cart {
  position: fixed;
  inset: auto 0 0;
  z-index: 50;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 -8px 24px -12px rgb(0 0 0 / 0.25);
}
.shop-cart[hidden] {
  display: none;
}
.shop-cart__in {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 40rem;
  margin-inline: auto;
}
.shop-cart__sum {
  flex: 1;
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}
.shop-cart__clear {
  min-height: 2.75rem;
  padding: 0 0.5rem;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: underline;
}
.shop-cart__send {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: 0.75rem;
  background: #0b7a3e;
  color: #fff;
  font-weight: 650;
  text-decoration: none;
}
.shop-cart__send:hover,
.shop-cart__send:focus-visible {
  background: #095f31;
}
.card-page.has-cart main {
  padding-bottom: 7rem;
}

/* State pages: not yet active, inactive, unavailable, gone (Figure 5A). */
.state-card {
  max-width: 26rem;
}
.state-card .brand__mark {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.5rem;
}
.state-card .brand__mark img {
  width: 3rem;
}
.state-card h1 {
  font-size: var(--text-3xl);
}
.state-card p {
  margin-top: 0.75rem;
  color: rgb(255 255 255 / 0.74);
}
.state-card .ihb {
  margin-top: 2rem;
}

/* Five or more actions (Call, WhatsApp, Email, Website, Map) need more room:
   on common 360-414px phones their labels would not fit, so go icon-only. */
@container (max-width: 26rem) {
  .pcard__quick:has(> a:nth-child(5)) a span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .pcard__quick:has(> a:nth-child(5)) a {
    padding: 0.85rem 0.25rem;
  }
}

/* Narrow cards (small phones, the editor preview): quick actions become
   icon-only; the labels stay for screen readers. */
@container (max-width: 22rem) {
  .pcard__quick a span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .pcard__quick a {
    padding: 0.85rem 0.25rem;
  }
}
