/* 3pito Shop — tienda: header, búsqueda, globo, botones, insignias y precios (tokens en store.css). */
/* Header, búsqueda, globo */
.announcement {
  background: var(--navy);
  color: var(--on-navy);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 24px;
  padding: 6px var(--gutter);
  font-size: 0.9rem;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 10px var(--gutter);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.main-nav {
  display: flex;
  gap: 16px;
}
.main-nav a {
  text-decoration: none;
  font-weight: 600;
}
.search {
  position: relative;
  flex: 1 1 220px;
  min-width: 0;
}
.search input,
.filters input,
.filters select,
.lead-form input {
  width: 100%;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
[role="listbox"] {
  position: absolute;
  inset: calc(100% + 4px) 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  list-style: none;
  margin: 0;
  padding: 6px;
}
[role="option"] {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
}
[role="option"][aria-selected="true"] {
  background: var(--surface-2);
}
mark {
  background: var(--sun);
  color: var(--sun-ink);
  border-radius: 4px;
}
.globe {
  position: relative;
}
.globe summary {
  list-style: none;
  cursor: pointer;
}
.globe-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
}
.currency {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 4px;
}
.currency legend {
  font-size: 0.8rem;
  color: var(--muted);
}
.currency button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}

/* Botones, insignias, precios */
button,
.btn {
  font: 600 1rem var(--font-text);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 150ms ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--brand-strong);
  border-color: var(--brand-strong);
  color: var(--brand-ink);
  font-size: 1.1875rem;
  font-weight: 700;
}
.btn-wa {
  background: var(--wa-strong);
  border-color: var(--wa-strong);
  color: #fff;
  font-size: 1.1875rem;
  font-weight: 700;
}
.badge,
.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 10px;
  font: 700 0.78rem / 1.6 var(--font-text);
}
.badge-promo {
  background: var(--sun);
  color: var(--sun-ink);
}
.pill-info {
  background: var(--info-soft);
  color: var(--info);
}
.money,
.countdown {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.money .alt {
  display: block;
  font-size: 0.8em;
  color: var(--muted);
}
.was {
  color: var(--muted);
}
.price {
  font-weight: 600;
}

/* Carrito, checkout, interesados y ayuda (pasos 9–11) */
.cart-drawer {
  overflow-y: auto;
}
.cart-lines,
.co-lines,
.co-promos {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}
.cart-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.cl-name {
  flex: 1 1 100%;
}
.cl-step,
.cl-remove {
  min-width: 40px;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
}
.free-bar progress {
  width: 100%;
  accent-color: var(--ok);
}
.checkout {
  display: grid;
  gap: 16px;
  max-width: 760px;
}
.co-form fieldset {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  margin: 0 0 16px;
}
.field {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}
.field input,
.field select,
.co-coupon input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 8px 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
.field-err,
.form-err {
  color: var(--bad);
  margin: 0;
}
.pay-note,
.co-charge,
.co-zone {
  color: var(--muted);
  margin: 4px 0;
}
.co-summary dl {
  display: grid;
  gap: 4px;
}
.co-row {
  display: flex;
  justify-content: space-between;
}
.wa-text {
  white-space: pre-wrap;
  background: var(--surface-2);
  border-radius: var(--r-md);
  padding: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
}
.done-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
