/* Mejoras visuales de la tienda (lo que ve el cliente).
   Se carga desde includes/shop_header.php en todas las páginas de la tienda. Se apoya en la tienda
   actual: mantiene sus colores y su estilo, y corrige cosas puntuales. */

/* ---------- Un aviso a la vez ----------
   Mientras el aviso de cookies está abierto (body.cc-banner-open) no se le encima el contador del
   cupón ni el botón de WhatsApp. */
body.cc-banner-open .first-purchase-floating-timer,
body.cc-banner-open .wa-fab,
body.cc-banner-open .wa-fab-hint {
  display: none !important;
}

/* ---------- Tarjetas de producto ---------- */
/* El nombre ahora es un link real (se puede abrir en otra pestaña); se ve igual que antes. */
.cardx .title-link {
  color: inherit;
  text-decoration: none;
}
.cardx .title-link:hover,
.cardx .title-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* En el celular las tarjetas son angostas: los avisos de precio pasan a dos líneas en vez de cortarse
   ("$ 11.610 CON TRANSFERE…"). */
@media (max-width: 575.98px) {
  .cardx .card-payment-teaser span,
  .cardx .card-first-purchase-teaser span {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.25;
  }
}

/* ---------- Listado: orden ---------- */
select.sort,
#sortSelect {
  text-transform: none;
}

/* ---------- Inicio ---------- */
/* Banner ancho ("Visitanos y descubrí más"): en el celular se corta de los costados; se muestra desde
   la izquierda, que es donde está el texto. */
@media (max-width: 767.98px) {
  .home-image-strip img {
    object-position: 8% center;
  }
}
/* Mientras cargan, las fotos de categorías se veían como bloques azul oscuro. */
.audience-tile {
  background: #efe9e3;
}

/* ---------- Página de producto: botón fijo en el celular ---------- */
.pd-sticky-buy {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid #ececec;
  box-shadow: 0 -10px 30px rgba(17, 24, 39, .10);
  animation: pd-sticky-in .2s ease-out;
}
.pd-sticky-buy[hidden] {
  display: none !important;
}
@keyframes pd-sticky-in {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.pd-sticky-buy__info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.pd-sticky-buy__name {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pd-sticky-buy__price {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
}
.pd-sticky-buy__btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  background: #111;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  touch-action: manipulation;
}
.pd-sticky-buy__btn:active {
  transform: scale(.98);
}
/* Los botones flotantes suben para no quedar debajo de la barra. */
body.pd-sticky-buy-visible .wa-fab,
body.pd-sticky-buy-visible .first-purchase-floating-timer {
  bottom: calc(86px + env(safe-area-inset-bottom)) !important;
}
@media (min-width: 992px) {
  .pd-sticky-buy {
    display: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pd-sticky-buy {
    animation: none;
  }
}

/* ---------- Carrito: en el celular, el resumen y "Continuar" antes que las sugerencias ----------
   La regla original ordenaba la sección de adentro y no la columna, así que las sugerencias quedaban
   entre los productos y el botón para seguir la compra. */
@media (max-width: 991.98px) {
  #cartPageContent > .cart-summary-sticky-col {
    order: 2;
  }
  #cartPageContent > .col-12:has(> #cartRecommendations) {
    order: 3;
  }
}

/* ---------- Mayorista con contraseña (/mayoristas/) ---------- */
.mayorista-clave {
  max-width: 560px;
  margin: 28px auto 34px;
  scroll-margin-top: 96px; /* que el encabezado fijo no tape el título al saltar acá */
  padding: clamp(20px, 4vw, 32px);
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 22px;
  box-shadow: 0 18px 40px -24px rgba(17, 24, 39, .28);
  text-align: left;
}
.mayorista-clave h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 800;
  color: #111;
}
.mayorista-clave > p {
  margin: 0 0 18px;
  color: #6f7178;
}
.mayorista-clave__error {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fdecee;
  color: #9b1c2c;
  font-size: 14px;
  font-weight: 600;
}
.mayorista-clave__form label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #111;
}
.mayorista-clave__field {
  position: relative;
}
.mayorista-clave__field input {
  width: 100%;
  min-height: 50px;
  padding: 10px 70px 10px 14px;
  border: 1px solid #d9d9de;
  border-radius: 14px;
  background: #fafafa;
  font-size: 16px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.mayorista-clave__field input:focus {
  outline: 2px solid #111;
  outline-offset: 1px;
  background: #fff;
}
.mayorista-clave__ver {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #111;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
}
.mayorista-clave__submit {
  width: 100%;
  margin-top: 12px;
  min-height: 50px;
  justify-content: center;
  border: 0;
}
.mayorista-clave__ask {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
  color: #6f7178;
  font-size: 14px;
}
.mayorista-clave__wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: #25d366;
  color: #fff !important;
  font-weight: 800;
}
.mayorista-clave__steps {
  margin: 18px 0 0;
  padding-left: 22px;
  color: #3f4046;
  font-size: 14px;
  line-height: 1.7;
}
.mayorista-clave__ok {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.mayorista-clave__ok > i {
  font-size: 28px;
  color: #16a34a;
  margin-top: 4px;
}
.mayorista-clave__ok p {
  margin: 4px 0 0;
  color: #6f7178;
}
.mayorista-clave__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}
.mayorista-clave__salir {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid #d9d9de;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-weight: 700;
}
/* Aviso al entrar a la tienda con la contraseña. Va arriba, debajo del encabezado (el script lo acomoda
   a la altura real), para no chocar con los botones flotantes de abajo. */
.mayorista-toast {
  position: fixed;
  left: 50%;
  top: 96px;
  z-index: 1060;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content; /* con left:50% el ancho se achicaba a la mitad de la pantalla */
  max-width: calc(100vw - 28px);
  padding: 12px 16px;
  border-radius: 16px;
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, .45);
  animation: mayorista-toast-in .25s ease-out;
}
.mayorista-toast i {
  color: #4ade80;
}
/* Solo movimiento, sin transparencia: si el navegador frena la animación, el aviso igual se ve. */
@keyframes mayorista-toast-in {
  from { transform: translate(-50%, -10px); }
  to { transform: translate(-50%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .mayorista-toast {
    animation: none;
  }
}
/* Aviso en el registro y el login cuando el mayorista es con contraseña. */
.mayorista-clave-aviso {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #ece6df;
  border-radius: 14px;
  background: #faf7f3;
  color: #3f4046 !important;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none !important;
}
.mayorista-clave-aviso:hover,
.mayorista-clave-aviso:focus-visible {
  border-color: #d8cfc4;
  background: #f6f1eb;
}
.mayorista-clave-aviso > i:first-child {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #111;
  color: #fff !important; /* la tienda fuerza "a * { color: inherit }" */
  font-size: 14px;
}
.mayorista-clave-aviso > span {
  flex: 1 1 auto;
  min-width: 0;
}
.mayorista-clave-aviso strong {
  display: block;
  color: #111 !important;
  font-size: 14px;
}
.mayorista-clave-aviso > i:last-child {
  flex: 0 0 auto;
  color: #9a9aa2 !important;
  font-size: 12px;
}

/* ==================================================================================================
   ESTILO LIMPIO (docs/superpowers/specs/2026-11-04-tienda-estilo-limpio-design.md)
   ================================================================================================== */
:root {
  --al-wrap: 1840px; /* ancho máximo del contenido (navbar e inicio), como las tiendas grandes */
  --al-gutter: clamp(16px, 2.4vw, 40px); /* margen a los costados */
  --al-ink: #2b2b2f;
  --al-muted: #7a7a83;
  --al-line: #ebe9e5;
  --al-surface: #f5f3f0;
  --al-surface-2: #faf8f6;
  --al-accent: #e64982;
  --al-accent-soft: #fdeef4;
  --al-font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Franja de mensajes: letra liviana, sin mayúsculas; el mensaje sube y entra el siguiente ---------- */
html body .shop-topbar,
html body .shop-topbar * {
  font-family: var(--al-font) !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
html body .shop-topbar {
  font-size: 12.5px !important;
}
/* La animación de esconder la franja se activa recién con la página cargada (al entrar no se mueve nada). */
html.al-ready body .shop-topbar {
  transition: transform .25s ease;
}
.al-ticker {
  position: relative;
  overflow: hidden;
}
.al-ticker-in {
  display: inline-block;
  animation: al-ticker-in .6s cubic-bezier(.2, .75, .25, 1);
}
.al-ticker-out {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  animation: al-ticker-out .6s cubic-bezier(.2, .75, .25, 1) forwards;
}
/* Solo movimiento (sin transparencia): si el navegador frena la animación, el texto igual se lee. */
@keyframes al-ticker-in {
  from { transform: translateY(110%); }
  to { transform: translateY(0); }
}
@keyframes al-ticker-out {
  from { transform: translateY(0); }
  to { transform: translateY(-110%); }
}
@media (prefers-reduced-motion: reduce) {
  .al-ticker-in,
  .al-ticker-out {
    animation: none;
  }
}
/* Al bajar se esconde la franja y el menú sube hasta arriba de todo. */
html.al-scrolled body .shop-topbar {
  transform: translateY(-100%);
}
html.al-ready body .main-header {
  transition: top .25s ease;
}
html.al-scrolled body .main-header {
  top: 0 !important;
}

/* ---------- Navbar limpio (includes/shop_header.php, .al-hdr) ---------- */
html body .main-header.al-hdr {
  background: #fff;
  border-bottom: 1px solid var(--al-line);
  box-shadow: none;
  font-family: var(--al-font);
  color: var(--al-ink);
}
html body .al-hdr *,
html body .al-drawer * {
  font-family: var(--al-font);
}
.al-hdr__inner {
  max-width: var(--al-wrap);
  margin: 0 auto;
  padding: 0 var(--al-gutter);
}
.al-hdr__row {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}
html body .al-hdr .al-hdr__logo {
  display: inline-flex;
  flex: 0 0 auto;
}
html body .al-hdr .al-hdr__logo img {
  display: block;
  height: 58px;
  width: auto;
  max-height: none;
}
.al-hdr__nav {
  display: flex;
  align-items: center;
  gap: 26px;
  min-width: 0;
}
html body .al-hdr .al-hdr__nav > a,
html body .al-hdr .al-hdr__nav .menu-more__trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: none;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--al-ink);
  -webkit-text-fill-color: currentColor;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
  overflow: visible;
  opacity: 1;
}
html body .al-hdr .al-hdr__nav > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--al-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
html body .al-hdr .al-hdr__nav > a:hover::after,
html body .al-hdr .al-hdr__nav > a:focus-visible::after {
  transform: scaleX(1);
}
html body .al-hdr .menu-more__trigger .al-ico {
  width: 16px;
  height: 16px;
  color: var(--al-muted);
}
html body .al-hdr .menu-more__dropdown {
  min-width: 210px;
  padding: 8px;
  border: 1px solid var(--al-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px -18px rgba(30, 25, 20, .35);
}
html body .al-hdr .menu-more__dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--al-ink);
  -webkit-text-fill-color: currentColor;
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  text-decoration: none;
}
html body .al-hdr .menu-more__dropdown a:hover {
  background: var(--al-surface);
}
.al-hdr__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.al-ico {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
html body .al-hdr .al-hdr__icon,
html body .al-drawer .al-hdr__icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--al-ink);
  cursor: pointer;
  box-shadow: none;
  touch-action: manipulation;
}
html body .al-hdr .al-hdr__icon:hover,
html body .al-hdr .al-hdr__icon:focus-visible {
  background: var(--al-surface);
}
html body .al-hdr .al-hdr__count {
  position: absolute;
  top: 3px;
  right: 1px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--al-accent);
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  box-shadow: none;
}
/* Buscador redondeado (compu y celular) */
.al-hdr__search {
  position: relative;
}
.al-hdr__search--desktop {
  width: 260px;
  margin-right: 6px;
}
html body .al-hdr .nav-search__box {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 14px 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--al-surface);
  box-shadow: none;
}
html body .al-hdr .nav-search__box:focus-within {
  border-color: var(--al-ink);
  background: #fff;
}
html body .al-hdr .nav-search__box > .al-ico {
  width: 19px;
  height: 19px;
  color: var(--al-muted);
}
html body .al-hdr .nav-search__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--al-ink);
  font-size: 14px;
  font-weight: 400;
}
html body .al-hdr .nav-search__input::placeholder {
  color: var(--al-muted);
  opacity: 1;
}
html body .al-hdr .nav-search__clear .al-ico {
  width: 16px;
  height: 16px;
}
html body .al-hdr .nav-search__results {
  border-radius: 16px;
}
html body .al-hdr .al-hdr__mode {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--al-accent-soft);
  color: #94305a;
  font-size: 12.5px;
  font-weight: 500;
  text-transform: none;
}
/* Menú de la cuenta */
.al-hdr__account {
  position: relative;
}
.al-hdr__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  display: none;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--al-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px -18px rgba(30, 25, 20, .35);
}
.al-hdr__account.is-open .al-hdr__dropdown {
  display: block;
}
html body .al-hdr .al-hdr__dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--al-ink);
  -webkit-text-fill-color: currentColor;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
html body .al-hdr .al-hdr__dropdown a:hover {
  background: var(--al-surface);
}
html body .al-hdr .al-hdr__dropdown .al-ico {
  width: 18px;
  height: 18px;
  color: var(--al-muted);
}
html body .al-hdr .al-hdr__dropdown .al-hdr__count {
  position: static;
  margin-left: auto;
}
html body .al-hdr .al-hdr__menu-btn,
.al-hdr__msearch {
  display: none;
}
@media (max-width: 1279.98px) {
  .al-hdr__row {
    gap: 20px;
  }
  .al-hdr__nav {
    gap: 18px;
  }
  .al-hdr__search--desktop {
    width: 200px;
  }
  /* Entre 1024 y 1279 px no entra junto con todas las categorías: se ve desde 1280 px. */
  html body .al-hdr .al-hdr__mode {
    display: none;
  }
}
/* Celular y tablet: menú, logo al centro, cuenta y carrito; buscador abajo */
@media (max-width: 1023.98px) {
  .al-hdr__inner {
    padding: 0 6px;
  }
  .al-hdr__row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    height: 60px;
  }
  html body .al-hdr .al-hdr__menu-btn {
    display: inline-grid;
    justify-self: start;
  }
  html body .al-hdr .al-hdr__logo {
    justify-self: center;
  }
  html body .al-hdr .al-hdr__logo img {
    height: 40px;
  }
  html body .al-hdr .al-hdr__nav,
  html body .al-hdr .al-hdr__search--desktop,
  html body .al-hdr .al-hdr__mode {
    display: none;
  }
  .al-hdr__actions {
    justify-self: end;
    gap: 0;
    margin-left: 0;
  }
  .al-hdr__msearch {
    display: block;
    padding: 0 12px 10px;
  }
  html body .al-hdr .al-hdr__search--mobile .nav-search__input {
    font-size: 16px; /* iPhone: sin zoom al tocar el buscador */
  }
}


/* ---------- Home con estilo limpio (home.php, main.home-page) ---------- */
html body .home-page {
  background: #fff;
  color: var(--al-ink);
}
/* Banner principal: a todo el ancho; alto según la foto, como mucho la pantalla menos el menú. */
html body .home-page .home-hero-carousel .carousel-item.hero-image-item {
  max-height: calc(100vh - var(--shop-header-stack-h, 100px));
}
html body .home-page .home-hero-carousel .hero-image-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
html body .home-page .home-hero-carousel .carousel-indicators {
  bottom: 18px;
  gap: 7px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
}
html body .home-page .home-hero-carousel .carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .65);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
  opacity: 1;
  transition: width .2s ease;
}
html body .home-page .home-hero-carousel .carousel-indicators .active {
  width: 26px;
  background: #fff;
}
html body .home-page .home-hero-carousel .carousel-indicators,
html body .home-page .home-hero-carousel .carousel-indicators.is-pressing,
html body .home-page .home-hero-carousel .carousel-indicators.is-edge-left,
html body .home-page .home-hero-carousel .carousel-indicators.is-edge-right {
  transform: translateX(-50%);
}
html body .home-page .home-hero-carousel .carousel-indicators [data-bs-target]:hover,
html body .home-page .home-hero-carousel .carousel-indicators.is-pressing [data-bs-target],
html body .home-page .home-hero-carousel .carousel-indicators [data-bs-target].is-pressed {
  transform: none;
}
html body .home-page .home-hero-carousel .carousel-control-prev,
html body .home-page .home-hero-carousel .carousel-control-next {
  top: 50%;
  bottom: auto;
  width: 44px;
  height: 44px;
  margin: 0 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .85);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .1);
  opacity: 1;
  transform: translateY(-50%);
}
html body .home-page .home-hero-carousel .carousel-control-prev-icon,
html body .home-page .home-hero-carousel .carousel-control-next-icon {
  width: 16px;
  height: 16px;
  filter: invert(1) grayscale(1) brightness(.25);
}
@media (max-width: 767.98px) {
  html body .home-page .home-hero-carousel .carousel-control-prev,
  html body .home-page .home-hero-carousel .carousel-control-next {
    display: none;
  }
}
/* Banners "de texto" del panel */
html body .home-page .al-hero-text .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .6);
  color: var(--al-ink);
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}
html body .home-page .al-hero-text .hero-title {
  font-size: clamp(32px, 4.6vw, 58px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -.02em;
  text-transform: none;
  color: var(--al-ink);
}
html body .home-page .al-hero-text .hero-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: var(--al-ink);
  opacity: .8;
}
html body .home-page .al-hero-text .btn-hero-primary,
html body .home-page .al-hero-text .btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: none;
}
html body .home-page .al-hero-text .btn-hero-primary {
  background: var(--al-ink);
  border: 1px solid var(--al-ink);
  color: #fff;
}
html body .home-page .al-hero-text .btn-hero-secondary {
  background: transparent;
  border: 1px solid rgba(43, 43, 47, .5);
  color: var(--al-ink);
}

/* Encabezados de sección */
html body .home-page .home-section .section-title,
html body .home-page .reviews-title {
  margin: 0;
  color: var(--al-ink);
  font-size: 27px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-transform: none;
}
html body .home-page .home-section .section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--al-ink);
  -webkit-text-fill-color: currentColor;
  font-size: 14.5px;
  font-weight: 500;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
}
html body .home-page .section-link .al-ico {
  width: 17px;
  height: 17px;
}

/* Productos ("Novedades" y el segundo carrusel) */
html body .home-page .home-section .section-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 4px 16px;
  max-width: var(--al-wrap);
  margin: 0 auto 20px;
  padding: 0 var(--al-gutter);
  text-align: left;
}
html body .home-page .home-section .section-title {
  display: block;
  grid-column: 1;
  text-align: left;
}
html body .home-page .home-section .section-title::before,
html body .home-page .home-section .section-title::after {
  display: none;
}
html body .home-page .home-section .section-subtitle {
  grid-column: 1;
  margin: 0;
  text-align: left;
  color: var(--al-muted);
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
}
html body .home-page .home-section .section-link {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
}
.al-home-more {
  display: flex;
  justify-content: center;
  margin: 26px 0 0;
  padding: 0 20px;
}
.al-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 28px;
  border: 1px solid var(--al-ink);
  border-radius: 999px;
  background: #fff;
  color: var(--al-ink) !important;
  -webkit-text-fill-color: currentColor;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.al-btn-outline:hover,
.al-btn-outline:focus-visible {
  background: var(--al-ink);
  color: #fff !important;
}
html body .home-page .products-carousel .carousel-nav {
  width: 44px;
  height: 44px;
  border: 1px solid var(--al-line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--al-ink);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

/* Novedades (y el segundo carrusel): grilla como la maqueta, sin flechas ni puntitos.
   4 columnas en la compu (5 en pantallas muy anchas), 3 en tablet y 2 en el celular; 2 filas. */
html body .home-page .products-carousel {
  max-width: var(--al-wrap);
  margin: 0 auto;
  padding: 0 var(--al-gutter);
  overflow: visible;
}
html body .home-page .products-carousel .carousel-nav,
html body .home-page .products-carousel .product-carousel-dots {
  display: none !important;
}
html body .home-page .products-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 22px;
  overflow: visible;
  padding: 6px 0 0;
  cursor: default;
  scroll-snap-type: none;
}
html body .home-page .products-track .product-card-wrapper {
  flex: none;
  width: auto;
  min-width: 0;
  max-width: none;
  scroll-snap-align: none;
}
html body .home-page .products-track .product-card-wrapper .cardx {
  --card-max-w: 100%;
}
html body .home-page .products-track .product-card-wrapper:nth-child(n+9) {
  display: none;
}
@media (min-width: 1680px) {
  html body .home-page .products-track {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  html body .home-page .products-track .product-card-wrapper:nth-child(n+9) {
    display: block;
  }
}
@media (max-width: 1023.98px) {
  html body .home-page .products-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 16px;
  }
  html body .home-page .products-track .product-card-wrapper:nth-child(n+7) {
    display: none;
  }
}
@media (max-width: 767.98px) {
  html body .home-page .products-carousel {
    padding: 0 16px;
  }
  html body .home-page .products-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 12px;
  }
  html body .home-page .products-track .product-card-wrapper:nth-child(n+5) {
    display: none;
  }
}
/* Opiniones y TikTok con el mismo ancho que el resto */
html body .home-page .reviews-inner {
  max-width: var(--al-wrap);
}
html body .home-page .tiktok-inner {
  width: min(calc(var(--al-wrap) - 2 * var(--al-gutter)), 100%);
}

/* TikTok: misma sección y su fondo rosa de siempre, con letra liviana */
html body .home-page .tiktok-section .tiktok-title,
html body .home-page .tiktok-section .tiktok-title span {
  font-weight: 500;
  letter-spacing: -.01em;
  text-transform: none;
}
html body .home-page .tiktok-section .tiktok-pill,
html body .home-page .tiktok-section .tiktok-btn,
html body .home-page .tiktok-section .tiktok-meta span,
html body .home-page .tiktok-section .tiktok-meta h4 {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
html body .home-page .tiktok-section .tiktok-btn {
  border-radius: 999px;
}
html body .home-page .tiktok-section .tiktok-meta p,
html body .home-page .tiktok-section .tiktok-follow p {
  color: var(--al-muted);
  -webkit-text-fill-color: currentColor;
  font-weight: 400;
}
html body .home-page .tiktok-section .tiktok-playing-badge {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

/* Opiniones */
html body .home-page .reviews-kicker {
  color: var(--al-accent);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
html body .home-page .reviews-subtitle {
  color: var(--al-muted);
  font-weight: 400;
}
html body .home-page .review-text {
  color: var(--al-ink);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
}
html body .home-page .review-author-info strong {
  font-weight: 500;
}
html body .home-page .al-review-stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  border-color: var(--al-ink);
  background: var(--al-ink);
  color: #fff;
}
.al-review-stat strong {
  display: block;
  color: #fff;
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
}
.al-review-stat p {
  margin: 10px 0 0;
  color: #fff;
  font-size: 15px;
  opacity: .85;
}
.al-btn-light {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: #fff;
  color: var(--al-ink) !important;
  -webkit-text-fill-color: currentColor;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.al-btn-light .al-ico {
  width: 16px;
  height: 16px;
}

/* Home en el celular */
@media (max-width: 767.98px) {
  html body .home-page .home-section .section-title,
  html body .home-page .reviews-title {
    font-size: 20px;
  }
  html body .home-page .home-section .section-link {
    font-size: 13.5px;
  }
  html body .home-page .home-section .section-header {
    padding: 0 16px;
  }
  .al-home-more {
    padding: 0 16px;
  }
  .al-home-more .al-btn-outline {
    width: 100%;
  }
  .al-review-stat strong {
    font-size: 36px;
  }
}

/* ---------- Tarjetas de producto limpias (.cardx en home, tienda, producto y carrito) ----------
   La lista rápida mayorista (.wholesale-fast-card) tiene su propio diseño y queda como está. */
/* La tarjeta conserva su fondo blanco, su borde suave y su sombra de antes (card.php).
   Cambian el nombre, el precio y el botón; la categoría, los textos de abajo del precio
   (transferencia, talles, envío) y las etiquetas quedan con su estilo de siempre (card.php y panel). */
html body .cardx:not(.wholesale-fast-card) {
  --al-card-media-h: 133.333%; /* alto de la foto respecto del ancho (3/4) */
  --al-card-btn: 40px;
  --al-card-gap: 12px;
  --al-card-ribbon-h: 37.5px; /* alto de la franja de abajo de la foto (se ajusta más abajo) */
  background: #fff;
  color: var(--al-ink);
  font-family: var(--al-font);
}
html body .cardx:not(.wholesale-fast-card) .media {
  aspect-ratio: 3 / 4;
  border-radius: 0;
  overflow: hidden;
}
html body .cardx:not(.wholesale-fast-card) .body {
  position: static;
  gap: 4px;
  min-height: 0;
  padding: 12px 12px 14px;
}
html body .cardx:not(.wholesale-fast-card) .title {
  min-height: calc(1.4em * 2);
  margin: 0;
  color: var(--al-ink);
  font-family: var(--al-font);
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: lowercase;
}
html body .cardx:not(.wholesale-fast-card) .title::first-letter {
  text-transform: uppercase;
}
html body .cardx:not(.wholesale-fast-card) .title a {
  color: inherit;
  -webkit-text-fill-color: currentColor;
  text-decoration: none;
}
html body .cardx:not(.wholesale-fast-card) .price {
  gap: 6px;
  min-height: 0;
  margin-top: 2px;
}
html body .cardx:not(.wholesale-fast-card) .price .now {
  color: var(--al-ink);
  font-size: 15.5px;
  font-weight: 600;
}
html body .cardx:not(.wholesale-fast-card) .price .old {
  color: var(--al-muted);
  font-size: 12.5px;
  font-weight: 400;
}
html body .cardx:not(.wholesale-fast-card) .price .old::before {
  color: var(--al-muted);
  font-size: 11px;
  font-weight: 400;
  text-transform: none;
}
/* Botón "Comprar": redondo y blanco, sobre la esquina de la foto. El texto queda para lectores de pantalla. */
html body .cardx:not(.wholesale-fast-card) .card-buy-stack {
  position: static;
  margin-top: auto;
}
html body .cardx:not(.wholesale-fast-card) .card-buy-stack .btn-buy {
  position: absolute;
  top: 0;
  right: var(--al-card-gap);
  z-index: 4;
  display: grid;
  place-items: center;
  width: var(--al-card-btn);
  height: var(--al-card-btn);
  min-height: 0;
  margin: calc(var(--al-card-media-h) - var(--al-card-btn) - var(--al-card-gap)) 0 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--al-ink);
  font-size: 0;
  font-weight: 500; /* el texto no se ve, pero tampoco cuenta como negrita */
  line-height: 0;
  letter-spacing: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
  filter: none;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}
html body .cardx:not(.wholesale-fast-card) .card-buy-stack .btn-buy::before {
  content: "";
  width: 19px;
  height: 19px;
  background: var(--al-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 7.5h12l1 12.5H5L6 7.5z'/%3E%3Cpath d='M9 7.5V6.5a3 3 0 0 1 6 0v1'/%3E%3Cpath d='M12 11v5M9.5 13.5h5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 7.5h12l1 12.5H5L6 7.5z'/%3E%3Cpath d='M9 7.5V6.5a3 3 0 0 1 6 0v1'/%3E%3Cpath d='M12 11v5M9.5 13.5h5'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (hover: hover) {
  html body .cardx:not(.wholesale-fast-card) .card-buy-stack .btn-buy:hover {
    background: var(--al-ink);
  }
  html body .cardx:not(.wholesale-fast-card) .card-buy-stack .btn-buy:hover::before {
    background: #fff;
  }
}
html body .cardx:not(.wholesale-fast-card) .card-buy-stack .btn-buy:active {
  transform: scale(.94);
}
html body .cardx:not(.wholesale-fast-card) .card-buy-stack .btn-buy:focus-visible {
  outline: 2px solid var(--al-ink);
  outline-offset: 2px;
}
/* Las etiquetas quedan como siempre: "Nueva temporada" y "Oferta relámpago" en franja abajo de la
   foto y el 3x2 arriba a la derecha. Si hay franja, la bolsita sube y queda justo arriba de ella. */
html body .cardx:not(.wholesale-fast-card):has(.media > .ribbon) .card-buy-stack .btn-buy {
  margin-top: calc(var(--al-card-media-h) - var(--al-card-btn) - var(--al-card-gap) - var(--al-card-ribbon-h));
}
/* Alto de cada franja (card.php): "Oferta relámpago" es más baja; si están las dos, manda "Nueva temporada". */
html body .cardx:not(.wholesale-fast-card):has(.media > .ribbon.flash) {
  --al-card-ribbon-h: 32px;
}
html body .cardx:not(.wholesale-fast-card):has(.media > .ribbon.season) {
  --al-card-ribbon-h: 37.5px;
}
/* Tarjetas angostas (sugerencias del carrito y promos del producto) */
html body .cart-reco-grid .cardx:not(.wholesale-fast-card),
html body .promo-spotlight-card-track .cardx:not(.wholesale-fast-card) {
  --al-card-btn: 36px;
  --al-card-gap: 9px;
}
/* En las sugerencias del carrito las franjas son más chicas (carrito.php); acá la más alta es la relámpago. */
html body .cart-reco-grid .cardx:not(.wholesale-fast-card):has(.media > .ribbon.season) {
  --al-card-ribbon-h: 27px;
}
html body .cart-reco-grid .cardx:not(.wholesale-fast-card):has(.media > .ribbon.flash) {
  --al-card-ribbon-h: 30px;
}
html body .catalog-skeleton-btn {
  display: none;
}
@media (max-width: 600px) {
  html body .cardx:not(.wholesale-fast-card) {
    --al-card-btn: 36px;
    --al-card-gap: 9px;
  }
  html body .cardx:not(.wholesale-fast-card) .body {
    padding: 10px 10px 12px;
  }
  html body .cardx:not(.wholesale-fast-card) .title {
    font-size: 13.5px;
  }
  html body .cardx:not(.wholesale-fast-card) .price .now {
    font-size: 14.5px;
  }
}

/* ---------- Carrito limpio (carrito.php, body.al-cart-page) ---------- */
html body.al-cart-page main.page {
  padding: 18px 0 64px;
  background: #fff;
  font-family: var(--al-font);
  color: var(--al-ink);
}
html body.al-cart-page .cart-shop-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
html body.al-cart-page .cart-page-heading {
  align-items: baseline;
}
html body.al-cart-page .cart-page-title {
  margin: 0;
  color: var(--al-ink);
  -webkit-text-fill-color: currentColor;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.2;
}
html body.al-cart-page .cart-page-title small {
  margin-left: 8px;
  color: var(--al-muted);
  -webkit-text-fill-color: currentColor;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
}
html body.al-cart-page .cart-page-user {
  color: var(--al-muted);
  -webkit-text-fill-color: currentColor;
  font-size: 13px;
  font-weight: 400;
}
/* Barra de envío gratis */
.cart-free-ship {
  margin: 18px 0 6px;
  padding: 14px 16px;
  border: 1px solid var(--al-line);
  border-radius: 14px;
  background: var(--al-surface-2);
  color: var(--al-ink);
  font-size: 13.5px;
}
.cart-free-ship[hidden] {
  display: none;
}
.cart-free-ship b {
  font-weight: 600;
}
.cart-free-ship__bar {
  height: 6px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #ece9e4;
}
.cart-free-ship__bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: var(--al-accent);
  transition: width .3s ease;
}
/* Productos */
html body.al-cart-page .cart-page-items {
  margin-top: 8px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}
html body.al-cart-page #cartPageBody .cart-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  padding: 22px 0;
  border: 0;
  border-bottom: 1px solid var(--al-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html body.al-cart-page #cartPageBody .cart-item:last-child {
  border-bottom: 0;
}
html body.al-cart-page #cartPageBody .cart-img {
  width: 96px;
  height: 128px;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: #f3f1ee;
}
html body.al-cart-page #cartPageBody .cart-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}
html body.al-cart-page #cartPageBody .cart-name {
  color: var(--al-ink);
  -webkit-text-fill-color: currentColor;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: lowercase;
}
html body.al-cart-page #cartPageBody .cart-name::first-letter {
  text-transform: uppercase;
}
html body.al-cart-page #cartPageBody .cart-meta {
  margin-top: 3px;
  color: var(--al-muted);
  -webkit-text-fill-color: currentColor;
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
}
html body.al-cart-page #cartPageBody .cart-price-line {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  color: var(--al-muted);
  font-size: 12.5px;
}
html body.al-cart-page #cartPageBody .cart-unit {
  color: var(--al-muted);
  -webkit-text-fill-color: currentColor;
  font-weight: 400;
}
html body.al-cart-page #cartPageBody .cart-unit-old {
  font-weight: 400;
  text-decoration: line-through;
}
html body.al-cart-page #cartPageBody .cart-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
/* Los colores de las etiquetas los elige el panel; acá solo la letra. */
html body.al-cart-page #cartPageBody .cart-badge {
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
html body.al-cart-page #cartPageBody .cart-row {
  display: flex;
  margin-top: 14px;
}
html body.al-cart-page #cartPageBody .cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 40px;
  padding: 0 3px;
  border: 1px solid #dedbd6;
  border-radius: 999px;
  background: #fff;
}
html body.al-cart-page #cartPageBody .cart-qty button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--al-ink) !important;
  -webkit-text-fill-color: var(--al-ink) !important;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}
html body.al-cart-page #cartPageBody .cart-qty button:hover {
  background: var(--al-surface);
}
html body.al-cart-page #cartPageBody .cart-qty input {
  width: 30px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--al-ink);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 34px;
  text-align: center;
  -moz-appearance: textfield;
}
html body.al-cart-page #cartPageBody .cart-qty input::-webkit-outer-spin-button,
html body.al-cart-page #cartPageBody .cart-qty input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}
html body.al-cart-page #cartPageBody .cart-qty.locked {
  opacity: .6;
}
html body.al-cart-page #cartPageBody .cart-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  align-self: stretch;
  gap: 10px;
  text-align: right;
}
html body.al-cart-page #cartPageBody .cart-price {
  color: var(--al-ink);
  -webkit-text-fill-color: currentColor;
  font-size: 15.5px;
  font-weight: 600;
  white-space: nowrap;
}
html body.al-cart-page #cartPageBody .cart-remove,
html body.al-cart-page #cartPageBody .cart-remove:hover,
html body.al-cart-page #cartPageBody .cart-remove:focus,
html body.al-cart-page #cartPageBody .cart-remove:active {
  width: auto;
  height: auto;
  padding: 2px 0;
  border: 0 !important;
  border-radius: 0;
  background: none !important;
  color: var(--al-muted) !important;
  -webkit-text-fill-color: var(--al-muted) !important;
  font-size: 13px;
  font-weight: 400;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
html body.al-cart-page #cartPageBody .cart-remove:hover {
  color: var(--al-ink) !important;
  -webkit-text-fill-color: var(--al-ink) !important;
}
/* Resumen en tarjeta gris clara */
html body.al-cart-page .cart-page-summary-card {
  border: 1px solid var(--al-line);
  border-radius: 22px;
  background: var(--al-surface-2);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
html body.al-cart-page .cart-page-summary-card .card-body {
  padding: 26px;
  color: var(--al-ink);
  font-size: 14.5px;
}
html body.al-cart-page .cart-summary-title {
  margin: 0 0 14px;
  color: var(--al-ink);
  -webkit-text-fill-color: currentColor;
  font-size: 18px;
  font-weight: 500;
}
html body.al-cart-page .cart-page-summary-row {
  margin: 0;
  padding: 6px 0;
  color: var(--al-ink);
  -webkit-text-fill-color: currentColor;
  font-size: 14.5px;
  font-weight: 400;
}
html body.al-cart-page .cart-page-summary-row span:last-child {
  color: var(--al-ink);
  -webkit-text-fill-color: currentColor;
  font-weight: 500;
}
html body.al-cart-page .cart-page-summary-row.muted span:last-child {
  color: var(--al-muted);
  font-size: 13.5px;
  font-weight: 400;
}
html body.al-cart-page .cart-page-summary-row.total {
  align-items: baseline;
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--al-line);
  font-size: 15px;
  font-weight: 500;
}
html body.al-cart-page .cart-page-summary-row.total span:last-child {
  color: var(--al-ink);
  -webkit-text-fill-color: currentColor;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.01em;
}
html body.al-cart-page .cart-page-min-hint {
  color: var(--al-muted);
  font-size: 12.5px;
  font-weight: 400;
}
html body.al-cart-page .cart-page-min-hint-important {
  margin-top: 10px;
  color: #b45309;
  font-weight: 500;
}
html body.al-cart-page .cart-coupon-applied {
  color: #047857;
  font-weight: 500;
}
html body.al-cart-page .cart-page-pay-preview,
html body.al-cart-page .cart-page-pay-preview strong,
html body.al-cart-page .cart-page-pay-preview small {
  font-weight: 500;
}
html body.al-cart-page .cart-page-pay-preview {
  border-radius: 12px;
  font-size: 12.5px;
}
html body.al-cart-page .cart-first-purchase-callout {
  margin-top: 16px;
  padding: 11px 13px;
  border: 0;
  border-radius: 12px;
  background: var(--al-accent-soft);
  color: #94305a;
  font-size: 13px;
  font-weight: 400;
}
html body.al-cart-page .cart-first-purchase-callout i {
  color: var(--al-accent);
}
html body.al-cart-page .cart-first-purchase-callout strong {
  color: #94305a;
  font-weight: 600;
}
html body.al-cart-page #btnStartCheckout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  background: var(--al-ink) !important;
  box-shadow: none;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: 0;
}
html body.al-cart-page #btnStartCheckout:hover,
html body.al-cart-page #btnStartCheckout:focus-visible {
  background: #000 !important;
}
html body.al-cart-page #btnStartCheckout:disabled {
  opacity: .45;
}
.cart-btn-arrow {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Código de descuento plegable */
html body.al-cart-page .cart-coupon-box {
  margin: 16px 0 0;
  padding: 14px 2px 0;
  border: 0;
  border-top: 1px solid var(--al-line);
  border-radius: 0;
  background: transparent;
}
html body.al-cart-page .cart-coupon-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  color: var(--al-ink);
  -webkit-text-fill-color: currentColor;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  list-style: none;
  cursor: pointer;
}
html body.al-cart-page .cart-coupon-title::-webkit-details-marker {
  display: none;
}
.cart-coupon-chevron {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--al-muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
}
.cart-coupon-box[open] .cart-coupon-chevron {
  transform: rotate(180deg);
}
html body.al-cart-page .cart-coupon-box .input-group {
  margin-top: 12px;
}
html body.al-cart-page .cart-coupon-box .form-control {
  min-height: 44px;
  border-color: #dedbd6;
  border-radius: 999px 0 0 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 400;
}
html body.al-cart-page .cart-coupon-box .btn,
html body.al-cart-page .cart-coupon-box .btn:hover,
html body.al-cart-page .cart-coupon-box .btn:focus,
html body.al-cart-page .cart-coupon-box .btn:active {
  padding-right: 18px;
  padding-left: 18px;
  border-color: var(--al-ink) !important;
  border-radius: 0 999px 999px 0;
  background: var(--al-ink) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 14px;
  font-weight: 500;
}
html body.al-cart-page .cart-secure {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
html body.al-cart-page .cart-secure svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--al-muted);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
html body.al-cart-page .cart-page-summary-card hr {
  border-color: var(--al-line);
  opacity: 1;
}
/* Carrito vacío */
html body.al-cart-page #cartPageEmpty {
  padding: 40px 20px;
  border: 1px solid var(--al-line);
  border-radius: 22px;
  background: var(--al-surface-2);
  color: var(--al-muted);
  font-size: 14px;
}
html body.al-cart-page #cartPageEmpty .fw-semibold {
  color: var(--al-ink);
  font-size: 18px;
  font-weight: 500 !important;
}
html body.al-cart-page #cartPageEmpty .btn {
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}
/* Sugerencias */
html body.al-cart-page .cart-reco-title {
  color: var(--al-ink);
  -webkit-text-fill-color: currentColor;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
html body.al-cart-page .cart-reco-title::after {
  display: none;
}
html body.al-cart-page .cart-reco-sub {
  margin-top: 2px;
  color: var(--al-muted);
  font-size: 13px;
  font-weight: 400;
}
/* Total y "Continuar" fijos abajo: solo en el celular */
.cart-sticky,
.cart-sticky[hidden] {
  display: none;
}
@media (max-width: 767.98px) {
  html body.al-cart-page {
    padding-bottom: calc(80px + env(safe-area-inset-bottom)); /* lugar para la barra fija: no tapa el pie */
  }
  html body.al-cart-page main.page {
    padding: 10px 0 40px;
  }
  html body.al-cart-page .cart-page-title {
    font-size: 22px;
  }
  html body.al-cart-page .cart-page-user {
    display: none;
  }
  html body.al-cart-page #cartPageBody .cart-item {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 6px 14px;
    padding: 16px 0;
  }
  html body.al-cart-page #cartPageBody .cart-img {
    grid-row: span 2;
    width: 78px;
    height: 104px;
    border-radius: 12px;
  }
  html body.al-cart-page #cartPageBody .cart-name {
    font-size: 14px;
  }
  html body.al-cart-page #cartPageBody .cart-meta {
    font-size: 12px;
  }
  html body.al-cart-page #cartPageBody .cart-row {
    margin-top: 10px;
  }
  html body.al-cart-page #cartPageBody .cart-qty {
    height: 36px;
  }
  html body.al-cart-page #cartPageBody .cart-qty button {
    width: 30px;
    height: 30px;
  }
  html body.al-cart-page #cartPageBody .cart-side {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
  }
  html body.al-cart-page #cartPageBody .cart-price {
    font-size: 14.5px;
  }
  html body.al-cart-page .cart-page-summary-card {
    border-radius: 18px;
  }
  html body.al-cart-page .cart-page-summary-card .card-body {
    padding: 20px;
  }
  /* En el celular el botón de seguir es el de la barra fija (como en la maqueta); este sigue funcionando por debajo. */
  html body.al-cart-page #btnStartCheckout {
    display: none;
  }
  html body.al-cart-page .cart-sticky {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 6px 14px;
    padding: 12px 14px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--al-line);
    background: rgba(255, 255, 255, .97);
    font-family: var(--al-font);
  }
  html body.al-cart-page .cart-sticky[hidden] {
    display: none;
  }
  .cart-sticky__total small {
    display: block;
    color: var(--al-muted);
    font-size: 12px;
  }
  .cart-sticky__total strong {
    color: var(--al-ink);
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
  }
  .cart-sticky__btn {
    height: 50px;
    border: 0;
    border-radius: 999px;
    background: var(--al-ink);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
  }
  .cart-sticky__btn:disabled {
    opacity: .45;
  }
  .cart-sticky__note {
    grid-column: 1 / -1;
    color: #b45309;
    font-size: 12px;
    line-height: 1.35;
  }
  .cart-sticky__note:empty {
    display: none;
  }
  html body.al-cart-page .wa-fab {
    bottom: calc(96px + env(safe-area-inset-bottom));
  }
}

/* ---------- Datos, envío y pago: letra liviana ----------
   Armado con dev-tests/gen_checkout_light.py desde los estilos propios de cada pantalla: baja los grosores
   800/900 a 500 (600 en títulos, nombres y totales) y saca las mayúsculas forzadas. Solo dentro
   de <main> y solo en las pantallas con la barra de pasos (el carrito tiene su propio estilo). */
html body:not(.al-cart-page):has(.checkout-progress:not(.simple-steps)) main :is(
  .identity-option-head,
  .identity-form-grid label,
  .identity-forgot,
  .identity-login-btn,
  .identity-google,
  .identity-register-note,
  .identity-register-grid label,
  .identity-password-note,
  .identity-avatar,
  a.identity-primary,
  .identity-primary,
  .identity-secondary,
  .cart-page-summary-row,
  .cart-page-min-hint-important,
  .cart-coupon-box .form-control,
  .cart-coupon-box .btn,
  .cart-page-pay-preview,
  .cart-page-pay-preview small,
  .cart-first-purchase-callout,
  .checkout-back-btn,
  .shop-topbar,
  .menu-left,
  .pack-btn,
  .badge-red,
  .offcanvas-menu .offcanvas-brand,
  .offcanvas-menu .offcanvas-sub,
  .offcanvas-menu .menu-section,
  .offcanvas-menu .menu-item,
  .offcanvas-menu .mi-left,
  .offcanvas-menu .menu-cta,
  .cart-count,
  .sum-row,
  .sum-row.muted,
  .cart-unit,
  .cart-unit-old,
  .cart-badge,
  .cart-badge .timer,
  .cart-empty,
  .cart-meta,
  .qty button,
  .qty input,
  .cart-qty button,
  .cart-qty input,
  .cart-cta,
  .cart-secondary,
  .shipping-mini-btn,
  .checkout-field-label,
  .shipping-note,
  .shipping-options-card .form-select,
  .shipping-panel-note,
  .shipping-data-card .form-label,
  #env_method_extras .form-label,
  .shipping-mode-option,
  .shipping-create-account .form-check-label,
  #checkoutConfirmBtn,
  .f-sello,
  .f-link,
  .f-contact-row,
  .footer-bottom,
  .f-mini-link,
  .f-mini-sello,
  #checkoutPagoConfirmBtn,
  .payment-choice-seal,
  .checkout-progress-step,
  .checkout-progress-arrow,
  .checkout-mobile-continue,
  .checkout-top-notice-action
) {
  font-weight: 500 !important;
}
html body:not(.al-cart-page):has(.checkout-progress:not(.simple-steps)) main :is(
  .identity-title,
  .identity-confirm-name,
  .cart-summary-title,
  .cart-page-summary-row span:last-child,
  .cart-page-summary-row.total span:last-child,
  .cart-coupon-title,
  .cart-page-pay-preview strong,
  .cart-first-purchase-callout strong,
  .cart-title,
  .cart-name,
  .cart-price,
  .section-title,
  .checkout-card-title,
  .shipping-address-title,
  .shipping-method-name,
  #campoNombreTransporte .form-label,
  .shipping-panel-note strong,
  .shipping-rate-title,
  .shipping-rate-price,
  .shipping-account-box strong,
  .shipping-account-title,
  .f-name,
  .f-col-title,
  .payment-choice-title,
  .pay-method-title,
  .checkout-top-notice-title
):not(#al-w6):not(#al-w6b) {
  font-weight: 600 !important;
}
html body:not(.al-cart-page):has(.checkout-progress:not(.simple-steps)) main #campoNombreTransporte .form-label::before {
  font-weight: 500 !important;
}
html body:not(.al-cart-page):has(.checkout-progress:not(.simple-steps)) main :is(b, strong):not(#al-w6):not(#al-w6b):not(#al-w6c) {
  font-weight: 600 !important;
}
html body:not(.al-cart-page):has(.checkout-progress:not(.simple-steps)) main :is([style*="font-weight:8"], [style*="font-weight: 8"], [style*="font-weight:9"], [style*="font-weight: 9"]) {
  font-weight: 500 !important;
}
html body:not(.al-cart-page):has(.checkout-progress:not(.simple-steps)) main :is(input, select, textarea) {
  font-weight: 400 !important;
}
html body:not(.al-cart-page):has(.checkout-progress:not(.simple-steps)) main :is(
  .shop-topbar,
  .pack-btn,
  .offcanvas-menu .offcanvas-brand,
  .offcanvas-menu .offcanvas-sub,
  .offcanvas-menu .menu-section,
  .offcanvas-menu .menu-cta,
  .cart-title,
  .cart-count,
  .sum-row,
  .cart-badge,
  .cart-name,
  .cart-meta,
  .cart-cta,
  .cart-secondary,
  .checkout-field-label,
  .shipping-method-name,
  #campoNombreTransporte .form-label,
  .shipping-rate-title,
  .f-col-title,
  .payment-choice-seal,
  .checkout-progress-step
) {
  letter-spacing: 0 !important;
  text-transform: none !important;
}
