/* JCBike Portada compacta — menos espacio, más productos a la vista */
html.jch-home, html.jch-list, html.jch-prod {
  --jch-gap: clamp(18px, 2.6vw, 34px);
  --jch-pad: clamp(16px, 3vw, 28px);
  --jch-ink: #15171a;
  --jch-mut: #6b7075;
  --jch-line: #e7e3dc;
  --jch-acc: #78be20;
  --jch-sans: Manrope, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

/* =====================================================================
   PORTADA
   ===================================================================== */

/* Ritmo general: cada bloque pegado al siguiente */
html.jch-home #index #content.page-home > *, html.jch-home #index .page-home > * { margin-top: 0 !important; margin-bottom: var(--jch-gap) !important; }
html.jch-home #index #wrapper { padding-bottom: 0; }

/* Títulos de sección más bajos y alineados a la izquierda (estilo tienda) */
html.jch-home #index .products-section-title,
html.jch-home #index .featured-products > h2,
html.jch-home #index .eb-head .eb-title,
html.jch-home #index .jcbm-home__title {
  margin: 0 0 12px !important; padding: 0 !important; text-align: left !important;
  font-family: var(--jch-sans) !important; font-size: clamp(19px, 2vw, 24px) !important; font-weight: 800 !important;
  letter-spacing: -.01em !important; line-height: 1.2 !important; text-transform: none !important; color: var(--jch-ink) !important;
}
html.jch-home #index .products-section-title::after { display: none !important; }

/* ---------- Bloques de productos: filas que se deslizan ---------- */
html.jch-home #index .featured-products { position: relative; margin: 0 0 var(--jch-gap) !important; padding: 0 !important; }
html.jch-home #index .featured-products .products {
  display: flex !important; flex-wrap: nowrap !important; justify-content: flex-start !important; gap: 10px; margin: 0 !important; padding: 2px 2px 10px !important;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
html.jch-home #index .featured-products .products::-webkit-scrollbar { height: 6px; }
html.jch-home #index .featured-products .products::-webkit-scrollbar-thumb { background: #d8d3ca; border-radius: 3px; }
html.jch-home #index .featured-products .products > * {
  flex: 0 0 calc((100% - 20px) / 2.6) !important; max-width: calc((100% - 20px) / 2.6) !important; width: auto !important;
  padding: 0 !important; margin: 0 !important; scroll-snap-align: start;
}
@media (min-width: 576px) { html.jch-home #index .featured-products .products > * { flex-basis: calc((100% - 30px) / 3.6) !important; max-width: calc((100% - 30px) / 3.6) !important; } }
@media (min-width: 992px) { html.jch-home #index .featured-products .products > * { flex-basis: calc((100% - 50px) / 6) !important; max-width: calc((100% - 50px) / 6) !important; } }
html.jch-home #index .featured-products .all-product-link {
  display: inline-flex !important; align-items: center; gap: 6px; margin: 4px 0 0 !important; float: none !important;
  font-family: var(--jch-sans); font-size: 13px !important; font-weight: 800 !important; letter-spacing: 0 !important; text-transform: none !important;
}
/* Flechas (ordenador) */
.jch-arrow { position: absolute; top: calc(50% - 22px); z-index: 3; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--jch-line); border-radius: 50%; background: #fff; color: var(--jch-ink); box-shadow: 0 8px 22px rgba(0, 0, 0, .12); cursor: pointer; transition: opacity .2s, transform .2s; }
.jch-arrow:hover { transform: scale(1.06); }
.jch-arrow[disabled] { opacity: 0; pointer-events: none; }
.jch-arrow--prev { left: -14px; }
.jch-arrow--next { right: -14px; }
.jch-arrow svg { width: 20px; height: 20px; }
@media (hover: none), (max-width: 991px) { .jch-arrow { display: none; } }

/* ---------- Tarjeta de producto compacta (portada y listados) ---------- */
html.jch-home #index .product-miniature, html.jch-list .product-miniature { margin: 0 !important; height: 100%; }
html.jch-home #index .product-miniature .thumbnail-container, html.jch-list .product-miniature .thumbnail-container,
html.jch-home #index .product-miniature .card, html.jch-list .product-miniature .card {
  height: 100%; margin: 0 !important; padding: 0 !important; border: 1px solid #ece8e1 !important; border-radius: 12px !important; overflow: hidden; background: #fff; box-shadow: none !important;
}
html.jch-home #index .product-miniature .thumbnail-top, html.jch-list .product-miniature .thumbnail-top,
html.jch-home #index .product-miniature .product-miniature__top, html.jch-list .product-miniature .product-miniature__top { background: #f6f4f0; }
html.jch-home #index .product-miniature .product-thumbnail, html.jch-list .product-miniature .product-thumbnail { display: block; aspect-ratio: 1 / 1; padding: 8px; }
html.jch-home #index .product-miniature .product-thumbnail img, html.jch-list .product-miniature .product-thumbnail img,
html.jch-home #index .product-miniature .product-miniature__image, html.jch-list .product-miniature .product-miniature__image {
  width: 100% !important; height: 100% !important; object-fit: contain; mix-blend-mode: multiply;
}
html.jch-home #index .product-miniature .product-description, html.jch-list .product-miniature .product-description,
html.jch-home #index .product-miniature .product-miniature__infos, html.jch-list .product-miniature .product-miniature__infos {
  position: static !important; height: auto !important; padding: 8px 10px 10px !important; text-align: left !important; background: #fff !important;
}
html.jch-home #index .product-miniature .product-description::after, html.jch-list .product-miniature .product-description::after { display: none !important; }
html.jch-home #index .product-miniature .product-title, html.jch-list .product-miniature .product-title,
html.jch-home #index .product-miniature .product-miniature__title, html.jch-list .product-miniature .product-miniature__title { margin: 0 0 4px !important; text-align: left !important; }
html.jch-home #index .product-miniature .product-title a, html.jch-list .product-miniature .product-title a,
html.jch-home #index .product-miniature .product-miniature__title, html.jch-list .product-miniature .product-miniature__title {
  display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em;
  font-family: var(--jch-sans) !important; font-size: 13px !important; font-weight: 600 !important; line-height: 1.3 !important; letter-spacing: 0 !important; text-transform: none !important; text-align: left !important; color: var(--jch-ink) !important; white-space: normal !important;
}
html.jch-home #index .product-miniature .product-price-and-shipping, html.jch-list .product-miniature .product-price-and-shipping,
html.jch-home #index .product-miniature .product-miniature__prices, html.jch-list .product-miniature .product-miniature__prices {
  display: flex !important; flex-wrap: wrap; align-items: baseline; justify-content: flex-start !important; gap: 0 6px; margin: 0 !important; text-align: left !important; font-family: var(--jch-sans) !important;
}
html.jch-home #index .product-miniature .price, html.jch-list .product-miniature .price,
html.jch-home #index .product-miniature .product-miniature__price, html.jch-list .product-miniature .product-miniature__price { order: -1; font-size: 16px !important; font-weight: 800 !important; letter-spacing: -.01em !important; }
html.jch-home #index .product-miniature .regular-price, html.jch-list .product-miniature .regular-price { font-size: 12px !important; }
html.jch-home #index .product-miniature .product-flags, html.jch-list .product-miniature .product-flags { top: 6px !important; left: 6px !important; }
html.jch-home #index .product-miniature .product-flag, html.jch-list .product-miniature .product-flag {
  margin: 0 0 4px !important; padding: 3px 7px !important; min-height: 0 !important; border-radius: 6px !important; font-size: 10.5px !important; font-weight: 800 !important; letter-spacing: .02em !important; line-height: 1.2 !important;
}
html.jch-home #index .product-miniature .wishlist-button-add, html.jch-list .product-miniature .wishlist-button-add { width: 32px !important; height: 32px !important; top: 6px !important; right: 6px !important; }
html.jch-home #index .product-miniature .highlighted-informations, html.jch-list .product-miniature .highlighted-informations { display: none !important; }
html.jch-home #index .product-miniature .variant-links, html.jch-list .product-miniature .variant-links { display: none !important; }

/* ---------- Taller: bloque corto, precios detrás de «Ver precios» ---------- */
html.jch-home .jcbt-hhero { min-height: min(62vh, 560px) !important; margin: 0 0 var(--jch-gap) -50vw !important; }
html.jch-home .jcbt-hhero__inner { padding-top: clamp(96px, 14vh, 140px) !important; padding-bottom: clamp(26px, 5vh, 44px) !important; align-items: end; }
html.jch-home .jcbt-hhero__title { font-size: clamp(2rem, 4.4vw, 3.6rem) !important; margin-bottom: .7rem !important; }
html.jch-home .jcbt-hhero__sub { margin-bottom: 1.1rem !important; font-size: 1rem !important; }
html.jch-home .jcbt-hhero__ctas { margin-bottom: 1rem !important; }
html.jch-home .jcbt-hhero__btn { padding: .8rem 1.3rem !important; font-size: .9rem !important; }
html.jch-home .jcbt-hhero__stats { padding-top: .8rem !important; gap: .3rem 1.2rem !important; }
html.jch-home .jcbt-hhero__stats li { font-size: .82rem !important; }
html.jch-prices .jcbt-hhero__cards { display: none !important; }
html.jch-prices .jcbt-hhero__cards.is-open { display: grid !important; animation: jch-in .3s ease; }
html.jch-prices .jcbt-hhero__card { padding: .75rem 1rem .75rem 1.2rem !important; border-radius: 14px !important; }
html.jch-prices .jcbt-hhero__desc { display: none !important; }
html.jch-prices .jcbt-hhero__price b { font-size: 1.35rem !important; }
.jch-toggle i { display: inline-block; font-style: normal; transition: transform .25s; }
.jch-toggle[aria-expanded="true"] i { transform: rotate(180deg) !important; }
@keyframes jch-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 991px) {
  html.jch-home .jcbt-hhero { min-height: 0 !important; }
  html.jch-home .jcbt-hhero__inner { padding-top: 120px !important; padding-bottom: 22px !important; }
}
@media (max-width: 767px) {
  html.jch-home .jcbt-hhero__bg { height: 58vw !important; }
  html.jch-home .jcbt-hhero__shade { background: linear-gradient(180deg, rgba(14, 18, 15, .15) 0, rgba(14, 18, 15, .55) 30vw, #0e120f 56vw, #0e120f 100%) !important; }
  html.jch-home .jcbt-hhero__inner { grid-template-columns: minmax(0, 1fr) !important; padding: 36vw 16px 20px !important; gap: 12px !important; }
  html.jch-home .jcbt-hhero__inner > *, html.jch-home .jcbt-hhero__copy > * { min-width: 0; max-width: 100%; }
  html.jch-home .jcbt-hhero__btn { min-width: 0; white-space: nowrap !important; }
  html.jch-home .jcbt-hhero__eyebrow { margin-bottom: .5rem !important; font-size: .7rem !important; }
  html.jch-home .jcbt-hhero__title { font-size: 1.9rem !important; }
  html.jch-home .jcbt-hhero__sub { font-size: .92rem !important; line-height: 1.5 !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  html.jch-home .jcbt-hhero__ctas { flex-wrap: nowrap !important; }
  html.jch-home .jcbt-hhero__btn { flex: 1; justify-content: center; padding: .75rem .8rem !important; }
  html.jch-home .jcbt-hhero__stats { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; }
  html.jch-home .jcbt-hhero__stats li { white-space: nowrap; }
  html.jch-home .jcbt-hhero__credit { bottom: 4px !important; font-size: .6rem !important; }
}

/* ---------- Escaparate del tema (slider, ventajas, colecciones) ---------- */
html.jch-home .eb-home .eb-section { padding-top: 0 !important; padding-bottom: 0 !important; margin: 0 0 var(--jch-gap) !important; }
html.jch-home .eb-home .eb-head { margin: 0 0 12px !important; text-align: left !important; }
html.jch-home .eb-home .eb-head .eb-eyebrow { margin-bottom: 2px !important; }
html.jch-home .eb-home .eb-head .eb-title::after { display: none !important; }
/* slider más bajo */
html.jch-home .eb-hero { height: clamp(300px, 46vh, 460px) !important; min-height: 0 !important; margin-bottom: 0 !important; }
html.jch-home .eb-hero__title { font-size: clamp(1.7rem, 3.6vw, 3rem) !important; }
html.jch-home .eb-hero__text { font-size: .95rem !important; margin-bottom: 1rem !important; }
/* ventajas en una franja fina */
html.jch-home .eb-features { display: flex !important; gap: 8px !important; margin: 0 0 var(--jch-gap) !important; padding: 12px 0 !important; overflow-x: auto; scrollbar-width: none; border: 0 !important; }
html.jch-home .eb-features::-webkit-scrollbar { display: none; }
html.jch-home .eb-feature { flex: 1 0 auto; display: flex !important; align-items: center; gap: 10px !important; padding: 10px 14px !important; border: 1px solid var(--jch-line) !important; border-radius: 12px; background: #fff; }
html.jch-home .eb-feature svg { width: 22px !important; height: 22px !important; }
html.jch-home .eb-feature strong { font-size: 13px !important; white-space: nowrap; }
html.jch-home .eb-feature span { font-size: 12px !important; white-space: nowrap; }
/* colecciones: fichas pequeñas, muchas a la vista */
html.jch-home .eb-cats { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 10px !important; }
@media (min-width: 768px) { html.jch-home .eb-cats { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; } }
html.jch-home .eb-cat { position: relative; display: flex !important; flex-direction: column; min-height: 0 !important; height: auto !important; aspect-ratio: auto !important; border-radius: 12px !important; overflow: hidden; background: #f6f4f0; border: 1px solid #ece8e1; }
html.jch-home .eb-cat img { position: static !important; width: 100% !important; height: auto !important; aspect-ratio: 1 / 1; object-fit: cover; transform: none !important; }
html.jch-home .eb-cat__body { position: static !important; inset: auto !important; padding: 8px 10px 10px !important; background: #fff !important; color: var(--jch-ink) !important; }
html.jch-home .eb-cat__body::before, html.jch-home .eb-cat::after { display: none !important; }
html.jch-home .eb-cat__sub, html.jch-home .eb-cat__cta { display: none !important; }
html.jch-home .eb-cat__title { display: block; font-family: var(--jch-sans) !important; font-size: 13.5px !important; font-weight: 800 !important; line-height: 1.25 !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--jch-ink) !important; }
/* banner y galería */
html.jch-no-ebbanner .eb-banner { display: none !important; }
html.jch-no-ebgallery .eb-home .eb-section:has(.eb-gallery) { display: none !important; }
html.jch-home .eb-banner { min-height: 0 !important; margin: 0 0 var(--jch-gap) !important; }
html.jch-home .eb-banner__media img { max-height: 320px; object-fit: cover; }
html.jch-home .eb-banner__content { padding: 22px !important; }
html.jch-home .eb-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 8px !important; }
html.jch-home .eb-gallery__item { aspect-ratio: 1 / 1 !important; border-radius: 10px; overflow: hidden; }
html.jch-home .eb-gallery__cap { font-size: 12px !important; }

/* ---------- Rutas ---------- */
html.jch-home .jcbr-home { min-height: 0 !important; margin-top: 0 !important; margin-bottom: var(--jch-gap) !important; }
html.jch-home .jcbr-home__inner { padding-top: clamp(28px, 5vh, 48px) !important; padding-bottom: clamp(24px, 4vh, 40px) !important; gap: 1.4rem !important; }
html.jch-home .jcbr-home__title { font-size: clamp(1.7rem, 3.4vw, 2.8rem) !important; margin-bottom: .6rem !important; }
html.jch-home .jcbr-home__sub { font-size: .95rem !important; margin-bottom: 1rem !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html.jch-home .jcbr-home__search { margin-bottom: .8rem !important; }
html.jch-home .jcbr-home__ctas { margin-bottom: 1rem !important; }
html.jch-home .jcbr-home__btn { padding: .7rem 1.2rem !important; font-size: .88rem !important; }
html.jch-home .jcbr-home__stats { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 8px !important; margin: 0 !important; padding-top: .8rem !important; }
html.jch-home .jcbr-home__stats dd { font-size: clamp(1.15rem, 2.4vw, 1.8rem) !important; margin: 0 !important; }
html.jch-home .jcbr-home__stats dt { font-size: .62rem !important; letter-spacing: .08em !important; }
html.jch-home .jcbr-home__cards { gap: 8px !important; }
html.jch-home .jcbr-home__card { padding: 8px !important; gap: 10px !important; }
@media (max-width: 767px) {
  html.jch-home .jcbr-home__trace { display: none !important; }
  html.jch-home .jcbr-home__cards { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px !important; padding: 0 16px 4px !important; }
  html.jch-home .jcbr-home__cards::-webkit-scrollbar { display: none; }
  html.jch-home .jcbr-home__card { flex: 0 0 78%; scroll-snap-align: start; }
  html.jch-home .jcbr-home__ctas { flex-wrap: nowrap !important; }
  html.jch-home .jcbr-home__ctas .is-ghost { display: none !important; }
}

/* ---------- Marchas ---------- */
html.jch-home .jcbm-home { margin: 0 0 var(--jch-gap) !important; }
html.jch-home .jcbm-home__head { margin-bottom: 10px !important; align-items: center !important; }
html.jch-home .jcbm-hcard { padding: 10px !important; gap: 10px !important; border-radius: 14px !important; grid-template-columns: 48px 1fr !important; }
html.jch-home .jcbm-hcard__title { font-size: 14px !important; }
html.jch-home .jcbm-home__more { margin-top: 8px !important; }
@media (max-width: 991px) {
  html.jch-home .jcbm-home__grid { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 8px !important; padding-bottom: 4px; }
  html.jch-home .jcbm-home__grid::-webkit-scrollbar { display: none; }
  html.jch-home .jcbm-home__grid > * { flex: 0 0 72%; scroll-snap-align: start; }
}

/* ---------- La Grupeta ---------- */
html.jch-home .jcbgh { margin: 0 0 var(--jch-gap) !important; }
html.jch-home .jcbgh__in { padding-top: clamp(24px, 4vw, 40px) !important; padding-bottom: clamp(24px, 4vw, 40px) !important; gap: 1.4rem !important; }
html.jch-home .jcbgh__title { font-size: clamp(1.7rem, 3.4vw, 2.6rem) !important; margin-bottom: .6rem !important; }
html.jch-home .jcbgh__lead { font-size: .95rem !important; margin-bottom: 1rem !important; }
html.jch-home .jcbgh__feats { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; margin-bottom: 1rem !important; }
html.jch-home .jcbgh__feats > * { padding: 10px !important; margin: 0 !important; }
html.jch-home .jcbgh__feats small, html.jch-home .jcbgh__feats p { font-size: 12px !important; line-height: 1.35 !important; }
@media (max-width: 767px) {
  html.jch-home .jcbgh__steps, html.jch-home .jcbgh__panel .jcbgh__note { display: none !important; }
  html.jch-home .jcbgh__feats li > span:not(.jcbgh__ico) { font-size: 0 !important; line-height: 0 !important; }
  html.jch-home .jcbgh__feats li > span:not(.jcbgh__ico) b { display: block; font-size: 14px !important; line-height: 1.3 !important; }
  html.jch-home .jcbgh__feats li { align-items: center !important; }
  html.jch-home .jcbgh__lead { display: -webkit-box !important; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ---------- Bloques de otros módulos: menos aire ---------- */
html.jch-home #index .block-newsletter, html.jch-home #index .email_subscription { padding: 18px !important; margin: 0 0 var(--jch-gap) !important; }

/* =====================================================================
   CATEGORÍAS, BÚSQUEDA Y LISTADOS
   ===================================================================== */
html.jch-list #js-product-list .products, html.jch-list #products .products {
  display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px !important; margin: 0 0 16px !important;
}
@media (min-width: 576px) { html.jch-list #js-product-list .products, html.jch-list #products .products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 992px) { html.jch-list #js-product-list .products, html.jch-list #products .products { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px !important; } }
html.jch-list #js-product-list .products > *, html.jch-list #products .products > * { width: auto !important; max-width: none !important; flex: none !important; padding: 0 !important; margin: 0 !important; }
html.jch-list #js-product-list .products > .clearfix, html.jch-list #products .products > .clearfix { display: none !important; }

/* cabecera de la categoría más baja */
html.jch-list #js-product-list-header .block-category { padding: 18px 20px !important; margin-bottom: 14px !important; gap: 16px !important; min-height: 0 !important; }
html.jch-list #js-product-list-header .block-category h1, html.jch-list .jcb-cat-hero h1.h1 { font-size: clamp(1.6rem, 3.2vw, 2.4rem) !important; margin: 0 0 .4rem !important; line-height: 1.1 !important; }
html.jch-list .jcb-cat-hero .jcb-eyebrow { margin-bottom: 4px !important; }
html.jch-list .jcb-cat-hero #category-description { font-size: .92rem !important; }
html.jch-list .jcb-perks { margin-top: 10px !important; gap: 6px !important; }
html.jch-list .jcb-perk { padding: 5px 10px !important; font-size: 12px !important; }
html.jch-list .jcb-hero-img, html.jch-list .block-category .category-cover { max-width: 160px !important; }
html.jch-list .jcb-hero-img img, html.jch-list .block-category .category-cover img { max-height: 140px !important; width: auto !important; }
@media (max-width: 767px) {
  html.jch-list .jcb-hero-img, html.jch-list .block-category .category-cover { display: none !important; }
  html.jch-list #js-product-list-header .block-category { grid-template-columns: 1fr !important; padding: 14px 16px !important; }
  html.jch-list .jcb-cat-hero #category-description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  html.jch-list .jcb-perks { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; }
  html.jch-list .jcb-perk { white-space: nowrap; }
}
/* subcategorías con foto: fichas pequeñas */
html.jch-list .jcb-subcats { margin: 0 0 14px !important; }
html.jch-list .jcb-subcat { flex: 0 0 132px !important; width: 132px !important; min-height: 0 !important; height: auto !important; }
html.jch-list .jcb-subcat-body { padding: 8px 10px !important; min-height: 0 !important; }
html.jch-list .jcb-subcat-count { font-size: 11px !important; letter-spacing: .04em !important; }
html.jch-list .jcb-subcat-arrow { display: none !important; }
html.jch-list .jcb-subcats-head { margin-bottom: 8px !important; }
html.jch-list .jcb-subcat-img { aspect-ratio: 1 / 1 !important; height: auto !important; }
html.jch-list .jcb-subcat-name { font-size: 13px !important; }
/* barra de orden y filtros */
html.jch-list #js-product-list-top { margin-bottom: 10px !important; padding: 0 !important; }
html.jch-list .products-selection { margin-bottom: 10px !important; padding: 0 !important; border: 0 !important; }
html.jch-list .products-selection .total-products p, html.jch-list .total-products { margin: 0 !important; font-size: 13px !important; }

/* =====================================================================
   FICHA DE PRODUCTO: relacionados, accesorios y vistos en filas compactas
   ===================================================================== */
html.jch-prod #product :is(.jch-rowsec, .featured-products, .product-accessories) { margin-top: 24px !important; }
html.jch-prod #product :is(.jch-rowsec, .featured-products, .product-accessories) .products-section-title, html.jch-prod #product :is(.jch-rowsec, .featured-products, .product-accessories) > h2, html.jch-prod #product :is(.jch-rowsec, .featured-products, .product-accessories) > p.h5 {
  margin: 0 0 12px !important; text-align: left !important; font-family: var(--jch-sans) !important; font-size: clamp(18px, 2vw, 22px) !important; font-weight: 800 !important; letter-spacing: -.01em !important; text-transform: none !important;
}
html.jch-prod #product :is(.jch-rowsec, .featured-products, .product-accessories) .products-section-title::after { display: none !important; }
html.jch-prod #product :is(.jch-rowsec, .featured-products, .product-accessories) { position: relative; margin: 0 0 var(--jch-gap) !important; padding: 0 !important; }
html.jch-prod #product :is(.jch-rowsec, .featured-products, .product-accessories) .products {
  display: flex !important; flex-wrap: nowrap !important; justify-content: flex-start !important; gap: 10px; margin: 0 !important; padding: 2px 2px 10px !important;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
html.jch-prod #product :is(.jch-rowsec, .featured-products, .product-accessories) .products::-webkit-scrollbar { height: 6px; }
html.jch-prod #product :is(.jch-rowsec, .featured-products, .product-accessories) .products::-webkit-scrollbar-thumb { background: #d8d3ca; border-radius: 3px; }
html.jch-prod #product :is(.jch-rowsec, .featured-products, .product-accessories) .products > * {
  flex: 0 0 calc((100% - 20px) / 2.6) !important; max-width: calc((100% - 20px) / 2.6) !important; width: auto !important;
  padding: 0 !important; margin: 0 !important; scroll-snap-align: start;
}
@media (min-width: 576px) { html.jch-prod #product :is(.jch-rowsec, .featured-products, .product-accessories) .products > * { flex-basis: calc((100% - 30px) / 3.6) !important; max-width: calc((100% - 30px) / 3.6) !important; } }
@media (min-width: 992px) { html.jch-prod #product :is(.jch-rowsec, .featured-products, .product-accessories) .products > * { flex-basis: calc((100% - 50px) / 6) !important; max-width: calc((100% - 50px) / 6) !important; } }
html.jch-prod #product .product-miniature{ margin: 0 !important; height: 100%; }
html.jch-prod #product .product-miniature .thumbnail-container,
html.jch-prod #product .product-miniature .card{
  height: 100%; margin: 0 !important; padding: 0 !important; border: 1px solid #ece8e1 !important; border-radius: 12px !important; overflow: hidden; background: #fff; box-shadow: none !important;
}
html.jch-prod #product .product-miniature .thumbnail-top,
html.jch-prod #product .product-miniature .product-miniature__top{ background: #f6f4f0; }
html.jch-prod #product .product-miniature .product-thumbnail{ display: block; aspect-ratio: 1 / 1; padding: 8px; }
html.jch-prod #product .product-miniature .product-thumbnail img,
html.jch-prod #product .product-miniature .product-miniature__image{
  width: 100% !important; height: 100% !important; object-fit: contain; mix-blend-mode: multiply;
}
html.jch-prod #product .product-miniature .product-description,
html.jch-prod #product .product-miniature .product-miniature__infos{
  position: static !important; height: auto !important; padding: 8px 10px 10px !important; text-align: left !important; background: #fff !important;
}
html.jch-prod #product .product-miniature .product-description::after{ display: none !important; }
html.jch-prod #product .product-miniature .product-title,
html.jch-prod #product .product-miniature .product-miniature__title{ margin: 0 0 4px !important; text-align: left !important; }
html.jch-prod #product .product-miniature .product-title a,
html.jch-prod #product .product-miniature .product-miniature__title{
  display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em;
  font-family: var(--jch-sans) !important; font-size: 13px !important; font-weight: 600 !important; line-height: 1.3 !important; letter-spacing: 0 !important; text-transform: none !important; text-align: left !important; color: var(--jch-ink) !important; white-space: normal !important;
}
html.jch-prod #product .product-miniature .product-price-and-shipping,
html.jch-prod #product .product-miniature .product-miniature__prices{
  display: flex !important; flex-wrap: wrap; align-items: baseline; justify-content: flex-start !important; gap: 0 6px; margin: 0 !important; text-align: left !important; font-family: var(--jch-sans) !important;
}
html.jch-prod #product .product-miniature .price,
html.jch-prod #product .product-miniature .product-miniature__price{ order: -1; font-size: 16px !important; font-weight: 800 !important; letter-spacing: -.01em !important; }
html.jch-prod #product .product-miniature .regular-price{ font-size: 12px !important; }
html.jch-prod #product .product-miniature .product-flags{ top: 6px !important; left: 6px !important; }
html.jch-prod #product .product-miniature .product-flag{
  margin: 0 0 4px !important; padding: 3px 7px !important; min-height: 0 !important; border-radius: 6px !important; font-size: 10.5px !important; font-weight: 800 !important; letter-spacing: .02em !important; line-height: 1.2 !important;
}
html.jch-prod #product .product-miniature .wishlist-button-add{ width: 32px !important; height: 32px !important; top: 6px !important; right: 6px !important; }
html.jch-prod #product .product-miniature .highlighted-informations{ display: none !important; }
html.jch-prod #product .product-miniature .variant-links{ display: none !important; }

/* =====================================================================
   MODO LIMPIO (cada bloque depende de su interruptor)
   ===================================================================== */

/* 1. Un solo color de acento: verde JCBike; rojo solo para descuentos */
html.jcl-color { --jc-accent: #5f9e1b; --jc-accent-dark: #4a7f12; --jc-accent-soft: #e7f2d8; --jc-paper: #f5f6f3; --jc-line: #e3e6df; }
html.jcl-color .eb-home { --eb-accent: #5f9e1b !important; }
html.jcl-color .product-miniature .product-flag.discount, html.jcl-color .product-miniature .product-flag.discount-percentage,
html.jcl-color .product-miniature .product-flag.discount-amount { background: #d0342c !important; color: #fff !important; }
html.jcl-color .product-miniature .has-discount .price, html.jcl-color .product-miniature .regular-price ~ .price { color: #c62d25 !important; }
html.jcl-color #jcbh .jcbh-pill--live { background: linear-gradient(135deg, #78be20, #3a8f12) !important; box-shadow: 0 6px 20px rgba(120, 190, 32, .3) !important; }
html.jcl-color #jcbh .jcbh-promo__card--camp { background: radial-gradient(120% 90% at 100% 0%, rgba(120, 190, 32, .22), transparent 60%), #16191c !important; }
html.jcl-color .jcbr-home__eyebrow, html.jcl-color .jcbr-home__card-body small { color: #9bd34f !important; }
html.jcl-color .jcbr-home__card svg path { stroke: #9bd34f !important; }

/* 2. Tipografía: serif solo en el título grande de cada página; fuera antetítulos repetidos */
html.jcl-fonts { --jc-serif: "Manrope", "Helvetica Neue", Arial, sans-serif; }
html.jcl-fonts h1, html.jcl-fonts .h1, html.jcl-fonts .jcbt-hhero__title { font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important; }
html.jcl-fonts .eb-title, html.jcl-fonts .eb-hero__title, html.jcl-fonts .jcbr-home__title, html.jcl-fonts .jcbm-home__title, html.jcl-fonts .jcbgh__title,
html.jcl-fonts .jcbr-home__stats dd, html.jcl-fonts .products-section-title, html.jcl-fonts .product-miniature .product-title a,
html.jcl-fonts .jcbm-hcard__title, html.jcl-fonts .jcb-subcat-name, html.jcl-fonts .block-title, html.jcl-fonts #footer h4, html.jcl-fonts #footer .h4 {
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif !important; letter-spacing: -.01em !important;
}
html.jcl-fonts .jcbgh__title em, html.jcl-fonts .jcbgh__title i { font-style: normal !important; }
html.jcl-fonts .eb-section .eb-eyebrow, html.jcl-fonts .jcbm-home .jcbm-eyebrow, html.jcl-fonts .jcbr-home__eyebrow, html.jcl-fonts .jcbgh__eyebrow,
html.jcl-fonts .jcb-cat-hero .jcb-eyebrow, html.jcl-fonts .jcb-subcats-head .jcb-eyebrow, html.jcl-fonts .eb-banner .eb-eyebrow { display: none !important; }

/* 3. Tarjetas limpias */
html.jcl-badges .product-miniature .product-flag.new, html.jcl-badges .product-miniature .product-flag.on-sale,
html.jcl-badges .product-miniature .product-flag.online-only, html.jcl-badges .product-miniature .product-flag.pack { display: none !important; }
html.jcl-badges body#new-products .product-miniature .product-flag.new { display: inline-block !important; }
html.jcl-badges .jcbp-card__save, html.jcl-badges .jcl-save { display: none !important; }
html.jcl-badges .product-miniature .product-flag.out_of_stock { background: rgba(21, 23, 26, .72) !important; color: #fff !important; }
@media (hover: hover) {
  html.jcl-badges .product-miniature .wishlist-button-add { opacity: 0; transition: opacity .2s; }
  html.jcl-badges .product-miniature:hover .wishlist-button-add, html.jcl-badges .product-miniature .wishlist-button-add:focus { opacity: 1; }
}
@media (hover: none) { html.jcl-badges .product-miniature .wishlist-button-add { display: none !important; } }

/* 4. Una sola cuenta atrás */
html.jcl-count #jcbh .jcbh-promo__count { display: none !important; }
html.jcl-count .jcl-extra-count { display: none !important; }

/* 5. WhatsApp discreto */
.jcl-fab { transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .3s !important; transform-origin: 100% 100%; }
html.jcl-float .jcl-fab { transform: scale(.78); }
html.jcl-float .jcl-fab.is-away { transform: scale(.78) translateY(160%); opacity: 0; pointer-events: none; }

/* 6. Fondos uniformes: Rutas y La Grupeta en claro */
html.jcl-bg .jcbr-home:not(.jcbr-home--cat) { background: #f4f5f2 !important; color: #15171a !important; }
html.jcl-bg .jcbr-home:not(.jcbr-home--cat) .jcbr-home__bg, html.jcl-bg .jcbr-home:not(.jcbr-home--cat) .jcbr-home__shade,
html.jcl-bg .jcbr-home:not(.jcbr-home--cat) .jcbr-home__trace, html.jcl-bg .jcbr-home:not(.jcbr-home--cat) .jcbr-home__credit { display: none !important; }
html.jcl-bg .jcbr-home:not(.jcbr-home--cat) .jcbr-home__title { color: #15171a !important; text-shadow: none !important; }
html.jcl-bg .jcbr-home:not(.jcbr-home--cat) .jcbr-home__sub { color: #5d6266 !important; }
html.jcl-bg .jcbr-home:not(.jcbr-home--cat) .jcbr-home__eyebrow { color: #4a7f12 !important; }
html.jcl-bg .jcbr-home:not(.jcbr-home--cat) .jcbr-home__search { background: #fff !important; border-color: #e1e4dd !important; }
html.jcl-bg .jcbr-home:not(.jcbr-home--cat) .jcbr-home__search select { background: #f2f3f0 !important; }
html.jcl-bg .jcbr-home:not(.jcbr-home--cat) .jcbr-home__btn { background: #15171a !important; color: #fff !important; }
html.jcl-bg .jcbr-home:not(.jcbr-home--cat) .jcbr-home__btn.is-ghost { background: transparent !important; color: #15171a !important; border: 1px solid #cfd3cc !important; }
html.jcl-bg .jcbr-home:not(.jcbr-home--cat) .jcbr-home__stats dd { color: #15171a !important; }
html.jcl-bg .jcbr-home:not(.jcbr-home--cat) .jcbr-home__stats dt { color: #6b7075 !important; }
html.jcl-bg .jcbr-home:not(.jcbr-home--cat) .jcbr-home__card { background: #fff !important; border-color: #e3e6df !important; color: #15171a !important; backdrop-filter: none !important; }
html.jcl-bg .jcbr-home:not(.jcbr-home--cat) .jcbr-home__card svg { background: #eef1ea !important; }
html.jcl-bg .jcbr-home:not(.jcbr-home--cat) .jcbr-home__card svg path { stroke: #5f9e1b !important; }
html.jcl-bg .jcbr-home:not(.jcbr-home--cat) .jcbr-home__card-body small { color: #4a7f12 !important; }
html.jcl-bg .jcbr-home:not(.jcbr-home--cat) .jcbr-home__card-body span { color: #6b7075 !important; }
html.jcl-bg .jcbgh { background: #fff !important; border-top: 1px solid #eceee9; border-bottom: 1px solid #eceee9; }
html.jcl-bg .jcbgh::before, html.jcl-bg .jcbgh::after { display: none !important; }

/* 7. Menos movimiento (queda el ciclista del logo y el punto de la campaña) */
html.jcl-motion body *, html.jcl-motion body *::before, html.jcl-motion body *::after { animation: none !important; }
html.jcl-motion #jcbh .jcbh-pill__dot, html.jcl-motion .jcbh-qt--camp.is-live b::after { animation: jcbh-pulse 1.6s infinite !important; }
html.jcl-motion .jcbr-home__trace .dot { display: none !important; }
html.jcl-motion .jcbr-home__trace path { stroke-dashoffset: 0 !important; }
html.jcl-motion .product-miniature:hover img, html.jcl-motion .eb-cat:hover img, html.jcl-motion .jcb-subcat:hover img { transform: none !important; }

/* 8. Portada sin extras */
html.jcl-extras #index iframe[src*="google.com/maps"], html.jcl-extras #index iframe[src*="maps.google"] { display: none !important; }
.jcl-fold { margin: 0 0 var(--jch-gap, 24px) !important; padding: 0 !important; border: 1px solid #e3e6df !important; border-radius: 14px !important; background: #fff !important; overflow: hidden; min-height: 0 !important; }
.jcl-fold > .jcl-fold__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 14px 16px; border: 0; background: none; font: 700 15px/1.3 Manrope, Arial, sans-serif; color: #15171a; text-align: left; cursor: pointer; }
.jcl-fold > .jcl-fold__bar::after { content: "⌄"; font-size: 18px; transition: transform .25s; }
.jcl-fold.is-open > .jcl-fold__bar::after { transform: rotate(180deg); }
.jcl-fold:not(.is-open) > :not(.jcl-fold__bar) { display: none !important; }
.jcl-fold.is-open > :not(.jcl-fold__bar) { padding-left: 16px; padding-right: 16px; }
.jcl-strip { display: flex !important; align-items: center !important; gap: 14px !important; min-height: 0 !important; padding: 12px 16px !important; margin: 0 0 var(--jch-gap, 24px) !important; border-radius: 14px !important; }
.jcl-strip img { max-height: 64px !important; width: auto !important; }
.jcl-strip h1, .jcl-strip h2, .jcl-strip h3 { font-size: 16px !important; margin: 0 !important; line-height: 1.25 !important; }
.jcl-strip p { display: none !important; }
.jcl-maplink { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 0; padding: 10px 16px; border-radius: 999px; background: #15171a; color: #fff !important; font: 800 13px/1 Manrope, Arial, sans-serif; text-decoration: none !important; }

/* 9. Pie de página corto: garantías en 4 iconos */
html.jcl-footer #footer .jctb__badges, html.jcl-footer footer .jctb__badges { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 8px 22px !important; }
html.jcl-footer #footer .jctb__badge:nth-child(n+5), html.jcl-footer footer .jctb__badge:nth-child(n+5) { display: none !important; }
html.jcl-footer #footer .jctb__txt span, html.jcl-footer footer .jctb__txt span { display: none !important; }
html.jcl-footer #footer .jctb__badge, html.jcl-footer footer .jctb__badge { padding: 0 !important; border: 0 !important; background: none !important; flex: 0 0 auto !important; width: auto !important; }
html.jcl-footer #footer .jctb__msg, html.jcl-footer footer .jctb__msg { display: none !important; }

/* 10. Mismo fondo para todas las fotos de producto */
html.jcl-photos .product-miniature .thumbnail-top, html.jcl-photos .product-miniature .product-thumbnail,
html.jcl-photos .product-miniature .product-miniature__top, html.jcl-photos .product-cover, html.jcl-photos .product-images .thumb-container,
html.jcl-photos .jcbp-card__img, html.jcl-photos .jcbh-tile__img, html.jcl-photos .jcbh-hit__img { background: #f4f2ee !important; }
html.jcl-photos .product-miniature img, html.jcl-photos .product-cover img, html.jcl-photos .product-images img, html.jcl-photos .jcbp-card__img img { mix-blend-mode: multiply; }

/* 11. Sin bloques promocionales dentro de categorías y productos */
html.jcl-promos .jcbm-catblock, html.jcl-promos .jcbr-home--cat, html.jcl-promos .jcbt-promo--product { display: none !important; }
html.jcl-bg .jcbgh__panel::before, html.jcl-bg .jcbgh__panel::after { display: none !important; }
html.jcl-color .jcbm-badge { background: #eef3e6 !important; color: #3f6d10 !important; border-color: transparent !important; }

/* =====================================================================
   DATOS Y CONFIANZA
   ===================================================================== */
/* Sin agotados en la portada ni en los relacionados de la ficha */
html.jcl-oos #index .featured-products .products > *:has(.product-flag.out_of_stock),
html.jcl-oos #product :is(.jch-rowsec, .featured-products, .product-accessories) .products > *:has(.product-flag.out_of_stock),
html.jcl-oos .jcbh-search__res .jcbh-hit.is-oos { display: none !important; }
/* Confianza junto al botón de compra */
.jchi { margin: 14px 0 6px; padding: 12px 14px; border: 1px solid #e3e6df; border-radius: 14px; background: #fafbf8; font-family: Manrope, "Segoe UI", Arial, sans-serif; }
.jchi__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.jchi__list li { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; font-weight: 600; line-height: 1.35; color: #2a2c31; }
.jchi__list svg { flex-shrink: 0; width: 16px; height: 16px; fill: none; stroke: #5f9e1b; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.jchi__rating { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid #e9ebe5; font-size: 13px; color: #5d6266 !important; text-decoration: none !important; }
.jchi__rating b { color: #15171a; }
.jchi__stars { color: #f2b01e; letter-spacing: 1px; font-size: 14px; }
a.jchi__rating:hover b { text-decoration: underline; }
/* Descuentos siempre en rojo y precio en negro (también en la ficha) */
html.jcl-color .product-flag.discount, html.jcl-color .product-flag.discount-percentage, html.jcl-color .product-flag.discount-amount,
html.jcl-color .product-discount .discount, html.jcl-color .product-prices .discount { background: #d0342c !important; color: #fff !important; }
html.jcl-color .product-prices .current-price, html.jcl-color .product-prices .current-price .price, html.jcl-color .product-prices .current-price-value { color: #15171a !important; }
