/* =========================================================
   FICHA PRODUCTO — layout tipo 4-PRODUTO_SILLA
   Scoped under .np — reusa .nb-card via new-busqueda.css
   ========================================================= */

.np {
  --np-yellow: #f6c92b;
  --np-green: #6abf1e;
  --np-green-dark: #52a012;
  --np-green-alt: #1f8a4c;
  --np-black: #1a1a1a;
  --np-dark: #2e2420;
  --np-gray: #f7f7f5;
  --np-gray2: #e5e5e3;
  --np-text: #333;
  --np-text-light: #5b5f63;
  --np-muted: #888;
  --np-white: #fff;
  --np-radius: 8px;
  --np-max: 1140px;
  --np-gutter: 40px;
  --np-shell: min(calc(100% - var(--np-gutter)), var(--np-max));
  font-family: 'Raleway', Arial, Helvetica, sans-serif;
  color: var(--np-black);
  background: var(--np-white);
  display: block;
  width: 100%;
  max-width: none;
  float: none;
  clear: both;
  overflow-x: visible;
  overflow-y: visible;
  font-size: 14px;
}

.row.margin-header > .np {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.row.margin-header > .np.nb,
.np.nb {
  overflow-x: visible !important;
  overflow-y: visible !important;
}

.np *,
.np *::before,
.np *::after { box-sizing: border-box; }

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

.np-wrap {
  width: var(--np-shell);
  max-width: var(--np-max);
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Breadcrumb */
.np-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 14px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--np-muted);
}

.np-crumb a { color: var(--np-muted); transition: color 0.15s; }
.np-crumb a:hover { color: var(--np-green-dark); }
.np-crumb__sep { color: #bbb; }
.np-crumb__current { color: #333; }

/* Product top grid: thumbs | main | info */
.np-product {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  padding-bottom: 30px;
  align-items: start;
}

.np-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.np-thumb {
  border: 1px solid var(--np-gray2);
  border-radius: var(--np-radius);
  padding: 6px;
  cursor: pointer;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.15s;
}

.np-thumb:hover { border-color: #bbb; }
.np-thumb.is-active {
  border-color: var(--np-yellow);
  border-width: 2px;
  padding: 5px;
}

.np-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

.np-main-image {
  border: 1px solid var(--np-gray2);
  border-radius: var(--np-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 460px;
  overflow: hidden;
  background: #fff;
  position: relative;
}

.np-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.np-main-image .np-badge-float {
  position: absolute;
  z-index: 2;
}

.np-main-image .np-badge-float--tl { top: 12px; left: 12px; }
.np-main-image .np-badge-float--tr { top: 12px; right: 12px; }

/* Info column */
.np-info .np-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.np-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.np-tag--nuevo { background: var(--np-yellow); color: #1a1a1a; }
.np-tag--usado { background: var(--np-green); color: #fff; }
.np-tag--asistido { background: #e67e22; color: #fff; }
.np-tag--promo { background: #d9583e; color: #fff; }

.np-tag-soft {
  font-size: 12px;
  color: #555;
  font-weight: 600;
}

.np-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 4px;
}

.np-info h1 {
  font-size: clamp(22px, 2.4vw, 26px);
  font-weight: 800;
  margin: 0 0 4px;
  line-height: 1.15;
  color: var(--np-black);
}

.np-codigo {
  color: var(--np-muted);
  font-size: 12px;
  margin-bottom: 14px;
  font-weight: 600;
}

.np-inti {
  flex: 0 0 auto;
  width: 48px;
  height: auto;
}

.np-price {
  font-size: 28px;
  font-weight: 800;
  margin: 6px 0 2px;
  color: var(--np-black);
  line-height: 1.1;
}

.np-price small {
  font-size: 14px;
  font-weight: 600;
  color: #666;
}

.np-price-note {
  font-size: 12px;
  color: var(--np-muted);
  margin-bottom: 16px;
}

.np-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.np-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--np-gray2);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  color: #444;
  font-weight: 600;
  background: #fff;
}

.np-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #444;
  margin: 0 0 18px;
}

.np-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--np-gray2);
  padding-top: 14px;
  margin-bottom: 16px;
  gap: 6px 24px;
}

.np-spec .label {
  font-weight: 700;
  font-size: 12.5px;
  display: block;
  color: var(--np-black);
}

.np-spec .value {
  color: #666;
  font-size: 12.5px;
}

.np-infobox {
  background: var(--np-gray);
  border-radius: var(--np-radius);
  padding: 14px 16px;
  margin-bottom: 18px;
}

.np-infoline {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  padding: 6px 0;
  color: #333;
  line-height: 1.4;
}

.np-infoline b { font-weight: 700; }

.np-cta-row {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.np-btn {
  flex: 1;
  text-align: center;
  padding: 13px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid var(--np-gray2);
  background: #fff;
  color: var(--np-black);
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.np-btn--primary {
  background: var(--np-yellow);
  border-color: var(--np-yellow);
  color: #1a1a1a;
}

.np-btn--primary:hover { filter: brightness(0.97); }

.np-btn--secondary:hover {
  border-color: #bbb;
}

.np-btn--outline {
  width: 100%;
  background: #fff;
  border: 1px solid var(--np-gray2);
  border-radius: 6px;
  padding: 11px;
  font-size: 13px;
  font-weight: 600;
}

.np-btn--outline:hover {
  border-color: var(--np-green);
  color: var(--np-green-dark);
}

/* Explore */
.np-explore {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 0;
  border: 1px solid var(--np-gray2);
  border-radius: 10px;
  padding: 22px 26px;
  margin: 10px 0 30px;
  align-items: center;
}

.np-explore__title h2 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
}

.np-explore__title p {
  margin: 0;
  font-size: 12.5px;
  color: var(--np-muted);
  max-width: 220px;
  line-height: 1.4;
}

.np-explore__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-left: 20px;
}

.np-explore__item b {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
  color: var(--np-black);
}

.np-explore__item span {
  font-size: 12px;
  color: var(--np-muted);
  line-height: 1.35;
}

.np-explore__item--green b { color: var(--np-green-alt); }

.np-explore__ico {
  font-size: 18px;
  line-height: 1;
  flex: 0 0 auto;
}

/* Consult form */
.np-consult {
  border: 1px solid var(--np-gray2);
  border-radius: 10px;
  padding: 22px 24px;
  margin-bottom: 30px;
  background: var(--np-gray);
}

.np-consult h2 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 800;
}

.np-consult__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.np-consult input,
.np-consult textarea {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  border: 1px solid var(--np-gray2) !important;
  border-radius: 6px !important;
  padding: 10px 12px !important;
  font-family: inherit !important;
  font-size: 13.5px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.np-consult textarea { min-height: 90px; grid-column: 1 / -1; }

.np-consult__foot {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.np-consult .btn,
.np-consult input[type="submit"] {
  background: var(--np-yellow) !important;
  border: 1px solid var(--np-yellow) !important;
  color: #1a1a1a !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  padding: 11px 18px !important;
  float: none !important;
}

.np-consult__note {
  font-size: 12px;
  color: var(--np-muted);
}

/* Similar / related */
.np-similar {
  margin-bottom: 40px;
}

.np-similar__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.np-similar__head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.np-similar__link {
  border: 1px solid var(--np-green);
  color: var(--np-green-alt);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 6px;
  background: #fff;
  white-space: nowrap;
}

.np-similar__link:hover {
  background: #f3f9eb;
}

.np-similar .nb-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Usado extras */
.np-lote-link {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--np-radius);
  background: var(--np-gray);
  border: 1px solid var(--np-gray2);
  font-size: 12.5px;
  line-height: 1.4;
}

.np-lote-link a {
  color: var(--np-green-dark);
  font-weight: 700;
}

.np-empty {
  text-align: center;
  padding: 56px 20px;
}

.np-empty p { margin: 16px 0 20px; color: var(--np-text-light); }

.np-empty__btn {
  display: inline-flex;
  padding: 10px 18px;
  border-radius: 6px;
  background: var(--np-dark);
  color: #fff !important;
  font-weight: 700;
}

.np-ctas {
  background: var(--np-gray);
  padding: 40px 0 48px;
  border-top: 1px solid var(--np-gray2);
}

.np-ctas__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.np-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px;
  background: #fff;
  border: 1px solid var(--np-gray2);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.np-cta:hover {
  border-color: rgba(106, 191, 30, 0.45);
  box-shadow: 0 8px 24px rgba(30, 24, 16, 0.08);
  transform: translateY(-2px);
}

.np-cta__kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--np-green-dark);
}

.np-cta h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.np-cta p {
  margin: 0;
  flex: 1;
  font-size: 13.5px;
  color: var(--np-text-light);
  line-height: 1.45;
}

.np-cta__link {
  font-size: 13px;
  font-weight: 700;
  color: var(--np-green-dark);
}

@media (max-width: 991px) {
  .np-product {
    grid-template-columns: 1fr;
  }

  .np-thumbs {
    flex-direction: row;
    order: 2;
    overflow-x: auto;
  }

  .np-thumb {
    flex: 0 0 72px;
    height: 72px;
  }

  .np-main-image { height: 340px; order: 1; }
  .np-info { order: 3; }

  .np-explore {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .np-explore__item { padding-left: 0; }

  .np-similar .nb-grid,
  .np-ctas__grid,
  .np-consult__grid,
  .np-specs {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .np-cta-row { flex-direction: column; }
  .np-similar .nb-grid,
  .np-ctas__grid,
  .np-consult__grid,
  .np-specs {
    grid-template-columns: 1fr;
  }
}
