/*!
 * Camisetas South · Rediseño 2026 · Tienda
 * Tarjetas de producto, categorías, filtros, paginación, ficha de producto, avisos
 * y botones de WooCommerce. Se carga en la portada, la tienda, categorías, búsqueda,
 * producto, carro y mi cuenta.
 *
 * Proporción de las fotos en las tarjetas: --sx-card-ratio. Las fotos de los productos son
 * cuadradas (1080 × 1080), así que la tarjeta es cuadrada y la foto se ve completa y nítida.
 */
:root { --sx-card-ratio: 1 / 1; }

/* ===================================================================== *
 * 1. Grilla de productos
 * ===================================================================== */
body.sx ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 32px 20px !important;
  margin: 0 0 24px !important;
  padding: 0 !important;
  list-style: none !important;
}
body.sx ul.products::before,
body.sx ul.products::after { display: none !important; content: none !important; }
@media (max-width: 1199px) { body.sx ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 899px) { body.sx ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 24px 12px !important; } }

body.sx ul.products li.product {
  position: relative;
  display: flex !important;
  flex-direction: column;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  text-align: left !important;
  overflow: visible !important;
}
body.sx ul.products li.product:hover { transform: none !important; box-shadow: none !important; }

/* Foto */
body.sx ul.products li.product .astra-shop-thumbnail-wrap {
  position: relative;
  overflow: hidden;
  margin: 0 0 12px !important;
  border-radius: 16px;
  background: #E9E8EC;
  isolation: isolate;
}
body.sx ul.products li.product a img,
body.sx ul.products li.product img.wp-post-image,
body.sx ul.products li.product img.attachment-woocommerce_thumbnail {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: var(--sx-card-ratio);
  object-fit: cover;
  margin: 0 !important;
  border-radius: 16px;
  background: #E9E8EC;
  box-shadow: none !important;
  transition: transform .6s var(--sx-ease, ease), opacity .3s;
}
body.sx ul.products li.product .astra-shop-thumbnail-wrap img { border-radius: 0; }
@media (hover: hover) {
  body.sx ul.products li.product:hover .astra-shop-thumbnail-wrap img { transform: scale(1.035); }
}
/* Sin Astra (o sin contenedor de foto): margen bajo la imagen */
body.sx ul.products li.product > a > img,
body.sx ul.products li.product > a > .sx-badge + img { margin-bottom: 12px !important; }

/* Ocultar lo que no usa el diseño en las tarjetas */
body.sx ul.products li.product .button,
body.sx ul.products li.product .add_to_cart_button,
body.sx ul.products li.product .added_to_cart,
body.sx ul.products li.product .ast-woo-product-category,
body.sx ul.products li.product .star-rating,
body.sx ul.products li.product .review-rating,
body.sx ul.products li.product .onsale,
body.sx ul.products li.product .ast-onsale-card,
body.sx ul.products li.product .ast-shop-product-out-of-stock,
body.sx ul.products li.product .ast-woo-shop-product-description { display: none !important; }

/* Texto */
body.sx ul.products li.product .astra-shop-summary-wrap { display: flex; flex-direction: column; gap: 3px; padding: 0 !important; }
body.sx ul.products li.product a { text-decoration: none !important; }
body.sx ul.products li.product .woocommerce-loop-product__title,
body.sx ul.products li.product .woocommerce-loop-category__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--sx-night) !important;
  font: 800 14.5px/1.3 var(--sx-font) !important;
  letter-spacing: .015em !important;
  text-transform: uppercase !important;
}
body.sx ul.products li.product .woocommerce-loop-category__title { text-transform: none !important; letter-spacing: 0 !important; font-size: 15.5px !important; }
body.sx ul.products li.product a:hover .woocommerce-loop-product__title { color: var(--sx-violet) !important; }
body.sx .sx-card-meta { margin: 0 !important; color: var(--sx-muted); font: 600 13.5px/1.35 var(--sx-font); }

body.sx ul.products li.product .price {
  display: flex !important;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  margin: 4px 0 0 !important;
  padding: 0 !important;
  color: var(--sx-night) !important;
  font: 900 16.5px/1.25 var(--sx-font) !important;
}
body.sx ul.products li.product .price .amount,
body.sx ul.products li.product .price bdi { color: inherit !important; font: inherit !important; }
body.sx ul.products li.product .price ins { order: 1; text-decoration: none !important; background: none !important; font-weight: 900 !important; }
body.sx ul.products li.product .price del { order: 2; color: var(--sx-strike) !important; font-size: 13.5px !important; font-weight: 600 !important; opacity: 1 !important; }
body.sx ul.products li.product .price del .amount,
body.sx ul.products li.product .price del bdi { font-size: 13.5px !important; font-weight: 600 !important; color: var(--sx-strike) !important; }
body.sx .sx-off { order: 3; color: var(--sx-off); font: 800 12.5px/1 var(--sx-font); }

/* Etiquetas */
body.sx .sx-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font: 800 12.5px/1 var(--sx-font);
  white-space: nowrap;
  pointer-events: none;
}
body.sx .sx-badge--stock { background: var(--sx-orange); color: var(--sx-night); }
body.sx .sx-badge--order { background: rgba(255,255,255,.92); color: var(--sx-violet-3); box-shadow: 0 2px 8px -4px rgba(26,11,46,.3); }
body.sx .sx-badge--out { background: var(--sx-night); color: #fff; }
@media (max-width: 600px) {
  body.sx .sx-badge { top: 8px; left: 8px; height: 24px; padding: 0 9px; font-size: 11.5px; }
}

/* Favoritos (YITH) sobre la foto */
body.sx .sx-card-fav {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  margin: 0 !important;
}
body.sx .sx-card-fav > *,
body.sx .sx-card-fav .yith-wcwl-add-to-wishlist,
body.sx .sx-card-fav .yith-add-to-wishlist-button-block { margin: 0 !important; padding: 0 !important; }
body.sx .sx-card-fav a,
body.sx .sx-card-fav button {
  display: grid !important;
  place-items: center;
  width: 38px !important;
  height: 38px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.78) !important;
  border-radius: 50% !important;
  background: linear-gradient(160deg, rgba(255,255,255,.55), rgba(255,255,255,0) 40%), rgba(255,255,255,.7) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 6px 16px -6px rgba(26,11,46,.35) !important;
  color: var(--sx-night) !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: 0;
  cursor: pointer;
}
body.sx .sx-card-fav svg,
body.sx .sx-card-fav img { width: 19px !important; height: 19px !important; margin: 0 !important; }
body.sx .sx-card-fav i { font-size: 17px !important; line-height: 1 !important; margin: 0 !important; }
body.sx .sx-card-fav span:not(:has(svg)):not(:has(i)) { display: none !important; }
body.sx .sx-card-fav .yith-wcwl-wishlistaddedbrowse > *:not(a),
body.sx .sx-card-fav .yith-wcwl-wishlistexistsbrowse > *:not(a),
body.sx .sx-card-fav .feedback,
body.sx .sx-card-fav .separator { display: none !important; }

/* Tarjeta "¿No está tu talla?" */
body.sx ul.products li.sx-tile-cta { list-style: none; margin: 0; padding: 0; }
body.sx li.sx-tile-cta > a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  min-height: 260px;
  padding: 20px;
  text-decoration: none !important;
  border-radius: 16px;
  box-sizing: border-box;
  background: var(--sx-violet);
  color: #fff !important;
  overflow: hidden;
}
body.sx li.sx-tile-cta img { width: 60px !important; height: auto !important; }
body.sx li.sx-tile-cta .sx-display { display: block; margin-top: 10px; font-size: clamp(28px, 3vw, 38px); }
body.sx .sx-tile-cta__txt { margin-top: auto; color: rgba(255,255,255,.9); font: 600 14px/1.45 var(--sx-font); }
body.sx li.sx-tile-cta .sx-btn { margin-top: 12px; height: 42px; padding: 0 18px; font-size: 14px; }
@media (max-width: 600px) {
  body.sx li.sx-tile-cta > a { padding: 14px; }
  body.sx .sx-tile-cta__txt { font-size: 13px; }
}

/* ===================================================================== *
 * 2. Categorías: encabezado, avisos, filtros, orden, paginación
 * ===================================================================== */
body.sx .woocommerce-breadcrumb,
body.sx .ast-breadcrumbs-wrapper,
body.sx .ast-breadcrumbs {
  margin: 0 0 14px !important;
  padding: 0 !important;
  color: var(--sx-muted) !important;
  font: 700 14px/1.4 var(--sx-font) !important;
}
body.sx .woocommerce-breadcrumb a,
body.sx .ast-breadcrumbs a { color: var(--sx-muted) !important; text-decoration: none !important; }
body.sx .woocommerce-breadcrumb a:hover,
body.sx .ast-breadcrumbs a:hover { color: var(--sx-violet) !important; }

body.sx .woocommerce-products-header { margin: 8px 0 28px !important; padding: 0 !important; text-align: left !important; }
body.sx .woocommerce-products-header__title,
body.sx.woocommerce .page-title,
body.sx .ast-archive-description .ast-archive-title {
  margin: 0 !important;
  color: var(--sx-night) !important;
  font-family: var(--sx-display) !important;
  font-weight: 900 !important;
  font-size: clamp(48px, 7vw, 104px) !important;
  line-height: .86 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
  overflow-wrap: anywhere;
}
body.sx .ast-archive-description { background: transparent !important; padding: 8px 0 0 !important; text-align: left !important; }
body.sx .term-description,
body.sx .woocommerce-products-header .page-description {
  max-width: 640px;
  margin: 16px 0 0 !important;
  color: var(--sx-muted);
  font: 500 17px/1.55 var(--sx-font);
}
body.sx .term-description p { margin: 0 0 .6em; }

.sx-archive-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 18px; min-width: 0; max-width: 100%; }
body.sx .sx-note {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 720px;
  padding: 10px 18px 10px 10px;
  border-radius: 18px;
  background: var(--sx-lilac);
  color: var(--sx-night);
  font: 600 14.5px/1.45 var(--sx-font);
}
body.sx .sx-note > .sx-ico {
  width: 44px;
  height: 44px;
  padding: 11px;
  box-sizing: border-box;
  border-radius: 12px;
  background: #fff;
  color: var(--sx-violet);
}
body.sx .sx-note p { margin: 0; }
body.sx .sx-note b { font-weight: 900; }
body.sx .sx-note a { color: var(--sx-violet-3); font-weight: 800; white-space: nowrap; }
body.sx .sx-note--stock { background: #FCEFE4; }
body.sx .sx-note--stock > .sx-ico { background: var(--sx-orange); color: var(--sx-night); }

body.sx .sx-subcats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
}
@media (max-width: 899px) {
  body.sx .sx-subcats {
    align-self: stretch;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  body.sx .sx-subcats::-webkit-scrollbar { display: none; }
}

/* Barra: cantidad + orden */
body.sx .woocommerce-result-count {
  margin: 10px 0 22px !important;
  color: var(--sx-night) !important;
  font: 800 15px/1.3 var(--sx-font) !important;
}
body.sx .woocommerce-ordering { margin: 0 0 22px !important; }
body.sx .woocommerce-ordering select,
body.sx .woocommerce-ordering .orderby {
  height: 44px !important;
  min-width: 190px;
  padding: 0 42px 0 18px !important;
  border: 1.5px solid var(--sx-line) !important;
  border-radius: 999px !important;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231A0B2E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center !important;
  box-shadow: none !important;
  color: var(--sx-night) !important;
  font: 800 14.5px/1 var(--sx-font) !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  cursor: pointer;
}
body.sx .woocommerce-ordering select:focus { border-color: var(--sx-violet) !important; outline: 0; box-shadow: 0 0 0 3px rgba(106,33,191,.14) !important; }

/* Filtro AJAX de categorías (plugin custom-category-filters) */
body.sx .ccfx-toolbar {
  max-width: none !important;
  margin: 22px 0 6px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}
body.sx #ccfx-filter-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
body.sx .ccfx-row { display: flex !important; flex-wrap: nowrap !important; flex-direction: row !important; align-items: center !important; gap: 10px !important; flex: 1 1 420px; min-width: 0; }
body.sx .ccfx-search-wrap {
  position: relative;
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: 520px;
  height: 46px;
  padding: 0 4px 0 16px;
  gap: 6px !important;
  border: 1.5px solid var(--sx-line);
  border-radius: 999px;
  background: #fff;
  box-sizing: border-box;
  transition: border-color .2s, box-shadow .2s;
}
body.sx .ccfx-search-wrap:focus-within { border-color: var(--sx-violet); box-shadow: 0 0 0 3px rgba(106,33,191,.14); }
body.sx .ccfx-input,
body.sx .ccfx-input:focus {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
  height: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0;
  color: var(--sx-night);
  font: 600 14.5px/1 var(--sx-font) !important;
}
body.sx .ccfx-btn,
body.sx .ccfx-btn:hover,
body.sx .ccfx-btn:focus {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-height: 0 !important;
  height: 38px;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--sx-soft) !important;
  color: var(--sx-night) !important;
  font: 800 14px/1 var(--sx-font) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: nowrap;
  box-shadow: none !important;
}
body.sx .ccfx-btn:hover { background: var(--sx-lilac-2) !important; }
body.sx .ccfx-btn-search,
body.sx .ccfx-btn-search:hover,
body.sx .ccfx-btn-search:focus { background: var(--sx-night) !important; color: #fff !important; }
body.sx .ccfx-btn-clear,
body.sx .ccfx-btn-clear:hover,
body.sx .ccfx-btn-clear:focus { background: transparent !important; color: var(--sx-violet) !important; padding: 0 8px !important; }
body.sx .ccfx-btn-toggle[aria-expanded="true"] { background: var(--sx-night) !important; color: #fff !important; }
body.sx .ccfx-size-panel {
  flex-wrap: wrap;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}
body.sx .ccfx-size-group {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 4px !important;
  min-width: 0 !important;
  height: 46px;
  padding: 0 4px 0 16px;
  border: 1.5px solid var(--sx-line);
  border-radius: 999px;
  background: #fff;
  box-sizing: border-box;
}
body.sx .ccfx-size-group label {
  margin: 0 !important;
  color: var(--sx-muted) !important;
  font: 700 13.5px/1 var(--sx-font) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
body.sx .ccfx-select {
  height: 40px !important;
  padding: 0 30px 0 6px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231A0B2E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center !important;
  box-shadow: none !important;
  color: var(--sx-night) !important;
  font: 800 14px/1 var(--sx-font) !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  cursor: pointer;
}
@media (min-width: 900px) {
  body.sx .ccfx-btn-toggle { display: none !important; }
  body.sx #ccfx-size-panel { display: flex !important; }
}
@media (max-width: 899px) {
  body.sx .ccfx-row { flex: 1 1 100%; flex-wrap: wrap !important; }
  body.sx .ccfx-search-wrap { flex: 1 1 100% !important; max-width: none; }
  body.sx #ccfx-size-panel { flex: 1 1 100%; }
  body.sx #ccfx-size-panel[style*="block"] { display: flex !important; }
  body.sx .ccfx-size-group { flex: 1 1 140px; }
  body.sx .ccfx-select { flex: 1; }
}
body.sx .ccfx-empty-results {
  margin: 8px 0 24px !important;
  padding: 32px 20px !important;
  border: 0 !important;
  border-radius: 20px !important;
  background: var(--sx-soft-2) !important;
  color: var(--sx-muted) !important;
  font: 600 15.5px/1.5 var(--sx-font) !important;
}
body.sx ul.products.ccfx-loading { opacity: .4 !important; pointer-events: none; }
body.sx ul.products.ccfx-loading::after {
  content: "" !important;
  position: absolute;
  top: 120px;
  left: 50%;
  width: 32px;
  height: 32px;
  margin: 0 0 0 -16px;
  padding: 0;
  border: 3px solid rgba(106,33,191,.18);
  border-top-color: var(--sx-violet);
  border-radius: 50%;
  animation: ccfxspin .7s linear infinite;
}

/* Paginación (WooCommerce y filtro AJAX) */
body.sx nav.woocommerce-pagination { margin: 48px 0 16px !important; text-align: center !important; }
body.sx nav.woocommerce-pagination ul,
body.sx nav.woocommerce-pagination ul.page-numbers {
  display: inline-flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: normal !important;
}
body.sx nav.woocommerce-pagination ul li { float: none !important; margin: 0 !important; border: 0 !important; overflow: visible !important; }
body.sx nav.woocommerce-pagination ul li a,
body.sx nav.woocommerce-pagination ul li span {
  display: grid !important;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 10px !important;
  box-sizing: border-box;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--sx-soft) !important;
  color: var(--sx-night) !important;
  font: 800 15px/1 var(--sx-font) !important;
  text-decoration: none !important;
}
body.sx nav.woocommerce-pagination ul li a:hover,
body.sx nav.woocommerce-pagination ul li a:focus { background: var(--sx-lilac-2) !important; color: var(--sx-night) !important; }
body.sx nav.woocommerce-pagination ul li span.current { background: var(--sx-night) !important; color: #fff !important; }
body.sx nav.woocommerce-pagination ul li span.dots { background: transparent !important; min-width: 24px; }
body.sx nav.woocommerce-pagination ul li span.disabled { opacity: .35; }
body.sx nav.woocommerce-pagination .sx-ico { width: 18px; height: 18px; }

/* ===================================================================== *
 * 3. Avisos y botones de WooCommerce (fuera del pago de FunnelKit)
 * ===================================================================== */
body.sx .woocommerce-message,
body.sx .woocommerce-info,
body.sx .woocommerce-error,
body.sx .woocommerce-noreviews,
body.sx p.no-comments {
  margin: 0 0 24px !important;
  padding: 16px 20px 16px 52px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: var(--sx-lilac) !important;
  color: var(--sx-night) !important;
  font: 600 15px/1.5 var(--sx-font) !important;
  box-shadow: none !important;
}
body.sx .woocommerce-message::before,
body.sx .woocommerce-info::before { color: var(--sx-violet) !important; top: 16px !important; left: 20px !important; }
body.sx .woocommerce-error { background: #FDECEA !important; }
body.sx .woocommerce-error::before { color: #B3261E !important; top: 16px !important; left: 20px !important; }
body.sx .woocommerce-message .button,
body.sx .woocommerce-info .button {
  float: right;
  margin: -6px 0 -6px 16px !important;
}

body.sx:not(.woocommerce-checkout) .woocommerce a.button,
body.sx:not(.woocommerce-checkout) .woocommerce button.button,
body.sx:not(.woocommerce-checkout) .woocommerce input.button,
body.sx:not(.woocommerce-checkout) .woocommerce #respond input#submit,
body.sx .woocommerce-message a.button,
body.sx .woocommerce-info a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 24px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--sx-violet) !important;
  color: #fff !important;
  font: 800 15px/1.2 var(--sx-font) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: background-color .2s;
}
body.sx:not(.woocommerce-checkout) .woocommerce a.button:hover,
body.sx:not(.woocommerce-checkout) .woocommerce button.button:hover,
body.sx:not(.woocommerce-checkout) .woocommerce input.button:hover,
body.sx:not(.woocommerce-checkout) .woocommerce #respond input#submit:hover,
body.sx .woocommerce-message a.button:hover,
body.sx .woocommerce-info a.button:hover { background: var(--sx-violet-2) !important; color: #fff !important; }
body.sx:not(.woocommerce-checkout) .woocommerce button.button:disabled,
body.sx:not(.woocommerce-checkout) .woocommerce button.button.disabled { opacity: .5 !important; }

/* Carro y Mi cuenta (plantillas clásicas de WooCommerce) */
body.sx.woocommerce-cart .entry-title,
body.sx.woocommerce-account .entry-title,
body.sx.woocommerce-checkout .entry-title {
  color: var(--sx-night);
  font-family: var(--sx-display);
  font-weight: 900;
  font-size: clamp(44px, 6vw, 72px);
  line-height: .9;
  text-transform: uppercase;
}
body.sx .woocommerce-cart-form .product-name a,
body.sx .woocommerce-MyAccount-navigation a { color: var(--sx-night) !important; font-weight: 800; text-decoration: none !important; }
body.sx .woocommerce-cart-form .product-name a:hover { color: var(--sx-violet) !important; }
body.sx .woocommerce-cart-form .product-name dl.variation { margin: 6px 0 0; color: var(--sx-muted); font-size: 14px; }
body.sx .woocommerce table.shop_table { border-radius: 16px !important; border-color: #ECEAF0 !important; overflow: hidden; }
body.sx .woocommerce table.shop_table th { color: var(--sx-night); font-weight: 900; }
body.sx .woocommerce-cart-form .coupon .input-text,
body.sx .woocommerce-cart-form .quantity .qty {
  min-height: 44px;
  border: 1.5px solid var(--sx-line) !important;
  border-radius: 999px !important;
  background: #fff !important;
  padding: 0 16px !important;
  font: 700 14.5px/1 var(--sx-font) !important;
}
body.sx .woocommerce-cart-form .coupon .input-text { width: 180px !important; margin-right: 8px !important; }
body.sx .woocommerce-cart-form .quantity .qty { width: 72px !important; padding: 0 8px !important; text-align: center; }
body.sx .woocommerce-cart-form a.remove { color: var(--sx-muted) !important; font-size: 22px; }
body.sx .woocommerce-cart-form a.remove:hover { background: var(--sx-soft) !important; color: #B3261E !important; }
body.sx .cart_totals h2 { font-family: var(--sx-display); font-weight: 900; text-transform: uppercase; font-size: 40px; line-height: .9; color: var(--sx-night); }
body.sx .wc-proceed-to-checkout .checkout-button { width: 100%; min-height: 56px !important; font-size: 16px !important; }
body.sx .woocommerce-MyAccount-navigation ul { margin: 0 !important; padding: 0 !important; list-style: none !important; }
body.sx .woocommerce-MyAccount-navigation li a { display: block; padding: 10px 14px; border-radius: 12px; }
body.sx .woocommerce-MyAccount-navigation li.is-active a { background: var(--sx-night); color: #fff !important; }

/* ===================================================================== *
 * 4. Ficha de producto
 * ===================================================================== */
body.sx.single-product div.product {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 470px);
  column-gap: 56px;
  row-gap: 0;
  align-items: start;
  margin-top: 8px;
}
body.sx.single-product div.product > * { grid-column: 1 / -1; min-width: 0; }
body.sx.single-product div.product > .woocommerce-product-gallery,
body.sx.single-product div.product > div.images {
  grid-column: 1;
  grid-row: 1;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  float: none !important;
}
body.sx.single-product div.product > .summary {
  grid-column: 2;
  grid-row: 1;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: none !important;
}
body.sx.single-product div.product > .onsale,
body.sx.single-product div.product .woocommerce-product-gallery .onsale { display: none !important; }
@media (max-width: 999px) {
  body.sx.single-product div.product { grid-template-columns: minmax(0, 1fr); }
  body.sx.single-product div.product > .summary { grid-column: 1; grid-row: 2; margin-top: 18px !important; }
}

/* Galería: foto principal + miniaturas (carrusel de WooCommerce) */
body.sx .woocommerce-product-gallery { position: relative; opacity: 1 !important; }
body.sx .woocommerce-product-gallery__trigger { display: none !important; }
body.sx .woocommerce-product-gallery .flex-viewport {
  height: auto !important;
  overflow: hidden;
  border-radius: 22px;
  background: var(--sx-soft);
}
body.sx .woocommerce-product-gallery__wrapper { margin: 0 !important; padding: 0 !important; }
body.sx .woocommerce-product-gallery__image { position: relative; margin: 0 !important; background: var(--sx-soft); }
/* Antes de que cargue el carrusel (o si un optimizador retrasa los scripts): solo la principal */
body.sx .woocommerce-product-gallery:not(:has(.flex-viewport)) .woocommerce-product-gallery__wrapper { overflow: hidden; border-radius: 22px; background: var(--sx-soft); }
body.sx .woocommerce-product-gallery:not(:has(.flex-viewport)) .woocommerce-product-gallery__image:not(:first-child) { display: none !important; }
body.sx .woocommerce-product-gallery__image a { display: block; cursor: zoom-in; }
body.sx .woocommerce-product-gallery__image img {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Flechas sobre la foto principal (centradas en la foto, que es cuadrada) */
body.sx .woocommerce-product-gallery .flex-direction-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: block !important;
  aspect-ratio: 1 / 1;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  pointer-events: none;
}
body.sx .woocommerce-product-gallery .flex-direction-nav li { position: static; margin: 0; padding: 0; list-style: none; }
body.sx .woocommerce-product-gallery .flex-direction-nav a {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  backdrop-filter: blur(14px) saturate(1.6);
  box-shadow: 0 6px 20px rgba(26,11,46,.14), inset 0 0 0 1px rgba(255,255,255,.6);
  color: transparent !important;
  font-size: 0 !important;
  text-decoration: none !important;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity .2s, background-color .2s, transform .2s;
}
body.sx .woocommerce-product-gallery .flex-direction-nav a::before {
  content: "";
  width: 20px;
  height: 20px;
  background: var(--sx-night);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%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='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
body.sx .woocommerce-product-gallery .flex-direction-nav .flex-prev { left: 14px; }
body.sx .woocommerce-product-gallery .flex-direction-nav .flex-next { right: 14px; }
body.sx .woocommerce-product-gallery .flex-direction-nav .flex-next::before { transform: scaleX(-1); }
body.sx .woocommerce-product-gallery:hover .flex-direction-nav a,
body.sx .woocommerce-product-gallery .flex-direction-nav a:focus-visible { opacity: 1; }
body.sx .woocommerce-product-gallery .flex-direction-nav a:hover { background: #fff; }
body.sx .woocommerce-product-gallery .flex-direction-nav a:focus-visible { outline: 2px solid var(--sx-violet); outline-offset: 2px; }
body.sx .woocommerce-product-gallery .flex-direction-nav .flex-disabled { opacity: 0 !important; pointer-events: none; }
@media (hover: none) { body.sx .woocommerce-product-gallery .flex-direction-nav { display: none !important; } }

/* Miniaturas: al tocar una, pasa a ser la foto principal */
body.sx .woocommerce-product-gallery .flex-control-thumbs {
  display: flex !important;
  gap: 10px;
  margin: 12px 0 0 !important;
  padding: 2px !important;
  overflow-x: auto;
  overflow-y: hidden;
  list-style: none !important;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
body.sx .woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar { display: none; }
body.sx .woocommerce-product-gallery .flex-control-thumbs li {
  flex: 0 0 82px;
  width: 82px !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: none !important;
  list-style: none !important;
}
body.sx .woocommerce-product-gallery .flex-control-thumbs img {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin: 0 !important;
  border-radius: 14px !important;
  background: var(--sx-soft);
  box-shadow: inset 0 0 0 1px rgba(26,11,46,.06);
  opacity: .62 !important;
  cursor: pointer;
  transition: opacity .2s, box-shadow .2s;
}
body.sx .woocommerce-product-gallery .flex-control-thumbs img:hover { opacity: 1 !important; }
body.sx .woocommerce-product-gallery .flex-control-thumbs img.flex-active {
  opacity: 1 !important;
  box-shadow: 0 0 0 2px var(--sx-violet);
}
@media (max-width: 999px) {
  body.sx .woocommerce-product-gallery .flex-viewport,
  body.sx .woocommerce-product-gallery:not(:has(.flex-viewport)) .woocommerce-product-gallery__wrapper { border-radius: 18px; }
  body.sx .woocommerce-product-gallery .flex-control-thumbs { gap: 8px; margin-top: 10px !important; }
  body.sx .woocommerce-product-gallery .flex-control-thumbs li { flex-basis: 64px; width: 64px !important; }
  body.sx .woocommerce-product-gallery .flex-control-thumbs img { border-radius: 12px !important; }
}

/* Resumen */
body.sx.single-product .summary .product_title {
  margin: 0 !important;
  color: var(--sx-night) !important;
  font-family: var(--sx-display) !important;
  font-weight: 900 !important;
  font-size: clamp(40px, 4.4vw, 60px) !important;
  line-height: .9 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
  overflow-wrap: anywhere;
}
body.sx .sx-pdp-sub { margin: 10px 0 0 !important; color: var(--sx-muted); font: 700 15.5px/1.4 var(--sx-font); }
body.sx.single-product .summary .ast-woo-product-category,
body.sx.single-product .summary .single-product-category { margin: 0 0 10px !important; color: var(--sx-muted) !important; font: 800 14px/1.3 var(--sx-font) !important; }
body.sx.single-product .summary .ast-woo-product-category a { color: inherit !important; text-decoration: none !important; }
body.sx.single-product .summary .woocommerce-product-rating { margin: 10px 0 0 !important; }
body.sx.single-product .summary > .price,
body.sx.single-product .summary p.price {
  display: flex !important;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 16px 0 0 !important;
  color: var(--sx-night) !important;
  font: 900 30px/1.15 var(--sx-font) !important;
}
body.sx.single-product .summary p.price .amount,
body.sx.single-product .summary p.price bdi { color: inherit !important; font: inherit !important; }
body.sx.single-product .summary p.price ins { order: 1; text-decoration: none !important; background: none !important; }
body.sx.single-product .summary p.price del { order: 2; opacity: 1 !important; color: var(--sx-strike) !important; font-size: 18px !important; font-weight: 600 !important; }
body.sx.single-product .summary p.price del .amount,
body.sx.single-product .summary p.price del bdi { font-size: 18px !important; font-weight: 600 !important; color: var(--sx-strike) !important; }
body.sx.single-product .summary p.price .sx-off { font-size: 14px; }
body.sx.single-product .summary .woocommerce-product-details__short-description {
  margin: 16px 0 0 !important;
  color: var(--sx-muted);
  font: 500 15.5px/1.6 var(--sx-font);
}
body.sx.single-product .summary .woocommerce-product-details__short-description p { margin: 0 0 .6em; }
body.sx.single-product .summary .stock {
  margin: 14px 0 0 !important;
  color: var(--sx-ok) !important;
  font: 800 14px/1.3 var(--sx-font) !important;
}
body.sx.single-product .summary .stock.out-of-stock { color: #B3261E !important; }
body.sx.single-product .summary .product_meta { display: none !important; }

/* ¿Cómo la quieres? */
.sx-mode { margin: 24px 0 0; }
.sx-mode__label { margin: 0 0 10px !important; color: var(--sx-night); font: 900 15.5px/1.2 var(--sx-font); }
.sx-mode__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
body.sx .sx-mode__opt {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px;
  border: 1.5px solid var(--sx-line);
  border-radius: 16px;
  background: #fff;
  color: var(--sx-night);
  text-decoration: none !important;
  transition: border-color .2s, background-color .2s;
}
body.sx a.sx-mode__opt:hover,
body.sx a.sx-mode__opt:focus { border-color: var(--sx-night); color: var(--sx-night); }
body.sx .sx-mode__opt.is-on { border-color: var(--sx-violet); box-shadow: inset 0 0 0 1px var(--sx-violet); background: #FAF6FF; }
.sx-mode__opt b { font: 900 15px/1.2 var(--sx-font); }
.sx-mode__opt span { color: var(--sx-muted); font: 600 13.5px/1.35 var(--sx-font); }
.sx-mode__opt em { margin-top: 4px; color: var(--sx-night); font: 800 14px/1 var(--sx-font); font-style: normal; }

/* Formulario de compra */
body.sx.single-product .summary form.cart { margin: 24px 0 0 !important; padding: 0 !important; border: 0 !important; }
body.sx.single-product .summary form.cart table.variations,
body.sx.single-product .summary form.cart table.variations tbody,
body.sx.single-product .summary form.cart table.variations tr,
body.sx.single-product .summary form.cart table.variations th,
body.sx.single-product .summary form.cart table.variations td {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  text-align: left !important;
}
body.sx.single-product .summary form.cart table.variations { margin-bottom: 6px !important; }
body.sx.single-product .summary form.cart table.variations tr { margin-bottom: 18px !important; }
body.sx.single-product .summary form.cart table.variations th.label,
body.sx.single-product .summary form.cart table.variations td.label { margin-bottom: 10px !important; }
body.sx.single-product .summary form.cart table.variations label {
  display: block;
  margin: 0 !important;
  color: var(--sx-night) !important;
  font: 900 15.5px/1.2 var(--sx-font) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
body.sx.single-product .summary form.cart table.variations .sx-varrow,
.sx-varrow { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; }
body.sx.single-product .summary form.cart .variations select,
body.sx.single-product .summary form.cart select {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 50px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 44px 0 16px !important;
  border: 1.5px solid var(--sx-line) !important;
  border-radius: 14px !important;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231A0B2E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center !important;
  box-shadow: none !important;
  color: var(--sx-night) !important;
  font: 800 15px/1 var(--sx-font) !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
/* Cuando hay botones de talla, el select queda oculto (sigue funcionando por dentro) */
body.sx .sx-sizes-on select,
body.sx.single-product .summary form.cart .variations .sx-sizes-on select {
  position: absolute !important;
  width: 1px !important;
  min-width: 0 !important;
  max-width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.sx-sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
body.sx .sx-size {
  position: relative;
  display: grid;
  place-items: center;
  height: 50px;
  min-height: 0;
  margin: 0;
  padding: 0 8px;
  border: 1.5px solid var(--sx-line) !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: var(--sx-night) !important;
  font: 800 15px/1 var(--sx-font) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer;
  transition: border-color .15s, background-color .15s, color .15s;
}
body.sx .sx-size:hover,
body.sx .sx-size:focus { border-color: var(--sx-night) !important; background: #fff !important; color: var(--sx-night) !important; }
body.sx .sx-size.is-on,
body.sx .sx-size[aria-pressed="true"] { border-color: var(--sx-night) !important; background: var(--sx-night) !important; color: #fff !important; }
body.sx .sx-size[aria-disabled="true"] { color: #A7A1B2 !important; background: var(--sx-soft-2) !important; border-color: #ECEAF0 !important; cursor: not-allowed; text-decoration: line-through; }
body.sx .sx-size-wrap.is-invalid .sx-sizes { animation: sx-shake .4s; }
body.sx .sx-size-wrap.is-invalid .sx-size:not([aria-disabled="true"]) { border-color: #C2410C !important; }
@keyframes sx-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
body.sx .sx-field-error { margin: 8px 0 0 !important; color: #B3261E; font: 700 13.5px/1.35 var(--sx-font); }

body.sx.single-product .summary .reset_variations {
  display: inline-block;
  margin: 8px 0 0 !important;
  color: var(--sx-muted) !important;
  font: 700 13.5px/1 var(--sx-font) !important;
  text-decoration: underline !important;
}
body.sx.single-product .summary .single_variation_wrap .woocommerce-variation { margin: 0 0 14px; }
body.sx.single-product .summary .woocommerce-variation-price .price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  color: var(--sx-night) !important;
  font: 900 22px/1.2 var(--sx-font) !important;
}
body.sx.single-product .summary .woocommerce-variation-price .price del { order: 2; font-size: 15px !important; font-weight: 600 !important; color: var(--sx-strike) !important; opacity: 1 !important; }
body.sx.single-product .summary .woocommerce-variation-price .price del .amount { font-size: inherit !important; }
body.sx.single-product .summary .woocommerce-variation-price .price ins { order: 1; text-decoration: none; }
body.sx.single-product .summary .woocommerce-variation-availability .stock { margin-top: 4px !important; }

/* Cantidad + botón */
body.sx.single-product .summary form.cart:not(.variations_form),
body.sx.single-product .summary .woocommerce-variation-add-to-cart {
  display: flex !important;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
}
body.sx.single-product .summary .woocommerce-variation-add-to-cart > *:not(.quantity):not(.single_add_to_cart_button):not(button):not(input[type="hidden"]),
body.sx.single-product .summary form.cart:not(.variations_form) > *:not(.quantity):not(.single_add_to_cart_button):not(button):not(input[type="hidden"]) { flex: 1 1 100%; }
body.sx.single-product .summary form.cart .quantity {
  display: flex !important;
  align-items: center;
  height: 56px;
  margin: 0 !important;
  padding: 0 4px;
  border: 1.5px solid var(--sx-line);
  border-radius: 999px;
  background: #fff;
  box-sizing: border-box;
}
body.sx.single-product .summary form.cart .quantity input.qty {
  width: 48px !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--sx-night) !important;
  font: 900 16px/1 var(--sx-font) !important;
  text-align: center;
  -moz-appearance: textfield;
}
body.sx.single-product .summary form.cart .quantity .minus,
body.sx.single-product .summary form.cart .quantity .plus {
  display: grid !important;
  place-items: center;
  width: 36px !important;
  height: 36px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--sx-soft) !important;
  color: var(--sx-night) !important;
  font: 800 18px/1 var(--sx-font) !important;
}
body.sx.single-product .summary form.cart .single_add_to_cart_button,
body.sx.single-product .summary form.cart .single_add_to_cart_button.alt {
  flex: 1 1 200px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 28px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--sx-violet) !important;
  color: #fff !important;
  box-shadow: 0 14px 30px -14px rgba(106,33,191,.7) !important;
  font: 800 16px/1 var(--sx-font) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  transform: none !important;
  transition: background-color .2s, box-shadow .2s;
}
body.sx.single-product .summary form.cart .single_add_to_cart_button:hover,
body.sx.single-product .summary form.cart .single_add_to_cart_button:focus { background: var(--sx-violet-2) !important; color: #fff !important; }
body.sx.single-product .summary form.cart .single_add_to_cart_button.disabled,
body.sx.single-product .summary form.cart .single_add_to_cart_button:disabled { opacity: .55 !important; cursor: not-allowed; box-shadow: none !important; }
body.sx.single-product .summary form.cart .single_add_to_cart_button.loading { opacity: .8 !important; }

/* Guía de tallas */
body.sx .sx-sizeguide { margin: 0 0 12px !important; }
body.sx .sx-varrow .sx-sizeguide { margin: 0 !important; }
body.sx .sx-sizeguide__btn,
body.sx .sx-sizeguide__btn:hover,
body.sx .sx-sizeguide__btn:focus {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 4px 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--sx-violet) !important;
  font: 800 14px/1 var(--sx-font) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer;
}
body.sx .sx-sizeguide__btn:hover { text-decoration: underline; text-underline-offset: 3px; }
body.sx .sx-sizeguide__btn .sx-ico { width: 18px; height: 18px; }

/* Opciones del plugin de personalización (WCPA) */
body.sx.single-product .summary [class*="wcpa_form_outer"],
body.sx.single-product .summary .wcpa_form_outer { margin: 6px 0 16px !important; }
body.sx.single-product .summary .wcpa_form_item,
body.sx.single-product .summary .wcpa_field_wrap { margin: 0 0 14px !important; }
body.sx.single-product .summary .wcpa_form_item > label,
body.sx.single-product .summary .wcpa_form_label,
body.sx.single-product .summary .wcpa_field_label,
body.sx.single-product .summary .wcpa_form_item .wcpa_label {
  display: block !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  color: var(--sx-night) !important;
  font: 900 15.5px/1.2 var(--sx-font) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
body.sx.single-product .summary form.cart input[type="text"],
body.sx.single-product .summary form.cart input[type="number"]:not(.qty),
body.sx.single-product .summary form.cart input[type="email"],
body.sx.single-product .summary form.cart textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px !important;
  border: 1.5px solid var(--sx-line) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: none !important;
  color: var(--sx-night) !important;
  font: 700 15.5px/1.3 var(--sx-font) !important;
}
body.sx.single-product .summary form.cart input[type="text"]:focus,
body.sx.single-product .summary form.cart textarea:focus { border-color: var(--sx-violet) !important; outline: 0; box-shadow: 0 0 0 3px rgba(106,33,191,.14) !important; }

/* Tarjeta de la vista previa del estampado */
body.sx .sx-print-card {
  border-radius: 22px;
  background: var(--sx-soft-2);
}

/* Vista previa del estampado (lee los campos de Product Addons) */
body.sx .sx-print {
  display: flex !important;
  align-items: center;
  gap: 16px;
  margin: 14px 0 16px !important;
  padding: 12px 16px 12px 12px !important;
}
body.sx .sx-print[hidden] { display: none !important; }
body.sx .sx-print .sx-mode__label { margin: 0 0 4px !important; }
.sx-print__txt { min-width: 0; }
.sx-print__preview {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 104px;
  height: 104px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(160deg, #2A1446, var(--sx-night));
  color: var(--sx-orange-soft);
  text-align: center;
}
.sx-print__name { max-width: 100%; padding: 0 8px; overflow: hidden; font: 900 15px/1 var(--sx-display); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; }
.sx-print__num { font: 900 50px/.85 var(--sx-display); }
.sx-print__name[hidden], .sx-print__num[hidden] { display: none !important; }
.sx-print__hint { margin: 0 !important; color: var(--sx-muted); font: 700 14px/1.4 var(--sx-font); overflow-wrap: anywhere; }
@media (max-width: 420px) {
  .sx-print__preview { width: 88px; height: 88px; }
  .sx-print__num { font-size: 42px; }
}

/* Parches (grupo de imágenes de WCPA) */
body.sx .sx-patch-group { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
@media (max-width: 600px) {
  body.sx .sx-patch-group { grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 6px; }
  body.sx .sx-patch { padding: 10px 4px 8px !important; font-size: 11.5px !important; }
  body.sx .sx-patch img { width: 40px !important; height: 40px !important; }
}
body.sx .sx-patch-group > * { margin: 0 !important; width: auto !important; float: none !important; }
body.sx .sx-patch {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  margin: 0 !important;
  padding: 12px 6px 10px !important;
  border: 1.5px solid #E2DFE8 !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-sizing: border-box;
  color: var(--sx-night) !important;
  font: 800 13px/1.2 var(--sx-font) !important;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
body.sx .sx-patch img { width: 46px !important; height: 46px !important; margin: 0 !important; border: 0 !important; border-radius: 50%; object-fit: cover; }
body.sx .sx-patch:hover { border-color: var(--sx-night) !important; }
body.sx .sx-patch.is-on { border-color: var(--sx-violet) !important; box-shadow: inset 0 0 0 1px var(--sx-violet); background: #FAF6FF !important; }
body.sx .sx-patch-input { position: absolute !important; opacity: 0 !important; width: 1px !important; height: 1px !important; pointer-events: none; }

/* Total de opciones de WCPA */
body.sx.single-product .summary .wcpa_price_summary,
body.sx.single-product .summary .wcpa_price_outer {
  margin: 4px 0 16px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font: 700 15px/1.6 var(--sx-font);
}

/* Caja de entrega y ayuda */
body.sx .sx-delivery {
  display: grid;
  gap: 14px;
  margin: 22px 0 0 !important;
  padding: 18px 20px !important;
  border: 1px solid #ECEAF0;
  border-radius: 20px;
}
body.sx .sx-delivery li { display: flex; align-items: flex-start; gap: 14px; margin: 0; color: var(--sx-night); font: 500 14.5px/1.45 var(--sx-font); }
body.sx .sx-delivery .sx-ico { margin-top: 1px; color: var(--sx-violet); }
body.sx .sx-delivery b { display: block; font-weight: 900; }
body.sx .sx-delivery span { color: var(--sx-muted); }
body.sx .sx-delivery span b { color: var(--sx-night); }
body.sx .sx-help,
body.sx .sx-help:hover,
body.sx .sx-help:focus {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 0;
  padding: 12px 18px;
  border-radius: 16px;
  background: #EAF7EF;
  color: var(--sx-night);
  font: 600 14.5px/1.35 var(--sx-font);
  text-decoration: none !important;
}
body.sx .sx-help .sx-ico { color: var(--sx-wa); }
body.sx .sx-help b { color: var(--sx-wa); font-weight: 900; }
body.sx .sx-soldout-wa { margin-top: 18px; }

/* Favoritos (YITH) en la ficha */
body.sx.single-product .summary .yith-wcwl-add-to-wishlist,
body.sx.single-product .summary .yith-add-to-wishlist-button-block { margin: 14px 0 0 !important; }
body.sx.single-product .summary .yith-wcwl-add-to-wishlist a,
body.sx.single-product .summary .yith-add-to-wishlist-button-block button,
body.sx.single-product .summary .yith-add-to-wishlist-button-block a {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  min-height: 0 !important;
  padding: 6px 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--sx-night) !important;
  font: 800 14.5px/1.2 var(--sx-font) !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  text-transform: none !important;
}

/* Lo que tienes que saber (acordeones) */
body.sx .sx-info {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 24px 56px;
  margin: 80px 0 0 !important;
  padding: 0;
}
.sx-info__title { font-size: clamp(40px, 4.4vw, 56px); color: var(--sx-night); }
.sx-info__list { border-bottom: 1px solid #ECEAF0; }
.sx-info__item { border-top: 1px solid #ECEAF0; }
.sx-info__item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0;
  list-style: none;
  cursor: pointer;
  color: var(--sx-night);
  font: 900 18px/1.25 var(--sx-font);
}
.sx-info__item > summary::-webkit-details-marker { display: none; }
.sx-info__item > summary::marker { content: ""; }
.sx-info__item > summary .sx-ico { transition: transform .25s var(--sx-ease, ease); }
.sx-info__item[open] > summary .sx-ico { transform: rotate(180deg); }
.sx-info__body { padding: 0 0 24px; color: var(--sx-muted); font: 500 16px/1.65 var(--sx-font); }
@media (max-width: 899px) {
  body.sx .sx-info { grid-template-columns: minmax(0, 1fr); margin-top: 56px !important; }
  .sx-info__item > summary { font-size: 17px; padding: 18px 0; }
}

/* Texto con formato (descripciones, guía de tallas) */
body.sx .sx-prose > *:first-child { margin-top: 0; }
body.sx .sx-prose p { margin: 0 0 1em; }
body.sx .sx-prose ul,
body.sx .sx-prose ol { margin: 0 0 1em 1.25em !important; padding: 0 !important; list-style: disc !important; }
body.sx .sx-prose ol { list-style: decimal !important; }
body.sx .sx-prose li { margin: 0 0 .35em; }
body.sx .sx-prose a { color: var(--sx-violet); font-weight: 700; }
body.sx .sx-prose h2,
body.sx .sx-prose h3,
body.sx .sx-prose h4 { margin: 1.2em 0 .5em; color: var(--sx-night); font: 900 18px/1.3 var(--sx-font); text-transform: none; }
body.sx .sx-prose img { height: auto; border-radius: 14px; }
body.sx .sx-prose table { width: 100%; margin: 0 0 1em; border-collapse: collapse; border: 0; font-size: 14.5px; }
body.sx .sx-prose th,
body.sx .sx-prose td { padding: 10px 12px; border: 0; border-bottom: 1px solid #ECEAF0; text-align: left; }
body.sx .sx-prose th { color: var(--sx-night); font-weight: 900; }
body.sx .sx-prose tr:nth-child(even) td { background: var(--sx-soft-2); }
body.sx .sx-prose #reviews #comments h2 { font-size: 18px; }

/* Relacionados */
body.sx .related.products,
body.sx .upsells.products { margin: 88px 0 0 !important; }
body.sx .related.products > h2,
body.sx .upsells.products > h2,
body.sx .cs-fans__title {
  margin: 0 0 28px !important;
  color: var(--sx-night) !important;
  font-family: var(--sx-display) !important;
  font-weight: 900 !important;
  font-size: clamp(40px, 4.4vw, 56px) !important;
  line-height: .9 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
}
@media (max-width: 899px) {
  body.sx .related.products,
  body.sx .upsells.products { margin-top: 56px !important; }
}

/* Fans con esta camiseta */
body.sx .cs-fans { margin: 80px 0 0; padding: 0; border: 0; }
body.sx .cs-fans__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
body.sx .cs-fans__grid figure { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border: 0; border-radius: 20px; background: #2A1446; }
body.sx .cs-fans__grid figure img { width: 100%; height: 100%; object-fit: cover; }
body.sx .cs-fans__grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 12px; background: linear-gradient(0deg, rgba(18,7,32,.8), transparent); color: #fff; font: 800 13px/1.3 var(--sx-font); }

/* Barra de compra fija (celular) */
.sx-buybar { display: none; }
@media (max-width: 899px) {
  body.sx.single-product { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .sx-buybar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 995;
    display: block;
    transform: translateY(150%);
    transition: transform .35s var(--sx-ease, ease);
  }
  .sx-buybar.is-on { transform: none; }
  .sx-buybar__in {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 72px;
    padding: 8px 8px 8px 20px;
    border-radius: 36px;
    box-sizing: border-box;
  }
  .sx-buybar__price { display: flex; flex-direction: column; flex: none; max-width: 42%; }
  .sx-buybar__price span { color: var(--sx-muted); font: 700 12px/1.2 var(--sx-font); }
  .sx-buybar__price b { color: var(--sx-night); font: 900 19px/1.15 var(--sx-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.sx .sx-buybar__btn { flex: 1; height: 56px; padding: 0 18px; font-size: 15.5px; }
  body.single-product .gt_switcher_wrapper { bottom: calc(100px + env(safe-area-inset-bottom)) !important; }
}

/* Ventana (guía de tallas) */
.sx-dialog {
  position: fixed;
  inset: 0;
  z-index: 100100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18,7,32,.55);
  animation: sx-fade .2s ease;
}
.sx-dialog__box {
  display: flex;
  flex-direction: column;
  width: min(720px, 100%);
  max-height: min(85vh, 820px);
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 80px -20px rgba(18,7,32,.6);
  outline: 0;
}
.sx-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; }
.sx-dialog__title { font-size: 36px; color: var(--sx-night); }
.sx-dialog__body { overflow-y: auto; overscroll-behavior: contain; padding: 0 20px 24px; color: var(--sx-night); font: 500 15px/1.55 var(--sx-font); }

/* Restos del diseño anterior (por si alguna página quedó en caché) */
.cs-trust-strip,
.cs-sticky-atc,
.cs-bottom-nav,
.aviso-por-encargo { display: none !important; }
