/* Storefront styles: kept separate from the former temporary page. */
:root {
  color-scheme: dark;
  --ink: #f8f5ef;
  --muted: #c7c0b6;
  --panel: #171513;
  --panel-soft: #211d1a;
  --line: rgba(248, 245, 239, 0.14);
  --charcoal: #0d0d0e;
  --orange: #ff970f;
  --orange-deep: #ff5b10;
  --pink: #f12c9f;
  --violet: #7d47cf;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--charcoal);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 86px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(13, 13, 14, 0.82);
  backdrop-filter: blur(16px);
}

.cart-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #151414;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  padding: 9px 12px;
}

.cart-toggle span {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--orange);
  color: #130a05;
  font-size: 0.82rem;
  font-weight: 950;
}

.brand img {
  width: min(92px, 26vw);
  height: auto;
  max-height: 62px;
  padding: 0;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 30px);
  color: var(--muted);
  font-size: 0.94rem;
}

.main-nav a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: min(640px, calc(100vh - 86px));
  display: flex;
  align-items: flex-end;
  padding: clamp(34px, 7vw, 94px) clamp(18px, 6vw, 92px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(13, 13, 14, 0.56), rgba(13, 13, 14, 0.08) 54%, rgba(13, 13, 14, 0.26)),
    linear-gradient(0deg, rgba(13, 13, 14, 0.76), rgba(13, 13, 14, 0) 44%),
    url("assets/Cabecera_nueva_calidad.jpg") center / cover no-repeat,
    linear-gradient(135deg, #210f18, #0d0d0e 55%, #251108);
}

.hero__content {
  position: relative;
  max-width: 560px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 20px;
  font-size: clamp(3.2rem, 7vw, 6.6rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.hero__content > p:not(.eyebrow) {
  max-width: 570px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.34rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: var(--orange);
  color: #160909;
}

.button--ghost {
  border-color: var(--line);
  color: var(--ink);
}

.section,
.split-section,
.story-section,
.contact-section {
  padding: clamp(54px, 8vw, 110px) clamp(18px, 6vw, 92px);
  border-top: 1px solid var(--line);
}

.story-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.62fr) minmax(280px, 1fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
}

.story-section__mark {
  display: grid;
  place-items: center;
  min-height: 360px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 151, 15, 0.2), transparent 56%),
    linear-gradient(135deg, rgba(255, 151, 15, 0.1), rgba(241, 44, 159, 0.1)),
    #121111;
  overflow: hidden;
}

.story-section__mark img {
  width: min(340px, 72%);
}

.story-section__copy {
  max-width: 760px;
}

.story-section__copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
}

.section--intro {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1fr);
  gap: clamp(26px, 6vw, 80px);
  align-items: end;
  background: var(--panel);
}

.section--intro > p {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.section__heading {
  max-width: 760px;
  margin-bottom: clamp(26px, 4vw, 46px);
}

.shop-section {
  padding: clamp(54px, 8vw, 110px) clamp(18px, 6vw, 92px);
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 151, 15, 0.05), transparent 220px),
    #0f0f10;
}

.shop-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.72fr);
  gap: clamp(22px, 5vw, 70px);
  align-items: end;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.shop-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.shop-controls {
  position: sticky;
  top: 86px;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 24px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 13, 14, 0.9);
  backdrop-filter: blur(16px);
}

.search-field {
  display: grid;
  gap: 8px;
}

.search-field span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.search-field input {
  min-height: 48px;
  border-color: rgba(255, 151, 15, 0.28);
  background: #151414;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter-button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #151414;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  padding: 11px 14px;
}

.filter-button.is-active {
  border-color: transparent;
  background: var(--orange);
  color: #130a05;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.shop-card {
  min-width: 0;
}

.shop-card__button {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: grid;
  grid-template-rows: minmax(250px, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #151414;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: left;
  transition:
    border-color 180ms ease,
    transform 180ms ease;
}

.shop-card__button:hover {
  border-color: rgba(255, 151, 15, 0.52);
  transform: translateY(-3px);
}

.shop-card__image {
  display: grid;
  place-items: center;
  min-height: 250px;
  background: #f7f7f5;
}

.shop-card__image img {
  width: 100%;
  height: 100%;
  max-height: 310px;
  object-fit: contain;
  padding: 12px;
}

.shop-card__body {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: #151414;
}

.shop-card__category {
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.shop-card__title {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 900;
}

.shop-card__price {
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 950;
}

.shop-card__hint {
  color: var(--muted);
  font-size: 0.92rem;
}

.shop-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-cart-button {
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--orange);
  color: #130a05;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  padding: 8px 10px;
}

.empty-state {
  margin: 28px 0 0;
  color: var(--muted);
}

.modal-open {
  overflow: hidden;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
}

.product-modal[aria-hidden="false"] {
  display: block;
}

.product-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.product-modal__dialog {
  position: relative;
  width: min(1120px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(280px, 0.72fr);
  gap: clamp(18px, 4vw, 42px);
  margin: 14px auto;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111010;
  box-shadow: var(--shadow);
  padding: clamp(16px, 3vw, 28px);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(13, 13, 14, 0.84);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.modal-gallery {
  display: grid;
  gap: 12px;
}

.modal-main-image {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  border-radius: 8px;
  background: #f7f7f5;
}

.modal-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.modal-thumb {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f7f5;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
}

.modal-thumb.is-active {
  border-color: var(--orange);
}

.modal-thumb img {
  width: 100%;
  height: 92px;
  object-fit: contain;
  padding: 6px;
}

.modal-copy {
  align-self: center;
  padding-right: 28px;
}

.modal-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.modal-price {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 18px;
  border-radius: 8px;
  background: var(--orange);
  color: #130a05;
  font-size: 1.24rem;
  font-weight: 950;
  padding: 8px 12px;
}

#modalDescription {
  white-space: pre-line;
}

.cart-open {
  overflow: hidden;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
}

.cart-drawer[aria-hidden="false"] {
  display: block;
}

.cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(440px, 100vw);
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  border-left: 1px solid var(--line);
  background: #111010;
  box-shadow: var(--shadow);
  padding: 22px;
}

.cart-drawer__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.cart-drawer__header h2 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.2rem);
}

.cart-drawer__header .modal-close {
  position: static;
  flex: 0 0 auto;
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding-right: 4px;
}

.empty-cart {
  margin: 0;
  color: var(--muted);
}

.cart-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #171513;
  padding: 10px;
}

.cart-item img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  border-radius: 8px;
  background: #f7f7f5;
}

.cart-item h3 {
  margin: 0 0 3px;
  font-size: 1rem;
}

.cart-item p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

.cart-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

.cart-item__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.cart-item__controls button {
  min-width: 32px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f0e0d;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  padding: 5px 8px;
}

.cart-item__controls span {
  min-width: 22px;
  text-align: center;
  font-weight: 900;
}

.cart-summary {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.cart-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cart-summary span,
.cart-summary p {
  color: var(--muted);
}

.cart-summary strong {
  color: var(--ink);
  font-size: 1.8rem;
}

.cart-summary p {
  margin: 0;
  font-size: 0.92rem;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  min-height: 520px;
  display: grid;
  grid-template-rows: minmax(260px, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.product-card__visual {
  display: grid;
  place-items: center;
  min-height: 290px;
}

.product-card__visual--photo {
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 151, 15, 0.18), transparent 58%),
    #111010;
}

.product-card__visual--photo img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: contain;
  padding: clamp(12px, 3vw, 28px);
}

.product-card__body {
  padding: 24px;
}

.product-card__body p {
  color: var(--muted);
}

.product-card__body a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--orange);
  font-weight: 850;
}

.product-showcase {
  background: var(--panel);
}

.showcase-group {
  display: grid;
  gap: 18px;
  margin-top: clamp(28px, 5vw, 54px);
}

.showcase-group:first-of-type {
  margin-top: 0;
}

.showcase-group__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.showcase-group__heading h3 {
  margin: 0;
}

.showcase-group__heading p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.product-gallery--letters {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-item {
  display: grid;
  grid-template-rows: minmax(220px, 1fr) auto;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111010;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: contain;
  padding: 14px;
  background: #f8f8f8;
}

.gallery-item h4 {
  margin: 0;
  padding: 14px 16px 16px;
  color: var(--ink);
  font-size: 0.98rem;
}

.showcase-feature {
  display: grid;
  grid-template-columns: minmax(220px, 0.58fr) minmax(280px, 1fr);
  gap: clamp(22px, 5vw, 58px);
  align-items: center;
  margin-top: clamp(34px, 6vw, 70px);
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 151, 15, 0.1), rgba(125, 71, 207, 0.14)),
    #111010;
}

.showcase-feature img {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8f8f8;
}

.showcase-feature p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
}

.showcase-feature a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--orange);
  font-weight: 850;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1fr);
  gap: clamp(28px, 6vw, 80px);
}

.steps {
  display: grid;
  gap: 12px;
}

.steps div {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.steps span {
  color: var(--orange);
  font-weight: 900;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 520px);
  gap: clamp(28px, 6vw, 80px);
  background: var(--panel);
}

.contact-copy p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f0e0d;
  color: var(--ink);
  font: inherit;
  padding: 12px 13px;
}

textarea {
  resize: vertical;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--orange);
  font-size: 0.94rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 6vw, 92px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
  color: var(--ink);
  font-weight: 850;
}

@media (max-width: 980px) {
  .site-header {
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 22px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .section--intro,
  .shop-heading,
  .split-section,
  .story-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 560px;
    padding-top: 42px;
    background-position: center, center, center 34px, center;
    background-size: auto, auto, cover, auto;
  }

  .hero__content {
    max-width: 620px;
  }

  h1 {
    font-size: clamp(3.3rem, 8.2vw, 5.6rem);
  }

  .story-section__mark {
    min-height: 260px;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .shop-controls {
    position: static;
    grid-template-columns: 1fr;
  }

  .filter-buttons {
    justify-content: flex-start;
  }

  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-modal__dialog {
    grid-template-columns: 1fr;
  }

  .modal-copy {
    padding-right: 0;
  }

  .showcase-group__heading,
  .showcase-feature {
    grid-template-columns: 1fr;
  }

  .showcase-group__heading {
    display: grid;
  }

  .product-gallery,
  .product-gallery--letters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card {
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (min-width: 821px) and (max-width: 980px) {
  .main-nav {
    order: 0;
    width: auto;
    justify-content: flex-start;
    margin-left: auto;
  }

  .cart-toggle {
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  .main-nav {
    font-size: 0.86rem;
  }

  h1 {
    font-size: clamp(3.1rem, 15vw, 4.8rem);
  }

  .hero {
    min-height: 560px;
    padding-top: 34px;
    background-position: center, center, center 28px, center;
    background-size: auto, auto, cover, auto;
  }

  .hero__actions,
  .button,
  .modal-actions .button {
    width: 100%;
  }

  .cart-drawer__panel {
    width: 100vw;
  }

  .product-gallery,
  .product-gallery--letters {
    grid-template-columns: 1fr;
  }

  .shop-grid {
    grid-template-columns: 1fr;
  }

  .shop-card__button {
    min-height: 320px;
  }

  .modal-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-item {
    min-height: 260px;
  }
}

/* Purchase flow */
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.5; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
body { overflow-wrap: break-word; }
.hero__content { max-width: 740px; }
.hero h1 { max-width: none; font-size: 4.75rem; line-height: 1.02; }
.shop-card {
  display: grid;
  grid-template-rows: 1fr auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #151414;
}
.shop-card__button { border: 0; border-radius: 0; height: auto; }
.shop-card__button:hover { transform: none; }
.shop-card:hover { border-color: var(--orange); }
.shop-card__image { aspect-ratio: 4 / 5; min-height: 0; }
.shop-card__image img { height: 100%; max-height: none; min-height: 0; }
.shop-card > .card-cart-button { margin: 0 16px 16px; min-height: 44px; }
.modal-copy h2 { font-size: 1.9rem; line-height: 1.15; }
.modal-copy p.modal-price { color: #130a05; font-size: 1.25rem; }
.modal-gallery { align-content: start; }
.modal-main-image { height: 55vh; min-height: 240px; }
.product-options, #personalizedFields { display: grid; gap: 14px; }
.product-options { margin-top: 24px; }
.product-options .button { width: 100%; }
.product-description { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; }
.product-description summary { cursor: pointer; color: var(--muted); font-size: 0.95rem; }
.product-description p { margin-top: 18px; }
.purchase-note { color: var(--muted); font-size: 0.88rem; margin: 0; line-height: 1.6; }
.field-error { color: #ffa6a6; font-size: 0.95rem; margin: 0; }
.field-error:empty { display: none; }
.cart-drawer__panel { grid-template-rows: auto minmax(0, 1fr) auto; height: 100dvh; }
.cart-drawer__header h2 { font-size: 1.8rem; line-height: 1.2; }
.cart-content { min-height: 0; overflow: auto; }
.cart-items { overflow: visible; }
.cart-item { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; padding: 12px 0; grid-template-columns: 80px minmax(0, 1fr); }
.cart-item img { width: 80px; height: 100px; border-radius: 4px; }
.cart-item p { overflow-wrap: anywhere; }
.cart-item__controls button { min-width: 38px; min-height: 38px; }
.cart-summary strong { font-size: 1.6rem; white-space: nowrap; }
.cart-summary .cart-checkout-actions { display: grid; gap: 12px; text-align: center; }
.text-link { color: var(--muted); font-size: 0.94rem; text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover { color: var(--ink); }
.cart-toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(16px);
  z-index: 60; width: max-content; max-width: calc(100% - 32px); pointer-events: none;
  background: #f6f6f6; color: #141414; padding: 13px 18px; border-radius: 6px;
  box-shadow: var(--shadow); opacity: 0; transition: opacity 160ms, transform 160ms; font-size: 0.95rem;
}
.cart-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.checkout-header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px max(20px, calc((100% - 1120px) / 2)); border-bottom: 1px solid var(--line);
}
.checkout-brand { display: flex; align-items: center; gap: 14px; font-weight: 800; }
.checkout-brand img { width: 48px; height: 58px; object-fit: contain; }
.checkout-main { max-width: 1160px; margin: 0 auto; padding: 40px 20px 80px; min-height: 70vh; }
.checkout-heading { margin-bottom: 32px; }
.checkout-heading h1 { font-size: 2.5rem; line-height: 1.1; max-width: none; margin-bottom: 0; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr); gap: 64px; align-items: start; }
.checkout-form { display: grid; gap: 22px; }
.checkout-form h2, .checkout-summary h2, .payment-result h2, .legal-content h2 { font-size: 1.4rem; line-height: 1.3; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.full-width { grid-column: 1 / -1; }
.terms-checkbox { display: flex; align-items: start; gap: 12px; font-weight: 400; }
.terms-checkbox input { width: 18px; height: 18px; flex-shrink: 0; margin: 3px 0 0; accent-color: var(--orange); }
.terms-checkbox a { text-decoration: underline; }
.payment-options { border-left: 3px solid #ffc439; padding: 2px 0 2px 16px; display: grid; gap: 6px; }
.payment-options strong { color: var(--ink); font-size: 1.05rem; line-height: 1.4; }
.payment-options p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; margin: 0; }
.paypal-button { background: #ffc439; color: #102c64; font-size: 1.05rem; min-height: 56px; white-space: normal; text-align: center; line-height: 1.4; }
.checkout-summary { padding-left: 26px; border-left: 1px solid var(--line); display: grid; gap: 18px; }
.checkout-items { display: grid; gap: 18px; }
.checkout-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: start; gap: 12px; }
.checkout-line img { width: 64px; height: 80px; object-fit: contain; background: #f7f7f5; border-radius: 4px; }
.checkout-line h3 { font-size: 0.95rem; line-height: 1.4; margin: 0 0 4px; }
.checkout-line p { font-size: 0.84rem; color: var(--muted); margin: 0 0 4px; overflow-wrap: anywhere; }
.checkout-line strong { font-size: 0.94rem; white-space: nowrap; }
.checkout-totals { display: grid; gap: 12px; margin: 12px 0; }
.checkout-totals > div { display: flex; justify-content: space-between; gap: 18px; }
.checkout-totals dt { color: var(--muted); }
.checkout-totals dd { margin: 0; white-space: nowrap; }
.checkout-grand-total { border-top: 1px solid var(--line); padding-top: 18px; font-size: 1.3rem; font-weight: 800; }
.checkout-grand-total dt { color: var(--ink); }
.checkout-notice { border-left: 3px solid var(--orange); padding: 14px 18px; background: #1e1b16; margin-bottom: 26px; }
.payment-result { max-width: 680px; padding: 24px 0; }
.payment-result p { line-height: 1.7; color: var(--muted); }
.payment-result .button { margin-bottom: 20px; }
.payment-result .text-link { display: block; }
.receipt-reference { font-family: ui-monospace, monospace; color: var(--orange) !important; overflow-wrap: anywhere; }
.legal-content { max-width: 760px; display: grid; gap: 16px; }
.legal-content p { color: var(--muted); }
.legal-content h2 { margin: 16px 0 0; }
.legal-content section { scroll-margin-top: 24px; }
.legal-content section h2 { margin-bottom: 16px; }
.legal-content h3 { font-size: 1.05rem; margin-top: 24px; }
.legal-content a { text-decoration: underline; text-underline-offset: 3px; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 12px 22px; border-block: 1px solid var(--line); padding: 16px 0; margin-bottom: 26px; font-size: 0.94rem; }
.admin-login { max-width: 440px; display: grid; gap: 20px; }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 26px; }
.admin-orders { display: grid; gap: 16px; }
.admin-order { border: 1px solid var(--line); border-radius: 6px; padding: 20px; }
.admin-order summary { cursor: pointer; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.admin-order h2 { font-size: 1.1rem; line-height: 1.4; }
.admin-order-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-top: 24px; }
.admin-order-content p, .admin-order-content li { color: var(--muted); overflow-wrap: anywhere; }
.admin-order-content form { display: grid; align-content: start; gap: 14px; }
.admin-status { color: #7de0ba; font-weight: 700; }
@media (max-width: 760px) {
  .hero h1 { font-size: 3.25rem; }
  .checkout-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .checkout-summary { order: -1; padding: 0 0 24px; border-left: 0; border-bottom: 1px solid var(--line); }
  .checkout-header { padding: 14px 20px; gap: 16px; }
  .checkout-brand { font-size: 0.95rem; gap: 10px; }
  .checkout-header .text-link { font-size: 0.85rem; text-align: right; }
  .admin-order-content { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .hero h1 { font-size: 2.25rem; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .checkout-line { grid-template-columns: 54px minmax(0, 1fr); }
  .checkout-line img { width: 54px; height: 70px; grid-row: span 2; }
  .checkout-line strong { grid-column: 2; }
  .cart-drawer__panel { padding: 16px; }
  .modal-copy h2 { font-size: 1.5rem; }
  .product-modal__dialog { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
