.breadcrumb {
  max-width: 1600px;
  margin: 0;
  margin-top: -35px;
  margin-bottom: 15px;
  font-size: 0.75rem;
  color: #666;
  text-align: left; 
  gap:2px;
  padding-left: 20px !important;
  padding-right: 0 !important;
  justify-content: start;
  align-items: flex-start;
}

.breadcrumb a {
  color: #000;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
  color:var(--primary-color)
}

.breadcrumb span {
  color: #000;
}
/* ========================================
   📦 CONTENEDOR GENERAL ECOMMERCE PRODUCTO
=========================================== */
.producto-section {
  width: 100%;
  max-width: none;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-sizing: border-box;
}
/* =========================
   🧭 LAYOUT PRINCIPAL
========================= */
main:has(.producto-layout) {
  width: 100%;              /* que use todo el ancho */
  max-width: 1400px;        /* o 1600px, lo que prefieras */
  margin: 0 auto;           /* 👈 centra el main dentro del body */
  padding: 0 10px;          /* aire simétrico izquierda/derecha */
  box-sizing: border-box;
}


.producto-layout {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: center; /* ✅ centra ambos bloques como grupo */
  align-items: flex-start;
  gap: 20px; /* ✅ separación exacta entre galería e info */
  padding: 20px 0;
  box-sizing: border-box;
  background-color: white;
  border-radius: 6px;
}

/* === GALERÍA PRINCIPAL === */
.producto-galeria {
  flex: 0 0 40%;
  max-width: 40%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* === Imagen principal === */
.slider-for {
  position: relative;
  width: 450px;
  height: 450px;
  background: #f6f6f6;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
  min-height: 200px;
}

.slider-for img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
}

/* ======= Miniaturas ======= */
.slider-nav {
  margin-top: 5px;
  max-width: 450px;
}

.slider-nav img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  opacity: 0.6;
  transition: opacity 0.3s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
}

.slider-nav .swiper-slide-thumb-active::after,
.slider-nav .swiper-slide-thumb-active img {
  border: none !important;
  box-shadow: none !important;
}

.slider-nav .swiper-slide-thumb-active img {
  opacity: 1;
}

.swiper-navigation-icon { 
  /*color:var(--white-color);*/ 
  display: none !important;
}
/* =========================
   📝 INFORMACIÓN DEL PRODUCTO
========================= */
.producto-info {
  flex: 0 0 40%;
  max-width: 40%;
  background: #f5f5f5;
  border-radius: 12px;
  padding: 20px;
  box-sizing: border-box;
}

.producto-info h1 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #222;
}

.producto-info .marca {
  font-size: 0.7rem;
  margin-bottom: 15px;
  color: #666;
}

.codigo-referencia {
  display: flex;
  gap: 15px; /* espacio entre código y referencia */
  font-size: 0.7rem;
  color: #666;
  margin-top: 5px;
}

.info-condicion{
	font-size: 0.7rem;
}

.info-precio {
  display: flex;
  align-items: center;
  gap: 10px;              /* espacio entre precios */
  margin: 10px 0;
}

.info-precio del {
  color: #999;
  font-size: 0.5rem;
}

.info-precio strong {
  color: #000;
  font-size: 0.95rem;
  font-weight: 700;
}

.precio-stock {
  margin-bottom: 20px;
}

.precio {
  font-size: 1.9rem;
  font-weight: bold;
  color: #222;
  margin: 0;
}

.stock {
  display: inline-block;
  margin-top: 5px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.9rem;
}

.en-stock {
  background: #e6f7e6;
  color: #1f7a1f;
  font-weight: 600;
}

.sin-stock {
  background: #fde7e7;
  color: #b30000;
  font-weight: 600;
}

/* =========================
   ➕ CANTIDAD Y BOTONES
========================= */
.btn-add-select {
  background: #28a745;
  color: #fff;
}

.product-add-select {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;    /* 👈 alinear con el título y precio */
  margin-top: 20px;
}

.qty-control-select {
  display: flex;
  align-items: center;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 10px;
  overflow: hidden;
  height: 38px;
  background: #fff;
}

.qty-btn-select {
  width: 38px;
  height: 100%;
  border: 0;
  background: #f3f4f6;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.qty-btn-select:active { transform: scale(0.95); }

.qty-input-select {
  width: 54px;
  border: 0;
  text-align: center;
  font-weight: 600;
  outline: none;
  -moz-appearance: textfield;
}
.qty-input-select::-webkit-inner-spin-button,
.qty-input-select::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* 🪙 Acordeón base */
.accordion-item {
  border-top: 1px solid #eee;
}

.accordion-header {
  background: transparent;
  width: 100%;
  text-align: left;
  font-weight: 600;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  border: none;
  outline: none;
  font-size: 16px;
}

.accordion-header i {
  transition: transform 0.3s ease;
}

.accordion-header.active i {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  font-size: 14px;
  padding-right: 5px;
}

.accordion-item.open .accordion-body {
  max-height: 300px; /* o lo que necesites */
  padding-bottom: 10px;
}

/* =========================
   💳 BANNER INFORMATIVO
========================= */
.logos-bancos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.logos-bancos img {
  height: 28px;
  object-fit: contain;
  filter: grayscale(10%);
  transition: filter 0.2s ease;
}

.logos-bancos img:hover {
  filter: grayscale(0%);
}

/* =========================
   🖼️ PRODUCTO EXTRA/ESPECIFICACION Y RELACIONADOS
========================= */
.producto-extra {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;   /* 👈 vertical */
  justify-content: flex-start;
  align-items: stretch;
  gap: 30px;                /* 👈 espacio entre atributos y relacionados */
  padding: 30px 0;
  /*background: red;*/
}

/* Caja de atributos */
.atributos {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.atributos h5 {
  margin-bottom: 10px;
  font-weight: 600;
  color: #333;
}

/* Caja de relacionados */
.js-productosRelacionados {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.js-productosRelacionados h5 {
  margin-bottom: 10px;
  font-weight: 600;
  color: #333;
}

/* Espaciado interno de cada card dentro del slick */
.relacionados-slider .slick-slide {
  padding: 0 15px;
  box-sizing: border-box;
}

/* 🟢 Espaciado interno entre slides */
.relacionados-slider .slick-slide {
  padding: 10px;
  box-sizing: border-box;
}

/* 🟢 Asegura que no haya márgenes negativos */
.relacionados-slider .slick-track {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ===== HIJOS (tabla tipo carrito) ===== */
.js-productoHijos .table-hijos td,
.js-productoHijos .table-hijos th{
  vertical-align: middle;
}

.hijo-card{
  display: flex;
  align-items: center;
  gap: 12px;
}

.hijo-img-wrap{
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  flex: 0 0 56px;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(0,0,0,.08);
}

.hijo-img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hijo-info{
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.hijo-nombre{
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  max-width: 520px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hijo-ref{
  font-size: 12px;
  opacity: .8;
}

/* cantidad alineada a la derecha tipo carrito */
.hijo-add{
  display:flex;
  justify-content:flex-end;
  gap: 10px;
}

/* ====== CONTENEDOR HIJOS COMO CARD (igual a producto-layout) ====== */
.producto-hijos{
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  background: #fff;              /* ✅ fondo blanco */
  border-radius: 6px;
  padding: 20px;                /* ✅ aire interno */
  box-sizing: border-box;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05); /* ✅ look card */
}

/* título alineado */
.producto-hijos h5{
  margin: 0 0 12px 0;
  font-weight: 600;
  color: #333;
}

/* ====== TABLA: que no “aplane” Bootstrap ====== */
.table-hijos{
  width: 100%;
  margin: 0;
  background: transparent;
}

/* separar filas como “cards” */
.table-hijos{
  border-collapse: separate !important;
  border-spacing: 0 10px; /* ✅ espacio entre filas */
}

/* header limpio */
.table-hijos thead th{
  border: 0 !important;
  border-bottom: 1px solid rgba(0,0,0,.10) !important;
  font-size: 12px;
  letter-spacing: .02em;
  color: #333;
}

/* cada fila como card */
.table-hijos tbody tr{
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  border-radius: 12px;
  overflow: hidden;
}

.table-hijos tbody td{
  border-top: 0 !important;      /* ✅ quitar línea de bootstrap */
}

/* columna descripción más ancha */
.hijo-producto{
  width: 55%;
}

/* =========================
   ✅ HIJOS: responsive tipo “card” en móviles
   (descripcion arriba, acciones abajo)
========================= */

@media (max-width: 768px){

  /* ocultar header tabla */
  .js-productoHijos .table-hijos thead{
    display: none;
  }

  /* tabla “normal” en desktop, pero en móvil cada TR se vuelve una card */
  .js-productoHijos .table-hijos,
  .js-productoHijos .table-hijos tbody,
  .js-productoHijos .table-hijos tr,
  .js-productoHijos .table-hijos td{
    display: block;
    width: 100%;
  }

  /* cada fila como card */
  .js-productoHijos .table-hijos tbody tr{
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    background: #fff;
    overflow: hidden;
  }

  /* quitar “bordes” de bootstrap */
  .js-productoHijos .table-hijos tbody td{
    border: 0 !important;
    padding: 0 !important;
  }

  /* grid interno para ordenar: codigo+desc arriba / uxb / acciones */
  .js-productoHijos .table-hijos tbody tr{
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "codigo"
      "desc"
      "uxb"
      "acciones";
    gap: 10px;
  }

  /* ubicar cada celda por área */
  .js-productoHijos .hijo-codigo{
    grid-area: codigo;
    font-size: 12px;
    font-weight: 700;
    color: #111;
    opacity: .85;
  }

  .js-productoHijos .hijo-producto{
    grid-area: desc;
    width: 100% !important;
  }

  .js-productoHijos .hijo-uxb{
    grid-area: uxb;
    width: 100%;
  }

  .js-productoHijos .hijo-cantidad{
    grid-area: acciones;
    width: 100%;
  }

  /* descripción: permitir 2 líneas en móvil (no una sola con ellipsis) */
  .js-productoHijos .hijo-nombre{
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
    line-height: 1.25;
  }

  /* el select ocupa toda la fila (como fijación) */
  .js-productoHijos .hijo-uxb .form-select{
    width: 100%;
    height: 38px;
    border-radius: 10px;
  }

  /* acciones abajo alineadas a la derecha (qty + botón) */
  .js-productoHijos .hijo-add{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
  }

  /* si querés que el botón “Añadir” sea full-width en móvil, activá esto:
  .js-productoHijos .hijo-add{
    flex-wrap: wrap;
  }
  .js-productoHijos .hijo-add .btn-add{
    width: 100%;
  }*/
  

  /* imagen un poco más chica para móvil */
  .js-productoHijos .hijo-img-wrap{
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    border-radius: 10px;
  }

  /* cuando no hay stock (tu lógica ya mete d-none), pero por si querés etiqueta */
  .js-productoHijos .sin-stock-movil{
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    font-weight: 700;
    color: #dc3545;
    font-size: 13px;
  }
  
    /* ✅ acciones abajo: input grande + botón pegado a la derecha */
  .js-productoHijos .hijo-add{
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto; /* qty se estira | botón tamaño normal */
    align-items: center;
    gap: 10px;
    justify-content: initial; /* por si quedó un justify-content viejo */
  }

  /* ✅ qty ocupa toda la columna 1 */
  .js-productoHijos .hijo-add .qty-control{
    width: 100%;
    justify-content: space-between;
  }

  /* input que “se estira” dentro del qty-control */
  .js-productoHijos .hijo-add .qty-input{
    width: 100%;
    min-width: 70px; /* evita que se aplaste */
  }

  /* ✅ botón no full width */
  .js-productoHijos .hijo-add .btn-add{
    width: auto;
    white-space: nowrap;
    height: 38px; /* para que calce con el qty */
    border-radius: 10px;
    padding: 0 14px;
  }

  /* (opcional) si querés que el qty tenga el mismo alto siempre */
  .js-productoHijos .hijo-add .qty-control,
  .js-productoHijos .hijo-add .btn-add{
    height: 38px;
  }
}