/* Matteria — compra: botón CTA y checkout. Clonado de entry.css para reutilizarlo en el podcast. */

/* Variables propias del checkout. Se acotan al bloque de compra para no
   alterar la paleta de la página, que usa --primary/--secondary. */
.buy-row,
.buy-cta,
.shop,
.entry-buy {
  --paper: #FBF5EF;
  --text: #1E1C1A;
  --warm-ink: color-mix(in oklab, var(--text) 62%, var(--accent));
  --shop-ink: #1E1C1A;
  --accent2: #D13328;
  --shop-plum: #680137;
  --error: #CC0000;
  --line-color: rgb(from var(--warm-ink) r g b / 0.2);
  --cta-gradient: linear-gradient(to right, var(--accent) 0%, var(--accent2) 25%, var(--shop-plum) 50%, var(--accent) 75%, var(--accent2) 100%);
}

@property --glow-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.buy-cta > span:first-child { white-space: nowrap; }
.buy-cta {
  position: relative;
  z-index: 1;
  appearance: none;
  cursor: pointer;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.75rem 1rem 1.25rem;
  border: 0;
  border-radius: var(--radius, 3px);
  background: var(--cta-gradient);
  background-size: 400% 100%;
  background-position: 0% 50%;
  color: var(--paper);
  font-family: var(--sans);
  font-feature-settings: normal;
  font-size: clamp(0.95rem, 0.88rem + 0.3vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 0.3s var(--ease), background-position 1.1s var(--ease), color 0.32s var(--ease);
}
.buy-cta:hover,
.buy-cta:focus-visible {
  background-position: 100% 50%;
  color: var(--paper);
  transform: translateY(-1px);
}
.buy-cta:active { transform: translateY(1px); }
/* Enlace a Amazon,
junto al CTA */
.buy-amazon {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  min-height: 56px;
  border-radius: var(--radius, 3px);
  border: 1px solid var(--shop-ink);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.32s var(--ease), color 0.32s var(--ease), transform 0.3s var(--ease);
}
.buy-amazon:hover,
.buy-amazon:focus-visible {
  background: var(--shop-ink);
  color: var(--paper);
}
.buy-amazon:active { transform: translateY(1px); }
.buy-cta-price {
  font-size: clamp(0.9rem, 0.84rem + 0.28vw, 1rem);
  letter-spacing: 0.02em;
  align-self: stretch;
  flex: 0 0 auto;
  width: 56px;
  margin: -1rem -1.5rem -1rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgb(255 255 255 / 0.14);
}
.buy-cta-price sup {
  font-size: 0.8em;
  margin-left: 0.14em;
  vertical-align: super;
  line-height: 0;
  opacity: 0.9;
}
/* Contenedor del CTA */
@property --glow-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.buy-row {
  position: relative;
  isolation: isolate;
  padding: 0;
  display: flex;
  align-items: stretch;
  gap: 16px;
}
/* ---- Adriano Olivetti (full width,
sobre citas) ---- */


/* ---- Compra: checkout en dos columnas ----
   Tipografía: mono para cifras y marcas,
serif para la voz,
sans en los campos. */

.shop {
  /* Checkout claro: panel blanco, campos crema y tinta oscura */
  --sheet: #fff;                                   /* panel */
  --ink: #1E1C1A;                                  /* texto principal */
  --mist: #FBF5EF;                                 /* campos y celdas */
  --hairline: rgb(from var(--ink) r g b / 0.14);    /* filetes */
  --muted: rgb(from var(--ink) r g b / 0.62);       /* texto secundario */
  --faint: rgb(from var(--ink) r g b / 0.62);       /* placeholders y texto de apoyo */
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  inset: 0;
  margin: 0;
  padding: clamp(0.75rem, 3vw, 2.5rem);
  border: 0;
  background: none;
  overflow: hidden;
  color: var(--ink);
}
.shop:not([open]) { display: none; }
.shop[open] { display: grid; place-items: center; }
.shop::backdrop {
  background: rgb(30 30 24 / 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: shopFade 0.55s cubic-bezier(0.32, 0.72, 0, 1) both;
}
.shop-panel {
  position: relative;
  /* 4 de las 8 columnas del grid: content/2 - gutter/2 */
  width: min(calc(var(--content) / 2 - var(--gutter) / 2), 100%);
  max-height: min(94vh, 50rem);
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius, 3px);
  background: var(--sheet);
  box-shadow: 0 2.5rem 5rem -2rem var(--faint);
  animation: shopIn 0.55s cubic-bezier(0.32, 0.72, 0, 1) both;
}
.shop.is-closing .shop-panel { animation: shopOut 0.42s cubic-bezier(0.4, 0, 0.6, 1) both; }
.shop.is-closing::backdrop { animation: shopFade 0.42s cubic-bezier(0.4, 0, 0.6, 1) reverse both; }

@keyframes shopFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes shopOut {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(1.25rem) scale(0.99); }
}
@keyframes shopIn {
  from { opacity: 0; transform: translateY(1.25rem) scale(0.99); }
  to { opacity: 1; transform: none; }
}
/* Columna izquierda: pasos + formulario */
.shop-flow {
  --shop-pad: clamp(1.35rem, 3.2vw, 2.25rem);
  position: relative;
  isolation: isolate;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--shop-pad);
  background: var(--sheet);
}
.shop-flow::before { content: none; }
/* Cabecera oscura */
.shop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
  padding: 16px clamp(1.35rem, 3.4vw, 2.5rem);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--dark);
  background-image: url("../../img/bg-leather.webp");
  background-position: left top;
  background-size: 64px auto;
  background-repeat: repeat;
  background-blend-mode: overlay;
  color: var(--paper);
}
.shop-head-mark { mix-blend-mode: overlay; }
.shop-head .shop-x {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgb(from var(--paper) r g b / 0.92);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  position: relative;
  overflow: hidden;
}
.shop-head .shop-x::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: url("../../img/bg-leather.webp") left top / 64px auto repeat;
  mix-blend-mode: overlay;
  opacity: 0.55;
  pointer-events: none;
}
.shop-head .shop-x:hover { background: rgba(255, 255, 255, 0.26); }
.shop-head .shop-x:hover { background: rgba(255, 255, 255, 0.26); }
/* La textura de piel oscurece el ocre: los rotulos van claros y la sombra los
   separa del grano sin recurrir a un halo visible. */
.shop-head .shop-step {
  color: rgb(255 255 255 / 0.4);
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.55);
}
.shop-head .shop-step.is-done { color: rgb(255 255 255 / 0.7); }
.shop-head .shop-step[aria-current="step"] {
  color: rgb(255 255 255 / 0.9);
  font-weight: 600;
  text-shadow: 0 1px 3px rgb(0 0 0 / 0.6);
}
.shop-head .shop-step + .shop-step::before {
  border-color: rgb(255 255 255 / 0.55);
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.5));
}
.shop-head-mark {
  flex: 0 0 auto;
  width: 28px;
  height: 32px;
  display: block;
}
.shop-x {
  position: static;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  margin-right: -8px;
  color: rgb(from var(--paper) r g b / 0.75);
  background: rgb(255 255 255 / 0.1);
  border-color: rgb(255 255 255 / 0.14);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.shop-x:hover { color: var(--paper); }
/* Indicador de tres pasos,
dentro de la cabecera */
.shop-steps {
  position: relative;
  flex: 0 1 auto;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.shop-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-feature-settings: normal;
  font-size: 0.82rem;
  white-space: nowrap;
  color: rgb(from var(--paper) r g b / 0.45);
  transition: color 0.3s var(--ease);
}
.shop-step + .shop-step::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid rgb(from var(--paper) r g b / 0.3);
  border-bottom: 1.5px solid rgb(from var(--paper) r g b / 0.3);
  rotate: -45deg;
}
.shop-step.is-done { cursor: pointer; }
.shop-step.is-done { color: rgb(from var(--paper) r g b / 0.7); }
.shop-step[aria-current="step"] { color: var(--paper); font-weight: 600; }
.shop-pane { display: none; margin: 0; padding: 0; border: 0; }
.shop-pane.is-on { display: block; animation: shopPane 0.4s var(--ease) both; }

@keyframes shopPane {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
/* Ficha del producto (paso 1) */
.shop-product {
  display: flex;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  padding: 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius, 3px);
  background: var(--mist);
}
.shop-thumb {
  flex: 0 0 auto;
  width: clamp(56px, 12vw, 72px);
  height: auto;
  object-fit: contain;
  border-radius: 2px;
  background: var(--paper);
}
.shop-product-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.shop-product-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.shop-author {
  margin: 5px 0 0;
  font-family: var(--sans);
  font-feature-settings: normal;
  font-size: 0.84rem;
  /* Ocre oscurecido: sobre el panel blanco el ocre puro se queda en 2.96:1 */
  color: color-mix(in oklab, var(--accent) 62%, var(--ink));
}
.shop-product-foot {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.shop-product-price {
  font-family: var(--sans);
  font-feature-settings: normal;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.shop .qty {
  gap: 0;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius, 4px);
  background: var(--mist);
  overflow: hidden;
}
.shop .qty-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  font-family: var(--sans);
  font-feature-settings: normal;
  font-size: 1rem;
  color: var(--faint);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.shop .qty-btn[disabled] { opacity: 0.3; cursor: not-allowed; }
.shop .qty-btn:not([disabled]):hover { opacity: 1; color: var(--ink); background: rgb(from var(--shop-ink) r g b / 0.05); }
.shop .qty-val {
  min-width: 2.25rem;
  align-self: stretch;
  display: grid;
  place-items: center;
  border-inline: 1px solid var(--line-color);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.shop-note {
  margin: 16px 0 0;
  font-family: var(--sans);
  font-feature-settings: normal;
  font-size: 0.8rem;
  color: var(--faint);
}
.shop-eta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.shop-eta-icon { flex: 0 0 auto; opacity: 0.55; color: var(--ink); }
/* Formulario: campos agrupados y pegados,
al modo Stripe */
.shop-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: clamp(1.25rem, 2.6vw, 1.5rem) 0 0;
  padding: 0;
  border: 0;
}
.shop-pane > .shop-fields:first-child { margin-top: 0; }
.shop-field { display: flex; flex-direction: column; gap: 8px; }
.shop-group:has(> *:only-child) { border-radius: var(--radius, 3px); }
.shop-field > span:first-child {
  font-family: var(--sans);
  font-feature-settings: normal;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
/* El grupo dibuja el marco; los campos de dentro solo filetes de separación */
.shop-group {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hairline);
  border-radius: var(--radius, 3px);
  background: var(--mist);
  box-shadow: 0 1px 2px rgb(from var(--shop-ink) r g b / 0.05);
  transition: border-color 0.24s var(--ease), box-shadow 0.24s var(--ease);
  overflow: hidden;
}
.shop-group:focus-within {
  border-color: var(--ink);
  box-shadow: none;
}
.shop-group.is-bad {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgb(from var(--error) r g b / 0.1);
}
.shop-group input,
.shop-cell {
  appearance: none;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 8px 16px;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--ink);
  font-family: var(--sans);
  font-feature-settings: normal;
  font-size: 0.95rem;
}
.shop-group input:focus { outline: none; }
/* Autorrelleno del navegador: fondo blanco en lugar del azul por defecto */
.shop-group input:-webkit-autofill,
.shop-group input:-webkit-autofill:hover,
.shop-group input:-webkit-autofill:focus,
.shop-group input:-webkit-autofill:active,
.shop-cell--select select:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 60px var(--sheet) inset;
  box-shadow: 0 0 0 60px #fff inset;
  caret-color: var(--ink);
  transition: background-color 6000000s 0s, color 6000000s 0s;
}
.shop-group input:autofill {
  background: var(--mist);
  color: var(--ink);
}
.shop-group input::placeholder { color: rgb(from var(--ink) r g b / 0.42); }
/* Filetes internos: entre filas y entre columnas */
.shop-group > * + * { border-top: 1px solid var(--hairline); }
.shop-cardrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.shop-cardrow > * + * { border-left: 1px solid var(--hairline); }
.shop-cell { position: relative; }
[data-shop-card-number] { padding-right: 58px; }
.shop-brand {
  position: absolute;
  right: 12px;
  top: 50%;
  translate: 0 -50%;
  width: 34px;
  height: auto;
  opacity: 0;
  transition: opacity 0.22s var(--ease);
  pointer-events: none;
}
.shop-brand.is-on { opacity: 1; }
.shop-cell {
  font-family: var(--sans);
  font-feature-settings: normal;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}
.shop-cell > div,
.shop-cell .__PrivateStripeElement { flex: 1 1 auto; min-width: 0; }
.shop-cell input {
  appearance: none;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--sans);
  font-feature-settings: normal;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.shop-cell input:focus { outline: none; }
.shop-cell--select { padding: 0; background: var(--mist); }
.shop-cell--tel { display: flex; align-items: center; gap: 8px; padding: 0; }
.shop-dial {
  position: relative;
  flex: 0 0 auto;
  align-self: stretch;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px 0 16px;
  font-family: var(--sans);
  font-feature-settings: normal;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
  border-right: 1px solid var(--hairline);
  transition: background 0.2s var(--ease);
}
.shop-dial:hover { background: rgb(from var(--shop-ink) r g b / 0.03); }
.shop-dial-flag { font-family: system-ui, sans-serif; font-size: 1.05rem; line-height: 1; }
.shop-dial-code::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 6px;
  vertical-align: 2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  rotate: 45deg;
  opacity: 0.55;
}
.shop-dial-select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  appearance: none;
  border: 0;
  background: transparent;
  color: transparent;
  font: inherit;
  cursor: pointer;
  opacity: 0;
}
.shop-dial:focus-within { background: rgb(from var(--accent2) r g b / 0.07); }
.shop-cell--tel:focus-within .shop-dial {
  color: var(--ink);
  border-right-color: rgb(from var(--shop-ink) r g b / 0.2);
}
.shop-cell--tel:focus-within .shop-dial-code::after { opacity: 0.8; }
.shop-cell--tel input { flex: 1 1 auto; min-width: 0; padding-left: 0; }
.shop-cell--select select {
  appearance: none;
  width: 100%;
  min-height: 48px;
  padding: 8px 34px 8px 16px;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--ink);
  font-family: var(--sans);
  font-feature-settings: normal;
  font-size: 0.95rem;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 18px center, right 13px center;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.shop-cell--select select:focus { outline: none; }
.shop-cell input::placeholder { color: rgb(from var(--ink) r g b / 0.42); letter-spacing: 0.04em; }
.shop-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: var(--sans);
  font-feature-settings: normal;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
}
.shop-check input {
  appearance: none;
  flex: 0 0 auto;
  position: relative;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius, 4px);
  background: var(--mist);
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.shop-check input::after {
  content: "";
  position: absolute;
  left: -4px;
  top: -7px;
  width: 26px;
  height: 26px;
  background: no-repeat center / 26px 26px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cg fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 15.6 11.2 20.2 24.6 2.4' stroke='%23fff' stroke-width='5.5'/%3E%3Cpath d='M6.5 15.6 11.2 20.2 24.6 2.4' stroke='%23024E50' stroke-width='2.4'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0;
  scale: 0.7;
  transition: opacity 0.16s var(--ease), scale 0.22s var(--ease);
}
.shop-check input:checked {
  background: rgb(from var(--accent2) r g b / 0.07);
  border-color: rgb(from var(--accent2) r g b / 0.3);
}
.shop-check input:checked::after { opacity: 1; scale: 1; }
.shop-check input:focus-visible { outline: 2px solid rgb(from var(--accent2) r g b / 0.35); outline-offset: 2px; }
.shop-fielderr {
  margin: 8px 0 0;
  font-family: var(--sans);
  font-feature-settings: normal;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--error);
}
.shop-card-hint,
.shop-error {
  margin: 12px 0 0;
  font-family: var(--sans);
  font-feature-settings: normal;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--faint);
}
.shop-error { color: var(--error); }
.shop-error[hidden] { display: none; }
/* Sumas (paso 3) */
.shop-sums {
  margin: clamp(1.25rem, 2.6vw, 1.5rem) 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.shop-sums > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.shop-sums dt {
  font-family: var(--sans);
  font-feature-settings: normal;
  font-size: 0.9rem;
  color: var(--muted);
}
.shop-sums dt em {
  font-style: normal;
  font-family: var(--sans);
  font-feature-settings: normal;
  font-size: 0.78rem;
  color: var(--faint);
}
.shop-sums dd {
  margin: 0;
  font-family: var(--sans);
  font-feature-settings: normal;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.shop-sums-total dt { color: var(--ink); font-weight: 600; }
.shop-sums-total dd { font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem); letter-spacing: -0.02em; }
/* Acciones */
.shop-actions {
  margin-top: clamp(1.75rem, 3.4vw, 2.25rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.shop-express {
  display: grid;
  gap: 0;
  margin-bottom: clamp(1.25rem, 2.6vw, 1.6rem);
}
.shop-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: clamp(0.9rem, 2vw, 1.15rem) 0 0;
  font-family: var(--sans);
  font-feature-settings: normal;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  color: var(--faint);
}
.shop-or::before,
.shop-or::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--hairline);
}
.shop-wallets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.shop-wallet {
  appearance: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0;
  border: 1px solid #000;
  border-radius: var(--radius, 3px);
  background: #000;
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
}
.shop-wallet--google { background: #1A1A1A; border-color: #1A1A1A; }
.shop-wallet[hidden] { display: none; }
.shop-wallet img { height: 21px; width: auto; display: block; pointer-events: none; }
.shop-wallet:hover,
.shop-wallet:focus-visible { opacity: 0.86; }
.shop-wallet:active { transform: translateY(1px); }
.shop-submit {
  margin-top: 0;
  width: 100%;
  min-height: 56px;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius, 3px);
  background: var(--cta-gradient);
  background-size: 400% 100%;
  background-position: 0% 50%;
  transition: transform 0.3s var(--ease), background-position 1.1s var(--ease), color 0.32s var(--ease);
}
.shop-submit:hover,
.shop-submit:focus-visible { background-position: 100% 50%; }
.shop-submit-amount {
  font-family: var(--sans);
  font-feature-settings: normal;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}
.shop-submit[disabled] { cursor: progress; opacity: 0.85; }
.shop-submit[disabled]:hover { background-position: 0% 50%; transform: none; }
.shop-back {
  grid-column: 1 / -1;
  appearance: none;
  border: 0;
  background: none;
  cursor: pointer;
  justify-self: center;
  min-height: 32px;
  padding: 0;
  font-family: var(--sans);
  font-feature-settings: normal;
  font-size: 0.82rem;
  color: var(--faint);
  transition: color 0.28s var(--ease);
}
.shop-back[hidden] { display: none; }
.shop-back:hover,
.shop-back:focus-visible { color: var(--ink); }
.shop-dots::after { content: ""; animation: shopDots 1.2s steps(4, end) infinite; }

@keyframes shopDots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
}

@media (max-width: 56rem) {
.shop { padding: 0; }
.shop[open] { place-items: end stretch; }
.shop-panel {
    width: 100%;
    max-height: 94vh;
    gap: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    overflow-y: auto;
    border-radius: 16px 16px 0 0;
    animation: shopUp 0.62s cubic-bezier(0.32, 0.72, 0, 1) both;
  }
.shop.is-closing .shop-panel {
    animation: shopDown 0.42s cubic-bezier(0.4, 0, 0.6, 1) both;
  }
.shop-flow { overflow: visible; padding-bottom: max(var(--shop-pad), env(safe-area-inset-bottom)); }
.shop-actions.has-wallet { grid-template-columns: 1fr; }}

@keyframes shopUp {
  from { transform: translateY(100%); }
  to { transform: none; }
}

@keyframes shopDown {
  from { transform: none; }
  to { transform: translateY(100%); }
}

@media (prefers-reduced-motion: reduce) {
.shop-panel,
.shop::backdrop,
.shop-pane.is-on { animation-duration: 0.01ms; }
.shop-cardrow,
.shop-group { transition-duration: 0.01ms; }
.shop-dots::after { animation: none; content: "..."; }}


/* ---- Piezas complementarias tomadas de entry.css ---- */

.qty-val,
.buy-cta-price {
  font-family: var(--mono);
  letter-spacing: 0.08em;
}
.shop-x {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(24,17,14,0.45);
  color: var(--paper);
  cursor: pointer;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  transition: background 0.3s ease, color 0.3s ease;
}
.shop-x:hover,
.shop-x:focus-visible {
  background: rgba(24,17,14,0.72);
  color: #fff;
}
.shop-x svg { display: block; }
.entry-buy-row {
  grid-column: 5 / span 4;
  grid-row: 2;
  display: flex;
  align-items: stretch;
  align-self: start;
  justify-self: start;
  gap: 2px;
  margin-block: clamp(0.5rem, 1.5vw, 1rem);
}
.qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-inline: 1rem;
  background: var(--accent);
  border-radius: 999px 0 0 999px;
}
.qty-btn {
  appearance: none;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.5rem;
  color: var(--ink);
  transition: opacity 0.25s var(--ease);
}
.qty-btn:hover { opacity: 0.55; }
.qty-val {
  min-width: 1.25rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--ink);
}
@media (max-width: 60rem) {
  .entry-buy-row { justify-self: start; order: 3; }
}
.buy-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  display: none;
  padding: 12px max(16px, env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom));
  background: rgb(255 255 255 / 0.7);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgb(from var(--shop-ink) r g b / 0.1);
  box-shadow: 0 6px 24px rgb(from var(--shop-ink) r g b / 0.18);
  translate: 0 110%;
  opacity: 0;
  transition: translate 0.42s var(--ease), opacity 0.32s var(--ease);
}
.buy-dock.is-on { translate: 0 0; opacity: 1; }
.buy-dock .buy-row { display: flex; }
.buy-cta--dock { width: 100%; }
@media (max-width: 960px) {
  .buy-dock { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .buy-dock { transition: opacity 0.2s linear; }
}
@media (max-width: 960px) {
  .sidebar-grid .buy-row { display: none; }
  .sidebar-grid .buy-cta { width: 100%; }
}
.buy-cta { line-height: 24px; }
/* Sans y mono tienen alturas de x distintas: alineo por caja, no por línea */
.buy-cta > span {
  display: flex;
  align-items: center;
  line-height: 1;
}
/* El desplegable nativo de prefijo, en el mismo tono claro del panel */
.shop select {
  color-scheme: light;
  color: var(--ink);
  background-color: var(--mist);
}
.shop select option {
  color: var(--ink);
  background-color: var(--sheet);
}
