/*
 * Chetto theme · catalog overrides (listing + producto)
 * --------------------------------------------------------------------
 * Replica 1:1 las dos pages del Next.js:
 *   - /colecciones/[slug]   →  Collection.tsx  + CollectionCard.tsx
 *   - /producto/[slug]      →  Product.tsx     + ProductMain.tsx
 *
 * Reglas:
 *   - Mobile-first.
 *   - Reutiliza tokens de chetto.custom.css (--chetto-color-*, --chetto-radius-*).
 *   - NO toca header/footer ni layout global; sólo .chetto-collection y
 *     .chetto-product (y la card .chetto-card).
 *   - Sobreescribe estilos Hummingbird usando especificidad por scoping
 *     (.chetto-* > .accordion-button, etc.) en vez de !important cuando
 *     es posible.
 */

/* ================================================================== */
/* COLLECTION (listing)                                                */
/* ================================================================== */

.chetto-collection {
  background-color: var(--chetto-color-white);
  font-family: var(--chetto-font-sans);
  color: var(--chetto-color-ink);
}

/* Reset márgenes nativos de <p>/<h*> que Hummingbird inyecta. Usamos :where()
   para tener especificidad 0 y NO machacar reglas específicas BEM. */
:where(.chetto-collection, .chetto-product) :where(p, h1, h2, h3, h4) { margin: 0; }

.chetto-collection__container {
  max-width: var(--chetto-container-max);
  margin: 0 auto;
  padding: 1.5rem 1rem 5rem;
}

@media (min-width: 768px) {
  .chetto-collection__container {
    padding: 3rem 1.5rem 5rem;
  }
}

/* ----- Breadcrumb ----- */
.chetto-collection__breadcrumb ol,
.chetto-product__breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: -0.0107em;
}

.chetto-collection__breadcrumb li,
.chetto-product__breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chetto-collection__breadcrumb a,
.chetto-product__breadcrumb a {
  color: #6b6b6b;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.0195em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.chetto-collection__breadcrumb a:hover,
.chetto-product__breadcrumb a:hover {
  color: var(--chetto-color-ink);
}

.chetto-collection__breadcrumb-sep,
.chetto-product__breadcrumb-sep {
  color: #6b6b6b;
}

.chetto-collection__breadcrumb-current,
.chetto-product__breadcrumb-current {
  color: var(--chetto-color-ink);
  font-size: 14px;
}

/* ----- Header (título + descripción) ----- */
.chetto-collection__header {
  margin-top: 1.5rem;
}

.chetto-collection__title {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.013em;
  color: var(--chetto-color-ink);
  margin: 0;
}

@media (min-width: 768px) {
  .chetto-collection__title {
    font-size: 36px;
  }
}

.chetto-collection__description {
  margin-top: 0.75rem;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.5;
  color: #6b6b6b;
  letter-spacing: -0.0195em;
}

/* ----- Toolbar ----- */
.chetto-collection__toolbar {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.chetto-collection__toolbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.chetto-collection__toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chetto-collection__count,
.chetto-collection__sort-label {
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
  color: #6b6b6b;
  letter-spacing: -0.0107em;
}

/* Pill button (filtro + sort) */
.chetto-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 38px;
  padding: 0 1.25rem;
  background-color: var(--chetto-color-white);
  border: 1px solid var(--chetto-color-border-subtle);
  border-radius: var(--chetto-radius-pill);
  color: var(--chetto-color-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.0107em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.chetto-pill:hover,
.chetto-pill:focus-visible {
  background-color: rgba(196, 181, 160, 0.1);
  color: var(--chetto-color-ink);
}

.chetto-pill:focus-visible {
  outline: 2px solid var(--chetto-color-ink);
  outline-offset: 2px;
}

.chetto-pill svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.chetto-pill--sort {
  padding-right: 1rem;
}

.chetto-pill--sort::after {
  display: none; /* matamos el caret de Bootstrap */
}

.chetto-pill--sort svg {
  width: 14px;
  height: 14px;
}

/* Dropdown menu (sort) */
.chetto-collection__sort .dropdown-menu {
  border: 1px solid var(--chetto-color-border-subtle);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(10, 10, 10, 0.08);
  padding: 0.5rem;
  margin-top: 0.5rem;
}

.chetto-collection__sort .dropdown-item {
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 14px;
  color: var(--chetto-color-ink);
}

.chetto-collection__sort .dropdown-item:hover,
.chetto-collection__sort .dropdown-item.current {
  background-color: rgba(196, 181, 160, 0.15);
}

/* ----- Active filters (módulo facetedsearch) ----- */
.chetto-collection__active-filters {
  margin-top: 1rem;
}

.chetto-collection__active-filters #js-active-search-filters ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.chetto-collection__active-filters .filter-block {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background-color: var(--chetto-color-surface-muted);
  border-radius: var(--chetto-radius-pill);
  font-size: 13px;
  color: var(--chetto-color-ink);
}

.chetto-collection__active-filters .filter-block .close {
  font-size: 16px;
  line-height: 1;
  color: #6b6b6b;
}

/* ----- Grid de productos ----- */
.chetto-collection__grid-wrap {
  margin-top: 2rem;
}

.chetto-collection__grid {
  display: grid;
  /* Mobile: 2 columnas (cliente) */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

@media (min-width: 1024px) {
  .chetto-collection__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }
}
/* Cliente: 4 columnas en desktop XL */
@media (min-width: 1280px) {
  .chetto-collection__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ============================================================================
   PRODUCTO · Bloques relacionados (ps_categoryproducts + ps_viewedproduct +
   ps_crossselling). Cliente: 3 cards por fila max + margin-bottom en títulos.
   ============================================================================ */
.module-products,
.ps-crossselling { margin-bottom: 64px; }

.module-products .section-title,
.ps-crossselling .section-title,
.featured-products .section-title {
  margin: 0 0 32px;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.0244em;
  color: var(--chetto-color-ink);
}
@media (min-width: 768px) {
  .module-products .section-title,
  .ps-crossselling .section-title,
  .featured-products .section-title { font-size: 28px; margin-bottom: 40px; }
}

/* CARRUSEL bloques relacionados (1/2/3 cards visibles + scroll-snap horizontal).
   Wrapper `.module-products__carousel` (override `components/module-products.tpl`)
   contiene flechas laterales + un `data-ch-prod-track` con el `.products`. */
.module-products__carousel { position: relative; }
.module-products__carousel [data-ch-prod-track] { display: block; }

/* Flechas circulares laterales del carrusel PDP — REPLICAN exactamente las
   de home (.ch-featured__arrow--side / .ch-favs__arrow--side) pero el CSS
   está duplicado aquí porque chetto.home.css NO se carga en producto. */
.module-products__carousel .ch-featured__arrow,
.module-products__carousel .ch-featured__arrow--side {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, .95);
  border: 1px solid var(--chetto-color-border-subtle, #e8e6e3);
  color: var(--chetto-color-ink, #2d2d2d);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  transition: background-color .2s ease, transform .2s ease;
}
@media (min-width: 768px) {
  .module-products__carousel .ch-featured__arrow,
  .module-products__carousel .ch-featured__arrow--side { display: inline-flex; }
}
.module-products__carousel .ch-featured__arrow:hover,
.module-products__carousel .ch-featured__arrow--side:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}
.module-products__carousel .ch-featured__arrow > span,
.module-products__carousel .ch-featured__arrow--side > span {
  display: block;
  transform: translateY(-2px);
}
.module-products__carousel .ch-featured__arrow--prev { left: 8px; }
.module-products__carousel .ch-featured__arrow--next { right: 8px; }

/* Dots indicadores: solo visibles en mobile (las flechas laterales reemplazan
   esto en desktop). Los popula JS dinámicamente según número de cards. */
.ch-prod-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding: 0;
}
@media (max-width: 767.98px) {
  .ch-prod-dots:not(:empty) { display: flex; }
}
.ch-prod-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: rgba(45, 45, 45, .25);
  cursor: pointer;
  transition: background-color .2s ease, width .2s ease;
}
.ch-prod-dot.is-active {
  background: var(--chetto-color-ink, #2d2d2d);
  width: 20px;
}

/* ============================================================================
   GRID LISTINGS · 3 cards max por fila + paginación oculta (sustituida por
   infinite scroll). Aplica a TODAS las pages listing (category, manufacturer,
   supplier, search, best-sales, new-products, prices-drop) — donde haya
   `.product-miniature.ch-card` dentro de `<div class="products">`.
   ============================================================================ */
body.page-category .products,
body.page-manufacturer .products,
body.page-supplier .products,
body.page-search .products,
body.page-best-sales .products,
body.page-new-products .products,
body.page-prices-drop .products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
@media (min-width: 640px) {
  body.page-category .products,
  body.page-manufacturer .products,
  body.page-supplier .products,
  body.page-search .products,
  body.page-best-sales .products,
  body.page-new-products .products,
  body.page-prices-drop .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}
@media (min-width: 1024px) {
  body.page-category .products,
  body.page-manufacturer .products,
  body.page-supplier .products,
  body.page-search .products,
  body.page-best-sales .products,
  body.page-new-products .products,
  body.page-prices-drop .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* PAGINACIÓN PS oculta en TODOS los listings (sustituida por infinite scroll) */
body.page-category .chetto-collection__pagination,
body.page-category .pagination__container,
body.page-category .pagination__nav,
body.page-category .pagination__number,
body.page-manufacturer .pagination__container,
body.page-manufacturer .pagination__number,
body.page-supplier .pagination__container,
body.page-supplier .pagination__number,
body.page-best-sales .pagination__container,
body.page-best-sales .pagination__number,
body.page-new-products .pagination__container,
body.page-new-products .pagination__number,
body.page-prices-drop .pagination__container,
body.page-prices-drop .pagination__number,
body.page-search .pagination__container,
body.page-search .pagination__number { display: none !important; }

/* Spinner que se muestra al final del grid mientras carga la página siguiente */
.chetto-infinite-spinner {
  display: none;
  justify-content: center;
  align-items: center;
  padding: 32px 0;
  margin-top: 16px;
}
.chetto-infinite-spinner.is-loading { display: flex; }
.chetto-infinite-spinner__dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: var(--chetto-color-brand, #c4b5a0);
  margin: 0 4px;
  animation: chettoInfPulse 1.2s ease-in-out infinite;
}
.chetto-infinite-spinner__dot:nth-child(2) { animation-delay: .15s; }
.chetto-infinite-spinner__dot:nth-child(3) { animation-delay: .3s; }
@keyframes chettoInfPulse {
  0%, 80%, 100% { opacity: .3; transform: scale(.8); }
  40%           { opacity: 1;  transform: scale(1.1); }
}

/* Centinela invisible justo antes del spinner que dispara el observer */
.chetto-infinite-sentinel { height: 1px; width: 100%; }

/* ============================================================================
   Load More + contador (cliente: "Has visto N de M productos" + botón VER MÁS)
   Reemplaza el infinite scroll automático por click manual.
   ============================================================================ */
.chetto-loadmore {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 48px 0 32px;
  padding: 32px 0;
}
.chetto-loadmore__counter {
  margin: 0;
  font-size: 14px;
  color: rgba(45, 45, 45, 0.65);
  letter-spacing: -0.0107em;
}
.chetto-loadmore__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  height: 56px;
  padding: 0 32px;
  background: #fff;
  border: 1px solid var(--chetto-color-ink, #2d2d2d);
  border-radius: 0;
  color: var(--chetto-color-ink, #2d2d2d);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.chetto-loadmore__btn:hover:not(:disabled) {
  background: var(--chetto-color-ink, #2d2d2d);
  color: #fff;
}
.chetto-loadmore__btn:disabled {
  opacity: 0.6;
  cursor: wait;
}
.chetto-loadmore__btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  margin-left: 12px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: chettoLoadMoreSpin 0.8s linear infinite;
}
.chetto-loadmore__btn.is-loading .chetto-loadmore__btn-spinner { display: inline-block; }
.chetto-loadmore__btn.is-loading .chetto-loadmore__btn-text { opacity: 0.7; }
@keyframes chettoLoadMoreSpin { to { transform: rotate(360deg); } }
.module-products .products,
.ps-crossselling .products,
.featured-products .products {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0 0 24px;
  padding: 0 0 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.module-products .products::-webkit-scrollbar,
.ps-crossselling .products::-webkit-scrollbar,
.featured-products .products::-webkit-scrollbar { display: none; }

.module-products .products > .product-miniature,
.ps-crossselling .products > .product-miniature,
.featured-products .products > .product-miniature {
  flex: 0 0 100%;
  max-width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
@media (min-width: 640px) {
  .module-products .products > .product-miniature,
  .ps-crossselling .products > .product-miniature,
  .featured-products .products > .product-miniature {
    flex-basis: calc((100% - 24px) / 2);
    max-width: calc((100% - 24px) / 2);
  }
  .module-products .products,
  .ps-crossselling .products,
  .featured-products .products { gap: 24px; }
}
@media (min-width: 1024px) {
  .module-products .products > .product-miniature,
  .ps-crossselling .products > .product-miniature,
  .featured-products .products > .product-miniature {
    flex-basis: calc((100% - 48px) / 3);
    max-width: calc((100% - 48px) / 3);
  }
}

.chetto-collection__grid-item {
  list-style: none;
}

/* ----- Empty state · card centrada estilo 404 ----- */
.chetto-collection__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 16px;
  min-height: 50vh;
}
.chetto-collection__empty-card {
  width: 100%;
  max-width: 520px;
  background: var(--chetto-color-surface-muted, #f7f6f4);
  border: 1px dashed var(--chetto-color-border-subtle, #e8e6e3);
  border-radius: 24px;
  padding: 56px 32px;
  text-align: center;
}
@media (min-width: 768px) {
  .chetto-collection__empty-card { padding: 72px 48px; }
}
.chetto-collection__empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 9999px;
  background: #fff;
  margin: 0 auto 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.chetto-collection__empty-icon svg { width: 48px; height: 48px; display: block; }
.chetto-collection__empty-title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--chetto-color-ink);
  letter-spacing: -0.0244em;
}
@media (min-width: 768px) {
  .chetto-collection__empty-title { font-size: 26px; }
}
.chetto-collection__empty-text {
  margin: 0 0 32px;
  font-size: 16px;
  line-height: 24px;
  color: #6b6b6b;
  letter-spacing: -0.0195em;
}
.chetto-collection__empty-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
@media (min-width: 480px) {
  .chetto-collection__empty-actions { flex-direction: row; justify-content: center; }
}
.chetto-collection__empty-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.0107em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.chetto-collection__empty-cta--primary {
  background: var(--chetto-color-ink);
  color: #fff;
  border: 2px solid var(--chetto-color-ink);
}
.chetto-collection__empty-cta--primary:hover { background: var(--chetto-color-brand); border-color: var(--chetto-color-brand); color: #fff; }
.chetto-collection__empty-cta--ghost {
  background: transparent;
  color: var(--chetto-color-ink);
  border: 2px solid var(--chetto-color-ink);
}
.chetto-collection__empty-cta--ghost:hover { background: var(--chetto-color-ink); color: #fff; }

/* ----- Pagination ----- */
.chetto-collection__pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

.chetto-collection__pagination .pagination {
  --bs-pagination-color: var(--chetto-color-ink);
  --bs-pagination-active-bg: var(--chetto-color-ink);
  --bs-pagination-active-border-color: var(--chetto-color-ink);
  --bs-pagination-border-color: var(--chetto-color-border-subtle);
  --bs-pagination-hover-bg: rgba(196, 181, 160, 0.1);
  --bs-pagination-hover-color: var(--chetto-color-ink);
  --bs-pagination-focus-color: var(--chetto-color-ink);
  --bs-pagination-focus-bg: rgba(196, 181, 160, 0.15);
  --bs-pagination-border-radius: var(--chetto-radius-pill);
  gap: 0.25rem;
}

.chetto-collection__pagination .page-link {
  border-radius: var(--chetto-radius-pill);
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ================================================================== */
/* CARD (product miniature)                                            */
/* ================================================================== */

.chetto-card {
  display: flex;
  flex-direction: column;
  background: transparent;
}

.chetto-card__media {
  position: relative;
  aspect-ratio: 302 / 403;
  overflow: hidden;
  border-radius: 1rem;
  background-color: var(--chetto-color-white);
  border: 1px solid var(--chetto-color-border-subtle);
}

.chetto-card__image-link {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 0;
}

.chetto-card__image-link picture,
.chetto-card__image-link img {
  width: 100%;
  height: 100%;
}

.chetto-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.5rem;
  transition: transform 0.5s ease;
}

.chetto-card:hover .chetto-card__image {
  transform: scale(1.05);
}

/* Product flags (badge "promo", "new"…) */
.chetto-card .product-flags,
.chetto-card .product-flag {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: var(--chetto-radius-pill);
  padding: 0.25rem 0.75rem;
  font-size: 12px;
  line-height: 1;
  color: var(--chetto-color-ink);
  list-style: none;
  margin: 0;
}

.chetto-card .product-flags {
  padding: 0;
  background: transparent;
}

.chetto-card .product-flags li {
  list-style: none;
}

/* CTA inferior deslizante */
.chetto-card__action {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 10;
  display: block;
  width: 100%;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  pointer-events: none;
}

.chetto-card:hover .chetto-card__action,
.chetto-card:focus-within .chetto-card__action {
  transform: translateY(0);
  pointer-events: auto;
}

/* Mobile (no hover): el CTA debe estar SIEMPRE visible. Replica el bloque
   `ch-featured__action` y `ch-card__action` de la home. */
@media (max-width: 768px) {
  .chetto-card__action {
    transform: translateY(0);
    pointer-events: auto;
  }
}

.chetto-card__form {
  margin: 0;
  display: block;
  width: 100%;
}

.chetto-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  background-color: var(--chetto-color-ink);
  color: var(--chetto-color-white);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.0107em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.chetto-card__btn:hover,
.chetto-card__btn:focus-visible {
  background-color: var(--chetto-color-brand);
  color: var(--chetto-color-white);
}

.chetto-card__btn[disabled] {
  opacity: 0.65;
  cursor: progress;
}

/* Corazón wishlist (esquina sup. derecha) */
.chetto-card__wish {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 11;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--chetto-color-ink);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(10, 10, 10, 0.1);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.chetto-card__wish:hover,
.chetto-card__wish:focus-visible {
  background-color: #fff;
  color: var(--chetto-color-brand);
  outline: none;
}

.chetto-card__wish:active {
  transform: scale(0.94);
}

.chetto-card__wish svg {
  width: 18px;
  height: 18px;
  display: block;
}

.chetto-card__wish.is-active {
  color: var(--chetto-color-brand);
}

.chetto-card__wish.is-active svg {
  fill: currentColor;
}

.chetto-card__wish[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Info debajo de la card */
.chetto-card__info {
  display: block;
  margin-top: 1rem;
  text-decoration: none;
  color: inherit;
}

.chetto-card__title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.0244em;
  color: var(--chetto-color-ink);
  margin: 0;
}

.chetto-card__info:hover .chetto-card__title {
  text-decoration: underline;
}

.chetto-card__price-row {
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.chetto-card__price {
  margin: 0;
  font-size: 16px;
  color: var(--chetto-color-ink);
  letter-spacing: -0.0195em;
}

.chetto-card__price-old {
  margin-left: 0.5rem;
  font-size: 14px;
  color: #6b6b6b;
  text-decoration: line-through;
}

.chetto-card__variant-info {
  margin: 0;
  font-size: 12px;
  color: #6b6b6b;
}

/* ================================================================== */
/* PRODUCT PAGE                                                        */
/* ================================================================== */

.chetto-product {
  background-color: var(--chetto-color-white);
  font-family: var(--chetto-font-sans);
  color: var(--chetto-color-ink);
}

.chetto-product__container {
  max-width: var(--chetto-container-max);
  margin: 0 auto;
  padding: 1.5rem 1rem 5rem;
}

@media (min-width: 768px) {
  .chetto-product__container {
    padding: 3rem 1.5rem 5rem;
  }
}

/* ----- Main grid ----- */
.chetto-product__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 1024px) {
  .chetto-product__main {
    grid-template-columns: minmax(0, 742fr) minmax(0, 500fr);
    gap: 4rem;
  }
}

/* ============= Gallery (left) — vanilla, sin Bootstrap carousel ===== */
.chetto-product__gallery {
  width: 100%;
}

.chetto-product__gallery-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Galería siempre column: main arriba, thumbs debajo (mobile + desktop) */

.chetto-product__main-img {
  position: relative;
  aspect-ratio: 742 / 928;
  background-color: var(--chetto-color-white);
  border-radius: 1rem;
  overflow: hidden;
  cursor: zoom-in;
  flex: 1 1 auto;
}

.chetto-product__main-img picture,
.chetto-product__main-img img {
  width: 100%;
  height: 100%;
  display: block;
}

.chetto-product__main-image {
  object-fit: contain;
  transition: transform 0.4s ease;
}

.chetto-product__main-img:hover .chetto-product__main-image {
  transform: scale(1.03);
}

.chetto-product__zoom {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--chetto-color-border-subtle);
  border-radius: 9999px;
  color: var(--chetto-color-ink);
  z-index: 5;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.chetto-product__zoom:hover {
  background-color: var(--chetto-color-white);
  border-color: var(--chetto-color-ink);
}

.chetto-product__zoom svg {
  width: 18px;
  height: 18px;
}

/* Thumbnails: SIEMPRE horizontal debajo de la main image */
.chetto-product__thumbs {
  flex-shrink: 0;
  width: 100%;
}

.chetto-product__thumbs-list {
  display: flex;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0 0 4px;
  overflow-x: auto;
  scrollbar-width: none;
  justify-content: flex-start;
}

@media (min-width: 1024px) {
  .chetto-product__thumbs-list {
    justify-content: center;
  }
}

.chetto-product__thumbs-list::-webkit-scrollbar {
  display: none;
}

.chetto-product__thumbs-list li {
  flex-shrink: 0;
}

.chetto-product__thumb {
  position: relative;
  width: 80px;
  height: 80px;
  padding: 0;
  border-radius: 10px;
  border: 2px solid var(--chetto-color-border-subtle);
  background-color: var(--chetto-color-white);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: block;
}

.chetto-product__thumb:hover {
  opacity: 1;
  border-color: rgba(10, 10, 10, 0.2);
}

.chetto-product__thumb.is-active {
  opacity: 1;
  border-color: var(--chetto-color-brand);
  box-shadow: 0 0 0 2px var(--chetto-color-brand-soft, rgba(196, 181, 160, 0.25));
}

.chetto-product__thumb-img,
.chetto-product__thumb picture {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  display: block;
}

.chetto-product__no-image {
  position: relative;
  aspect-ratio: 742 / 928;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--chetto-color-surface-muted);
  border-radius: 1rem;
}

.chetto-product__no-image img {
  max-width: 60%;
  height: auto;
  opacity: 0.5;
}

/* ============= Info (right, sticky en desktop) ============= */
.chetto-product__info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .chetto-product__info {
    position: sticky;
    top: 2rem;
    align-self: flex-start;
  }
}

.chetto-product__title {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.013em;
  color: var(--chetto-color-ink);
  margin: 0;
}

@media (min-width: 768px) {
  .chetto-product__title {
    font-size: 30px;
  }
}

.chetto-product__manufacturer {
  font-size: 14px;
  color: #6b6b6b;
  margin-top: -0.5rem;
}

.chetto-product__manufacturer a {
  color: inherit;
  text-decoration: none;
}

.chetto-product__manufacturer a:hover {
  color: var(--chetto-color-ink);
}

/* Price block */
.chetto-product__price-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: -0.5rem;
}

.chetto-product .product__prices,
.chetto-product .product__prices-block {
  margin: 0;
}

.chetto-product .product__prices-inline {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.chetto-product .product__price,
.chetto-product__price-wrap .current-price,
.chetto-product__price-wrap .product-price {
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: 0.003em;
  color: var(--chetto-color-ink);
  font-weight: 500;
}

.chetto-product .product__regular-price,
.chetto-product__price-wrap .regular-price {
  font-size: 16px;
  color: #6b6b6b;
  text-decoration: line-through;
}

.chetto-product .product__discount-percentage,
.chetto-product .product__discount-amount {
  font-size: 13px;
  color: var(--chetto-color-brand);
}

/* Short description */
.chetto-product__short-desc {
  font-size: 15px;
  line-height: 1.5;
  color: #6b6b6b;
  letter-spacing: -0.0107em;
}

/* Form & variants */
.chetto-product__form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 0;
}

.chetto-product__variants .chetto-variants,
.chetto-product__variants .product__variants {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.chetto-variants__group {
  border: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.chetto-variants__label {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  margin-bottom: 0.625rem;
}

.chetto-variants__legend {
  font-size: 14px;
  color: var(--chetto-color-ink);
  font-weight: 500;
  margin: 0;
  padding: 0;
  letter-spacing: -0.0107em;
}

.chetto-variants__legend::after {
  content: ":";
  margin-left: 1px;
}

.chetto-variants__selected {
  font-size: 14px;
  color: #6b6b6b;
  letter-spacing: -0.0107em;
}

/* ----- COLOR SWATCHES (56×56) ----- */
.chetto-variants__colors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chetto-variants__color {
  position: relative;
  margin: 0;
  padding: 0;
}

.chetto-variants__color-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}

.chetto-variants__swatch {
  display: inline-block;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  border: 2px solid var(--chetto-color-border-subtle);
  background-size: cover;
  background-position: center;
  background-color: var(--chetto-color-white);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
  margin: 0;
  padding: 0;
  position: relative;
}

.chetto-variants__swatch::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 6px;
  background-color: inherit;
  background-image: inherit;
  background-size: cover;
  background-position: center;
}

.chetto-variants__color-input:hover + .chetto-variants__swatch {
  border-color: rgba(10, 10, 10, 0.4);
}

.chetto-variants__color-input:checked + .chetto-variants__swatch,
.chetto-variants__swatch.is-active {
  border-color: var(--chetto-color-ink);
}

.chetto-variants__color-input:focus-visible + .chetto-variants__swatch {
  outline: 2px solid var(--chetto-color-ink);
  outline-offset: 2px;
}

/* ----- SIZE PILLS (radio grid) ----- */
.chetto-variants__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chetto-variants__pill-wrap {
  position: relative;
}

.chetto-variants__pill-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}

.chetto-variants__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  min-width: 60px;
  padding: 0 0.875rem;
  border-radius: 10px;
  border: 2px solid var(--chetto-color-border-subtle);
  background-color: var(--chetto-color-white);
  color: var(--chetto-color-ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.0107em;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  margin: 0;
}

.chetto-variants__pill-input:hover + .chetto-variants__pill {
  border-color: rgba(10, 10, 10, 0.4);
}

.chetto-variants__pill-input:checked + .chetto-variants__pill,
.chetto-variants__pill.is-active {
  border-color: var(--chetto-color-ink);
  background-color: var(--chetto-color-ink);
  color: var(--chetto-color-white);
}

.chetto-variants__pill-input:focus-visible + .chetto-variants__pill {
  outline: 2px solid var(--chetto-color-ink);
  outline-offset: 2px;
}

.chetto-variants__pill-input:disabled + .chetto-variants__pill,
.chetto-variants__pill.is-disabled {
  background-color: #f3f3f3;
  border-color: #e5e5e5;
  color: #b0b0b0;
  cursor: not-allowed;
}
.chetto-variants__pill-input:disabled:hover + .chetto-variants__pill,
.chetto-variants__pill.is-disabled:hover {
  border-color: #e5e5e5;
}

/* Backwards-compat: si PS recarga el partial nativo (sin nuestras clases) */
.chetto-product__variants .product-variant__colors .input-color__input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.chetto-product__variants .product-variant__colors .input-color__label {
  display: inline-block;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  border: 2px solid var(--chetto-color-border-subtle);
  cursor: pointer;
  background-size: cover;
  background-position: center;
  transition: border-color 0.2s ease;
}

.chetto-product__variants .product-variant__colors input:checked + .input-color__label,
.chetto-product__variants .product-variant__colors .input-color__label--active {
  border-color: var(--chetto-color-ink);
}

/* ============= Add to cart (chetto-cta) ============= */
.chetto-product__add-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chetto-cta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
}

.chetto-cta__row {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
}

.chetto-cta__qty {
  flex-shrink: 0;
  width: 100px;
  height: 52px;
  border-radius: 10px;
  border: 2px solid var(--chetto-color-border-subtle);
  background-color: var(--chetto-color-white);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.chetto-cta__qty .quantity-button__decrement,
.chetto-cta__qty .quantity-button__increment,
.chetto-cta__qty .btn,
.chetto-cta__qty button {
  background: transparent;
  border: none;
  color: var(--chetto-color-ink);
  width: 28px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
}

.chetto-cta__qty .form-control,
.chetto-cta__qty input[type="number"],
.chetto-cta__qty-input {
  flex: 1;
  width: 100%;
  text-align: center;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--chetto-color-ink);
  height: 100%;
  -moz-appearance: textfield;
  appearance: textfield;
}

.chetto-cta__qty input::-webkit-outer-spin-button,
.chetto-cta__qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.chetto-cta__btn-wrap {
  flex: 1;
  display: flex;
}

.chetto-cta__btn {
  flex: 1;
  height: 52px;
  background-color: var(--chetto-color-ink);
  border: none;
  border-radius: 9999px;
  color: var(--chetto-color-white);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.0143em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  padding: 0 1.5rem;
}

.chetto-cta__btn:hover:not(:disabled) {
  background-color: var(--chetto-color-brand);
  color: var(--chetto-color-white);
}

.chetto-cta__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chetto-cta__btn:focus-visible {
  outline: 2px solid var(--chetto-color-ink);
  outline-offset: 2px;
}

.chetto-cta__btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.chetto-cta__btn-label {
  white-space: nowrap;
}

/* Availability box */
.chetto-cta__availability {
  margin: 0;
}

.chetto-cta__availability-status {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 13px;
  color: #6b6b6b;
  letter-spacing: -0.0107em;
}

.chetto-cta__availability-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 7px;
}

.chetto-cta__availability-msg {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.chetto-cta__availability-sub {
  font-size: 12px;
  color: #6b6b6b;
}

.chetto-cta__delivery {
  margin-top: 0.5rem;
  font-size: 13px;
  color: #6b6b6b;
}

.chetto-cta__min {
  font-size: 12px;
  color: #6b6b6b;
  margin: 0;
}

.chetto-cta__hooks {
  display: contents;
}

/* Trust box (displayReassurance) */
.chetto-product__trust {
  background-color: var(--chetto-color-surface-muted);
  border-radius: 10px;
  padding: 1rem;
}

.chetto-product__trust:empty {
  display: none;
}

.chetto-product__trust > * + * {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--chetto-color-border-subtle);
}

.chetto-product__trust .block-reassurance,
.chetto-product__trust ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.chetto-product__trust li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 13px;
  color: #6b6b6b;
}

.chetto-product__trust li img,
.chetto-product__trust li svg,
.chetto-product__trust li .material-icons {
  width: 20px;
  height: 20px;
  color: var(--chetto-color-ink);
  flex-shrink: 0;
}

/* ============================================================================
   PDP · Reassurance (Pago Seguro / Envío Gratis / Devoluciones)
   Iconos SVG más grandes (32px) y bien centrados verticalmente con el texto.
   ============================================================================ */
.blockreassurance--product,
.blockreassurance--cart,
.blockreassurance--checkout,
.blockreassurance--order {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
  align-items: stretch;
}
/* DESKTOP: el track es transparente al layout — sus hijos (reassurance)
   se apilan vertical (column) como hijos directos de .blockreassurance. */
.blockreassurance--product .blockreassurance__track,
.blockreassurance--cart .blockreassurance__track,
.blockreassurance--checkout .blockreassurance__track,
.blockreassurance--order .blockreassurance__track {
  display: contents;
}
.blockreassurance--product .reassurance,
.blockreassurance--cart .reassurance,
.blockreassurance--checkout .reassurance,
.blockreassurance--order .reassurance {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  background: var(--chetto-color-surface-muted, #f7f6f4);
  border-radius: 12px;
}
.blockreassurance--product .reassurance__image,
.blockreassurance--cart .reassurance__image,
.blockreassurance--checkout .reassurance__image,
.blockreassurance--order .reassurance__image {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 9999px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.blockreassurance--product .reassurance__image svg,
.blockreassurance--cart .reassurance__image svg,
.blockreassurance--checkout .reassurance__image svg,
.blockreassurance--order .reassurance__image svg {
  width: 28px !important;
  height: 28px !important;
  display: block;
  color: var(--chetto-color-brand, #c4b5a0);
}
.blockreassurance--product .reassurance__image img.svg,
.blockreassurance--cart .reassurance__image img.svg,
.blockreassurance--checkout .reassurance__image img.svg,
.blockreassurance--order .reassurance__image img.svg {
  width: 28px;
  height: 28px;
  display: block;
}
.blockreassurance--product .reassurance__content,
.blockreassurance--cart .reassurance__content,
.blockreassurance--checkout .reassurance__content,
.blockreassurance--order .reassurance__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.3;
}
.blockreassurance--product .reassurance__content br,
.blockreassurance--cart .reassurance__content br,
.blockreassurance--checkout .reassurance__content br,
.blockreassurance--order .reassurance__content br { display: none; }
.blockreassurance--product .reassurance__title,
.blockreassurance--cart .reassurance__title,
.blockreassurance--checkout .reassurance__title,
.blockreassurance--order .reassurance__title {
  font-size: 14px;
  font-weight: 500;
  color: var(--chetto-color-ink, #2d2d2d);
  letter-spacing: -0.0107em;
}
.blockreassurance--product .reassurance__desc,
.blockreassurance--cart .reassurance__desc,
.blockreassurance--checkout .reassurance__desc,
.blockreassurance--order .reassurance__desc {
  font-size: 12px;
  color: #6b6b6b;
  letter-spacing: -0.0107em;
}
@media (max-width: 767.98px) {
  /* MOBILE: ahora el track sí es el flex container (la regla genérica
     `[data-ch-carousel] [data-ch-carousel-track]` aplica display:flex con
     scroll-snap). Anulamos el display:contents desktop. */
  .blockreassurance--product .blockreassurance__track,
  .blockreassurance--cart .blockreassurance__track,
  .blockreassurance--checkout .blockreassurance__track,
  .blockreassurance--order .blockreassurance__track {
    display: flex;
  }
  .blockreassurance--product .reassurance,
  .blockreassurance--cart .reassurance,
  .blockreassurance--checkout .reassurance,
  .blockreassurance--order .reassurance { flex-basis: 100%; min-width: 0; }
  /* Padding interno a los lados para que el peek de la siguiente card
     se vea y los dots no peguen contra el borde. */
  .blockreassurance--product[data-ch-carousel] .blockreassurance__track[data-ch-carousel-track],
  .blockreassurance--cart[data-ch-carousel] .blockreassurance__track[data-ch-carousel-track],
  .blockreassurance--checkout[data-ch-carousel] .blockreassurance__track[data-ch-carousel-track],
  .blockreassurance--order[data-ch-carousel] .blockreassurance__track[data-ch-carousel-track] {
    padding: 4px 16px !important;
  }
  .blockreassurance--product[data-ch-carousel] .blockreassurance__track[data-ch-carousel-track] > *,
  .blockreassurance--cart[data-ch-carousel] .blockreassurance__track[data-ch-carousel-track] > *,
  .blockreassurance--checkout[data-ch-carousel] .blockreassurance__track[data-ch-carousel-track] > *,
  .blockreassurance--order[data-ch-carousel] .blockreassurance__track[data-ch-carousel-track] > * {
    flex: 0 0 calc(100% - 32px) !important;
    width: calc(100% - 32px) !important;
    max-width: calc(100% - 32px) !important;
  }
}

/* ============================================================================
   PDP · Ficha técnica · tabla full-width DEBAJO del main grid (galería+info).
   Cliente: aparece después de la cabecera, no en accordion lateral.
   ============================================================================ */
.chetto-product__features {
  margin: 48px 0;
  padding: 0;
}
.chetto-product__features-head { margin: 0 0 16px; }
.chetto-product__features-title {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  color: var(--chetto-color-ink, #2d2d2d);
  letter-spacing: -0.0244em;
}
@media (min-width: 768px) {
  .chetto-product__features-title { font-size: 26px; }
}
.chetto-product__features-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--chetto-color-border-subtle, #e8e6e3);
  border-radius: 14px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
.chetto-product__features-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: var(--chetto-color-ink, #2d2d2d);
}
.chetto-product__features-table th,
.chetto-product__features-table td {
  text-align: left;
  padding: 14px 18px;
  border-right: 1px solid var(--chetto-color-border-subtle, #e8e6e3);
  white-space: nowrap;
}
.chetto-product__features-table th:last-child,
.chetto-product__features-table td:last-child { border-right: 0; }
.chetto-product__features-table thead th {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b6b6b;
  background: var(--chetto-color-surface-muted, #f7f6f4);
  border-bottom: 1px solid var(--chetto-color-border-subtle, #e8e6e3);
}
.chetto-product__features-table tbody td {
  font-size: 14px;
  color: var(--chetto-color-ink, #2d2d2d);
  font-weight: 400;
}

/* ----- Mobile: lista de <details> en vez de tabla ----- */
.chetto-product__features-mobile { display: none; }
@media (max-width: 767.98px) {
  .chetto-product__features-desktop { display: none; }
  .chetto-product__features-mobile {
    display: block;
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--chetto-color-border-subtle, #e8e6e3);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
  }
}
.chetto-product__features-acc-item + .chetto-product__features-acc-item {
  border-top: 1px solid var(--chetto-color-border-subtle, #e8e6e3);
}
.chetto-product__features-acc-item details > summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--chetto-color-ink, #2d2d2d);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.chetto-product__features-acc-item details > summary::-webkit-details-marker { display: none; }
.chetto-product__features-acc-item details > summary::marker { content: ''; }
.chetto-product__features-acc-label {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
/* Icono +/− con CSS puro: dos pseudoelementos cruzados */
.chetto-product__features-acc-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-block;
}
.chetto-product__features-acc-icon::before,
.chetto-product__features-acc-icon::after {
  content: '';
  position: absolute;
  background: var(--chetto-color-ink, #2d2d2d);
  transition: transform 0.2s ease;
}
.chetto-product__features-acc-icon::before {
  /* horizontal */
  left: 1px;
  right: 1px;
  top: 50%;
  height: 2px;
  margin-top: -1px;
}
.chetto-product__features-acc-icon::after {
  /* vertical */
  top: 1px;
  bottom: 1px;
  left: 50%;
  width: 2px;
  margin-left: -1px;
}
.chetto-product__features-acc-item details[open] > summary .chetto-product__features-acc-icon::after {
  transform: scaleY(0);
}
.chetto-product__features-acc-body {
  padding: 0 18px 16px;
  font-size: 14px;
  color: #6b6b6b;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* ============================================================================
   PDP · "Compartir" (ps_sharebuttons) → OCULTO (cliente no lo quiere).
   PDP · Botón original "Escriba su propia reseña" (productcomments hook
   displayProductAdditionalInfo) → OCULTO. Lo movemos a sección propia abajo.
   ============================================================================ */
.ps-sharebuttons,
#product-additional-info-review-button,
.product-comments-additional-info { display: none !important; }

/* PDP · Sección "Reseñas de clientes" (CTA beige debajo de Ficha técnica) */
.chetto-product__reviews-cta {
  margin: 48px 0;
  padding: 40px 32px;
  background: var(--chetto-color-brand, #c4b5a0);
  border-radius: 16px;
  text-align: center;
  color: #fff;
}
@media (min-width: 768px) {
  .chetto-product__reviews-cta { padding: 56px 48px; }
}
.chetto-product__reviews-cta-title {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.0244em;
  color: #fff;
}
@media (min-width: 768px) {
  .chetto-product__reviews-cta-title { font-size: 26px; }
}
.chetto-product__reviews-cta-text {
  margin: 12px auto 24px;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .92);
  letter-spacing: -0.0107em;
}
.chetto-product__reviews-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  background: #fff;
  color: var(--chetto-color-ink, #2d2d2d);
  border: 0;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.0107em;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.chetto-product__reviews-cta-btn:hover {
  background: var(--chetto-color-ink, #2d2d2d);
  color: #fff;
}

/* ============= Accordion (vanilla, sin Bootstrap) ============= */
.chetto-product__accordion {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 0;
  border-top: 1px solid var(--chetto-color-border-subtle);
}

.chetto-product__accordion-item {
  border-bottom: 1px solid var(--chetto-color-border-subtle);
  background-color: transparent;
}

.chetto-product__accordion-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 0;
  background-color: transparent;
  border: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.0195em;
  color: var(--chetto-color-ink);
  text-align: left;
  cursor: pointer;
}

.chetto-product__accordion-btn:focus-visible {
  outline: 2px solid var(--chetto-color-ink);
  outline-offset: 2px;
}

.chetto-product__accordion-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.chetto-product__accordion-icon {
  display: inline-flex;
  align-items: center;
  width: 16px;
  height: 16px;
}

.chetto-product__accordion-icon svg {
  width: 100%;
  height: 100%;
}

.chetto-product__accordion-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--chetto-color-ink);
  transition: transform 0.25s ease;
}

.chetto-product__accordion-item.is-open .chetto-product__accordion-chevron {
  transform: rotate(180deg);
}

.chetto-product__accordion-body {
  padding: 0 0 1rem;
  font-size: 14px;
  line-height: 1.625;
  color: #6b6b6b;
  letter-spacing: -0.0107em;
}

.chetto-product__accordion-body p { margin-bottom: 0.5rem; }
.chetto-product__accordion-body p:last-child { margin-bottom: 0; }
.chetto-product__accordion-body ul,
.chetto-product__accordion-body ol { padding-left: 1.25rem; }
.chetto-product__accordion-body strong { font-weight: 500; color: var(--chetto-color-ink); }
.chetto-product__accordion-body a { text-decoration: underline; }

.chetto-product__accordion-body .product__data-sheet,
.chetto-product__accordion-body .data-sheet {
  width: 100%;
  border-collapse: collapse;
}

.chetto-product__accordion-body .data-sheet dt,
.chetto-product__accordion-body .data-sheet dd,
.chetto-product__accordion-body .product__data-sheet > div {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--chetto-color-border-subtle);
}

.chetto-product__accordion-body .data-sheet dt {
  font-weight: 500;
  color: var(--chetto-color-ink);
  width: 40%;
}

/* ----- Detalles (key/value) dentro del accordion ----- */
.chetto-details {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.chetto-details__item {
  display: grid;
  grid-template-columns: minmax(120px, 35%) 1fr;
  gap: 1rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--chetto-color-border-subtle);
  font-size: 14px;
  align-items: center;
}

.chetto-details__item:last-child {
  border-bottom: none;
}

.chetto-details__left .details__title {
  font-weight: 500;
  color: var(--chetto-color-ink);
  letter-spacing: -0.0107em;
}

.chetto-details__right {
  color: #6b6b6b;
  word-break: break-word;
}

.chetto-details__right a {
  color: inherit;
  text-decoration: underline;
}

.chetto-details__right .details__manufacturer-logo {
  max-width: 80px;
  height: auto;
}

/* ----- Prices (clean) ----- */
.chetto-prices {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin: 0;
}

.chetto-prices__line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.chetto-prices__current {
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: 0.003em;
  color: var(--chetto-color-ink);
  font-weight: 500;
}

.chetto-prices__old {
  font-size: 16px;
  color: #6b6b6b;
  text-decoration: line-through;
}

.chetto-prices__save {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--chetto-color-brand);
  background-color: rgba(196, 181, 160, 0.15);
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  letter-spacing: 0.01em;
}

.chetto-prices__unit,
.chetto-prices__pack,
.chetto-prices__taxless {
  font-size: 13px;
  color: #6b6b6b;
}

.chetto-prices__tax {
  font-size: 12px;
  color: #6b6b6b;
  letter-spacing: -0.0107em;
}

/* Attachments inside accordion */
.chetto-product__accordion-body .attachment {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--chetto-color-border-subtle);
}

.chetto-product__accordion-body .attachment:last-child { border-bottom: none; }

.chetto-product__accordion-body .attachment__name {
  font-weight: 500;
  color: var(--chetto-color-ink);
  margin-bottom: 0.25rem;
}

.chetto-product__accordion-body .attachment__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--chetto-color-ink);
  text-decoration: underline;
  font-size: 13px;
}

/* ============= Sticky add-to-cart en mobile ============= */
@media (max-width: 1023.98px) {
  .chetto-product__info .chetto-product__add-wrap {
    /* En mobile no hacemos sticky a propósito: el form ya está cerca del CTA
       y un sticky permanente bloquea visualmente el scroll del producto. */
  }
}

/* ============= Related / Accessories ============= */
.chetto-product__related {
  margin-top: 4rem;
}

.chetto-product__related-head {
  margin-bottom: 1.5rem;
}

.chetto-product__related-title {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.013em;
  color: var(--chetto-color-ink);
  margin: 0;
}

@media (min-width: 768px) {
  .chetto-product__related-title { font-size: 30px; }
}

/* ================================================================== */
/* OFFCANVAS DE FILTROS (ps_facetedsearch) — restyle Chetto            */
/* ================================================================== */

#offcanvas-faceted.offcanvas {
  --bs-offcanvas-bg: var(--chetto-color-white);
  --bs-offcanvas-border-color: var(--chetto-color-border-subtle);
  --bs-offcanvas-width: 400px;
  font-family: var(--chetto-font-sans);
}

#offcanvas-faceted .offcanvas-header {
  border-bottom: 1px solid var(--chetto-color-border-subtle);
  padding: 1.25rem 1.5rem;
}

#offcanvas-faceted .offcanvas-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--chetto-color-ink);
}

#offcanvas-faceted .offcanvas-body {
  padding: 1.5rem;
}

#offcanvas-faceted .facet {
  margin-bottom: 2rem;
}

#offcanvas-faceted .facet__title,
#offcanvas-faceted .facet h2,
#offcanvas-faceted .facet-title {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(10, 10, 10, 0.7);
  margin: 0 0 0.75rem;
}

#offcanvas-faceted .facet ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

#offcanvas-faceted .facet a,
#offcanvas-faceted .facet label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 14px;
  color: var(--chetto-color-ink);
  text-decoration: none;
  cursor: pointer;
}

#offcanvas-faceted .facet a:hover,
#offcanvas-faceted .facet label:hover {
  background-color: rgba(196, 181, 160, 0.15);
}

#offcanvas-faceted .magnitude {
  font-size: 12px;
  color: rgba(10, 10, 10, 0.5);
}

#offcanvas-faceted .ui-slider-handle,
#offcanvas-faceted .ui-slider-range {
  background-color: var(--chetto-color-brand) !important;
  border-color: var(--chetto-color-brand) !important;
}

/* Wrapper Chetto del drawer (BEM consistente) */
.chetto-drawer-filters { background: #fff; }
.chetto-drawer-filters__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--chetto-color-border-subtle);
}
.chetto-drawer-filters__title {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--chetto-color-ink);
  letter-spacing: -0.0244em;
}
.chetto-drawer-filters__close {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 9999px;
  color: var(--chetto-color-ink);
  cursor: pointer;
  transition: background-color .2s ease;
}
.chetto-drawer-filters__close:hover { background: rgba(10,10,10,.06); }
.chetto-drawer-filters__close svg { display: block; }
.chetto-drawer-filters__body { padding: 24px; }

/* Reset radio/checkbox PS para que se vean tipo Chetto */
#offcanvas-faceted .custom-checkbox input,
#offcanvas-faceted .custom-radio input {
  width: 18px;
  height: 18px;
  accent-color: var(--chetto-color-brand);
  margin-right: 10px;
}
#offcanvas-faceted .facet-label .custom-checkbox,
#offcanvas-faceted .facet-label {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
}

/* ============================================================================
   .chetto-cf · Filtros chetto (réplica pixel-perfect FiltersDrawer.tsx Next.js)
   Vive dentro de #offcanvas-faceted (drawer derecho 400px). HTML lo genera el
   override `themes/chetto/modules/ps_facetedsearch/views/templates/front/catalog/facets.tpl`
   ============================================================================ */
.chetto-cf {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  /* La drawer body tiene padding 0 (override más abajo), así que la columna
     gestiona sus propios paddings internos. */
}
.chetto-cf__list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px;
}
/* Sección como <details> acordeón nativo */
.chetto-cf__section {
  padding: 0;
  border-bottom: 1px solid var(--chetto-color-border-subtle, #e8e6e3);
}
.chetto-cf__section[open] {
  padding-bottom: 16px;
}
.chetto-cf__heading {
  margin: 0;
  padding: 18px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(45, 45, 45, .85);
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.chetto-cf__heading::-webkit-details-marker { display: none; }
.chetto-cf__heading::marker { content: ''; }
.chetto-cf__heading-icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.chetto-cf__heading-icon::before,
.chetto-cf__heading-icon::after {
  content: '';
  position: absolute;
  background: rgba(45, 45, 45, .65);
  transition: transform .2s ease;
}
.chetto-cf__heading-icon::before {
  /* horizontal */
  left: 0; right: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
}
.chetto-cf__heading-icon::after {
  /* vertical */
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
}
.chetto-cf__section[open] .chetto-cf__heading-icon::after {
  transform: scaleY(0);
}

/* Subcategorías (lista vertical con count) — solo en categoría padre */
.chetto-cf__sub-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.chetto-cf__sub-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--chetto-color-ink);
  text-decoration: none;
  transition: background-color .15s ease;
}
.chetto-cf__sub-link:hover {
  background: rgba(196, 181, 160, .15);
  color: var(--chetto-color-ink);
}
.chetto-cf__sub-count {
  font-size: 12px;
  color: rgba(45, 45, 45, .5);
}

/* Pills (talla) */
.chetto-cf__pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chetto-cf__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 48px;
  padding: 0 10px;
  border: 2px solid var(--chetto-color-border-subtle);
  border-radius: 10px;
  background: #fff;
  color: var(--chetto-color-ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.chetto-cf__pill:hover { border-color: var(--chetto-color-brand); }
.chetto-cf__pill.is-active {
  border-color: var(--chetto-color-ink);
  background: var(--chetto-color-ink);
  color: #fff;
}

/* Swatches (color) */
.chetto-cf__swatches {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.chetto-cf__swatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: transparent;
  border: 2px solid transparent;
  padding: 2px;
  transition: border-color .15s ease;
}
.chetto-cf__swatch:hover { border-color: var(--chetto-color-brand); }
.chetto-cf__swatch.is-active { border-color: var(--chetto-color-ink); }
.chetto-cf__swatch-color {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(0,0,0,.08);
}

/* Lista de checkbox/radio (marca, etc.) */
.chetto-cf__list-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.chetto-cf__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color .15s ease;
}
.chetto-cf__row:hover { background: rgba(196, 181, 160, .15); }
.chetto-cf__row.is-active { background: rgba(196, 181, 160, .2); }
.chetto-cf__checkbox {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--chetto-color-ink);
  cursor: pointer;
}
.chetto-cf__row-label {
  flex: 1;
  font-size: 14px;
  color: var(--chetto-color-ink);
}
.chetto-cf__row-label a {
  color: inherit;
  text-decoration: none;
}
.chetto-cf__row-count {
  font-size: 12px;
  color: rgba(45, 45, 45, .5);
}

/* Slider (precio) */
.chetto-cf__slider {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 0 0;
}
.chetto-cf__slider-track {
  width: 100%;
  margin: 8px 0;
}
.chetto-cf__slider-values {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--chetto-color-ink);
  font-weight: 500;
}
.chetto-cf__slider-bounds {
  margin: 0;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(45, 45, 45, .6);
}
/* Override jQuery UI slider con colores Chetto (legacy, compat) */
.chetto-cf .ui-slider {
  position: relative;
  height: 4px;
  background: var(--chetto-color-border-subtle);
  border: 0 !important;
  border-radius: 9999px;
}
.chetto-cf .ui-slider .ui-slider-range {
  background: var(--chetto-color-brand) !important;
  border: 0 !important;
  height: 4px;
  border-radius: 9999px;
  position: absolute;
  top: 0;
}
.chetto-cf .ui-slider .ui-slider-handle {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  background: #fff !important;
  border: 2px solid var(--chetto-color-ink) !important;
  border-radius: 9999px;
  margin-left: -9px;
  transform: translateY(-50%);
  cursor: grab;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.chetto-cf .ui-slider .ui-slider-handle:active { cursor: grabbing; }

/* noUiSlider override (PS9 default slider engine) — colores Chetto */
.chetto-cf .noUi-target {
  background: var(--chetto-color-border-subtle);
  border: 0;
  border-radius: 9999px;
  box-shadow: none;
  height: 4px;
}
.chetto-cf .noUi-connects { border-radius: 9999px; overflow: hidden; }
.chetto-cf .noUi-connect { background: var(--chetto-color-brand); }
.chetto-cf .noUi-handle {
  width: 18px !important;
  height: 18px !important;
  top: -7px !important;
  right: -9px !important;
  background: #fff !important;
  border: 2px solid var(--chetto-color-ink) !important;
  border-radius: 9999px;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
  cursor: grab;
}
/* El handle del slider se sale 9px por la izquierda y derecha del track:
   reservamos esa anchura con padding interno y permitimos al track ocupar
   el ancho restante para que no provoque scroll horizontal. */
.chetto-cf__slider { padding: 4px 9px 0; }
.chetto-cf__slider .chetto-cf__price-inputs,
.chetto-cf__slider .chetto-cf__slider-bounds,
.chetto-cf__slider .chetto-cf__slider-values {
  margin-left: -9px;
  margin-right: -9px;
}
.chetto-cf .noUi-handle::before,
.chetto-cf .noUi-handle::after { display: none; }
.chetto-cf .noUi-handle:active { cursor: grabbing; }
.chetto-cf .noUi-touch-area { width: 100%; height: 100%; }

/* Inputs Desde / Hasta del precio (réplica Next.js) */
.chetto-cf__price-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.chetto-cf__price-field { display: flex; flex-direction: column; }
.chetto-cf__price-label {
  font-size: 12px;
  color: rgba(45, 45, 45, .6);
}
.chetto-cf__price-wrap {
  position: relative;
  display: block;
  margin-top: 4px;
}
.chetto-cf__price-input {
  width: 100%;
  height: 44px;
  padding: 0 28px 0 12px;
  border: 2px solid var(--chetto-color-border-subtle);
  border-radius: 10px;
  background: #fff;
  color: var(--chetto-color-ink);
  font-size: 14px;
  font-weight: 500;
  appearance: none;
  -moz-appearance: textfield;
}
.chetto-cf__price-input::-webkit-outer-spin-button,
.chetto-cf__price-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.chetto-cf__price-input:focus {
  outline: 0;
  border-color: var(--chetto-color-brand);
}
.chetto-cf__price-suffix {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: rgba(45, 45, 45, .6);
  pointer-events: none;
}

/* Dropdown */
.chetto-cf__dropdown { position: relative; }
.chetto-cf__dropdown-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--chetto-color-border-subtle);
  border-radius: 10px;
  background: #fff;
  color: var(--chetto-color-ink);
  font-size: 14px;
  cursor: pointer;
}
.chetto-cf__dropdown-btn:hover { border-color: var(--chetto-color-brand); }

/* FOOTER sticky con Limpiar / Ver productos */
.chetto-cf__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  background: #fff;
  border-top: 1px solid var(--chetto-color-border-subtle);
}
.chetto-cf__clear {
  background: transparent;
  border: 0;
  font-size: 14px;
  color: rgba(45, 45, 45, .7);
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 0;
}
.chetto-cf__clear:hover { color: var(--chetto-color-ink); }
.chetto-cf__clear--disabled {
  cursor: not-allowed;
  opacity: .5;
  text-decoration: none;
}
.chetto-cf__apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  background: var(--chetto-color-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border: 0;
  border-radius: 9999px;
  cursor: pointer;
  transition: background-color .2s ease;
}
.chetto-cf__apply:hover { background: var(--chetto-color-brand); }

/* Anula reglas Hummingbird/PS antiguas dentro del drawer */
#offcanvas-faceted .accordion-button,
#offcanvas-faceted .accordion-item,
#offcanvas-faceted .accordion-flush,
#offcanvas-faceted .accordion-collapse { display: contents; }
#offcanvas-faceted .form-check { padding: 0; }
#offcanvas-faceted .form-check-input { float: none; margin: 0; }
#offcanvas-faceted .left-block__title { display: none; }
.chetto-drawer-filters__body { padding: 0 !important; }

/* ============================================================================
   PDP · Anti-overflow horizontal
   La columna info y sus hijos necesitan min-width:0 para encogerse dentro del
   grid; sin esto, palabras largas / HTML del editor / iconos del reassurance
   empujan el ancho y desbordan visualmente.
   ============================================================================ */
.chetto-product__info,
.chetto-product__info > *,
.chetto-product__form,
.chetto-product__form > * {
  min-width: 0;
  max-width: 100%;
}

.chetto-product__short-desc,
.chetto-product__info .rich-text {
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
.chetto-product__short-desc img,
.chetto-product__short-desc iframe,
.chetto-product__short-desc video,
.chetto-product__short-desc table,
.chetto-product__short-desc pre,
.chetto-product__info .rich-text img,
.chetto-product__info .rich-text iframe,
.chetto-product__info .rich-text video,
.chetto-product__info .rich-text table,
.chetto-product__info .rich-text pre {
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
}
.chetto-product__info .rich-text table { display: block; overflow-x: auto; }

/* Reassurance: las pildoritas no deben empujar el contenedor */
.blockreassurance--product { min-width: 0; max-width: 100%; }
.blockreassurance--product .reassurance { min-width: 0; }
.blockreassurance--product .reassurance__content,
.blockreassurance--cart .reassurance__content,
.blockreassurance--checkout .reassurance__content,
.blockreassurance--order .reassurance__content {
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.blockreassurance--product .reassurance__title,
.blockreassurance--product .reassurance__desc,
.blockreassurance--cart .reassurance__desc,
.blockreassurance--checkout .reassurance__desc,
.blockreassurance--order .reassurance__desc {
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* ============================================================================
   PDP · Lightbox custom (galería ampliada con prev/next + ESC)
   Reemplaza el modal Bootstrap nativo de PrestaShop por un lightbox propio.
   ============================================================================ */
.chetto-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chetto-lightbox[hidden] { display: none; }
body.chetto-lightbox-open { overflow: hidden; }

.chetto-lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.9);
  cursor: zoom-out;
}

.chetto-lightbox__stage {
  position: relative;
  z-index: 2;
  max-width: min(92vw, 1200px);
  max-height: 92vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  pointer-events: none; /* el click en el espacio cierra (overlay debajo) */
}
.chetto-lightbox__img {
  max-width: 100%;
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
}
.chetto-lightbox__counter {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  letter-spacing: 0.02em;
  pointer-events: auto;
}

.chetto-lightbox__close,
.chetto-lightbox__nav {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.chetto-lightbox__close:hover,
.chetto-lightbox__nav:hover {
  background: rgba(0, 0, 0, 0.85);
  border-color: rgba(255, 255, 255, 0.55);
}
.chetto-lightbox__close:active,
.chetto-lightbox__nav:active { transform: scale(0.95); }
.chetto-lightbox__close svg,
.chetto-lightbox__nav svg { width: 22px; height: 22px; display: block; }

.chetto-lightbox__close { top: 20px; right: 20px; }
.chetto-lightbox__nav--prev { left: 20px; top: 50%; transform: translateY(-50%); }
.chetto-lightbox__nav--next { right: 20px; top: 50%; transform: translateY(-50%); }
.chetto-lightbox__nav--prev:active { transform: translateY(-50%) scale(0.95); }
.chetto-lightbox__nav--next:active { transform: translateY(-50%) scale(0.95); }

@media (max-width: 600px) {
  .chetto-lightbox__close { top: 12px; right: 12px; width: 40px; height: 40px; }
  .chetto-lightbox__nav { width: 40px; height: 40px; }
  .chetto-lightbox__nav--prev { left: 8px; }
  .chetto-lightbox__nav--next { right: 8px; }
}
