.despiece-container {
  border-bottom: 1px solid #eee;
  padding-bottom: 30px;
}

.repuestos-container h3 {
  color: #333;
  font-weight: 600;
  border-bottom: 2px solid #007cba;
  padding-bottom: 10px;
  display: inline-block;
}

.repuesto-item {
  border: 1px solid #ddd;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.repuesto-item:hover {
  box-shadow: 0 4px 15px rgba(0, 124, 186, 0.15);
  transform: translateY(-2px);
}

.repuesto-image {
  background-color: #f8f9fa;
  border-bottom: 1px solid #eee;
}

.repuesto-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
}

.repuesto-code {
  font-size: 12px;
  color: #666 !important;
}

.repuesto-item .pricing-meta .price {
  font-size: 16px;
  font-weight: 700;
  color: #007cba;
}

.repuesto-item .btn {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 4px;
}

.repuesto-item .btn-primary {
  background-color: #007cba;
  border-color: #007cba;
}

.repuesto-item .btn-primary:hover {
  background-color: #005a87;
  border-color: #005a87;
}

/* Estilos para carrito de repuestos */
.repuesto-cart-form {
  width: 100%;
}

.repuesto-cart-controls {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cart-plus-minus-small {
  display: flex;
  align-items: center;
  border: 2px solid #007cba;
  border-radius: 5px;
  overflow: hidden;
  background: white;
  max-width: 120px;
  margin: 0 auto;
}

.cart-plus-minus-small .qtybutton {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #007cba;
  color: white;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 14px;
  line-height: 1;
}

.cart-plus-minus-small .qtybutton:hover {
  background: #005a87;
}

.cart-plus-minus-box-small {
  width: 40px;
  height: 30px;
  text-align: center;
  border: none;
  outline: none;
  font-size: 12px;
  font-weight: 600;
  background: white;
  color: #333;
}

.repuesto-item .btn-outline-primary {
  border-color: #007cba;
  color: #007cba;
  font-size: 12px;
  padding: 6px 12px;
}

.repuesto-item .btn-outline-primary:hover {
  background-color: #007cba;
  border-color: #007cba;
  color: white;
}

@media (max-width: 768px) {
  .repuesto-title {
    font-size: 13px;
  }

  .repuesto-item .pricing-meta .price {
    font-size: 14px;
  }

  .cart-plus-minus-small {
    max-width: 100px;
  }

  .cart-plus-minus-small .qtybutton {
    width: 25px;
    height: 25px;
    font-size: 12px;
  }

  .cart-plus-minus-box-small {
    width: 35px;
    height: 25px;
    font-size: 11px;
  }
}

.despiece-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

.despiece-modal-content {
  position: relative;
  margin: auto;
  padding: 20px;
  max-width: 90%;
  max-height: 90%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.despiece-modal-img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
}

.despiece-close {
  position: absolute;
  top: 10px;
  right: 25px;
  color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}

.despiece-close:hover {
  color: #ccc;
}

/* Estilos para la sección de despiece */
.despiece-container {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.despiece-title {
  color: #2c3e50;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 25px;
}

.despiece-image-container {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* .despiece-image {
  transition: transform 0.3s ease;
  cursor: zoom-in;
} */

/* .despiece-image:hover {
  transform: scale(1.05);
} */

.despiece-info-card {
  background: white;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #007cba;
}

.despiece-info-card h4 {
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 1.25rem;
}

.info-item {
  margin-bottom: 15px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f2f6;
}

.info-item:last-child {
  border-bottom: none;
}

.info-item strong {
  color: #495057;
  font-weight: 600;
}

/* Estilos para la sección de repuestos */
.repuestos-container {
  padding-top: 20px;
}

.repuestos-header {
  text-align: center;
  margin-bottom: 40px;
}

.repuestos-title {
  color: #2c3e50;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 10px;
}

.repuestos-subtitle {
  font-size: 1.1rem;
  color: #6c757d;
}

/* Usar los mismos estilos que ficha.php para repuestos */
.repuesto-item {
  border: 1px solid #ddd;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.repuesto-item:hover {
  box-shadow: 0 4px 15px rgba(0, 124, 186, 0.15);
  transform: translateY(-2px);
}

.repuesto-image {
  background-color: #f8f9fa;
  border-bottom: 1px solid #eee;
}

.repuesto-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
}

.repuesto-code {
  font-size: 12px;
  color: #666 !important;
}

.repuesto-item .pricing-meta .price {
  font-size: 16px;
  font-weight: 700;
  color: #007cba;
}

.repuesto-item .btn {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 4px;
}

.repuesto-item .btn-primary {
  background-color: #007cba;
  border-color: #007cba;
}

.repuesto-item .btn-primary:hover {
  background-color: #005a87;
  border-color: #005a87;
}

.repuesto-item .btn-outline-primary {
  border-color: #007cba;
  color: #007cba;
  font-size: 12px;
  padding: 6px 12px;
}

.repuesto-item .btn-outline-primary:hover {
  background-color: #007cba;
  border-color: #007cba;
  color: white;
}

/* Mensaje cuando no hay repuestos */
.no-repuestos-message {
  text-align: center;
  padding: 60px 20px;
}

.no-repuestos-message .alert {
  border: 2px dashed #dee2e6;
  background: #f8f9fa;
  border-radius: 15px;
  padding: 40px;
}

.no-repuestos-message i {
  color: #6c757d;
}

.no-repuestos-message h4 {
  color: #495057;
  margin-top: 15px;
  font-weight: 600;
}

.no-repuestos-message p {
  color: #6c757d;
  margin-bottom: 0;
}

/* Responsividad */
@media (max-width: 1199px) {
  .despiece-title {
    font-size: 1.75rem;
  }

  .repuestos-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 991px) {
  .despiece-info-card {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .despiece-container {
    padding: 20px;
  }

  .despiece-title {
    font-size: 1.5rem;
    text-align: center;
  }

  .repuestos-title {
    font-size: 1.5rem;
  }

  .repuesto-title {
    font-size: 13px;
  }

  .repuesto-item .pricing-meta .price {
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .despiece-title {
    font-size: 1.25rem;
  }

  .repuestos-title {
    font-size: 1.25rem;
  }

  .despiece-info-card {
    padding: 20px;
  }
}
