/* Música Arte Cultura · Stradivarius Straordinarius · sitio de una sola página */

:root {
  --wine: #85002f;
  --wine-dark: #51001f;
  --wine-deep: #3a0017;
  --gold: #e07b16;
  --gold-soft: #e6a11a;
  --yellow: #fff000;
  --white: #ffffff;
  --black: #050505;
  --text-soft: rgba(255,255,255,.88);
  --font-serif: "Times New Roman", Times, serif;
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --header-height: 96px;
  --content-width: 1320px;
  --gutter: clamp(16px, 4vw, 64px);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--wine-dark);
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

body {
  margin: 0;
  color: var(--white);
  font-family: var(--font-sans);
  background: var(--wine-dark);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--wine-deep);
  font-weight: 700;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

#contenido:focus {
  outline: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Encabezado y menú ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: var(--header-height);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.header-inner {
  --float-bg: rgba(58,0,23,.8);
  position: relative;
  width: min(calc(100% - 2 * var(--gutter)), var(--content-width));
  margin: 0 auto;
  display: flex;
  align-items: center;
  pointer-events: auto;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header-inner {
    --float-bg: rgba(58,0,23,.95);
  }
}

.mobile-brand {
  display: none;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
}

.mobile-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: var(--float-bg);
  box-shadow: 0 12px 34px rgba(0,0,0,.28);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 14px;
  border: 3px solid transparent;
  border-radius: 12px;
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1;
  letter-spacing: -.02em;
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--yellow);
  outline: none;
}

/* El foco de teclado lleva su propio contorno para no confundirse con la sección activa (borde amarillo). */
.site-nav a:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.site-nav a.active {
  color: var(--yellow);
  border-color: var(--yellow);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--yellow);
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"]::before {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"]::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* En móvil la píldora envuelve logo y botón; el menú se despliega debajo. */
@media (max-width: 600px) {
  :root {
    --header-height: 80px;
  }

  .header-inner {
    padding: 6px 6px 6px 10px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    background: var(--float-bg);
    box-shadow: 0 12px 34px rgba(0,0,0,.28);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .mobile-brand,
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: rgba(58,0,23,.96);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    justify-content: flex-start;
    font-size: 22px;
  }
}

/* ---------- Secciones ---------- */

.section {
  position: relative;
  overflow: hidden;
}

.section-inner {
  position: relative;
  width: min(calc(100% - 2 * var(--gutter)), var(--content-width));
  margin: 0 auto;
}

.bg-fondo {
  background-color: var(--wine);
  background-image: url("/assets/common/fondo-1654.jpg");
  background-image: image-set(url("/assets/common/fondo-1654.webp") type("image/webp"), url("/assets/common/fondo-1654.jpg") type("image/jpeg"));
  background-position: center;
  background-size: cover;
}

@media (max-width: 960px) {
  .bg-fondo {
    background-image: url("/assets/common/fondo-960.jpg");
    background-image: image-set(url("/assets/common/fondo-960.webp") type("image/webp"), url("/assets/common/fondo-960.jpg") type("image/jpeg"));
  }
}

/* Título del libro (INDEX y BOOK 1). El tamaño se ajusta al ancho de su columna para que STRAORDINARIUS nunca se salga. */
.book-title {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: min(84px, 100cqi / 9);
  line-height: .98;
  letter-spacing: .01em;
}

.book-title span {
  display: block;
}

.book-title-main {
  color: var(--white);
  text-shadow: .035em .035em 0 rgba(255,255,255,.28), -.02em -.02em 0 rgba(58,0,23,.6);
}

.book-title-sub {
  color: var(--gold);
}

.book-kicker {
  margin: .5em 0 0;
  color: var(--gold);
  font-size: min(26px, 100cqi / 21);
  letter-spacing: .06em;
  text-shadow: 0 1px 2px rgba(40,0,15,.6);
}

/* En móvil esta línea queda chica: un dorado un poco más claro mantiene el contraste mínimo (4.5:1) sobre el vino. */
@media (max-width: 600px) {
  .book-kicker {
    color: #f29c38;
  }
}

.title-rule {
  width: calc(100% + var(--gutter));
  height: 4px;
  margin: 22px 0 36px calc(-1 * var(--gutter));
  border: 0;
  background: linear-gradient(90deg, rgba(58,0,23,.95), rgba(58,0,23,.55) 70%, transparent);
}

.book-tagline {
  margin: 0;
  font-size: min(34px, 100cqi / 14);
  line-height: 1.12;
  letter-spacing: .1em;
}

/* ---------- INDEX ---------- */

.section-home {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
  padding: calc(var(--header-height) + 24px) 0 40px;
}

.home-copy {
  container-type: inline-size;
  max-width: 720px;
  padding-left: clamp(0px, 6vw, 110px);
}

.home-violin img {
  width: auto;
  height: min(86vh, 1000px);
  margin-right: clamp(0px, 4vw, 80px);
  filter: drop-shadow(0 24px 40px rgba(0,0,0,.45));
}

@media (max-width: 980px) {
  .home-copy {
    padding-left: 0;
  }

  .home-violin img {
    height: min(78vh, 760px);
    margin-right: 0;
  }
}

/* En pantallas angostas el texto va arriba y el violín debajo, para que el título no se reduzca de más. */
@media (max-width: 600px) {
  .home-grid {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 28px;
    padding-bottom: 32px;
  }

  .home-copy {
    width: 100%;
  }

  .home-violin img {
    height: min(56svh, 520px);
  }

  .title-rule {
    margin: 16px 0 22px calc(-1 * var(--gutter));
  }
}

/* ---------- BOOK ---------- */

/* BOOK 1: mismo texto que INDEX, con el libro a la derecha. */
.book-intro {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.book-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  grid-template-rows: auto 1fr;
  align-items: center;
  column-gap: clamp(16px, 3vw, 48px);
  padding: calc(var(--header-height) + 8px) 0 48px;
}

.buy-link {
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: clamp(0px, 14vw, 220px);
  padding: 6px 10px;
  border-radius: 10px;
  font-size: clamp(18px, 1.7vw, 26px);
  letter-spacing: .14em;
  text-decoration: none;
  transition: color .18s ease;
}

.buy-link:hover,
.buy-link:focus-visible {
  color: var(--yellow);
  outline: none;
}

.buy-link:focus-visible {
  box-shadow: 0 0 0 2px var(--yellow);
}

.buy-link-icon {
  width: 1.9em;
  height: 1.9em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.book-intro-copy {
  container-type: inline-size;
  max-width: 720px;
  padding: clamp(24px, 6vh, 72px) 0 0 clamp(0px, 6vw, 110px);
}

.book-intro-cover img {
  width: 100%;
  max-width: 772px;
  margin-top: clamp(24px, 14vh, 160px);
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.45));
}

/* BOOK 2: la imagen se muestra completa y el texto se coloca encima, en la zona negra. */
.book-summary {
  position: relative;
  background: #08090e; /* mismo negro que el borde de la imagen */
}

.book-summary-image img {
  width: 100%;
}

.book-summary-text {
  position: absolute;
  top: max(12%, calc(var(--header-height) + 8px));
  left: 43%;
  width: 52%;
  font-size: min(1.85vw, 30px);
  line-height: 1.28;
}

.book-summary-text p {
  margin: 0 0 .25em;
}

.book-summary-text strong {
  font-weight: 700;
}

/* BOOK 3: slider y características. */
.book-gallery {
  padding: calc(var(--header-height) + 24px) 0 clamp(40px, 6vw, 80px);
  background:
    linear-gradient(rgba(42,0,16,.72), rgba(42,0,16,.72)),
    var(--wine-dark) url("/assets/common/fondo-960.jpg") center / cover;
  background:
    linear-gradient(rgba(42,0,16,.72), rgba(42,0,16,.72)),
    var(--wine-dark) image-set(url("/assets/common/fondo-960.webp") type("image/webp"), url("/assets/common/fondo-960.jpg") type("image/jpeg")) center / cover;
}

/* El ancho se limita por la altura de la pantalla para que slider e íconos quepan juntos. */
.gallery {
  position: relative;
  max-width: calc(58vh * 1920 / 1266 + 68px);
  max-width: calc(58svh * 1920 / 1266 + 68px);
  margin: 0 auto;
  padding: 0 34px;
}

.gallery-swiper {
  border: 1px solid rgba(255,255,255,.35);
  background: var(--wine-dark);
}

.gallery-swiper img {
  width: 100%;
  aspect-ratio: 1920 / 1266;
  object-fit: cover;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #1f2430;
  color: var(--white);
  box-shadow: 0 0 0 4px rgba(255,255,255,.9);
  transform: translateY(-50%);
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}

.gallery-prev {
  left: 0;
}

.gallery-next {
  right: 0;
}

.gallery-nav:hover,
.gallery-nav:focus-visible {
  background: var(--wine);
  color: var(--yellow);
  outline: none;
}

.gallery-nav svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery-nav.swiper-button-disabled {
  opacity: .35;
  cursor: default;
}

.book-features {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 32px);
  width: min(100%, 900px);
  margin: clamp(32px, 5vw, 64px) auto 0;
  padding: clamp(16px, 2vw, 28px);
  list-style: none;
  background: rgba(30,0,12,.45);
}

.book-features li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  font-size: clamp(12px, 1.25vw, 17px);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.book-features svg {
  width: clamp(44px, 6vw, 72px);
  height: clamp(44px, 6vw, 72px);
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* BOOK 4: portada y créditos sobre negro. */
.book-credits {
  padding: calc(var(--header-height) + 16px) 0 clamp(40px, 6vw, 80px);
  background: #0a0a0c; /* mismo negro que el fondo de la portada; los créditos quedan como panel, como en la maqueta */
}

.book-credits-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
}

.book-credits-cover img {
  width: min(100%, 560px);
  margin-left: auto;
}

.book-credits-text img {
  width: min(100%, 470px);
}

@media (max-width: 900px) {
  .book-summary {
    display: flex;
    flex-direction: column;
  }

  .book-summary-text {
    position: static;
    order: -1;
    width: auto;
    padding: calc(var(--header-height) + 8px) var(--gutter) 8px;
    font-size: clamp(16px, 2.6vw, 20px);
  }
}

@media (max-width: 700px) {
  .book-intro-grid {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .buy-link {
    margin-left: 0;
  }

  .book-intro-copy {
    width: 100%;
    padding-left: 0;
  }

  .book-intro-cover img {
    max-width: min(86vw, 460px);
    margin-top: 32px;
  }

  .gallery {
    padding: 0;
  }

  .gallery-nav {
    width: 44px;
    height: 44px;
    box-shadow: 0 0 0 3px rgba(255,255,255,.9);
  }

  .gallery-prev {
    left: 6px;
  }

  .gallery-next {
    right: 6px;
  }

  .gallery-nav svg {
    width: 20px;
    height: 20px;
  }

  .book-features {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .book-features li {
    grid-column: span 2;
  }

  /* 3 arriba y 2 centradas abajo. */
  .book-features li:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .book-credits-grid {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .book-credits-cover img {
    width: min(86vw, 420px);
    margin: 0 auto;
  }

  .book-credits-text img {
    width: min(86vw, 400px);
  }
}

/* ---------- ABOUT ---------- */

/* Violín a la izquierda (a todo lo alto de la sección) y el contenido del about anterior a la derecha. */
.section-about {
  display: grid;
  grid-template-columns: minmax(280px, 42%) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100svh;
}

.about-violin {
  position: relative;
  background: #1c0f0c;
}

.about-violin img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
}

.about-content {
  width: 100%;
  max-width: 820px;
  padding: calc(var(--header-height) + 40px) clamp(20px, 5vw, 80px) clamp(48px, 6vw, 80px);
}

.about-heading {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: clamp(16px, 2.5vw, 40px);
  align-items: center;
  margin: 0 0 34px;
}

.about-logo {
  width: 112px;
  height: 112px;
  object-fit: contain;
}

.about-heading h2 {
  margin: 0;
  font-weight: 400;
  font-size: clamp(26px, 2.8vw, 46px);
  line-height: 1.3;
  letter-spacing: .3em;
  text-transform: uppercase;
}

.about-body {
  padding: clamp(22px, 2.4vw, 34px) clamp(20px, 2.6vw, 38px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: rgba(86,0,31,.4);
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.about-body p {
  margin: 0 0 1.1em;
  font-size: clamp(15px, 1.2vw, 19px);
  line-height: 1.5;
  letter-spacing: .04em;
}

.about-body p:last-child {
  margin-bottom: 0;
}

.about-divider {
  width: 72px;
  height: 3px;
  margin: 28px 0;
  border: 0;
  background: var(--gold-soft);
}

/* En pantallas angostas el violín queda como franja superior. */
@media (max-width: 800px) {
  .section-about {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-violin {
    height: min(52svh, 460px);
  }

  .about-violin img {
    object-position: 50% 42%;
  }

  .about-violin::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 30%;
    background: linear-gradient(transparent, rgba(81,0,31,.85));
  }

  .about-content {
    max-width: none;
    padding-top: 32px;
  }

  .about-heading {
    grid-template-columns: 76px 1fr;
    margin-bottom: 22px;
  }

  .about-logo {
    width: 76px;
    height: 76px;
  }

  .about-heading h2 {
    font-size: clamp(20px, 5.6vw, 30px);
    letter-spacing: .2em;
  }
}

/* ---------- SHOP ---------- */

.section-shop {
  background: var(--black);
}

/* SHOP 1 y 2: imágenes completas a todo lo ancho. */
.shop-image img {
  width: 100%;
}

/* SHOP 3: título a la izquierda y el formulario de compra en el recuadro de la derecha. */
.shop-buy {
  padding: calc(var(--header-height) + 24px) 0 clamp(48px, 6vw, 96px);
  background:
    linear-gradient(rgba(52,0,20,.55), rgba(52,0,20,.55)),
    var(--wine-dark) url("/assets/common/fondo-960.jpg") center / cover;
  background:
    linear-gradient(rgba(52,0,20,.55), rgba(52,0,20,.55)),
    var(--wine-dark) image-set(url("/assets/common/fondo-960.webp") type("image/webp"), url("/assets/common/fondo-960.jpg") type("image/jpeg")) center / cover;
}

.shop-buy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 5vw, 80px);
}

.shop-heading {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  padding-top: clamp(24px, 8vh, 96px);
  text-align: center;
}

.shop-edition {
  display: flex;
  align-items: center;
  gap: .7em;
  width: 100%;
  margin: 0 0 .4em;
  font-size: min(24px, 100cqi / 17);
  letter-spacing: .04em;
}

.shop-edition::before,
.shop-edition::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 70%);
}

.shop-edition::after {
  background: linear-gradient(90deg, var(--gold) 30%, transparent);
}

.shop-title {
  margin: 0;
  font-weight: 400;
  line-height: 1;
}

.shop-title span {
  display: block;
  color: #f3e6ea;
  text-shadow: .035em .035em 0 rgba(255,255,255,.25), -.02em -.02em 0 rgba(58,0,23,.6);
}

.shop-title-main {
  font-size: min(80px, 100cqi / 8.4);
}

.shop-title-sub {
  font-size: min(54px, 100cqi / 9.6);
}

.shop-heading .book-kicker {
  font-size: min(22px, 100cqi / 20);
}

.shop-ornament {
  width: min(80%, 300px);
  height: 10px;
  margin-top: auto;
  padding-top: 48px;
  background:
    radial-gradient(ellipse 12px 5px at 50% calc(100% - 5px), var(--gold) 98%, transparent) no-repeat,
    linear-gradient(90deg, transparent, var(--gold) 40%, var(--gold) 60%, transparent) no-repeat 0 calc(100% - 4px) / 100% 2px;
  box-sizing: content-box;
}

.shop-panel {
  width: 100%;
  max-width: 600px;
  padding: clamp(18px, 2.4vw, 30px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(110,0,40,.78), rgba(87,0,31,.4));
  box-shadow: 0 18px 50px rgba(0,0,0,.3);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  font-family: var(--font-serif);
}

.shop-note {
  margin: 18px 0 0;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  line-height: 1.5;
}

.shop-checkout > .shop-note:first-child {
  margin-top: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 21px;
  border: 2px solid var(--gold-soft);
  border-radius: 999px;
  background: var(--gold-soft);
  color: #3d0018;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  outline: none;
  background: #ffc13c;
}

.btn-secondary {
  background: rgba(74,0,28,.4);
  color: var(--white);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  color: #3d0018;
  background: var(--gold-soft);
}

.shop-disclosures {
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  background: rgba(43,0,17,.28);
}

.shop-disclosures h3 {
  margin: 0 0 12px;
  color: var(--gold-soft);
  font-size: 18px;
}

.shop-disclosures dl,
.shop-disclosures dd {
  margin: 0;
}

.shop-disclosures div + div {
  margin-top: 10px;
}

.shop-disclosures dt {
  color: var(--gold-soft);
  font-size: 14px;
  font-weight: 700;
}

.shop-disclosures dd {
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.42;
}

.shop-disclosures a {
  color: var(--white);
}

.checkout-result {
  width: 100%;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  background: rgba(43,0,17,.36);
}

.checkout-result:focus {
  outline: none;
}

.checkout-result h3 {
  margin: 0;
  color: var(--gold-soft);
  font-size: 22px;
}

.checkout-result p {
  margin: 8px 0 16px;
  line-height: 1.45;
}

[data-checkout-form] {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

[data-checkout-form] input {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  color: #3d0018;
  font: inherit;
}

[data-checkout-form] input:focus-visible,
[data-checkout-form] button:focus-visible,
.checkout-result a:focus-visible,
.shop-disclosures a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

[data-checkout-form] button:disabled {
  cursor: wait;
  opacity: .72;
}

[data-checkout-form] input[type="email"] {
  flex: 1;
  min-width: min(100%, 230px);
}

[data-checkout-form] input[type="number"] {
  width: 76px;
}

.shop-products {
  display: grid;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shop-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  background: rgba(43,0,17,.28);
}

.shop-product-info {
  min-width: 0;
}

.shop-product-name {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.shop-product-meta,
.shop-product-description {
  margin: 3px 0 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.4;
}

.shop-product-quantity {
  display: grid;
  justify-items: end;
  gap: 4px;
  flex: none;
  color: rgba(255,255,255,.72);
  font-size: 12px;
}

.shop-total {
  width: 100%;
  margin: 2px 0 4px;
  font-size: 15px;
}

@media (max-width: 800px) {
  .shop-buy-grid {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .shop-heading {
    width: min(100%, 520px);
    padding-top: 0;
  }

  .shop-ornament {
    display: none;
  }
}

@media (max-width: 600px) {
  .btn,
  [data-checkout-form] {
    width: 100%;
  }

  [data-checkout-form] input[type="email"] {
    width: 100%;
    min-width: 0;
  }

  .shop-product {
    align-items: flex-start;
  }
}

@media (max-width: 360px) {
  .shop-product {
    flex-direction: column;
    align-items: stretch;
  }

  .shop-product-quantity {
    grid-template-columns: auto 76px;
    align-items: center;
    justify-content: space-between;
  }
}
