/* ─── Bikes Slider Section ────────────────────────────────────────
   Paleta: Fondo claro · Cards blancas · Red accent
   ──────────────────────────────────────────────────────────────── */

/* ══════════════════════════════════════════════════════════════════
   SECCIÓN
   ══════════════════════════════════════════════════════════════════ */
.bikes-slider-section {
  background: var(--lifan-bg);
  overflow: hidden;
}
.bikes-slider-section .section-heading__title { color: var(--lifan-navy); }
.bikes-slider-section .section-heading__text  { color: var(--lifan-text-soft); }

/* ══════════════════════════════════════════════════════════════════
   TABS
   ══════════════════════════════════════════════════════════════════ */
.bcat-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.bcat-tab {
  position: relative;
  padding: 10px 26px;
  border-radius: 999px;
  border: 1.5px solid rgba(30,27,94,.2);
  background: transparent;
  color: var(--lifan-navy);
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: color .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.bcat-tab::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--lifan-red);
  border-radius: inherit;
  transform: scale(0);
  transition: transform .28s cubic-bezier(.34,1.56,.64,1);
  z-index: 0;
}
.bcat-tab > * { position: relative; z-index: 1; }
.bcat-tab:hover { border-color: rgba(30,27,94,.4); }
.bcat-tab.is-active {
  color: #fff;
  border-color: var(--lifan-red);
  box-shadow: 0 6px 22px rgba(227,30,36,.3);
}
.bcat-tab.is-active::before { transform: scale(1); }

/* ══════════════════════════════════════════════════════════════════
   PANELES
   ══════════════════════════════════════════════════════════════════ */
.bcat-panel { display: none; }
.bcat-panel.is-active {
  display: block;
  animation: bCatFadeUp .35s ease both;
}
@keyframes bCatFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.bcat-empty {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 56px 24px; text-align: center; color: var(--lifan-text-soft);
}
.bcat-empty p { margin: 0; font-size: 15px; }
.bcat-empty__hint { font-size: 13px !important; color: var(--lifan-text-soft) !important; opacity: .7; }
.bcat-empty strong { color: var(--lifan-red); }

/* ══════════════════════════════════════════════════════════════════
   SLIDER — viewport ancho, 3 cards visibles en desktop
   ══════════════════════════════════════════════════════════════════ */
.bslider {
  position: relative;
  margin-top: 32px;
}

.bslider__viewport {
  overflow: hidden;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.bslider__track {
  display: flex;
  gap: 0;
  padding: 12px 0 24px;
  transition: transform .45s cubic-bezier(.25,.46,.45,.94);
  will-change: transform;
}

.bslider__slide {
  flex: 0 0 380px;
  padding: 0 12px;
}

/* ══════════════════════════════════════════════════════════════════
   CARD — fondo blanco, estilo Clean Sport
   ══════════════════════════════════════════════════════════════════ */
.bcard {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e4e8f2;
  box-shadow: 0 4px 20px rgba(18,16,58,.07);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.bcard:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(18,16,58,.14);
  border-color: rgba(227,30,36,.2);
}

/* Franja superior rojo → azul */
.bcard::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--lifan-red), var(--lifan-blue-mid));
  z-index: 1;
}

/* ── Imagen ──────────────────────────────────────────────────────── */
.bcard__image-wrap {
      display: flex;
    align-items: center;
    justify-content: center;  position: relative;
  height: 260px;
  overflow: hidden;
  background: #f7f8fc;
  flex-shrink: 0;
  text-decoration: none;
}
.bcard__image-wrap--empty { display: grid; place-items: center; }

.bcard__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transition: transform .45s ease;
  padding: 12px;
  display: block;
}
.bcard:hover .bcard__image { transform: scale(1.06); }

.bcard__placeholder {
  font-size: 32px; font-weight: 900; letter-spacing: .14em;
  color: rgba(18,16,58,.1);
}

/* Badge de categoría — esquina superior izquierda sobre la imagen */
.bcard__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #e31e24;
  background: rgba(255,255,255,.92);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

/* Separador azul entre imagen y body */
.bcard__divider {
  height: 3px;
  background: linear-gradient(90deg, #2b4db5 0%, #1e1b5e 60%, transparent 100%);
  flex-shrink: 0;
}

/* ── Body ────────────────────────────────────────────────────────── */
.bcard__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 22px 22px;
}

.bcard__title {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  color: #12103a;
}
.bcard__title a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}
.bcard__title a:hover { color: var(--lifan-red); }

/* ── Specs — lista vertical ───────────────────────────────────────── */
.bcard__specs {
  display: flex;
  flex-direction: column;
  border: 1px solid #e4e8f2;
  border-radius: 8px;
  overflow: hidden;
}

.bcard__spec {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px solid #e4e8f2;
}
.bcard__spec:last-child { border-bottom: none; }

.bcard__spec-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #999;
}
.bcard__spec-val {
  font-size: 13px;
  font-weight: 800;
  color: #12103a;
  text-align: right;
}

/* ── Footer: precio + CTA ────────────────────────────────────────── */
.bcard__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f0f2f8;
}

.bcard__price {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.bcard__price__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #999;
  line-height: 1.4;
}
/* Precio regular tachado (cuando hay oferta) */
.bcard__price__regular {
  font-size: 13px;
  font-weight: 700;
  color: #bbb;
  text-decoration: line-through;
  line-height: 1.3;
}
/* Precio de venta o precio normal */
.bcard__price__sale {
  font-size: 22px;
  font-weight: 900;
  color: #12103a;
  line-height: 1;
}
/* Override WooCommerce price wrappers dentro del card */
.bcard__price__sale .woocommerce-Price-amount,
.bcard__price__sale .amount,
.bcard__price__regular .woocommerce-Price-amount,
.bcard__price__regular .amount {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.bcard__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--lifan-red);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 6px;
  transition: background .2s ease, transform .2s ease;
  white-space: nowrap;
}
.bcard__cta:hover { background: #c01a1f; transform: scale(1.04); color: #fff; }

/* ══════════════════════════════════════════════════════════════════
   CONTROLES
   ══════════════════════════════════════════════════════════════════ */
.bslider__controls {
  display: flex; align-items: center; justify-content: center;
  gap: 18px; padding: 4px 0 8px;
}

.bslider__btn {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(30,27,94,.2);
  background: rgba(30,27,94,.06);
  color: var(--lifan-navy);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.bslider__btn:hover {
  background: var(--lifan-red);
  border-color: var(--lifan-red);
  color: #fff;
  transform: scale(1.08);
}
.bslider__btn:disabled { opacity: .28; pointer-events: none; }

.bslider__dots { display: flex; gap: 8px; align-items: center; }
.bslider__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(30,27,94,.2);
  border: none; cursor: pointer; padding: 0;
  transition: width .25s ease, border-radius .25s ease, background .25s ease;
}
.bslider__dot.is-active {
  width: 22px; border-radius: 4px;
  background: var(--lifan-red);
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .bcat-tabs { gap: 8px; }
  .bcat-tab  { padding: 9px 18px; font-size: 11px; }
  .bslider__slide { flex: 0 0 320px; }
}

@media (max-width: 600px) {
  .bslider__viewport { padding: 0 16px; }
  .bslider__slide    { flex: 0 0 calc(100vw - 56px); }
  .bcat-tab { padding: 8px 14px; }
  .bcard__specs { grid-template-columns: repeat(3, 1fr); }
}
