:root {
  --ink: #101010;
  --paper: #ffffff;
  --cream: #f6f3ef;
  --cream-dark: #ebe4dc;
  --black: #111111;
  --muted: #777777;
  --line: rgba(16, 16, 16, 0.12);
  --card: #ffffff;
  --shadow: 0 16px 36px rgba(27, 22, 18, 0.08);
  --ok: #25d366;
  --ok-ink: #08381c;
  /* Rosa oficial tomado del header chikasjeans.com */
  --brand-pink: #ffb7bb;
  --pink: #ff9eab;
  --pink-strong: #c44570;
  --pink-soft: #fbeaf0;
  --pink-mist: #ffd6da;
  --cart-pink: #c44570;
  --cart-pink-soft: #fbeaf0;
  /* Selección: gris cálido que convive con rosa y blanco */
  --select: #6f6568;
  --select-ink: #ffffff;
  font-family: "Inter", "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100dvh;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  background: var(--cream);
}

#app:has(#audience-picker:not([hidden])) {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 183, 187, 0.45), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(255, 214, 218, 0.55), transparent 50%),
    var(--cream);
}

button,
.cart-btn,
.primary,
.ghost,
.size-btn,
.qty-btn,
.add-btn,
.model-chip {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

#app {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1rem 6.5rem;
}

.store-header {
  margin: 0 -1rem 0.55rem;
  background: var(--brand-pink);
  border-bottom: 1px solid rgba(16, 16, 16, 0.06);
  box-shadow: 0 6px 18px rgba(232, 121, 140, 0.14);
}

#app:has(#shop-view:not([hidden])) .store-header {
  background: var(--brand-pink);
  border-bottom-color: rgba(16, 16, 16, 0.08);
}

.store-main {
  padding: 0 1rem;
}

.store-main-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0.4rem 0 0.3rem;
  min-height: 3rem;
}

.back-btn {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0.35rem 0.45rem 0.35rem 0.15rem;
  border: 0;
  background: transparent;
  color: var(--black);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.back-btn[hidden] {
  display: none;
}

.back-btn span {
  line-height: 1;
}

.audience-picker {
  margin: 0.35rem 0 1.75rem;
}

.audience-picker-panel {
  position: relative;
  overflow: hidden;
  padding: 1.55rem 1.15rem 1.25rem;
  border: 1px solid rgba(255, 183, 187, 0.55);
  border-radius: 1.5rem;
  background:
    linear-gradient(180deg, rgba(255, 253, 251, 0.98) 0%, rgba(255, 240, 241, 0.88) 42%, rgba(246, 243, 239, 0.96) 100%);
  box-shadow: 0 24px 56px rgba(36, 24, 30, 0.1);
}

.audience-picker-panel::before {
  content: "";
  position: absolute;
  inset: auto -20% -35% auto;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 183, 187, 0.5), transparent 68%);
  pointer-events: none;
}

.audience-picker-kicker {
  margin: 0;
  position: relative;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink-strong);
  text-align: center;
}

.audience-picker-ornament {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: 0.7rem 0 0.35rem;
  color: var(--pink-strong);
}

.audience-picker-ornament-line {
  display: block;
  width: 2.6rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-pink) 45%, transparent 100%);
}

.audience-picker-script {
  position: relative;
  margin: 0.15rem 0 0.2rem;
  font-family: "Great Vibes", "Segoe Script", cursive;
  font-size: clamp(1.85rem, 7vw, 2.45rem);
  line-height: 1;
  color: #2a2520;
  text-align: center;
}

.audience-picker-copy {
  position: relative;
  margin: 0.25rem auto 1.35rem;
  max-width: 28rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
  text-align: center;
}

.audience-picker-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.95rem;
}

@media (min-width: 640px) {
  .audience-picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.05rem;
  }
}

/* PC: cards más compactas; móvil/tablet quedan igual */
@media (min-width: 1024px) {
  .audience-picker {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
  }

  .audience-picker-panel {
    padding: 1.35rem 1.2rem 1.15rem;
  }

  .audience-picker-grid {
    max-width: 520px;
    margin: 0 auto;
    gap: 0.9rem;
  }

  .audience-card {
    aspect-ratio: 1 / 1;
    max-height: none;
  }

  .audience-card-content {
    padding: 0.55rem 0.85rem 0.8rem;
  }

  .audience-card strong {
    font-size: 1.65rem;
  }
}

.audience-card {
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
  /* Portadas de catálogo son cuadradas: sin recorte */
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid rgba(27, 22, 18, 0.08);
  border-radius: 1.25rem;
  overflow: hidden;
  background: #f7f0f2;
  color: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 16px 36px rgba(27, 22, 18, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.audience-card:active {
  transform: scale(0.985);
}

.audience-card:hover,
.audience-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(231, 90, 122, 0.35);
  box-shadow: 0 22px 44px rgba(36, 24, 30, 0.16);
  outline: none;
}

.audience-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    110deg,
    #f0e6ea 0%,
    #faf4f6 42%,
    #f0e6ea 78%
  );
  background-size: 220% 100%;
  animation: skeleton-shimmer 1.35s ease-in-out infinite;
  transition: opacity 0.28s ease;
}

.audience-card:has(.audience-card-cover.is-ready)::before {
  opacity: 0;
  animation: none;
}

.audience-card-cover {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: transparent;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.audience-card-cover.is-ready {
  opacity: 1;
}

.audience-card-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  /* Solo oscurece el tercio inferior: la portada se ve limpia arriba */
  background:
    linear-gradient(
      180deg,
      rgba(16, 16, 16, 0) 0%,
      rgba(16, 16, 16, 0) 55%,
      rgba(16, 16, 16, 0.22) 72%,
      rgba(16, 16, 16, 0.78) 100%
    );
  pointer-events: none;
}

.audience-card-dama .audience-card-scrim {
  background:
    linear-gradient(
      180deg,
      rgba(231, 90, 122, 0) 0%,
      rgba(231, 90, 122, 0) 55%,
      rgba(24, 10, 16, 0.2) 72%,
      rgba(24, 10, 16, 0.8) 100%
    );
}

.audience-card-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.16rem;
  padding: 0.7rem 0.95rem 0.9rem;
  /* Franja baja compacta: protagonismo sin tapar el look */
  max-height: 42%;
  justify-content: flex-end;
}

.audience-card-band {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.08rem;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.audience-card-dama .audience-card-band {
  background: rgba(231, 90, 122, 0.92);
  color: #fff;
}

.audience-card-caballero .audience-card-band {
  background: rgba(16, 16, 16, 0.82);
  color: #fde8f4;
  border: 1px solid rgba(253, 232, 244, 0.22);
}

.audience-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 5.8vw, 1.95rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.audience-card-meta {
  font-size: 0.74rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}

.audience-card-cta {
  margin-top: 0.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.audience-card-cta em {
  font-style: normal;
  font-weight: 600;
}

.audience-card-dama .audience-card-cta {
  color: #fff;
  background: linear-gradient(90deg, #ef6f92 0%, #e75a7a 55%, #df4f73 100%);
  box-shadow: 0 10px 20px rgba(231, 90, 122, 0.34);
}

.audience-card-caballero .audience-card-cta {
  color: #fde8f4;
  background: rgba(16, 16, 16, 0.92);
  border: 1px solid rgba(253, 232, 244, 0.18);
  box-shadow: 0 10px 20px rgba(16, 16, 16, 0.28);
}

.audience-picker-foot {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 0.55rem;
  margin: 1.2rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: 1rem;
  background: #101010;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.74rem;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 12px 28px rgba(16, 16, 16, 0.16);
}

.audience-picker-foot strong {
  color: var(--pink);
  font-weight: 700;
}

.audience-picker-foot-pill {
  display: inline-block;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  background: var(--pink);
  color: var(--black);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cart-line-audience {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  background: var(--pink-soft);
  color: #99436f;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.brand {
  grid-column: 2;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  line-height: 1;
  text-align: center;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: 2.85rem;
  height: 2.85rem;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 2px 6px rgba(16, 16, 16, 0.12));
}

.store-subtitle {
  margin: 0;
  padding: 0.08rem 0 0.35rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.15;
  color: rgba(16, 16, 16, 0.58);
  text-align: center;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.store-subtitle[hidden] {
  display: none !important;
}

.meta {
  margin: 0;
  color: rgba(16, 16, 16, 0.45);
  font-size: 0.78rem;
  font-weight: 500;
}

.mayor-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 0.55rem;
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  background: var(--black);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.74rem;
  line-height: 1.45;
  text-align: center;
}

.mayor-note strong {
  color: #fefde1;
  font-weight: 600;
}

.mayor-kicker {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: #fefde1;
  color: var(--black);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#shop-view {
  padding-top: 0.35rem;
}

.shop-catalog-kicker {
  margin: 0.15rem auto 0.85rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink-strong);
}

.shop-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  margin: 0 0 0.7rem;
}

.filters-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  min-height: 2.65rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--black);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(16, 16, 16, 0.04);
  white-space: nowrap;
}

.filters-open-btn:hover,
.filters-open-btn:focus-visible {
  border-color: rgba(255, 120, 140, 0.55);
  outline: none;
}

.filters-open-btn.is-active {
  background: var(--pink-soft);
  border-color: rgba(196, 69, 112, 0.28);
  color: var(--pink-strong);
}

.filters-open-icon {
  flex: 0 0 auto;
}

.filters-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--pink-strong);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.filters-count[hidden] {
  display: none;
}

.filters-open-btn[hidden] {
  display: none;
}

.active-filters-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.85rem;
}

.active-filters-summary[hidden] {
  display: none;
}

.active-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  max-width: 100%;
  padding: 0.32rem 0.55rem 0.32rem 0.7rem;
  border: 1px solid rgba(196, 69, 112, 0.22);
  border-radius: 999px;
  background: var(--pink-soft);
  color: var(--pink-strong);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.active-filter-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.active-filter-pill em {
  font-style: normal;
  opacity: 0.75;
}

.ref-search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  min-width: 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 6px 16px rgba(16, 16, 16, 0.04);
}

.ref-search-icon {
  display: grid;
  place-items: center;
  color: rgba(16, 16, 16, 0.45);
  flex: 0 0 auto;
}

.ref-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 0.92rem;
  color: var(--black);
}

.ref-search input::placeholder {
  color: rgba(16, 16, 16, 0.42);
}

.ref-search input::-webkit-search-decoration,
.ref-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.ref-search-clear {
  flex: 0 0 auto;
  width: 1.55rem;
  height: 1.55rem;
  border: 0;
  border-radius: 999px;
  background: rgba(16, 16, 16, 0.08);
  color: rgba(16, 16, 16, 0.7);
  font: inherit;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.ref-search-clear[hidden] {
  display: none;
}

.ref-search:focus-within {
  border-color: rgba(255, 120, 140, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 183, 187, 0.35);
}

.model-filters {
  margin: 0;
  padding: 0 0 1.15rem;
  border-bottom: 1px solid rgba(16, 16, 16, 0.08);
}

.model-filters:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.model-filters + .model-filters,
.size-filters + .model-filters,
.model-filters + .fabric-filters,
.size-filters + .fabric-filters {
  margin-top: 1.05rem;
}

.model-filters[hidden] {
  display: none;
}

.model-filters-label {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--black);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.model-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  overflow: visible;
  padding-bottom: 0;
}

.model-chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--black);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.model-chip.active {
  background: var(--select);
  border-color: var(--select);
  color: var(--select-ink);
}

.model-chip .chip-count,
.color-chip .chip-count {
  margin-left: 0.25rem;
  opacity: 0.7;
  font-weight: 500;
}

.size-filters > .model-filters-label,
.fabric-filters > .model-filters-label {
  margin: 0 0 0.65rem;
}

.size-filter-list {
  align-items: center;
}

.size-chip {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--black);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.size-chip.is-all {
  padding: 0 0.95rem;
  font-weight: 600;
}

.size-chip.active {
  background: var(--select);
  border-color: var(--select);
  color: var(--select-ink);
}

.fabric-filter-list {
  align-items: center;
}

.filters-drawer {
  position: fixed;
  inset: 0;
  z-index: 22;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  align-items: stretch;
  pointer-events: none;
}

.filters-drawer[hidden] {
  display: none;
}

.filters-drawer.is-open {
  pointer-events: auto;
}

.filters-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(16, 16, 16, 0.48);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.filters-drawer.is-open .filters-backdrop {
  opacity: 1;
}

.filters-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(22.5rem, calc(100vw - 2.25rem));
  max-width: 100%;
  height: 100%;
  max-height: 100dvh;
  background: var(--paper);
  box-shadow: 18px 0 40px rgba(16, 16, 16, 0.18);
  transform: translateX(-104%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  padding:
    calc(0.85rem + env(safe-area-inset-top))
    1rem
    calc(0.95rem + env(safe-area-inset-bottom));
}

.filters-drawer.is-open .filters-panel {
  transform: translateX(0);
}

.filters-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.15rem 0 0.85rem;
  border-bottom: 1px solid rgba(16, 16, 16, 0.08);
}

.filters-panel-header h2 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--black);
}

.filters-close-btn {
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(16, 16, 16, 0.06);
  color: var(--black);
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.filters-panel-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 0 1.15rem;
}

.filters-panel-footer {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 0.55rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(16, 16, 16, 0.08);
}

.filters-clear-btn,
.filters-apply-btn {
  min-height: 2.75rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  border: 0;
}

.filters-clear-btn {
  background: var(--cream);
  color: var(--black);
  border: 1px solid var(--line);
}

.filters-apply-btn {
  background: var(--black);
  color: var(--paper);
}

body.filters-open {
  overflow: hidden;
}

body.filters-open #app {
  filter: blur(2px);
  pointer-events: none;
  user-select: none;
  transform: translateZ(0);
}

body.filters-open .float-add-wrap {
  display: none;
}

@media (max-width: 719px) {
  .shop-toolbar {
    grid-template-columns: 1fr;
  }

  .filters-open-btn {
    width: 100%;
  }

  .filters-panel {
    width: min(100vw, 22.5rem);
  }
}

@media (min-width: 1024px) {
  .filters-panel {
    width: min(24rem, 34vw);
  }
}

.fabric-chip,
.color-chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--black);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.fabric-chip.active,
.color-chip.active {
  background: var(--select);
  border-color: var(--select);
  color: var(--select-ink);
}

.color-filter-list {
  align-items: center;
}

.drawer-note {
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.76rem;
  line-height: 1.4;
  border-radius: 0.75rem;
  background: var(--cream);
  color: rgba(16, 16, 16, 0.72);
}

.drawer-note strong {
  color: var(--black);
}

.store-header .cart-btn {
  grid-column: 3;
  justify-self: end;
  position: relative;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  padding: 0;
  background: rgba(255, 253, 251, 0.42);
  color: var(--black);
  border-radius: 999px;
  border: 1px solid rgba(16, 16, 16, 0.08);
  box-shadow: none;
}

.store-header .cart-btn:active {
  transform: scale(0.96);
}

.store-header .cart-icon {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
}

.store-header .cart-badge {
  position: absolute;
  top: -0.2rem;
  right: -0.22rem;
  min-width: 0.95rem;
  height: 0.95rem;
  padding: 0 0.18rem;
  border-radius: 999px;
  background: #fff;
  color: var(--black);
  border: 1.5px solid rgba(16, 16, 16, 0.12);
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 0.95rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(16, 16, 16, 0.12);
}

.store-header .back-btn {
  padding: 0.28rem 0.55rem 0.28rem 0.28rem;
  border-radius: 999px;
  background: rgba(255, 253, 251, 0.35);
  border: 1px solid rgba(16, 16, 16, 0.06);
  font-size: 0.74rem;
}

.cart-btn, .primary, .ghost, .size-btn, .qty-btn {
  font: inherit;
  cursor: pointer;
  border: 0;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  /* Evita saltos de layout al ir agregando páginas */
  min-height: 40vh;
}

@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 980px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* PC: layout ancho tipo chikasjeans; mobile/tablet quedan igual */
@media (min-width: 1024px) {
  #app {
    max-width: none;
    width: 100%;
    padding: 0 4vw 6.5rem;
  }

  .store-header {
    margin: 0 -4vw 1.25rem;
    border-bottom: 1px solid rgba(16, 16, 16, 0.08);
  }

  .store-main {
    padding: 0 4vw;
  }

  .store-main-row {
    padding: 0.5rem 0 0.35rem;
    min-height: 2.75rem;
  }

  .brand-logo {
    width: 3.15rem;
    height: 3.15rem;
  }

  .shop-catalog-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
  }

  .store-subtitle {
    padding: 0.06rem 0 0.42rem;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .shop-toolbar {
    max-width: 48rem;
  }

  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem 1.5rem;
  }

  .card {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .card img,
  .card .card-media {
    border-radius: 0;
  }

  .card .body {
    padding: 0.85rem 0 0;
  }
}

@keyframes skeleton-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* Sombra más liviana: menos costo al scrollear en WebView */
  box-shadow: 0 4px 14px rgba(16, 16, 16, 0.045);
  /* Solo renderiza/pinta cards cercanas al viewport */
  content-visibility: auto;
  contain-intrinsic-size: auto 560px;
  contain: layout style paint;
}

.card.card-enter {
  animation: rise 0.35s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.card-media {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  overflow: hidden;
  background: var(--cream-dark);
}

.card-media-skeleton {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    110deg,
    #ebe4dc 0%,
    #f7f3ef 42%,
    #ebe4dc 78%
  );
  background-size: 220% 100%;
  animation: skeleton-shimmer 1.35s ease-in-out infinite;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.card-media.is-loaded .card-media-skeleton {
  opacity: 0;
  animation: none;
}

.card-media-missing {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  width: 100%;
  background: #ddd6cc;
  color: #666;
  font-size: 0.8rem;
}

.card img {
  position: relative;
  z-index: 1;
  aspect-ratio: 1;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: transparent;
  display: block;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.card img.is-ready {
  opacity: 1;
}

.skeleton-card {
  pointer-events: none;
}

.skeleton-line {
  height: 0.72rem;
  border-radius: 999px;
  background: linear-gradient(
    110deg,
    #ebe4dc 0%,
    #f7f3ef 42%,
    #ebe4dc 78%
  );
  background-size: 220% 100%;
  animation: skeleton-shimmer 1.35s ease-in-out infinite;
}

.skeleton-line.w-40 { width: 40%; }
.skeleton-line.w-50 { width: 50%; }
.skeleton-line.w-55 { width: 55%; }
.skeleton-line.w-70 { width: 70%; }
.skeleton-line.mt {
  margin-top: 0.35rem;
}

.skeleton-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skeleton-chip {
  display: inline-block;
  height: 2rem;
  width: 3.4rem;
  border-radius: 999px;
  background: linear-gradient(
    110deg,
    #ebe4dc 0%,
    #f7f3ef 42%,
    #ebe4dc 78%
  );
  background-size: 220% 100%;
  animation: skeleton-shimmer 1.35s ease-in-out infinite;
}

.skeleton-chip.round {
  width: 2.15rem;
  height: 2.15rem;
}

.skeleton-chip.wide {
  width: 4.6rem;
}

.skeleton-size-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

#grid[aria-busy="true"] {
  min-height: 55vh;
}

@media (prefers-reduced-motion: reduce) {
  .card-media-skeleton,
  .skeleton-line,
  .skeleton-chip,
  .audience-card::before {
    animation: none;
  }
}

.card .body {
  padding: 0.85rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.card-head {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.card-id-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.ref {
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #817b77;
}

.card-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--black);
  text-wrap: balance;
}

.card-fit {
  margin: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(255, 183, 187, 0.22), rgba(246, 243, 239, 0.95));
  border: 1px solid rgba(129, 123, 119, 0.16);
  font-size: 0.78rem;
  line-height: 1.45;
  color: #4f4a47;
  font-weight: 500;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.card-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid rgba(16, 16, 16, 0.08);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--black);
  line-height: 1.2;
}

.card-chip-k {
  color: #817b77;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.card-prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin: 0.1rem 0 0;
}

.price-cell {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.5rem 0.55rem;
  border-radius: 0.8rem;
  background: #faf8f6;
  border: 1px solid rgba(16, 16, 16, 0.07);
}

.price-label {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #817b77;
}

.price-cell strong {
  font-size: 0.98rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--black);
  line-height: 1.15;
}

/* Compat: filas antiguas de precio (carrito / legacy) */
.prices {
  display: grid;
  gap: 0.22rem;
  margin: 0.15rem 0 0.2rem;
  font-size: 0.82rem;
  color: var(--black);
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
}

.price-row span {
  font-weight: 500;
  opacity: 0.65;
}

.price-row strong {
  font-weight: 700;
}

.sil {
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--muted);
}

.sizes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  margin: 0.15rem 0 0;
  min-height: 1.35rem;
}

.sizes-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #817b77;
}

.size-chart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  max-width: 100%;
  margin: 0;
  padding: 0.32rem 0.55rem 0.32rem 0.35rem;
  border: 1px solid rgba(196, 69, 112, 0.28);
  border-radius: 0.85rem;
  background: linear-gradient(180deg, #fff7f9 0%, #ffe8ee 100%);
  color: var(--pink-strong);
  font: inherit;
  line-height: 1.15;
  text-align: left;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 1px 3px rgba(196, 69, 112, 0.12);
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.12s ease;
}

.size-chart-btn-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.55rem;
  background: #fff;
  border: 1px solid rgba(196, 69, 112, 0.18);
  color: var(--pink-strong);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.size-chart-btn-icon svg {
  display: block;
}

.size-chart-btn-copy {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
  padding-right: 0.15rem;
}

.size-chart-btn-copy strong {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  color: #8f2f52;
}

.size-chart-btn-copy small {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #b56a82;
  white-space: nowrap;
}

.size-chart-btn:hover {
  border-color: rgba(196, 69, 112, 0.48);
  background: linear-gradient(180deg, #fff 0%, #ffd6df 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 4px 10px rgba(196, 69, 112, 0.16);
  transform: translateY(-1px);
}

.size-chart-btn:hover .size-chart-btn-copy strong {
  color: #7a2445;
}

.size-chart-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
}

.size-chart-btn:focus-visible {
  outline: 2px solid rgba(255, 183, 187, 0.95);
  outline-offset: 2px;
}

.size-chart-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: max(0.75rem, env(safe-area-inset-top)) 0.75rem max(0.75rem, env(safe-area-inset-bottom));
}

.size-chart-modal[hidden] {
  display: none;
}

.size-chart-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(24, 20, 22, 0.48);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.size-chart-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(42rem, 100%);
  max-height: min(92dvh, 920px);
  overflow: hidden;
  border-radius: 1.25rem;
  background: #fffaf8;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 24px 60px rgba(24, 20, 22, 0.28),
    0 2px 0 rgba(255, 255, 255, 0.65) inset;
  animation: size-chart-in 0.22s ease-out;
}

@keyframes size-chart-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.size-chart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid rgba(16, 16, 16, 0.06);
}

.size-chart-kicker {
  margin: 0 0 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a8f92;
}

.size-chart-header h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #1f1a1c;
}

.size-chart-close {
  display: inline-grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 999px;
  background: #fff;
  color: #5f5659;
  cursor: pointer;
}

.size-chart-close:hover {
  color: #1f1a1c;
  border-color: rgba(16, 16, 16, 0.16);
}

.size-chart-body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 0.85rem 1rem 1.1rem;
  -webkit-overflow-scrolling: touch;
}

.size-chart-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: 0 1px 0 rgba(16, 16, 16, 0.04);
}

body.size-chart-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .sizes-head {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .size-chart-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 0.38rem 0.55rem 0.38rem 0.38rem;
  }

  .size-chart-btn-copy strong {
    font-size: 0.76rem;
  }

  .size-chart-btn-copy small {
    font-size: 0.6rem;
  }

  .size-chart-panel {
    width: min(100%, 100%);
    max-height: min(94dvh, 100%);
    border-radius: 1.1rem;
  }

  .size-chart-header {
    padding: 0.9rem 0.85rem 0.7rem;
  }

  .size-chart-body {
    padding: 0.7rem 0.75rem 0.95rem;
  }
}

.card-size-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.05rem;
}

.card .card-size-row {
  padding: 0.35rem 0.4rem 0.35rem 0.45rem;
  border-radius: 0.85rem;
  background: #faf8f6;
  border: 1px solid rgba(16, 16, 16, 0.06);
}

.card .card-size-row.is-focused,
.card .card-size-row.has-qty {
  border-color: rgba(111, 101, 104, 0.35);
  background: #fff;
}

.card .cart-line-size {
  display: inline;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--black);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.card-size-row.has-qty .cart-line-size {
  background: transparent;
  color: var(--black);
}

.card-size-subtotal {
  margin-top: 0.45rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(16, 16, 16, 0.08);
  text-align: right;
  color: var(--black);
  font-size: 0.92rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.size-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 2.15rem;
  height: 2.15rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--black);
}

.size-btn.active {
  background: var(--select);
  border-color: var(--select);
  color: var(--select-ink);
}

.size-btn.has-qty:not(.active) {
  border-color: rgba(16, 16, 16, 0.45);
  box-shadow: inset 0 0 0 1px rgba(16, 16, 16, 0.12);
}

.size-count {
  position: absolute;
  top: -0.35rem;
  right: -0.3rem;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  background: var(--select);
  color: var(--select-ink);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.05rem;
  text-align: center;
}

.size-btn.active .size-count {
  background: var(--paper);
  color: var(--select);
}

.pick-hint {
  margin: 0.15rem 0 0;
  font-size: 0.68rem;
  line-height: 1.35;
  color: rgba(16, 16, 16, 0.45);
}

.qty-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.qty-block.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.qty-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(16, 16, 16, 0.55);
}

.qty-size-hint {
  font-style: normal;
  font-weight: 500;
  opacity: 0.75;
}

.card-qty .qty-value {
  min-width: 1.4rem;
  text-align: center;
  font-weight: 700;
}

.add-btn {
  display: none;
}

.float-add-wrap {
  position: fixed;
  left: 50%;
  bottom: calc(1.1rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 15;
  width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
}

.float-add-wrap[hidden] {
  display: none;
}

.float-add {
  pointer-events: auto;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.25rem;
  background: var(--black);
  color: var(--paper);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(16, 16, 16, 0.28);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.float-add:active {
  transform: scale(0.98);
}

body.cart-open .float-add-wrap {
  display: none;
}

.empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

.hidden { display: none; }
.hint { font-size: 0.85rem; opacity: 0.75; }

.drawer {
  position: fixed;
  inset: 0;
  /* Sin backdrop-filter: el difuminado lo hace #app (mucho más barato) */
  background: rgba(16, 16, 16, 0.55);
  display: grid;
  align-items: end;
  justify-items: stretch;
  z-index: 20;
  padding: 0;
  contain: layout style;
}

.drawer[hidden] { display: none; }

body.cart-open {
  overflow: hidden;
}

body.cart-open #app {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
  /* Una sola capa GPU en vez de re-difuminar el overlay cada frame */
  transform: translateZ(0);
}

.cards-settled .card.card-enter {
  animation: none;
}

#grid-sentinel {
  width: 100%;
  height: 1px;
  pointer-events: none;
  visibility: hidden;
}

.drawer-panel {
  --drawer-chrome: 5.1rem;
  background: var(--paper);
  border-radius: 1.4rem 1.4rem 0 0;
  padding: 0.45rem 1rem 0;
  /* Sheet alto: sube la ventanita y deja el pie pegado abajo */
  height: min(88dvh, 100%);
  max-height: min(88dvh, 100%);
  width: 100%;
  box-shadow: 0 -12px 40px rgba(16, 16, 16, 0.18);
  animation: slide 0.22s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateZ(0);
  contain: layout paint;
}

@keyframes slide {
  from { transform: translateY(28px); opacity: 0.55; }
  to { transform: none; opacity: 1; }
}

.drawer-handle {
  width: 2.6rem;
  height: 0.28rem;
  border-radius: 999px;
  background: rgba(16, 16, 16, 0.18);
  margin: 0.2rem auto 0.65rem;
  flex-shrink: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.55rem;
  flex-shrink: 0;
  gap: 0.75rem;
}

.drawer-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--black);
  min-width: 0;
}

.drawer-title-icon {
  flex-shrink: 0;
  opacity: 0.9;
}

.drawer-panel h2 {
  margin: 0;
  font-family: "Inter", "DM Sans", system-ui, sans-serif;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--black);
  line-height: 1.15;
}

.drawer-brand-tag {
  margin: 0 0 0.18rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cart-pink);
  line-height: 1;
}

.drawer-units {
  margin: 0.18rem 0 0;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.drawer-header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
}

.ghost {
  background: transparent;
  color: var(--black);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
}

.cart-close-btn {
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.85);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.drawer-note {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.8rem;
  font-size: 0.78rem;
  line-height: 1.4;
  border-radius: 1rem;
  background: var(--cream);
  color: rgba(17, 17, 17, 0.72);
  flex-shrink: 0;
  justify-content: flex-start;
  text-align: left;
}

.drawer-note.edit-pedido-banner {
  background: #eef6ff;
  border: 1px solid rgba(37, 99, 235, 0.18);
  color: #1e3a5f;
}

.drawer-note.cart-mayor-banner {
  display: block;
}

.drawer-note strong {
  color: var(--black);
  font-weight: 700;
}

.drawer-actions {
  display: flex;
  justify-content: flex-end;
  margin: -0.35rem 0 0.65rem;
  flex-shrink: 0;
}

.cart-clear-btn {
  background: transparent;
  border: 0;
  padding: 0.1rem 0.15rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--cart-pink);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cart-clear-btn:hover {
  color: #9a3558;
}

#cart-lines {
  list-style: none;
  margin: 0;
  padding: 0 0.15rem 0.45rem 0;
  display: grid;
  gap: 0.75rem;
  align-content: start;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(17, 17, 17, 0.25) transparent;
}

#cart-lines::-webkit-scrollbar {
  width: 4px;
}

#cart-lines::-webkit-scrollbar-thumb {
  background: rgba(17, 17, 17, 0.22);
  border-radius: 999px;
}

.cart-line {
  display: grid;
  grid-template-columns: 3.6rem 1fr;
  gap: 0.75rem;
  padding: 0.8rem;
  border-radius: 1.1rem;
  background: #f3f1ee;
  border: 1px solid rgba(16, 16, 16, 0.05);
  box-shadow: none;
  font-size: 0.9rem;
}

.cart-thumb {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 0.7rem;
  overflow: hidden;
  background: var(--cream-dark);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-line-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cart-line-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.55rem;
}

.cart-line-main {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.cart-line-ref-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.cart-remove-ref {
  align-self: flex-start;
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cart-pink);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cart-remove-ref:hover {
  color: #9a3558;
}

.cart-sizes {
  display: grid;
  gap: 0.35rem;
}

.cart-size-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.cart-size-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  min-width: 0;
}

.cart-size-unit {
  color: var(--muted);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
}

.cart-size-unit .is-struck {
  text-decoration: line-through;
  opacity: 0.55;
  margin-right: 0.2rem;
}

.cart-line-ref {
  color: var(--black);
  font-size: 0.92rem;
  line-height: 1.2;
}

.cart-line-size {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: var(--black);
  color: var(--paper);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cart-line-qty {
  min-width: 1.35rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.line-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  color: var(--muted);
  font-size: 0.74rem;
  margin-top: 0.15rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(16, 16, 16, 0.06);
}

.line-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  min-width: 0;
}

.line-price-detal.is-struck {
  text-decoration: line-through;
  opacity: 0.55;
}

.line-price-mayor.is-active {
  color: var(--cart-pink);
  font-weight: 700;
}

.line-meta.is-mayor .line-subtotal {
  color: var(--cart-pink);
}

.line-subtotal {
  margin-left: auto;
  color: var(--black);
  font-size: 0.88rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.qty-row {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.qty-btn {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: var(--cream);
  color: var(--black);
  font-weight: 700;
}

.drawer-footer {
  margin-top: auto;
  padding: 0.5rem 0 calc(0.65rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  flex-shrink: 0;
  background: var(--paper);
  box-shadow: 0 -4px 14px rgba(16, 16, 16, 0.03);
}

.drawer-checkout-note {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--muted);
}

.checkout-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
}

.checkout-stage.is-swapping {
  pointer-events: none;
}

.checkout-panel {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  background: var(--paper);
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 220ms cubic-bezier(0.33, 1, 0.68, 1),
    transform 220ms cubic-bezier(0.33, 1, 0.68, 1);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.checkout-panel[hidden] {
  display: none !important;
}

.checkout-panel.is-leaving {
  opacity: 0;
  transform: translate3d(-6px, 0, 0);
  pointer-events: none;
  z-index: 1;
}

.checkout-panel.is-entering {
  opacity: 0;
  transform: translate3d(10px, 0, 0);
  pointer-events: none;
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .checkout-panel {
    transition: none !important;
  }
}

.checkout-step-body {
  display: grid;
  gap: 0.7rem;
  align-content: start;
  padding: 0 0 0.45rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
}

.checkout-nav-btn {
  justify-self: start;
  font-size: 0.78rem;
  padding: 0.42rem 0.85rem;
}

.checkout-step-badge {
  margin: 0;
  justify-self: start;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--pink-soft);
  color: var(--pink-strong);
  border: 1px solid rgba(255, 183, 187, 0.55);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.checkout-summary {
  margin: 0 0 0.35rem;
}

.checkout-confirm-footer {
  padding-top: 0.55rem;
}

.checkout-summary-payable {
  margin: 0 0 0.55rem;
}

.checkout-summary-payable .total-payable {
  margin-top: 0;
}

.checkout-customer-fields[hidden] {
  display: none !important;
}

.checkout-title {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
  line-height: 1.2;
}

.checkout-lead {
  margin: -0.15rem 0 0.1rem;
  font-size: 0.84rem;
  line-height: 1.45;
  font-weight: 500;
  color: var(--muted);
}

.checkout-pay-methods {
  margin: 0 0 1.15rem;
  padding: 0;
  border: 0;
}

.checkout-pay-methods .checkout-title {
  margin-bottom: 0.15rem;
}

.checkout-pay-options {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.75rem;
  margin: 0.75rem 0 0.25rem;
  width: 100%;
}

.checkout-pay-option {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.checkout-pay-option input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
}

.checkout-pay-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  width: 100%;
  box-sizing: border-box;
  min-height: 4.1rem;
  padding: 0.95rem 1rem;
  border: 2px solid rgba(16, 16, 16, 0.12);
  border-radius: 1.05rem;
  background: #fff;
  box-shadow: 0 1px 0 rgba(16, 16, 16, 0.03);
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.12s ease;
}

.checkout-pay-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}

.checkout-pay-copy strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--black);
}

.checkout-pay-copy small {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--muted);
}

.checkout-pay-check {
  flex: 0 0 auto;
  width: 1.45rem;
  height: 1.45rem;
  border: 2px solid rgba(16, 16, 16, 0.22);
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 0 var(--brand-pink);
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.checkout-pay-option input[type="radio"]:checked + .checkout-pay-card {
  border-color: var(--cart-pink, var(--brand-pink));
  background: rgba(255, 183, 187, 0.22);
  box-shadow: 0 0 0 3px rgba(255, 183, 187, 0.38);
}

.checkout-pay-option input[type="radio"]:checked + .checkout-pay-card .checkout-pay-check {
  border-color: var(--cart-pink, #c44570);
  background: var(--cart-pink, #c44570);
  box-shadow: inset 0 0 0 0.28rem #fff;
}

.checkout-pay-option input[type="radio"]:focus-visible + .checkout-pay-card {
  border-color: var(--brand-pink);
  box-shadow: 0 0 0 3px rgba(255, 183, 187, 0.55);
}

.checkout-pay-option:active .checkout-pay-card {
  transform: scale(0.985);
}

.checkout-pay-methods.is-invalid .checkout-pay-card {
  border-color: rgba(196, 69, 112, 0.45);
}

.checkout-pay-option.is-locked {
  cursor: not-allowed;
  opacity: 0.5;
}

.checkout-pay-option.is-locked .checkout-pay-card {
  background: #f6f4f1;
  box-shadow: none;
}

.checkout-pay-option.is-locked:active .checkout-pay-card {
  transform: none;
}

.checkout-field {
  display: grid;
  gap: 0.28rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.checkout-field input,
.checkout-field select {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid rgba(16, 16, 16, 0.1);
  border-radius: 0.9rem;
  padding: 0.7rem 0.9rem;
  font-family: "DM Sans", system-ui, sans-serif;
  /* 16px evita zoom automático en iOS al enfocar */
  font-size: 16px;
  font-weight: 500;
  color: var(--black);
  background: #fff;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  -webkit-appearance: none;
  appearance: none;
}

.checkout-field input::placeholder {
  color: rgba(116, 111, 105, 0.75);
  font-weight: 500;
}

.checkout-field input:focus,
.checkout-field select:focus {
  border-color: var(--brand-pink);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 183, 187, 0.45);
}

.checkout-msg {
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 1rem;
  background: #faf8f4;
  border: 1px solid rgba(16, 16, 16, 0.06);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
}

.checkout-msg.ok {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.18);
  color: var(--ok-ink);
}

.checkout-msg.warn {
  background: rgba(231, 90, 122, 0.1);
  border-color: rgba(231, 90, 122, 0.16);
  color: #8a3a4f;
}

.checkout-missing-msg {
  margin: 0 0 0.45rem;
}

.checkout-field.is-invalid input,
.checkout-field.is-invalid select {
  border-color: #c45b73;
  background: #fff8f9;
  box-shadow: 0 0 0 3px rgba(231, 90, 122, 0.22);
}

.checkout-customer-fields {
  display: grid;
  gap: 0.55rem;
  padding-top: 0.05rem;
}

.checkout-city-combo {
  position: relative;
}

.checkout-city-list {
  position: absolute;
  z-index: 8;
  top: calc(100% + 0.3rem);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  max-height: 12rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 1rem;
  border: 1px solid rgba(16, 16, 16, 0.1);
  background: #fff;
  box-shadow: 0 14px 28px rgba(16, 16, 16, 0.12);
}

.checkout-city-list[hidden] {
  display: none !important;
}

.checkout-city-option {
  display: grid;
  gap: 0.1rem;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  cursor: pointer;
  font: inherit;
  color: var(--black);
}

.checkout-city-option:hover,
.checkout-city-option.is-active {
  background: #faf8f4;
}

.checkout-city-option strong {
  font-size: 0.9rem;
  font-weight: 700;
}

.checkout-city-option small {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}

.checkout-city-empty {
  margin: 0;
  padding: 0.7rem 0.75rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.checkout-field input[readonly] {
  opacity: 0.92;
  color: rgba(16, 16, 16, 0.72);
}

.checkout-tipo-note {
  margin: 0.15rem 0 0;
  padding: 0.65rem 0.85rem;
  border-radius: 1rem;
  background: #faf8f4;
  border: 1px solid rgba(16, 16, 16, 0.06);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
}

.checkout-tipo-note strong {
  color: var(--black);
}

.total {
  margin: 0 0 0.65rem;
}

.cart-empty {
  margin: 0.55rem 0;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
}

.mayor-progress {
  margin: 0 0 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 1rem;
  background: var(--cart-pink-soft);
}

.mayor-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.mayor-progress-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--black);
}

.mayor-progress-count {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--cart-pink);
  white-space: nowrap;
}

.mayor-progress-track {
  height: 0.42rem;
  border-radius: 999px;
  background: rgba(196, 69, 112, 0.18);
  overflow: hidden;
}

.mayor-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d96a8f, var(--cart-pink));
  transition: width 280ms ease;
}

.mayor-progress-msg {
  margin: 0.45rem 0 0;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
}

.mayor-progress-msg.is-unlocked {
  color: var(--cart-pink);
  font-weight: 700;
}

.mayor-missing-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: var(--cart-pink);
  color: #fff;
  font-weight: 800;
  font-size: 0.72rem;
}

.total-rows {
  display: grid;
  gap: 0.28rem;
}

.total-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.3;
}

.total-row strong {
  color: var(--black);
  font-variant-numeric: tabular-nums;
  font-size: 0.98rem;
}

.total-row.is-struck-row span,
.total-row.is-struck-row strong {
  text-decoration: line-through;
  opacity: 0.55;
}

.mayor-hint {
  margin: 0.35rem 0 0.15rem;
  padding: 0.45rem 0.7rem;
  border-radius: 0.75rem;
  background: #faf8f4;
  border: 1px solid rgba(16, 16, 16, 0.06);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
}

.volume-cash-offer {
  display: grid;
  gap: 0.45rem;
  margin: 0.35rem 0 0.15rem;
}

.volume-cash-offer .mayor-hint {
  margin: 0;
}

.volume-cash-toggle {
  appearance: none;
  border: 1.5px solid var(--black);
  background: var(--paper);
  color: var(--black);
  border-radius: 0.85rem;
  padding: 0.65rem 0.9rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.volume-cash-offer.is-on .volume-cash-toggle {
  background: var(--black);
  color: var(--paper);
}

.mayor-hint strong {
  color: var(--black);
  font-weight: 800;
}

.mayor-hint.ok {
  background: var(--cart-pink-soft);
  border-color: rgba(196, 69, 112, 0.18);
  color: var(--cart-pink);
}

.total-payable {
  margin-top: 0.35rem;
  padding: 0.7rem 0.85rem;
  border-radius: 1rem;
  /* Gris claro (antes #817b77); texto oscuro para contraste */
  background: #e8e4e1;
  color: rgba(16, 16, 16, 0.72);
  font-size: 0.94rem;
  border-top: 0;
  align-items: center;
  box-shadow: 0 2px 8px rgba(16, 16, 16, 0.05);
}

.total-payable em {
  font-style: normal;
  opacity: 0.75;
  font-weight: 500;
}

.total-payable strong {
  font-size: 1.15rem;
  color: var(--black);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.primary {
  width: 100%;
  border-radius: 999px;
  padding: 0.85rem 0.85rem;
  min-height: 2.85rem;
  background: var(--black);
  color: #ffffff;
  font-family: "Inter", "DM Sans", system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 14px rgba(16, 16, 16, 0.14);
  transition: transform 120ms ease, opacity 120ms ease;
}

.primary:hover:not(:disabled) {
  opacity: 0.92;
}

.primary:active:not(:disabled) {
  transform: scale(0.985);
}

.primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

@media (min-width: 1024px) {
  .drawer {
    align-items: center;
    justify-items: center;
    padding: 1.5rem;
  }

  .drawer-panel {
    --drawer-chrome: 4.6rem;
    width: min(460px, 100%);
    height: min(860px, 88dvh);
    max-height: min(860px, 92dvh);
    border-radius: 1.25rem;
    padding: 1rem 1.1rem 0;
    box-shadow: 0 24px 64px rgba(16, 16, 16, 0.28);
    animation: cart-pop 0.28s ease;
  }

  .checkout-panel {
    max-height: none;
    height: 100%;
  }

  #cart-lines {
    max-height: none;
  }

  .checkout-step-body {
    max-height: none;
  }

  @keyframes cart-pop {
    from { transform: translateY(12px) scale(0.98); opacity: 0.6; }
    to { transform: none; opacity: 1; }
  }

  .drawer-handle {
    display: none;
  }

  .drawer-footer {
    padding-bottom: 1.1rem;
  }

  .cart-line {
    grid-template-columns: 4rem 1fr;
    padding: 0.8rem;
  }

  .cart-thumb {
    width: 4rem;
    height: 4rem;
  }
}

/* Mobile checkout: formularios y drawer más cómodos en pantallas chicas */
@media (max-width: 480px) {
  #app {
    padding: 0 0.85rem calc(5.75rem + env(safe-area-inset-bottom));
  }

  .store-header {
    margin-left: -0.85rem;
    margin-right: -0.85rem;
  }

  .store-main-row {
    padding-top: 0.4rem;
    padding-bottom: 0.1rem;
    column-gap: 0.35rem;
    min-height: 2.2rem;
  }

  .back-btn {
    padding-left: 0.2rem;
    font-size: 0.72rem;
  }

  .brand-name {
    font-size: clamp(1.28rem, 6vw, 1.55rem);
  }

  .brand-tag {
    letter-spacing: 0.14em;
    font-size: 0.46rem;
  }

  .store-subtitle {
    padding: 0.05rem 0 0.35rem;
    font-size: 0.64rem;
  }

  .drawer-panel {
    --drawer-chrome: 4.7rem;
    height: min(92dvh, 100%);
    height: min(92svh, 100%);
    max-height: min(92dvh, 100%);
    max-height: min(92svh, 100%);
    padding: 0.35rem 0.85rem 0;
    border-radius: 1.15rem 1.15rem 0 0;
  }

  .drawer-header {
    margin-bottom: 0.45rem;
    align-items: flex-start;
  }

  .drawer-panel h2 {
    font-size: 0.98rem;
  }

  .drawer-handle {
    margin-bottom: 0.45rem;
  }

  .drawer-note {
    margin-bottom: 0.55rem;
    padding: 0.45rem 0.65rem;
    font-size: 0.72rem;
    flex-shrink: 0;
  }

  .checkout-panel {
    max-height: none;
    height: 100%;
  }

  #cart-lines {
    max-height: none;
    gap: 0.55rem;
  }

  .checkout-step-body {
    gap: 0.55rem;
    padding: 0 0 0.35rem;
    max-height: none;
  }

  .checkout-customer-fields {
    gap: 0.5rem;
  }

  .checkout-title {
    font-size: 1rem;
  }

  .checkout-lead {
    font-size: 0.78rem;
  }

  .checkout-field {
    font-size: 0.68rem;
  }

  .checkout-field input,
  .checkout-field select {
    min-height: 2.65rem;
    padding: 0.65rem 0.8rem;
    border-radius: 0.85rem;
  }

  .checkout-city-list {
    max-height: min(36dvh, 10rem);
  }

  .checkout-summary {
    margin: 0 0 0.25rem;
  }

  .drawer-footer {
    margin-top: auto;
    padding: 0.35rem 0 calc(0.5rem + env(safe-area-inset-bottom));
  }

  .drawer-checkout-note {
    font-size: 0.74rem;
    line-height: 1.25;
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .primary {
    min-height: 2.45rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.82rem;
    box-shadow: 0 4px 10px rgba(16, 16, 16, 0.12);
  }

  .total-payable {
    margin-top: 0.15rem;
    padding: 0.4rem 0.6rem;
    border-radius: 0.65rem;
    font-size: 0.88rem;
  }

  .total-payable strong {
    font-size: 1.02rem;
  }

  .total-rows {
    gap: 0.1rem;
  }

  .total-row {
    font-size: 0.86rem;
  }

  .total-row strong {
    font-size: 0.92rem;
  }

  .mayor-hint {
    margin-top: 0.12rem;
    padding: 0.22rem 0.45rem;
    font-size: 0.74rem;
    border-radius: 0.55rem;
  }

  .checkout-tipo-note {
    padding: 0.45rem 0.6rem;
    font-size: 0.68rem;
    border-radius: 0.75rem;
  }
}

@media (max-width: 360px) {
  .back-btn span {
    display: none;
  }

  .brand-tag {
    letter-spacing: 0.12em;
  }

  .audience-picker-panel {
    padding: 1.25rem 0.9rem 1.05rem;
    border-radius: 1.25rem;
  }

  .audience-picker-script {
    font-size: clamp(1.55rem, 8vw, 1.95rem);
  }

  .drawer-panel {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .drawer-panel {
    --drawer-chrome: 4.4rem;
    max-height: 98dvh;
    border-radius: 0.85rem;
  }

  .checkout-panel {
    max-height: calc(98dvh - var(--drawer-chrome));
  }

  .checkout-step-body {
    gap: 0.5rem;
  }

  .drawer-footer {
    padding-top: 0.55rem;
    padding-bottom: 0.65rem;
  }
}
