/*
 * WooCommerce con la estética V9.
 *
 * Regla de oro: NO se reemplazan plantillas PHP de WooCommerce ni se toca
 * Transbank. Esto es solo una capa de estilos sobre el markup nativo, de modo
 * que actualizar Woo no rompa nada. Selectores anclados en `.andes-chrome`
 * para no filtrarse a los snapshots estáticos.
 */

/* --- Catálogo (loop de productos) --------------------------------------- */

.andes-chrome .woocommerce ul.products,
.andes-chrome ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.andes-chrome ul.products::before,
.andes-chrome ul.products::after { display: none; }

.andes-chrome ul.products li.product {
  float: none; width: auto; margin: 0;
  display: flex; flex-direction: column;
  overflow: hidden;
  padding: 0 0 var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: transform .3s var(--ease-out), box-shadow .3s ease;
}
.andes-chrome ul.products li.product .woocommerce-LoopProduct-link { display: flex; flex: 1; flex-direction: column; }
.andes-chrome ul.products li.product:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.andes-chrome ul.products li.product a img {
  width: 100%; aspect-ratio: 1 / 1;
  margin: 0 0 var(--space-3);
  object-fit: cover;
}
/* `max-width` y `letter-spacing` explícitos: el título del loop es un <h2> y basta con
   que el sitio defina una regla de elemento `h2` (content-pages.css lo hace con
   max-width:12ch) para que el nombre del producto caiga en columna. */
.andes-chrome ul.products li.product .woocommerce-loop-product__title {
  padding: 0 var(--space-3);
  margin: 0 0 var(--space-1);
  max-width: none;
  font-size: var(--text-base); font-weight: 700; line-height: 1.3;
  letter-spacing: normal;
}
.andes-chrome ul.products li.product .price {
  display: block; padding: 0 var(--space-3);
  color: var(--text); font-weight: 800;
  margin-top: auto;
}
.andes-chrome ul.products li.product .price del { margin-right: .45rem; color: var(--text-soft); font-weight: 500; }
.andes-chrome ul.products li.product .price ins { text-decoration: none; }
.andes-chrome ul.products li.product .button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.9rem; margin: var(--space-3) var(--space-3) 0;
  padding: .7rem 1rem;
  border: 0; border-radius: var(--radius-sm);
  background: var(--accent); color: #17120c;
  font-weight: 700; text-decoration: none;
}
.andes-chrome ul.products li.product .button:hover { background: #c0ff24; }
.andes-chrome ul.products li.product .button.added { display: none !important; }
.andes-chrome ul.products li.product a.added_to_cart.wc-forward {
  display: inline-flex; width: calc(100% - (var(--space-3) * 2)); min-height: 2.75rem;
  align-items: center; justify-content: center; margin: .55rem var(--space-3) 0; padding: .65rem .9rem;
  border: 1px solid var(--surface-dark); border-radius: var(--radius-sm);
  background: var(--surface-dark); color: var(--text-on-dark); font-weight: 800;
  line-height: 1.2; text-align: center; text-decoration: none; box-sizing: border-box;
}
.andes-chrome ul.products li.product a.added_to_cart.wc-forward:hover { background: #2f2c27; color: white; }
.andes-chrome ul.products li.product .onsale {
  position: absolute; z-index: 2; margin: 0; top: .75rem; right: .75rem; left: auto;
  min-width: 0; min-height: 0; padding: .42rem .68rem;
  border: 1px solid rgba(23, 18, 12, .18); border-radius: 999px;
  background: var(--accent); color: #17120c;
  box-shadow: 0 6px 18px rgba(16, 16, 14, .18);
  font-family: var(--font-mono); font-size: .64rem; font-weight: 900;
  letter-spacing: .06em; line-height: 1; text-transform: uppercase;
}
.andes-chrome ul.products li.product { position: relative; }

/* --- Barra de catálogo: categorías y orden ------------------------------ */

.andes-chrome .shop-toolbar {
  display: flex; flex-wrap: wrap; gap: var(--space-4);
  align-items: center; justify-content: space-between;
  padding: var(--space-4) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-6);
}
.andes-chrome .shop-cats { display: flex; flex-wrap: wrap; gap: .5rem; }
.andes-chrome .shop-cats a {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .9rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface);
  font-size: var(--text-sm); text-decoration: none;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.andes-chrome .shop-cats a:hover { border-color: var(--accent-dark); }
.andes-chrome .shop-cats a[aria-current="true"] {
  border-color: transparent; background: var(--surface-dark); color: var(--text-on-dark);
}
.andes-chrome .shop-cats .cat-count {
  font-family: var(--font-mono); font-size: .65rem; color: var(--text-soft);
}
.andes-chrome .shop-cats a[aria-current="true"] .cat-count { color: var(--text-on-dark-soft); }

.andes-chrome .woocommerce-ordering select,
.andes-chrome .shop-toolbar select {
  padding: .55rem .8rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
  font-size: var(--text-sm);
}
.andes-chrome .woocommerce-result-count { margin: 0; color: var(--text-soft); font-size: var(--text-sm); }

/* --- Paginación --------------------------------------------------------- */

.andes-chrome .woocommerce-pagination { margin-top: var(--space-6); }
.andes-chrome .woocommerce-pagination ul {
  display: flex; flex-wrap: wrap; gap: .4rem;
  margin: 0; padding: 0; border: 0; list-style: none;
}
.andes-chrome .woocommerce-pagination li { border: 0; margin: 0; }
.andes-chrome .woocommerce-pagination a,
.andes-chrome .woocommerce-pagination span {
  display: inline-flex; min-width: 2.75rem; min-height: 2.75rem;
  align-items: center; justify-content: center;
  padding: 0 .6rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); text-decoration: none;
}
.andes-chrome .woocommerce-pagination .current {
  border-color: transparent; background: var(--surface-dark); color: var(--text-on-dark);
}

/* --- Ficha de producto -------------------------------------------------- */

.andes-chrome .product .woocommerce-product-gallery { margin-bottom: var(--space-5); }
.andes-chrome .product .woocommerce-product-gallery__wrapper {
  overflow: hidden; border-radius: var(--radius-md); background: var(--surface);
  box-shadow: 0 18px 46px rgba(23, 18, 12, .08);
}
.andes-chrome .product .woocommerce-product-gallery__image img { border-radius: var(--radius-md); }
.andes-chrome .product .flex-control-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; margin-top: .8rem !important; }
.andes-chrome .product .flex-control-thumbs li { width: auto !important; }
.andes-chrome .product .flex-control-thumbs img { border: 2px solid transparent; border-radius: var(--radius-sm); }
.andes-chrome .product .flex-control-thumbs img.flex-active { border-color: var(--accent); }

.andes-chrome div.product {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: var(--space-6) var(--space-7);
  align-items: start;
}
.andes-chrome div.product .woocommerce-product-gallery { grid-column: 1; margin: 0; width: 100% !important; }
.andes-chrome div.product .summary {
  position: static; grid-column: 2; margin: 0; width: 100% !important; padding: clamp(1.35rem, 2.5vw, 2.15rem);
  border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); float: none;
  box-shadow: 0 20px 55px rgba(23, 18, 12, .08);
}
.andes-chrome div.product .woocommerce-tabs,
.andes-chrome div.product .related,
.andes-chrome div.product .upsells,
.andes-chrome div.product .woocommerce-product-details__short-description { grid-column: 1 / -1; }

.andes-chrome div.product .product_title {
  margin: .35rem 0 var(--space-3);
  font-size: clamp(2rem, 3.2vw, 3.15rem); line-height: 1.02; letter-spacing: -.045em;
}
.andes-chrome .product-brand-line {
  margin: 0; color: var(--accent-dark); font-family: var(--font-mono); font-size: var(--text-xs);
  font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
}
.andes-chrome div.product .price {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem;
  margin: 0 0 .35rem;
  color: var(--text); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800;
}
.andes-chrome div.product .price del { color: var(--text-soft); font-weight: 500; }
.andes-chrome div.product .price ins { text-decoration: none; }
.andes-chrome .product-price-note { margin: 0 0 var(--space-4); color: var(--text-soft); font-size: var(--text-sm); line-height: 1.55; }
.andes-chrome .woocommerce-product-details__short-description { color: var(--text); line-height: 1.7; }
.andes-chrome .woocommerce-product-details__short-description > :first-child { margin-top: 0; }
.andes-chrome .product-specific-summary { color: var(--text-soft); line-height: 1.7; }
.andes-chrome .product-specific-summary > p { margin: 0 0 1rem; }
.andes-chrome .product-specific-summary dl { display: grid; gap: .65rem; margin: 0; }
.andes-chrome .product-specific-summary dl div {
  display: grid; grid-template-columns: minmax(7rem, .7fr) minmax(0, 1.3fr); gap: .8rem;
  padding-top: .65rem; border-top: 1px solid var(--line);
}
.andes-chrome .product-specific-summary dt { color: var(--text); font-size: var(--text-sm); font-weight: 800; }
.andes-chrome .product-specific-summary dd { margin: 0; }
.andes-chrome .product-preparation-note {
  margin: .8rem 0 0; padding: .8rem .9rem; border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm); background: #f4f8ed; color: var(--text-soft); line-height: 1.55;
}
.andes-chrome .product-preparation-note strong { color: var(--text); }
.andes-chrome .product-care-content { max-width: 52rem; color: var(--text-soft); }
.andes-chrome .product-care-content ul { display: grid; gap: .55rem; margin: 1rem 0 0; padding-left: 1.2rem; }

.andes-chrome div.product form.cart {
  display: flex; flex-wrap: wrap; gap: var(--space-3);
  align-items: center;
  margin: var(--space-4) 0 var(--space-3);
}
.andes-chrome div.product form.cart .quantity input {
  width: 5rem; min-height: 3.25rem; padding: .5rem .7rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); text-align: center;
}
.andes-chrome div.product form.cart .button,
.andes-chrome .single_add_to_cart_button {
  flex: 1 1 14rem; min-height: 3.25rem; padding: .8rem 1.6rem;
  border: 0; border-radius: var(--radius-sm);
  background: var(--accent); color: #17120c;
  font-weight: 800; cursor: pointer;
  transition: transform .3s var(--ease-out), background-color .3s ease;
}
.andes-chrome div.product form.cart .button:hover { transform: translateY(-2px); background: #c0ff24; }

.andes-chrome .product-purchase-facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; margin: var(--space-3) 0; padding: 0;
  list-style: none;
}
.andes-chrome .product-purchase-facts li {
  display: grid; gap: .25rem; min-width: 0; padding: .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg);
}
.andes-chrome .product-purchase-facts strong { font-size: .78rem; line-height: 1.25; }
.andes-chrome .product-purchase-facts span { color: var(--text-soft); font-size: .7rem; line-height: 1.45; }

.andes-chrome .product-buy-help {
  margin-top: var(--space-3); padding: 1rem 1.1rem; border-left: 3px solid var(--accent-dark); background: var(--bg);
}
.andes-chrome .product-buy-help h2 { margin: 0 0 .35rem; font-size: 1rem; }
.andes-chrome .product-buy-help p { margin: 0 0 .65rem; color: var(--text-soft); font-size: .82rem; line-height: 1.55; }
.andes-chrome .product-buy-help a { color: var(--text); font-size: .82rem; font-weight: 800; text-underline-offset: .2em; }

.andes-chrome div.product .variations { width: 100%; margin-bottom: var(--space-3); }
.andes-chrome div.product .variations th { text-align: left; padding: .4rem .6rem .4rem 0; font-size: var(--text-sm); }
.andes-chrome div.product .variations select {
  min-height: 3rem; padding: .5rem .8rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface);
}

.andes-chrome .product_meta {
  margin-top: var(--space-4); padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  color: var(--text-soft); font-size: var(--text-sm);
}
.andes-chrome .product_meta a { color: var(--text); }

.andes-chrome .woocommerce-tabs ul.tabs {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin: 0 0 var(--space-4); padding: 0;
  border-bottom: 1px solid var(--line);
}
.andes-chrome .woocommerce-tabs ul.tabs::before { display: none; }
.andes-chrome .woocommerce-tabs ul.tabs li {
  margin: 0; padding: 0; border: 0; background: transparent; border-radius: 0;
}
.andes-chrome .woocommerce-tabs ul.tabs li::before,
.andes-chrome .woocommerce-tabs ul.tabs li::after { display: none; }
.andes-chrome .woocommerce-tabs ul.tabs li a {
  display: inline-flex; padding: .8rem 1.1rem;
  border-bottom: 2px solid transparent;
  color: var(--text-soft); font-weight: 700; text-decoration: none;
}
.andes-chrome .woocommerce-tabs ul.tabs li.active a { border-bottom-color: var(--accent); color: var(--text); }
.andes-chrome .woocommerce-tabs .panel {
  padding: clamp(1.25rem, 3vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--surface); line-height: 1.75;
}
.andes-chrome .woocommerce-tabs .panel > h2:first-child { margin-top: 0; }

.andes-chrome .woocommerce-tabs .woocommerce-Tabs-panel--description {
  padding: 0; border: 0; background: transparent;
}
.andes-chrome .product-story {
  overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--surface); box-shadow: 0 22px 60px rgba(23, 18, 12, .08);
}
.andes-chrome .product-story__lead {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(15rem, .7fr);
}
.andes-chrome .product-story__copy { padding: clamp(1.7rem, 5vw, 4.5rem); }
.andes-chrome .product-story__eyebrow {
  margin: 0 0 1rem; color: var(--accent-dark); font-family: var(--font-mono);
  font-size: var(--text-xs); font-weight: 900; letter-spacing: .11em; text-transform: uppercase;
}
.andes-chrome .product-story__copy h2 {
  max-width: 13ch; margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
  font-size: clamp(2rem, 5vw, 4.6rem); line-height: .96; letter-spacing: -.05em;
}
.andes-chrome .product-story__description {
  max-width: 44rem; color: var(--text-soft); font-size: clamp(1rem, 1.45vw, 1.18rem); line-height: 1.8;
}
.andes-chrome .product-story__description > :first-child { margin-top: 0; }
.andes-chrome .product-story__description > :last-child { margin-bottom: 0; }
.andes-chrome .product-story__aside {
  display: flex; min-width: 0; flex-direction: column; justify-content: space-between;
  padding: clamp(1.7rem, 4vw, 3.5rem); background: var(--surface-dark); color: var(--text-on-dark);
}
.andes-chrome .product-story__aside > span {
  display: grid; width: 3.1rem; height: 3.1rem; place-items: center;
  border: 1px solid rgba(174, 237, 17, .55); color: var(--accent);
  font-family: var(--font-mono); font-size: .72rem; font-weight: 900; letter-spacing: .08em;
}
.andes-chrome .product-story__aside p {
  margin: 3rem 0 0; color: var(--text-on-dark-soft); font-size: 1rem; line-height: 1.75;
}
.andes-chrome .product-story__facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line);
}
.andes-chrome .product-story__facts article {
  min-width: 0; padding: clamp(1.25rem, 3vw, 2.2rem); border-right: 1px solid var(--line);
}
.andes-chrome .product-story__facts article:last-child { border-right: 0; }
.andes-chrome .product-story__facts small {
  display: block; margin-bottom: .65rem; color: var(--accent-dark); font-family: var(--font-mono);
  font-size: .66rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase;
}
.andes-chrome .product-story__facts h3 { margin: 0; font-size: clamp(1rem, 1.5vw, 1.28rem); line-height: 1.35; }

.andes-chrome .related > h2,
.andes-chrome .upsells > h2 {
  margin: var(--space-7) 0 var(--space-4);
  font-size: var(--text-h3);
}

/* --- Carrito ------------------------------------------------------------ */

.andes-chrome .woocommerce table.shop_table {
  width: 100%;
  border: 1px solid var(--line); border-radius: var(--radius-md);
  border-collapse: separate; border-spacing: 0;
  background: var(--surface);
  overflow: hidden;
}
.andes-chrome .woocommerce table.shop_table th {
  padding: var(--space-3);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: .08em; text-transform: uppercase; text-align: left;
}
.andes-chrome .woocommerce table.shop_table td {
  padding: var(--space-3);
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
.andes-chrome .woocommerce table.shop_table img { width: 4.5rem; border-radius: var(--radius-sm); }

.andes-chrome .cart_totals,
.andes-chrome .cross-sells { margin-top: var(--space-6); }
.andes-chrome .wc-proceed-to-checkout .button,
.andes-chrome .woocommerce button.button,
.andes-chrome .woocommerce a.button,
.andes-chrome .woocommerce input.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: .8rem 1.4rem;
  border: 0; border-radius: var(--radius-sm);
  background: var(--surface-deep); color: white;
  font-weight: 700; text-decoration: none; cursor: pointer;
}
.andes-chrome .woocommerce button.button:hover,
.andes-chrome .woocommerce a.button:hover,
.andes-chrome .woocommerce input.button:hover { background: #2f2c27; }
.andes-chrome .woocommerce button.button.alt,
.andes-chrome .woocommerce a.button.alt,
.andes-chrome .woocommerce input.button.alt,
.andes-chrome .wc-proceed-to-checkout .checkout-button {
  background: var(--accent); color: #17120c;
}
.andes-chrome .woocommerce button.button.alt:hover,
.andes-chrome .wc-proceed-to-checkout .checkout-button:hover { background: #c0ff24; }

/* --- Checkout y cuenta -------------------------------------------------- */

.andes-chrome .woocommerce form .form-row { margin-bottom: var(--space-3); }
.andes-chrome .woocommerce form .form-row label { font-size: var(--text-sm); font-weight: 600; }
.andes-chrome .woocommerce form .form-row input.input-text,
.andes-chrome .woocommerce form .form-row textarea,
.andes-chrome .woocommerce form .form-row select,
.andes-chrome .woocommerce .select2-container .select2-selection--single {
  width: 100%; min-height: 3rem; padding: .6rem .85rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
}
.andes-chrome #order_review,
.andes-chrome .woocommerce-checkout #payment {
  border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--surface);
}
.andes-chrome .woocommerce-checkout #payment { padding: var(--space-3); }
.andes-chrome .woocommerce-checkout #payment ul.payment_methods { border-bottom: 1px solid var(--line); }

.andes-chrome .woocommerce-message,
.andes-chrome .woocommerce-info,
.andes-chrome .woocommerce-error {
  position: relative; margin-bottom: var(--space-4); padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line); border-left: 4px solid var(--accent-dark); border-top: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface); box-shadow: 0 10px 28px rgba(23, 18, 12, .06);
  list-style: none;
}
.andes-chrome .woocommerce-message,
.andes-chrome .woocommerce-info { display: flex; gap: .8rem; align-items: center; }
.andes-chrome .woocommerce-message::before,
.andes-chrome .woocommerce-info::before {
  position: static !important; top: auto !important; left: auto !important; transform: none !important;
  display: inline-grid; flex: 0 0 1.75rem; width: 1.75rem; height: 1.75rem; margin: 0;
  place-items: center; border-radius: 50%; background: #edf2ee; color: var(--accent-dark);
  line-height: 1;
}
.andes-chrome .woocommerce-message .button,
.andes-chrome .woocommerce-info .button { flex: 0 0 auto; min-height: 2.65rem; margin-left: auto; }
.andes-chrome .woocommerce-error { border-left-color: var(--danger); }

.andes-chrome .woocommerce-MyAccount-navigation ul {
  display: flex; flex-wrap: wrap; gap: .4rem;
  margin: 0 0 var(--space-5); padding: 0; list-style: none;
}
.andes-chrome .woocommerce-MyAccount-navigation a {
  display: inline-flex; padding: .55rem .9rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); font-size: var(--text-sm); text-decoration: none;
}
.andes-chrome .woocommerce-MyAccount-navigation .is-active a {
  border-color: transparent; background: var(--surface-dark); color: var(--text-on-dark);
}

/* --- Vacío / 404 -------------------------------------------------------- */

.andes-chrome .shop-empty,
.andes-chrome .andes-404 {
  padding: var(--space-7) 0;
  color: var(--text-soft);
}
.andes-chrome .andes-404 h1 { max-width: 14ch; margin: var(--space-3) 0 var(--space-4); color: var(--text); font-size: var(--text-h2); }
.andes-chrome .andes-404 .button { margin-top: var(--space-4); }

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 1050px) {
  .andes-chrome ul.products { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  .andes-chrome ul.products { grid-template-columns: repeat(2, 1fr); }
  .andes-chrome div.product { grid-template-columns: 1fr; }
  .andes-chrome div.product .woocommerce-product-gallery,
  .andes-chrome div.product .summary { position: static; grid-column: 1; }
  .andes-chrome .shop-toolbar { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 590px) {
  .andes-chrome ul.products { grid-template-columns: 1fr; }
  .andes-chrome .woocommerce table.shop_table th,
  .andes-chrome .woocommerce table.shop_table td { padding: var(--space-2); }
}

@media (max-width: 520px) {
	.andes-chrome .product-purchase-facts { grid-template-columns: 1fr; }
	.andes-chrome div.product .summary { padding: 1.2rem; }
	.andes-chrome .product-specific-summary dl div { grid-template-columns: 1fr; gap: .2rem; }
  .andes-chrome div.product form.cart .quantity,
  .andes-chrome div.product form.cart .quantity input { width: 100%; }
  .andes-chrome .woocommerce-message,
  .andes-chrome .woocommerce-info { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); align-items: center; }
  .andes-chrome .woocommerce-message .button,
  .andes-chrome .woocommerce-info .button { grid-column: 1 / -1; width: 100%; margin: .35rem 0 0; }
}

@media (max-width: 700px) {
  .andes-chrome .product-story__lead { grid-template-columns: 1fr; }
  .andes-chrome .product-story__copy { padding: 1.5rem; }
  .andes-chrome .product-story__copy h2 { font-size: clamp(2rem, 11vw, 3.2rem); }
  .andes-chrome .product-story__aside { padding: 1.5rem; }
  .andes-chrome .product-story__aside p { margin-top: 2rem; }
  .andes-chrome .product-story__facts { grid-template-columns: 1fr; }
  .andes-chrome .product-story__facts article { border-right: 0; border-bottom: 1px solid var(--line); }
  .andes-chrome .product-story__facts article:last-child { border-bottom: 0; }

  .andes-chrome div.product .related,
  .andes-chrome div.product .upsells { min-width: 0; overflow: hidden; }
  .andes-chrome div.product .related > h2,
  .andes-chrome div.product .upsells > h2 { max-width: 16ch; margin-bottom: 1rem; }
  .andes-chrome div.product .related ul.products.columns-4,
  .andes-chrome div.product .upsells ul.products {
    display: grid !important;
    grid-template-columns: none !important;
    grid-auto-flow: column;
    grid-auto-columns: minmax(15rem, 82vw);
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    padding: 0 max(1rem, calc((100vw - 100%) / 2)) 1rem 0;
    scroll-padding-inline: 0 1rem;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-dark) var(--line);
  }
  .andes-chrome div.product .related ul.products li.product,
  .andes-chrome div.product .upsells ul.products li.product {
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    scroll-snap-align: start;
  }
}
